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/llvm-test"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
441 ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
442 # Factoring default headers for most tests.
443 ac_includes_default="\
446 # include <sys/types.h>
449 # include <sys/stat.h>
460 # if !STDC_HEADERS && HAVE_MEMORY_H
466 # include <strings.h>
469 # include <inttypes.h>
479 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'
482 # Initialize some variables set by options.
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
494 program_transform_name=s,x,x,
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
532 # Accept the important Cygnus configure options, so we can diagnose typos.
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
554 cache_file=config.cache ;;
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
560 datadir=$ac_optarg ;;
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "enable_$ac_feature='$ac_optarg'" ;;
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
597 -help | --help | --hel | --he | -h)
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
621 -libdir | --libdir | --libdi | --libd)
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
648 # Obsolete; use --without-fp.
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
712 sbindir=$ac_optarg ;;
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
723 sharedstatedir=$ac_optarg ;;
725 -site | --site | --sit)
727 -site=* | --site=* | --sit=*)
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
750 -version | --version | --versio | --versi | --vers | -V)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
764 eval "with_$ac_package='$ac_optarg'" ;;
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
776 # Obsolete; use --with-x.
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
819 if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838 localstatedir libdir includedir oldincludedir infodir mandir
840 eval ac_val=$`echo $ac_var`
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
869 test "$silent" = yes && exec 6>/dev/null
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
889 if test ! -r $srcdir/$ac_unique_file; then
893 ac_srcdir_defaulted=no
895 if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
962 # Report the --help message.
964 if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
968 \`configure' configures llvm 1.8cvs to adapt to many kinds of systems.
970 Usage: $0 [OPTION]... [VAR=VALUE]...
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE. See below for descriptions of some of the useful variables.
975 Defaults for the options are specified in brackets.
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
991 Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1002 For better control, use the options below.
1004 Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1028 if test -n "$ac_init_help"; then
1029 case $ac_init_help in
1030 short | recursive ) echo "Configuration of llvm 1.8cvs:";;
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1039 --enable-debug-runtime
1040 --enable-jit Enable Just In Time Compiling (default is YES)
1041 --enable-doxygen Build doxygen documentation (default is NO)
1042 --enable-threads Use threads if available (default is YES)
1043 --enable-target Build specific host targets:
1044 all,host-only,{target-name} (default=all)
1045 --enable-ltdl-install install libltdl
1046 --enable-shared[=PKGS]
1047 build shared libraries [default=yes]
1048 --enable-static[=PKGS]
1049 build static libraries [default=yes]
1050 --enable-fast-install[=PKGS]
1051 optimize for fast installation [default=yes]
1052 --disable-libtool-lock avoid locking (might break parallel builds)
1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1057 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1059 --with-tclinclude directory where tcl headers are
1060 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1061 --with-pic try to use only PIC/non-PIC objects [default=use
1064 include additional configurations [automatic]
1066 Some influential environment variables:
1067 CC C compiler command
1068 CFLAGS C compiler flags
1069 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1070 nonstandard directory <lib dir>
1071 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072 headers in a nonstandard directory <include dir>
1074 CXX C++ compiler command
1075 CXXFLAGS C++ compiler flags
1076 CXXCPP C++ preprocessor
1077 F77 Fortran 77 compiler command
1078 FFLAGS Fortran 77 compiler flags
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1083 Report bugs to <llvmbugs@cs.uiuc.edu>.
1087 if test "$ac_init_help" = "recursive"; then
1088 # If there are subdirs, report their specific --help.
1090 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091 test -d $ac_dir || continue
1094 if test "$ac_dir" != .; then
1095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096 # A "../" for each directory in $ac_dir_suffix.
1097 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1099 ac_dir_suffix= ac_top_builddir=
1103 .) # No --srcdir option. We are building in place.
1105 if test -z "$ac_top_builddir"; then
1108 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1110 [\\/]* | ?:[\\/]* ) # Absolute path.
1111 ac_srcdir=$srcdir$ac_dir_suffix;
1112 ac_top_srcdir=$srcdir ;;
1114 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118 # Do not use `cd foo && pwd` to compute absolute paths, because
1119 # the directories may not exist.
1121 .) ac_abs_builddir="$ac_dir";;
1124 .) ac_abs_builddir=`pwd`;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1132 case ${ac_top_builddir}. in
1133 .) ac_abs_top_builddir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138 case $ac_abs_builddir in
1139 .) ac_abs_srcdir=$ac_srcdir;;
1142 .) ac_abs_srcdir=$ac_abs_builddir;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147 case $ac_abs_builddir in
1148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1150 case $ac_top_srcdir in
1151 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1158 # Check for guested configure; otherwise get Cygnus style configure.
1159 if test -f $ac_srcdir/configure.gnu; then
1161 $SHELL $ac_srcdir/configure.gnu --help=recursive
1162 elif test -f $ac_srcdir/configure; then
1164 $SHELL $ac_srcdir/configure --help=recursive
1165 elif test -f $ac_srcdir/configure.ac ||
1166 test -f $ac_srcdir/configure.in; then
1168 $ac_configure --help
1170 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1176 test -n "$ac_init_help" && exit 0
1177 if $ac_init_version; then
1179 llvm configure 1.8cvs
1180 generated by GNU Autoconf 2.59
1182 Copyright (C) 2003 Free Software Foundation, Inc.
1183 This configure script is free software; the Free Software Foundation
1184 gives unlimited permission to copy, distribute and modify it.
1186 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1192 This file contains any messages produced by compilers while
1193 running configure, to aid debugging if configure makes a mistake.
1195 It was created by llvm $as_me 1.8cvs, which was
1196 generated by GNU Autoconf 2.59. Invocation command line was
1207 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1208 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1209 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1210 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1211 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1213 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1214 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1216 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1217 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1218 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1219 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1220 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1221 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1222 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1230 test -z "$as_dir" && as_dir=.
1231 echo "PATH: $as_dir"
1246 # Keep a trace of the command line.
1247 # Strip out --no-create and --no-recursion so they do not pile up.
1248 # Strip out --silent because we don't want to record it for future runs.
1249 # Also quote any args containing shell meta-characters.
1250 # Make two passes to allow for proper duplicate-argument suppression.
1255 ac_must_keep_next=false
1261 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263 | -silent | --silent | --silen | --sile | --sil)
1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1271 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1272 if test $ac_must_keep_next = true; then
1273 ac_must_keep_next=false # Got value, back to normal.
1276 *=* | --config-cache | -C | -disable-* | --disable-* \
1277 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1278 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1279 | -with-* | --with-* | -without-* | --without-* | --x)
1280 case "$ac_configure_args0 " in
1281 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1284 -* ) ac_must_keep_next=true ;;
1287 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1288 # Get rid of the leading space.
1294 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1295 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1297 # When interrupted or exit'd, cleanup temporary files, and complete
1298 # config.log. We remove comments because anyway the quotes in there
1299 # would cause problems or look ugly.
1300 # WARNING: Be sure not to use single quotes in there, as some shells,
1301 # such as our DU 5.0 friend, will then `close' the trap.
1302 trap 'exit_status=$?
1303 # Save into config.log some information that might help in debugging.
1308 ## ---------------- ##
1309 ## Cache variables. ##
1310 ## ---------------- ##
1313 # The following way of writing the cache mishandles newlines in values,
1316 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1319 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1331 ## ----------------- ##
1332 ## Output variables. ##
1333 ## ----------------- ##
1336 for ac_var in $ac_subst_vars
1338 eval ac_val=$`echo $ac_var`
1339 echo "$ac_var='"'"'$ac_val'"'"'"
1343 if test -n "$ac_subst_files"; then
1350 for ac_var in $ac_subst_files
1352 eval ac_val=$`echo $ac_var`
1353 echo "$ac_var='"'"'$ac_val'"'"'"
1358 if test -s confdefs.h; then
1365 sed "/^$/d" confdefs.h | sort
1368 test "$ac_signal" != 0 &&
1369 echo "$as_me: caught signal $ac_signal"
1370 echo "$as_me: exit $exit_status"
1372 rm -f core *.core &&
1373 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1376 for ac_signal in 1 2 13 15; do
1377 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1382 rm -rf conftest* confdefs.h
1383 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1386 # Predefined preprocessor variables.
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_NAME "$PACKAGE_NAME"
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_STRING "$PACKAGE_STRING"
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1413 # Let the site file select an alternate cache file if it wants to.
1414 # Prefer explicitly selected file to automatically selected ones.
1415 if test -z "$CONFIG_SITE"; then
1416 if test "x$prefix" != xNONE; then
1417 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1419 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1422 for ac_site_file in $CONFIG_SITE; do
1423 if test -r "$ac_site_file"; then
1424 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1425 echo "$as_me: loading site script $ac_site_file" >&6;}
1426 sed 's/^/| /' "$ac_site_file" >&5
1431 if test -r "$cache_file"; then
1432 # Some versions of bash will fail to source /dev/null (special
1433 # files actually), so we avoid doing that.
1434 if test -f "$cache_file"; then
1435 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1436 echo "$as_me: loading cache $cache_file" >&6;}
1438 [\\/]* | ?:[\\/]* ) . $cache_file;;
1439 *) . ./$cache_file;;
1443 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1444 echo "$as_me: creating cache $cache_file" >&6;}
1448 # Check that the precious variables saved in the cache have kept the same
1450 ac_cache_corrupted=false
1451 for ac_var in `(set) 2>&1 |
1452 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1453 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1454 eval ac_new_set=\$ac_env_${ac_var}_set
1455 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1456 eval ac_new_val="\$ac_env_${ac_var}_value"
1457 case $ac_old_set,$ac_new_set in
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1463 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1464 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1465 ac_cache_corrupted=: ;;
1468 if test "x$ac_old_val" != "x$ac_new_val"; then
1469 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1470 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1471 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1472 echo "$as_me: former value: $ac_old_val" >&2;}
1473 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1474 echo "$as_me: current value: $ac_new_val" >&2;}
1475 ac_cache_corrupted=:
1478 # Pass precious variables to config.status.
1479 if test "$ac_new_set" = set; then
1481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1482 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1483 *) ac_arg=$ac_var=$ac_new_val ;;
1485 case " $ac_configure_args " in
1486 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1487 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1491 if $ac_cache_corrupted; then
1492 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1493 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1494 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1495 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1496 { (exit 1); exit 1; }; }
1500 ac_cpp='$CPP $CPPFLAGS'
1501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1532 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1541 for ac_dir in autoconf $srcdir/autoconf; do
1542 if test -f $ac_dir/install-sh; then
1544 ac_install_sh="$ac_aux_dir/install-sh -c"
1546 elif test -f $ac_dir/install.sh; then
1548 ac_install_sh="$ac_aux_dir/install.sh -c"
1550 elif test -f $ac_dir/shtool; then
1552 ac_install_sh="$ac_aux_dir/shtool install -c"
1556 if test -z "$ac_aux_dir"; then
1557 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1558 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1559 { (exit 1); exit 1; }; }
1561 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1566 if test ${srcdir} != "." ; then
1567 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1568 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1569 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1570 { (exit 1); exit 1; }; }
1574 for i in `ls ${srcdir}/projects`
1576 if test -d ${srcdir}/projects/${i} ; then
1581 subdirs="$subdirs projects/sample"
1585 subdirs="$subdirs projects/Stacker"
1589 subdirs="$subdirs projects/llvm-test"
1593 subdirs="$subdirs projects/llvm-reopt"
1597 subdirs="$subdirs projects/llvm-gcc"
1601 subdirs="$subdirs projects/llvm-java"
1605 subdirs="$subdirs projects/llvm-tv"
1609 subdirs="$subdirs projects/llvm-poolalloc"
1613 subdirs="$subdirs projects/llvm-kernel"
1616 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1617 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1624 # Make sure we can run config.sub.
1625 $ac_config_sub sun4 >/dev/null 2>&1 ||
1626 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1627 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1628 { (exit 1); exit 1; }; }
1630 echo "$as_me:$LINENO: checking build system type" >&5
1631 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1632 if test "${ac_cv_build+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1635 ac_cv_build_alias=$build_alias
1636 test -z "$ac_cv_build_alias" &&
1637 ac_cv_build_alias=`$ac_config_guess`
1638 test -z "$ac_cv_build_alias" &&
1639 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1640 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1641 { (exit 1); exit 1; }; }
1642 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1643 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1644 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1645 { (exit 1); exit 1; }; }
1648 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1649 echo "${ECHO_T}$ac_cv_build" >&6
1651 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1652 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1653 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1656 echo "$as_me:$LINENO: checking host system type" >&5
1657 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1658 if test "${ac_cv_host+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 ac_cv_host_alias=$host_alias
1662 test -z "$ac_cv_host_alias" &&
1663 ac_cv_host_alias=$ac_cv_build_alias
1664 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1665 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1666 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1667 { (exit 1); exit 1; }; }
1670 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1671 echo "${ECHO_T}$ac_cv_host" >&6
1673 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1674 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1675 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1678 echo "$as_me:$LINENO: checking target system type" >&5
1679 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1680 if test "${ac_cv_target+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 ac_cv_target_alias=$target_alias
1684 test "x$ac_cv_target_alias" = "x" &&
1685 ac_cv_target_alias=$ac_cv_host_alias
1686 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1687 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1688 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1689 { (exit 1); exit 1; }; }
1692 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1693 echo "${ECHO_T}$ac_cv_target" >&6
1694 target=$ac_cv_target
1695 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1696 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1697 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1700 # The aliases save the names the user supplied, while $host etc.
1701 # will get canonicalized.
1702 test -n "$target_alias" &&
1703 test "$program_prefix$program_suffix$program_transform_name" = \
1705 program_prefix=${target_alias}-
1707 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1708 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1709 if test "${llvm_cv_os_type+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 llvm_cv_os_type="AIX"
1715 llvm_cv_platform_type="Unix" ;;
1717 llvm_cv_os_type="Cygwin"
1718 llvm_cv_platform_type="Unix" ;;
1720 llvm_cv_os_type="Darwin"
1721 llvm_cv_platform_type="Unix" ;;
1723 llvm_cv_os_type="FreeBSD"
1724 llvm_cv_platform_type="Unix" ;;
1726 llvm_cv_os_type="OpenBSD"
1727 llvm_cv_platform_type="Unix" ;;
1729 llvm_cv_os_type="HP-UX"
1730 llvm_cv_platform_type="Unix" ;;
1732 llvm_cv_os_type="Interix"
1733 llvm_cv_platform_type="Unix" ;;
1735 llvm_cv_os_type="Linux"
1736 llvm_cv_platform_type="Unix" ;;
1738 llvm_cv_os_type="SunOS"
1739 llvm_cv_platform_type="Unix" ;;
1741 llvm_cv_os_type="Win32"
1742 llvm_cv_platform_type="Win32" ;;
1744 llvm_cv_os_type="MingW"
1745 llvm_cv_platform_type="Win32" ;;
1747 llvm_cv_os_type="Unknown"
1748 llvm_cv_platform_type="Unknown" ;;
1751 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1752 echo "${ECHO_T}$llvm_cv_os_type" >&6
1754 if test "$llvm_cv_os_type" = "Unknown" ; then
1755 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1756 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1757 { (exit 1); exit 1; }; }
1763 case $llvm_cv_platform_type in
1766 cat >>confdefs.h <<\_ACEOF
1767 #define LLVM_ON_UNIX 1
1777 cat >>confdefs.h <<\_ACEOF
1778 #define LLVM_ON_WIN32 1
1788 echo "$as_me:$LINENO: checking target architecture" >&5
1789 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1790 if test "${llvm_cv_target_arch+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 i?86-*) llvm_cv_target_arch="x86" ;;
1795 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
1796 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1797 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1798 alpha*-*) llvm_cv_target_arch="Alpha" ;;
1799 ia64-*) llvm_cv_target_arch="IA64" ;;
1800 *) llvm_cv_target_arch="Unknown" ;;
1803 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1804 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1806 if test "$llvm_cv_target_arch" = "Unknown" ; then
1807 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1808 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1811 ARCH=$llvm_cv_target_arch
1815 ac_cpp='$CPP $CPPFLAGS'
1816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1819 if test -n "$ac_tool_prefix"; then
1820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1821 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_CC+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC="$CC" # Let the user override the test.
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 test -z "$as_dir" && as_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 if test -n "$CC"; then
1848 echo "$as_me:$LINENO: result: $CC" >&5
1849 echo "${ECHO_T}$CC" >&6
1851 echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1856 if test -z "$ac_cv_prog_CC"; then
1858 # Extract the first word of "gcc", so it can be a program name with args.
1859 set dummy gcc; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 if test -n "$ac_ct_CC"; then
1866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875 ac_cv_prog_ac_ct_CC="gcc"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885 if test -n "$ac_ct_CC"; then
1886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887 echo "${ECHO_T}$ac_ct_CC" >&6
1889 echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1898 if test -z "$CC"; then
1899 if test -n "$ac_tool_prefix"; then
1900 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1901 set dummy ${ac_tool_prefix}cc; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_CC+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 if test -n "$CC"; then
1908 ac_cv_prog_CC="$CC" # Let the user override the test.
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 test -z "$as_dir" && as_dir=.
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 ac_cv_prog_CC="${ac_tool_prefix}cc"
1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927 if test -n "$CC"; then
1928 echo "$as_me:$LINENO: result: $CC" >&5
1929 echo "${ECHO_T}$CC" >&6
1931 echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1936 if test -z "$ac_cv_prog_CC"; then
1938 # Extract the first word of "cc", so it can be a program name with args.
1939 set dummy cc; ac_word=$2
1940 echo "$as_me:$LINENO: checking for $ac_word" >&5
1941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1942 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 if test -n "$ac_ct_CC"; then
1946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 test -z "$as_dir" && as_dir=.
1953 for ac_exec_ext in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 ac_cv_prog_ac_ct_CC="cc"
1956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1965 if test -n "$ac_ct_CC"; then
1966 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1967 echo "${ECHO_T}$ac_ct_CC" >&6
1969 echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1979 if test -z "$CC"; then
1980 # Extract the first word of "cc", so it can be a program name with args.
1981 set dummy cc; ac_word=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_CC+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 if test -n "$CC"; then
1988 ac_cv_prog_CC="$CC" # Let the user override the test.
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1999 ac_prog_rejected=yes
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 if test $ac_prog_rejected = yes; then
2010 # We found a bogon in the path, so make sure we never use it.
2011 set dummy $ac_cv_prog_CC
2013 if test $# != 0; then
2014 # We chose a different compiler from the bogus one.
2015 # However, it has the same basename, so the bogon will be chosen
2016 # first if we set CC to just the basename; use the full file name.
2018 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2024 if test -n "$CC"; then
2025 echo "$as_me:$LINENO: result: $CC" >&5
2026 echo "${ECHO_T}$CC" >&6
2028 echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6
2033 if test -z "$CC"; then
2034 if test -n "$ac_tool_prefix"; then
2037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2038 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2039 echo "$as_me:$LINENO: checking for $ac_word" >&5
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041 if test "${ac_cv_prog_CC+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 if test -n "$CC"; then
2045 ac_cv_prog_CC="$CC" # Let the user override the test.
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 test -z "$as_dir" && as_dir=.
2052 for ac_exec_ext in '' $ac_executable_extensions; do
2053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064 if test -n "$CC"; then
2065 echo "$as_me:$LINENO: result: $CC" >&5
2066 echo "${ECHO_T}$CC" >&6
2068 echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6
2072 test -n "$CC" && break
2075 if test -z "$CC"; then
2079 # Extract the first word of "$ac_prog", so it can be a program name with args.
2080 set dummy $ac_prog; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 if test -n "$ac_ct_CC"; then
2087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_ac_ct_CC="$ac_prog"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106 if test -n "$ac_ct_CC"; then
2107 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108 echo "${ECHO_T}$ac_ct_CC" >&6
2110 echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2114 test -n "$ac_ct_CC" && break
2123 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2124 See \`config.log' for more details." >&5
2125 echo "$as_me: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&2;}
2127 { (exit 1); exit 1; }; }
2129 # Provide some information about the compiler.
2130 echo "$as_me:$LINENO:" \
2131 "checking for C compiler version" >&5
2132 ac_compiler=`set X $ac_compile; echo $2`
2133 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2134 (eval $ac_compiler --version </dev/null >&5) 2>&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }
2138 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2139 (eval $ac_compiler -v </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); }
2149 cat >conftest.$ac_ext <<_ACEOF
2152 cat confdefs.h >>conftest.$ac_ext
2153 cat >>conftest.$ac_ext <<_ACEOF
2154 /* end confdefs.h. */
2164 ac_clean_files_save=$ac_clean_files
2165 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2166 # Try to create an executable without -o first, disregard a.out.
2167 # It will help us diagnose broken compilers, and finding out an intuition
2169 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2170 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2171 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2172 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2173 (eval $ac_link_default) 2>&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; then
2177 # Find the output, starting from the most likely. This scheme is
2178 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2181 # Be careful to initialize this variable, since it used to be cached.
2182 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2184 # b.out is created by i960 compilers.
2185 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2187 test -f "$ac_file" || continue
2189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2192 # This is the source file.
2195 # We found the default executable, but exeext='' is most
2199 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200 # FIXME: I believe we export ac_cv_exeext for Libtool,
2201 # but it would be cool to find out if it's true. Does anybody
2202 # maintain Libtool? --akim.
2210 echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2213 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&5
2215 echo "$as_me: error: C compiler cannot create executables
2216 See \`config.log' for more details." >&2;}
2217 { (exit 77); exit 77; }; }
2220 ac_exeext=$ac_cv_exeext
2221 echo "$as_me:$LINENO: result: $ac_file" >&5
2222 echo "${ECHO_T}$ac_file" >&6
2224 # Check the compiler produces executables we can run. If not, either
2225 # the compiler is broken, or we cross compile.
2226 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2227 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2228 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2229 # If not cross compiling, check that we can run a simple program.
2230 if test "$cross_compiling" != yes; then
2231 if { ac_try='./$ac_file'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2239 if test "$cross_compiling" = maybe; then
2242 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2243 If you meant to cross compile, use \`--host'.
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&2;}
2248 { (exit 1); exit 1; }; }
2252 echo "$as_me:$LINENO: result: yes" >&5
2253 echo "${ECHO_T}yes" >&6
2255 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2256 ac_clean_files=$ac_clean_files_save
2257 # Check the compiler produces executables we can run. If not, either
2258 # the compiler is broken, or we cross compile.
2259 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2260 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2261 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2262 echo "${ECHO_T}$cross_compiling" >&6
2264 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2265 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2267 (eval $ac_link) 2>&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; then
2271 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2273 # work properly (i.e., refer to `conftest.exe'), while it won't with
2275 for ac_file in conftest.exe conftest conftest.*; do
2276 test -f "$ac_file" || continue
2278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2286 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }
2293 rm -f conftest$ac_cv_exeext
2294 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2295 echo "${ECHO_T}$ac_cv_exeext" >&6
2297 rm -f conftest.$ac_ext
2298 EXEEXT=$ac_cv_exeext
2300 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2301 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2302 if test "${ac_cv_objext+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 cat >conftest.$ac_ext <<_ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h. */
2320 rm -f conftest.o conftest.obj
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; then
2326 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2337 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&2;}
2341 { (exit 1); exit 1; }; }
2344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2346 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347 echo "${ECHO_T}$ac_cv_objext" >&6
2348 OBJEXT=$ac_cv_objext
2350 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2352 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 cat >conftest.$ac_ext <<_ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2373 rm -f conftest.$ac_objext
2374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375 (eval $ac_compile) 2>conftest.er1
2377 grep -v '^ *+' conftest.er1 >conftest.err
2379 cat conftest.err >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); } &&
2382 { ac_try='test -z "$ac_c_werror_flag"
2383 || test ! -s conftest.err'
2384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; } &&
2389 { ac_try='test -s conftest.$ac_objext'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; }; then
2397 echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2403 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2406 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2407 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2408 GCC=`test $ac_compiler_gnu = yes && echo yes`
2409 ac_test_CFLAGS=${CFLAGS+set}
2410 ac_save_CFLAGS=$CFLAGS
2412 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2413 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2414 if test "${ac_cv_prog_cc_g+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 cat >conftest.$ac_ext <<_ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h. */
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434 (eval $ac_compile) 2>conftest.er1
2436 grep -v '^ *+' conftest.er1 >conftest.err
2438 cat conftest.err >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try='test -z "$ac_c_werror_flag"
2442 || test ! -s conftest.err'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; } &&
2448 { ac_try='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2456 echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2463 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2464 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2465 if test "$ac_test_CFLAGS" = set; then
2466 CFLAGS=$ac_save_CFLAGS
2467 elif test $ac_cv_prog_cc_g = yes; then
2468 if test "$GCC" = yes; then
2474 if test "$GCC" = yes; then
2480 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2481 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2482 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 ac_cv_prog_cc_stdc=no
2487 cat >conftest.$ac_ext <<_ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2495 #include <sys/types.h>
2496 #include <sys/stat.h>
2497 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2498 struct buf { int x; };
2499 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2500 static char *e (p, i)
2506 static char *f (char * (*g) (char **, int), char **p, ...)
2511 s = g (p, va_arg (v,int));
2516 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2517 function prototypes and stuff, but not '\xHH' hex character constants.
2518 These don't provoke an error unfortunately, instead are silently treated
2519 as 'x'. The following induces an error, until -std1 is added to get
2520 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2521 array size at least. It's necessary to write '\x00'==0 to get something
2522 that's true only with -std1. */
2523 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2525 int test (int i, double x);
2526 struct s1 {int (*f) (int a);};
2527 struct s2 {int (*f) (double a);};
2528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2534 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2539 # Don't try gcc -ansi; that turns off useful extensions and
2540 # breaks some systems' header files.
2541 # AIX -qlanglvl=ansi
2542 # Ultrix and OSF/1 -std1
2543 # HP-UX 10.20 and later -Ae
2544 # HP-UX older versions -Aa -D_HPUX_SOURCE
2545 # SVR4 -Xc -D__EXTENSIONS__
2546 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2548 CC="$ac_save_CC $ac_arg"
2549 rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>conftest.er1
2553 grep -v '^ *+' conftest.er1 >conftest.err
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag"
2559 || test ! -s conftest.err'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; } &&
2565 { ac_try='test -s conftest.$ac_objext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2571 ac_cv_prog_cc_stdc=$ac_arg
2574 echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2578 rm -f conftest.err conftest.$ac_objext
2580 rm -f conftest.$ac_ext conftest.$ac_objext
2585 case "x$ac_cv_prog_cc_stdc" in
2587 echo "$as_me:$LINENO: result: none needed" >&5
2588 echo "${ECHO_T}none needed" >&6 ;;
2590 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2591 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2592 CC="$CC $ac_cv_prog_cc_stdc" ;;
2595 # Some people use a C++ compiler to compile C. Since we use `exit',
2596 # in C++ we need to declare it. In case someone uses the same compiler
2597 # for both compiling C and C++ we need to have the C++ compiler decide
2598 # the declaration of exit, since it's the most demanding environment.
2599 cat >conftest.$ac_ext <<_ACEOF
2604 rm -f conftest.$ac_objext
2605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606 (eval $ac_compile) 2>conftest.er1
2608 grep -v '^ *+' conftest.er1 >conftest.err
2610 cat conftest.err >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); } &&
2613 { ac_try='test -z "$ac_c_werror_flag"
2614 || test ! -s conftest.err'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; } &&
2620 { ac_try='test -s conftest.$ac_objext'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 for ac_declaration in \
2628 'extern "C" void std::exit (int) throw (); using std::exit;' \
2629 'extern "C" void std::exit (int); using std::exit;' \
2630 'extern "C" void exit (int) throw ();' \
2631 'extern "C" void exit (int);' \
2634 cat >conftest.$ac_ext <<_ACEOF
2637 cat confdefs.h >>conftest.$ac_ext
2638 cat >>conftest.$ac_ext <<_ACEOF
2639 /* end confdefs.h. */
2650 rm -f conftest.$ac_objext
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652 (eval $ac_compile) 2>conftest.er1
2654 grep -v '^ *+' conftest.er1 >conftest.err
2656 cat conftest.err >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); } &&
2659 { ac_try='test -z "$ac_c_werror_flag"
2660 || test ! -s conftest.err'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; } &&
2666 { ac_try='test -s conftest.$ac_objext'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680 cat >conftest.$ac_ext <<_ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>conftest.er1
2699 grep -v '^ *+' conftest.er1 >conftest.err
2701 cat conftest.err >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
2704 { ac_try='test -z "$ac_c_werror_flag"
2705 || test ! -s conftest.err'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726 if test -n "$ac_declaration"; then
2727 echo '#ifdef __cplusplus' >>confdefs.h
2728 echo $ac_declaration >>confdefs.h
2729 echo '#endif' >>confdefs.h
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2739 ac_cpp='$CPP $CPPFLAGS'
2740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2746 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2747 if test "${ac_cv_c_bigendian+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 # See if sys/param.h defines the BYTE_ORDER macro.
2751 cat >conftest.$ac_ext <<_ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h. */
2757 #include <sys/types.h>
2758 #include <sys/param.h>
2763 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2771 rm -f conftest.$ac_objext
2772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2773 (eval $ac_compile) 2>conftest.er1
2775 grep -v '^ *+' conftest.er1 >conftest.err
2777 cat conftest.err >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } &&
2780 { ac_try='test -z "$ac_c_werror_flag"
2781 || test ! -s conftest.err'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; } &&
2787 { ac_try='test -s conftest.$ac_objext'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2793 # It does; now see whether it defined to BIG_ENDIAN or not.
2794 cat >conftest.$ac_ext <<_ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2800 #include <sys/types.h>
2801 #include <sys/param.h>
2806 #if BYTE_ORDER != BIG_ENDIAN
2814 rm -f conftest.$ac_objext
2815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2816 (eval $ac_compile) 2>conftest.er1
2818 grep -v '^ *+' conftest.er1 >conftest.err
2820 cat conftest.err >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } &&
2823 { ac_try='test -z "$ac_c_werror_flag"
2824 || test ! -s conftest.err'
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; } &&
2830 { ac_try='test -s conftest.$ac_objext'
2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; }; then
2836 ac_cv_c_bigendian=yes
2838 echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2841 ac_cv_c_bigendian=no
2843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2845 echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2848 # It does not; compile a test program.
2849 if test "$cross_compiling" = yes; then
2850 # try to guess the endianness by grepping values into an object file
2851 ac_cv_c_bigendian=unknown
2852 cat >conftest.$ac_ext <<_ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2858 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2859 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2860 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2861 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2862 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2863 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2867 _ascii (); _ebcdic ();
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874 (eval $ac_compile) 2>conftest.er1
2876 grep -v '^ *+' conftest.er1 >conftest.err
2878 cat conftest.err >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try='test -z "$ac_c_werror_flag"
2882 || test ! -s conftest.err'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; } &&
2888 { ac_try='test -s conftest.$ac_objext'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2894 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2895 ac_cv_c_bigendian=yes
2897 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2898 if test "$ac_cv_c_bigendian" = unknown; then
2899 ac_cv_c_bigendian=no
2901 # finding both strings is unlikely to happen, but who knows?
2902 ac_cv_c_bigendian=unknown
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2912 cat >conftest.$ac_ext <<_ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2921 /* Are we little or big endian? From Harbison&Steele. */
2925 char c[sizeof (long)];
2928 exit (u.c[sizeof (long) - 1] == 1);
2931 rm -f conftest$ac_exeext
2932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2933 (eval $ac_link) 2>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2942 ac_cv_c_bigendian=no
2944 echo "$as_me: program exited with status $ac_status" >&5
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2949 ac_cv_c_bigendian=yes
2951 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2956 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2957 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2958 case $ac_cv_c_bigendian in
2966 { { echo "$as_me:$LINENO: error: unknown endianness
2967 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2968 echo "$as_me: error: unknown endianness
2969 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2970 { (exit 1); exit 1; }; } ;;
2974 if test -d "CVS" -o -d "${srcdir}/CVS"; then
2985 # Check whether --enable-optimized or --disable-optimized was given.
2986 if test "${enable_optimized+set}" = set; then
2987 enableval="$enable_optimized"
2992 if test ${enableval} = "no" ; then
2996 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
3000 # Check whether --enable-assertions or --disable-assertions was given.
3001 if test "${enable_assertions+set}" = set; then
3002 enableval="$enable_assertions"
3007 if test ${enableval} = "yes" ; then
3011 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
3015 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3016 if test "${enable_debug_runtime+set}" = set; then
3017 enableval="$enable_debug_runtime"
3022 if test ${enableval} = "no" ; then
3026 DEBUG_RUNTIME=DEBUG_RUNTIME=1
3030 # Check whether --enable-jit or --disable-jit was given.
3031 if test "${enable_jit+set}" = set; then
3032 enableval="$enable_jit"
3037 if test ${enableval} = "no"
3042 case "$llvm_cv_target_arch" in
3043 x86) TARGET_HAS_JIT=1
3045 Sparc) TARGET_HAS_JIT=1
3047 PowerPC) TARGET_HAS_JIT=1
3049 x86_64) TARGET_HAS_JIT=0
3051 Alpha) TARGET_HAS_JIT=1
3053 IA64) TARGET_HAS_JIT=0
3060 # Check whether --enable-doxygen or --disable-doxygen was given.
3061 if test "${enable_doxygen+set}" = set; then
3062 enableval="$enable_doxygen"
3067 case "$enableval" in
3068 yes) ENABLE_DOXYGEN=1
3070 no) ENABLE_DOXYGEN=0
3072 default) ENABLE_DOXYGEN=0
3074 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3075 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3076 { (exit 1); exit 1; }; } ;;
3079 # Check whether --enable-threads or --disable-threads was given.
3080 if test "${enable_threads+set}" = set; then
3081 enableval="$enable_threads"
3086 case "$enableval" in
3087 yes) ENABLE_THREADS=1
3089 no) ENABLE_THREADS=0
3091 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3092 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3093 { (exit 1); exit 1; }; } ;;
3096 cat >>confdefs.h <<_ACEOF
3097 #define ENABLE_THREADS $ENABLE_THREADS
3102 # Check whether --enable-targets or --disable-targets was given.
3103 if test "${enable_targets+set}" = set; then
3104 enableval="$enable_targets"
3109 case "$enableval" in
3110 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
3112 case "$llvm_cv_target_arch" in
3113 x86) TARGETS_TO_BUILD="X86" ;;
3114 x86_64) TARGETS_TO_BUILD="X86" ;;
3115 Sparc) TARGETS_TO_BUILD="Sparc" ;;
3116 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3117 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3118 IA64) TARGETS_TO_BUILD="IA64" ;;
3119 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3120 echo "$as_me: error: Can not set target to build" >&2;}
3121 { (exit 1); exit 1; }; } ;;
3124 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3126 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3127 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3128 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
3129 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3130 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3131 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3132 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3133 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3134 { (exit 1); exit 1; }; } ;;
3139 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3140 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3144 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3145 if test "${with_llvmgccdir+set}" = set; then
3146 withval="$with_llvmgccdir"
3152 default) WITH_LLVMGCCDIR=default ;;
3153 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
3154 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3155 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3156 { (exit 1); exit 1; }; } ;;
3162 ac_cpp='$CPP $CPPFLAGS'
3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3167 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3168 # On Suns, sometimes $CPP names a directory.
3169 if test -n "$CPP" && test -d "$CPP"; then
3172 if test -z "$CPP"; then
3173 if test "${ac_cv_prog_CPP+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 # Double quotes because CPP needs to be expanded
3177 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3180 for ac_c_preproc_warn_flag in '' yes
3182 # Use a header file that comes with gcc, so configuring glibc
3183 # with a fresh cross-compiler works.
3184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3185 # <limits.h> exists even on freestanding compilers.
3186 # On the NeXT, cc -E runs the code through the compiler's parser,
3187 # not just through cpp. "Syntax error" is here to catch this case.
3188 cat >conftest.$ac_ext <<_ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h. */
3195 # include <limits.h>
3197 # include <assert.h>
3201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3204 grep -v '^ *+' conftest.er1 >conftest.err
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } >/dev/null; then
3209 if test -s conftest.err; then
3210 ac_cpp_err=$ac_c_preproc_warn_flag
3211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3218 if test -z "$ac_cpp_err"; then
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3224 # Broken: fails on valid input.
3227 rm -f conftest.err conftest.$ac_ext
3229 # OK, works on sane cases. Now check whether non-existent headers
3230 # can be detected and how.
3231 cat >conftest.$ac_ext <<_ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3237 #include <ac_nonexistent.h>
3239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3242 grep -v '^ *+' conftest.er1 >conftest.err
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } >/dev/null; then
3247 if test -s conftest.err; then
3248 ac_cpp_err=$ac_c_preproc_warn_flag
3249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3256 if test -z "$ac_cpp_err"; then
3257 # Broken: success on invalid input.
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3263 # Passes both tests.
3267 rm -f conftest.err conftest.$ac_ext
3270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3271 rm -f conftest.err conftest.$ac_ext
3272 if $ac_preproc_ok; then
3284 echo "$as_me:$LINENO: result: $CPP" >&5
3285 echo "${ECHO_T}$CPP" >&6
3287 for ac_c_preproc_warn_flag in '' yes
3289 # Use a header file that comes with gcc, so configuring glibc
3290 # with a fresh cross-compiler works.
3291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3292 # <limits.h> exists even on freestanding compilers.
3293 # On the NeXT, cc -E runs the code through the compiler's parser,
3294 # not just through cpp. "Syntax error" is here to catch this case.
3295 cat >conftest.$ac_ext <<_ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3302 # include <limits.h>
3304 # include <assert.h>
3308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3311 grep -v '^ *+' conftest.er1 >conftest.err
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } >/dev/null; then
3316 if test -s conftest.err; then
3317 ac_cpp_err=$ac_c_preproc_warn_flag
3318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3325 if test -z "$ac_cpp_err"; then
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3331 # Broken: fails on valid input.
3334 rm -f conftest.err conftest.$ac_ext
3336 # OK, works on sane cases. Now check whether non-existent headers
3337 # can be detected and how.
3338 cat >conftest.$ac_ext <<_ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3344 #include <ac_nonexistent.h>
3346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3349 grep -v '^ *+' conftest.er1 >conftest.err
3351 cat conftest.err >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } >/dev/null; then
3354 if test -s conftest.err; then
3355 ac_cpp_err=$ac_c_preproc_warn_flag
3356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3363 if test -z "$ac_cpp_err"; then
3364 # Broken: success on invalid input.
3367 echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3370 # Passes both tests.
3374 rm -f conftest.err conftest.$ac_ext
3377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3378 rm -f conftest.err conftest.$ac_ext
3379 if $ac_preproc_ok; then
3382 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3383 See \`config.log' for more details." >&5
3384 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3385 See \`config.log' for more details." >&2;}
3386 { (exit 1); exit 1; }; }
3390 ac_cpp='$CPP $CPPFLAGS'
3391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396 ac_cpp='$CPP $CPPFLAGS'
3397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400 if test -n "$ac_tool_prefix"; then
3403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3405 echo "$as_me:$LINENO: checking for $ac_word" >&5
3406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3407 if test "${ac_cv_prog_CC+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 if test -n "$CC"; then
3411 ac_cv_prog_CC="$CC" # Let the user override the test.
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 if test -n "$CC"; then
3431 echo "$as_me:$LINENO: result: $CC" >&5
3432 echo "${ECHO_T}$CC" >&6
3434 echo "$as_me:$LINENO: result: no" >&5
3435 echo "${ECHO_T}no" >&6
3438 test -n "$CC" && break
3441 if test -z "$CC"; then
3445 # Extract the first word of "$ac_prog", so it can be a program name with args.
3446 set dummy $ac_prog; ac_word=$2
3447 echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 if test -n "$ac_ct_CC"; then
3453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 ac_cv_prog_ac_ct_CC="$ac_prog"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3472 if test -n "$ac_ct_CC"; then
3473 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3474 echo "${ECHO_T}$ac_ct_CC" >&6
3476 echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6
3480 test -n "$ac_ct_CC" && break
3487 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3488 See \`config.log' for more details." >&5
3489 echo "$as_me: error: no acceptable C compiler found in \$PATH
3490 See \`config.log' for more details." >&2;}
3491 { (exit 1); exit 1; }; }
3493 # Provide some information about the compiler.
3494 echo "$as_me:$LINENO:" \
3495 "checking for C compiler version" >&5
3496 ac_compiler=`set X $ac_compile; echo $2`
3497 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3498 (eval $ac_compiler --version </dev/null >&5) 2>&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }
3502 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3503 (eval $ac_compiler -v </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); }
3513 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3514 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3515 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 cat >conftest.$ac_ext <<_ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3536 rm -f conftest.$ac_objext
3537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3538 (eval $ac_compile) 2>conftest.er1
3540 grep -v '^ *+' conftest.er1 >conftest.err
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } &&
3545 { ac_try='test -z "$ac_c_werror_flag"
3546 || test ! -s conftest.err'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; } &&
3552 { ac_try='test -s conftest.$ac_objext'
3553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; }; then
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3569 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3570 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3571 GCC=`test $ac_compiler_gnu = yes && echo yes`
3572 ac_test_CFLAGS=${CFLAGS+set}
3573 ac_save_CFLAGS=$CFLAGS
3575 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3576 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3577 if test "${ac_cv_prog_cc_g+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 cat >conftest.$ac_ext <<_ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3595 rm -f conftest.$ac_objext
3596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597 (eval $ac_compile) 2>conftest.er1
3599 grep -v '^ *+' conftest.er1 >conftest.err
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } &&
3604 { ac_try='test -z "$ac_c_werror_flag"
3605 || test ! -s conftest.err'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; } &&
3611 { ac_try='test -s conftest.$ac_objext'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3626 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3627 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3628 if test "$ac_test_CFLAGS" = set; then
3629 CFLAGS=$ac_save_CFLAGS
3630 elif test $ac_cv_prog_cc_g = yes; then
3631 if test "$GCC" = yes; then
3637 if test "$GCC" = yes; then
3643 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3644 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3645 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 ac_cv_prog_cc_stdc=no
3650 cat >conftest.$ac_ext <<_ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3658 #include <sys/types.h>
3659 #include <sys/stat.h>
3660 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3661 struct buf { int x; };
3662 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3663 static char *e (p, i)
3669 static char *f (char * (*g) (char **, int), char **p, ...)
3674 s = g (p, va_arg (v,int));
3679 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3680 function prototypes and stuff, but not '\xHH' hex character constants.
3681 These don't provoke an error unfortunately, instead are silently treated
3682 as 'x'. The following induces an error, until -std1 is added to get
3683 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3684 array size at least. It's necessary to write '\x00'==0 to get something
3685 that's true only with -std1. */
3686 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3688 int test (int i, double x);
3689 struct s1 {int (*f) (int a);};
3690 struct s2 {int (*f) (double a);};
3691 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3697 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3702 # Don't try gcc -ansi; that turns off useful extensions and
3703 # breaks some systems' header files.
3704 # AIX -qlanglvl=ansi
3705 # Ultrix and OSF/1 -std1
3706 # HP-UX 10.20 and later -Ae
3707 # HP-UX older versions -Aa -D_HPUX_SOURCE
3708 # SVR4 -Xc -D__EXTENSIONS__
3709 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3711 CC="$ac_save_CC $ac_arg"
3712 rm -f conftest.$ac_objext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714 (eval $ac_compile) 2>conftest.er1
3716 grep -v '^ *+' conftest.er1 >conftest.err
3718 cat conftest.err >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } &&
3721 { ac_try='test -z "$ac_c_werror_flag"
3722 || test ! -s conftest.err'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; } &&
3728 { ac_try='test -s conftest.$ac_objext'
3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3734 ac_cv_prog_cc_stdc=$ac_arg
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3741 rm -f conftest.err conftest.$ac_objext
3743 rm -f conftest.$ac_ext conftest.$ac_objext
3748 case "x$ac_cv_prog_cc_stdc" in
3750 echo "$as_me:$LINENO: result: none needed" >&5
3751 echo "${ECHO_T}none needed" >&6 ;;
3753 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3754 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3755 CC="$CC $ac_cv_prog_cc_stdc" ;;
3758 # Some people use a C++ compiler to compile C. Since we use `exit',
3759 # in C++ we need to declare it. In case someone uses the same compiler
3760 # for both compiling C and C++ we need to have the C++ compiler decide
3761 # the declaration of exit, since it's the most demanding environment.
3762 cat >conftest.$ac_ext <<_ACEOF
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769 (eval $ac_compile) 2>conftest.er1
3771 grep -v '^ *+' conftest.er1 >conftest.err
3773 cat conftest.err >&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } &&
3776 { ac_try='test -z "$ac_c_werror_flag"
3777 || test ! -s conftest.err'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; } &&
3783 { ac_try='test -s conftest.$ac_objext'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 for ac_declaration in \
3791 'extern "C" void std::exit (int) throw (); using std::exit;' \
3792 'extern "C" void std::exit (int); using std::exit;' \
3793 'extern "C" void exit (int) throw ();' \
3794 'extern "C" void exit (int);' \
3797 cat >conftest.$ac_ext <<_ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3813 rm -f conftest.$ac_objext
3814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3815 (eval $ac_compile) 2>conftest.er1
3817 grep -v '^ *+' conftest.er1 >conftest.err
3819 cat conftest.err >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } &&
3822 { ac_try='test -z "$ac_c_werror_flag"
3823 || test ! -s conftest.err'
3824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; } &&
3829 { ac_try='test -s conftest.$ac_objext'
3830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; }; then
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3843 cat >conftest.$ac_ext <<_ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3858 rm -f conftest.$ac_objext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860 (eval $ac_compile) 2>conftest.er1
3862 grep -v '^ *+' conftest.er1 >conftest.err
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } &&
3867 { ac_try='test -z "$ac_c_werror_flag"
3868 || test ! -s conftest.err'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; } &&
3874 { ac_try='test -s conftest.$ac_objext'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3889 if test -n "$ac_declaration"; then
3890 echo '#ifdef __cplusplus' >>confdefs.h
3891 echo $ac_declaration >>confdefs.h
3892 echo '#endif' >>confdefs.h
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908 ac_cpp='$CXXCPP $CPPFLAGS'
3909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3912 if test -n "$ac_tool_prefix"; then
3913 for ac_prog in $CCC g++
3915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3917 echo "$as_me:$LINENO: checking for $ac_word" >&5
3918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919 if test "${ac_cv_prog_CXX+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 if test -n "$CXX"; then
3923 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 if test -n "$CXX"; then
3943 echo "$as_me:$LINENO: result: $CXX" >&5
3944 echo "${ECHO_T}$CXX" >&6
3946 echo "$as_me:$LINENO: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3950 test -n "$CXX" && break
3953 if test -z "$CXX"; then
3955 for ac_prog in $CCC g++
3957 # Extract the first word of "$ac_prog", so it can be a program name with args.
3958 set dummy $ac_prog; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 if test -n "$ac_ct_CXX"; then
3965 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_ac_ct_CXX="$ac_prog"
3975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3984 if test -n "$ac_ct_CXX"; then
3985 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3986 echo "${ECHO_T}$ac_ct_CXX" >&6
3988 echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3992 test -n "$ac_ct_CXX" && break
3994 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4000 # Provide some information about the compiler.
4001 echo "$as_me:$LINENO:" \
4002 "checking for C++ compiler version" >&5
4003 ac_compiler=`set X $ac_compile; echo $2`
4004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4005 (eval $ac_compiler --version </dev/null >&5) 2>&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }
4009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4010 (eval $ac_compiler -v </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); }
4020 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4021 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4022 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 cat >conftest.$ac_ext <<_ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4043 rm -f conftest.$ac_objext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045 (eval $ac_compile) 2>conftest.er1
4047 grep -v '^ *+' conftest.er1 >conftest.err
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } &&
4052 { ac_try='test -z "$ac_cxx_werror_flag"
4053 || test ! -s conftest.err'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; } &&
4059 { ac_try='test -s conftest.$ac_objext'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4076 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4077 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4078 GXX=`test $ac_compiler_gnu = yes && echo yes`
4079 ac_test_CXXFLAGS=${CXXFLAGS+set}
4080 ac_save_CXXFLAGS=$CXXFLAGS
4082 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4083 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4084 if test "${ac_cv_prog_cxx_g+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 cat >conftest.$ac_ext <<_ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4102 rm -f conftest.$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>conftest.er1
4106 grep -v '^ *+' conftest.er1 >conftest.err
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_cxx_werror_flag"
4112 || test ! -s conftest.err'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 ac_cv_prog_cxx_g=yes
4126 echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4133 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4134 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4135 if test "$ac_test_CXXFLAGS" = set; then
4136 CXXFLAGS=$ac_save_CXXFLAGS
4137 elif test $ac_cv_prog_cxx_g = yes; then
4138 if test "$GXX" = yes; then
4144 if test "$GXX" = yes; then
4150 for ac_declaration in \
4152 'extern "C" void std::exit (int) throw (); using std::exit;' \
4153 'extern "C" void std::exit (int); using std::exit;' \
4154 'extern "C" void exit (int) throw ();' \
4155 'extern "C" void exit (int);' \
4158 cat >conftest.$ac_ext <<_ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4174 rm -f conftest.$ac_objext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176 (eval $ac_compile) 2>conftest.er1
4178 grep -v '^ *+' conftest.er1 >conftest.err
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -z "$ac_cxx_werror_flag"
4184 || test ! -s conftest.err'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4204 cat >conftest.$ac_ext <<_ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4219 rm -f conftest.$ac_objext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221 (eval $ac_compile) 2>conftest.er1
4223 grep -v '^ *+' conftest.er1 >conftest.err
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -z "$ac_cxx_werror_flag"
4229 || test ! -s conftest.err'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; } &&
4235 { ac_try='test -s conftest.$ac_objext'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4243 echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4250 if test -n "$ac_declaration"; then
4251 echo '#ifdef __cplusplus' >>confdefs.h
4252 echo $ac_declaration >>confdefs.h
4253 echo '#endif' >>confdefs.h
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262 echo "$as_me:$LINENO: checking " >&5
4263 echo $ECHO_N "checking ... $ECHO_C" >&6
4264 if test "${ac_cv_has_flex+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 for ac_prog in flex lex
4269 # Extract the first word of "$ac_prog", so it can be a program name with args.
4270 set dummy $ac_prog; ac_word=$2
4271 echo "$as_me:$LINENO: checking for $ac_word" >&5
4272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4273 if test "${ac_cv_prog_LEX+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 if test -n "$LEX"; then
4277 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286 ac_cv_prog_LEX="$ac_prog"
4287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 if test -n "$LEX"; then
4297 echo "$as_me:$LINENO: result: $LEX" >&5
4298 echo "${ECHO_T}$LEX" >&6
4300 echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4304 test -n "$LEX" && break
4306 test -n "$LEX" || LEX=":"
4308 if test -z "$LEXLIB"
4310 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4311 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4312 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4315 ac_check_lib_save_LIBS=$LIBS
4317 cat >conftest.$ac_ext <<_ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h. */
4324 /* Override any gcc2 internal prototype to avoid an error. */
4328 /* We use char because int might match the return type of a gcc2
4329 builtin and then its argument prototype would still apply. */
4339 rm -f conftest.$ac_objext conftest$ac_exeext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4341 (eval $ac_link) 2>conftest.er1
4343 grep -v '^ *+' conftest.er1 >conftest.err
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
4348 { ac_try='test -z "$ac_c_werror_flag"
4349 || test ! -s conftest.err'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; } &&
4355 { ac_try='test -s conftest$ac_exeext'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; }; then
4361 ac_cv_lib_fl_yywrap=yes
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4366 ac_cv_lib_fl_yywrap=no
4368 rm -f conftest.err conftest.$ac_objext \
4369 conftest$ac_exeext conftest.$ac_ext
4370 LIBS=$ac_check_lib_save_LIBS
4372 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4373 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4374 if test $ac_cv_lib_fl_yywrap = yes; then
4377 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4378 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4379 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 ac_check_lib_save_LIBS=$LIBS
4384 cat >conftest.$ac_ext <<_ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4391 /* Override any gcc2 internal prototype to avoid an error. */
4395 /* We use char because int might match the return type of a gcc2
4396 builtin and then its argument prototype would still apply. */
4406 rm -f conftest.$ac_objext conftest$ac_exeext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4408 (eval $ac_link) 2>conftest.er1
4410 grep -v '^ *+' conftest.er1 >conftest.err
4412 cat conftest.err >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } &&
4415 { ac_try='test -z "$ac_c_werror_flag"
4416 || test ! -s conftest.err'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; } &&
4422 { ac_try='test -s conftest$ac_exeext'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 ac_cv_lib_l_yywrap=yes
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4433 ac_cv_lib_l_yywrap=no
4435 rm -f conftest.err conftest.$ac_objext \
4436 conftest$ac_exeext conftest.$ac_ext
4437 LIBS=$ac_check_lib_save_LIBS
4439 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4440 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4441 if test $ac_cv_lib_l_yywrap = yes; then
4449 if test "x$LEX" != "x:"; then
4450 echo "$as_me:$LINENO: checking lex output file root" >&5
4451 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4452 if test "${ac_cv_prog_lex_root+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 # The minimal lex program is just a single line: %%. But some broken lexes
4456 # (Solaris, I think it was) want two %% lines, so accommodate them.
4457 cat >conftest.l <<_ACEOF
4461 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4462 (eval $LEX conftest.l) 2>&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }
4466 if test -f lex.yy.c; then
4467 ac_cv_prog_lex_root=lex.yy
4468 elif test -f lexyy.c; then
4469 ac_cv_prog_lex_root=lexyy
4471 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4472 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4473 { (exit 1); exit 1; }; }
4476 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4477 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4479 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4481 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4482 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4483 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 # POSIX says lex can declare yytext either as a pointer or an array; the
4487 # default is implementation-dependent. Figure out which it is, since
4488 # not all implementations provide the %pointer and %array declarations.
4489 ac_cv_prog_lex_yytext_pointer=no
4490 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4492 LIBS="$LIBS $LEXLIB"
4493 cat >conftest.$ac_ext <<_ACEOF
4494 `cat $LEX_OUTPUT_ROOT.c`
4496 rm -f conftest.$ac_objext conftest$ac_exeext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4498 (eval $ac_link) 2>conftest.er1
4500 grep -v '^ *+' conftest.er1 >conftest.err
4502 cat conftest.err >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } &&
4505 { ac_try='test -z "$ac_c_werror_flag"
4506 || test ! -s conftest.err'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; } &&
4512 { ac_try='test -s conftest$ac_exeext'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4518 ac_cv_prog_lex_yytext_pointer=yes
4520 echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4524 rm -f conftest.err conftest.$ac_objext \
4525 conftest$ac_exeext conftest.$ac_ext
4527 rm -f "${LEX_OUTPUT_ROOT}.c"
4530 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4531 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4532 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4534 cat >>confdefs.h <<\_ACEOF
4535 #define YYTEXT_POINTER 1
4543 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4544 echo "${ECHO_T}$ac_cv_has_flex" >&6
4545 if test "$LEX" != "flex"; then
4546 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4547 echo "$as_me: error: flex not found but required" >&2;}
4548 { (exit 1); exit 1; }; }
4554 echo "$as_me:$LINENO: checking " >&5
4555 echo $ECHO_N "checking ... $ECHO_C" >&6
4556 if test "${llvm_cv_has_bison+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 for ac_prog in 'bison -y' byacc
4561 # Extract the first word of "$ac_prog", so it can be a program name with args.
4562 set dummy $ac_prog; ac_word=$2
4563 echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565 if test "${ac_cv_prog_YACC+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 if test -n "$YACC"; then
4569 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578 ac_cv_prog_YACC="$ac_prog"
4579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 YACC=$ac_cv_prog_YACC
4588 if test -n "$YACC"; then
4589 echo "$as_me:$LINENO: result: $YACC" >&5
4590 echo "${ECHO_T}$YACC" >&6
4592 echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4596 test -n "$YACC" && break
4598 test -n "$YACC" || YACC="yacc"
4601 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4602 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4603 if test "$YACC" != "bison -y"; then
4604 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4605 echo "$as_me: error: bison not found but required" >&2;}
4606 { (exit 1); exit 1; }; }
4612 echo "$as_me:$LINENO: checking for GNU make" >&5
4613 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4614 if test "${llvm_cv_gnu_make_command+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 llvm_cv_gnu_make_command=''
4618 for a in "$MAKE" make gmake gnumake ; do
4619 if test -z "$a" ; then continue ; fi ;
4620 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4622 llvm_cv_gnu_make_command=$a ;
4627 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4628 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4629 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4633 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4634 echo "${ECHO_T}\"Not found\"" >&6;
4638 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4639 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4641 if test "$LN_S" = "ln -s"; then
4642 echo "$as_me:$LINENO: result: yes" >&5
4643 echo "${ECHO_T}yes" >&6
4645 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4646 echo "${ECHO_T}no, using $LN_S" >&6
4649 # Extract the first word of "cmp", so it can be a program name with args.
4650 set dummy cmp; ac_word=$2
4651 echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653 if test "${ac_cv_path_CMP+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4681 if test -n "$CMP"; then
4682 echo "$as_me:$LINENO: result: $CMP" >&5
4683 echo "${ECHO_T}$CMP" >&6
4685 echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6
4689 # Extract the first word of "cp", so it can be a program name with args.
4690 set dummy cp; ac_word=$2
4691 echo "$as_me:$LINENO: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4693 if test "${ac_cv_path_CP+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4721 if test -n "$CP"; then
4722 echo "$as_me:$LINENO: result: $CP" >&5
4723 echo "${ECHO_T}$CP" >&6
4725 echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6
4729 # Extract the first word of "date", so it can be a program name with args.
4730 set dummy date; ac_word=$2
4731 echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4733 if test "${ac_cv_path_DATE+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4759 DATE=$ac_cv_path_DATE
4761 if test -n "$DATE"; then
4762 echo "$as_me:$LINENO: result: $DATE" >&5
4763 echo "${ECHO_T}$DATE" >&6
4765 echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6
4769 # Extract the first word of "find", so it can be a program name with args.
4770 set dummy find; ac_word=$2
4771 echo "$as_me:$LINENO: checking for $ac_word" >&5
4772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4773 if test "${ac_cv_path_FIND+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4799 FIND=$ac_cv_path_FIND
4801 if test -n "$FIND"; then
4802 echo "$as_me:$LINENO: result: $FIND" >&5
4803 echo "${ECHO_T}$FIND" >&6
4805 echo "$as_me:$LINENO: result: no" >&5
4806 echo "${ECHO_T}no" >&6
4809 # Extract the first word of "grep", so it can be a program name with args.
4810 set dummy grep; ac_word=$2
4811 echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4813 if test "${ac_cv_path_GREP+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4839 GREP=$ac_cv_path_GREP
4841 if test -n "$GREP"; then
4842 echo "$as_me:$LINENO: result: $GREP" >&5
4843 echo "${ECHO_T}$GREP" >&6
4845 echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6
4849 # Extract the first word of "mkdir", so it can be a program name with args.
4850 set dummy mkdir; ac_word=$2
4851 echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853 if test "${ac_cv_path_MKDIR+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4879 MKDIR=$ac_cv_path_MKDIR
4881 if test -n "$MKDIR"; then
4882 echo "$as_me:$LINENO: result: $MKDIR" >&5
4883 echo "${ECHO_T}$MKDIR" >&6
4885 echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4889 # Extract the first word of "mv", so it can be a program name with args.
4890 set dummy mv; ac_word=$2
4891 echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893 if test "${ac_cv_path_MV+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4921 if test -n "$MV"; then
4922 echo "$as_me:$LINENO: result: $MV" >&5
4923 echo "${ECHO_T}$MV" >&6
4925 echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6
4929 if test -n "$ac_tool_prefix"; then
4930 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4931 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4932 echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4934 if test "${ac_cv_prog_RANLIB+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 if test -n "$RANLIB"; then
4938 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 RANLIB=$ac_cv_prog_RANLIB
4957 if test -n "$RANLIB"; then
4958 echo "$as_me:$LINENO: result: $RANLIB" >&5
4959 echo "${ECHO_T}$RANLIB" >&6
4961 echo "$as_me:$LINENO: result: no" >&5
4962 echo "${ECHO_T}no" >&6
4966 if test -z "$ac_cv_prog_RANLIB"; then
4967 ac_ct_RANLIB=$RANLIB
4968 # Extract the first word of "ranlib", so it can be a program name with args.
4969 set dummy ranlib; ac_word=$2
4970 echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4972 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 if test -n "$ac_ct_RANLIB"; then
4976 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985 ac_cv_prog_ac_ct_RANLIB="ranlib"
4986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4995 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4996 if test -n "$ac_ct_RANLIB"; then
4997 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4998 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5000 echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6
5004 RANLIB=$ac_ct_RANLIB
5006 RANLIB="$ac_cv_prog_RANLIB"
5009 # Extract the first word of "rm", so it can be a program name with args.
5010 set dummy rm; ac_word=$2
5011 echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013 if test "${ac_cv_path_RM+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5041 if test -n "$RM"; then
5042 echo "$as_me:$LINENO: result: $RM" >&5
5043 echo "${ECHO_T}$RM" >&6
5045 echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5049 # Extract the first word of "sed", so it can be a program name with args.
5050 set dummy sed; ac_word=$2
5051 echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5053 if test "${ac_cv_path_SED+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5081 if test -n "$SED"; then
5082 echo "$as_me:$LINENO: result: $SED" >&5
5083 echo "${ECHO_T}$SED" >&6
5085 echo "$as_me:$LINENO: result: no" >&5
5086 echo "${ECHO_T}no" >&6
5089 # Extract the first word of "tar", so it can be a program name with args.
5090 set dummy tar; ac_word=$2
5091 echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5093 if test "${ac_cv_path_TAR+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5121 if test -n "$TAR"; then
5122 echo "$as_me:$LINENO: result: $TAR" >&5
5123 echo "${ECHO_T}$TAR" >&6
5125 echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6
5130 # Extract the first word of "Graphviz", so it can be a program name with args.
5131 set dummy Graphviz; ac_word=$2
5132 echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5134 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5149 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5160 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5162 if test -n "$GRAPHVIZ"; then
5163 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5164 echo "${ECHO_T}$GRAPHVIZ" >&6
5166 echo "$as_me:$LINENO: result: no" >&5
5167 echo "${ECHO_T}no" >&6
5170 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5172 cat >>confdefs.h <<\_ACEOF
5173 #define HAVE_GRAPHVIZ 1
5176 if test "$llvm_cv_os_type" == "MingW" ; then
5177 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5180 cat >>confdefs.h <<_ACEOF
5181 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
5185 # Extract the first word of "dot", so it can be a program name with args.
5186 set dummy dot; ac_word=$2
5187 echo "$as_me:$LINENO: checking for $ac_word" >&5
5188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189 if test "${ac_cv_path_DOT+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
5217 if test -n "$DOT"; then
5218 echo "$as_me:$LINENO: result: $DOT" >&5
5219 echo "${ECHO_T}$DOT" >&6
5221 echo "$as_me:$LINENO: result: no" >&5
5222 echo "${ECHO_T}no" >&6
5225 if test "$DOT" != "echo dot" ; then
5227 cat >>confdefs.h <<\_ACEOF
5231 if test "$llvm_cv_os_type" == "MingW" ; then
5232 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5235 cat >>confdefs.h <<_ACEOF
5236 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
5240 for ac_prog in gv gsview32
5242 # Extract the first word of "$ac_prog", so it can be a program name with args.
5243 set dummy $ac_prog; ac_word=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_path_GV+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5261 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 if test -n "$GV"; then
5274 echo "$as_me:$LINENO: result: $GV" >&5
5275 echo "${ECHO_T}$GV" >&6
5277 echo "$as_me:$LINENO: result: no" >&5
5278 echo "${ECHO_T}no" >&6
5281 test -n "$GV" && break
5283 test -n "$GV" || GV="echo gv"
5285 if test "$GV" != "echo gv" ; then
5287 cat >>confdefs.h <<\_ACEOF
5291 if test "$llvm_cv_os_type" == "MingW" ; then
5292 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5295 cat >>confdefs.h <<_ACEOF
5296 #define LLVM_PATH_GV "$GV${EXEEXT}"
5300 # Extract the first word of "dotty", so it can be a program name with args.
5301 set dummy dotty; ac_word=$2
5302 echo "$as_me:$LINENO: checking for $ac_word" >&5
5303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5304 if test "${ac_cv_path_DOTTY+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5309 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 test -z "$as_dir" && as_dir=.
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5319 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
5320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
5330 DOTTY=$ac_cv_path_DOTTY
5332 if test -n "$DOTTY"; then
5333 echo "$as_me:$LINENO: result: $DOTTY" >&5
5334 echo "${ECHO_T}$DOTTY" >&6
5336 echo "$as_me:$LINENO: result: no" >&5
5337 echo "${ECHO_T}no" >&6
5340 if test "$DOTTY" != "echo dotty" ; then
5342 cat >>confdefs.h <<\_ACEOF
5343 #define HAVE_DOTTY 1
5346 if test "$llvm_cv_os_type" == "MingW" ; then
5347 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5350 cat >>confdefs.h <<_ACEOF
5351 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
5357 # Extract the first word of "perl", so it can be a program name with args.
5358 set dummy perl; ac_word=$2
5359 echo "$as_me:$LINENO: checking for $ac_word" >&5
5360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5361 if test "${ac_cv_path_PERL+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 test -z "$as_dir" && as_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5376 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5387 PERL=$ac_cv_path_PERL
5389 if test -n "$PERL"; then
5390 echo "$as_me:$LINENO: result: $PERL" >&5
5391 echo "${ECHO_T}$PERL" >&6
5393 echo "$as_me:$LINENO: result: no" >&5
5394 echo "${ECHO_T}no" >&6
5397 if test "$PERL" != "none"; then
5398 echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5399 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5400 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5401 echo "$as_me:$LINENO: result: yes" >&5
5402 echo "${ECHO_T}yes" >&6
5405 echo "$as_me:$LINENO: result: not found" >&5
5406 echo "${ECHO_T}not found" >&6
5411 if test x"$PERL" = xnone; then
5419 # Find a good install program. We prefer a C program (faster),
5420 # so one script is as good as another. But avoid the broken or
5421 # incompatible versions:
5422 # SysV /etc/install, /usr/sbin/install
5423 # SunOS /usr/etc/install
5424 # IRIX /sbin/install
5426 # AmigaOS /C/install, which installs bootblocks on floppy discs
5427 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5428 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5429 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5430 # OS/2's system install, which has a completely different semantic
5431 # ./install, which can be erroneously created by make from ./install.sh.
5432 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5433 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5434 if test -z "$INSTALL"; then
5435 if test "${ac_cv_path_install+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 test -z "$as_dir" && as_dir=.
5443 # Account for people who put trailing slashes in PATH elements.
5445 ./ | .// | /cC/* | \
5446 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5447 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5450 # OSF1 and SCO ODT 3.0 have their own names for install.
5451 # Don't use installbsd from OSF since it installs stuff as root
5453 for ac_prog in ginstall scoinst install; do
5454 for ac_exec_ext in '' $ac_executable_extensions; do
5455 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5456 if test $ac_prog = install &&
5457 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5458 # AIX install. It has an incompatible calling convention.
5460 elif test $ac_prog = install &&
5461 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5462 # program-specific install script used by HP pwplus--don't use.
5465 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5477 if test "${ac_cv_path_install+set}" = set; then
5478 INSTALL=$ac_cv_path_install
5480 # As a last resort, use the slow shell script. We don't cache a
5481 # path for INSTALL within a source directory, because that will
5482 # break other packages using the cache if that directory is
5483 # removed, or if the path is relative.
5484 INSTALL=$ac_install_sh
5487 echo "$as_me:$LINENO: result: $INSTALL" >&5
5488 echo "${ECHO_T}$INSTALL" >&6
5490 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5491 # It thinks the first close brace ends the variable substitution.
5492 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5494 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5496 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5499 # Extract the first word of "bzip2", so it can be a program name with args.
5500 set dummy bzip2; ac_word=$2
5501 echo "$as_me:$LINENO: checking for $ac_word" >&5
5502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5503 if test "${ac_cv_path_BZIP2+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 test -z "$as_dir" && as_dir=.
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
5529 BZIP2=$ac_cv_path_BZIP2
5531 if test -n "$BZIP2"; then
5532 echo "$as_me:$LINENO: result: $BZIP2" >&5
5533 echo "${ECHO_T}$BZIP2" >&6
5535 echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6
5539 # Extract the first word of "doxygen", so it can be a program name with args.
5540 set dummy doxygen; ac_word=$2
5541 echo "$as_me:$LINENO: checking for $ac_word" >&5
5542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5543 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 test -z "$as_dir" && as_dir=.
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5558 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
5569 DOXYGEN=$ac_cv_path_DOXYGEN
5571 if test -n "$DOXYGEN"; then
5572 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5573 echo "${ECHO_T}$DOXYGEN" >&6
5575 echo "$as_me:$LINENO: result: no" >&5
5576 echo "${ECHO_T}no" >&6
5579 # Extract the first word of "etags", so it can be a program name with args.
5580 set dummy etags; ac_word=$2
5581 echo "$as_me:$LINENO: checking for $ac_word" >&5
5582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5583 if test "${ac_cv_path_ETAGS+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5605 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
5609 ETAGS=$ac_cv_path_ETAGS
5611 if test -n "$ETAGS"; then
5612 echo "$as_me:$LINENO: result: $ETAGS" >&5
5613 echo "${ECHO_T}$ETAGS" >&6
5615 echo "$as_me:$LINENO: result: no" >&5
5616 echo "${ECHO_T}no" >&6
5619 # Extract the first word of "groff", so it can be a program name with args.
5620 set dummy groff; ac_word=$2
5621 echo "$as_me:$LINENO: checking for $ac_word" >&5
5622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5623 if test "${ac_cv_path_GROFF+set}" = set; then
5624 echo $ECHO_N "(cached) $ECHO_C" >&6
5628 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 test -z "$as_dir" && as_dir=.
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5638 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5645 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
5649 GROFF=$ac_cv_path_GROFF
5651 if test -n "$GROFF"; then
5652 echo "$as_me:$LINENO: result: $GROFF" >&5
5653 echo "${ECHO_T}$GROFF" >&6
5655 echo "$as_me:$LINENO: result: no" >&5
5656 echo "${ECHO_T}no" >&6
5659 # Extract the first word of "gzip", so it can be a program name with args.
5660 set dummy gzip; ac_word=$2
5661 echo "$as_me:$LINENO: checking for $ac_word" >&5
5662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5663 if test "${ac_cv_path_GZIP+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 test -z "$as_dir" && as_dir=.
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5678 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5685 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
5689 GZIP=$ac_cv_path_GZIP
5691 if test -n "$GZIP"; then
5692 echo "$as_me:$LINENO: result: $GZIP" >&5
5693 echo "${ECHO_T}$GZIP" >&6
5695 echo "$as_me:$LINENO: result: no" >&5
5696 echo "${ECHO_T}no" >&6
5699 # Extract the first word of "pod2html", so it can be a program name with args.
5700 set dummy pod2html; ac_word=$2
5701 echo "$as_me:$LINENO: checking for $ac_word" >&5
5702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5703 if test "${ac_cv_path_POD2HTML+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
5729 POD2HTML=$ac_cv_path_POD2HTML
5731 if test -n "$POD2HTML"; then
5732 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5733 echo "${ECHO_T}$POD2HTML" >&6
5735 echo "$as_me:$LINENO: result: no" >&5
5736 echo "${ECHO_T}no" >&6
5739 # Extract the first word of "pod2man", so it can be a program name with args.
5740 set dummy pod2man; ac_word=$2
5741 echo "$as_me:$LINENO: checking for $ac_word" >&5
5742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5743 if test "${ac_cv_path_POD2MAN+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
5769 POD2MAN=$ac_cv_path_POD2MAN
5771 if test -n "$POD2MAN"; then
5772 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5773 echo "${ECHO_T}$POD2MAN" >&6
5775 echo "$as_me:$LINENO: result: no" >&5
5776 echo "${ECHO_T}no" >&6
5779 # Extract the first word of "runtest", so it can be a program name with args.
5780 set dummy runtest; ac_word=$2
5781 echo "$as_me:$LINENO: checking for $ac_word" >&5
5782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5783 if test "${ac_cv_path_RUNTEST+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 test -z "$as_dir" && as_dir=.
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5798 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
5809 RUNTEST=$ac_cv_path_RUNTEST
5811 if test -n "$RUNTEST"; then
5812 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5813 echo "${ECHO_T}$RUNTEST" >&6
5815 echo "$as_me:$LINENO: result: no" >&5
5816 echo "${ECHO_T}no" >&6
5821 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5822 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5824 # Check whether --with-tclinclude or --without-tclinclude was given.
5825 if test "${with_tclinclude+set}" = set; then
5826 withval="$with_tclinclude"
5827 with_tclinclude=${withval}
5831 if test "${ac_cv_path_tclsh+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 if test x"${with_tclinclude}" != x ; then
5836 if test -f ${with_tclinclude}/tclsh ; then
5837 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5838 elif test -f ${with_tclinclude}/src/tclsh ; then
5839 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5841 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5842 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5843 { (exit 1); exit 1; }; }
5847 if test x"${ac_cv_path_tclsh}" = x ; then
5848 echo "$as_me:$LINENO: result: none" >&5
5849 echo "${ECHO_T}none" >&6
5850 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
5852 # Extract the first word of "$ac_prog", so it can be a program name with args.
5853 set dummy $ac_prog; ac_word=$2
5854 echo "$as_me:$LINENO: checking for $ac_word" >&5
5855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5856 if test "${ac_cv_path_TCLSH+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5871 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 TCLSH=$ac_cv_path_TCLSH
5883 if test -n "$TCLSH"; then
5884 echo "$as_me:$LINENO: result: $TCLSH" >&5
5885 echo "${ECHO_T}$TCLSH" >&6
5887 echo "$as_me:$LINENO: result: no" >&5
5888 echo "${ECHO_T}no" >&6
5891 test -n "$TCLSH" && break
5894 if test x"${TCLSH}" = x ; then
5895 ac_cv_path_tclsh='';
5897 ac_cv_path_tclsh="${TCLSH}";
5900 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5901 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5902 TCLSH="${ac_cv_path_tclsh}"
5908 # Extract the first word of "zip", so it can be a program name with args.
5909 set dummy zip; ac_word=$2
5910 echo "$as_me:$LINENO: checking for $ac_word" >&5
5911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5912 if test "${ac_cv_path_ZIP+set}" = set; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
5940 if test -n "$ZIP"; then
5941 echo "$as_me:$LINENO: result: $ZIP" >&5
5942 echo "${ECHO_T}$ZIP" >&6
5944 echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5949 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5950 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5951 if test "${llvm_cv_link_use_r+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 ac_cpp='$CPP $CPPFLAGS'
5956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5961 CFLAGS="$CFLAGS -Wl,-R."
5962 cat >conftest.$ac_ext <<_ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5972 int main() { return 0; }
5977 rm -f conftest.$ac_objext conftest$ac_exeext
5978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5979 (eval $ac_link) 2>conftest.er1
5981 grep -v '^ *+' conftest.er1 >conftest.err
5983 cat conftest.err >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } &&
5986 { ac_try='test -z "$ac_c_werror_flag"
5987 || test ! -s conftest.err'
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; } &&
5993 { ac_try='test -s conftest$ac_exeext'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; }; then
5999 llvm_cv_link_use_r=yes
6001 echo "$as_me: failed program was:" >&5
6002 sed 's/^/| /' conftest.$ac_ext >&5
6004 llvm_cv_link_use_r=no
6006 rm -f conftest.err conftest.$ac_objext \
6007 conftest$ac_exeext conftest.$ac_ext
6010 ac_cpp='$CPP $CPPFLAGS'
6011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6017 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
6018 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
6019 if test "$llvm_cv_link_use_r" = yes ; then
6021 cat >>confdefs.h <<\_ACEOF
6022 #define HAVE_LINK_R 1
6030 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6031 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6032 if test "${ac_cv_c_const+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 cat >conftest.$ac_ext <<_ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6045 /* FIXME: Include the comments suggested by Paul. */
6047 /* Ultrix mips cc rejects this. */
6048 typedef int charset[2];
6050 /* SunOS 4.1.1 cc rejects this. */
6051 char const *const *ccp;
6053 /* NEC SVR4.0.2 mips cc rejects this. */
6054 struct point {int x, y;};
6055 static struct point const zero = {0,0};
6056 /* AIX XL C 1.02.0.0 rejects this.
6057 It does not let you subtract one const X* pointer from another in
6058 an arm of an if-expression whose if-part is not a constant
6060 const char *g = "string";
6061 ccp = &g + (g ? g-g : 0);
6062 /* HPUX 7.0 cc rejects these. */
6065 ccp = (char const *const *) p;
6066 { /* SCO 3.2v4 cc rejects this. */
6068 char const *s = 0 ? (char *) 0 : (char const *) 0;
6072 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6074 const int *foo = &x[0];
6077 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6078 typedef const int *iptr;
6082 { /* AIX XL C 1.02.0.0 rejects this saying
6083 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6084 struct s { int j; const int *ap[3]; };
6085 struct s *b; b->j = 5;
6087 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6096 rm -f conftest.$ac_objext
6097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6098 (eval $ac_compile) 2>conftest.er1
6100 grep -v '^ *+' conftest.er1 >conftest.err
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } &&
6105 { ac_try='test -z "$ac_c_werror_flag"
6106 || test ! -s conftest.err'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; } &&
6112 { ac_try='test -s conftest.$ac_objext'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6120 echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6127 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6128 echo "${ECHO_T}$ac_cv_c_const" >&6
6129 if test $ac_cv_c_const = no; then
6131 cat >>confdefs.h <<\_ACEOF
6138 echo "$as_me:$LINENO: checking for egrep" >&5
6139 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6140 if test "${ac_cv_prog_egrep+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6144 then ac_cv_prog_egrep='grep -E'
6145 else ac_cv_prog_egrep='egrep'
6148 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6149 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6150 EGREP=$ac_cv_prog_egrep
6153 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6154 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6155 if test "${ac_cv_header_stdc+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 cat >conftest.$ac_ext <<_ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h. */
6177 rm -f conftest.$ac_objext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179 (eval $ac_compile) 2>conftest.er1
6181 grep -v '^ *+' conftest.er1 >conftest.err
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } &&
6186 { ac_try='test -z "$ac_c_werror_flag"
6187 || test ! -s conftest.err'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; } &&
6193 { ac_try='test -s conftest.$ac_objext'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; }; then
6199 ac_cv_header_stdc=yes
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6204 ac_cv_header_stdc=no
6206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6208 if test $ac_cv_header_stdc = yes; then
6209 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6210 cat >conftest.$ac_ext <<_ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h. */
6219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6220 $EGREP "memchr" >/dev/null 2>&1; then
6223 ac_cv_header_stdc=no
6229 if test $ac_cv_header_stdc = yes; then
6230 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6231 cat >conftest.$ac_ext <<_ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6241 $EGREP "free" >/dev/null 2>&1; then
6244 ac_cv_header_stdc=no
6250 if test $ac_cv_header_stdc = yes; then
6251 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6252 if test "$cross_compiling" = yes; then
6255 cat >conftest.$ac_ext <<_ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6262 #if ((' ' & 0x0FF) == 0x020)
6263 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6264 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6266 # define ISLOWER(c) \
6267 (('a' <= (c) && (c) <= 'i') \
6268 || ('j' <= (c) && (c) <= 'r') \
6269 || ('s' <= (c) && (c) <= 'z'))
6270 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6273 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6278 for (i = 0; i < 256; i++)
6279 if (XOR (islower (i), ISLOWER (i))
6280 || toupper (i) != TOUPPER (i))
6285 rm -f conftest$ac_exeext
6286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6287 (eval $ac_link) 2>&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6298 echo "$as_me: program exited with status $ac_status" >&5
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6303 ac_cv_header_stdc=no
6305 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6309 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6310 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6311 if test $ac_cv_header_stdc = yes; then
6313 cat >>confdefs.h <<\_ACEOF
6314 #define STDC_HEADERS 1
6325 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6326 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6327 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6328 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6332 cat >conftest.$ac_ext <<_ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6338 #include <sys/types.h>
6350 rm -f conftest.$ac_objext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6352 (eval $ac_compile) 2>conftest.er1
6354 grep -v '^ *+' conftest.er1 >conftest.err
6356 cat conftest.err >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } &&
6359 { ac_try='test -z "$ac_c_werror_flag"
6360 || test ! -s conftest.err'
6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; } &&
6366 { ac_try='test -s conftest.$ac_objext'
6367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); }; }; then
6372 eval "$as_ac_Header=yes"
6374 echo "$as_me: failed program was:" >&5
6375 sed 's/^/| /' conftest.$ac_ext >&5
6377 eval "$as_ac_Header=no"
6379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6384 cat >>confdefs.h <<_ACEOF
6385 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6388 ac_header_dirent=$ac_hdr; break
6392 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6393 if test $ac_header_dirent = dirent.h; then
6394 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6395 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6396 if test "${ac_cv_search_opendir+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 ac_func_search_save_LIBS=$LIBS
6400 ac_cv_search_opendir=no
6401 cat >conftest.$ac_ext <<_ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6408 /* Override any gcc2 internal prototype to avoid an error. */
6412 /* We use char because int might match the return type of a gcc2
6413 builtin and then its argument prototype would still apply. */
6423 rm -f conftest.$ac_objext conftest$ac_exeext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6425 (eval $ac_link) 2>conftest.er1
6427 grep -v '^ *+' conftest.er1 >conftest.err
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } &&
6432 { ac_try='test -z "$ac_c_werror_flag"
6433 || test ! -s conftest.err'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; } &&
6439 { ac_try='test -s conftest$ac_exeext'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; }; then
6445 ac_cv_search_opendir="none required"
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6451 rm -f conftest.err conftest.$ac_objext \
6452 conftest$ac_exeext conftest.$ac_ext
6453 if test "$ac_cv_search_opendir" = no; then
6454 for ac_lib in dir; do
6455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6456 cat >conftest.$ac_ext <<_ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6463 /* Override any gcc2 internal prototype to avoid an error. */
6467 /* We use char because int might match the return type of a gcc2
6468 builtin and then its argument prototype would still apply. */
6478 rm -f conftest.$ac_objext conftest$ac_exeext
6479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6480 (eval $ac_link) 2>conftest.er1
6482 grep -v '^ *+' conftest.er1 >conftest.err
6484 cat conftest.err >&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } &&
6487 { ac_try='test -z "$ac_c_werror_flag"
6488 || test ! -s conftest.err'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; } &&
6494 { ac_try='test -s conftest$ac_exeext'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; }; then
6500 ac_cv_search_opendir="-l$ac_lib"
6503 echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6507 rm -f conftest.err conftest.$ac_objext \
6508 conftest$ac_exeext conftest.$ac_ext
6511 LIBS=$ac_func_search_save_LIBS
6513 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6514 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6515 if test "$ac_cv_search_opendir" != no; then
6516 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6521 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6522 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6523 if test "${ac_cv_search_opendir+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 ac_func_search_save_LIBS=$LIBS
6527 ac_cv_search_opendir=no
6528 cat >conftest.$ac_ext <<_ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6535 /* Override any gcc2 internal prototype to avoid an error. */
6539 /* We use char because int might match the return type of a gcc2
6540 builtin and then its argument prototype would still apply. */
6550 rm -f conftest.$ac_objext conftest$ac_exeext
6551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6552 (eval $ac_link) 2>conftest.er1
6554 grep -v '^ *+' conftest.er1 >conftest.err
6556 cat conftest.err >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } &&
6559 { ac_try='test -z "$ac_c_werror_flag"
6560 || test ! -s conftest.err'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; } &&
6566 { ac_try='test -s conftest$ac_exeext'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6572 ac_cv_search_opendir="none required"
6574 echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6578 rm -f conftest.err conftest.$ac_objext \
6579 conftest$ac_exeext conftest.$ac_ext
6580 if test "$ac_cv_search_opendir" = no; then
6582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6583 cat >conftest.$ac_ext <<_ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6590 /* Override any gcc2 internal prototype to avoid an error. */
6594 /* We use char because int might match the return type of a gcc2
6595 builtin and then its argument prototype would still apply. */
6605 rm -f conftest.$ac_objext conftest$ac_exeext
6606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6607 (eval $ac_link) 2>conftest.er1
6609 grep -v '^ *+' conftest.er1 >conftest.err
6611 cat conftest.err >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } &&
6614 { ac_try='test -z "$ac_c_werror_flag"
6615 || test ! -s conftest.err'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; } &&
6621 { ac_try='test -s conftest$ac_exeext'
6622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); }; }; then
6627 ac_cv_search_opendir="-l$ac_lib"
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6634 rm -f conftest.err conftest.$ac_objext \
6635 conftest$ac_exeext conftest.$ac_ext
6638 LIBS=$ac_func_search_save_LIBS
6640 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6641 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6642 if test "$ac_cv_search_opendir" != no; then
6643 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6649 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6659 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6660 inttypes.h stdint.h unistd.h
6662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6663 echo "$as_me:$LINENO: checking for $ac_header" >&5
6664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 cat >conftest.$ac_ext <<_ACEOF
6671 cat confdefs.h >>conftest.$ac_ext
6672 cat >>conftest.$ac_ext <<_ACEOF
6673 /* end confdefs.h. */
6674 $ac_includes_default
6676 #include <$ac_header>
6678 rm -f conftest.$ac_objext
6679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6680 (eval $ac_compile) 2>conftest.er1
6682 grep -v '^ *+' conftest.er1 >conftest.err
6684 cat conftest.err >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } &&
6687 { ac_try='test -z "$ac_c_werror_flag"
6688 || test ! -s conftest.err'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; } &&
6694 { ac_try='test -s conftest.$ac_objext'
6695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; }; then
6700 eval "$as_ac_Header=yes"
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6705 eval "$as_ac_Header=no"
6707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6712 cat >>confdefs.h <<_ACEOF
6713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6722 for ac_header in dlfcn.h
6724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6726 echo "$as_me:$LINENO: checking for $ac_header" >&5
6727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6734 # Is the header compilable?
6735 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6737 cat >conftest.$ac_ext <<_ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6743 $ac_includes_default
6744 #include <$ac_header>
6746 rm -f conftest.$ac_objext
6747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6748 (eval $ac_compile) 2>conftest.er1
6750 grep -v '^ *+' conftest.er1 >conftest.err
6752 cat conftest.err >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } &&
6755 { ac_try='test -z "$ac_c_werror_flag"
6756 || test ! -s conftest.err'
6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }; } &&
6762 { ac_try='test -s conftest.$ac_objext'
6763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); }; }; then
6768 ac_header_compiler=yes
6770 echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6773 ac_header_compiler=no
6775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6776 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6777 echo "${ECHO_T}$ac_header_compiler" >&6
6779 # Is the header present?
6780 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6782 cat >conftest.$ac_ext <<_ACEOF
6785 cat confdefs.h >>conftest.$ac_ext
6786 cat >>conftest.$ac_ext <<_ACEOF
6787 /* end confdefs.h. */
6788 #include <$ac_header>
6790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6793 grep -v '^ *+' conftest.er1 >conftest.err
6795 cat conftest.err >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } >/dev/null; then
6798 if test -s conftest.err; then
6799 ac_cpp_err=$ac_c_preproc_warn_flag
6800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6807 if test -z "$ac_cpp_err"; then
6808 ac_header_preproc=yes
6810 echo "$as_me: failed program was:" >&5
6811 sed 's/^/| /' conftest.$ac_ext >&5
6813 ac_header_preproc=no
6815 rm -f conftest.err conftest.$ac_ext
6816 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6817 echo "${ECHO_T}$ac_header_preproc" >&6
6819 # So? What about this header?
6820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6826 ac_header_preproc=yes
6829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6832 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6836 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6843 ## ----------------------------------- ##
6844 ## Report this to llvmbugs@cs.uiuc.edu ##
6845 ## ----------------------------------- ##
6848 sed "s/^/$as_me: WARNING: /" >&2
6851 echo "$as_me:$LINENO: checking for $ac_header" >&5
6852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 eval "$as_ac_Header=\$ac_header_preproc"
6858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6863 cat >>confdefs.h <<_ACEOF
6864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6871 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6872 if test "${enable_ltdl_install+set}" = set; then
6873 enableval="$enable_ltdl_install"
6879 if test x"${enable_ltdl_install-no}" != xno; then
6881 INSTALL_LTDL_FALSE='#'
6883 INSTALL_LTDL_TRUE='#'
6889 if test x"${enable_ltdl_convenience-no}" != xno; then
6890 CONVENIENCE_LTDL_TRUE=
6891 CONVENIENCE_LTDL_FALSE='#'
6893 CONVENIENCE_LTDL_TRUE='#'
6894 CONVENIENCE_LTDL_FALSE=
6898 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6899 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6901 libname_spec='lib$name'
6909 shlibpath_overrides_runpath=unknown
6911 dynamic_linker="$host_os ld.so"
6912 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6913 if test "$GCC" = yes; then
6914 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6915 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6916 # if the path contains ";" then we assume it to be the separator
6917 # otherwise default to the standard path separator (i.e. ":") - it is
6918 # assumed that no part of a normal pathname contains ";" but that should
6919 # okay in the real world where ";" in dirpaths is itself problematic.
6920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6925 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6927 need_lib_prefix=unknown
6928 hardcode_into_libs=no
6930 # when you set need_version to no, make sure it does not cause -set_version
6931 # flags to be left without arguments
6932 need_version=unknown
6937 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6938 shlibpath_var=LIBPATH
6940 # AIX 3 has no versioning support, so we append a major version to the name.
6941 soname_spec='${libname}${release}${shared_ext}$major'
6948 hardcode_into_libs=yes
6949 if test "$host_cpu" = ia64; then
6950 # AIX 5 supports IA64
6951 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6952 shlibpath_var=LD_LIBRARY_PATH
6954 # With GCC up to 2.95.x, collect2 would create an import file
6955 # for dependence libraries. The import file would start with
6956 # the line `#! .'. This would cause the generated library to
6957 # depend on `.', always an invalid library. This was fixed in
6958 # development snapshots of GCC prior to 3.0.
6960 aix4 | aix4.[01] | aix4.[01].*)
6961 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6963 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6970 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6971 # soname into executable. Probably we can add versioning support to
6972 # collect2, so additional links can be useful in future.
6973 if test "$aix_use_runtimelinking" = yes; then
6974 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6975 # instead of lib<name>.a to let people know that these are not
6976 # typical AIX shared libraries.
6977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6979 # We preserve .a as extension for shared libraries through AIX4.2
6980 # and later when we are not doing run time linking.
6981 library_names_spec='${libname}${release}.a $libname.a'
6982 soname_spec='${libname}${release}${shared_ext}$major'
6984 shlibpath_var=LIBPATH
6989 library_names_spec='$libname.ixlibrary $libname.a'
6990 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6991 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'
6995 library_names_spec='${libname}${shared_ext}'
6996 dynamic_linker="$host_os ld.so"
6997 shlibpath_var=LIBRARY_PATH
7003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7004 soname_spec='${libname}${release}${shared_ext}$major'
7005 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7006 shlibpath_var=LD_LIBRARY_PATH
7007 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7008 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7009 # the default ld.so.conf also contains /usr/contrib/lib and
7010 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7011 # libtool to hard-code these into programs
7014 cygwin* | mingw* | pw32*)
7015 version_type=windows
7020 case $GCC,$host_os in
7021 yes,cygwin* | yes,mingw* | yes,pw32*)
7022 library_names_spec='$libname.dll.a'
7023 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7024 postinstall_cmds='base_file=`basename \${file}`~
7025 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7026 dldir=$destdir/`dirname \$dlpath`~
7027 test -d \$dldir || mkdir -p \$dldir~
7028 $install_prog $dir/$dlname \$dldir/$dlname'
7029 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7030 dlpath=$dir/\$dldll~
7032 shlibpath_overrides_runpath=yes
7036 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7037 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7038 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7041 # MinGW DLLs use traditional 'lib' prefix
7042 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7043 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7044 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7045 # It is most probably a Windows format PATH printed by
7046 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7047 # path with ; separators, and with drive letters. We can handle the
7048 # drive letters (cygwin fileutils understands them), so leave them,
7049 # especially as we might pass files found there to a mingw objdump,
7050 # which wouldn't understand a cygwinified path. Ahh.
7051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7053 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7057 # pw32 DLLs use 'pw' prefix rather than 'lib'
7058 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7064 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7067 dynamic_linker='Win32 ld.exe'
7068 # FIXME: first we should search . and the directory the executable is in
7072 darwin* | rhapsody*)
7073 dynamic_linker="$host_os dyld"
7077 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7078 soname_spec='${libname}${release}${major}$shared_ext'
7079 shlibpath_overrides_runpath=yes
7080 shlibpath_var=DYLD_LIBRARY_PATH
7081 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7082 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7083 if test "$GCC" = yes; then
7084 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"`
7086 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7088 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7096 soname_spec='${libname}${release}${shared_ext}$major'
7097 shlibpath_var=LD_LIBRARY_PATH
7108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7109 soname_spec='${libname}${release}${shared_ext}$major'
7110 shlibpath_var=LD_LIBRARY_PATH
7111 shlibpath_overrides_runpath=no
7112 hardcode_into_libs=yes
7113 dynamic_linker='GNU ld.so'
7117 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7118 version_type=freebsd-$objformat
7119 case $version_type in
7121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7126 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7130 shlibpath_var=LD_LIBRARY_PATH
7133 shlibpath_overrides_runpath=yes
7135 freebsd3.01* | freebsdelf3.01*)
7136 shlibpath_overrides_runpath=yes
7137 hardcode_into_libs=yes
7140 shlibpath_overrides_runpath=no
7141 hardcode_into_libs=yes
7150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7151 soname_spec='${libname}${release}${shared_ext}$major'
7152 shlibpath_var=LD_LIBRARY_PATH
7153 hardcode_into_libs=yes
7156 hpux9* | hpux10* | hpux11*)
7157 # Give a soname corresponding to the major version so that dld.sl refuses to
7158 # link against other versions.
7165 hardcode_into_libs=yes
7166 dynamic_linker="$host_os dld.so"
7167 shlibpath_var=LD_LIBRARY_PATH
7168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7170 soname_spec='${libname}${release}${shared_ext}$major'
7171 if test "X$HPUX_IA64_MODE" = X32; then
7172 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7174 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7180 hardcode_into_libs=yes
7181 dynamic_linker="$host_os dld.sl"
7182 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7185 soname_spec='${libname}${release}${shared_ext}$major'
7186 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7191 dynamic_linker="$host_os dld.sl"
7192 shlibpath_var=SHLIB_PATH
7193 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7195 soname_spec='${libname}${release}${shared_ext}$major'
7198 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7199 postinstall_cmds='chmod 555 $lib'
7202 irix5* | irix6* | nonstopux*)
7204 nonstopux*) version_type=nonstopux ;;
7206 if test "$lt_cv_prog_gnu_ld" = yes; then
7214 soname_spec='${libname}${release}${shared_ext}$major'
7215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7217 irix5* | nonstopux*)
7221 case $LD in # libtool.m4 will add one of these switches to LD
7222 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7223 libsuff= shlibsuff= libmagic=32-bit;;
7224 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7225 libsuff=32 shlibsuff=N32 libmagic=N32;;
7226 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7227 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7228 *) libsuff= shlibsuff= libmagic=never-match;;
7232 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7233 shlibpath_overrides_runpath=no
7234 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7235 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7236 hardcode_into_libs=yes
7239 # No shared lib support for Linux oldld, aout, or coff.
7240 linux*oldld* | linux*aout* | linux*coff*)
7244 # This must be Linux ELF.
7249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7250 soname_spec='${libname}${release}${shared_ext}$major'
7251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7252 shlibpath_var=LD_LIBRARY_PATH
7253 shlibpath_overrides_runpath=no
7254 # This implies no fast_install, which is unacceptable.
7255 # Some rework will be needed to allow for fast_install
7256 # before this can be enabled.
7257 hardcode_into_libs=yes
7259 # Append ld.so.conf contents to the search path
7260 if test -f /etc/ld.so.conf; then
7261 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7262 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7265 # We used to test for /lib/ld.so.1 and disable shared libraries on
7266 # powerpc, because MkLinux only supported shared libraries with the
7267 # GNU dynamic linker. Since this was broken with cross compilers,
7268 # most powerpc-linux boxes support dynamic linking these days and
7269 # people can always --disable-shared, the test was removed, and we
7270 # assume the GNU/Linux dynamic linker is in use.
7271 dynamic_linker='GNU/Linux ld.so'
7278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7279 soname_spec='${libname}${release}${shared_ext}$major'
7280 shlibpath_var=LD_LIBRARY_PATH
7281 shlibpath_overrides_runpath=no
7282 hardcode_into_libs=yes
7283 dynamic_linker='GNU ld.so'
7290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7293 dynamic_linker='NetBSD (a.out) ld.so'
7295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7296 soname_spec='${libname}${release}${shared_ext}$major'
7297 dynamic_linker='NetBSD ld.elf_so'
7299 shlibpath_var=LD_LIBRARY_PATH
7300 shlibpath_overrides_runpath=yes
7301 hardcode_into_libs=yes
7306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7307 shlibpath_var=LD_LIBRARY_PATH
7308 shlibpath_overrides_runpath=yes
7315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7316 soname_spec='${libname}${release}${shared_ext}$major'
7317 shlibpath_var=LD_LIBRARY_PATH
7318 shlibpath_overrides_runpath=yes
7325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7327 shlibpath_var=LD_LIBRARY_PATH
7328 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7330 openbsd2.[89] | openbsd2.[89].*)
7331 shlibpath_overrides_runpath=no
7334 shlibpath_overrides_runpath=yes
7338 shlibpath_overrides_runpath=yes
7343 libname_spec='$name'
7346 library_names_spec='$libname${shared_ext} $libname.a'
7347 dynamic_linker='OS/2 ld.exe'
7348 shlibpath_var=LIBPATH
7351 osf3* | osf4* | osf5*)
7355 soname_spec='${libname}${release}${shared_ext}$major'
7356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7357 shlibpath_var=LD_LIBRARY_PATH
7358 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7359 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7364 soname_spec='${libname}${release}${shared_ext}$major'
7365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7366 shlibpath_var=LD_LIBRARY_PATH
7373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7374 soname_spec='${libname}${release}${shared_ext}$major'
7375 shlibpath_var=LD_LIBRARY_PATH
7376 shlibpath_overrides_runpath=yes
7377 hardcode_into_libs=yes
7378 # ldd complains unless libraries are executable
7379 postinstall_cmds='chmod +x $lib'
7384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7385 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7386 shlibpath_var=LD_LIBRARY_PATH
7387 shlibpath_overrides_runpath=yes
7388 if test "$with_gnu_ld" = yes; then
7394 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7397 soname_spec='${libname}${release}${shared_ext}$major'
7398 shlibpath_var=LD_LIBRARY_PATH
7399 case $host_vendor in
7401 shlibpath_overrides_runpath=no
7403 export_dynamic_flag_spec='${wl}-Blargedynsym'
7404 runpath_var=LD_RUN_PATH
7412 shlibpath_overrides_runpath=no
7413 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7419 if test -d /usr/nec ;then
7421 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7422 soname_spec='$libname${shared_ext}.$major'
7423 shlibpath_var=LD_LIBRARY_PATH
7429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7430 soname_spec='${libname}${release}${shared_ext}$major'
7431 shlibpath_var=LD_LIBRARY_PATH
7438 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7439 echo "${ECHO_T}$dynamic_linker" >&6
7440 test "$dynamic_linker" = no && can_build_shared=no
7443 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7444 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7445 if test "${libltdl_cv_shlibext+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 eval libltdl_cv_shlibext=$shrext_cmds
7453 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7454 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7455 if test -n "$libltdl_cv_shlibext"; then
7457 cat >>confdefs.h <<_ACEOF
7458 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7464 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7465 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7466 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 libltdl_cv_shlibpath_var="$shlibpath_var"
7471 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7472 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7473 if test -n "$libltdl_cv_shlibpath_var"; then
7475 cat >>confdefs.h <<_ACEOF
7476 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7482 echo "$as_me:$LINENO: checking for the default library search path" >&5
7483 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7484 if test "${libltdl_cv_sys_search_path+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7489 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7490 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7491 if test -n "$libltdl_cv_sys_search_path"; then
7493 for dir in $libltdl_cv_sys_search_path; do
7494 if test -z "$sys_search_path"; then
7495 sys_search_path="$dir"
7497 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7501 cat >>confdefs.h <<_ACEOF
7502 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7507 echo "$as_me:$LINENO: checking for objdir" >&5
7508 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7509 if test "${libltdl_cv_objdir+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 libltdl_cv_objdir="$objdir"
7513 if test -n "$objdir"; then
7516 rm -f .libs 2>/dev/null
7517 mkdir .libs 2>/dev/null
7518 if test -d .libs; then
7519 libltdl_cv_objdir=.libs
7521 # MS-DOS does not allow filenames that begin with a dot.
7522 libltdl_cv_objdir=_libs
7524 rmdir .libs 2>/dev/null
7528 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7529 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7531 cat >>confdefs.h <<_ACEOF
7532 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7536 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7537 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7538 if test "${lt_cv_path_NM+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 if test -n "$NM"; then
7542 # Let the user override the test.
7545 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7546 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7548 test -z "$ac_dir" && ac_dir=.
7549 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7550 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7551 # Check to see if the nm accepts a BSD-compat flag.
7552 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7553 # nm: unknown option "B" ignored
7554 # Tru64's nm complains that /dev/null is an invalid object file
7555 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7556 */dev/null* | *'Invalid file or object type'*)
7557 lt_cv_path_NM="$tmp_nm -B"
7561 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7563 lt_cv_path_NM="$tmp_nm -p"
7567 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7568 continue # so that we can try to find one that supports BSD flags
7575 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7578 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7579 echo "${ECHO_T}$lt_cv_path_NM" >&6
7586 # Check for command to grab the raw symbol name followed by C symbol from nm.
7587 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7588 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7589 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 # These are sane defaults that work on at least a few old systems.
7594 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7596 # Character class describing NM global symbol codes.
7597 symcode='[BCDEGRST]'
7599 # Regexp to match symbols that can be accessed directly from C.
7600 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7602 # Transform the above into a raw symbol and a C symbol.
7603 symxfrm='\1 \2\3 \3'
7605 # Transform an extracted symbol line into a proper C declaration
7606 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7608 # Transform an extracted symbol line into symbol name and symbol address
7609 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'"
7611 # Define system-specific variables.
7616 cygwin* | mingw* | pw32*)
7617 symcode='[ABCDGISTW]'
7619 hpux*) # Its linker distinguishes data from code symbols
7620 if test "$host_cpu" = ia64; then
7621 symcode='[ABCDEGRST]'
7623 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7624 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'"
7627 if test "$host_cpu" = ia64; then
7628 symcode='[ABCDGIRSTW]'
7629 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7630 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'"
7634 symcode='[BCDEGRST]'
7637 symcode='[BCDEGQRST]'
7647 # Handle CRLF in mingw tool chain
7651 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7655 # If we're using GNU nm, then use its standard symbol codes.
7656 case `$NM -V 2>&1` in
7657 *GNU* | *'with BFD'*)
7658 symcode='[ABCDGIRSTW]' ;;
7661 # Try without a prefix undercore, then with it.
7662 for ac_symprfx in "" "_"; do
7664 # Write the raw and C identifiers.
7665 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7667 # Check to see that the pipe works correctly.
7671 cat > conftest.$ac_ext <<EOF
7676 void nm_test_func(){}
7680 int main(){nm_test_var='a';nm_test_func();return(0);}
7683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7684 (eval $ac_compile) 2>&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; then
7688 # Now try to grab the symbols.
7690 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7691 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); } && test -s "$nlist"; then
7695 # Try sorting and uniquifying the output.
7696 if sort "$nlist" | uniq > "$nlist"T; then
7697 mv -f "$nlist"T "$nlist"
7702 # Make sure that we snagged all the symbols we need.
7703 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7704 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7705 cat <<EOF > conftest.$ac_ext
7711 # Now generate the symbol file.
7712 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7714 cat <<EOF >> conftest.$ac_ext
7715 #if defined (__STDC__) && __STDC__
7716 # define lt_ptr_t void *
7718 # define lt_ptr_t char *
7722 /* The mapping between symbol names and symbols. */
7727 lt_preloaded_symbols[] =
7730 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7731 cat <<\EOF >> conftest.$ac_ext
7739 # Now try linking the two files.
7740 mv conftest.$ac_objext conftstm.$ac_objext
7741 lt_save_LIBS="$LIBS"
7742 lt_save_CFLAGS="$CFLAGS"
7743 LIBS="conftstm.$ac_objext"
7744 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7746 (eval $ac_link) 2>&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7752 LIBS="$lt_save_LIBS"
7753 CFLAGS="$lt_save_CFLAGS"
7755 echo "cannot find nm_test_func in $nlist" >&5
7758 echo "cannot find nm_test_var in $nlist" >&5
7761 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7764 echo "$progname: failed program was:" >&5
7765 cat conftest.$ac_ext >&5
7767 rm -f conftest* conftst*
7769 # Do not use the global_symbol_pipe unless it works.
7770 if test "$pipe_works" = yes; then
7773 lt_cv_sys_global_symbol_pipe=
7779 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7780 lt_cv_sys_global_symbol_to_cdecl=
7782 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7783 echo "$as_me:$LINENO: result: failed" >&5
7784 echo "${ECHO_T}failed" >&6
7786 echo "$as_me:$LINENO: result: ok" >&5
7787 echo "${ECHO_T}ok" >&6
7791 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7792 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7793 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7797 libltdl_cv_preloaded_symbols=yes
7799 libltdl_cv_preloaded_symbols=no
7803 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7804 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7805 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7807 cat >>confdefs.h <<\_ACEOF
7808 #define HAVE_PRELOADED_SYMBOLS 1
7816 ac_cpp='$CPP $CPPFLAGS'
7817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7822 echo "$as_me:$LINENO: checking for shl_load" >&5
7823 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7824 if test "${ac_cv_func_shl_load+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 cat >conftest.$ac_ext <<_ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7833 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7835 #define shl_load innocuous_shl_load
7837 /* System header to define __stub macros and hopefully few prototypes,
7838 which can conflict with char shl_load (); below.
7839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7840 <limits.h> exists even on freestanding compilers. */
7843 # include <limits.h>
7845 # include <assert.h>
7850 /* Override any gcc2 internal prototype to avoid an error. */
7855 /* We use char because int might match the return type of a gcc2
7856 builtin and then its argument prototype would still apply. */
7858 /* The GNU C library defines this for functions which it implements
7859 to always fail with ENOSYS. Some functions are actually named
7860 something starting with __ and the normal name is an alias. */
7861 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7864 char (*f) () = shl_load;
7873 return f != shl_load;
7878 rm -f conftest.$ac_objext conftest$ac_exeext
7879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7880 (eval $ac_link) 2>conftest.er1
7882 grep -v '^ *+' conftest.er1 >conftest.err
7884 cat conftest.err >&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } &&
7887 { ac_try='test -z "$ac_c_werror_flag"
7888 || test ! -s conftest.err'
7889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; } &&
7894 { ac_try='test -s conftest$ac_exeext'
7895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 ac_cv_func_shl_load=yes
7902 echo "$as_me: failed program was:" >&5
7903 sed 's/^/| /' conftest.$ac_ext >&5
7905 ac_cv_func_shl_load=no
7907 rm -f conftest.err conftest.$ac_objext \
7908 conftest$ac_exeext conftest.$ac_ext
7910 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7911 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7912 if test $ac_cv_func_shl_load = yes; then
7914 cat >>confdefs.h <<\_ACEOF
7915 #define HAVE_SHL_LOAD 1
7919 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7920 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7921 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 ac_check_lib_save_LIBS=$LIBS
7926 cat >conftest.$ac_ext <<_ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7933 /* Override any gcc2 internal prototype to avoid an error. */
7937 /* We use char because int might match the return type of a gcc2
7938 builtin and then its argument prototype would still apply. */
7948 rm -f conftest.$ac_objext conftest$ac_exeext
7949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7950 (eval $ac_link) 2>conftest.er1
7952 grep -v '^ *+' conftest.er1 >conftest.err
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } &&
7957 { ac_try='test -z "$ac_c_werror_flag"
7958 || test ! -s conftest.err'
7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; } &&
7964 { ac_try='test -s conftest$ac_exeext'
7965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7970 ac_cv_lib_dld_shl_load=yes
7972 echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7975 ac_cv_lib_dld_shl_load=no
7977 rm -f conftest.err conftest.$ac_objext \
7978 conftest$ac_exeext conftest.$ac_ext
7979 LIBS=$ac_check_lib_save_LIBS
7981 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7982 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7983 if test $ac_cv_lib_dld_shl_load = yes; then
7985 cat >>confdefs.h <<\_ACEOF
7986 #define HAVE_SHL_LOAD 1
7989 LIBADD_DL="$LIBADD_DL -ldld"
7991 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7992 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7993 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7996 ac_check_lib_save_LIBS=$LIBS
7998 cat >conftest.$ac_ext <<_ACEOF
8001 cat confdefs.h >>conftest.$ac_ext
8002 cat >>conftest.$ac_ext <<_ACEOF
8003 /* end confdefs.h. */
8005 /* Override any gcc2 internal prototype to avoid an error. */
8009 /* We use char because int might match the return type of a gcc2
8010 builtin and then its argument prototype would still apply. */
8020 rm -f conftest.$ac_objext conftest$ac_exeext
8021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8022 (eval $ac_link) 2>conftest.er1
8024 grep -v '^ *+' conftest.er1 >conftest.err
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } &&
8029 { ac_try='test -z "$ac_c_werror_flag"
8030 || test ! -s conftest.err'
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; } &&
8036 { ac_try='test -s conftest$ac_exeext'
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; }; then
8042 ac_cv_lib_dl_dlopen=yes
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8047 ac_cv_lib_dl_dlopen=no
8049 rm -f conftest.err conftest.$ac_objext \
8050 conftest$ac_exeext conftest.$ac_ext
8051 LIBS=$ac_check_lib_save_LIBS
8053 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8054 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8055 if test $ac_cv_lib_dl_dlopen = yes; then
8057 cat >>confdefs.h <<\_ACEOF
8058 #define HAVE_LIBDL 1
8061 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
8063 cat >conftest.$ac_ext <<_ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8081 rm -f conftest.$ac_objext conftest$ac_exeext
8082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8083 (eval $ac_link) 2>conftest.er1
8085 grep -v '^ *+' conftest.er1 >conftest.err
8087 cat conftest.err >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } &&
8090 { ac_try='test -z "$ac_c_werror_flag"
8091 || test ! -s conftest.err'
8092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; } &&
8097 { ac_try='test -s conftest$ac_exeext'
8098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }; }; then
8104 cat >>confdefs.h <<\_ACEOF
8105 #define HAVE_LIBDL 1
8107 libltdl_cv_func_dlopen="yes"
8109 echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8112 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8113 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8114 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8117 ac_check_lib_save_LIBS=$LIBS
8119 cat >conftest.$ac_ext <<_ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8126 /* Override any gcc2 internal prototype to avoid an error. */
8130 /* We use char because int might match the return type of a gcc2
8131 builtin and then its argument prototype would still apply. */
8141 rm -f conftest.$ac_objext conftest$ac_exeext
8142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8143 (eval $ac_link) 2>conftest.er1
8145 grep -v '^ *+' conftest.er1 >conftest.err
8147 cat conftest.err >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } &&
8150 { ac_try='test -z "$ac_c_werror_flag"
8151 || test ! -s conftest.err'
8152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); }; } &&
8157 { ac_try='test -s conftest$ac_exeext'
8158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); }; }; then
8163 ac_cv_lib_svld_dlopen=yes
8165 echo "$as_me: failed program was:" >&5
8166 sed 's/^/| /' conftest.$ac_ext >&5
8168 ac_cv_lib_svld_dlopen=no
8170 rm -f conftest.err conftest.$ac_objext \
8171 conftest$ac_exeext conftest.$ac_ext
8172 LIBS=$ac_check_lib_save_LIBS
8174 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8175 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8176 if test $ac_cv_lib_svld_dlopen = yes; then
8178 cat >>confdefs.h <<\_ACEOF
8179 #define HAVE_LIBDL 1
8182 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8184 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8185 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8186 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 ac_check_lib_save_LIBS=$LIBS
8191 cat >conftest.$ac_ext <<_ACEOF
8194 cat confdefs.h >>conftest.$ac_ext
8195 cat >>conftest.$ac_ext <<_ACEOF
8196 /* end confdefs.h. */
8198 /* Override any gcc2 internal prototype to avoid an error. */
8202 /* We use char because int might match the return type of a gcc2
8203 builtin and then its argument prototype would still apply. */
8213 rm -f conftest.$ac_objext conftest$ac_exeext
8214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8215 (eval $ac_link) 2>conftest.er1
8217 grep -v '^ *+' conftest.er1 >conftest.err
8219 cat conftest.err >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); } &&
8222 { ac_try='test -z "$ac_c_werror_flag"
8223 || test ! -s conftest.err'
8224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; } &&
8229 { ac_try='test -s conftest$ac_exeext'
8230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; }; then
8235 ac_cv_lib_dld_dld_link=yes
8237 echo "$as_me: failed program was:" >&5
8238 sed 's/^/| /' conftest.$ac_ext >&5
8240 ac_cv_lib_dld_dld_link=no
8242 rm -f conftest.err conftest.$ac_objext \
8243 conftest$ac_exeext conftest.$ac_ext
8244 LIBS=$ac_check_lib_save_LIBS
8246 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8247 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8248 if test $ac_cv_lib_dld_dld_link = yes; then
8250 cat >>confdefs.h <<\_ACEOF
8254 LIBADD_DL="$LIBADD_DL -ldld"
8256 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8257 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8258 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8261 cat >conftest.$ac_ext <<_ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h. */
8267 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8269 #define _dyld_func_lookup innocuous__dyld_func_lookup
8271 /* System header to define __stub macros and hopefully few prototypes,
8272 which can conflict with char _dyld_func_lookup (); below.
8273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8274 <limits.h> exists even on freestanding compilers. */
8277 # include <limits.h>
8279 # include <assert.h>
8282 #undef _dyld_func_lookup
8284 /* Override any gcc2 internal prototype to avoid an error. */
8289 /* We use char because int might match the return type of a gcc2
8290 builtin and then its argument prototype would still apply. */
8291 char _dyld_func_lookup ();
8292 /* The GNU C library defines this for functions which it implements
8293 to always fail with ENOSYS. Some functions are actually named
8294 something starting with __ and the normal name is an alias. */
8295 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8298 char (*f) () = _dyld_func_lookup;
8307 return f != _dyld_func_lookup;
8312 rm -f conftest.$ac_objext conftest$ac_exeext
8313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8314 (eval $ac_link) 2>conftest.er1
8316 grep -v '^ *+' conftest.er1 >conftest.err
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } &&
8321 { ac_try='test -z "$ac_c_werror_flag"
8322 || test ! -s conftest.err'
8323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; } &&
8328 { ac_try='test -s conftest$ac_exeext'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8334 ac_cv_func__dyld_func_lookup=yes
8336 echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8339 ac_cv_func__dyld_func_lookup=no
8341 rm -f conftest.err conftest.$ac_objext \
8342 conftest$ac_exeext conftest.$ac_ext
8344 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8345 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8346 if test $ac_cv_func__dyld_func_lookup = yes; then
8348 cat >>confdefs.h <<\_ACEOF
8362 rm -f conftest.err conftest.$ac_objext \
8363 conftest$ac_exeext conftest.$ac_ext
8374 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8376 lt_save_LIBS="$LIBS"
8377 LIBS="$LIBS $LIBADD_DL"
8379 for ac_func in dlerror
8381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8382 echo "$as_me:$LINENO: checking for $ac_func" >&5
8383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8384 if eval "test \"\${$as_ac_var+set}\" = set"; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8387 cat >conftest.$ac_ext <<_ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8395 #define $ac_func innocuous_$ac_func
8397 /* System header to define __stub macros and hopefully few prototypes,
8398 which can conflict with char $ac_func (); below.
8399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8400 <limits.h> exists even on freestanding compilers. */
8403 # include <limits.h>
8405 # include <assert.h>
8410 /* Override any gcc2 internal prototype to avoid an error. */
8415 /* We use char because int might match the return type of a gcc2
8416 builtin and then its argument prototype would still apply. */
8418 /* The GNU C library defines this for functions which it implements
8419 to always fail with ENOSYS. Some functions are actually named
8420 something starting with __ and the normal name is an alias. */
8421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8424 char (*f) () = $ac_func;
8433 return f != $ac_func;
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8440 (eval $ac_link) 2>conftest.er1
8442 grep -v '^ *+' conftest.er1 >conftest.err
8444 cat conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } &&
8447 { ac_try='test -z "$ac_c_werror_flag"
8448 || test ! -s conftest.err'
8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; } &&
8454 { ac_try='test -s conftest$ac_exeext'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then
8460 eval "$as_ac_var=yes"
8462 echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8465 eval "$as_ac_var=no"
8467 rm -f conftest.err conftest.$ac_objext \
8468 conftest$ac_exeext conftest.$ac_ext
8470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8471 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8472 if test `eval echo '${'$as_ac_var'}'` = yes; then
8473 cat >>confdefs.h <<_ACEOF
8474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8480 LIBS="$lt_save_LIBS"
8483 ac_cpp='$CPP $CPPFLAGS'
8484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8490 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8491 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8492 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 ac_cv_sys_symbol_underscore=no
8496 cat > conftest.$ac_ext <<EOF
8497 void nm_test_func(){}
8498 int main(){nm_test_func;return 0;}
8500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8501 (eval $ac_compile) 2>&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; then
8505 # Now try to grab the symbols.
8506 ac_nlist=conftest.nm
8507 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8508 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); } && test -s "$ac_nlist"; then
8512 # See whether the symbols have a leading underscore.
8513 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8514 ac_cv_sys_symbol_underscore=yes
8516 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8519 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8523 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8526 echo "configure: failed program was:" >&5
8532 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8533 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8536 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8537 if test x"$libltdl_cv_func_dlopen" = xyes ||
8538 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8539 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8540 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8541 if test "${libltdl_cv_need_uscore+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 libltdl_cv_need_uscore=unknown
8546 LIBS="$LIBS $LIBADD_DL"
8547 if test "$cross_compiling" = yes; then :
8548 libltdl_cv_need_uscore=cross
8550 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8551 lt_status=$lt_dlunknown
8552 cat > conftest.$ac_ext <<EOF
8553 #line 8553 "configure"
8554 #include "confdefs.h"
8563 # define LT_DLGLOBAL RTLD_GLOBAL
8566 # define LT_DLGLOBAL DL_GLOBAL
8568 # define LT_DLGLOBAL 0
8572 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8573 find out it does not work in some platform. */
8574 #ifndef LT_DLLAZY_OR_NOW
8576 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8579 # define LT_DLLAZY_OR_NOW DL_LAZY
8582 # define LT_DLLAZY_OR_NOW RTLD_NOW
8585 # define LT_DLLAZY_OR_NOW DL_NOW
8587 # define LT_DLLAZY_OR_NOW 0
8595 extern "C" void exit (int);
8598 void fnord() { int i=42;}
8601 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8602 int status = $lt_dlunknown;
8606 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8607 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8608 /* dlclose (self); */
8614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8615 (eval $ac_link) 2>&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8619 (./conftest; exit; ) 2>/dev/null
8622 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8623 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8627 # compilation failed
8636 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8637 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8641 if test x"$libltdl_cv_need_uscore" = xyes; then
8643 cat >>confdefs.h <<\_ACEOF
8644 #define NEED_USCORE 1
8650 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8651 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8652 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
8655 # PORTME does your system automatically load deplibs for dlopen?
8656 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8657 # For now, we just catch OSes we know something about -- in the
8658 # future, we'll try test this programmatically.
8659 libltdl_cv_sys_dlopen_deplibs=unknown
8661 aix3*|aix4.1.*|aix4.2.*)
8662 # Unknown whether this is true for these versions of AIX, but
8663 # we want this `case' here to explicitly catch those versions.
8664 libltdl_cv_sys_dlopen_deplibs=unknown
8667 libltdl_cv_sys_dlopen_deplibs=yes
8670 # Assuming the user has installed a libdl from somewhere, this is true
8671 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8672 libltdl_cv_sys_dlopen_deplibs=yes
8674 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8675 # GNU and its variants, using gnu ld.so (Glibc)
8676 libltdl_cv_sys_dlopen_deplibs=yes
8679 libltdl_cv_sys_dlopen_deplibs=yes
8681 irix[12345]*|irix6.[01]*)
8682 # Catch all versions of IRIX before 6.2, and indicate that we don't
8683 # know how it worked for any of those versions.
8684 libltdl_cv_sys_dlopen_deplibs=unknown
8687 # The case above catches anything before 6.2, and it's known that
8688 # at 6.2 and later dlopen does load deplibs.
8689 libltdl_cv_sys_dlopen_deplibs=yes
8692 libltdl_cv_sys_dlopen_deplibs=yes
8695 libltdl_cv_sys_dlopen_deplibs=yes
8698 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8699 # it did *not* use an RPATH in a shared library to find objects the
8700 # library depends on, so we explictly say `no'.
8701 libltdl_cv_sys_dlopen_deplibs=no
8703 osf5.0|osf5.0a|osf5.1)
8704 # dlopen *does* load deplibs and with the right loader patch applied
8705 # it even uses RPATH in a shared library to search for shared objects
8706 # that the library depends on, but there's no easy way to know if that
8707 # patch is installed. Since this is the case, all we can really
8708 # say is unknown -- it depends on the patch being installed. If
8709 # it is, this changes to `yes'. Without it, it would be `no'.
8710 libltdl_cv_sys_dlopen_deplibs=unknown
8713 # the two cases above should catch all versions of osf <= 5.1. Read
8714 # the comments above for what we know about them.
8715 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8716 # is used to find them so we can finally say `yes'.
8717 libltdl_cv_sys_dlopen_deplibs=yes
8720 libltdl_cv_sys_dlopen_deplibs=yes
8725 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8726 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8727 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8729 cat >>confdefs.h <<\_ACEOF
8730 #define LTDL_DLOPEN_DEPLIBS 1
8736 for ac_header in argz.h
8738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8740 echo "$as_me:$LINENO: checking for $ac_header" >&5
8741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8748 # Is the header compilable?
8749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8751 cat >conftest.$ac_ext <<_ACEOF
8754 cat confdefs.h >>conftest.$ac_ext
8755 cat >>conftest.$ac_ext <<_ACEOF
8756 /* end confdefs.h. */
8757 $ac_includes_default
8758 #include <$ac_header>
8760 rm -f conftest.$ac_objext
8761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8762 (eval $ac_compile) 2>conftest.er1
8764 grep -v '^ *+' conftest.er1 >conftest.err
8766 cat conftest.err >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } &&
8769 { ac_try='test -z "$ac_c_werror_flag"
8770 || test ! -s conftest.err'
8771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; } &&
8776 { ac_try='test -s conftest.$ac_objext'
8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; }; then
8782 ac_header_compiler=yes
8784 echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8787 ac_header_compiler=no
8789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8790 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8791 echo "${ECHO_T}$ac_header_compiler" >&6
8793 # Is the header present?
8794 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8796 cat >conftest.$ac_ext <<_ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8802 #include <$ac_header>
8804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8807 grep -v '^ *+' conftest.er1 >conftest.err
8809 cat conftest.err >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } >/dev/null; then
8812 if test -s conftest.err; then
8813 ac_cpp_err=$ac_c_preproc_warn_flag
8814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8821 if test -z "$ac_cpp_err"; then
8822 ac_header_preproc=yes
8824 echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8827 ac_header_preproc=no
8829 rm -f conftest.err conftest.$ac_ext
8830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8831 echo "${ECHO_T}$ac_header_preproc" >&6
8833 # So? What about this header?
8834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8840 ac_header_preproc=yes
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8850 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8857 ## ----------------------------------- ##
8858 ## Report this to llvmbugs@cs.uiuc.edu ##
8859 ## ----------------------------------- ##
8862 sed "s/^/$as_me: WARNING: /" >&2
8865 echo "$as_me:$LINENO: checking for $ac_header" >&5
8866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8868 echo $ECHO_N "(cached) $ECHO_C" >&6
8870 eval "$as_ac_Header=\$ac_header_preproc"
8872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8877 cat >>confdefs.h <<_ACEOF
8878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8886 echo "$as_me:$LINENO: checking for error_t" >&5
8887 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8888 if test "${ac_cv_type_error_t+set}" = set; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8891 cat >conftest.$ac_ext <<_ACEOF
8894 cat confdefs.h >>conftest.$ac_ext
8895 cat >>conftest.$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8906 if (sizeof (error_t))
8912 rm -f conftest.$ac_objext
8913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8914 (eval $ac_compile) 2>conftest.er1
8916 grep -v '^ *+' conftest.er1 >conftest.err
8918 cat conftest.err >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } &&
8921 { ac_try='test -z "$ac_c_werror_flag"
8922 || test ! -s conftest.err'
8923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; } &&
8928 { ac_try='test -s conftest.$ac_objext'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 ac_cv_type_error_t=yes
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8939 ac_cv_type_error_t=no
8941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8943 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8944 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8945 if test $ac_cv_type_error_t = yes; then
8947 cat >>confdefs.h <<_ACEOF
8948 #define HAVE_ERROR_T 1
8954 cat >>confdefs.h <<\_ACEOF
8966 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8969 echo "$as_me:$LINENO: checking for $ac_func" >&5
8970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8971 if eval "test \"\${$as_ac_var+set}\" = set"; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8974 cat >conftest.$ac_ext <<_ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8982 #define $ac_func innocuous_$ac_func
8984 /* System header to define __stub macros and hopefully few prototypes,
8985 which can conflict with char $ac_func (); below.
8986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8987 <limits.h> exists even on freestanding compilers. */
8990 # include <limits.h>
8992 # include <assert.h>
8997 /* Override any gcc2 internal prototype to avoid an error. */
9002 /* We use char because int might match the return type of a gcc2
9003 builtin and then its argument prototype would still apply. */
9005 /* The GNU C library defines this for functions which it implements
9006 to always fail with ENOSYS. Some functions are actually named
9007 something starting with __ and the normal name is an alias. */
9008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9011 char (*f) () = $ac_func;
9020 return f != $ac_func;
9025 rm -f conftest.$ac_objext conftest$ac_exeext
9026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9027 (eval $ac_link) 2>conftest.er1
9029 grep -v '^ *+' conftest.er1 >conftest.err
9031 cat conftest.err >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } &&
9034 { ac_try='test -z "$ac_c_werror_flag"
9035 || test ! -s conftest.err'
9036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; } &&
9041 { ac_try='test -s conftest$ac_exeext'
9042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); }; }; then
9047 eval "$as_ac_var=yes"
9049 echo "$as_me: failed program was:" >&5
9050 sed 's/^/| /' conftest.$ac_ext >&5
9052 eval "$as_ac_var=no"
9054 rm -f conftest.err conftest.$ac_objext \
9055 conftest$ac_exeext conftest.$ac_ext
9057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9059 if test `eval echo '${'$as_ac_var'}'` = yes; then
9060 cat >>confdefs.h <<_ACEOF
9061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9094 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9099 echo "$as_me:$LINENO: checking for $ac_header" >&5
9100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9107 # Is the header compilable?
9108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9110 cat >conftest.$ac_ext <<_ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h. */
9116 $ac_includes_default
9117 #include <$ac_header>
9119 rm -f conftest.$ac_objext
9120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9121 (eval $ac_compile) 2>conftest.er1
9123 grep -v '^ *+' conftest.er1 >conftest.err
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } &&
9128 { ac_try='test -z "$ac_c_werror_flag"
9129 || test ! -s conftest.err'
9130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); }; } &&
9135 { ac_try='test -s conftest.$ac_objext'
9136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; }; then
9141 ac_header_compiler=yes
9143 echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9146 ac_header_compiler=no
9148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9150 echo "${ECHO_T}$ac_header_compiler" >&6
9152 # Is the header present?
9153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9155 cat >conftest.$ac_ext <<_ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9161 #include <$ac_header>
9163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9166 grep -v '^ *+' conftest.er1 >conftest.err
9168 cat conftest.err >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } >/dev/null; then
9171 if test -s conftest.err; then
9172 ac_cpp_err=$ac_c_preproc_warn_flag
9173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9180 if test -z "$ac_cpp_err"; then
9181 ac_header_preproc=yes
9183 echo "$as_me: failed program was:" >&5
9184 sed 's/^/| /' conftest.$ac_ext >&5
9186 ac_header_preproc=no
9188 rm -f conftest.err conftest.$ac_ext
9189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9190 echo "${ECHO_T}$ac_header_preproc" >&6
9192 # So? What about this header?
9193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9199 ac_header_preproc=yes
9202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9216 ## ----------------------------------- ##
9217 ## Report this to llvmbugs@cs.uiuc.edu ##
9218 ## ----------------------------------- ##
9221 sed "s/^/$as_me: WARNING: /" >&2
9224 echo "$as_me:$LINENO: checking for $ac_header" >&5
9225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 eval "$as_ac_Header=\$ac_header_preproc"
9231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9236 cat >>confdefs.h <<_ACEOF
9237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9248 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9252 echo "$as_me:$LINENO: checking for $ac_header" >&5
9253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9255 echo $ECHO_N "(cached) $ECHO_C" >&6
9257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9260 # Is the header compilable?
9261 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9263 cat >conftest.$ac_ext <<_ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9269 $ac_includes_default
9270 #include <$ac_header>
9272 rm -f conftest.$ac_objext
9273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9274 (eval $ac_compile) 2>conftest.er1
9276 grep -v '^ *+' conftest.er1 >conftest.err
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } &&
9281 { ac_try='test -z "$ac_c_werror_flag"
9282 || test ! -s conftest.err'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; } &&
9288 { ac_try='test -s conftest.$ac_objext'
9289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; }; then
9294 ac_header_compiler=yes
9296 echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9299 ac_header_compiler=no
9301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9302 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9303 echo "${ECHO_T}$ac_header_compiler" >&6
9305 # Is the header present?
9306 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9308 cat >conftest.$ac_ext <<_ACEOF
9311 cat confdefs.h >>conftest.$ac_ext
9312 cat >>conftest.$ac_ext <<_ACEOF
9313 /* end confdefs.h. */
9314 #include <$ac_header>
9316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9319 grep -v '^ *+' conftest.er1 >conftest.err
9321 cat conftest.err >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } >/dev/null; then
9324 if test -s conftest.err; then
9325 ac_cpp_err=$ac_c_preproc_warn_flag
9326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9333 if test -z "$ac_cpp_err"; then
9334 ac_header_preproc=yes
9336 echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9339 ac_header_preproc=no
9341 rm -f conftest.err conftest.$ac_ext
9342 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9343 echo "${ECHO_T}$ac_header_preproc" >&6
9345 # So? What about this header?
9346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9352 ac_header_preproc=yes
9355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9362 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9369 ## ----------------------------------- ##
9370 ## Report this to llvmbugs@cs.uiuc.edu ##
9371 ## ----------------------------------- ##
9374 sed "s/^/$as_me: WARNING: /" >&2
9377 echo "$as_me:$LINENO: checking for $ac_header" >&5
9378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9380 echo $ECHO_N "(cached) $ECHO_C" >&6
9382 eval "$as_ac_Header=\$ac_header_preproc"
9384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9389 cat >>confdefs.h <<_ACEOF
9390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9399 for ac_header in string.h strings.h
9401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9403 echo "$as_me:$LINENO: checking for $ac_header" >&5
9404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
9408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9411 # Is the header compilable?
9412 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9414 cat >conftest.$ac_ext <<_ACEOF
9417 cat confdefs.h >>conftest.$ac_ext
9418 cat >>conftest.$ac_ext <<_ACEOF
9419 /* end confdefs.h. */
9420 $ac_includes_default
9421 #include <$ac_header>
9423 rm -f conftest.$ac_objext
9424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9425 (eval $ac_compile) 2>conftest.er1
9427 grep -v '^ *+' conftest.er1 >conftest.err
9429 cat conftest.err >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); } &&
9432 { ac_try='test -z "$ac_c_werror_flag"
9433 || test ! -s conftest.err'
9434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; } &&
9439 { ac_try='test -s conftest.$ac_objext'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; }; then
9445 ac_header_compiler=yes
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9450 ac_header_compiler=no
9452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9454 echo "${ECHO_T}$ac_header_compiler" >&6
9456 # Is the header present?
9457 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9459 cat >conftest.$ac_ext <<_ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h. */
9465 #include <$ac_header>
9467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9470 grep -v '^ *+' conftest.er1 >conftest.err
9472 cat conftest.err >&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } >/dev/null; then
9475 if test -s conftest.err; then
9476 ac_cpp_err=$ac_c_preproc_warn_flag
9477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9484 if test -z "$ac_cpp_err"; then
9485 ac_header_preproc=yes
9487 echo "$as_me: failed program was:" >&5
9488 sed 's/^/| /' conftest.$ac_ext >&5
9490 ac_header_preproc=no
9492 rm -f conftest.err conftest.$ac_ext
9493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9494 echo "${ECHO_T}$ac_header_preproc" >&6
9496 # So? What about this header?
9497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9503 ac_header_preproc=yes
9506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9510 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9512 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9513 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9516 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9520 ## ----------------------------------- ##
9521 ## Report this to llvmbugs@cs.uiuc.edu ##
9522 ## ----------------------------------- ##
9525 sed "s/^/$as_me: WARNING: /" >&2
9528 echo "$as_me:$LINENO: checking for $ac_header" >&5
9529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 eval "$as_ac_Header=\$ac_header_preproc"
9535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9540 cat >>confdefs.h <<_ACEOF
9541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9551 for ac_func in strchr index
9553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9554 echo "$as_me:$LINENO: checking for $ac_func" >&5
9555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9556 if eval "test \"\${$as_ac_var+set}\" = set"; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9559 cat >conftest.$ac_ext <<_ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9567 #define $ac_func innocuous_$ac_func
9569 /* System header to define __stub macros and hopefully few prototypes,
9570 which can conflict with char $ac_func (); below.
9571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9572 <limits.h> exists even on freestanding compilers. */
9575 # include <limits.h>
9577 # include <assert.h>
9582 /* Override any gcc2 internal prototype to avoid an error. */
9587 /* We use char because int might match the return type of a gcc2
9588 builtin and then its argument prototype would still apply. */
9590 /* The GNU C library defines this for functions which it implements
9591 to always fail with ENOSYS. Some functions are actually named
9592 something starting with __ and the normal name is an alias. */
9593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9596 char (*f) () = $ac_func;
9605 return f != $ac_func;
9610 rm -f conftest.$ac_objext conftest$ac_exeext
9611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9612 (eval $ac_link) 2>conftest.er1
9614 grep -v '^ *+' conftest.er1 >conftest.err
9616 cat conftest.err >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } &&
9619 { ac_try='test -z "$ac_c_werror_flag"
9620 || test ! -s conftest.err'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; } &&
9626 { ac_try='test -s conftest$ac_exeext'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; }; then
9632 eval "$as_ac_var=yes"
9634 echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9637 eval "$as_ac_var=no"
9639 rm -f conftest.err conftest.$ac_objext \
9640 conftest$ac_exeext conftest.$ac_ext
9642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9644 if test `eval echo '${'$as_ac_var'}'` = yes; then
9645 cat >>confdefs.h <<_ACEOF
9646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9654 for ac_func in strrchr rindex
9656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9657 echo "$as_me:$LINENO: checking for $ac_func" >&5
9658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9659 if eval "test \"\${$as_ac_var+set}\" = set"; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
9662 cat >conftest.$ac_ext <<_ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9670 #define $ac_func innocuous_$ac_func
9672 /* System header to define __stub macros and hopefully few prototypes,
9673 which can conflict with char $ac_func (); below.
9674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9675 <limits.h> exists even on freestanding compilers. */
9678 # include <limits.h>
9680 # include <assert.h>
9685 /* Override any gcc2 internal prototype to avoid an error. */
9690 /* We use char because int might match the return type of a gcc2
9691 builtin and then its argument prototype would still apply. */
9693 /* The GNU C library defines this for functions which it implements
9694 to always fail with ENOSYS. Some functions are actually named
9695 something starting with __ and the normal name is an alias. */
9696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9699 char (*f) () = $ac_func;
9708 return f != $ac_func;
9713 rm -f conftest.$ac_objext conftest$ac_exeext
9714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9715 (eval $ac_link) 2>conftest.er1
9717 grep -v '^ *+' conftest.er1 >conftest.err
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
9722 { ac_try='test -z "$ac_c_werror_flag"
9723 || test ! -s conftest.err'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; } &&
9729 { ac_try='test -s conftest$ac_exeext'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 eval "$as_ac_var=yes"
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9740 eval "$as_ac_var=no"
9742 rm -f conftest.err conftest.$ac_objext \
9743 conftest$ac_exeext conftest.$ac_ext
9745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9747 if test `eval echo '${'$as_ac_var'}'` = yes; then
9748 cat >>confdefs.h <<_ACEOF
9749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9757 for ac_func in memcpy bcopy
9759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9760 echo "$as_me:$LINENO: checking for $ac_func" >&5
9761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9762 if eval "test \"\${$as_ac_var+set}\" = set"; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9765 cat >conftest.$ac_ext <<_ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h. */
9771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9773 #define $ac_func innocuous_$ac_func
9775 /* System header to define __stub macros and hopefully few prototypes,
9776 which can conflict with char $ac_func (); below.
9777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9778 <limits.h> exists even on freestanding compilers. */
9781 # include <limits.h>
9783 # include <assert.h>
9788 /* Override any gcc2 internal prototype to avoid an error. */
9793 /* We use char because int might match the return type of a gcc2
9794 builtin and then its argument prototype would still apply. */
9796 /* The GNU C library defines this for functions which it implements
9797 to always fail with ENOSYS. Some functions are actually named
9798 something starting with __ and the normal name is an alias. */
9799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9802 char (*f) () = $ac_func;
9811 return f != $ac_func;
9816 rm -f conftest.$ac_objext conftest$ac_exeext
9817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9818 (eval $ac_link) 2>conftest.er1
9820 grep -v '^ *+' conftest.er1 >conftest.err
9822 cat conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } &&
9825 { ac_try='test -z "$ac_c_werror_flag"
9826 || test ! -s conftest.err'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; } &&
9832 { ac_try='test -s conftest$ac_exeext'
9833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
9838 eval "$as_ac_var=yes"
9840 echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9843 eval "$as_ac_var=no"
9845 rm -f conftest.err conftest.$ac_objext \
9846 conftest$ac_exeext conftest.$ac_ext
9848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9850 if test `eval echo '${'$as_ac_var'}'` = yes; then
9851 cat >>confdefs.h <<_ACEOF
9852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9860 for ac_func in memmove strcmp
9862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9863 echo "$as_me:$LINENO: checking for $ac_func" >&5
9864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9865 if eval "test \"\${$as_ac_var+set}\" = set"; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 cat >conftest.$ac_ext <<_ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9876 #define $ac_func innocuous_$ac_func
9878 /* System header to define __stub macros and hopefully few prototypes,
9879 which can conflict with char $ac_func (); below.
9880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9881 <limits.h> exists even on freestanding compilers. */
9884 # include <limits.h>
9886 # include <assert.h>
9891 /* Override any gcc2 internal prototype to avoid an error. */
9896 /* We use char because int might match the return type of a gcc2
9897 builtin and then its argument prototype would still apply. */
9899 /* The GNU C library defines this for functions which it implements
9900 to always fail with ENOSYS. Some functions are actually named
9901 something starting with __ and the normal name is an alias. */
9902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9905 char (*f) () = $ac_func;
9914 return f != $ac_func;
9919 rm -f conftest.$ac_objext conftest$ac_exeext
9920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9921 (eval $ac_link) 2>conftest.er1
9923 grep -v '^ *+' conftest.er1 >conftest.err
9925 cat conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } &&
9928 { ac_try='test -z "$ac_c_werror_flag"
9929 || test ! -s conftest.err'
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; } &&
9935 { ac_try='test -s conftest$ac_exeext'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; }; then
9941 eval "$as_ac_var=yes"
9943 echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.$ac_ext >&5
9946 eval "$as_ac_var=no"
9948 rm -f conftest.err conftest.$ac_objext \
9949 conftest$ac_exeext conftest.$ac_ext
9951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9953 if test `eval echo '${'$as_ac_var'}'` = yes; then
9954 cat >>confdefs.h <<_ACEOF
9955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9964 for ac_func in closedir opendir readdir
9966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9967 echo "$as_me:$LINENO: checking for $ac_func" >&5
9968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9969 if eval "test \"\${$as_ac_var+set}\" = set"; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 cat >conftest.$ac_ext <<_ACEOF
9975 cat confdefs.h >>conftest.$ac_ext
9976 cat >>conftest.$ac_ext <<_ACEOF
9977 /* end confdefs.h. */
9978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9980 #define $ac_func innocuous_$ac_func
9982 /* System header to define __stub macros and hopefully few prototypes,
9983 which can conflict with char $ac_func (); below.
9984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9985 <limits.h> exists even on freestanding compilers. */
9988 # include <limits.h>
9990 # include <assert.h>
9995 /* Override any gcc2 internal prototype to avoid an error. */
10000 /* We use char because int might match the return type of a gcc2
10001 builtin and then its argument prototype would still apply. */
10003 /* The GNU C library defines this for functions which it implements
10004 to always fail with ENOSYS. Some functions are actually named
10005 something starting with __ and the normal name is an alias. */
10006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10009 char (*f) () = $ac_func;
10018 return f != $ac_func;
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10025 (eval $ac_link) 2>conftest.er1
10027 grep -v '^ *+' conftest.er1 >conftest.err
10029 cat conftest.err >&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try='test -z "$ac_c_werror_flag"
10033 || test ! -s conftest.err'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; } &&
10039 { ac_try='test -s conftest$ac_exeext'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 eval "$as_ac_var=yes"
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 eval "$as_ac_var=no"
10052 rm -f conftest.err conftest.$ac_objext \
10053 conftest$ac_exeext conftest.$ac_ext
10055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10057 if test `eval echo '${'$as_ac_var'}'` = yes; then
10058 cat >>confdefs.h <<_ACEOF
10059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10066 # Check whether --enable-shared or --disable-shared was given.
10067 if test "${enable_shared+set}" = set; then
10068 enableval="$enable_shared"
10069 p=${PACKAGE-default}
10071 yes) enable_shared=yes ;;
10072 no) enable_shared=no ;;
10075 # Look at the argument we got. We use all the common list separators.
10076 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10077 for pkg in $enableval; do
10079 if test "X$pkg" = "X$p"; then
10090 # Check whether --enable-static or --disable-static was given.
10091 if test "${enable_static+set}" = set; then
10092 enableval="$enable_static"
10093 p=${PACKAGE-default}
10095 yes) enable_static=yes ;;
10096 no) enable_static=no ;;
10099 # Look at the argument we got. We use all the common list separators.
10100 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10101 for pkg in $enableval; do
10103 if test "X$pkg" = "X$p"; then
10114 # Check whether --enable-fast-install or --disable-fast-install was given.
10115 if test "${enable_fast_install+set}" = set; then
10116 enableval="$enable_fast_install"
10117 p=${PACKAGE-default}
10119 yes) enable_fast_install=yes ;;
10120 no) enable_fast_install=no ;;
10122 enable_fast_install=no
10123 # Look at the argument we got. We use all the common list separators.
10124 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10125 for pkg in $enableval; do
10127 if test "X$pkg" = "X$p"; then
10128 enable_fast_install=yes
10135 enable_fast_install=yes
10138 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10139 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10140 if test "${lt_cv_path_SED+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10143 # Loop through the user's path and test for sed and gsed.
10144 # Then use that list of sed's as ones to test for truncation.
10145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146 for as_dir in $PATH
10149 test -z "$as_dir" && as_dir=.
10150 for lt_ac_prog in sed gsed; do
10151 for ac_exec_ext in '' $ac_executable_extensions; do
10152 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10153 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10160 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10161 # along with /bin/sed that truncates output.
10162 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10163 test ! -f $lt_ac_sed && break
10164 cat /dev/null > conftest.in
10166 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10167 # Check for GNU sed and select it if it is found.
10168 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10169 lt_cv_path_SED=$lt_ac_sed
10173 cat conftest.in conftest.in >conftest.tmp
10174 mv conftest.tmp conftest.in
10175 cp conftest.in conftest.nl
10177 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10178 cmp -s conftest.out conftest.nl || break
10179 # 10000 chars as input seems more than enough
10180 test $lt_ac_count -gt 10 && break
10181 lt_ac_count=`expr $lt_ac_count + 1`
10182 if test $lt_ac_count -gt $lt_ac_max; then
10183 lt_ac_max=$lt_ac_count
10184 lt_cv_path_SED=$lt_ac_sed
10191 SED=$lt_cv_path_SED
10192 echo "$as_me:$LINENO: result: $SED" >&5
10193 echo "${ECHO_T}$SED" >&6
10196 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10197 if test "${with_gnu_ld+set}" = set; then
10198 withval="$with_gnu_ld"
10199 test "$withval" = no || with_gnu_ld=yes
10204 if test "$GCC" = yes; then
10205 # Check if gcc -print-prog-name=ld gives a path.
10206 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10207 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10210 # gcc leaves a trailing carriage return which upsets mingw
10211 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10213 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10216 # Accept absolute paths.
10218 re_direlt='/[^/][^/]*/\.\./'
10219 # Canonicalize the pathname of ld
10220 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10221 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10222 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10224 test -z "$LD" && LD="$ac_prog"
10227 # If it fails, then pretend we aren't using GCC.
10231 # If it is relative, then search for the first ld in PATH.
10232 with_gnu_ld=unknown
10235 elif test "$with_gnu_ld" = yes; then
10236 echo "$as_me:$LINENO: checking for GNU ld" >&5
10237 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10239 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10240 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10242 if test "${lt_cv_path_LD+set}" = set; then
10243 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 if test -z "$LD"; then
10246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10247 for ac_dir in $PATH; do
10249 test -z "$ac_dir" && ac_dir=.
10250 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10251 lt_cv_path_LD="$ac_dir/$ac_prog"
10252 # Check to see if the program is GNU ld. I'd rather use --version,
10253 # but apparently some GNU ld's only accept -v.
10254 # Break only if it was the GNU/non-GNU ld that we prefer.
10255 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10256 *GNU* | *'with BFD'*)
10257 test "$with_gnu_ld" != no && break
10260 test "$with_gnu_ld" != yes && break
10267 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10271 LD="$lt_cv_path_LD"
10272 if test -n "$LD"; then
10273 echo "$as_me:$LINENO: result: $LD" >&5
10274 echo "${ECHO_T}$LD" >&6
10276 echo "$as_me:$LINENO: result: no" >&5
10277 echo "${ECHO_T}no" >&6
10279 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10280 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10281 { (exit 1); exit 1; }; }
10282 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10283 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10284 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10285 echo $ECHO_N "(cached) $ECHO_C" >&6
10287 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10288 case `$LD -v 2>&1 </dev/null` in
10289 *GNU* | *'with BFD'*)
10290 lt_cv_prog_gnu_ld=yes
10293 lt_cv_prog_gnu_ld=no
10297 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10298 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10299 with_gnu_ld=$lt_cv_prog_gnu_ld
10302 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10303 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10304 if test "${lt_cv_ld_reload_flag+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 lt_cv_ld_reload_flag='-r'
10309 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10310 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10311 reload_flag=$lt_cv_ld_reload_flag
10312 case $reload_flag in
10314 *) reload_flag=" $reload_flag" ;;
10316 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10319 if test "$GCC" = yes; then
10320 reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
10322 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10327 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10328 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10329 if test "${lt_cv_deplibs_check_method+set}" = set; then
10330 echo $ECHO_N "(cached) $ECHO_C" >&6
10332 lt_cv_file_magic_cmd='$MAGIC_CMD'
10333 lt_cv_file_magic_test_file=
10334 lt_cv_deplibs_check_method='unknown'
10335 # Need to set the preceding variable on all platforms that support
10336 # interlibrary dependencies.
10337 # 'none' -- dependencies not supported.
10338 # `unknown' -- same as none, but documents that we really don't know.
10339 # 'pass_all' -- all dependencies passed with no checks.
10340 # 'test_compile' -- check by making test program.
10341 # 'file_magic [[regex]]' -- check by looking for files in library path
10342 # which responds to the $file_magic_cmd with a given extended regex.
10343 # If you have `file' or equivalent on your system and you're not sure
10344 # whether `pass_all' will *always* work, you probably want this one.
10348 lt_cv_deplibs_check_method=pass_all
10352 lt_cv_deplibs_check_method=pass_all
10356 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10357 lt_cv_file_magic_cmd='/usr/bin/file -L'
10358 lt_cv_file_magic_test_file=/shlib/libc.so
10362 # func_win32_libid is a shell function defined in ltmain.sh
10363 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10364 lt_cv_file_magic_cmd='func_win32_libid'
10368 # Base MSYS/MinGW do not provide the 'file' command needed by
10369 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10370 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10371 lt_cv_file_magic_cmd='$OBJDUMP -f'
10374 darwin* | rhapsody*)
10375 lt_cv_deplibs_check_method=pass_all
10378 freebsd* | kfreebsd*-gnu)
10379 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10382 # Not sure whether the presence of OpenBSD here was a mistake.
10383 # Let's accept both of them until this is cleared up.
10384 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10385 lt_cv_file_magic_cmd=/usr/bin/file
10386 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10390 lt_cv_deplibs_check_method=pass_all
10395 lt_cv_deplibs_check_method=pass_all
10398 hpux10.20* | hpux11*)
10399 lt_cv_file_magic_cmd=/usr/bin/file
10400 case "$host_cpu" in
10402 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10403 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10406 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]'
10407 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10410 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10411 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10416 irix5* | irix6* | nonstopux*)
10418 *-32|*"-32 ") libmagic=32-bit;;
10419 *-n32|*"-n32 ") libmagic=N32;;
10420 *-64|*"-64 ") libmagic=64-bit;;
10421 *) libmagic=never-match;;
10423 lt_cv_deplibs_check_method=pass_all
10426 # This must be Linux ELF.
10428 lt_cv_deplibs_check_method=pass_all
10432 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10435 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10440 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10441 lt_cv_file_magic_cmd=/usr/bin/file
10442 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10446 lt_cv_deplibs_check_method=unknown
10450 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10451 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10457 osf3* | osf4* | osf5*)
10458 lt_cv_deplibs_check_method=pass_all
10462 lt_cv_deplibs_check_method=pass_all
10466 lt_cv_deplibs_check_method=pass_all
10469 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10470 case $host_vendor in
10472 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]'
10473 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10476 lt_cv_deplibs_check_method=pass_all
10479 lt_cv_file_magic_cmd='/bin/file'
10480 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10483 lt_cv_file_magic_cmd='/bin/file'
10484 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10485 lt_cv_file_magic_test_file=/lib/libc.so
10488 lt_cv_deplibs_check_method=pass_all
10493 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10494 lt_cv_deplibs_check_method=pass_all
10499 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10500 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10501 file_magic_cmd=$lt_cv_file_magic_cmd
10502 deplibs_check_method=$lt_cv_deplibs_check_method
10503 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10507 # If no C compiler was specified, use CC.
10510 # Allow CC to be a program name with arguments.
10513 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10514 if test "${enable_libtool_lock+set}" = set; then
10515 enableval="$enable_libtool_lock"
10518 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10520 # Some flags need to be propagated to the compiler or linker for good
10524 # Find out which ABI we are using.
10525 echo 'int i;' > conftest.$ac_ext
10526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10527 (eval $ac_compile) 2>&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; then
10531 case `/usr/bin/file conftest.$ac_objext` in
10533 HPUX_IA64_MODE="32"
10536 HPUX_IA64_MODE="64"
10543 # Find out which ABI we are using.
10544 echo '#line 10544 "configure"' > conftest.$ac_ext
10545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10546 (eval $ac_compile) 2>&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; then
10550 if test "$lt_cv_prog_gnu_ld" = yes; then
10551 case `/usr/bin/file conftest.$ac_objext` in
10553 LD="${LD-ld} -melf32bsmip"
10556 LD="${LD-ld} -melf32bmipn32"
10559 LD="${LD-ld} -melf64bmip"
10563 case `/usr/bin/file conftest.$ac_objext` in
10579 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10580 # Find out which ABI we are using.
10581 echo 'int i;' > conftest.$ac_ext
10582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10583 (eval $ac_compile) 2>&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; then
10587 case "`/usr/bin/file conftest.o`" in
10591 LD="${LD-ld} -m elf_i386"
10593 ppc64-*linux*|powerpc64-*linux*)
10594 LD="${LD-ld} -m elf32ppclinux"
10597 LD="${LD-ld} -m elf_s390"
10600 LD="${LD-ld} -m elf32_sparc"
10607 LD="${LD-ld} -m elf_x86_64"
10609 ppc*-*linux*|powerpc*-*linux*)
10610 LD="${LD-ld} -m elf64ppc"
10613 LD="${LD-ld} -m elf64_s390"
10616 LD="${LD-ld} -m elf64_sparc"
10626 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10627 SAVE_CFLAGS="$CFLAGS"
10628 CFLAGS="$CFLAGS -belf"
10629 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10630 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10631 if test "${lt_cv_cc_needs_belf+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10635 ac_cpp='$CPP $CPPFLAGS'
10636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10640 cat >conftest.$ac_ext <<_ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10648 rm -f conftest.$ac_objext conftest$ac_exeext
10649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10650 (eval $ac_link) 2>conftest.er1
10652 grep -v '^ *+' conftest.er1 >conftest.err
10654 cat conftest.err >&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } &&
10657 { ac_try='test -z "$ac_c_werror_flag"
10658 || test ! -s conftest.err'
10659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660 (eval $ac_try) 2>&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; } &&
10664 { ac_try='test -s conftest$ac_exeext'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; }; then
10670 lt_cv_cc_needs_belf=yes
10672 echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10675 lt_cv_cc_needs_belf=no
10677 rm -f conftest.err conftest.$ac_objext \
10678 conftest$ac_exeext conftest.$ac_ext
10680 ac_cpp='$CPP $CPPFLAGS'
10681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10686 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10687 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10688 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10689 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10690 CFLAGS="$SAVE_CFLAGS"
10696 need_locks="$enable_libtool_lock"
10701 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10702 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10703 (test "X$CXX" != "Xg++"))) ; then
10705 ac_cpp='$CXXCPP $CPPFLAGS'
10706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10709 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10710 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10711 if test -z "$CXXCPP"; then
10712 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10715 # Double quotes because CXXCPP needs to be expanded
10716 for CXXCPP in "$CXX -E" "/lib/cpp"
10718 ac_preproc_ok=false
10719 for ac_cxx_preproc_warn_flag in '' yes
10721 # Use a header file that comes with gcc, so configuring glibc
10722 # with a fresh cross-compiler works.
10723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10724 # <limits.h> exists even on freestanding compilers.
10725 # On the NeXT, cc -E runs the code through the compiler's parser,
10726 # not just through cpp. "Syntax error" is here to catch this case.
10727 cat >conftest.$ac_ext <<_ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h. */
10734 # include <limits.h>
10736 # include <assert.h>
10740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10743 grep -v '^ *+' conftest.er1 >conftest.err
10745 cat conftest.err >&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); } >/dev/null; then
10748 if test -s conftest.err; then
10749 ac_cpp_err=$ac_cxx_preproc_warn_flag
10750 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10757 if test -z "$ac_cpp_err"; then
10760 echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.$ac_ext >&5
10763 # Broken: fails on valid input.
10766 rm -f conftest.err conftest.$ac_ext
10768 # OK, works on sane cases. Now check whether non-existent headers
10769 # can be detected and how.
10770 cat >conftest.$ac_ext <<_ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10776 #include <ac_nonexistent.h>
10778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10781 grep -v '^ *+' conftest.er1 >conftest.err
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } >/dev/null; then
10786 if test -s conftest.err; then
10787 ac_cpp_err=$ac_cxx_preproc_warn_flag
10788 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10795 if test -z "$ac_cpp_err"; then
10796 # Broken: success on invalid input.
10799 echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10802 # Passes both tests.
10806 rm -f conftest.err conftest.$ac_ext
10809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10810 rm -f conftest.err conftest.$ac_ext
10811 if $ac_preproc_ok; then
10816 ac_cv_prog_CXXCPP=$CXXCPP
10819 CXXCPP=$ac_cv_prog_CXXCPP
10821 ac_cv_prog_CXXCPP=$CXXCPP
10823 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10824 echo "${ECHO_T}$CXXCPP" >&6
10825 ac_preproc_ok=false
10826 for ac_cxx_preproc_warn_flag in '' yes
10828 # Use a header file that comes with gcc, so configuring glibc
10829 # with a fresh cross-compiler works.
10830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10831 # <limits.h> exists even on freestanding compilers.
10832 # On the NeXT, cc -E runs the code through the compiler's parser,
10833 # not just through cpp. "Syntax error" is here to catch this case.
10834 cat >conftest.$ac_ext <<_ACEOF
10837 cat confdefs.h >>conftest.$ac_ext
10838 cat >>conftest.$ac_ext <<_ACEOF
10839 /* end confdefs.h. */
10841 # include <limits.h>
10843 # include <assert.h>
10847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10850 grep -v '^ *+' conftest.er1 >conftest.err
10852 cat conftest.err >&5
10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); } >/dev/null; then
10855 if test -s conftest.err; then
10856 ac_cpp_err=$ac_cxx_preproc_warn_flag
10857 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10864 if test -z "$ac_cpp_err"; then
10867 echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.$ac_ext >&5
10870 # Broken: fails on valid input.
10873 rm -f conftest.err conftest.$ac_ext
10875 # OK, works on sane cases. Now check whether non-existent headers
10876 # can be detected and how.
10877 cat >conftest.$ac_ext <<_ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h. */
10883 #include <ac_nonexistent.h>
10885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10888 grep -v '^ *+' conftest.er1 >conftest.err
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } >/dev/null; then
10893 if test -s conftest.err; then
10894 ac_cpp_err=$ac_cxx_preproc_warn_flag
10895 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10902 if test -z "$ac_cpp_err"; then
10903 # Broken: success on invalid input.
10906 echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10909 # Passes both tests.
10913 rm -f conftest.err conftest.$ac_ext
10916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10917 rm -f conftest.err conftest.$ac_ext
10918 if $ac_preproc_ok; then
10921 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10922 See \`config.log' for more details." >&5
10923 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10924 See \`config.log' for more details." >&2;}
10925 { (exit 1); exit 1; }; }
10929 ac_cpp='$CXXCPP $CPPFLAGS'
10930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10938 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10939 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10940 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10941 if test -n "$ac_tool_prefix"; then
10942 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10945 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10946 echo "$as_me:$LINENO: checking for $ac_word" >&5
10947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10948 if test "${ac_cv_prog_F77+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10951 if test -n "$F77"; then
10952 ac_cv_prog_F77="$F77" # Let the user override the test.
10954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955 for as_dir in $PATH
10958 test -z "$as_dir" && as_dir=.
10959 for ac_exec_ext in '' $ac_executable_extensions; do
10960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10961 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10970 F77=$ac_cv_prog_F77
10971 if test -n "$F77"; then
10972 echo "$as_me:$LINENO: result: $F77" >&5
10973 echo "${ECHO_T}$F77" >&6
10975 echo "$as_me:$LINENO: result: no" >&5
10976 echo "${ECHO_T}no" >&6
10979 test -n "$F77" && break
10982 if test -z "$F77"; then
10984 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10986 # Extract the first word of "$ac_prog", so it can be a program name with args.
10987 set dummy $ac_prog; ac_word=$2
10988 echo "$as_me:$LINENO: checking for $ac_word" >&5
10989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10990 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 if test -n "$ac_ct_F77"; then
10994 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10997 for as_dir in $PATH
11000 test -z "$as_dir" && as_dir=.
11001 for ac_exec_ext in '' $ac_executable_extensions; do
11002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11003 ac_cv_prog_ac_ct_F77="$ac_prog"
11004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11012 ac_ct_F77=$ac_cv_prog_ac_ct_F77
11013 if test -n "$ac_ct_F77"; then
11014 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11015 echo "${ECHO_T}$ac_ct_F77" >&6
11017 echo "$as_me:$LINENO: result: no" >&5
11018 echo "${ECHO_T}no" >&6
11021 test -n "$ac_ct_F77" && break
11028 # Provide some information about the compiler.
11029 echo "$as_me:11029:" \
11030 "checking for Fortran 77 compiler version" >&5
11031 ac_compiler=`set X $ac_compile; echo $2`
11032 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11033 (eval $ac_compiler --version </dev/null >&5) 2>&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); }
11037 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11038 (eval $ac_compiler -v </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); }
11049 # If we don't use `.F' as extension, the preprocessor is not run on the
11050 # input file. (Note that this only needs to work for GNU compilers.)
11051 ac_save_ext=$ac_ext
11053 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11054 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11055 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11058 cat >conftest.$ac_ext <<_ACEOF
11066 rm -f conftest.$ac_objext
11067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11068 (eval $ac_compile) 2>conftest.er1
11070 grep -v '^ *+' conftest.er1 >conftest.err
11072 cat conftest.err >&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } &&
11075 { ac_try='test -z "$ac_f77_werror_flag"
11076 || test ! -s conftest.err'
11077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; } &&
11082 { ac_try='test -s conftest.$ac_objext'
11083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084 (eval $ac_try) 2>&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); }; }; then
11088 ac_compiler_gnu=yes
11090 echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.$ac_ext >&5
11095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11096 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11099 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11100 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11101 ac_ext=$ac_save_ext
11102 ac_test_FFLAGS=${FFLAGS+set}
11103 ac_save_FFLAGS=$FFLAGS
11105 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11106 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11107 if test "${ac_cv_prog_f77_g+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 cat >conftest.$ac_ext <<_ACEOF
11116 rm -f conftest.$ac_objext
11117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11118 (eval $ac_compile) 2>conftest.er1
11120 grep -v '^ *+' conftest.er1 >conftest.err
11122 cat conftest.err >&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } &&
11125 { ac_try='test -z "$ac_f77_werror_flag"
11126 || test ! -s conftest.err'
11127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11128 (eval $ac_try) 2>&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); }; } &&
11132 { ac_try='test -s conftest.$ac_objext'
11133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134 (eval $ac_try) 2>&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; }; then
11138 ac_cv_prog_f77_g=yes
11140 echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11143 ac_cv_prog_f77_g=no
11145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11148 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11149 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11150 if test "$ac_test_FFLAGS" = set; then
11151 FFLAGS=$ac_save_FFLAGS
11152 elif test $ac_cv_prog_f77_g = yes; then
11153 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11159 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11166 G77=`test $ac_compiler_gnu = yes && echo yes`
11168 ac_cpp='$CPP $CPPFLAGS'
11169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11175 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11177 # find the maximum length of command line arguments
11178 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11179 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11180 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11188 # On DJGPP, this test can blow up pretty badly due to problems in libc
11189 # (any single argument exceeding 2000 bytes causes a buffer overrun
11190 # during glob expansion). Even if it were fixed, the result of this
11191 # check would be larger than it should be.
11192 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11196 # Under GNU Hurd, this test is not required because there is
11197 # no limit to the length of command line arguments.
11198 # Libtool will interpret -1 as no limit whatsoever
11199 lt_cv_sys_max_cmd_len=-1;
11203 # On Win9x/ME, this test blows up -- it succeeds, but takes
11204 # about 5 minutes as the teststring grows exponentially.
11205 # Worse, since 9x/ME are not pre-emptively multitasking,
11206 # you end up with a "frozen" computer, even though with patience
11207 # the test eventually succeeds (with a max line length of 256k).
11208 # Instead, let's just punt: use the minimum linelength reported by
11209 # all of the supported platforms: 8192 (on NT/2K/XP).
11210 lt_cv_sys_max_cmd_len=8192;
11214 # On AmigaOS with pdksh, this test takes hours, literally.
11215 # So we just punt and use a minimum line length of 8192.
11216 lt_cv_sys_max_cmd_len=8192;
11219 netbsd* | freebsd* | openbsd* | darwin* )
11220 # This has been around since 386BSD, at least. Likely further.
11221 if test -x /sbin/sysctl; then
11222 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11223 elif test -x /usr/sbin/sysctl; then
11224 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11226 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11228 # And add a safety zone
11229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11233 # If test is not a shell built-in, we'll probably end up computing a
11234 # maximum length that is only half of the actual maximum length, but
11236 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11237 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11238 = "XX$teststring") >/dev/null 2>&1 &&
11239 new_result=`expr "X$teststring" : ".*" 2>&1` &&
11240 lt_cv_sys_max_cmd_len=$new_result &&
11241 test $i != 17 # 1/2 MB should be enough
11244 teststring=$teststring$teststring
11247 # Add a significant safety factor because C++ compilers can tack on massive
11248 # amounts of additional arguments before passing them to the linker.
11249 # It appears as though 1/2 is a usable value.
11250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11256 if test -n $lt_cv_sys_max_cmd_len ; then
11257 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11258 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11260 echo "$as_me:$LINENO: result: none" >&5
11261 echo "${ECHO_T}none" >&6
11267 # Check for command to grab the raw symbol name followed by C symbol from nm.
11268 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11269 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11270 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11274 # These are sane defaults that work on at least a few old systems.
11275 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11277 # Character class describing NM global symbol codes.
11278 symcode='[BCDEGRST]'
11280 # Regexp to match symbols that can be accessed directly from C.
11281 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11283 # Transform the above into a raw symbol and a C symbol.
11284 symxfrm='\1 \2\3 \3'
11286 # Transform an extracted symbol line into a proper C declaration
11287 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11289 # Transform an extracted symbol line into symbol name and symbol address
11290 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'"
11292 # Define system-specific variables.
11297 cygwin* | mingw* | pw32*)
11298 symcode='[ABCDGISTW]'
11300 hpux*) # Its linker distinguishes data from code symbols
11301 if test "$host_cpu" = ia64; then
11302 symcode='[ABCDEGRST]'
11304 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11305 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'"
11308 if test "$host_cpu" = ia64; then
11309 symcode='[ABCDGIRSTW]'
11310 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11311 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'"
11314 irix* | nonstopux*)
11315 symcode='[BCDEGRST]'
11318 symcode='[BCDEGQRST]'
11328 # Handle CRLF in mingw tool chain
11332 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11336 # If we're using GNU nm, then use its standard symbol codes.
11337 case `$NM -V 2>&1` in
11338 *GNU* | *'with BFD'*)
11339 symcode='[ABCDGIRSTW]' ;;
11342 # Try without a prefix undercore, then with it.
11343 for ac_symprfx in "" "_"; do
11345 # Write the raw and C identifiers.
11346 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11348 # Check to see that the pipe works correctly.
11352 cat > conftest.$ac_ext <<EOF
11357 void nm_test_func(){}
11361 int main(){nm_test_var='a';nm_test_func();return(0);}
11364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11365 (eval $ac_compile) 2>&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; then
11369 # Now try to grab the symbols.
11371 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11372 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } && test -s "$nlist"; then
11376 # Try sorting and uniquifying the output.
11377 if sort "$nlist" | uniq > "$nlist"T; then
11378 mv -f "$nlist"T "$nlist"
11383 # Make sure that we snagged all the symbols we need.
11384 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11385 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11386 cat <<EOF > conftest.$ac_ext
11392 # Now generate the symbol file.
11393 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11395 cat <<EOF >> conftest.$ac_ext
11396 #if defined (__STDC__) && __STDC__
11397 # define lt_ptr_t void *
11399 # define lt_ptr_t char *
11403 /* The mapping between symbol names and symbols. */
11408 lt_preloaded_symbols[] =
11411 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11412 cat <<\EOF >> conftest.$ac_ext
11420 # Now try linking the two files.
11421 mv conftest.$ac_objext conftstm.$ac_objext
11422 lt_save_LIBS="$LIBS"
11423 lt_save_CFLAGS="$CFLAGS"
11424 LIBS="conftstm.$ac_objext"
11425 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11427 (eval $ac_link) 2>&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11433 LIBS="$lt_save_LIBS"
11434 CFLAGS="$lt_save_CFLAGS"
11436 echo "cannot find nm_test_func in $nlist" >&5
11439 echo "cannot find nm_test_var in $nlist" >&5
11442 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11445 echo "$progname: failed program was:" >&5
11446 cat conftest.$ac_ext >&5
11448 rm -f conftest* conftst*
11450 # Do not use the global_symbol_pipe unless it works.
11451 if test "$pipe_works" = yes; then
11454 lt_cv_sys_global_symbol_pipe=
11460 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11461 lt_cv_sys_global_symbol_to_cdecl=
11463 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11464 echo "$as_me:$LINENO: result: failed" >&5
11465 echo "${ECHO_T}failed" >&6
11467 echo "$as_me:$LINENO: result: ok" >&5
11468 echo "${ECHO_T}ok" >&6
11471 echo "$as_me:$LINENO: checking for objdir" >&5
11472 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11473 if test "${lt_cv_objdir+set}" = set; then
11474 echo $ECHO_N "(cached) $ECHO_C" >&6
11476 rm -f .libs 2>/dev/null
11477 mkdir .libs 2>/dev/null
11478 if test -d .libs; then
11481 # MS-DOS does not allow filenames that begin with a dot.
11484 rmdir .libs 2>/dev/null
11486 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11487 echo "${ECHO_T}$lt_cv_objdir" >&6
11488 objdir=$lt_cv_objdir
11496 # AIX sometimes has problems with the GCC collect2 program. For some
11497 # reason, if we set the COLLECT_NAMES environment variable, the problems
11498 # vanish in a puff of smoke.
11499 if test "X${COLLECT_NAMES+set}" != Xset; then
11501 export COLLECT_NAMES
11506 # Sed substitution that helps us do robust quoting. It backslashifies
11507 # metacharacters that are still active within double-quoted strings.
11508 Xsed='sed -e s/^X//'
11509 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11511 # Same as above, but do not quote variable references.
11512 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11514 # Sed substitution to delay expansion of an escaped shell variable in a
11515 # double_quote_subst'ed string.
11516 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11518 # Sed substitution to avoid accidental globbing in evaled expressions
11519 no_glob_subst='s/\*/\\\*/g'
11524 # Global variables:
11525 default_ofile=mklib
11526 can_build_shared=yes
11528 # All known linkers require a `.a' archive for static linking (except M$VC,
11529 # which needs '.lib').
11531 ltmain="$ac_aux_dir/ltmain.sh"
11532 ofile="$default_ofile"
11533 with_gnu_ld="$lt_cv_prog_gnu_ld"
11535 if test -n "$ac_tool_prefix"; then
11536 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11537 set dummy ${ac_tool_prefix}ar; ac_word=$2
11538 echo "$as_me:$LINENO: checking for $ac_word" >&5
11539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11540 if test "${ac_cv_prog_AR+set}" = set; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 if test -n "$AR"; then
11544 ac_cv_prog_AR="$AR" # Let the user override the test.
11546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11547 for as_dir in $PATH
11550 test -z "$as_dir" && as_dir=.
11551 for ac_exec_ext in '' $ac_executable_extensions; do
11552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11553 ac_cv_prog_AR="${ac_tool_prefix}ar"
11554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11563 if test -n "$AR"; then
11564 echo "$as_me:$LINENO: result: $AR" >&5
11565 echo "${ECHO_T}$AR" >&6
11567 echo "$as_me:$LINENO: result: no" >&5
11568 echo "${ECHO_T}no" >&6
11572 if test -z "$ac_cv_prog_AR"; then
11574 # Extract the first word of "ar", so it can be a program name with args.
11575 set dummy ar; ac_word=$2
11576 echo "$as_me:$LINENO: checking for $ac_word" >&5
11577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11578 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11581 if test -n "$ac_ct_AR"; then
11582 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585 for as_dir in $PATH
11588 test -z "$as_dir" && as_dir=.
11589 for ac_exec_ext in '' $ac_executable_extensions; do
11590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11591 ac_cv_prog_ac_ct_AR="ar"
11592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11598 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11601 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11602 if test -n "$ac_ct_AR"; then
11603 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11604 echo "${ECHO_T}$ac_ct_AR" >&6
11606 echo "$as_me:$LINENO: result: no" >&5
11607 echo "${ECHO_T}no" >&6
11612 AR="$ac_cv_prog_AR"
11615 if test -n "$ac_tool_prefix"; then
11616 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11618 echo "$as_me:$LINENO: checking for $ac_word" >&5
11619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11620 if test "${ac_cv_prog_RANLIB+set}" = set; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 if test -n "$RANLIB"; then
11624 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627 for as_dir in $PATH
11630 test -z "$as_dir" && as_dir=.
11631 for ac_exec_ext in '' $ac_executable_extensions; do
11632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11633 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11642 RANLIB=$ac_cv_prog_RANLIB
11643 if test -n "$RANLIB"; then
11644 echo "$as_me:$LINENO: result: $RANLIB" >&5
11645 echo "${ECHO_T}$RANLIB" >&6
11647 echo "$as_me:$LINENO: result: no" >&5
11648 echo "${ECHO_T}no" >&6
11652 if test -z "$ac_cv_prog_RANLIB"; then
11653 ac_ct_RANLIB=$RANLIB
11654 # Extract the first word of "ranlib", so it can be a program name with args.
11655 set dummy ranlib; ac_word=$2
11656 echo "$as_me:$LINENO: checking for $ac_word" >&5
11657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11658 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11659 echo $ECHO_N "(cached) $ECHO_C" >&6
11661 if test -n "$ac_ct_RANLIB"; then
11662 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665 for as_dir in $PATH
11668 test -z "$as_dir" && as_dir=.
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11671 ac_cv_prog_ac_ct_RANLIB="ranlib"
11672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11678 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11681 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11682 if test -n "$ac_ct_RANLIB"; then
11683 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11684 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11686 echo "$as_me:$LINENO: result: no" >&5
11687 echo "${ECHO_T}no" >&6
11690 RANLIB=$ac_ct_RANLIB
11692 RANLIB="$ac_cv_prog_RANLIB"
11695 if test -n "$ac_tool_prefix"; then
11696 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11697 set dummy ${ac_tool_prefix}strip; ac_word=$2
11698 echo "$as_me:$LINENO: checking for $ac_word" >&5
11699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11700 if test "${ac_cv_prog_STRIP+set}" = set; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11703 if test -n "$STRIP"; then
11704 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707 for as_dir in $PATH
11710 test -z "$as_dir" && as_dir=.
11711 for ac_exec_ext in '' $ac_executable_extensions; do
11712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11713 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11722 STRIP=$ac_cv_prog_STRIP
11723 if test -n "$STRIP"; then
11724 echo "$as_me:$LINENO: result: $STRIP" >&5
11725 echo "${ECHO_T}$STRIP" >&6
11727 echo "$as_me:$LINENO: result: no" >&5
11728 echo "${ECHO_T}no" >&6
11732 if test -z "$ac_cv_prog_STRIP"; then
11734 # Extract the first word of "strip", so it can be a program name with args.
11735 set dummy strip; ac_word=$2
11736 echo "$as_me:$LINENO: checking for $ac_word" >&5
11737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11738 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
11741 if test -n "$ac_ct_STRIP"; then
11742 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745 for as_dir in $PATH
11748 test -z "$as_dir" && as_dir=.
11749 for ac_exec_ext in '' $ac_executable_extensions; do
11750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11751 ac_cv_prog_ac_ct_STRIP="strip"
11752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11758 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11761 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11762 if test -n "$ac_ct_STRIP"; then
11763 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11764 echo "${ECHO_T}$ac_ct_STRIP" >&6
11766 echo "$as_me:$LINENO: result: no" >&5
11767 echo "${ECHO_T}no" >&6
11772 STRIP="$ac_cv_prog_STRIP"
11777 old_CFLAGS="$CFLAGS"
11779 # Set sane defaults for various variables
11780 test -z "$AR" && AR=ar
11781 test -z "$AR_FLAGS" && AR_FLAGS=cru
11782 test -z "$AS" && AS=as
11783 test -z "$CC" && CC=cc
11784 test -z "$LTCC" && LTCC=$CC
11785 test -z "$DLLTOOL" && DLLTOOL=dlltool
11786 test -z "$LD" && LD=ld
11787 test -z "$LN_S" && LN_S="ln -s"
11788 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11789 test -z "$NM" && NM=nm
11790 test -z "$SED" && SED=sed
11791 test -z "$OBJDUMP" && OBJDUMP=objdump
11792 test -z "$RANLIB" && RANLIB=:
11793 test -z "$STRIP" && STRIP=:
11794 test -z "$ac_objext" && ac_objext=o
11796 # Determine commands to create old-style static archives.
11797 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11798 old_postinstall_cmds='chmod 644 $oldlib'
11799 old_postuninstall_cmds=
11801 if test -n "$RANLIB"; then
11804 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11807 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11810 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11813 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11815 # Only perform the check for file, if the check method requires it
11816 case $deplibs_check_method in
11818 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11819 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11820 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11821 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11826 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11829 lt_save_MAGIC_CMD="$MAGIC_CMD"
11830 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11831 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11832 for ac_dir in $ac_dummy; do
11834 test -z "$ac_dir" && ac_dir=.
11835 if test -f $ac_dir/${ac_tool_prefix}file; then
11836 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11837 if test -n "$file_magic_test_file"; then
11838 case $deplibs_check_method in
11840 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11841 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11842 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11843 $EGREP "$file_magic_regex" > /dev/null; then
11848 *** Warning: the command libtool uses to detect shared libraries,
11849 *** $file_magic_cmd, produces output that libtool cannot recognize.
11850 *** The result is that libtool may fail to recognize shared libraries
11851 *** as such. This will affect the creation of libtool libraries that
11852 *** depend on shared libraries, but programs linked with such libtool
11853 *** libraries will work regardless of this problem. Nevertheless, you
11854 *** may want to report the problem to your system manager and/or to
11855 *** bug-libtool@gnu.org
11865 MAGIC_CMD="$lt_save_MAGIC_CMD"
11870 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11871 if test -n "$MAGIC_CMD"; then
11872 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11873 echo "${ECHO_T}$MAGIC_CMD" >&6
11875 echo "$as_me:$LINENO: result: no" >&5
11876 echo "${ECHO_T}no" >&6
11879 if test -z "$lt_cv_path_MAGIC_CMD"; then
11880 if test -n "$ac_tool_prefix"; then
11881 echo "$as_me:$LINENO: checking for file" >&5
11882 echo $ECHO_N "checking for file... $ECHO_C" >&6
11883 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11884 echo $ECHO_N "(cached) $ECHO_C" >&6
11888 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11891 lt_save_MAGIC_CMD="$MAGIC_CMD"
11892 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11893 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11894 for ac_dir in $ac_dummy; do
11896 test -z "$ac_dir" && ac_dir=.
11897 if test -f $ac_dir/file; then
11898 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11899 if test -n "$file_magic_test_file"; then
11900 case $deplibs_check_method in
11902 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11903 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11904 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11905 $EGREP "$file_magic_regex" > /dev/null; then
11910 *** Warning: the command libtool uses to detect shared libraries,
11911 *** $file_magic_cmd, produces output that libtool cannot recognize.
11912 *** The result is that libtool may fail to recognize shared libraries
11913 *** as such. This will affect the creation of libtool libraries that
11914 *** depend on shared libraries, but programs linked with such libtool
11915 *** libraries will work regardless of this problem. Nevertheless, you
11916 *** may want to report the problem to your system manager and/or to
11917 *** bug-libtool@gnu.org
11927 MAGIC_CMD="$lt_save_MAGIC_CMD"
11932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11933 if test -n "$MAGIC_CMD"; then
11934 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11935 echo "${ECHO_T}$MAGIC_CMD" >&6
11937 echo "$as_me:$LINENO: result: no" >&5
11938 echo "${ECHO_T}no" >&6
11951 enable_win32_dll=no
11953 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11954 if test "${enable_libtool_lock+set}" = set; then
11955 enableval="$enable_libtool_lock"
11958 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11961 # Check whether --with-pic or --without-pic was given.
11962 if test "${with_pic+set}" = set; then
11963 withval="$with_pic"
11964 pic_mode="$withval"
11968 test -z "$pic_mode" && pic_mode=default
11970 # Use C for the default configuration in the libtool script
11974 ac_cpp='$CPP $CPPFLAGS'
11975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11980 # Source file extension for C test sources.
11983 # Object file extension for compiled C test sources.
11987 # Code to be used in simple compile tests
11988 lt_simple_compile_test_code="int some_variable = 0;\n"
11990 # Code to be used in simple link tests
11991 lt_simple_link_test_code='int main(){return(0);}\n'
11994 # If no C compiler was specified, use CC.
11997 # Allow CC to be a program name with arguments.
12002 # Check for any special shared library compilation flags.
12005 if test "$GCC" = no; then
12008 lt_prog_cc_shlib='-belf'
12012 if test -n "$lt_prog_cc_shlib"; then
12013 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12014 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12015 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
12017 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12018 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12019 lt_cv_prog_cc_can_build_shared=no
12025 # Check to make sure the static flag actually works.
12027 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12028 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12029 if test "${lt_prog_compiler_static_works+set}" = set; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12032 lt_prog_compiler_static_works=no
12033 save_LDFLAGS="$LDFLAGS"
12034 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12035 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12036 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12037 # The compiler can only warn and ignore the option if not recognized
12038 # So say no if there are warnings
12039 if test -s conftest.err; then
12040 # Append any errors to the config.log.
12041 cat conftest.err 1>&5
12043 lt_prog_compiler_static_works=yes
12047 LDFLAGS="$save_LDFLAGS"
12050 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12051 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12053 if test x"$lt_prog_compiler_static_works" = xyes; then
12056 lt_prog_compiler_static=
12062 lt_prog_compiler_no_builtin_flag=
12064 if test "$GCC" = yes; then
12065 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12068 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12069 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12070 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12071 echo $ECHO_N "(cached) $ECHO_C" >&6
12073 lt_cv_prog_compiler_rtti_exceptions=no
12074 ac_outfile=conftest.$ac_objext
12075 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12076 lt_compiler_flag="-fno-rtti -fno-exceptions"
12077 # Insert the option either (1) after the last *FLAGS variable, or
12078 # (2) before a word containing "conftest.", or (3) at the end.
12079 # Note that $ac_compile itself does not contain backslashes and begins
12080 # with a dollar sign (not a hyphen), so the echo should work correctly.
12081 # The option is referenced via a variable to avoid confusing sed.
12082 lt_compile=`echo "$ac_compile" | $SED \
12083 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12085 -e 's:$: $lt_compiler_flag:'`
12086 (eval echo "\"\$as_me:12086: $lt_compile\"" >&5)
12087 (eval "$lt_compile" 2>conftest.err)
12089 cat conftest.err >&5
12090 echo "$as_me:12090: \$? = $ac_status" >&5
12091 if (exit $ac_status) && test -s "$ac_outfile"; then
12092 # The compiler can only warn and ignore the option if not recognized
12093 # So say no if there are warnings
12094 if test ! -s conftest.err; then
12095 lt_cv_prog_compiler_rtti_exceptions=yes
12101 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12102 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12104 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12105 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12112 lt_prog_compiler_wl=
12113 lt_prog_compiler_pic=
12114 lt_prog_compiler_static=
12116 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12117 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12119 if test "$GCC" = yes; then
12120 lt_prog_compiler_wl='-Wl,'
12121 lt_prog_compiler_static='-static'
12125 # All AIX code is PIC.
12126 if test "$host_cpu" = ia64; then
12127 # AIX 5 now supports IA64 processor
12128 lt_prog_compiler_static='-Bstatic'
12133 # FIXME: we need at least 68020 code to build shared libraries, but
12134 # adding the `-m68020' flag to GCC prevents building anything better,
12136 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12139 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12140 # PIC is the default for these OSes.
12143 mingw* | pw32* | os2*)
12144 # This hack is so that the source file can tell whether it is being
12145 # built for inclusion in a dll (and should export symbols for example).
12146 lt_prog_compiler_pic='-DDLL_EXPORT'
12149 darwin* | rhapsody*)
12150 # PIC is the default on this platform
12151 # Common symbols not allowed in MH_DYLIB files
12152 lt_prog_compiler_pic='-fno-common'
12156 # Just because we use GCC doesn't mean we suddenly get shared libraries
12157 # on systems that don't support them.
12158 lt_prog_compiler_can_build_shared=no
12163 if test -d /usr/nec; then
12164 lt_prog_compiler_pic=-Kconform_pic
12169 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12170 # not for PA HP-UX.
12171 case "$host_cpu" in
12176 lt_prog_compiler_pic='-fPIC'
12182 lt_prog_compiler_pic='-fPIC'
12186 # PORTME Check for flag to pass linker flags through the system compiler.
12189 lt_prog_compiler_wl='-Wl,'
12190 if test "$host_cpu" = ia64; then
12191 # AIX 5 now supports IA64 processor
12192 lt_prog_compiler_static='-Bstatic'
12194 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12198 # PIC is the default on this platform
12199 # Common symbols not allowed in MH_DYLIB files
12200 case "$cc_basename" in
12202 lt_prog_compiler_pic='-qnocommon'
12203 lt_prog_compiler_wl='-Wl,'
12208 mingw* | pw32* | os2*)
12209 # This hack is so that the source file can tell whether it is being
12210 # built for inclusion in a dll (and should export symbols for example).
12211 lt_prog_compiler_pic='-DDLL_EXPORT'
12214 hpux9* | hpux10* | hpux11*)
12215 lt_prog_compiler_wl='-Wl,'
12216 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12217 # not for PA HP-UX.
12218 case "$host_cpu" in
12223 lt_prog_compiler_pic='+Z'
12226 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12227 lt_prog_compiler_static='${wl}-a ${wl}archive'
12230 irix5* | irix6* | nonstopux*)
12231 lt_prog_compiler_wl='-Wl,'
12232 # PIC (with -KPIC) is the default.
12233 lt_prog_compiler_static='-non_shared'
12237 lt_prog_compiler_pic='-KPIC'
12238 lt_prog_compiler_static='-Bstatic'
12244 lt_prog_compiler_wl='-Wl,'
12245 lt_prog_compiler_pic='-KPIC'
12246 lt_prog_compiler_static='-static'
12249 lt_prog_compiler_wl='-Wl,'
12250 # All Alpha code is PIC.
12251 lt_prog_compiler_static='-non_shared'
12256 osf3* | osf4* | osf5*)
12257 lt_prog_compiler_wl='-Wl,'
12258 # All OSF/1 code is PIC.
12259 lt_prog_compiler_static='-non_shared'
12263 lt_prog_compiler_pic='-Kpic'
12264 lt_prog_compiler_static='-dn'
12268 lt_prog_compiler_wl='-Wl,'
12269 lt_prog_compiler_pic='-KPIC'
12270 lt_prog_compiler_static='-Bstatic'
12274 lt_prog_compiler_wl='-Qoption ld '
12275 lt_prog_compiler_pic='-PIC'
12276 lt_prog_compiler_static='-Bstatic'
12279 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12280 lt_prog_compiler_wl='-Wl,'
12281 lt_prog_compiler_pic='-KPIC'
12282 lt_prog_compiler_static='-Bstatic'
12286 if test -d /usr/nec ;then
12287 lt_prog_compiler_pic='-Kconform_pic'
12288 lt_prog_compiler_static='-Bstatic'
12293 lt_prog_compiler_pic='-pic'
12294 lt_prog_compiler_static='-Bstatic'
12298 lt_prog_compiler_can_build_shared=no
12303 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12304 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12307 # Check to make sure the PIC flag actually works.
12309 if test -n "$lt_prog_compiler_pic"; then
12311 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12312 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12313 if test "${lt_prog_compiler_pic_works+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 lt_prog_compiler_pic_works=no
12317 ac_outfile=conftest.$ac_objext
12318 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12319 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12320 # Insert the option either (1) after the last *FLAGS variable, or
12321 # (2) before a word containing "conftest.", or (3) at the end.
12322 # Note that $ac_compile itself does not contain backslashes and begins
12323 # with a dollar sign (not a hyphen), so the echo should work correctly.
12324 # The option is referenced via a variable to avoid confusing sed.
12325 lt_compile=`echo "$ac_compile" | $SED \
12326 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12328 -e 's:$: $lt_compiler_flag:'`
12329 (eval echo "\"\$as_me:12329: $lt_compile\"" >&5)
12330 (eval "$lt_compile" 2>conftest.err)
12332 cat conftest.err >&5
12333 echo "$as_me:12333: \$? = $ac_status" >&5
12334 if (exit $ac_status) && test -s "$ac_outfile"; then
12335 # The compiler can only warn and ignore the option if not recognized
12336 # So say no if there are warnings
12337 if test ! -s conftest.err; then
12338 lt_prog_compiler_pic_works=yes
12344 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12345 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12347 if test x"$lt_prog_compiler_pic_works" = xyes; then
12348 case $lt_prog_compiler_pic in
12350 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12353 lt_prog_compiler_pic=
12354 lt_prog_compiler_can_build_shared=no
12359 # For platforms which do not support PIC, -DPIC is meaningless:
12361 lt_prog_compiler_pic=
12364 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12368 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12369 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12370 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12373 lt_cv_prog_compiler_c_o=no
12374 $rm -r conftest 2>/dev/null
12378 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12380 lt_compiler_flag="-o out/conftest2.$ac_objext"
12381 # Insert the option either (1) after the last *FLAGS variable, or
12382 # (2) before a word containing "conftest.", or (3) at the end.
12383 # Note that $ac_compile itself does not contain backslashes and begins
12384 # with a dollar sign (not a hyphen), so the echo should work correctly.
12385 lt_compile=`echo "$ac_compile" | $SED \
12386 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12388 -e 's:$: $lt_compiler_flag:'`
12389 (eval echo "\"\$as_me:12389: $lt_compile\"" >&5)
12390 (eval "$lt_compile" 2>out/conftest.err)
12392 cat out/conftest.err >&5
12393 echo "$as_me:12393: \$? = $ac_status" >&5
12394 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12396 # The compiler can only warn and ignore the option if not recognized
12397 # So say no if there are warnings
12398 if test ! -s out/conftest.err; then
12399 lt_cv_prog_compiler_c_o=yes
12404 # SGI C++ compiler will create directory out/ii_files/ for
12405 # template instantiation
12406 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12407 $rm out/* && rmdir out
12413 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12414 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12417 hard_links="nottested"
12418 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12419 # do not overwrite the value of need_locks provided by the user
12420 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12421 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12424 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12426 ln conftest.a conftest.b 2>&5 || hard_links=no
12427 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12428 echo "$as_me:$LINENO: result: $hard_links" >&5
12429 echo "${ECHO_T}$hard_links" >&6
12430 if test "$hard_links" = no; then
12431 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12432 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12439 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12440 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12443 allow_undefined_flag=
12444 enable_shared_with_static_runtimes=no
12446 archive_expsym_cmds=
12447 old_archive_From_new_cmds=
12448 old_archive_from_expsyms_cmds=
12449 export_dynamic_flag_spec=
12450 whole_archive_flag_spec=
12451 thread_safe_flag_spec=
12452 hardcode_libdir_flag_spec=
12453 hardcode_libdir_flag_spec_ld=
12454 hardcode_libdir_separator=
12456 hardcode_minus_L=no
12457 hardcode_shlibpath_var=unsupported
12458 link_all_deplibs=unknown
12459 hardcode_automatic=no
12461 module_expsym_cmds=
12462 always_export_symbols=no
12463 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12464 # include_expsyms should be a list of space-separated symbols to be *always*
12465 # included in the symbol list
12467 # exclude_expsyms can be an extended regexp of symbols to exclude
12468 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12469 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12470 # as well as any symbol that contains `d'.
12471 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12472 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12473 # platforms (ab)use it in PIC code, but their linkers get confused if
12474 # the symbol is explicitly referenced. Since portable code cannot
12475 # rely on this symbol name, it's probably fine to never include it in
12476 # preloaded symbol tables.
12477 extract_expsyms_cmds=
12480 cygwin* | mingw* | pw32*)
12481 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12482 # When not using gcc, we currently assume that we are using
12483 # Microsoft Visual C++.
12484 if test "$GCC" != yes; then
12494 if test "$with_gnu_ld" = yes; then
12495 # If archive_cmds runs LD, not CC, wlarc should be empty
12498 # See if GNU ld supports shared libraries.
12500 aix3* | aix4* | aix5*)
12501 # On AIX/PPC, the GNU linker is very broken
12502 if test "$host_cpu" != ia64; then
12506 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12507 *** to be unable to reliably create shared libraries on AIX.
12508 *** Therefore, libtool is disabling shared libraries support. If you
12509 *** really care for shared libraries, you may want to modify your PATH
12510 *** so that a non-GNU linker is found, and then restart.
12517 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)'
12518 hardcode_libdir_flag_spec='-L$libdir'
12519 hardcode_minus_L=yes
12521 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12522 # that the semantics of dynamic libraries on AmigaOS, at least up
12523 # to version 4, is to share data among multiple programs linked
12524 # with the same dynamic library. Since this doesn't match the
12525 # behavior of shared libraries on other platforms, we can't use
12531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12532 allow_undefined_flag=unsupported
12533 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12534 # support --undefined. This deserves some investigation. FIXME
12535 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12541 cygwin* | mingw* | pw32*)
12542 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12543 # as there is no search path for DLLs.
12544 hardcode_libdir_flag_spec='-L$libdir'
12545 allow_undefined_flag=unsupported
12546 always_export_symbols=no
12547 enable_shared_with_static_runtimes=yes
12548 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12550 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12552 # If the export-symbols file already is a .def file (1st line
12553 # is EXPORTS), use it as is; otherwise, prepend...
12554 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12555 cp $export_symbols $output_objdir/$soname.def;
12557 echo EXPORTS > $output_objdir/$soname.def;
12558 cat $export_symbols >> $output_objdir/$soname.def;
12560 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12567 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12568 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12572 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12577 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12581 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12582 *** create shared libraries on Solaris systems. Therefore, libtool
12583 *** is disabling shared libraries support. We urge you to upgrade GNU
12584 *** binutils to release 2.9.1 or newer. Another option is to modify
12585 *** your PATH or compiler configuration so that the native linker is
12586 *** used, and then restart.
12589 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12590 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12591 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12598 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12600 hardcode_direct=yes
12601 hardcode_shlibpath_var=no
12605 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12606 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12607 archive_cmds="$tmp_archive_cmds"
12608 supports_anon_versioning=no
12609 case `$LD -v 2>/dev/null` in
12610 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12611 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12612 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12613 *\ 2.11.*) ;; # other 2.11 versions
12614 *) supports_anon_versioning=yes ;;
12616 if test $supports_anon_versioning = yes; then
12617 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12618 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12619 $echo "local: *; };" >> $output_objdir/$libname.ver~
12620 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12622 archive_expsym_cmds="$tmp_archive_cmds"
12630 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12632 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12639 if test "$ld_shlibs" = yes; then
12640 runpath_var=LD_RUN_PATH
12641 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12642 export_dynamic_flag_spec='${wl}--export-dynamic'
12643 # ancient GNU ld didn't support --whole-archive et. al.
12644 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12645 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12647 whole_archive_flag_spec=
12651 # PORTME fill in a description of your system's linker (not GNU ld)
12654 allow_undefined_flag=unsupported
12655 always_export_symbols=yes
12656 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'
12657 # Note: this linker hardcodes the directories in LIBPATH if there
12658 # are no directories specified by -L.
12659 hardcode_minus_L=yes
12660 if test "$GCC" = yes && test -z "$link_static_flag"; then
12661 # Neither direct hardcoding nor static linking is supported with a
12663 hardcode_direct=unsupported
12668 if test "$host_cpu" = ia64; then
12669 # On IA64, the linker does run time linking by default, so we don't
12670 # have to do anything special.
12671 aix_use_runtimelinking=no
12672 exp_sym_flag='-Bexport'
12675 # If we're using GNU nm, then we don't want the "-C" option.
12676 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12677 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12678 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'
12680 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'
12682 aix_use_runtimelinking=no
12684 # Test if we are trying to use run time linking or normal
12685 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12686 # need to do runtime linking.
12687 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12688 for ld_flag in $LDFLAGS; do
12689 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12690 aix_use_runtimelinking=yes
12696 exp_sym_flag='-bexport'
12697 no_entry_flag='-bnoentry'
12700 # When large executables or shared objects are built, AIX ld can
12701 # have problems creating the table of contents. If linking a library
12702 # or program results in "error TOC overflow" add -mminimal-toc to
12703 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12704 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12707 hardcode_direct=yes
12708 hardcode_libdir_separator=':'
12709 link_all_deplibs=yes
12711 if test "$GCC" = yes; then
12712 case $host_os in aix4.012|aix4.012.*)
12713 # We only want to do this on AIX 4.2 and lower, the check
12714 # below for broken collect2 doesn't work under 4.3+
12715 collect2name=`${CC} -print-prog-name=collect2`
12716 if test -f "$collect2name" && \
12717 strings "$collect2name" | grep resolve_lib_name >/dev/null
12719 # We have reworked collect2
12720 hardcode_direct=yes
12722 # We have old collect2
12723 hardcode_direct=unsupported
12724 # It fails to find uninstalled libraries when the uninstalled
12725 # path is not listed in the libpath. Setting hardcode_minus_L
12726 # to unsupported forces relinking
12727 hardcode_minus_L=yes
12728 hardcode_libdir_flag_spec='-L$libdir'
12729 hardcode_libdir_separator=
12732 shared_flag='-shared'
12735 if test "$host_cpu" = ia64; then
12736 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12737 # chokes on -Wl,-G. The following line is correct:
12740 if test "$aix_use_runtimelinking" = yes; then
12741 shared_flag='${wl}-G'
12743 shared_flag='${wl}-bM:SRE'
12748 # It seems that -bexpall does not export symbols beginning with
12749 # underscore (_), so it is better to generate a list of symbols to export.
12750 always_export_symbols=yes
12751 if test "$aix_use_runtimelinking" = yes; then
12752 # Warning - without using the other runtime loading flags (-brtl),
12753 # -berok will link without error, but may produce a broken library.
12754 allow_undefined_flag='-berok'
12755 # Determine the default libpath from the value encoded in an empty executable.
12756 cat >conftest.$ac_ext <<_ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h. */
12771 rm -f conftest.$ac_objext conftest$ac_exeext
12772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12773 (eval $ac_link) 2>conftest.er1
12775 grep -v '^ *+' conftest.er1 >conftest.err
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } &&
12780 { ac_try='test -z "$ac_c_werror_flag"
12781 || test ! -s conftest.err'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; } &&
12787 { ac_try='test -s conftest$ac_exeext'
12788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789 (eval $ac_try) 2>&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; }; then
12794 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12796 # Check for a 64-bit object if we didn't find anything.
12797 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; }
12800 echo "$as_me: failed program was:" >&5
12801 sed 's/^/| /' conftest.$ac_ext >&5
12804 rm -f conftest.err conftest.$ac_objext \
12805 conftest$ac_exeext conftest.$ac_ext
12806 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12808 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12809 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"
12811 if test "$host_cpu" = ia64; then
12812 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12813 allow_undefined_flag="-z nodefs"
12814 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"
12816 # Determine the default libpath from the value encoded in an empty executable.
12817 cat >conftest.$ac_ext <<_ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12832 rm -f conftest.$ac_objext conftest$ac_exeext
12833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12834 (eval $ac_link) 2>conftest.er1
12836 grep -v '^ *+' conftest.er1 >conftest.err
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
12841 { ac_try='test -z "$ac_c_werror_flag"
12842 || test ! -s conftest.err'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; } &&
12848 { ac_try='test -s conftest$ac_exeext'
12849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850 (eval $ac_try) 2>&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; }; then
12855 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12857 # Check for a 64-bit object if we didn't find anything.
12858 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; }
12861 echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12865 rm -f conftest.err conftest.$ac_objext \
12866 conftest$ac_exeext conftest.$ac_ext
12867 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12869 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12870 # Warning - without using the other run time loading flags,
12871 # -berok will link without error, but may produce a broken library.
12872 no_undefined_flag=' ${wl}-bernotok'
12873 allow_undefined_flag=' ${wl}-berok'
12874 # -bexpall does not export symbols beginning with underscore (_)
12875 always_export_symbols=yes
12876 # Exported symbols can be pulled into shared objects from archives
12877 whole_archive_flag_spec=' '
12878 archive_cmds_need_lc=yes
12879 # This is similar to how AIX traditionally builds it's shared libraries.
12880 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'
12886 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)'
12887 hardcode_libdir_flag_spec='-L$libdir'
12888 hardcode_minus_L=yes
12889 # see comment about different semantics on the GNU ld section
12894 export_dynamic_flag_spec=-rdynamic
12897 cygwin* | mingw* | pw32*)
12898 # When not using gcc, we currently assume that we are using
12899 # Microsoft Visual C++.
12900 # hardcode_libdir_flag_spec is actually meaningless, as there is
12901 # no search path for DLLs.
12902 hardcode_libdir_flag_spec=' '
12903 allow_undefined_flag=unsupported
12904 # Tell ltmain to make .lib files, not .a files.
12906 # Tell ltmain to make .dll files, not .so files.
12908 # FIXME: Setting linknames here is a bad hack.
12909 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12910 # The linker will automatically build a .lib file if we build a DLL.
12911 old_archive_From_new_cmds='true'
12912 # FIXME: Should let the user specify the lib program.
12913 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12914 fix_srcfile_path='`cygpath -w "$srcfile"`'
12915 enable_shared_with_static_runtimes=yes
12918 darwin* | rhapsody*)
12920 rhapsody* | darwin1.[012])
12921 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12924 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12925 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12927 case ${MACOSX_DEPLOYMENT_TARGET} in
12929 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12932 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12938 archive_cmds_need_lc=no
12940 hardcode_automatic=yes
12941 hardcode_shlibpath_var=unsupported
12942 whole_archive_flag_spec=''
12943 link_all_deplibs=yes
12944 if test "$GCC" = yes ; then
12945 output_verbose_link_cmd='echo'
12946 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12947 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12948 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12949 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}'
12950 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}'
12952 case "$cc_basename" in
12954 output_verbose_link_cmd='echo'
12955 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12956 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12957 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12958 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}'
12959 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}'
12969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12970 hardcode_libdir_flag_spec='-L$libdir'
12971 hardcode_shlibpath_var=no
12978 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12979 # support. Future versions do this automatically, but an explicit c++rt0.o
12980 # does not break anything, and helps significantly (at the cost of a little
12983 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12984 hardcode_libdir_flag_spec='-R$libdir'
12985 hardcode_direct=yes
12986 hardcode_shlibpath_var=no
12989 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12991 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12992 hardcode_direct=yes
12993 hardcode_minus_L=yes
12994 hardcode_shlibpath_var=no
12997 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12998 freebsd* | kfreebsd*-gnu)
12999 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13000 hardcode_libdir_flag_spec='-R$libdir'
13001 hardcode_direct=yes
13002 hardcode_shlibpath_var=no
13006 if test "$GCC" = yes; then
13007 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'
13009 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'
13011 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13012 hardcode_libdir_separator=:
13013 hardcode_direct=yes
13015 # hardcode_minus_L: Not really in the search PATH,
13016 # but as the default location of the library.
13017 hardcode_minus_L=yes
13018 export_dynamic_flag_spec='${wl}-E'
13022 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13023 case "$host_cpu" in
13025 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13028 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13032 case "$host_cpu" in
13034 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13037 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13041 if test "$with_gnu_ld" = no; then
13042 case "$host_cpu" in
13044 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13045 hardcode_libdir_flag_spec_ld='+b $libdir'
13046 hardcode_libdir_separator=:
13048 hardcode_shlibpath_var=no
13051 hardcode_libdir_flag_spec='-L$libdir'
13053 hardcode_shlibpath_var=no
13055 # hardcode_minus_L: Not really in the search PATH,
13056 # but as the default location of the library.
13057 hardcode_minus_L=yes
13060 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13061 hardcode_libdir_separator=:
13062 hardcode_direct=yes
13063 export_dynamic_flag_spec='${wl}-E'
13065 # hardcode_minus_L: Not really in the search PATH,
13066 # but as the default location of the library.
13067 hardcode_minus_L=yes
13073 irix5* | irix6* | nonstopux*)
13074 if test "$GCC" = yes; then
13075 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'
13077 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'
13078 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13080 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13081 hardcode_libdir_separator=:
13082 link_all_deplibs=yes
13086 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13087 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13089 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13091 hardcode_libdir_flag_spec='-R$libdir'
13092 hardcode_direct=yes
13093 hardcode_shlibpath_var=no
13097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13098 hardcode_direct=yes
13099 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13100 hardcode_libdir_separator=:
13101 hardcode_shlibpath_var=no
13105 hardcode_direct=yes
13106 hardcode_shlibpath_var=no
13107 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13108 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13109 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13110 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13111 export_dynamic_flag_spec='${wl}-E'
13114 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13115 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13116 hardcode_libdir_flag_spec='-R$libdir'
13119 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13120 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13127 hardcode_libdir_flag_spec='-L$libdir'
13128 hardcode_minus_L=yes
13129 allow_undefined_flag=unsupported
13130 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'
13131 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13135 if test "$GCC" = yes; then
13136 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13137 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'
13139 allow_undefined_flag=' -expect_unresolved \*'
13140 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'
13142 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13143 hardcode_libdir_separator=:
13146 osf4* | osf5*) # as osf3* with the addition of -msym flag
13147 if test "$GCC" = yes; then
13148 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13149 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'
13150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13152 allow_undefined_flag=' -expect_unresolved \*'
13153 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'
13154 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13155 $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'
13157 # Both c and cxx compiler support -rpath directly
13158 hardcode_libdir_flag_spec='-rpath $libdir'
13160 hardcode_libdir_separator=:
13164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13165 hardcode_shlibpath_var=no
13166 export_dynamic_flag_spec='${wl}-Bexport'
13167 runpath_var=LD_RUN_PATH
13168 hardcode_runpath_var=yes
13172 no_undefined_flag=' -z text'
13173 if test "$GCC" = yes; then
13174 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13175 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13176 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13178 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13179 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13180 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13182 hardcode_libdir_flag_spec='-R$libdir'
13183 hardcode_shlibpath_var=no
13185 solaris2.[0-5] | solaris2.[0-5].*) ;;
13186 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13187 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13189 link_all_deplibs=yes
13193 if test "x$host_vendor" = xsequent; then
13194 # Use $CC to link under sequent, because it throws in some extra .o
13195 # files that make .init and .fini sections work.
13196 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13198 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13200 hardcode_libdir_flag_spec='-L$libdir'
13201 hardcode_direct=yes
13202 hardcode_minus_L=yes
13203 hardcode_shlibpath_var=no
13207 case $host_vendor in
13209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13210 hardcode_direct=yes # is this really true???
13213 ## LD is ld it makes a PLAMLIB
13214 ## CC just makes a GrossModule.
13215 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13216 reload_cmds='$CC -r -o $output$reload_objs'
13220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13221 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13224 runpath_var='LD_RUN_PATH'
13225 hardcode_shlibpath_var=no
13229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13230 hardcode_shlibpath_var=no
13231 export_dynamic_flag_spec='-Bexport'
13235 if test -d /usr/nec; then
13236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13237 hardcode_shlibpath_var=no
13238 runpath_var=LD_RUN_PATH
13239 hardcode_runpath_var=yes
13245 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13246 hardcode_direct=yes
13247 hardcode_minus_L=no
13248 hardcode_shlibpath_var=no
13249 hardcode_runpath_var=yes
13250 runpath_var=LD_RUN_PATH
13253 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13254 no_undefined_flag='${wl}-z ${wl}text'
13255 if test "$GCC" = yes; then
13256 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13258 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13260 runpath_var='LD_RUN_PATH'
13261 hardcode_shlibpath_var=no
13265 no_undefined_flag=' -z text'
13266 # $CC -shared without GNU ld will not create a library from C++
13267 # object files and a static libstdc++, better avoid it by now
13268 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13269 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13270 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13271 hardcode_libdir_flag_spec=
13272 hardcode_shlibpath_var=no
13273 runpath_var='LD_RUN_PATH'
13277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13278 hardcode_libdir_flag_spec='-L$libdir'
13279 hardcode_shlibpath_var=no
13288 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13289 echo "${ECHO_T}$ld_shlibs" >&6
13290 test "$ld_shlibs" = no && can_build_shared=no
13292 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13293 if test "$GCC" = yes; then
13294 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13298 # Do we need to explicitly link libc?
13300 case "x$archive_cmds_need_lc" in
13302 # Assume -lc should be added
13303 archive_cmds_need_lc=yes
13305 if test "$enable_shared" = yes && test "$GCC" = yes; then
13306 case $archive_cmds in
13308 # FIXME: we may have to deal with multi-command sequences.
13311 # Test whether the compiler implicitly links with -lc since on some
13312 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13313 # to ld, don't add -lc before -lgcc.
13314 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13315 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13317 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13320 (eval $ac_compile) 2>&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } 2>conftest.err; then
13326 libobjs=conftest.$ac_objext
13328 wl=$lt_prog_compiler_wl
13334 lt_save_allow_undefined_flag=$allow_undefined_flag
13335 allow_undefined_flag=
13336 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13337 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); }
13342 archive_cmds_need_lc=no
13344 archive_cmds_need_lc=yes
13346 allow_undefined_flag=$lt_save_allow_undefined_flag
13348 cat conftest.err 1>&5
13351 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13352 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13359 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13360 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13361 library_names_spec=
13362 libname_spec='lib$name'
13366 postuninstall_cmds=
13370 shlibpath_overrides_runpath=unknown
13372 dynamic_linker="$host_os ld.so"
13373 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13374 if test "$GCC" = yes; then
13375 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13376 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13377 # if the path contains ";" then we assume it to be the separator
13378 # otherwise default to the standard path separator (i.e. ":") - it is
13379 # assumed that no part of a normal pathname contains ";" but that should
13380 # okay in the real world where ";" in dirpaths is itself problematic.
13381 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13383 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13386 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13388 need_lib_prefix=unknown
13389 hardcode_into_libs=no
13391 # when you set need_version to no, make sure it does not cause -set_version
13392 # flags to be left without arguments
13393 need_version=unknown
13398 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13399 shlibpath_var=LIBPATH
13401 # AIX 3 has no versioning support, so we append a major version to the name.
13402 soname_spec='${libname}${release}${shared_ext}$major'
13409 hardcode_into_libs=yes
13410 if test "$host_cpu" = ia64; then
13411 # AIX 5 supports IA64
13412 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13413 shlibpath_var=LD_LIBRARY_PATH
13415 # With GCC up to 2.95.x, collect2 would create an import file
13416 # for dependence libraries. The import file would start with
13417 # the line `#! .'. This would cause the generated library to
13418 # depend on `.', always an invalid library. This was fixed in
13419 # development snapshots of GCC prior to 3.0.
13421 aix4 | aix4.[01] | aix4.[01].*)
13422 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13424 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13427 can_build_shared=no
13431 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13432 # soname into executable. Probably we can add versioning support to
13433 # collect2, so additional links can be useful in future.
13434 if test "$aix_use_runtimelinking" = yes; then
13435 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13436 # instead of lib<name>.a to let people know that these are not
13437 # typical AIX shared libraries.
13438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13440 # We preserve .a as extension for shared libraries through AIX4.2
13441 # and later when we are not doing run time linking.
13442 library_names_spec='${libname}${release}.a $libname.a'
13443 soname_spec='${libname}${release}${shared_ext}$major'
13445 shlibpath_var=LIBPATH
13450 library_names_spec='$libname.ixlibrary $libname.a'
13451 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13452 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'
13456 library_names_spec='${libname}${shared_ext}'
13457 dynamic_linker="$host_os ld.so"
13458 shlibpath_var=LIBRARY_PATH
13464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13465 soname_spec='${libname}${release}${shared_ext}$major'
13466 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13467 shlibpath_var=LD_LIBRARY_PATH
13468 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13469 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13470 # the default ld.so.conf also contains /usr/contrib/lib and
13471 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13472 # libtool to hard-code these into programs
13475 cygwin* | mingw* | pw32*)
13476 version_type=windows
13481 case $GCC,$host_os in
13482 yes,cygwin* | yes,mingw* | yes,pw32*)
13483 library_names_spec='$libname.dll.a'
13484 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13485 postinstall_cmds='base_file=`basename \${file}`~
13486 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13487 dldir=$destdir/`dirname \$dlpath`~
13488 test -d \$dldir || mkdir -p \$dldir~
13489 $install_prog $dir/$dlname \$dldir/$dlname'
13490 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13491 dlpath=$dir/\$dldll~
13493 shlibpath_overrides_runpath=yes
13497 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13498 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13499 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13502 # MinGW DLLs use traditional 'lib' prefix
13503 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13504 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13505 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13506 # It is most probably a Windows format PATH printed by
13507 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13508 # path with ; separators, and with drive letters. We can handle the
13509 # drive letters (cygwin fileutils understands them), so leave them,
13510 # especially as we might pass files found there to a mingw objdump,
13511 # which wouldn't understand a cygwinified path. Ahh.
13512 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13514 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13518 # pw32 DLLs use 'pw' prefix rather than 'lib'
13519 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13525 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13528 dynamic_linker='Win32 ld.exe'
13529 # FIXME: first we should search . and the directory the executable is in
13533 darwin* | rhapsody*)
13534 dynamic_linker="$host_os dyld"
13535 version_type=darwin
13538 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13539 soname_spec='${libname}${release}${major}$shared_ext'
13540 shlibpath_overrides_runpath=yes
13541 shlibpath_var=DYLD_LIBRARY_PATH
13542 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13543 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13544 if test "$GCC" = yes; then
13545 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"`
13547 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13549 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13557 soname_spec='${libname}${release}${shared_ext}$major'
13558 shlibpath_var=LD_LIBRARY_PATH
13569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13570 soname_spec='${libname}${release}${shared_ext}$major'
13571 shlibpath_var=LD_LIBRARY_PATH
13572 shlibpath_overrides_runpath=no
13573 hardcode_into_libs=yes
13574 dynamic_linker='GNU ld.so'
13578 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13579 version_type=freebsd-$objformat
13580 case $version_type in
13582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13587 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13591 shlibpath_var=LD_LIBRARY_PATH
13594 shlibpath_overrides_runpath=yes
13596 freebsd3.01* | freebsdelf3.01*)
13597 shlibpath_overrides_runpath=yes
13598 hardcode_into_libs=yes
13601 shlibpath_overrides_runpath=no
13602 hardcode_into_libs=yes
13611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13612 soname_spec='${libname}${release}${shared_ext}$major'
13613 shlibpath_var=LD_LIBRARY_PATH
13614 hardcode_into_libs=yes
13617 hpux9* | hpux10* | hpux11*)
13618 # Give a soname corresponding to the major version so that dld.sl refuses to
13619 # link against other versions.
13623 case "$host_cpu" in
13626 hardcode_into_libs=yes
13627 dynamic_linker="$host_os dld.so"
13628 shlibpath_var=LD_LIBRARY_PATH
13629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13631 soname_spec='${libname}${release}${shared_ext}$major'
13632 if test "X$HPUX_IA64_MODE" = X32; then
13633 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13635 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13637 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13641 hardcode_into_libs=yes
13642 dynamic_linker="$host_os dld.sl"
13643 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13644 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13646 soname_spec='${libname}${release}${shared_ext}$major'
13647 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13648 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13652 dynamic_linker="$host_os dld.sl"
13653 shlibpath_var=SHLIB_PATH
13654 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13656 soname_spec='${libname}${release}${shared_ext}$major'
13659 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13660 postinstall_cmds='chmod 555 $lib'
13663 irix5* | irix6* | nonstopux*)
13665 nonstopux*) version_type=nonstopux ;;
13667 if test "$lt_cv_prog_gnu_ld" = yes; then
13675 soname_spec='${libname}${release}${shared_ext}$major'
13676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13678 irix5* | nonstopux*)
13679 libsuff= shlibsuff=
13682 case $LD in # libtool.m4 will add one of these switches to LD
13683 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13684 libsuff= shlibsuff= libmagic=32-bit;;
13685 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13686 libsuff=32 shlibsuff=N32 libmagic=N32;;
13687 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13688 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13689 *) libsuff= shlibsuff= libmagic=never-match;;
13693 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13694 shlibpath_overrides_runpath=no
13695 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13696 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13697 hardcode_into_libs=yes
13700 # No shared lib support for Linux oldld, aout, or coff.
13701 linux*oldld* | linux*aout* | linux*coff*)
13705 # This must be Linux ELF.
13710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13711 soname_spec='${libname}${release}${shared_ext}$major'
13712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13713 shlibpath_var=LD_LIBRARY_PATH
13714 shlibpath_overrides_runpath=no
13715 # This implies no fast_install, which is unacceptable.
13716 # Some rework will be needed to allow for fast_install
13717 # before this can be enabled.
13718 hardcode_into_libs=yes
13720 # Append ld.so.conf contents to the search path
13721 if test -f /etc/ld.so.conf; then
13722 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13723 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13726 # We used to test for /lib/ld.so.1 and disable shared libraries on
13727 # powerpc, because MkLinux only supported shared libraries with the
13728 # GNU dynamic linker. Since this was broken with cross compilers,
13729 # most powerpc-linux boxes support dynamic linking these days and
13730 # people can always --disable-shared, the test was removed, and we
13731 # assume the GNU/Linux dynamic linker is in use.
13732 dynamic_linker='GNU/Linux ld.so'
13739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13740 soname_spec='${libname}${release}${shared_ext}$major'
13741 shlibpath_var=LD_LIBRARY_PATH
13742 shlibpath_overrides_runpath=no
13743 hardcode_into_libs=yes
13744 dynamic_linker='GNU ld.so'
13751 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13754 dynamic_linker='NetBSD (a.out) ld.so'
13756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13757 soname_spec='${libname}${release}${shared_ext}$major'
13758 dynamic_linker='NetBSD ld.elf_so'
13760 shlibpath_var=LD_LIBRARY_PATH
13761 shlibpath_overrides_runpath=yes
13762 hardcode_into_libs=yes
13767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13768 shlibpath_var=LD_LIBRARY_PATH
13769 shlibpath_overrides_runpath=yes
13776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13777 soname_spec='${libname}${release}${shared_ext}$major'
13778 shlibpath_var=LD_LIBRARY_PATH
13779 shlibpath_overrides_runpath=yes
13786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13788 shlibpath_var=LD_LIBRARY_PATH
13789 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13791 openbsd2.[89] | openbsd2.[89].*)
13792 shlibpath_overrides_runpath=no
13795 shlibpath_overrides_runpath=yes
13799 shlibpath_overrides_runpath=yes
13804 libname_spec='$name'
13807 library_names_spec='$libname${shared_ext} $libname.a'
13808 dynamic_linker='OS/2 ld.exe'
13809 shlibpath_var=LIBPATH
13812 osf3* | osf4* | osf5*)
13816 soname_spec='${libname}${release}${shared_ext}$major'
13817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13818 shlibpath_var=LD_LIBRARY_PATH
13819 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13820 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13825 soname_spec='${libname}${release}${shared_ext}$major'
13826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13827 shlibpath_var=LD_LIBRARY_PATH
13834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13835 soname_spec='${libname}${release}${shared_ext}$major'
13836 shlibpath_var=LD_LIBRARY_PATH
13837 shlibpath_overrides_runpath=yes
13838 hardcode_into_libs=yes
13839 # ldd complains unless libraries are executable
13840 postinstall_cmds='chmod +x $lib'
13845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13846 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13847 shlibpath_var=LD_LIBRARY_PATH
13848 shlibpath_overrides_runpath=yes
13849 if test "$with_gnu_ld" = yes; then
13855 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13858 soname_spec='${libname}${release}${shared_ext}$major'
13859 shlibpath_var=LD_LIBRARY_PATH
13860 case $host_vendor in
13862 shlibpath_overrides_runpath=no
13864 export_dynamic_flag_spec='${wl}-Blargedynsym'
13865 runpath_var=LD_RUN_PATH
13873 shlibpath_overrides_runpath=no
13874 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13880 if test -d /usr/nec ;then
13882 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13883 soname_spec='$libname${shared_ext}.$major'
13884 shlibpath_var=LD_LIBRARY_PATH
13890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13891 soname_spec='${libname}${release}${shared_ext}$major'
13892 shlibpath_var=LD_LIBRARY_PATH
13899 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13900 echo "${ECHO_T}$dynamic_linker" >&6
13901 test "$dynamic_linker" = no && can_build_shared=no
13903 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13904 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13906 if test -n "$hardcode_libdir_flag_spec" || \
13907 test -n "$runpath_var" || \
13908 test "X$hardcode_automatic" = "Xyes" ; then
13910 # We can hardcode non-existant directories.
13911 if test "$hardcode_direct" != no &&
13912 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13913 # have to relink, otherwise we might link with an installed library
13914 # when we should be linking with a yet-to-be-installed one
13915 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13916 test "$hardcode_minus_L" != no; then
13917 # Linking always hardcodes the temporary library directory.
13918 hardcode_action=relink
13920 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13921 hardcode_action=immediate
13924 # We cannot hardcode anything, or else we can only hardcode existing
13926 hardcode_action=unsupported
13928 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13929 echo "${ECHO_T}$hardcode_action" >&6
13931 if test "$hardcode_action" = relink; then
13932 # Fast installation is not supported
13933 enable_fast_install=no
13934 elif test "$shlibpath_overrides_runpath" = yes ||
13935 test "$enable_shared" = no; then
13936 # Fast installation is not necessary
13937 enable_fast_install=needless
13942 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13943 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13944 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13945 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13946 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13947 echo "$as_me:$LINENO: result: yes" >&5
13948 echo "${ECHO_T}yes" >&6
13950 # FIXME - insert some real tests, host_os isn't really good enough
13953 if test -n "$STRIP" ; then
13954 striplib="$STRIP -x"
13955 echo "$as_me:$LINENO: result: yes" >&5
13956 echo "${ECHO_T}yes" >&6
13958 echo "$as_me:$LINENO: result: no" >&5
13959 echo "${ECHO_T}no" >&6
13963 echo "$as_me:$LINENO: result: no" >&5
13964 echo "${ECHO_T}no" >&6
13969 if test "x$enable_dlopen" != xyes; then
13970 enable_dlopen=unknown
13971 enable_dlopen_self=unknown
13972 enable_dlopen_self_static=unknown
13979 lt_cv_dlopen="load_add_on"
13981 lt_cv_dlopen_self=yes
13985 lt_cv_dlopen="LoadLibrary"
13990 lt_cv_dlopen="dlopen"
13995 # if libdl is installed we need to link against it
13996 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13997 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13998 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
14001 ac_check_lib_save_LIBS=$LIBS
14003 cat >conftest.$ac_ext <<_ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14010 /* Override any gcc2 internal prototype to avoid an error. */
14014 /* We use char because int might match the return type of a gcc2
14015 builtin and then its argument prototype would still apply. */
14025 rm -f conftest.$ac_objext conftest$ac_exeext
14026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14027 (eval $ac_link) 2>conftest.er1
14029 grep -v '^ *+' conftest.er1 >conftest.err
14031 cat conftest.err >&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); } &&
14034 { ac_try='test -z "$ac_c_werror_flag"
14035 || test ! -s conftest.err'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; } &&
14041 { ac_try='test -s conftest$ac_exeext'
14042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; }; then
14047 ac_cv_lib_dl_dlopen=yes
14049 echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14052 ac_cv_lib_dl_dlopen=no
14054 rm -f conftest.err conftest.$ac_objext \
14055 conftest$ac_exeext conftest.$ac_ext
14056 LIBS=$ac_check_lib_save_LIBS
14058 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14059 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14060 if test $ac_cv_lib_dl_dlopen = yes; then
14061 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14064 lt_cv_dlopen="dyld"
14066 lt_cv_dlopen_self=yes
14073 echo "$as_me:$LINENO: checking for shl_load" >&5
14074 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14075 if test "${ac_cv_func_shl_load+set}" = set; then
14076 echo $ECHO_N "(cached) $ECHO_C" >&6
14078 cat >conftest.$ac_ext <<_ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14084 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14086 #define shl_load innocuous_shl_load
14088 /* System header to define __stub macros and hopefully few prototypes,
14089 which can conflict with char shl_load (); below.
14090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14091 <limits.h> exists even on freestanding compilers. */
14094 # include <limits.h>
14096 # include <assert.h>
14101 /* Override any gcc2 internal prototype to avoid an error. */
14106 /* We use char because int might match the return type of a gcc2
14107 builtin and then its argument prototype would still apply. */
14109 /* The GNU C library defines this for functions which it implements
14110 to always fail with ENOSYS. Some functions are actually named
14111 something starting with __ and the normal name is an alias. */
14112 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14115 char (*f) () = shl_load;
14124 return f != shl_load;
14129 rm -f conftest.$ac_objext conftest$ac_exeext
14130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14131 (eval $ac_link) 2>conftest.er1
14133 grep -v '^ *+' conftest.er1 >conftest.err
14135 cat conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } &&
14138 { ac_try='test -z "$ac_c_werror_flag"
14139 || test ! -s conftest.err'
14140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14141 (eval $ac_try) 2>&5
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); }; } &&
14145 { ac_try='test -s conftest$ac_exeext'
14146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14147 (eval $ac_try) 2>&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); }; }; then
14151 ac_cv_func_shl_load=yes
14153 echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.$ac_ext >&5
14156 ac_cv_func_shl_load=no
14158 rm -f conftest.err conftest.$ac_objext \
14159 conftest$ac_exeext conftest.$ac_ext
14161 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14162 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14163 if test $ac_cv_func_shl_load = yes; then
14164 lt_cv_dlopen="shl_load"
14166 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14167 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14168 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14169 echo $ECHO_N "(cached) $ECHO_C" >&6
14171 ac_check_lib_save_LIBS=$LIBS
14173 cat >conftest.$ac_ext <<_ACEOF
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h. */
14180 /* Override any gcc2 internal prototype to avoid an error. */
14184 /* We use char because int might match the return type of a gcc2
14185 builtin and then its argument prototype would still apply. */
14195 rm -f conftest.$ac_objext conftest$ac_exeext
14196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14197 (eval $ac_link) 2>conftest.er1
14199 grep -v '^ *+' conftest.er1 >conftest.err
14201 cat conftest.err >&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } &&
14204 { ac_try='test -z "$ac_c_werror_flag"
14205 || test ! -s conftest.err'
14206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207 (eval $ac_try) 2>&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; } &&
14211 { ac_try='test -s conftest$ac_exeext'
14212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; }; then
14217 ac_cv_lib_dld_shl_load=yes
14219 echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14222 ac_cv_lib_dld_shl_load=no
14224 rm -f conftest.err conftest.$ac_objext \
14225 conftest$ac_exeext conftest.$ac_ext
14226 LIBS=$ac_check_lib_save_LIBS
14228 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14229 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14230 if test $ac_cv_lib_dld_shl_load = yes; then
14231 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14233 echo "$as_me:$LINENO: checking for dlopen" >&5
14234 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14235 if test "${ac_cv_func_dlopen+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14238 cat >conftest.$ac_ext <<_ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14246 #define dlopen innocuous_dlopen
14248 /* System header to define __stub macros and hopefully few prototypes,
14249 which can conflict with char dlopen (); below.
14250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14251 <limits.h> exists even on freestanding compilers. */
14254 # include <limits.h>
14256 # include <assert.h>
14261 /* Override any gcc2 internal prototype to avoid an error. */
14266 /* We use char because int might match the return type of a gcc2
14267 builtin and then its argument prototype would still apply. */
14269 /* The GNU C library defines this for functions which it implements
14270 to always fail with ENOSYS. Some functions are actually named
14271 something starting with __ and the normal name is an alias. */
14272 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14275 char (*f) () = dlopen;
14284 return f != dlopen;
14289 rm -f conftest.$ac_objext conftest$ac_exeext
14290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14291 (eval $ac_link) 2>conftest.er1
14293 grep -v '^ *+' conftest.er1 >conftest.err
14295 cat conftest.err >&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } &&
14298 { ac_try='test -z "$ac_c_werror_flag"
14299 || test ! -s conftest.err'
14300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301 (eval $ac_try) 2>&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; } &&
14305 { ac_try='test -s conftest$ac_exeext'
14306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307 (eval $ac_try) 2>&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; }; then
14311 ac_cv_func_dlopen=yes
14313 echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14316 ac_cv_func_dlopen=no
14318 rm -f conftest.err conftest.$ac_objext \
14319 conftest$ac_exeext conftest.$ac_ext
14321 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14322 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14323 if test $ac_cv_func_dlopen = yes; then
14324 lt_cv_dlopen="dlopen"
14326 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14327 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14328 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14331 ac_check_lib_save_LIBS=$LIBS
14333 cat >conftest.$ac_ext <<_ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14340 /* Override any gcc2 internal prototype to avoid an error. */
14344 /* We use char because int might match the return type of a gcc2
14345 builtin and then its argument prototype would still apply. */
14355 rm -f conftest.$ac_objext conftest$ac_exeext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14357 (eval $ac_link) 2>conftest.er1
14359 grep -v '^ *+' conftest.er1 >conftest.err
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 { ac_try='test -z "$ac_c_werror_flag"
14365 || test ! -s conftest.err'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; } &&
14371 { ac_try='test -s conftest$ac_exeext'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14377 ac_cv_lib_dl_dlopen=yes
14379 echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14382 ac_cv_lib_dl_dlopen=no
14384 rm -f conftest.err conftest.$ac_objext \
14385 conftest$ac_exeext conftest.$ac_ext
14386 LIBS=$ac_check_lib_save_LIBS
14388 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14389 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14390 if test $ac_cv_lib_dl_dlopen = yes; then
14391 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14393 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14394 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14395 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14396 echo $ECHO_N "(cached) $ECHO_C" >&6
14398 ac_check_lib_save_LIBS=$LIBS
14399 LIBS="-lsvld $LIBS"
14400 cat >conftest.$ac_ext <<_ACEOF
14403 cat confdefs.h >>conftest.$ac_ext
14404 cat >>conftest.$ac_ext <<_ACEOF
14405 /* end confdefs.h. */
14407 /* Override any gcc2 internal prototype to avoid an error. */
14411 /* We use char because int might match the return type of a gcc2
14412 builtin and then its argument prototype would still apply. */
14422 rm -f conftest.$ac_objext conftest$ac_exeext
14423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14424 (eval $ac_link) 2>conftest.er1
14426 grep -v '^ *+' conftest.er1 >conftest.err
14428 cat conftest.err >&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); } &&
14431 { ac_try='test -z "$ac_c_werror_flag"
14432 || test ! -s conftest.err'
14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434 (eval $ac_try) 2>&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; } &&
14438 { ac_try='test -s conftest$ac_exeext'
14439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14440 (eval $ac_try) 2>&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; }; then
14444 ac_cv_lib_svld_dlopen=yes
14446 echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14449 ac_cv_lib_svld_dlopen=no
14451 rm -f conftest.err conftest.$ac_objext \
14452 conftest$ac_exeext conftest.$ac_ext
14453 LIBS=$ac_check_lib_save_LIBS
14455 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14456 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14457 if test $ac_cv_lib_svld_dlopen = yes; then
14458 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14460 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14461 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14462 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14465 ac_check_lib_save_LIBS=$LIBS
14467 cat >conftest.$ac_ext <<_ACEOF
14470 cat confdefs.h >>conftest.$ac_ext
14471 cat >>conftest.$ac_ext <<_ACEOF
14472 /* end confdefs.h. */
14474 /* Override any gcc2 internal prototype to avoid an error. */
14478 /* We use char because int might match the return type of a gcc2
14479 builtin and then its argument prototype would still apply. */
14489 rm -f conftest.$ac_objext conftest$ac_exeext
14490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14491 (eval $ac_link) 2>conftest.er1
14493 grep -v '^ *+' conftest.er1 >conftest.err
14495 cat conftest.err >&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); } &&
14498 { ac_try='test -z "$ac_c_werror_flag"
14499 || test ! -s conftest.err'
14500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14501 (eval $ac_try) 2>&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); }; } &&
14505 { ac_try='test -s conftest$ac_exeext'
14506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14507 (eval $ac_try) 2>&5
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); }; }; then
14511 ac_cv_lib_dld_dld_link=yes
14513 echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14516 ac_cv_lib_dld_dld_link=no
14518 rm -f conftest.err conftest.$ac_objext \
14519 conftest$ac_exeext conftest.$ac_ext
14520 LIBS=$ac_check_lib_save_LIBS
14522 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14523 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14524 if test $ac_cv_lib_dld_dld_link = yes; then
14525 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14546 if test "x$lt_cv_dlopen" != xno; then
14552 case $lt_cv_dlopen in
14554 save_CPPFLAGS="$CPPFLAGS"
14555 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14557 save_LDFLAGS="$LDFLAGS"
14558 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14561 LIBS="$lt_cv_dlopen_libs $LIBS"
14563 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14564 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14565 if test "${lt_cv_dlopen_self+set}" = set; then
14566 echo $ECHO_N "(cached) $ECHO_C" >&6
14568 if test "$cross_compiling" = yes; then :
14569 lt_cv_dlopen_self=cross
14571 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14572 lt_status=$lt_dlunknown
14573 cat > conftest.$ac_ext <<EOF
14574 #line 14574 "configure"
14575 #include "confdefs.h"
14584 # define LT_DLGLOBAL RTLD_GLOBAL
14587 # define LT_DLGLOBAL DL_GLOBAL
14589 # define LT_DLGLOBAL 0
14593 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14594 find out it does not work in some platform. */
14595 #ifndef LT_DLLAZY_OR_NOW
14597 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14600 # define LT_DLLAZY_OR_NOW DL_LAZY
14603 # define LT_DLLAZY_OR_NOW RTLD_NOW
14606 # define LT_DLLAZY_OR_NOW DL_NOW
14608 # define LT_DLLAZY_OR_NOW 0
14616 extern "C" void exit (int);
14619 void fnord() { int i=42;}
14622 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14623 int status = $lt_dlunknown;
14627 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14628 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14629 /* dlclose (self); */
14635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14636 (eval $ac_link) 2>&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14640 (./conftest; exit; ) 2>/dev/null
14642 case x$lt_status in
14643 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14644 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14645 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14648 # compilation failed
14649 lt_cv_dlopen_self=no
14656 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14657 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14659 if test "x$lt_cv_dlopen_self" = xyes; then
14660 LDFLAGS="$LDFLAGS $link_static_flag"
14661 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14662 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14663 if test "${lt_cv_dlopen_self_static+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14666 if test "$cross_compiling" = yes; then :
14667 lt_cv_dlopen_self_static=cross
14669 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14670 lt_status=$lt_dlunknown
14671 cat > conftest.$ac_ext <<EOF
14672 #line 14672 "configure"
14673 #include "confdefs.h"
14682 # define LT_DLGLOBAL RTLD_GLOBAL
14685 # define LT_DLGLOBAL DL_GLOBAL
14687 # define LT_DLGLOBAL 0
14691 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14692 find out it does not work in some platform. */
14693 #ifndef LT_DLLAZY_OR_NOW
14695 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14698 # define LT_DLLAZY_OR_NOW DL_LAZY
14701 # define LT_DLLAZY_OR_NOW RTLD_NOW
14704 # define LT_DLLAZY_OR_NOW DL_NOW
14706 # define LT_DLLAZY_OR_NOW 0
14714 extern "C" void exit (int);
14717 void fnord() { int i=42;}
14720 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14721 int status = $lt_dlunknown;
14725 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14726 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14727 /* dlclose (self); */
14733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14734 (eval $ac_link) 2>&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14738 (./conftest; exit; ) 2>/dev/null
14740 case x$lt_status in
14741 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14742 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14743 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14746 # compilation failed
14747 lt_cv_dlopen_self_static=no
14754 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14755 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14758 CPPFLAGS="$save_CPPFLAGS"
14759 LDFLAGS="$save_LDFLAGS"
14764 case $lt_cv_dlopen_self in
14765 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14766 *) enable_dlopen_self=unknown ;;
14769 case $lt_cv_dlopen_self_static in
14770 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14771 *) enable_dlopen_self_static=unknown ;;
14776 # Report which librarie types wil actually be built
14777 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14778 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14779 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14780 echo "${ECHO_T}$can_build_shared" >&6
14782 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14783 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14784 test "$can_build_shared" = "no" && enable_shared=no
14786 # On AIX, shared libraries and static libraries use the same namespace, and
14787 # are all built from PIC.
14790 test "$enable_shared" = yes && enable_static=no
14791 if test -n "$RANLIB"; then
14792 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14793 postinstall_cmds='$RANLIB $lib'
14798 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14799 test "$enable_shared" = yes && enable_static=no
14803 echo "$as_me:$LINENO: result: $enable_shared" >&5
14804 echo "${ECHO_T}$enable_shared" >&6
14806 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14807 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14808 # Make sure either enable_shared or enable_static is yes.
14809 test "$enable_shared" = yes || enable_static=yes
14810 echo "$as_me:$LINENO: result: $enable_static" >&5
14811 echo "${ECHO_T}$enable_static" >&6
14813 # The else clause should only fire when bootstrapping the
14814 # libtool distribution, otherwise you forgot to ship ltmain.sh
14815 # with your package, and you will get complaints that there are
14816 # no rules to generate ltmain.sh.
14817 if test -f "$ltmain"; then
14818 # See if we are running on zsh, and set the options which allow our commands through
14819 # without removal of \ escapes.
14820 if test -n "${ZSH_VERSION+set}" ; then
14821 setopt NO_GLOB_SUBST
14823 # Now quote all the things that may contain metacharacters while being
14824 # careful not to overquote the AC_SUBSTed values. We take copies of the
14825 # variables and quote the copies for generation of the libtool script.
14826 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14828 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14829 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14830 deplibs_check_method reload_flag reload_cmds need_locks \
14831 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14832 lt_cv_sys_global_symbol_to_c_name_address \
14833 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14834 old_postinstall_cmds old_postuninstall_cmds \
14838 lt_prog_compiler_wl \
14839 lt_prog_compiler_pic \
14840 lt_prog_compiler_static \
14841 lt_prog_compiler_no_builtin_flag \
14842 export_dynamic_flag_spec \
14843 thread_safe_flag_spec \
14844 whole_archive_flag_spec \
14845 enable_shared_with_static_runtimes \
14847 old_archive_from_new_cmds \
14852 compiler_lib_search_path \
14854 archive_expsym_cmds \
14856 postuninstall_cmds \
14857 old_archive_from_expsyms_cmds \
14858 allow_undefined_flag \
14859 no_undefined_flag \
14860 export_symbols_cmds \
14861 hardcode_libdir_flag_spec \
14862 hardcode_libdir_flag_spec_ld \
14863 hardcode_libdir_separator \
14864 hardcode_automatic \
14866 module_expsym_cmds \
14867 lt_cv_prog_compiler_c_o \
14869 include_expsyms; do
14872 old_archive_cmds | \
14873 old_archive_from_new_cmds | \
14875 archive_expsym_cmds | \
14877 module_expsym_cmds | \
14878 old_archive_from_expsyms_cmds | \
14879 export_symbols_cmds | \
14880 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14881 postinstall_cmds | postuninstall_cmds | \
14882 old_postinstall_cmds | old_postuninstall_cmds | \
14883 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14884 # Double-quote double-evaled strings.
14885 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14888 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14894 *'\$0 --fallback-echo"')
14895 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14899 cfgfile="${ofile}T"
14900 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14902 { echo "$as_me:$LINENO: creating $ofile" >&5
14903 echo "$as_me: creating $ofile" >&6;}
14905 cat <<__EOF__ >> "$cfgfile"
14908 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14909 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14910 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14912 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14913 # Free Software Foundation, Inc.
14915 # This file is part of GNU Libtool:
14916 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14918 # This program is free software; you can redistribute it and/or modify
14919 # it under the terms of the GNU General Public License as published by
14920 # the Free Software Foundation; either version 2 of the License, or
14921 # (at your option) any later version.
14923 # This program is distributed in the hope that it will be useful, but
14924 # WITHOUT ANY WARRANTY; without even the implied warranty of
14925 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14926 # General Public License for more details.
14928 # You should have received a copy of the GNU General Public License
14929 # along with this program; if not, write to the Free Software
14930 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14932 # As a special exception to the GNU General Public License, if you
14933 # distribute this file as part of a program that contains a
14934 # configuration script generated by Autoconf, you may include it under
14935 # the same distribution terms that you use for the rest of that program.
14937 # A sed program that does not truncate output.
14940 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14941 Xsed="$SED -e s/^X//"
14943 # The HP-UX ksh and POSIX shell print the target directory to stdout
14944 # if CDPATH is set.
14945 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14947 # The names of the tagged configurations supported by this script.
14950 # ### BEGIN LIBTOOL CONFIG
14952 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14954 # Shell to use when invoking shell scripts.
14957 # Whether or not to build shared libraries.
14958 build_libtool_libs=$enable_shared
14960 # Whether or not to build static libraries.
14961 build_old_libs=$enable_static
14963 # Whether or not to add -lc for building shared libraries.
14964 build_libtool_need_lc=$archive_cmds_need_lc
14966 # Whether or not to disallow shared libs when runtime libs are static
14967 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14969 # Whether or not to optimize for fast installation.
14970 fast_install=$enable_fast_install
14973 host_alias=$host_alias
14976 # An echo program that does not interpret backslashes.
14981 AR_FLAGS=$lt_AR_FLAGS
14986 # A language-specific compiler.
14989 # Is the compiler the GNU C compiler?
14995 # The linker used to build libraries.
14998 # Whether we need hard or soft links.
15001 # A BSD-compatible nm program.
15004 # A symbol stripping program
15007 # Used to examine libraries when file_magic_cmd begins "file"
15008 MAGIC_CMD=$MAGIC_CMD
15010 # Used on cygwin: DLL creation program.
15013 # Used on cygwin: object dumper.
15016 # Used on cygwin: assembler.
15019 # The name of the directory that contains temporary libtool files.
15022 # How to create reloadable object files.
15023 reload_flag=$lt_reload_flag
15024 reload_cmds=$lt_reload_cmds
15026 # How to pass a linker flag through the compiler.
15027 wl=$lt_lt_prog_compiler_wl
15029 # Object file suffix (normally "o").
15030 objext="$ac_objext"
15032 # Old archive suffix (normally "a").
15035 # Shared library suffix (normally ".so").
15036 shrext_cmds='$shrext_cmds'
15038 # Executable file suffix (normally "").
15041 # Additional compiler flags for building library objects.
15042 pic_flag=$lt_lt_prog_compiler_pic
15045 # What is the maximum length of a command?
15046 max_cmd_len=$lt_cv_sys_max_cmd_len
15048 # Does compiler simultaneously support -c and -o options?
15049 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15051 # Must we lock files when doing compilation ?
15052 need_locks=$lt_need_locks
15054 # Do we need the lib prefix for modules?
15055 need_lib_prefix=$need_lib_prefix
15057 # Do we need a version for libraries?
15058 need_version=$need_version
15060 # Whether dlopen is supported.
15061 dlopen_support=$enable_dlopen
15063 # Whether dlopen of programs is supported.
15064 dlopen_self=$enable_dlopen_self
15066 # Whether dlopen of statically linked programs is supported.
15067 dlopen_self_static=$enable_dlopen_self_static
15069 # Compiler flag to prevent dynamic linking.
15070 link_static_flag=$lt_lt_prog_compiler_static
15072 # Compiler flag to turn off builtin functions.
15073 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15075 # Compiler flag to allow reflexive dlopens.
15076 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15078 # Compiler flag to generate shared objects directly from archives.
15079 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15081 # Compiler flag to generate thread-safe objects.
15082 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15084 # Library versioning type.
15085 version_type=$version_type
15087 # Format of library name prefix.
15088 libname_spec=$lt_libname_spec
15090 # List of archive names. First name is the real one, the rest are links.
15091 # The last name is the one that the linker finds with -lNAME.
15092 library_names_spec=$lt_library_names_spec
15094 # The coded name of the library, if different from the real name.
15095 soname_spec=$lt_soname_spec
15097 # Commands used to build and install an old-style archive.
15099 old_archive_cmds=$lt_old_archive_cmds
15100 old_postinstall_cmds=$lt_old_postinstall_cmds
15101 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15103 # Create an old-style archive from a shared archive.
15104 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15106 # Create a temporary old-style archive to link instead of a shared archive.
15107 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15109 # Commands used to build and install a shared archive.
15110 archive_cmds=$lt_archive_cmds
15111 archive_expsym_cmds=$lt_archive_expsym_cmds
15112 postinstall_cmds=$lt_postinstall_cmds
15113 postuninstall_cmds=$lt_postuninstall_cmds
15115 # Commands used to build a loadable module (assumed same as above if empty)
15116 module_cmds=$lt_module_cmds
15117 module_expsym_cmds=$lt_module_expsym_cmds
15119 # Commands to strip libraries.
15120 old_striplib=$lt_old_striplib
15121 striplib=$lt_striplib
15123 # Dependencies to place before the objects being linked to create a
15125 predep_objects=$lt_predep_objects
15127 # Dependencies to place after the objects being linked to create a
15129 postdep_objects=$lt_postdep_objects
15131 # Dependencies to place before the objects being linked to create a
15133 predeps=$lt_predeps
15135 # Dependencies to place after the objects being linked to create a
15137 postdeps=$lt_postdeps
15139 # The library search path used internally by the compiler when linking
15140 # a shared library.
15141 compiler_lib_search_path=$lt_compiler_lib_search_path
15143 # Method to check whether dependent libraries are shared objects.
15144 deplibs_check_method=$lt_deplibs_check_method
15146 # Command to use when deplibs_check_method == file_magic.
15147 file_magic_cmd=$lt_file_magic_cmd
15149 # Flag that allows shared libraries with undefined symbols to be built.
15150 allow_undefined_flag=$lt_allow_undefined_flag
15152 # Flag that forces no undefined symbols.
15153 no_undefined_flag=$lt_no_undefined_flag
15155 # Commands used to finish a libtool library installation in a directory.
15156 finish_cmds=$lt_finish_cmds
15158 # Same as above, but a single script fragment to be evaled but not shown.
15159 finish_eval=$lt_finish_eval
15161 # Take the output of nm and produce a listing of raw symbols and C names.
15162 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15164 # Transform the output of nm in a proper C declaration
15165 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15167 # Transform the output of nm in a C name address pair
15168 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15170 # This is the shared library runtime path variable.
15171 runpath_var=$runpath_var
15173 # This is the shared library path variable.
15174 shlibpath_var=$shlibpath_var
15176 # Is shlibpath searched before the hard-coded library search path?
15177 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15179 # How to hardcode a shared library path into an executable.
15180 hardcode_action=$hardcode_action
15182 # Whether we should hardcode library paths into libraries.
15183 hardcode_into_libs=$hardcode_into_libs
15185 # Flag to hardcode \$libdir into a binary during linking.
15186 # This must work even if \$libdir does not exist.
15187 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15189 # If ld is used when linking, flag to hardcode \$libdir into
15190 # a binary during linking. This must work even if \$libdir does
15192 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15194 # Whether we need a single -rpath flag with a separated argument.
15195 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15197 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15198 # resulting binary.
15199 hardcode_direct=$hardcode_direct
15201 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15202 # resulting binary.
15203 hardcode_minus_L=$hardcode_minus_L
15205 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15206 # the resulting binary.
15207 hardcode_shlibpath_var=$hardcode_shlibpath_var
15209 # Set to yes if building a shared library automatically hardcodes DIR into the library
15210 # and all subsequent libraries and executables linked against it.
15211 hardcode_automatic=$hardcode_automatic
15213 # Variables whose values should be saved in libtool wrapper scripts and
15214 # restored at relink time.
15215 variables_saved_for_relink="$variables_saved_for_relink"
15217 # Whether libtool must link a program against all its dependency libraries.
15218 link_all_deplibs=$link_all_deplibs
15220 # Compile-time system search path for libraries
15221 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15223 # Run-time system search path for libraries
15224 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15226 # Fix the shell variable \$srcfile for the compiler.
15227 fix_srcfile_path="$fix_srcfile_path"
15229 # Set to yes if exported symbols are required.
15230 always_export_symbols=$always_export_symbols
15232 # The commands to list exported symbols.
15233 export_symbols_cmds=$lt_export_symbols_cmds
15235 # The commands to extract the exported symbol list from a shared archive.
15236 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15238 # Symbols that should not be listed in the preloaded symbols.
15239 exclude_expsyms=$lt_exclude_expsyms
15241 # Symbols that must always be exported.
15242 include_expsyms=$lt_include_expsyms
15244 # ### END LIBTOOL CONFIG
15251 cat <<\EOF >> "$cfgfile"
15253 # AIX sometimes has problems with the GCC collect2 program. For some
15254 # reason, if we set the COLLECT_NAMES environment variable, the problems
15255 # vanish in a puff of smoke.
15256 if test "X${COLLECT_NAMES+set}" != Xset; then
15258 export COLLECT_NAMES
15264 # We use sed instead of cat because bash on DJGPP gets confused if
15265 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15266 # text mode, it properly converts lines to CR/LF. This bash problem
15267 # is reportedly fixed, but why not run on old versions too?
15268 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15270 mv -f "$cfgfile" "$ofile" || \
15271 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15275 # If there is no Makefile yet, we rely on a make rule to execute
15276 # `config.status --recheck' to rerun these tests and create the
15277 # libtool script then.
15278 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15279 if test -f "$ltmain_in"; then
15280 test -f Makefile && make "$ltmain"
15286 ac_cpp='$CPP $CPPFLAGS'
15287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15294 # Check whether --with-tags or --without-tags was given.
15295 if test "${with_tags+set}" = set; then
15296 withval="$with_tags"
15297 tagnames="$withval"
15300 if test -f "$ltmain" && test -n "$tagnames"; then
15301 if test ! -f "${ofile}"; then
15302 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15303 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15306 if test -z "$LTCC"; then
15307 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15308 if test -z "$LTCC"; then
15309 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15310 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15312 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15313 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15317 # Extract list of available tagged configurations in $ofile.
15318 # Note that this assumes the entire list is on one line.
15319 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15321 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15322 for tagname in $tagnames; do
15324 # Check whether tagname contains only valid characters
15325 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15327 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15328 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15329 { (exit 1); exit 1; }; }
15333 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15335 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15336 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15337 { (exit 1); exit 1; }; }
15340 # Update the list of available tags.
15341 if test -n "$tagname"; then
15342 echo appending configuration tag "$tagname" to $ofile
15346 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15347 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15348 (test "X$CXX" != "Xg++"))) ; then
15350 ac_cpp='$CXXCPP $CPPFLAGS'
15351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15358 archive_cmds_need_lc_CXX=no
15359 allow_undefined_flag_CXX=
15360 always_export_symbols_CXX=no
15361 archive_expsym_cmds_CXX=
15362 export_dynamic_flag_spec_CXX=
15363 hardcode_direct_CXX=no
15364 hardcode_libdir_flag_spec_CXX=
15365 hardcode_libdir_flag_spec_ld_CXX=
15366 hardcode_libdir_separator_CXX=
15367 hardcode_minus_L_CXX=no
15368 hardcode_automatic_CXX=no
15370 module_expsym_cmds_CXX=
15371 link_all_deplibs_CXX=unknown
15372 old_archive_cmds_CXX=$old_archive_cmds
15373 no_undefined_flag_CXX=
15374 whole_archive_flag_spec_CXX=
15375 enable_shared_with_static_runtimes_CXX=no
15377 # Dependencies to place before and after the object being linked:
15378 predep_objects_CXX=
15379 postdep_objects_CXX=
15382 compiler_lib_search_path_CXX=
15384 # Source file extension for C++ test sources.
15387 # Object file extension for compiled C++ test sources.
15391 # Code to be used in simple compile tests
15392 lt_simple_compile_test_code="int some_variable = 0;\n"
15394 # Code to be used in simple link tests
15395 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15397 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15399 # If no C compiler was specified, use CC.
15402 # Allow CC to be a program name with arguments.
15406 # Allow CC to be a program name with arguments.
15411 lt_save_with_gnu_ld=$with_gnu_ld
15412 lt_save_path_LD=$lt_cv_path_LD
15413 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15414 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15416 unset lt_cv_prog_gnu_ld
15418 if test -n "${lt_cv_path_LDCXX+set}"; then
15419 lt_cv_path_LD=$lt_cv_path_LDCXX
15421 unset lt_cv_path_LD
15423 test -z "${LDCXX+set}" || LD=$LDCXX
15427 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15429 # We don't want -fno-exception wen compiling C++ code, so set the
15430 # no_builtin_flag separately
15431 if test "$GXX" = yes; then
15432 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15434 lt_prog_compiler_no_builtin_flag_CXX=
15437 if test "$GXX" = yes; then
15438 # Set up default GNU C++ configuration
15441 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15442 if test "${with_gnu_ld+set}" = set; then
15443 withval="$with_gnu_ld"
15444 test "$withval" = no || with_gnu_ld=yes
15449 if test "$GCC" = yes; then
15450 # Check if gcc -print-prog-name=ld gives a path.
15451 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15452 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15455 # gcc leaves a trailing carriage return which upsets mingw
15456 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15458 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15461 # Accept absolute paths.
15463 re_direlt='/[^/][^/]*/\.\./'
15464 # Canonicalize the pathname of ld
15465 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15466 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15467 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15469 test -z "$LD" && LD="$ac_prog"
15472 # If it fails, then pretend we aren't using GCC.
15476 # If it is relative, then search for the first ld in PATH.
15477 with_gnu_ld=unknown
15480 elif test "$with_gnu_ld" = yes; then
15481 echo "$as_me:$LINENO: checking for GNU ld" >&5
15482 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15484 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15485 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15487 if test "${lt_cv_path_LD+set}" = set; then
15488 echo $ECHO_N "(cached) $ECHO_C" >&6
15490 if test -z "$LD"; then
15491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15492 for ac_dir in $PATH; do
15494 test -z "$ac_dir" && ac_dir=.
15495 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15496 lt_cv_path_LD="$ac_dir/$ac_prog"
15497 # Check to see if the program is GNU ld. I'd rather use --version,
15498 # but apparently some GNU ld's only accept -v.
15499 # Break only if it was the GNU/non-GNU ld that we prefer.
15500 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15501 *GNU* | *'with BFD'*)
15502 test "$with_gnu_ld" != no && break
15505 test "$with_gnu_ld" != yes && break
15512 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15516 LD="$lt_cv_path_LD"
15517 if test -n "$LD"; then
15518 echo "$as_me:$LINENO: result: $LD" >&5
15519 echo "${ECHO_T}$LD" >&6
15521 echo "$as_me:$LINENO: result: no" >&5
15522 echo "${ECHO_T}no" >&6
15524 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15525 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15526 { (exit 1); exit 1; }; }
15527 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15528 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15529 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15532 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15533 case `$LD -v 2>&1 </dev/null` in
15534 *GNU* | *'with BFD'*)
15535 lt_cv_prog_gnu_ld=yes
15538 lt_cv_prog_gnu_ld=no
15542 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15543 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15544 with_gnu_ld=$lt_cv_prog_gnu_ld
15548 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15549 # archiving commands below assume that GNU ld is being used.
15550 if test "$with_gnu_ld" = yes; then
15551 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15552 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'
15554 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15555 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15557 # If archive_cmds runs LD, not CC, wlarc should be empty
15558 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15559 # investigate it a little bit more. (MM)
15562 # ancient GNU ld didn't support --whole-archive et. al.
15563 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15564 grep 'no-whole-archive' > /dev/null; then
15565 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15567 whole_archive_flag_spec_CXX=
15573 # A generic and very simple default shared library creation
15574 # command for GNU C++ for the case where it uses the native
15575 # linker, instead of GNU ld. If possible, this setting should
15576 # overridden to take advantage of the native linker features on
15577 # the platform it is being used on.
15578 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15581 # Commands to make compiler produce verbose output that lists
15582 # what "hidden" libraries, object files and flags are used when
15583 # linking a shared library.
15584 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15592 # PORTME: fill in a description of your system's C++ link characteristics
15593 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15594 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15598 # FIXME: insert proper C++ library support
15602 if test "$host_cpu" = ia64; then
15603 # On IA64, the linker does run time linking by default, so we don't
15604 # have to do anything special.
15605 aix_use_runtimelinking=no
15606 exp_sym_flag='-Bexport'
15609 aix_use_runtimelinking=no
15611 # Test if we are trying to use run time linking or normal
15612 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15613 # need to do runtime linking.
15614 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15615 for ld_flag in $LDFLAGS; do
15618 aix_use_runtimelinking=yes
15625 exp_sym_flag='-bexport'
15626 no_entry_flag='-bnoentry'
15629 # When large executables or shared objects are built, AIX ld can
15630 # have problems creating the table of contents. If linking a library
15631 # or program results in "error TOC overflow" add -mminimal-toc to
15632 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15633 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15635 archive_cmds_CXX=''
15636 hardcode_direct_CXX=yes
15637 hardcode_libdir_separator_CXX=':'
15638 link_all_deplibs_CXX=yes
15640 if test "$GXX" = yes; then
15641 case $host_os in aix4.012|aix4.012.*)
15642 # We only want to do this on AIX 4.2 and lower, the check
15643 # below for broken collect2 doesn't work under 4.3+
15644 collect2name=`${CC} -print-prog-name=collect2`
15645 if test -f "$collect2name" && \
15646 strings "$collect2name" | grep resolve_lib_name >/dev/null
15648 # We have reworked collect2
15649 hardcode_direct_CXX=yes
15651 # We have old collect2
15652 hardcode_direct_CXX=unsupported
15653 # It fails to find uninstalled libraries when the uninstalled
15654 # path is not listed in the libpath. Setting hardcode_minus_L
15655 # to unsupported forces relinking
15656 hardcode_minus_L_CXX=yes
15657 hardcode_libdir_flag_spec_CXX='-L$libdir'
15658 hardcode_libdir_separator_CXX=
15661 shared_flag='-shared'
15664 if test "$host_cpu" = ia64; then
15665 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15666 # chokes on -Wl,-G. The following line is correct:
15669 if test "$aix_use_runtimelinking" = yes; then
15670 shared_flag='${wl}-G'
15672 shared_flag='${wl}-bM:SRE'
15677 # It seems that -bexpall does not export symbols beginning with
15678 # underscore (_), so it is better to generate a list of symbols to export.
15679 always_export_symbols_CXX=yes
15680 if test "$aix_use_runtimelinking" = yes; then
15681 # Warning - without using the other runtime loading flags (-brtl),
15682 # -berok will link without error, but may produce a broken library.
15683 allow_undefined_flag_CXX='-berok'
15684 # Determine the default libpath from the value encoded in an empty executable.
15685 cat >conftest.$ac_ext <<_ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h. */
15700 rm -f conftest.$ac_objext conftest$ac_exeext
15701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15702 (eval $ac_link) 2>conftest.er1
15704 grep -v '^ *+' conftest.er1 >conftest.err
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } &&
15709 { ac_try='test -z "$ac_cxx_werror_flag"
15710 || test ! -s conftest.err'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; } &&
15716 { ac_try='test -s conftest$ac_exeext'
15717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718 (eval $ac_try) 2>&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
15723 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15725 # Check for a 64-bit object if we didn't find anything.
15726 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; }
15729 echo "$as_me: failed program was:" >&5
15730 sed 's/^/| /' conftest.$ac_ext >&5
15733 rm -f conftest.err conftest.$ac_objext \
15734 conftest$ac_exeext conftest.$ac_ext
15735 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15737 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15739 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"
15741 if test "$host_cpu" = ia64; then
15742 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15743 allow_undefined_flag_CXX="-z nodefs"
15744 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"
15746 # Determine the default libpath from the value encoded in an empty executable.
15747 cat >conftest.$ac_ext <<_ACEOF
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h. */
15762 rm -f conftest.$ac_objext conftest$ac_exeext
15763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15764 (eval $ac_link) 2>conftest.er1
15766 grep -v '^ *+' conftest.er1 >conftest.err
15768 cat conftest.err >&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } &&
15771 { ac_try='test -z "$ac_cxx_werror_flag"
15772 || test ! -s conftest.err'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; } &&
15778 { ac_try='test -s conftest$ac_exeext'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; }; then
15785 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15787 # Check for a 64-bit object if we didn't find anything.
15788 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; }
15791 echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15795 rm -f conftest.err conftest.$ac_objext \
15796 conftest$ac_exeext conftest.$ac_ext
15797 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15799 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15800 # Warning - without using the other run time loading flags,
15801 # -berok will link without error, but may produce a broken library.
15802 no_undefined_flag_CXX=' ${wl}-bernotok'
15803 allow_undefined_flag_CXX=' ${wl}-berok'
15804 # -bexpall does not export symbols beginning with underscore (_)
15805 always_export_symbols_CXX=yes
15806 # Exported symbols can be pulled into shared objects from archives
15807 whole_archive_flag_spec_CXX=' '
15808 archive_cmds_need_lc_CXX=yes
15809 # This is similar to how AIX traditionally builds it's shared libraries.
15810 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'
15815 case $cc_basename in
15817 # FIXME: insert proper C++ library support
15824 cygwin* | mingw* | pw32*)
15825 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15826 # as there is no search path for DLLs.
15827 hardcode_libdir_flag_spec_CXX='-L$libdir'
15828 allow_undefined_flag_CXX=unsupported
15829 always_export_symbols_CXX=no
15830 enable_shared_with_static_runtimes_CXX=yes
15832 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15833 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'
15834 # If the export-symbols file already is a .def file (1st line
15835 # is EXPORTS), use it as is; otherwise, prepend...
15836 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15837 cp $export_symbols $output_objdir/$soname.def;
15839 echo EXPORTS > $output_objdir/$soname.def;
15840 cat $export_symbols >> $output_objdir/$soname.def;
15842 $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'
15847 darwin* | rhapsody*)
15849 rhapsody* | darwin1.[012])
15850 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15853 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15854 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15856 case ${MACOSX_DEPLOYMENT_TARGET} in
15858 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15861 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15867 archive_cmds_need_lc_CXX=no
15868 hardcode_direct_CXX=no
15869 hardcode_automatic_CXX=yes
15870 hardcode_shlibpath_var_CXX=unsupported
15871 whole_archive_flag_spec_CXX=''
15872 link_all_deplibs_CXX=yes
15874 if test "$GXX" = yes ; then
15875 lt_int_apple_cc_single_mod=no
15876 output_verbose_link_cmd='echo'
15877 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15878 lt_int_apple_cc_single_mod=yes
15880 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15881 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15883 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'
15885 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15886 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15887 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15888 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}'
15890 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}'
15892 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}'
15894 case "$cc_basename" in
15896 output_verbose_link_cmd='echo'
15897 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'
15898 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15899 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15900 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}'
15901 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}'
15911 case $cc_basename in
15913 # FIXME: insert proper C++ library support
15917 # Green Hills C++ Compiler
15918 # FIXME: insert proper C++ library support
15922 # FIXME: insert proper C++ library support
15928 # C++ shared libraries reported to be fairly broken before switch to ELF
15932 archive_cmds_need_lc_CXX=no
15934 freebsd* | kfreebsd*-gnu)
15935 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15942 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15943 hardcode_libdir_separator_CXX=:
15944 export_dynamic_flag_spec_CXX='${wl}-E'
15945 hardcode_direct_CXX=yes
15946 hardcode_minus_L_CXX=yes # Not in the search PATH,
15947 # but as the default
15948 # location of the library.
15950 case $cc_basename in
15952 # FIXME: insert proper C++ library support
15956 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'
15957 # Commands to make compiler produce verbose output that lists
15958 # what "hidden" libraries, object files and flags are used when
15959 # linking a shared library.
15961 # There doesn't appear to be a way to prevent this compiler from
15962 # explicitly linking system object files so we need to strip them
15963 # from the output so that they don't get included in the library
15965 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'
15968 if test "$GXX" = yes; then
15969 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'
15971 # FIXME: insert proper C++ library support
15978 if test $with_gnu_ld = no; then
15979 case "$host_cpu" in
15981 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15982 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15983 hardcode_libdir_separator_CXX=:
15986 hardcode_libdir_flag_spec_CXX='-L$libdir'
15989 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15990 hardcode_libdir_separator_CXX=:
15991 export_dynamic_flag_spec_CXX='${wl}-E'
15995 case "$host_cpu" in
15997 hardcode_direct_CXX=no
15998 hardcode_shlibpath_var_CXX=no
16001 hardcode_direct_CXX=no
16002 hardcode_shlibpath_var_CXX=no
16003 hardcode_minus_L_CXX=yes # Not in the search PATH,
16004 # but as the default
16005 # location of the library.
16008 hardcode_direct_CXX=yes
16009 hardcode_minus_L_CXX=yes # Not in the search PATH,
16010 # but as the default
16011 # location of the library.
16015 case $cc_basename in
16017 # FIXME: insert proper C++ library support
16021 case "$host_cpu" in
16023 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16026 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16029 # Commands to make compiler produce verbose output that lists
16030 # what "hidden" libraries, object files and flags are used when
16031 # linking a shared library.
16033 # There doesn't appear to be a way to prevent this compiler from
16034 # explicitly linking system object files so we need to strip them
16035 # from the output so that they don't get included in the library
16037 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'
16040 if test "$GXX" = yes; then
16041 if test $with_gnu_ld = no; then
16042 case "$host_cpu" in
16044 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16047 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'
16052 # FIXME: insert proper C++ library support
16059 case $cc_basename in
16062 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'
16064 # Archives containing C++ object files must be created using
16065 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16066 # necessary to make sure instantiated templates are included
16068 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16071 if test "$GXX" = yes; then
16072 if test "$with_gnu_ld" = no; then
16073 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'
16075 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'
16078 link_all_deplibs_CXX=yes
16081 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16082 hardcode_libdir_separator_CXX=:
16085 case $cc_basename in
16087 # Kuck and Associates, Inc. (KAI) C++ Compiler
16089 # KCC will only create a shared library if the output file
16090 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16091 # to its proper name (with version) after linking.
16092 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'
16093 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'
16094 # Commands to make compiler produce verbose output that lists
16095 # what "hidden" libraries, object files and flags are used when
16096 # linking a shared library.
16098 # There doesn't appear to be a way to prevent this compiler from
16099 # explicitly linking system object files so we need to strip them
16100 # from the output so that they don't get included in the library
16102 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'
16104 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16105 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16107 # Archives containing C++ object files must be created using
16108 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16109 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16114 # version 8.0 and above of icpc choke on multiply defined symbols
16115 # if we add $predep_objects and $postdep_objects, however 7.1 and
16116 # earlier do not add the objects themselves.
16117 case `$CC -V 2>&1` in
16119 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16120 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'
16122 *) # Version 8.0 or newer
16123 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16124 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16127 archive_cmds_need_lc_CXX=no
16128 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16129 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16130 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16134 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16135 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'
16137 runpath_var=LD_RUN_PATH
16138 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16139 hardcode_libdir_separator_CXX=:
16141 # Commands to make compiler produce verbose output that lists
16142 # what "hidden" libraries, object files and flags are used when
16143 # linking a shared library.
16145 # There doesn't appear to be a way to prevent this compiler from
16146 # explicitly linking system object files so we need to strip them
16147 # from the output so that they don't get included in the library
16149 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'
16154 # FIXME: insert proper C++ library support
16158 # FIXME: insert proper C++ library support
16162 case $cc_basename in
16164 # FIXME: insert proper C++ library support
16168 # FIXME: insert proper C++ library support
16174 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16175 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16177 hardcode_libdir_flag_spec_CXX='-R$libdir'
16178 hardcode_direct_CXX=yes
16179 hardcode_shlibpath_var_CXX=no
16181 # Workaround some broken pre-1.5 toolchains
16182 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16185 # C++ shared libraries are fairly broken
16189 hardcode_direct_CXX=yes
16190 hardcode_shlibpath_var_CXX=no
16191 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16192 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16193 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16194 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16195 export_dynamic_flag_spec_CXX='${wl}-E'
16196 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16198 output_verbose_link_cmd='echo'
16201 case $cc_basename in
16203 # Kuck and Associates, Inc. (KAI) C++ Compiler
16205 # KCC will only create a shared library if the output file
16206 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16207 # to its proper name (with version) after linking.
16208 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'
16210 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16211 hardcode_libdir_separator_CXX=:
16213 # Archives containing C++ object files must be created using
16214 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16215 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16219 # Rational C++ 2.4.1
16220 # FIXME: insert proper C++ library support
16224 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16225 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'
16227 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16228 hardcode_libdir_separator_CXX=:
16230 # Commands to make compiler produce verbose output that lists
16231 # what "hidden" libraries, object files and flags are used when
16232 # linking a shared library.
16234 # There doesn't appear to be a way to prevent this compiler from
16235 # explicitly linking system object files so we need to strip them
16236 # from the output so that they don't get included in the library
16238 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'
16241 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16242 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16243 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'
16245 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16246 hardcode_libdir_separator_CXX=:
16248 # Commands to make compiler produce verbose output that lists
16249 # what "hidden" libraries, object files and flags are used when
16250 # linking a shared library.
16251 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16254 # FIXME: insert proper C++ library support
16261 case $cc_basename in
16263 # Kuck and Associates, Inc. (KAI) C++ Compiler
16265 # KCC will only create a shared library if the output file
16266 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16267 # to its proper name (with version) after linking.
16268 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'
16270 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16271 hardcode_libdir_separator_CXX=:
16273 # Archives containing C++ object files must be created using
16274 # the KAI C++ compiler.
16275 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16278 # Rational C++ 2.4.1
16279 # FIXME: insert proper C++ library support
16283 allow_undefined_flag_CXX=' -expect_unresolved \*'
16284 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'
16285 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16286 echo "-hidden">> $lib.exp~
16287 $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~
16290 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16291 hardcode_libdir_separator_CXX=:
16293 # Commands to make compiler produce verbose output that lists
16294 # what "hidden" libraries, object files and flags are used when
16295 # linking a shared library.
16297 # There doesn't appear to be a way to prevent this compiler from
16298 # explicitly linking system object files so we need to strip them
16299 # from the output so that they don't get included in the library
16301 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'
16304 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16305 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16306 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'
16308 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16309 hardcode_libdir_separator_CXX=:
16311 # Commands to make compiler produce verbose output that lists
16312 # what "hidden" libraries, object files and flags are used when
16313 # linking a shared library.
16314 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16317 # FIXME: insert proper C++ library support
16324 # FIXME: insert proper C++ library support
16328 archive_cmds_need_lc_CXX=no
16329 case $cc_basename in
16331 # FIXME: insert proper C++ library support
16335 # FIXME: insert proper C++ library support
16341 case $cc_basename in
16344 # FIXME: insert proper C++ library support
16349 # FIXME: insert proper C++ library support
16353 # FIXME: insert proper C++ library support
16359 case $cc_basename in
16361 # Sun C++ 4.2, 5.x and Centerline C++
16362 no_undefined_flag_CXX=' -zdefs'
16363 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16364 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16365 $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'
16367 hardcode_libdir_flag_spec_CXX='-R$libdir'
16368 hardcode_shlibpath_var_CXX=no
16370 solaris2.0-5 | solaris2.0-5.*) ;;
16372 # The C++ compiler is used as linker so we must use $wl
16373 # flag to pass the commands to the underlying system
16375 # Supported since Solaris 2.6 (maybe 2.5.1?)
16376 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16379 link_all_deplibs_CXX=yes
16381 # Commands to make compiler produce verbose output that lists
16382 # what "hidden" libraries, object files and flags are used when
16383 # linking a shared library.
16385 # There doesn't appear to be a way to prevent this compiler from
16386 # explicitly linking system object files so we need to strip them
16387 # from the output so that they don't get included in the library
16389 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'
16391 # Archives containing C++ object files must be created using
16392 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16393 # necessary to make sure instantiated templates are included
16395 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16398 # Green Hills C++ Compiler
16399 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16401 # The C++ compiler must be used to create the archive.
16402 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16405 # GNU C++ compiler with Solaris linker
16406 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16407 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16408 if $CC --version | grep -v '^2\.7' > /dev/null; then
16409 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16410 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16411 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16413 # Commands to make compiler produce verbose output that lists
16414 # what "hidden" libraries, object files and flags are used when
16415 # linking a shared library.
16416 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16418 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16420 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16421 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16422 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16424 # Commands to make compiler produce verbose output that lists
16425 # what "hidden" libraries, object files and flags are used when
16426 # linking a shared library.
16427 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16430 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16435 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16436 archive_cmds_need_lc_CXX=no
16439 case $cc_basename in
16441 # NonStop-UX NCC 3.20
16442 # FIXME: insert proper C++ library support
16446 # FIXME: insert proper C++ library support
16452 # FIXME: insert proper C++ library support
16456 # FIXME: insert proper C++ library support
16460 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16461 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16462 test "$ld_shlibs_CXX" = no && can_build_shared=no
16468 cat > conftest.$ac_ext <<EOF
16472 Foo (void) { a = 0; }
16478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16479 (eval $ac_compile) 2>&5
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); }; then
16483 # Parse the compiler output and extract the necessary
16484 # objects, libraries and library flags.
16486 # Sentinel used to keep track of whether or not we are before
16487 # the conftest object file.
16488 pre_test_object_deps_done=no
16490 # The `*' in the case matches for architectures that use `case' in
16491 # $output_verbose_cmd can trigger glob expansion during the loop
16492 # eval without this substitution.
16493 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16495 for p in `eval $output_verbose_link_cmd`; do
16499 # Some compilers place space between "-{L,R}" and the path.
16500 # Remove the space.
16501 if test $p = "-L" \
16502 || test $p = "-R"; then
16509 if test "$pre_test_object_deps_done" = no; then
16512 # Internal compiler library paths should come after those
16513 # provided the user. The postdeps already come after the
16514 # user supplied libs so there is no need to process them.
16515 if test -z "$compiler_lib_search_path_CXX"; then
16516 compiler_lib_search_path_CXX="${prev}${p}"
16518 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16521 # The "-l" case would never come before the object being
16522 # linked, so don't bother handling this case.
16525 if test -z "$postdeps_CXX"; then
16526 postdeps_CXX="${prev}${p}"
16528 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16534 # This assumes that the test object file only shows up
16535 # once in the compiler output.
16536 if test "$p" = "conftest.$objext"; then
16537 pre_test_object_deps_done=yes
16541 if test "$pre_test_object_deps_done" = no; then
16542 if test -z "$predep_objects_CXX"; then
16543 predep_objects_CXX="$p"
16545 predep_objects_CXX="$predep_objects_CXX $p"
16548 if test -z "$postdep_objects_CXX"; then
16549 postdep_objects_CXX="$p"
16551 postdep_objects_CXX="$postdep_objects_CXX $p"
16556 *) ;; # Ignore the rest.
16564 echo "libtool.m4: error: problem compiling CXX test program"
16567 $rm -f confest.$objext
16569 case " $postdeps_CXX " in
16570 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16573 lt_prog_compiler_wl_CXX=
16574 lt_prog_compiler_pic_CXX=
16575 lt_prog_compiler_static_CXX=
16577 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16578 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16580 # C++ specific cases for pic, static, wl, etc.
16581 if test "$GXX" = yes; then
16582 lt_prog_compiler_wl_CXX='-Wl,'
16583 lt_prog_compiler_static_CXX='-static'
16587 # All AIX code is PIC.
16588 if test "$host_cpu" = ia64; then
16589 # AIX 5 now supports IA64 processor
16590 lt_prog_compiler_static_CXX='-Bstatic'
16594 # FIXME: we need at least 68020 code to build shared libraries, but
16595 # adding the `-m68020' flag to GCC prevents building anything better,
16597 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16599 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16600 # PIC is the default for these OSes.
16602 mingw* | os2* | pw32*)
16603 # This hack is so that the source file can tell whether it is being
16604 # built for inclusion in a dll (and should export symbols for example).
16605 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16607 darwin* | rhapsody*)
16608 # PIC is the default on this platform
16609 # Common symbols not allowed in MH_DYLIB files
16610 lt_prog_compiler_pic_CXX='-fno-common'
16613 # DJGPP does not support shared libraries at all
16614 lt_prog_compiler_pic_CXX=
16617 if test -d /usr/nec; then
16618 lt_prog_compiler_pic_CXX=-Kconform_pic
16622 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16623 # not for PA HP-UX.
16624 case "$host_cpu" in
16628 lt_prog_compiler_pic_CXX='-fPIC'
16633 lt_prog_compiler_pic_CXX='-fPIC'
16639 # All AIX code is PIC.
16640 if test "$host_cpu" = ia64; then
16641 # AIX 5 now supports IA64 processor
16642 lt_prog_compiler_static_CXX='-Bstatic'
16644 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16648 case $cc_basename in
16650 # Green Hills C++ Compiler
16651 # _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"
16656 # PIC is the default on this platform
16657 # Common symbols not allowed in MH_DYLIB files
16658 case "$cc_basename" in
16660 lt_prog_compiler_pic_CXX='-qnocommon'
16661 lt_prog_compiler_wl_CXX='-Wl,'
16666 case $cc_basename in
16668 lt_prog_compiler_pic_CXX='-KPIC'
16671 # Green Hills C++ Compiler
16672 lt_prog_compiler_pic_CXX='-pic'
16678 freebsd* | kfreebsd*-gnu)
16679 # FreeBSD uses GNU C++
16681 hpux9* | hpux10* | hpux11*)
16682 case $cc_basename in
16684 lt_prog_compiler_wl_CXX='-Wl,'
16685 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16686 if test "$host_cpu" != ia64; then
16687 lt_prog_compiler_pic_CXX='+Z'
16691 lt_prog_compiler_wl_CXX='-Wl,'
16692 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16693 case "$host_cpu" in
16698 lt_prog_compiler_pic_CXX='+Z'
16706 irix5* | irix6* | nonstopux*)
16707 case $cc_basename in
16709 lt_prog_compiler_wl_CXX='-Wl,'
16710 lt_prog_compiler_static_CXX='-non_shared'
16711 # CC pic flag -KPIC is the default.
16718 case $cc_basename in
16721 lt_prog_compiler_wl_CXX='--backend -Wl,'
16722 lt_prog_compiler_pic_CXX='-fPIC'
16726 lt_prog_compiler_wl_CXX='-Wl,'
16727 lt_prog_compiler_pic_CXX='-KPIC'
16728 lt_prog_compiler_static_CXX='-static'
16732 # Make sure the PIC flag is empty. It appears that all Alpha
16733 # Linux and Compaq Tru64 Unix objects are PIC.
16734 lt_prog_compiler_pic_CXX=
16735 lt_prog_compiler_static_CXX='-non_shared'
16746 case $cc_basename in
16748 lt_prog_compiler_pic_CXX='-W c,exportall'
16756 osf3* | osf4* | osf5*)
16757 case $cc_basename in
16759 lt_prog_compiler_wl_CXX='--backend -Wl,'
16762 # Rational C++ 2.4.1
16763 lt_prog_compiler_pic_CXX='-pic'
16766 # Digital/Compaq C++
16767 lt_prog_compiler_wl_CXX='-Wl,'
16768 # Make sure the PIC flag is empty. It appears that all Alpha
16769 # Linux and Compaq Tru64 Unix objects are PIC.
16770 lt_prog_compiler_pic_CXX=
16771 lt_prog_compiler_static_CXX='-non_shared'
16780 case $cc_basename in
16782 lt_prog_compiler_pic_CXX='-fPIC'
16789 case $cc_basename in
16791 # Sun C++ 4.2, 5.x and Centerline C++
16792 lt_prog_compiler_pic_CXX='-KPIC'
16793 lt_prog_compiler_static_CXX='-Bstatic'
16794 lt_prog_compiler_wl_CXX='-Qoption ld '
16797 # Green Hills C++ Compiler
16798 lt_prog_compiler_pic_CXX='-PIC'
16805 case $cc_basename in
16808 lt_prog_compiler_pic_CXX='-pic'
16809 lt_prog_compiler_static_CXX='-Bstatic'
16813 lt_prog_compiler_pic_CXX='-pic'
16820 case $cc_basename in
16822 # NonStop-UX NCC 3.20
16823 lt_prog_compiler_pic_CXX='-KPIC'
16834 lt_prog_compiler_can_build_shared_CXX=no
16839 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16840 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16843 # Check to make sure the PIC flag actually works.
16845 if test -n "$lt_prog_compiler_pic_CXX"; then
16847 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16848 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16849 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16850 echo $ECHO_N "(cached) $ECHO_C" >&6
16852 lt_prog_compiler_pic_works_CXX=no
16853 ac_outfile=conftest.$ac_objext
16854 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16855 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16856 # Insert the option either (1) after the last *FLAGS variable, or
16857 # (2) before a word containing "conftest.", or (3) at the end.
16858 # Note that $ac_compile itself does not contain backslashes and begins
16859 # with a dollar sign (not a hyphen), so the echo should work correctly.
16860 # The option is referenced via a variable to avoid confusing sed.
16861 lt_compile=`echo "$ac_compile" | $SED \
16862 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16864 -e 's:$: $lt_compiler_flag:'`
16865 (eval echo "\"\$as_me:16865: $lt_compile\"" >&5)
16866 (eval "$lt_compile" 2>conftest.err)
16868 cat conftest.err >&5
16869 echo "$as_me:16869: \$? = $ac_status" >&5
16870 if (exit $ac_status) && test -s "$ac_outfile"; then
16871 # The compiler can only warn and ignore the option if not recognized
16872 # So say no if there are warnings
16873 if test ! -s conftest.err; then
16874 lt_prog_compiler_pic_works_CXX=yes
16880 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16881 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16883 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16884 case $lt_prog_compiler_pic_CXX in
16886 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16889 lt_prog_compiler_pic_CXX=
16890 lt_prog_compiler_can_build_shared_CXX=no
16895 # For platforms which do not support PIC, -DPIC is meaningless:
16897 lt_prog_compiler_pic_CXX=
16900 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16904 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16905 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16906 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16907 echo $ECHO_N "(cached) $ECHO_C" >&6
16909 lt_cv_prog_compiler_c_o_CXX=no
16910 $rm -r conftest 2>/dev/null
16914 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16916 lt_compiler_flag="-o out/conftest2.$ac_objext"
16917 # Insert the option either (1) after the last *FLAGS variable, or
16918 # (2) before a word containing "conftest.", or (3) at the end.
16919 # Note that $ac_compile itself does not contain backslashes and begins
16920 # with a dollar sign (not a hyphen), so the echo should work correctly.
16921 lt_compile=`echo "$ac_compile" | $SED \
16922 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16924 -e 's:$: $lt_compiler_flag:'`
16925 (eval echo "\"\$as_me:16925: $lt_compile\"" >&5)
16926 (eval "$lt_compile" 2>out/conftest.err)
16928 cat out/conftest.err >&5
16929 echo "$as_me:16929: \$? = $ac_status" >&5
16930 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16932 # The compiler can only warn and ignore the option if not recognized
16933 # So say no if there are warnings
16934 if test ! -s out/conftest.err; then
16935 lt_cv_prog_compiler_c_o_CXX=yes
16940 # SGI C++ compiler will create directory out/ii_files/ for
16941 # template instantiation
16942 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16943 $rm out/* && rmdir out
16949 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16950 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16953 hard_links="nottested"
16954 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16955 # do not overwrite the value of need_locks provided by the user
16956 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16957 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16960 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16962 ln conftest.a conftest.b 2>&5 || hard_links=no
16963 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16964 echo "$as_me:$LINENO: result: $hard_links" >&5
16965 echo "${ECHO_T}$hard_links" >&6
16966 if test "$hard_links" = no; then
16967 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16968 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16975 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16976 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16978 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16981 # If we're using GNU nm, then we don't want the "-C" option.
16982 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16983 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16984 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'
16986 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'
16990 export_symbols_cmds_CXX="$ltdll_cmds"
16993 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16996 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17000 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17001 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17002 test "$ld_shlibs_CXX" = no && can_build_shared=no
17004 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17005 if test "$GCC" = yes; then
17006 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17010 # Do we need to explicitly link libc?
17012 case "x$archive_cmds_need_lc_CXX" in
17014 # Assume -lc should be added
17015 archive_cmds_need_lc_CXX=yes
17017 if test "$enable_shared" = yes && test "$GCC" = yes; then
17018 case $archive_cmds_CXX in
17020 # FIXME: we may have to deal with multi-command sequences.
17023 # Test whether the compiler implicitly links with -lc since on some
17024 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17025 # to ld, don't add -lc before -lgcc.
17026 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17027 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17029 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17032 (eval $ac_compile) 2>&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); } 2>conftest.err; then
17038 libobjs=conftest.$ac_objext
17040 wl=$lt_prog_compiler_wl_CXX
17046 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17047 allow_undefined_flag_CXX=
17048 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17049 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }
17054 archive_cmds_need_lc_CXX=no
17056 archive_cmds_need_lc_CXX=yes
17058 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17060 cat conftest.err 1>&5
17063 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17064 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17071 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17072 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17073 library_names_spec=
17074 libname_spec='lib$name'
17078 postuninstall_cmds=
17082 shlibpath_overrides_runpath=unknown
17084 dynamic_linker="$host_os ld.so"
17085 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17086 if test "$GCC" = yes; then
17087 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17088 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17089 # if the path contains ";" then we assume it to be the separator
17090 # otherwise default to the standard path separator (i.e. ":") - it is
17091 # assumed that no part of a normal pathname contains ";" but that should
17092 # okay in the real world where ";" in dirpaths is itself problematic.
17093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17098 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17100 need_lib_prefix=unknown
17101 hardcode_into_libs=no
17103 # when you set need_version to no, make sure it does not cause -set_version
17104 # flags to be left without arguments
17105 need_version=unknown
17110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17111 shlibpath_var=LIBPATH
17113 # AIX 3 has no versioning support, so we append a major version to the name.
17114 soname_spec='${libname}${release}${shared_ext}$major'
17121 hardcode_into_libs=yes
17122 if test "$host_cpu" = ia64; then
17123 # AIX 5 supports IA64
17124 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17125 shlibpath_var=LD_LIBRARY_PATH
17127 # With GCC up to 2.95.x, collect2 would create an import file
17128 # for dependence libraries. The import file would start with
17129 # the line `#! .'. This would cause the generated library to
17130 # depend on `.', always an invalid library. This was fixed in
17131 # development snapshots of GCC prior to 3.0.
17133 aix4 | aix4.[01] | aix4.[01].*)
17134 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17136 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17139 can_build_shared=no
17143 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17144 # soname into executable. Probably we can add versioning support to
17145 # collect2, so additional links can be useful in future.
17146 if test "$aix_use_runtimelinking" = yes; then
17147 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17148 # instead of lib<name>.a to let people know that these are not
17149 # typical AIX shared libraries.
17150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17152 # We preserve .a as extension for shared libraries through AIX4.2
17153 # and later when we are not doing run time linking.
17154 library_names_spec='${libname}${release}.a $libname.a'
17155 soname_spec='${libname}${release}${shared_ext}$major'
17157 shlibpath_var=LIBPATH
17162 library_names_spec='$libname.ixlibrary $libname.a'
17163 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17164 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'
17168 library_names_spec='${libname}${shared_ext}'
17169 dynamic_linker="$host_os ld.so"
17170 shlibpath_var=LIBRARY_PATH
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17177 soname_spec='${libname}${release}${shared_ext}$major'
17178 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17179 shlibpath_var=LD_LIBRARY_PATH
17180 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17181 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17182 # the default ld.so.conf also contains /usr/contrib/lib and
17183 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17184 # libtool to hard-code these into programs
17187 cygwin* | mingw* | pw32*)
17188 version_type=windows
17193 case $GCC,$host_os in
17194 yes,cygwin* | yes,mingw* | yes,pw32*)
17195 library_names_spec='$libname.dll.a'
17196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17197 postinstall_cmds='base_file=`basename \${file}`~
17198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17199 dldir=$destdir/`dirname \$dlpath`~
17200 test -d \$dldir || mkdir -p \$dldir~
17201 $install_prog $dir/$dlname \$dldir/$dlname'
17202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17203 dlpath=$dir/\$dldll~
17205 shlibpath_overrides_runpath=yes
17209 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17210 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17211 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17214 # MinGW DLLs use traditional 'lib' prefix
17215 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17216 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17217 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17218 # It is most probably a Windows format PATH printed by
17219 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17220 # path with ; separators, and with drive letters. We can handle the
17221 # drive letters (cygwin fileutils understands them), so leave them,
17222 # especially as we might pass files found there to a mingw objdump,
17223 # which wouldn't understand a cygwinified path. Ahh.
17224 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17230 # pw32 DLLs use 'pw' prefix rather than 'lib'
17231 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17237 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17240 dynamic_linker='Win32 ld.exe'
17241 # FIXME: first we should search . and the directory the executable is in
17245 darwin* | rhapsody*)
17246 dynamic_linker="$host_os dyld"
17247 version_type=darwin
17250 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17251 soname_spec='${libname}${release}${major}$shared_ext'
17252 shlibpath_overrides_runpath=yes
17253 shlibpath_var=DYLD_LIBRARY_PATH
17254 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17255 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17256 if test "$GCC" = yes; then
17257 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"`
17259 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17261 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17269 soname_spec='${libname}${release}${shared_ext}$major'
17270 shlibpath_var=LD_LIBRARY_PATH
17281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17282 soname_spec='${libname}${release}${shared_ext}$major'
17283 shlibpath_var=LD_LIBRARY_PATH
17284 shlibpath_overrides_runpath=no
17285 hardcode_into_libs=yes
17286 dynamic_linker='GNU ld.so'
17290 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17291 version_type=freebsd-$objformat
17292 case $version_type in
17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17303 shlibpath_var=LD_LIBRARY_PATH
17306 shlibpath_overrides_runpath=yes
17308 freebsd3.01* | freebsdelf3.01*)
17309 shlibpath_overrides_runpath=yes
17310 hardcode_into_libs=yes
17313 shlibpath_overrides_runpath=no
17314 hardcode_into_libs=yes
17323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17324 soname_spec='${libname}${release}${shared_ext}$major'
17325 shlibpath_var=LD_LIBRARY_PATH
17326 hardcode_into_libs=yes
17329 hpux9* | hpux10* | hpux11*)
17330 # Give a soname corresponding to the major version so that dld.sl refuses to
17331 # link against other versions.
17335 case "$host_cpu" in
17338 hardcode_into_libs=yes
17339 dynamic_linker="$host_os dld.so"
17340 shlibpath_var=LD_LIBRARY_PATH
17341 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17343 soname_spec='${libname}${release}${shared_ext}$major'
17344 if test "X$HPUX_IA64_MODE" = X32; then
17345 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17347 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17353 hardcode_into_libs=yes
17354 dynamic_linker="$host_os dld.sl"
17355 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17358 soname_spec='${libname}${release}${shared_ext}$major'
17359 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17364 dynamic_linker="$host_os dld.sl"
17365 shlibpath_var=SHLIB_PATH
17366 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17368 soname_spec='${libname}${release}${shared_ext}$major'
17371 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17372 postinstall_cmds='chmod 555 $lib'
17375 irix5* | irix6* | nonstopux*)
17377 nonstopux*) version_type=nonstopux ;;
17379 if test "$lt_cv_prog_gnu_ld" = yes; then
17387 soname_spec='${libname}${release}${shared_ext}$major'
17388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17390 irix5* | nonstopux*)
17391 libsuff= shlibsuff=
17394 case $LD in # libtool.m4 will add one of these switches to LD
17395 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17396 libsuff= shlibsuff= libmagic=32-bit;;
17397 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17398 libsuff=32 shlibsuff=N32 libmagic=N32;;
17399 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17400 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17401 *) libsuff= shlibsuff= libmagic=never-match;;
17405 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17406 shlibpath_overrides_runpath=no
17407 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17408 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17409 hardcode_into_libs=yes
17412 # No shared lib support for Linux oldld, aout, or coff.
17413 linux*oldld* | linux*aout* | linux*coff*)
17417 # This must be Linux ELF.
17422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17423 soname_spec='${libname}${release}${shared_ext}$major'
17424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17425 shlibpath_var=LD_LIBRARY_PATH
17426 shlibpath_overrides_runpath=no
17427 # This implies no fast_install, which is unacceptable.
17428 # Some rework will be needed to allow for fast_install
17429 # before this can be enabled.
17430 hardcode_into_libs=yes
17432 # Append ld.so.conf contents to the search path
17433 if test -f /etc/ld.so.conf; then
17434 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17435 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17438 # We used to test for /lib/ld.so.1 and disable shared libraries on
17439 # powerpc, because MkLinux only supported shared libraries with the
17440 # GNU dynamic linker. Since this was broken with cross compilers,
17441 # most powerpc-linux boxes support dynamic linking these days and
17442 # people can always --disable-shared, the test was removed, and we
17443 # assume the GNU/Linux dynamic linker is in use.
17444 dynamic_linker='GNU/Linux ld.so'
17451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17452 soname_spec='${libname}${release}${shared_ext}$major'
17453 shlibpath_var=LD_LIBRARY_PATH
17454 shlibpath_overrides_runpath=no
17455 hardcode_into_libs=yes
17456 dynamic_linker='GNU ld.so'
17463 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17466 dynamic_linker='NetBSD (a.out) ld.so'
17468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17469 soname_spec='${libname}${release}${shared_ext}$major'
17470 dynamic_linker='NetBSD ld.elf_so'
17472 shlibpath_var=LD_LIBRARY_PATH
17473 shlibpath_overrides_runpath=yes
17474 hardcode_into_libs=yes
17479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17480 shlibpath_var=LD_LIBRARY_PATH
17481 shlibpath_overrides_runpath=yes
17488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17489 soname_spec='${libname}${release}${shared_ext}$major'
17490 shlibpath_var=LD_LIBRARY_PATH
17491 shlibpath_overrides_runpath=yes
17498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17500 shlibpath_var=LD_LIBRARY_PATH
17501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17503 openbsd2.[89] | openbsd2.[89].*)
17504 shlibpath_overrides_runpath=no
17507 shlibpath_overrides_runpath=yes
17511 shlibpath_overrides_runpath=yes
17516 libname_spec='$name'
17519 library_names_spec='$libname${shared_ext} $libname.a'
17520 dynamic_linker='OS/2 ld.exe'
17521 shlibpath_var=LIBPATH
17524 osf3* | osf4* | osf5*)
17528 soname_spec='${libname}${release}${shared_ext}$major'
17529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17530 shlibpath_var=LD_LIBRARY_PATH
17531 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17532 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17537 soname_spec='${libname}${release}${shared_ext}$major'
17538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17539 shlibpath_var=LD_LIBRARY_PATH
17546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17547 soname_spec='${libname}${release}${shared_ext}$major'
17548 shlibpath_var=LD_LIBRARY_PATH
17549 shlibpath_overrides_runpath=yes
17550 hardcode_into_libs=yes
17551 # ldd complains unless libraries are executable
17552 postinstall_cmds='chmod +x $lib'
17557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17558 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17559 shlibpath_var=LD_LIBRARY_PATH
17560 shlibpath_overrides_runpath=yes
17561 if test "$with_gnu_ld" = yes; then
17567 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17570 soname_spec='${libname}${release}${shared_ext}$major'
17571 shlibpath_var=LD_LIBRARY_PATH
17572 case $host_vendor in
17574 shlibpath_overrides_runpath=no
17576 export_dynamic_flag_spec='${wl}-Blargedynsym'
17577 runpath_var=LD_RUN_PATH
17585 shlibpath_overrides_runpath=no
17586 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17592 if test -d /usr/nec ;then
17594 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17595 soname_spec='$libname${shared_ext}.$major'
17596 shlibpath_var=LD_LIBRARY_PATH
17602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17603 soname_spec='${libname}${release}${shared_ext}$major'
17604 shlibpath_var=LD_LIBRARY_PATH
17611 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17612 echo "${ECHO_T}$dynamic_linker" >&6
17613 test "$dynamic_linker" = no && can_build_shared=no
17615 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17616 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17617 hardcode_action_CXX=
17618 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17619 test -n "$runpath_var_CXX" || \
17620 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17622 # We can hardcode non-existant directories.
17623 if test "$hardcode_direct_CXX" != no &&
17624 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17625 # have to relink, otherwise we might link with an installed library
17626 # when we should be linking with a yet-to-be-installed one
17627 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17628 test "$hardcode_minus_L_CXX" != no; then
17629 # Linking always hardcodes the temporary library directory.
17630 hardcode_action_CXX=relink
17632 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17633 hardcode_action_CXX=immediate
17636 # We cannot hardcode anything, or else we can only hardcode existing
17638 hardcode_action_CXX=unsupported
17640 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17641 echo "${ECHO_T}$hardcode_action_CXX" >&6
17643 if test "$hardcode_action_CXX" = relink; then
17644 # Fast installation is not supported
17645 enable_fast_install=no
17646 elif test "$shlibpath_overrides_runpath" = yes ||
17647 test "$enable_shared" = no; then
17648 # Fast installation is not necessary
17649 enable_fast_install=needless
17654 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17655 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17656 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17657 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17658 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17659 echo "$as_me:$LINENO: result: yes" >&5
17660 echo "${ECHO_T}yes" >&6
17662 # FIXME - insert some real tests, host_os isn't really good enough
17665 if test -n "$STRIP" ; then
17666 striplib="$STRIP -x"
17667 echo "$as_me:$LINENO: result: yes" >&5
17668 echo "${ECHO_T}yes" >&6
17670 echo "$as_me:$LINENO: result: no" >&5
17671 echo "${ECHO_T}no" >&6
17675 echo "$as_me:$LINENO: result: no" >&5
17676 echo "${ECHO_T}no" >&6
17681 if test "x$enable_dlopen" != xyes; then
17682 enable_dlopen=unknown
17683 enable_dlopen_self=unknown
17684 enable_dlopen_self_static=unknown
17691 lt_cv_dlopen="load_add_on"
17693 lt_cv_dlopen_self=yes
17697 lt_cv_dlopen="LoadLibrary"
17702 lt_cv_dlopen="dlopen"
17707 # if libdl is installed we need to link against it
17708 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17709 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17710 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17711 echo $ECHO_N "(cached) $ECHO_C" >&6
17713 ac_check_lib_save_LIBS=$LIBS
17715 cat >conftest.$ac_ext <<_ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h. */
17722 /* Override any gcc2 internal prototype to avoid an error. */
17726 /* We use char because int might match the return type of a gcc2
17727 builtin and then its argument prototype would still apply. */
17737 rm -f conftest.$ac_objext conftest$ac_exeext
17738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17739 (eval $ac_link) 2>conftest.er1
17741 grep -v '^ *+' conftest.er1 >conftest.err
17743 cat conftest.err >&5
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); } &&
17746 { ac_try='test -z "$ac_cxx_werror_flag"
17747 || test ! -s conftest.err'
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; } &&
17753 { ac_try='test -s conftest$ac_exeext'
17754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755 (eval $ac_try) 2>&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; }; then
17759 ac_cv_lib_dl_dlopen=yes
17761 echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17764 ac_cv_lib_dl_dlopen=no
17766 rm -f conftest.err conftest.$ac_objext \
17767 conftest$ac_exeext conftest.$ac_ext
17768 LIBS=$ac_check_lib_save_LIBS
17770 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17771 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17772 if test $ac_cv_lib_dl_dlopen = yes; then
17773 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17776 lt_cv_dlopen="dyld"
17778 lt_cv_dlopen_self=yes
17785 echo "$as_me:$LINENO: checking for shl_load" >&5
17786 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17787 if test "${ac_cv_func_shl_load+set}" = set; then
17788 echo $ECHO_N "(cached) $ECHO_C" >&6
17790 cat >conftest.$ac_ext <<_ACEOF
17793 cat confdefs.h >>conftest.$ac_ext
17794 cat >>conftest.$ac_ext <<_ACEOF
17795 /* end confdefs.h. */
17796 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17798 #define shl_load innocuous_shl_load
17800 /* System header to define __stub macros and hopefully few prototypes,
17801 which can conflict with char shl_load (); below.
17802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17803 <limits.h> exists even on freestanding compilers. */
17806 # include <limits.h>
17808 # include <assert.h>
17813 /* Override any gcc2 internal prototype to avoid an error. */
17818 /* We use char because int might match the return type of a gcc2
17819 builtin and then its argument prototype would still apply. */
17821 /* The GNU C library defines this for functions which it implements
17822 to always fail with ENOSYS. Some functions are actually named
17823 something starting with __ and the normal name is an alias. */
17824 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17827 char (*f) () = shl_load;
17836 return f != shl_load;
17841 rm -f conftest.$ac_objext conftest$ac_exeext
17842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17843 (eval $ac_link) 2>conftest.er1
17845 grep -v '^ *+' conftest.er1 >conftest.err
17847 cat conftest.err >&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
17850 { ac_try='test -z "$ac_cxx_werror_flag"
17851 || test ! -s conftest.err'
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; } &&
17857 { ac_try='test -s conftest$ac_exeext'
17858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17859 (eval $ac_try) 2>&5
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; }; then
17863 ac_cv_func_shl_load=yes
17865 echo "$as_me: failed program was:" >&5
17866 sed 's/^/| /' conftest.$ac_ext >&5
17868 ac_cv_func_shl_load=no
17870 rm -f conftest.err conftest.$ac_objext \
17871 conftest$ac_exeext conftest.$ac_ext
17873 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17874 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17875 if test $ac_cv_func_shl_load = yes; then
17876 lt_cv_dlopen="shl_load"
17878 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17879 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17880 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17881 echo $ECHO_N "(cached) $ECHO_C" >&6
17883 ac_check_lib_save_LIBS=$LIBS
17885 cat >conftest.$ac_ext <<_ACEOF
17888 cat confdefs.h >>conftest.$ac_ext
17889 cat >>conftest.$ac_ext <<_ACEOF
17890 /* end confdefs.h. */
17892 /* Override any gcc2 internal prototype to avoid an error. */
17896 /* We use char because int might match the return type of a gcc2
17897 builtin and then its argument prototype would still apply. */
17907 rm -f conftest.$ac_objext conftest$ac_exeext
17908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17909 (eval $ac_link) 2>conftest.er1
17911 grep -v '^ *+' conftest.er1 >conftest.err
17913 cat conftest.err >&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); } &&
17916 { ac_try='test -z "$ac_cxx_werror_flag"
17917 || test ! -s conftest.err'
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); }; } &&
17923 { ac_try='test -s conftest$ac_exeext'
17924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925 (eval $ac_try) 2>&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; }; then
17929 ac_cv_lib_dld_shl_load=yes
17931 echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17934 ac_cv_lib_dld_shl_load=no
17936 rm -f conftest.err conftest.$ac_objext \
17937 conftest$ac_exeext conftest.$ac_ext
17938 LIBS=$ac_check_lib_save_LIBS
17940 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17941 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17942 if test $ac_cv_lib_dld_shl_load = yes; then
17943 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17945 echo "$as_me:$LINENO: checking for dlopen" >&5
17946 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17947 if test "${ac_cv_func_dlopen+set}" = set; then
17948 echo $ECHO_N "(cached) $ECHO_C" >&6
17950 cat >conftest.$ac_ext <<_ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h. */
17956 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17958 #define dlopen innocuous_dlopen
17960 /* System header to define __stub macros and hopefully few prototypes,
17961 which can conflict with char dlopen (); below.
17962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17963 <limits.h> exists even on freestanding compilers. */
17966 # include <limits.h>
17968 # include <assert.h>
17973 /* Override any gcc2 internal prototype to avoid an error. */
17978 /* We use char because int might match the return type of a gcc2
17979 builtin and then its argument prototype would still apply. */
17981 /* The GNU C library defines this for functions which it implements
17982 to always fail with ENOSYS. Some functions are actually named
17983 something starting with __ and the normal name is an alias. */
17984 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17987 char (*f) () = dlopen;
17996 return f != dlopen;
18001 rm -f conftest.$ac_objext conftest$ac_exeext
18002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18003 (eval $ac_link) 2>conftest.er1
18005 grep -v '^ *+' conftest.er1 >conftest.err
18007 cat conftest.err >&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } &&
18010 { ac_try='test -z "$ac_cxx_werror_flag"
18011 || test ! -s conftest.err'
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; } &&
18017 { ac_try='test -s conftest$ac_exeext'
18018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019 (eval $ac_try) 2>&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; }; then
18023 ac_cv_func_dlopen=yes
18025 echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18028 ac_cv_func_dlopen=no
18030 rm -f conftest.err conftest.$ac_objext \
18031 conftest$ac_exeext conftest.$ac_ext
18033 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18034 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18035 if test $ac_cv_func_dlopen = yes; then
18036 lt_cv_dlopen="dlopen"
18038 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18039 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18040 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18041 echo $ECHO_N "(cached) $ECHO_C" >&6
18043 ac_check_lib_save_LIBS=$LIBS
18045 cat >conftest.$ac_ext <<_ACEOF
18048 cat confdefs.h >>conftest.$ac_ext
18049 cat >>conftest.$ac_ext <<_ACEOF
18050 /* end confdefs.h. */
18052 /* Override any gcc2 internal prototype to avoid an error. */
18056 /* We use char because int might match the return type of a gcc2
18057 builtin and then its argument prototype would still apply. */
18067 rm -f conftest.$ac_objext conftest$ac_exeext
18068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18069 (eval $ac_link) 2>conftest.er1
18071 grep -v '^ *+' conftest.er1 >conftest.err
18073 cat conftest.err >&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } &&
18076 { ac_try='test -z "$ac_cxx_werror_flag"
18077 || test ! -s conftest.err'
18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; } &&
18083 { ac_try='test -s conftest$ac_exeext'
18084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18085 (eval $ac_try) 2>&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); }; }; then
18089 ac_cv_lib_dl_dlopen=yes
18091 echo "$as_me: failed program was:" >&5
18092 sed 's/^/| /' conftest.$ac_ext >&5
18094 ac_cv_lib_dl_dlopen=no
18096 rm -f conftest.err conftest.$ac_objext \
18097 conftest$ac_exeext conftest.$ac_ext
18098 LIBS=$ac_check_lib_save_LIBS
18100 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18101 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18102 if test $ac_cv_lib_dl_dlopen = yes; then
18103 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18105 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18106 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18107 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18108 echo $ECHO_N "(cached) $ECHO_C" >&6
18110 ac_check_lib_save_LIBS=$LIBS
18111 LIBS="-lsvld $LIBS"
18112 cat >conftest.$ac_ext <<_ACEOF
18115 cat confdefs.h >>conftest.$ac_ext
18116 cat >>conftest.$ac_ext <<_ACEOF
18117 /* end confdefs.h. */
18119 /* Override any gcc2 internal prototype to avoid an error. */
18123 /* We use char because int might match the return type of a gcc2
18124 builtin and then its argument prototype would still apply. */
18134 rm -f conftest.$ac_objext conftest$ac_exeext
18135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18136 (eval $ac_link) 2>conftest.er1
18138 grep -v '^ *+' conftest.er1 >conftest.err
18140 cat conftest.err >&5
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); } &&
18143 { ac_try='test -z "$ac_cxx_werror_flag"
18144 || test ! -s conftest.err'
18145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18146 (eval $ac_try) 2>&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); }; } &&
18150 { ac_try='test -s conftest$ac_exeext'
18151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152 (eval $ac_try) 2>&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; }; then
18156 ac_cv_lib_svld_dlopen=yes
18158 echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18161 ac_cv_lib_svld_dlopen=no
18163 rm -f conftest.err conftest.$ac_objext \
18164 conftest$ac_exeext conftest.$ac_ext
18165 LIBS=$ac_check_lib_save_LIBS
18167 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18168 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18169 if test $ac_cv_lib_svld_dlopen = yes; then
18170 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18172 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18173 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18174 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18175 echo $ECHO_N "(cached) $ECHO_C" >&6
18177 ac_check_lib_save_LIBS=$LIBS
18179 cat >conftest.$ac_ext <<_ACEOF
18182 cat confdefs.h >>conftest.$ac_ext
18183 cat >>conftest.$ac_ext <<_ACEOF
18184 /* end confdefs.h. */
18186 /* Override any gcc2 internal prototype to avoid an error. */
18190 /* We use char because int might match the return type of a gcc2
18191 builtin and then its argument prototype would still apply. */
18201 rm -f conftest.$ac_objext conftest$ac_exeext
18202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18203 (eval $ac_link) 2>conftest.er1
18205 grep -v '^ *+' conftest.er1 >conftest.err
18207 cat conftest.err >&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); } &&
18210 { ac_try='test -z "$ac_cxx_werror_flag"
18211 || test ! -s conftest.err'
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; } &&
18217 { ac_try='test -s conftest$ac_exeext'
18218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; }; then
18223 ac_cv_lib_dld_dld_link=yes
18225 echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18228 ac_cv_lib_dld_dld_link=no
18230 rm -f conftest.err conftest.$ac_objext \
18231 conftest$ac_exeext conftest.$ac_ext
18232 LIBS=$ac_check_lib_save_LIBS
18234 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18235 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18236 if test $ac_cv_lib_dld_dld_link = yes; then
18237 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18258 if test "x$lt_cv_dlopen" != xno; then
18264 case $lt_cv_dlopen in
18266 save_CPPFLAGS="$CPPFLAGS"
18267 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18269 save_LDFLAGS="$LDFLAGS"
18270 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18273 LIBS="$lt_cv_dlopen_libs $LIBS"
18275 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18276 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18277 if test "${lt_cv_dlopen_self+set}" = set; then
18278 echo $ECHO_N "(cached) $ECHO_C" >&6
18280 if test "$cross_compiling" = yes; then :
18281 lt_cv_dlopen_self=cross
18283 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18284 lt_status=$lt_dlunknown
18285 cat > conftest.$ac_ext <<EOF
18286 #line 18286 "configure"
18287 #include "confdefs.h"
18296 # define LT_DLGLOBAL RTLD_GLOBAL
18299 # define LT_DLGLOBAL DL_GLOBAL
18301 # define LT_DLGLOBAL 0
18305 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18306 find out it does not work in some platform. */
18307 #ifndef LT_DLLAZY_OR_NOW
18309 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18312 # define LT_DLLAZY_OR_NOW DL_LAZY
18315 # define LT_DLLAZY_OR_NOW RTLD_NOW
18318 # define LT_DLLAZY_OR_NOW DL_NOW
18320 # define LT_DLLAZY_OR_NOW 0
18328 extern "C" void exit (int);
18331 void fnord() { int i=42;}
18334 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18335 int status = $lt_dlunknown;
18339 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18340 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18341 /* dlclose (self); */
18347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18348 (eval $ac_link) 2>&5
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18352 (./conftest; exit; ) 2>/dev/null
18354 case x$lt_status in
18355 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18356 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18357 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18360 # compilation failed
18361 lt_cv_dlopen_self=no
18368 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18369 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18371 if test "x$lt_cv_dlopen_self" = xyes; then
18372 LDFLAGS="$LDFLAGS $link_static_flag"
18373 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18374 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18375 if test "${lt_cv_dlopen_self_static+set}" = set; then
18376 echo $ECHO_N "(cached) $ECHO_C" >&6
18378 if test "$cross_compiling" = yes; then :
18379 lt_cv_dlopen_self_static=cross
18381 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18382 lt_status=$lt_dlunknown
18383 cat > conftest.$ac_ext <<EOF
18384 #line 18384 "configure"
18385 #include "confdefs.h"
18394 # define LT_DLGLOBAL RTLD_GLOBAL
18397 # define LT_DLGLOBAL DL_GLOBAL
18399 # define LT_DLGLOBAL 0
18403 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18404 find out it does not work in some platform. */
18405 #ifndef LT_DLLAZY_OR_NOW
18407 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18410 # define LT_DLLAZY_OR_NOW DL_LAZY
18413 # define LT_DLLAZY_OR_NOW RTLD_NOW
18416 # define LT_DLLAZY_OR_NOW DL_NOW
18418 # define LT_DLLAZY_OR_NOW 0
18426 extern "C" void exit (int);
18429 void fnord() { int i=42;}
18432 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18433 int status = $lt_dlunknown;
18437 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18438 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18439 /* dlclose (self); */
18445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18446 (eval $ac_link) 2>&5
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18450 (./conftest; exit; ) 2>/dev/null
18452 case x$lt_status in
18453 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18454 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18455 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18458 # compilation failed
18459 lt_cv_dlopen_self_static=no
18466 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18467 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18470 CPPFLAGS="$save_CPPFLAGS"
18471 LDFLAGS="$save_LDFLAGS"
18476 case $lt_cv_dlopen_self in
18477 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18478 *) enable_dlopen_self=unknown ;;
18481 case $lt_cv_dlopen_self_static in
18482 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18483 *) enable_dlopen_self_static=unknown ;;
18488 # The else clause should only fire when bootstrapping the
18489 # libtool distribution, otherwise you forgot to ship ltmain.sh
18490 # with your package, and you will get complaints that there are
18491 # no rules to generate ltmain.sh.
18492 if test -f "$ltmain"; then
18493 # See if we are running on zsh, and set the options which allow our commands through
18494 # without removal of \ escapes.
18495 if test -n "${ZSH_VERSION+set}" ; then
18496 setopt NO_GLOB_SUBST
18498 # Now quote all the things that may contain metacharacters while being
18499 # careful not to overquote the AC_SUBSTed values. We take copies of the
18500 # variables and quote the copies for generation of the libtool script.
18501 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18503 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18504 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18505 deplibs_check_method reload_flag reload_cmds need_locks \
18506 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18507 lt_cv_sys_global_symbol_to_c_name_address \
18508 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18509 old_postinstall_cmds old_postuninstall_cmds \
18513 lt_prog_compiler_wl_CXX \
18514 lt_prog_compiler_pic_CXX \
18515 lt_prog_compiler_static_CXX \
18516 lt_prog_compiler_no_builtin_flag_CXX \
18517 export_dynamic_flag_spec_CXX \
18518 thread_safe_flag_spec_CXX \
18519 whole_archive_flag_spec_CXX \
18520 enable_shared_with_static_runtimes_CXX \
18521 old_archive_cmds_CXX \
18522 old_archive_from_new_cmds_CXX \
18523 predep_objects_CXX \
18524 postdep_objects_CXX \
18527 compiler_lib_search_path_CXX \
18529 archive_expsym_cmds_CXX \
18530 postinstall_cmds_CXX \
18531 postuninstall_cmds_CXX \
18532 old_archive_from_expsyms_cmds_CXX \
18533 allow_undefined_flag_CXX \
18534 no_undefined_flag_CXX \
18535 export_symbols_cmds_CXX \
18536 hardcode_libdir_flag_spec_CXX \
18537 hardcode_libdir_flag_spec_ld_CXX \
18538 hardcode_libdir_separator_CXX \
18539 hardcode_automatic_CXX \
18541 module_expsym_cmds_CXX \
18542 lt_cv_prog_compiler_c_o_CXX \
18543 exclude_expsyms_CXX \
18544 include_expsyms_CXX; do
18547 old_archive_cmds_CXX | \
18548 old_archive_from_new_cmds_CXX | \
18549 archive_cmds_CXX | \
18550 archive_expsym_cmds_CXX | \
18551 module_cmds_CXX | \
18552 module_expsym_cmds_CXX | \
18553 old_archive_from_expsyms_cmds_CXX | \
18554 export_symbols_cmds_CXX | \
18555 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18556 postinstall_cmds | postuninstall_cmds | \
18557 old_postinstall_cmds | old_postuninstall_cmds | \
18558 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18559 # Double-quote double-evaled strings.
18560 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18563 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18569 *'\$0 --fallback-echo"')
18570 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18576 cat <<__EOF__ >> "$cfgfile"
18577 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18581 # Shell to use when invoking shell scripts.
18584 # Whether or not to build shared libraries.
18585 build_libtool_libs=$enable_shared
18587 # Whether or not to build static libraries.
18588 build_old_libs=$enable_static
18590 # Whether or not to add -lc for building shared libraries.
18591 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18593 # Whether or not to disallow shared libs when runtime libs are static
18594 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18596 # Whether or not to optimize for fast installation.
18597 fast_install=$enable_fast_install
18600 host_alias=$host_alias
18603 # An echo program that does not interpret backslashes.
18608 AR_FLAGS=$lt_AR_FLAGS
18613 # A language-specific compiler.
18614 CC=$lt_compiler_CXX
18616 # Is the compiler the GNU C compiler?
18622 # The linker used to build libraries.
18625 # Whether we need hard or soft links.
18628 # A BSD-compatible nm program.
18631 # A symbol stripping program
18634 # Used to examine libraries when file_magic_cmd begins "file"
18635 MAGIC_CMD=$MAGIC_CMD
18637 # Used on cygwin: DLL creation program.
18640 # Used on cygwin: object dumper.
18643 # Used on cygwin: assembler.
18646 # The name of the directory that contains temporary libtool files.
18649 # How to create reloadable object files.
18650 reload_flag=$lt_reload_flag
18651 reload_cmds=$lt_reload_cmds
18653 # How to pass a linker flag through the compiler.
18654 wl=$lt_lt_prog_compiler_wl_CXX
18656 # Object file suffix (normally "o").
18657 objext="$ac_objext"
18659 # Old archive suffix (normally "a").
18662 # Shared library suffix (normally ".so").
18663 shrext_cmds='$shrext_cmds'
18665 # Executable file suffix (normally "").
18668 # Additional compiler flags for building library objects.
18669 pic_flag=$lt_lt_prog_compiler_pic_CXX
18672 # What is the maximum length of a command?
18673 max_cmd_len=$lt_cv_sys_max_cmd_len
18675 # Does compiler simultaneously support -c and -o options?
18676 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18678 # Must we lock files when doing compilation ?
18679 need_locks=$lt_need_locks
18681 # Do we need the lib prefix for modules?
18682 need_lib_prefix=$need_lib_prefix
18684 # Do we need a version for libraries?
18685 need_version=$need_version
18687 # Whether dlopen is supported.
18688 dlopen_support=$enable_dlopen
18690 # Whether dlopen of programs is supported.
18691 dlopen_self=$enable_dlopen_self
18693 # Whether dlopen of statically linked programs is supported.
18694 dlopen_self_static=$enable_dlopen_self_static
18696 # Compiler flag to prevent dynamic linking.
18697 link_static_flag=$lt_lt_prog_compiler_static_CXX
18699 # Compiler flag to turn off builtin functions.
18700 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18702 # Compiler flag to allow reflexive dlopens.
18703 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18705 # Compiler flag to generate shared objects directly from archives.
18706 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18708 # Compiler flag to generate thread-safe objects.
18709 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18711 # Library versioning type.
18712 version_type=$version_type
18714 # Format of library name prefix.
18715 libname_spec=$lt_libname_spec
18717 # List of archive names. First name is the real one, the rest are links.
18718 # The last name is the one that the linker finds with -lNAME.
18719 library_names_spec=$lt_library_names_spec
18721 # The coded name of the library, if different from the real name.
18722 soname_spec=$lt_soname_spec
18724 # Commands used to build and install an old-style archive.
18726 old_archive_cmds=$lt_old_archive_cmds_CXX
18727 old_postinstall_cmds=$lt_old_postinstall_cmds
18728 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18730 # Create an old-style archive from a shared archive.
18731 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18733 # Create a temporary old-style archive to link instead of a shared archive.
18734 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18736 # Commands used to build and install a shared archive.
18737 archive_cmds=$lt_archive_cmds_CXX
18738 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18739 postinstall_cmds=$lt_postinstall_cmds
18740 postuninstall_cmds=$lt_postuninstall_cmds
18742 # Commands used to build a loadable module (assumed same as above if empty)
18743 module_cmds=$lt_module_cmds_CXX
18744 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18746 # Commands to strip libraries.
18747 old_striplib=$lt_old_striplib
18748 striplib=$lt_striplib
18750 # Dependencies to place before the objects being linked to create a
18752 predep_objects=$lt_predep_objects_CXX
18754 # Dependencies to place after the objects being linked to create a
18756 postdep_objects=$lt_postdep_objects_CXX
18758 # Dependencies to place before the objects being linked to create a
18760 predeps=$lt_predeps_CXX
18762 # Dependencies to place after the objects being linked to create a
18764 postdeps=$lt_postdeps_CXX
18766 # The library search path used internally by the compiler when linking
18767 # a shared library.
18768 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18770 # Method to check whether dependent libraries are shared objects.
18771 deplibs_check_method=$lt_deplibs_check_method
18773 # Command to use when deplibs_check_method == file_magic.
18774 file_magic_cmd=$lt_file_magic_cmd
18776 # Flag that allows shared libraries with undefined symbols to be built.
18777 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18779 # Flag that forces no undefined symbols.
18780 no_undefined_flag=$lt_no_undefined_flag_CXX
18782 # Commands used to finish a libtool library installation in a directory.
18783 finish_cmds=$lt_finish_cmds
18785 # Same as above, but a single script fragment to be evaled but not shown.
18786 finish_eval=$lt_finish_eval
18788 # Take the output of nm and produce a listing of raw symbols and C names.
18789 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18791 # Transform the output of nm in a proper C declaration
18792 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18794 # Transform the output of nm in a C name address pair
18795 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18797 # This is the shared library runtime path variable.
18798 runpath_var=$runpath_var
18800 # This is the shared library path variable.
18801 shlibpath_var=$shlibpath_var
18803 # Is shlibpath searched before the hard-coded library search path?
18804 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18806 # How to hardcode a shared library path into an executable.
18807 hardcode_action=$hardcode_action_CXX
18809 # Whether we should hardcode library paths into libraries.
18810 hardcode_into_libs=$hardcode_into_libs
18812 # Flag to hardcode \$libdir into a binary during linking.
18813 # This must work even if \$libdir does not exist.
18814 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18816 # If ld is used when linking, flag to hardcode \$libdir into
18817 # a binary during linking. This must work even if \$libdir does
18819 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18821 # Whether we need a single -rpath flag with a separated argument.
18822 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18824 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18825 # resulting binary.
18826 hardcode_direct=$hardcode_direct_CXX
18828 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18829 # resulting binary.
18830 hardcode_minus_L=$hardcode_minus_L_CXX
18832 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18833 # the resulting binary.
18834 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18836 # Set to yes if building a shared library automatically hardcodes DIR into the library
18837 # and all subsequent libraries and executables linked against it.
18838 hardcode_automatic=$hardcode_automatic_CXX
18840 # Variables whose values should be saved in libtool wrapper scripts and
18841 # restored at relink time.
18842 variables_saved_for_relink="$variables_saved_for_relink"
18844 # Whether libtool must link a program against all its dependency libraries.
18845 link_all_deplibs=$link_all_deplibs_CXX
18847 # Compile-time system search path for libraries
18848 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18850 # Run-time system search path for libraries
18851 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18853 # Fix the shell variable \$srcfile for the compiler.
18854 fix_srcfile_path="$fix_srcfile_path_CXX"
18856 # Set to yes if exported symbols are required.
18857 always_export_symbols=$always_export_symbols_CXX
18859 # The commands to list exported symbols.
18860 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18862 # The commands to extract the exported symbol list from a shared archive.
18863 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18865 # Symbols that should not be listed in the preloaded symbols.
18866 exclude_expsyms=$lt_exclude_expsyms_CXX
18868 # Symbols that must always be exported.
18869 include_expsyms=$lt_include_expsyms_CXX
18871 # ### END LIBTOOL TAG CONFIG: $tagname
18877 # If there is no Makefile yet, we rely on a make rule to execute
18878 # `config.status --recheck' to rerun these tests and create the
18879 # libtool script then.
18880 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18881 if test -f "$ltmain_in"; then
18882 test -f Makefile && make "$ltmain"
18888 ac_cpp='$CPP $CPPFLAGS'
18889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18897 with_gnu_ldcxx=$with_gnu_ld
18898 with_gnu_ld=$lt_save_with_gnu_ld
18899 lt_cv_path_LDCXX=$lt_cv_path_LD
18900 lt_cv_path_LD=$lt_save_path_LD
18901 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18902 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18910 if test -n "$F77" && test "X$F77" != "Xno"; then
18913 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18914 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18915 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18918 archive_cmds_need_lc_F77=no
18919 allow_undefined_flag_F77=
18920 always_export_symbols_F77=no
18921 archive_expsym_cmds_F77=
18922 export_dynamic_flag_spec_F77=
18923 hardcode_direct_F77=no
18924 hardcode_libdir_flag_spec_F77=
18925 hardcode_libdir_flag_spec_ld_F77=
18926 hardcode_libdir_separator_F77=
18927 hardcode_minus_L_F77=no
18928 hardcode_automatic_F77=no
18930 module_expsym_cmds_F77=
18931 link_all_deplibs_F77=unknown
18932 old_archive_cmds_F77=$old_archive_cmds
18933 no_undefined_flag_F77=
18934 whole_archive_flag_spec_F77=
18935 enable_shared_with_static_runtimes_F77=no
18937 # Source file extension for f77 test sources.
18940 # Object file extension for compiled f77 test sources.
18944 # Code to be used in simple compile tests
18945 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18947 # Code to be used in simple link tests
18948 lt_simple_link_test_code=" program t\n end\n"
18950 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18952 # If no C compiler was specified, use CC.
18955 # Allow CC to be a program name with arguments.
18959 # Allow CC to be a program name with arguments.
18964 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18966 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18967 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18968 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18969 echo "${ECHO_T}$can_build_shared" >&6
18971 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18972 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18973 test "$can_build_shared" = "no" && enable_shared=no
18975 # On AIX, shared libraries and static libraries use the same namespace, and
18976 # are all built from PIC.
18979 test "$enable_shared" = yes && enable_static=no
18980 if test -n "$RANLIB"; then
18981 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18982 postinstall_cmds='$RANLIB $lib'
18986 test "$enable_shared" = yes && enable_static=no
18989 echo "$as_me:$LINENO: result: $enable_shared" >&5
18990 echo "${ECHO_T}$enable_shared" >&6
18992 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18993 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18994 # Make sure either enable_shared or enable_static is yes.
18995 test "$enable_shared" = yes || enable_static=yes
18996 echo "$as_me:$LINENO: result: $enable_static" >&5
18997 echo "${ECHO_T}$enable_static" >&6
18999 test "$ld_shlibs_F77" = no && can_build_shared=no
19004 lt_prog_compiler_wl_F77=
19005 lt_prog_compiler_pic_F77=
19006 lt_prog_compiler_static_F77=
19008 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19009 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19011 if test "$GCC" = yes; then
19012 lt_prog_compiler_wl_F77='-Wl,'
19013 lt_prog_compiler_static_F77='-static'
19017 # All AIX code is PIC.
19018 if test "$host_cpu" = ia64; then
19019 # AIX 5 now supports IA64 processor
19020 lt_prog_compiler_static_F77='-Bstatic'
19025 # FIXME: we need at least 68020 code to build shared libraries, but
19026 # adding the `-m68020' flag to GCC prevents building anything better,
19028 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19031 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19032 # PIC is the default for these OSes.
19035 mingw* | pw32* | os2*)
19036 # This hack is so that the source file can tell whether it is being
19037 # built for inclusion in a dll (and should export symbols for example).
19038 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19041 darwin* | rhapsody*)
19042 # PIC is the default on this platform
19043 # Common symbols not allowed in MH_DYLIB files
19044 lt_prog_compiler_pic_F77='-fno-common'
19048 # Just because we use GCC doesn't mean we suddenly get shared libraries
19049 # on systems that don't support them.
19050 lt_prog_compiler_can_build_shared_F77=no
19055 if test -d /usr/nec; then
19056 lt_prog_compiler_pic_F77=-Kconform_pic
19061 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19062 # not for PA HP-UX.
19063 case "$host_cpu" in
19068 lt_prog_compiler_pic_F77='-fPIC'
19074 lt_prog_compiler_pic_F77='-fPIC'
19078 # PORTME Check for flag to pass linker flags through the system compiler.
19081 lt_prog_compiler_wl_F77='-Wl,'
19082 if test "$host_cpu" = ia64; then
19083 # AIX 5 now supports IA64 processor
19084 lt_prog_compiler_static_F77='-Bstatic'
19086 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19090 # PIC is the default on this platform
19091 # Common symbols not allowed in MH_DYLIB files
19092 case "$cc_basename" in
19094 lt_prog_compiler_pic_F77='-qnocommon'
19095 lt_prog_compiler_wl_F77='-Wl,'
19100 mingw* | pw32* | os2*)
19101 # This hack is so that the source file can tell whether it is being
19102 # built for inclusion in a dll (and should export symbols for example).
19103 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19106 hpux9* | hpux10* | hpux11*)
19107 lt_prog_compiler_wl_F77='-Wl,'
19108 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19109 # not for PA HP-UX.
19110 case "$host_cpu" in
19115 lt_prog_compiler_pic_F77='+Z'
19118 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19119 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19122 irix5* | irix6* | nonstopux*)
19123 lt_prog_compiler_wl_F77='-Wl,'
19124 # PIC (with -KPIC) is the default.
19125 lt_prog_compiler_static_F77='-non_shared'
19129 lt_prog_compiler_pic_F77='-KPIC'
19130 lt_prog_compiler_static_F77='-Bstatic'
19136 lt_prog_compiler_wl_F77='-Wl,'
19137 lt_prog_compiler_pic_F77='-KPIC'
19138 lt_prog_compiler_static_F77='-static'
19141 lt_prog_compiler_wl_F77='-Wl,'
19142 # All Alpha code is PIC.
19143 lt_prog_compiler_static_F77='-non_shared'
19148 osf3* | osf4* | osf5*)
19149 lt_prog_compiler_wl_F77='-Wl,'
19150 # All OSF/1 code is PIC.
19151 lt_prog_compiler_static_F77='-non_shared'
19155 lt_prog_compiler_pic_F77='-Kpic'
19156 lt_prog_compiler_static_F77='-dn'
19160 lt_prog_compiler_wl_F77='-Wl,'
19161 lt_prog_compiler_pic_F77='-KPIC'
19162 lt_prog_compiler_static_F77='-Bstatic'
19166 lt_prog_compiler_wl_F77='-Qoption ld '
19167 lt_prog_compiler_pic_F77='-PIC'
19168 lt_prog_compiler_static_F77='-Bstatic'
19171 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19172 lt_prog_compiler_wl_F77='-Wl,'
19173 lt_prog_compiler_pic_F77='-KPIC'
19174 lt_prog_compiler_static_F77='-Bstatic'
19178 if test -d /usr/nec ;then
19179 lt_prog_compiler_pic_F77='-Kconform_pic'
19180 lt_prog_compiler_static_F77='-Bstatic'
19185 lt_prog_compiler_pic_F77='-pic'
19186 lt_prog_compiler_static_F77='-Bstatic'
19190 lt_prog_compiler_can_build_shared_F77=no
19195 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19196 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19199 # Check to make sure the PIC flag actually works.
19201 if test -n "$lt_prog_compiler_pic_F77"; then
19203 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19204 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19205 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19206 echo $ECHO_N "(cached) $ECHO_C" >&6
19208 lt_prog_compiler_pic_works_F77=no
19209 ac_outfile=conftest.$ac_objext
19210 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19211 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19212 # Insert the option either (1) after the last *FLAGS variable, or
19213 # (2) before a word containing "conftest.", or (3) at the end.
19214 # Note that $ac_compile itself does not contain backslashes and begins
19215 # with a dollar sign (not a hyphen), so the echo should work correctly.
19216 # The option is referenced via a variable to avoid confusing sed.
19217 lt_compile=`echo "$ac_compile" | $SED \
19218 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19220 -e 's:$: $lt_compiler_flag:'`
19221 (eval echo "\"\$as_me:19221: $lt_compile\"" >&5)
19222 (eval "$lt_compile" 2>conftest.err)
19224 cat conftest.err >&5
19225 echo "$as_me:19225: \$? = $ac_status" >&5
19226 if (exit $ac_status) && test -s "$ac_outfile"; then
19227 # The compiler can only warn and ignore the option if not recognized
19228 # So say no if there are warnings
19229 if test ! -s conftest.err; then
19230 lt_prog_compiler_pic_works_F77=yes
19236 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19237 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19239 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19240 case $lt_prog_compiler_pic_F77 in
19242 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19245 lt_prog_compiler_pic_F77=
19246 lt_prog_compiler_can_build_shared_F77=no
19251 # For platforms which do not support PIC, -DPIC is meaningless:
19253 lt_prog_compiler_pic_F77=
19256 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19260 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19261 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19262 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19263 echo $ECHO_N "(cached) $ECHO_C" >&6
19265 lt_cv_prog_compiler_c_o_F77=no
19266 $rm -r conftest 2>/dev/null
19270 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19272 lt_compiler_flag="-o out/conftest2.$ac_objext"
19273 # Insert the option either (1) after the last *FLAGS variable, or
19274 # (2) before a word containing "conftest.", or (3) at the end.
19275 # Note that $ac_compile itself does not contain backslashes and begins
19276 # with a dollar sign (not a hyphen), so the echo should work correctly.
19277 lt_compile=`echo "$ac_compile" | $SED \
19278 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19280 -e 's:$: $lt_compiler_flag:'`
19281 (eval echo "\"\$as_me:19281: $lt_compile\"" >&5)
19282 (eval "$lt_compile" 2>out/conftest.err)
19284 cat out/conftest.err >&5
19285 echo "$as_me:19285: \$? = $ac_status" >&5
19286 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19288 # The compiler can only warn and ignore the option if not recognized
19289 # So say no if there are warnings
19290 if test ! -s out/conftest.err; then
19291 lt_cv_prog_compiler_c_o_F77=yes
19296 # SGI C++ compiler will create directory out/ii_files/ for
19297 # template instantiation
19298 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19299 $rm out/* && rmdir out
19305 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19306 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19309 hard_links="nottested"
19310 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19311 # do not overwrite the value of need_locks provided by the user
19312 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19313 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19316 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19318 ln conftest.a conftest.b 2>&5 || hard_links=no
19319 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19320 echo "$as_me:$LINENO: result: $hard_links" >&5
19321 echo "${ECHO_T}$hard_links" >&6
19322 if test "$hard_links" = no; then
19323 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19324 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19331 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19332 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19335 allow_undefined_flag_F77=
19336 enable_shared_with_static_runtimes_F77=no
19338 archive_expsym_cmds_F77=
19339 old_archive_From_new_cmds_F77=
19340 old_archive_from_expsyms_cmds_F77=
19341 export_dynamic_flag_spec_F77=
19342 whole_archive_flag_spec_F77=
19343 thread_safe_flag_spec_F77=
19344 hardcode_libdir_flag_spec_F77=
19345 hardcode_libdir_flag_spec_ld_F77=
19346 hardcode_libdir_separator_F77=
19347 hardcode_direct_F77=no
19348 hardcode_minus_L_F77=no
19349 hardcode_shlibpath_var_F77=unsupported
19350 link_all_deplibs_F77=unknown
19351 hardcode_automatic_F77=no
19353 module_expsym_cmds_F77=
19354 always_export_symbols_F77=no
19355 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19356 # include_expsyms should be a list of space-separated symbols to be *always*
19357 # included in the symbol list
19358 include_expsyms_F77=
19359 # exclude_expsyms can be an extended regexp of symbols to exclude
19360 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19361 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19362 # as well as any symbol that contains `d'.
19363 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19364 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19365 # platforms (ab)use it in PIC code, but their linkers get confused if
19366 # the symbol is explicitly referenced. Since portable code cannot
19367 # rely on this symbol name, it's probably fine to never include it in
19368 # preloaded symbol tables.
19369 extract_expsyms_cmds=
19372 cygwin* | mingw* | pw32*)
19373 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19374 # When not using gcc, we currently assume that we are using
19375 # Microsoft Visual C++.
19376 if test "$GCC" != yes; then
19386 if test "$with_gnu_ld" = yes; then
19387 # If archive_cmds runs LD, not CC, wlarc should be empty
19390 # See if GNU ld supports shared libraries.
19392 aix3* | aix4* | aix5*)
19393 # On AIX/PPC, the GNU linker is very broken
19394 if test "$host_cpu" != ia64; then
19398 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19399 *** to be unable to reliably create shared libraries on AIX.
19400 *** Therefore, libtool is disabling shared libraries support. If you
19401 *** really care for shared libraries, you may want to modify your PATH
19402 *** so that a non-GNU linker is found, and then restart.
19409 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)'
19410 hardcode_libdir_flag_spec_F77='-L$libdir'
19411 hardcode_minus_L_F77=yes
19413 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19414 # that the semantics of dynamic libraries on AmigaOS, at least up
19415 # to version 4, is to share data among multiple programs linked
19416 # with the same dynamic library. Since this doesn't match the
19417 # behavior of shared libraries on other platforms, we can't use
19423 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19424 allow_undefined_flag_F77=unsupported
19425 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19426 # support --undefined. This deserves some investigation. FIXME
19427 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19433 cygwin* | mingw* | pw32*)
19434 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19435 # as there is no search path for DLLs.
19436 hardcode_libdir_flag_spec_F77='-L$libdir'
19437 allow_undefined_flag_F77=unsupported
19438 always_export_symbols_F77=no
19439 enable_shared_with_static_runtimes_F77=yes
19440 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19442 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19443 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19444 # If the export-symbols file already is a .def file (1st line
19445 # is EXPORTS), use it as is; otherwise, prepend...
19446 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19447 cp $export_symbols $output_objdir/$soname.def;
19449 echo EXPORTS > $output_objdir/$soname.def;
19450 cat $export_symbols >> $output_objdir/$soname.def;
19452 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19459 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19460 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19463 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19464 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19469 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19473 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19474 *** create shared libraries on Solaris systems. Therefore, libtool
19475 *** is disabling shared libraries support. We urge you to upgrade GNU
19476 *** binutils to release 2.9.1 or newer. Another option is to modify
19477 *** your PATH or compiler configuration so that the native linker is
19478 *** used, and then restart.
19481 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19482 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19483 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19490 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19492 hardcode_direct_F77=yes
19493 hardcode_shlibpath_var_F77=no
19497 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19498 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19499 archive_cmds_F77="$tmp_archive_cmds"
19500 supports_anon_versioning=no
19501 case `$LD -v 2>/dev/null` in
19502 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19503 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19504 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19505 *\ 2.11.*) ;; # other 2.11 versions
19506 *) supports_anon_versioning=yes ;;
19508 if test $supports_anon_versioning = yes; then
19509 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19510 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19511 $echo "local: *; };" >> $output_objdir/$libname.ver~
19512 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19514 archive_expsym_cmds_F77="$tmp_archive_cmds"
19522 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19523 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19524 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19531 if test "$ld_shlibs_F77" = yes; then
19532 runpath_var=LD_RUN_PATH
19533 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19534 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19535 # ancient GNU ld didn't support --whole-archive et. al.
19536 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19537 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19539 whole_archive_flag_spec_F77=
19543 # PORTME fill in a description of your system's linker (not GNU ld)
19546 allow_undefined_flag_F77=unsupported
19547 always_export_symbols_F77=yes
19548 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'
19549 # Note: this linker hardcodes the directories in LIBPATH if there
19550 # are no directories specified by -L.
19551 hardcode_minus_L_F77=yes
19552 if test "$GCC" = yes && test -z "$link_static_flag"; then
19553 # Neither direct hardcoding nor static linking is supported with a
19555 hardcode_direct_F77=unsupported
19560 if test "$host_cpu" = ia64; then
19561 # On IA64, the linker does run time linking by default, so we don't
19562 # have to do anything special.
19563 aix_use_runtimelinking=no
19564 exp_sym_flag='-Bexport'
19567 # If we're using GNU nm, then we don't want the "-C" option.
19568 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19569 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19570 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'
19572 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'
19574 aix_use_runtimelinking=no
19576 # Test if we are trying to use run time linking or normal
19577 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19578 # need to do runtime linking.
19579 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19580 for ld_flag in $LDFLAGS; do
19581 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19582 aix_use_runtimelinking=yes
19588 exp_sym_flag='-bexport'
19589 no_entry_flag='-bnoentry'
19592 # When large executables or shared objects are built, AIX ld can
19593 # have problems creating the table of contents. If linking a library
19594 # or program results in "error TOC overflow" add -mminimal-toc to
19595 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19596 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19598 archive_cmds_F77=''
19599 hardcode_direct_F77=yes
19600 hardcode_libdir_separator_F77=':'
19601 link_all_deplibs_F77=yes
19603 if test "$GCC" = yes; then
19604 case $host_os in aix4.012|aix4.012.*)
19605 # We only want to do this on AIX 4.2 and lower, the check
19606 # below for broken collect2 doesn't work under 4.3+
19607 collect2name=`${CC} -print-prog-name=collect2`
19608 if test -f "$collect2name" && \
19609 strings "$collect2name" | grep resolve_lib_name >/dev/null
19611 # We have reworked collect2
19612 hardcode_direct_F77=yes
19614 # We have old collect2
19615 hardcode_direct_F77=unsupported
19616 # It fails to find uninstalled libraries when the uninstalled
19617 # path is not listed in the libpath. Setting hardcode_minus_L
19618 # to unsupported forces relinking
19619 hardcode_minus_L_F77=yes
19620 hardcode_libdir_flag_spec_F77='-L$libdir'
19621 hardcode_libdir_separator_F77=
19624 shared_flag='-shared'
19627 if test "$host_cpu" = ia64; then
19628 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19629 # chokes on -Wl,-G. The following line is correct:
19632 if test "$aix_use_runtimelinking" = yes; then
19633 shared_flag='${wl}-G'
19635 shared_flag='${wl}-bM:SRE'
19640 # It seems that -bexpall does not export symbols beginning with
19641 # underscore (_), so it is better to generate a list of symbols to export.
19642 always_export_symbols_F77=yes
19643 if test "$aix_use_runtimelinking" = yes; then
19644 # Warning - without using the other runtime loading flags (-brtl),
19645 # -berok will link without error, but may produce a broken library.
19646 allow_undefined_flag_F77='-berok'
19647 # Determine the default libpath from the value encoded in an empty executable.
19648 cat >conftest.$ac_ext <<_ACEOF
19653 rm -f conftest.$ac_objext conftest$ac_exeext
19654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19655 (eval $ac_link) 2>conftest.er1
19657 grep -v '^ *+' conftest.er1 >conftest.err
19659 cat conftest.err >&5
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); } &&
19662 { ac_try='test -z "$ac_f77_werror_flag"
19663 || test ! -s conftest.err'
19664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665 (eval $ac_try) 2>&5
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); }; } &&
19669 { ac_try='test -s conftest$ac_exeext'
19670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671 (eval $ac_try) 2>&5
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; }; then
19676 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19678 # Check for a 64-bit object if we didn't find anything.
19679 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; }
19682 echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19686 rm -f conftest.err conftest.$ac_objext \
19687 conftest$ac_exeext conftest.$ac_ext
19688 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19690 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19691 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"
19693 if test "$host_cpu" = ia64; then
19694 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19695 allow_undefined_flag_F77="-z nodefs"
19696 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"
19698 # Determine the default libpath from the value encoded in an empty executable.
19699 cat >conftest.$ac_ext <<_ACEOF
19704 rm -f conftest.$ac_objext conftest$ac_exeext
19705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19706 (eval $ac_link) 2>conftest.er1
19708 grep -v '^ *+' conftest.er1 >conftest.err
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } &&
19713 { ac_try='test -z "$ac_f77_werror_flag"
19714 || test ! -s conftest.err'
19715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716 (eval $ac_try) 2>&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; } &&
19720 { ac_try='test -s conftest$ac_exeext'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; }; then
19727 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19729 # Check for a 64-bit object if we didn't find anything.
19730 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; }
19733 echo "$as_me: failed program was:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19737 rm -f conftest.err conftest.$ac_objext \
19738 conftest$ac_exeext conftest.$ac_ext
19739 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19741 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19742 # Warning - without using the other run time loading flags,
19743 # -berok will link without error, but may produce a broken library.
19744 no_undefined_flag_F77=' ${wl}-bernotok'
19745 allow_undefined_flag_F77=' ${wl}-berok'
19746 # -bexpall does not export symbols beginning with underscore (_)
19747 always_export_symbols_F77=yes
19748 # Exported symbols can be pulled into shared objects from archives
19749 whole_archive_flag_spec_F77=' '
19750 archive_cmds_need_lc_F77=yes
19751 # This is similar to how AIX traditionally builds it's shared libraries.
19752 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'
19758 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)'
19759 hardcode_libdir_flag_spec_F77='-L$libdir'
19760 hardcode_minus_L_F77=yes
19761 # see comment about different semantics on the GNU ld section
19766 export_dynamic_flag_spec_F77=-rdynamic
19769 cygwin* | mingw* | pw32*)
19770 # When not using gcc, we currently assume that we are using
19771 # Microsoft Visual C++.
19772 # hardcode_libdir_flag_spec is actually meaningless, as there is
19773 # no search path for DLLs.
19774 hardcode_libdir_flag_spec_F77=' '
19775 allow_undefined_flag_F77=unsupported
19776 # Tell ltmain to make .lib files, not .a files.
19778 # Tell ltmain to make .dll files, not .so files.
19780 # FIXME: Setting linknames here is a bad hack.
19781 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19782 # The linker will automatically build a .lib file if we build a DLL.
19783 old_archive_From_new_cmds_F77='true'
19784 # FIXME: Should let the user specify the lib program.
19785 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19786 fix_srcfile_path='`cygpath -w "$srcfile"`'
19787 enable_shared_with_static_runtimes_F77=yes
19790 darwin* | rhapsody*)
19792 rhapsody* | darwin1.[012])
19793 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19796 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19797 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19799 case ${MACOSX_DEPLOYMENT_TARGET} in
19801 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19804 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19810 archive_cmds_need_lc_F77=no
19811 hardcode_direct_F77=no
19812 hardcode_automatic_F77=yes
19813 hardcode_shlibpath_var_F77=unsupported
19814 whole_archive_flag_spec_F77=''
19815 link_all_deplibs_F77=yes
19816 if test "$GCC" = yes ; then
19817 output_verbose_link_cmd='echo'
19818 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19819 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19820 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19821 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}'
19822 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}'
19824 case "$cc_basename" in
19826 output_verbose_link_cmd='echo'
19827 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19828 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19829 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19830 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}'
19831 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}'
19841 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19842 hardcode_libdir_flag_spec_F77='-L$libdir'
19843 hardcode_shlibpath_var_F77=no
19850 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19851 # support. Future versions do this automatically, but an explicit c++rt0.o
19852 # does not break anything, and helps significantly (at the cost of a little
19855 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19856 hardcode_libdir_flag_spec_F77='-R$libdir'
19857 hardcode_direct_F77=yes
19858 hardcode_shlibpath_var_F77=no
19861 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19863 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19864 hardcode_direct_F77=yes
19865 hardcode_minus_L_F77=yes
19866 hardcode_shlibpath_var_F77=no
19869 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19870 freebsd* | kfreebsd*-gnu)
19871 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19872 hardcode_libdir_flag_spec_F77='-R$libdir'
19873 hardcode_direct_F77=yes
19874 hardcode_shlibpath_var_F77=no
19878 if test "$GCC" = yes; then
19879 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'
19881 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'
19883 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19884 hardcode_libdir_separator_F77=:
19885 hardcode_direct_F77=yes
19887 # hardcode_minus_L: Not really in the search PATH,
19888 # but as the default location of the library.
19889 hardcode_minus_L_F77=yes
19890 export_dynamic_flag_spec_F77='${wl}-E'
19894 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19895 case "$host_cpu" in
19897 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19900 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19904 case "$host_cpu" in
19906 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19909 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19913 if test "$with_gnu_ld" = no; then
19914 case "$host_cpu" in
19916 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19917 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19918 hardcode_libdir_separator_F77=:
19919 hardcode_direct_F77=no
19920 hardcode_shlibpath_var_F77=no
19923 hardcode_libdir_flag_spec_F77='-L$libdir'
19924 hardcode_direct_F77=no
19925 hardcode_shlibpath_var_F77=no
19927 # hardcode_minus_L: Not really in the search PATH,
19928 # but as the default location of the library.
19929 hardcode_minus_L_F77=yes
19932 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19933 hardcode_libdir_separator_F77=:
19934 hardcode_direct_F77=yes
19935 export_dynamic_flag_spec_F77='${wl}-E'
19937 # hardcode_minus_L: Not really in the search PATH,
19938 # but as the default location of the library.
19939 hardcode_minus_L_F77=yes
19945 irix5* | irix6* | nonstopux*)
19946 if test "$GCC" = yes; then
19947 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'
19949 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'
19950 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19952 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19953 hardcode_libdir_separator_F77=:
19954 link_all_deplibs_F77=yes
19958 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19959 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19961 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19963 hardcode_libdir_flag_spec_F77='-R$libdir'
19964 hardcode_direct_F77=yes
19965 hardcode_shlibpath_var_F77=no
19969 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19970 hardcode_direct_F77=yes
19971 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19972 hardcode_libdir_separator_F77=:
19973 hardcode_shlibpath_var_F77=no
19977 hardcode_direct_F77=yes
19978 hardcode_shlibpath_var_F77=no
19979 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19980 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19981 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19982 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19983 export_dynamic_flag_spec_F77='${wl}-E'
19986 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19987 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19988 hardcode_libdir_flag_spec_F77='-R$libdir'
19991 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19992 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19999 hardcode_libdir_flag_spec_F77='-L$libdir'
20000 hardcode_minus_L_F77=yes
20001 allow_undefined_flag_F77=unsupported
20002 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'
20003 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20007 if test "$GCC" = yes; then
20008 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20009 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'
20011 allow_undefined_flag_F77=' -expect_unresolved \*'
20012 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'
20014 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20015 hardcode_libdir_separator_F77=:
20018 osf4* | osf5*) # as osf3* with the addition of -msym flag
20019 if test "$GCC" = yes; then
20020 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20021 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'
20022 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20024 allow_undefined_flag_F77=' -expect_unresolved \*'
20025 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'
20026 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~
20027 $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'
20029 # Both c and cxx compiler support -rpath directly
20030 hardcode_libdir_flag_spec_F77='-rpath $libdir'
20032 hardcode_libdir_separator_F77=:
20036 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20037 hardcode_shlibpath_var_F77=no
20038 export_dynamic_flag_spec_F77='${wl}-Bexport'
20039 runpath_var=LD_RUN_PATH
20040 hardcode_runpath_var=yes
20044 no_undefined_flag_F77=' -z text'
20045 if test "$GCC" = yes; then
20046 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20047 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20048 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20050 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20051 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20052 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20054 hardcode_libdir_flag_spec_F77='-R$libdir'
20055 hardcode_shlibpath_var_F77=no
20057 solaris2.[0-5] | solaris2.[0-5].*) ;;
20058 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20059 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20061 link_all_deplibs_F77=yes
20065 if test "x$host_vendor" = xsequent; then
20066 # Use $CC to link under sequent, because it throws in some extra .o
20067 # files that make .init and .fini sections work.
20068 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20070 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20072 hardcode_libdir_flag_spec_F77='-L$libdir'
20073 hardcode_direct_F77=yes
20074 hardcode_minus_L_F77=yes
20075 hardcode_shlibpath_var_F77=no
20079 case $host_vendor in
20081 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20082 hardcode_direct_F77=yes # is this really true???
20085 ## LD is ld it makes a PLAMLIB
20086 ## CC just makes a GrossModule.
20087 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20088 reload_cmds_F77='$CC -r -o $output$reload_objs'
20089 hardcode_direct_F77=no
20092 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20093 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20096 runpath_var='LD_RUN_PATH'
20097 hardcode_shlibpath_var_F77=no
20101 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20102 hardcode_shlibpath_var_F77=no
20103 export_dynamic_flag_spec_F77='-Bexport'
20107 if test -d /usr/nec; then
20108 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20109 hardcode_shlibpath_var_F77=no
20110 runpath_var=LD_RUN_PATH
20111 hardcode_runpath_var=yes
20117 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20118 hardcode_direct_F77=yes
20119 hardcode_minus_L_F77=no
20120 hardcode_shlibpath_var_F77=no
20121 hardcode_runpath_var=yes
20122 runpath_var=LD_RUN_PATH
20125 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20126 no_undefined_flag_F77='${wl}-z ${wl}text'
20127 if test "$GCC" = yes; then
20128 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20130 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20132 runpath_var='LD_RUN_PATH'
20133 hardcode_shlibpath_var_F77=no
20137 no_undefined_flag_F77=' -z text'
20138 # $CC -shared without GNU ld will not create a library from C++
20139 # object files and a static libstdc++, better avoid it by now
20140 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20141 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20142 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20143 hardcode_libdir_flag_spec_F77=
20144 hardcode_shlibpath_var_F77=no
20145 runpath_var='LD_RUN_PATH'
20149 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20150 hardcode_libdir_flag_spec_F77='-L$libdir'
20151 hardcode_shlibpath_var_F77=no
20160 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20161 echo "${ECHO_T}$ld_shlibs_F77" >&6
20162 test "$ld_shlibs_F77" = no && can_build_shared=no
20164 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20165 if test "$GCC" = yes; then
20166 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20170 # Do we need to explicitly link libc?
20172 case "x$archive_cmds_need_lc_F77" in
20174 # Assume -lc should be added
20175 archive_cmds_need_lc_F77=yes
20177 if test "$enable_shared" = yes && test "$GCC" = yes; then
20178 case $archive_cmds_F77 in
20180 # FIXME: we may have to deal with multi-command sequences.
20183 # Test whether the compiler implicitly links with -lc since on some
20184 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20185 # to ld, don't add -lc before -lgcc.
20186 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20187 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20189 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20192 (eval $ac_compile) 2>&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } 2>conftest.err; then
20198 libobjs=conftest.$ac_objext
20200 wl=$lt_prog_compiler_wl_F77
20206 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20207 allow_undefined_flag_F77=
20208 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20209 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }
20214 archive_cmds_need_lc_F77=no
20216 archive_cmds_need_lc_F77=yes
20218 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20220 cat conftest.err 1>&5
20223 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20224 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20231 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20232 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20233 library_names_spec=
20234 libname_spec='lib$name'
20238 postuninstall_cmds=
20242 shlibpath_overrides_runpath=unknown
20244 dynamic_linker="$host_os ld.so"
20245 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20246 if test "$GCC" = yes; then
20247 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20248 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20249 # if the path contains ";" then we assume it to be the separator
20250 # otherwise default to the standard path separator (i.e. ":") - it is
20251 # assumed that no part of a normal pathname contains ";" but that should
20252 # okay in the real world where ";" in dirpaths is itself problematic.
20253 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20255 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20258 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20260 need_lib_prefix=unknown
20261 hardcode_into_libs=no
20263 # when you set need_version to no, make sure it does not cause -set_version
20264 # flags to be left without arguments
20265 need_version=unknown
20270 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20271 shlibpath_var=LIBPATH
20273 # AIX 3 has no versioning support, so we append a major version to the name.
20274 soname_spec='${libname}${release}${shared_ext}$major'
20281 hardcode_into_libs=yes
20282 if test "$host_cpu" = ia64; then
20283 # AIX 5 supports IA64
20284 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20285 shlibpath_var=LD_LIBRARY_PATH
20287 # With GCC up to 2.95.x, collect2 would create an import file
20288 # for dependence libraries. The import file would start with
20289 # the line `#! .'. This would cause the generated library to
20290 # depend on `.', always an invalid library. This was fixed in
20291 # development snapshots of GCC prior to 3.0.
20293 aix4 | aix4.[01] | aix4.[01].*)
20294 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20296 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20299 can_build_shared=no
20303 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20304 # soname into executable. Probably we can add versioning support to
20305 # collect2, so additional links can be useful in future.
20306 if test "$aix_use_runtimelinking" = yes; then
20307 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20308 # instead of lib<name>.a to let people know that these are not
20309 # typical AIX shared libraries.
20310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20312 # We preserve .a as extension for shared libraries through AIX4.2
20313 # and later when we are not doing run time linking.
20314 library_names_spec='${libname}${release}.a $libname.a'
20315 soname_spec='${libname}${release}${shared_ext}$major'
20317 shlibpath_var=LIBPATH
20322 library_names_spec='$libname.ixlibrary $libname.a'
20323 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20324 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'
20328 library_names_spec='${libname}${shared_ext}'
20329 dynamic_linker="$host_os ld.so"
20330 shlibpath_var=LIBRARY_PATH
20336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20337 soname_spec='${libname}${release}${shared_ext}$major'
20338 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20339 shlibpath_var=LD_LIBRARY_PATH
20340 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20341 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20342 # the default ld.so.conf also contains /usr/contrib/lib and
20343 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20344 # libtool to hard-code these into programs
20347 cygwin* | mingw* | pw32*)
20348 version_type=windows
20353 case $GCC,$host_os in
20354 yes,cygwin* | yes,mingw* | yes,pw32*)
20355 library_names_spec='$libname.dll.a'
20356 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20357 postinstall_cmds='base_file=`basename \${file}`~
20358 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20359 dldir=$destdir/`dirname \$dlpath`~
20360 test -d \$dldir || mkdir -p \$dldir~
20361 $install_prog $dir/$dlname \$dldir/$dlname'
20362 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20363 dlpath=$dir/\$dldll~
20365 shlibpath_overrides_runpath=yes
20369 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20370 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20371 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20374 # MinGW DLLs use traditional 'lib' prefix
20375 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20376 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20377 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20378 # It is most probably a Windows format PATH printed by
20379 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20380 # path with ; separators, and with drive letters. We can handle the
20381 # drive letters (cygwin fileutils understands them), so leave them,
20382 # especially as we might pass files found there to a mingw objdump,
20383 # which wouldn't understand a cygwinified path. Ahh.
20384 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20386 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20390 # pw32 DLLs use 'pw' prefix rather than 'lib'
20391 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20397 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20400 dynamic_linker='Win32 ld.exe'
20401 # FIXME: first we should search . and the directory the executable is in
20405 darwin* | rhapsody*)
20406 dynamic_linker="$host_os dyld"
20407 version_type=darwin
20410 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20411 soname_spec='${libname}${release}${major}$shared_ext'
20412 shlibpath_overrides_runpath=yes
20413 shlibpath_var=DYLD_LIBRARY_PATH
20414 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20415 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20416 if test "$GCC" = yes; then
20417 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"`
20419 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20421 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20429 soname_spec='${libname}${release}${shared_ext}$major'
20430 shlibpath_var=LD_LIBRARY_PATH
20441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20442 soname_spec='${libname}${release}${shared_ext}$major'
20443 shlibpath_var=LD_LIBRARY_PATH
20444 shlibpath_overrides_runpath=no
20445 hardcode_into_libs=yes
20446 dynamic_linker='GNU ld.so'
20450 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20451 version_type=freebsd-$objformat
20452 case $version_type in
20454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20459 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20463 shlibpath_var=LD_LIBRARY_PATH
20466 shlibpath_overrides_runpath=yes
20468 freebsd3.01* | freebsdelf3.01*)
20469 shlibpath_overrides_runpath=yes
20470 hardcode_into_libs=yes
20473 shlibpath_overrides_runpath=no
20474 hardcode_into_libs=yes
20483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20484 soname_spec='${libname}${release}${shared_ext}$major'
20485 shlibpath_var=LD_LIBRARY_PATH
20486 hardcode_into_libs=yes
20489 hpux9* | hpux10* | hpux11*)
20490 # Give a soname corresponding to the major version so that dld.sl refuses to
20491 # link against other versions.
20495 case "$host_cpu" in
20498 hardcode_into_libs=yes
20499 dynamic_linker="$host_os dld.so"
20500 shlibpath_var=LD_LIBRARY_PATH
20501 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20503 soname_spec='${libname}${release}${shared_ext}$major'
20504 if test "X$HPUX_IA64_MODE" = X32; then
20505 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20507 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20509 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20513 hardcode_into_libs=yes
20514 dynamic_linker="$host_os dld.sl"
20515 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20516 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20518 soname_spec='${libname}${release}${shared_ext}$major'
20519 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20520 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20524 dynamic_linker="$host_os dld.sl"
20525 shlibpath_var=SHLIB_PATH
20526 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20528 soname_spec='${libname}${release}${shared_ext}$major'
20531 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20532 postinstall_cmds='chmod 555 $lib'
20535 irix5* | irix6* | nonstopux*)
20537 nonstopux*) version_type=nonstopux ;;
20539 if test "$lt_cv_prog_gnu_ld" = yes; then
20547 soname_spec='${libname}${release}${shared_ext}$major'
20548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20550 irix5* | nonstopux*)
20551 libsuff= shlibsuff=
20554 case $LD in # libtool.m4 will add one of these switches to LD
20555 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20556 libsuff= shlibsuff= libmagic=32-bit;;
20557 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20558 libsuff=32 shlibsuff=N32 libmagic=N32;;
20559 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20560 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20561 *) libsuff= shlibsuff= libmagic=never-match;;
20565 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20566 shlibpath_overrides_runpath=no
20567 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20568 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20569 hardcode_into_libs=yes
20572 # No shared lib support for Linux oldld, aout, or coff.
20573 linux*oldld* | linux*aout* | linux*coff*)
20577 # This must be Linux ELF.
20582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20583 soname_spec='${libname}${release}${shared_ext}$major'
20584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20585 shlibpath_var=LD_LIBRARY_PATH
20586 shlibpath_overrides_runpath=no
20587 # This implies no fast_install, which is unacceptable.
20588 # Some rework will be needed to allow for fast_install
20589 # before this can be enabled.
20590 hardcode_into_libs=yes
20592 # Append ld.so.conf contents to the search path
20593 if test -f /etc/ld.so.conf; then
20594 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20595 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20598 # We used to test for /lib/ld.so.1 and disable shared libraries on
20599 # powerpc, because MkLinux only supported shared libraries with the
20600 # GNU dynamic linker. Since this was broken with cross compilers,
20601 # most powerpc-linux boxes support dynamic linking these days and
20602 # people can always --disable-shared, the test was removed, and we
20603 # assume the GNU/Linux dynamic linker is in use.
20604 dynamic_linker='GNU/Linux ld.so'
20611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20612 soname_spec='${libname}${release}${shared_ext}$major'
20613 shlibpath_var=LD_LIBRARY_PATH
20614 shlibpath_overrides_runpath=no
20615 hardcode_into_libs=yes
20616 dynamic_linker='GNU ld.so'
20623 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20626 dynamic_linker='NetBSD (a.out) ld.so'
20628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20629 soname_spec='${libname}${release}${shared_ext}$major'
20630 dynamic_linker='NetBSD ld.elf_so'
20632 shlibpath_var=LD_LIBRARY_PATH
20633 shlibpath_overrides_runpath=yes
20634 hardcode_into_libs=yes
20639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20640 shlibpath_var=LD_LIBRARY_PATH
20641 shlibpath_overrides_runpath=yes
20648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20649 soname_spec='${libname}${release}${shared_ext}$major'
20650 shlibpath_var=LD_LIBRARY_PATH
20651 shlibpath_overrides_runpath=yes
20658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20660 shlibpath_var=LD_LIBRARY_PATH
20661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20663 openbsd2.[89] | openbsd2.[89].*)
20664 shlibpath_overrides_runpath=no
20667 shlibpath_overrides_runpath=yes
20671 shlibpath_overrides_runpath=yes
20676 libname_spec='$name'
20679 library_names_spec='$libname${shared_ext} $libname.a'
20680 dynamic_linker='OS/2 ld.exe'
20681 shlibpath_var=LIBPATH
20684 osf3* | osf4* | osf5*)
20688 soname_spec='${libname}${release}${shared_ext}$major'
20689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20690 shlibpath_var=LD_LIBRARY_PATH
20691 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20692 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20697 soname_spec='${libname}${release}${shared_ext}$major'
20698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20699 shlibpath_var=LD_LIBRARY_PATH
20706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20707 soname_spec='${libname}${release}${shared_ext}$major'
20708 shlibpath_var=LD_LIBRARY_PATH
20709 shlibpath_overrides_runpath=yes
20710 hardcode_into_libs=yes
20711 # ldd complains unless libraries are executable
20712 postinstall_cmds='chmod +x $lib'
20717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20718 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20719 shlibpath_var=LD_LIBRARY_PATH
20720 shlibpath_overrides_runpath=yes
20721 if test "$with_gnu_ld" = yes; then
20727 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20730 soname_spec='${libname}${release}${shared_ext}$major'
20731 shlibpath_var=LD_LIBRARY_PATH
20732 case $host_vendor in
20734 shlibpath_overrides_runpath=no
20736 export_dynamic_flag_spec='${wl}-Blargedynsym'
20737 runpath_var=LD_RUN_PATH
20745 shlibpath_overrides_runpath=no
20746 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20752 if test -d /usr/nec ;then
20754 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20755 soname_spec='$libname${shared_ext}.$major'
20756 shlibpath_var=LD_LIBRARY_PATH
20762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20763 soname_spec='${libname}${release}${shared_ext}$major'
20764 shlibpath_var=LD_LIBRARY_PATH
20771 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20772 echo "${ECHO_T}$dynamic_linker" >&6
20773 test "$dynamic_linker" = no && can_build_shared=no
20775 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20776 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20777 hardcode_action_F77=
20778 if test -n "$hardcode_libdir_flag_spec_F77" || \
20779 test -n "$runpath_var_F77" || \
20780 test "X$hardcode_automatic_F77" = "Xyes" ; then
20782 # We can hardcode non-existant directories.
20783 if test "$hardcode_direct_F77" != no &&
20784 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20785 # have to relink, otherwise we might link with an installed library
20786 # when we should be linking with a yet-to-be-installed one
20787 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20788 test "$hardcode_minus_L_F77" != no; then
20789 # Linking always hardcodes the temporary library directory.
20790 hardcode_action_F77=relink
20792 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20793 hardcode_action_F77=immediate
20796 # We cannot hardcode anything, or else we can only hardcode existing
20798 hardcode_action_F77=unsupported
20800 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20801 echo "${ECHO_T}$hardcode_action_F77" >&6
20803 if test "$hardcode_action_F77" = relink; then
20804 # Fast installation is not supported
20805 enable_fast_install=no
20806 elif test "$shlibpath_overrides_runpath" = yes ||
20807 test "$enable_shared" = no; then
20808 # Fast installation is not necessary
20809 enable_fast_install=needless
20814 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20815 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20816 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20817 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20818 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20819 echo "$as_me:$LINENO: result: yes" >&5
20820 echo "${ECHO_T}yes" >&6
20822 # FIXME - insert some real tests, host_os isn't really good enough
20825 if test -n "$STRIP" ; then
20826 striplib="$STRIP -x"
20827 echo "$as_me:$LINENO: result: yes" >&5
20828 echo "${ECHO_T}yes" >&6
20830 echo "$as_me:$LINENO: result: no" >&5
20831 echo "${ECHO_T}no" >&6
20835 echo "$as_me:$LINENO: result: no" >&5
20836 echo "${ECHO_T}no" >&6
20843 # The else clause should only fire when bootstrapping the
20844 # libtool distribution, otherwise you forgot to ship ltmain.sh
20845 # with your package, and you will get complaints that there are
20846 # no rules to generate ltmain.sh.
20847 if test -f "$ltmain"; then
20848 # See if we are running on zsh, and set the options which allow our commands through
20849 # without removal of \ escapes.
20850 if test -n "${ZSH_VERSION+set}" ; then
20851 setopt NO_GLOB_SUBST
20853 # Now quote all the things that may contain metacharacters while being
20854 # careful not to overquote the AC_SUBSTed values. We take copies of the
20855 # variables and quote the copies for generation of the libtool script.
20856 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20858 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20859 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20860 deplibs_check_method reload_flag reload_cmds need_locks \
20861 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20862 lt_cv_sys_global_symbol_to_c_name_address \
20863 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20864 old_postinstall_cmds old_postuninstall_cmds \
20868 lt_prog_compiler_wl_F77 \
20869 lt_prog_compiler_pic_F77 \
20870 lt_prog_compiler_static_F77 \
20871 lt_prog_compiler_no_builtin_flag_F77 \
20872 export_dynamic_flag_spec_F77 \
20873 thread_safe_flag_spec_F77 \
20874 whole_archive_flag_spec_F77 \
20875 enable_shared_with_static_runtimes_F77 \
20876 old_archive_cmds_F77 \
20877 old_archive_from_new_cmds_F77 \
20878 predep_objects_F77 \
20879 postdep_objects_F77 \
20882 compiler_lib_search_path_F77 \
20884 archive_expsym_cmds_F77 \
20885 postinstall_cmds_F77 \
20886 postuninstall_cmds_F77 \
20887 old_archive_from_expsyms_cmds_F77 \
20888 allow_undefined_flag_F77 \
20889 no_undefined_flag_F77 \
20890 export_symbols_cmds_F77 \
20891 hardcode_libdir_flag_spec_F77 \
20892 hardcode_libdir_flag_spec_ld_F77 \
20893 hardcode_libdir_separator_F77 \
20894 hardcode_automatic_F77 \
20896 module_expsym_cmds_F77 \
20897 lt_cv_prog_compiler_c_o_F77 \
20898 exclude_expsyms_F77 \
20899 include_expsyms_F77; do
20902 old_archive_cmds_F77 | \
20903 old_archive_from_new_cmds_F77 | \
20904 archive_cmds_F77 | \
20905 archive_expsym_cmds_F77 | \
20906 module_cmds_F77 | \
20907 module_expsym_cmds_F77 | \
20908 old_archive_from_expsyms_cmds_F77 | \
20909 export_symbols_cmds_F77 | \
20910 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20911 postinstall_cmds | postuninstall_cmds | \
20912 old_postinstall_cmds | old_postuninstall_cmds | \
20913 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20914 # Double-quote double-evaled strings.
20915 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20918 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20924 *'\$0 --fallback-echo"')
20925 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20931 cat <<__EOF__ >> "$cfgfile"
20932 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20934 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20936 # Shell to use when invoking shell scripts.
20939 # Whether or not to build shared libraries.
20940 build_libtool_libs=$enable_shared
20942 # Whether or not to build static libraries.
20943 build_old_libs=$enable_static
20945 # Whether or not to add -lc for building shared libraries.
20946 build_libtool_need_lc=$archive_cmds_need_lc_F77
20948 # Whether or not to disallow shared libs when runtime libs are static
20949 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20951 # Whether or not to optimize for fast installation.
20952 fast_install=$enable_fast_install
20955 host_alias=$host_alias
20958 # An echo program that does not interpret backslashes.
20963 AR_FLAGS=$lt_AR_FLAGS
20968 # A language-specific compiler.
20969 CC=$lt_compiler_F77
20971 # Is the compiler the GNU C compiler?
20977 # The linker used to build libraries.
20980 # Whether we need hard or soft links.
20983 # A BSD-compatible nm program.
20986 # A symbol stripping program
20989 # Used to examine libraries when file_magic_cmd begins "file"
20990 MAGIC_CMD=$MAGIC_CMD
20992 # Used on cygwin: DLL creation program.
20995 # Used on cygwin: object dumper.
20998 # Used on cygwin: assembler.
21001 # The name of the directory that contains temporary libtool files.
21004 # How to create reloadable object files.
21005 reload_flag=$lt_reload_flag
21006 reload_cmds=$lt_reload_cmds
21008 # How to pass a linker flag through the compiler.
21009 wl=$lt_lt_prog_compiler_wl_F77
21011 # Object file suffix (normally "o").
21012 objext="$ac_objext"
21014 # Old archive suffix (normally "a").
21017 # Shared library suffix (normally ".so").
21018 shrext_cmds='$shrext_cmds'
21020 # Executable file suffix (normally "").
21023 # Additional compiler flags for building library objects.
21024 pic_flag=$lt_lt_prog_compiler_pic_F77
21027 # What is the maximum length of a command?
21028 max_cmd_len=$lt_cv_sys_max_cmd_len
21030 # Does compiler simultaneously support -c and -o options?
21031 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21033 # Must we lock files when doing compilation ?
21034 need_locks=$lt_need_locks
21036 # Do we need the lib prefix for modules?
21037 need_lib_prefix=$need_lib_prefix
21039 # Do we need a version for libraries?
21040 need_version=$need_version
21042 # Whether dlopen is supported.
21043 dlopen_support=$enable_dlopen
21045 # Whether dlopen of programs is supported.
21046 dlopen_self=$enable_dlopen_self
21048 # Whether dlopen of statically linked programs is supported.
21049 dlopen_self_static=$enable_dlopen_self_static
21051 # Compiler flag to prevent dynamic linking.
21052 link_static_flag=$lt_lt_prog_compiler_static_F77
21054 # Compiler flag to turn off builtin functions.
21055 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21057 # Compiler flag to allow reflexive dlopens.
21058 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21060 # Compiler flag to generate shared objects directly from archives.
21061 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21063 # Compiler flag to generate thread-safe objects.
21064 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21066 # Library versioning type.
21067 version_type=$version_type
21069 # Format of library name prefix.
21070 libname_spec=$lt_libname_spec
21072 # List of archive names. First name is the real one, the rest are links.
21073 # The last name is the one that the linker finds with -lNAME.
21074 library_names_spec=$lt_library_names_spec
21076 # The coded name of the library, if different from the real name.
21077 soname_spec=$lt_soname_spec
21079 # Commands used to build and install an old-style archive.
21081 old_archive_cmds=$lt_old_archive_cmds_F77
21082 old_postinstall_cmds=$lt_old_postinstall_cmds
21083 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21085 # Create an old-style archive from a shared archive.
21086 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21088 # Create a temporary old-style archive to link instead of a shared archive.
21089 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21091 # Commands used to build and install a shared archive.
21092 archive_cmds=$lt_archive_cmds_F77
21093 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21094 postinstall_cmds=$lt_postinstall_cmds
21095 postuninstall_cmds=$lt_postuninstall_cmds
21097 # Commands used to build a loadable module (assumed same as above if empty)
21098 module_cmds=$lt_module_cmds_F77
21099 module_expsym_cmds=$lt_module_expsym_cmds_F77
21101 # Commands to strip libraries.
21102 old_striplib=$lt_old_striplib
21103 striplib=$lt_striplib
21105 # Dependencies to place before the objects being linked to create a
21107 predep_objects=$lt_predep_objects_F77
21109 # Dependencies to place after the objects being linked to create a
21111 postdep_objects=$lt_postdep_objects_F77
21113 # Dependencies to place before the objects being linked to create a
21115 predeps=$lt_predeps_F77
21117 # Dependencies to place after the objects being linked to create a
21119 postdeps=$lt_postdeps_F77
21121 # The library search path used internally by the compiler when linking
21122 # a shared library.
21123 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21125 # Method to check whether dependent libraries are shared objects.
21126 deplibs_check_method=$lt_deplibs_check_method
21128 # Command to use when deplibs_check_method == file_magic.
21129 file_magic_cmd=$lt_file_magic_cmd
21131 # Flag that allows shared libraries with undefined symbols to be built.
21132 allow_undefined_flag=$lt_allow_undefined_flag_F77
21134 # Flag that forces no undefined symbols.
21135 no_undefined_flag=$lt_no_undefined_flag_F77
21137 # Commands used to finish a libtool library installation in a directory.
21138 finish_cmds=$lt_finish_cmds
21140 # Same as above, but a single script fragment to be evaled but not shown.
21141 finish_eval=$lt_finish_eval
21143 # Take the output of nm and produce a listing of raw symbols and C names.
21144 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21146 # Transform the output of nm in a proper C declaration
21147 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21149 # Transform the output of nm in a C name address pair
21150 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21152 # This is the shared library runtime path variable.
21153 runpath_var=$runpath_var
21155 # This is the shared library path variable.
21156 shlibpath_var=$shlibpath_var
21158 # Is shlibpath searched before the hard-coded library search path?
21159 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21161 # How to hardcode a shared library path into an executable.
21162 hardcode_action=$hardcode_action_F77
21164 # Whether we should hardcode library paths into libraries.
21165 hardcode_into_libs=$hardcode_into_libs
21167 # Flag to hardcode \$libdir into a binary during linking.
21168 # This must work even if \$libdir does not exist.
21169 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21171 # If ld is used when linking, flag to hardcode \$libdir into
21172 # a binary during linking. This must work even if \$libdir does
21174 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21176 # Whether we need a single -rpath flag with a separated argument.
21177 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21179 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21180 # resulting binary.
21181 hardcode_direct=$hardcode_direct_F77
21183 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21184 # resulting binary.
21185 hardcode_minus_L=$hardcode_minus_L_F77
21187 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21188 # the resulting binary.
21189 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21191 # Set to yes if building a shared library automatically hardcodes DIR into the library
21192 # and all subsequent libraries and executables linked against it.
21193 hardcode_automatic=$hardcode_automatic_F77
21195 # Variables whose values should be saved in libtool wrapper scripts and
21196 # restored at relink time.
21197 variables_saved_for_relink="$variables_saved_for_relink"
21199 # Whether libtool must link a program against all its dependency libraries.
21200 link_all_deplibs=$link_all_deplibs_F77
21202 # Compile-time system search path for libraries
21203 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21205 # Run-time system search path for libraries
21206 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21208 # Fix the shell variable \$srcfile for the compiler.
21209 fix_srcfile_path="$fix_srcfile_path_F77"
21211 # Set to yes if exported symbols are required.
21212 always_export_symbols=$always_export_symbols_F77
21214 # The commands to list exported symbols.
21215 export_symbols_cmds=$lt_export_symbols_cmds_F77
21217 # The commands to extract the exported symbol list from a shared archive.
21218 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21220 # Symbols that should not be listed in the preloaded symbols.
21221 exclude_expsyms=$lt_exclude_expsyms_F77
21223 # Symbols that must always be exported.
21224 include_expsyms=$lt_include_expsyms_F77
21226 # ### END LIBTOOL TAG CONFIG: $tagname
21232 # If there is no Makefile yet, we rely on a make rule to execute
21233 # `config.status --recheck' to rerun these tests and create the
21234 # libtool script then.
21235 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21236 if test -f "$ltmain_in"; then
21237 test -f Makefile && make "$ltmain"
21243 ac_cpp='$CPP $CPPFLAGS'
21244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21256 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21258 ac_cpp='$CPP $CPPFLAGS'
21259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21264 # Source file extension for Java test sources.
21267 # Object file extension for compiled Java test sources.
21271 # Code to be used in simple compile tests
21272 lt_simple_compile_test_code="class foo {}\n"
21274 # Code to be used in simple link tests
21275 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21277 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21279 # If no C compiler was specified, use CC.
21282 # Allow CC to be a program name with arguments.
21286 # Allow CC to be a program name with arguments.
21292 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21293 archive_cmds_need_lc_GCJ=no
21296 lt_prog_compiler_no_builtin_flag_GCJ=
21298 if test "$GCC" = yes; then
21299 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21302 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21303 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21304 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21305 echo $ECHO_N "(cached) $ECHO_C" >&6
21307 lt_cv_prog_compiler_rtti_exceptions=no
21308 ac_outfile=conftest.$ac_objext
21309 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21310 lt_compiler_flag="-fno-rtti -fno-exceptions"
21311 # Insert the option either (1) after the last *FLAGS variable, or
21312 # (2) before a word containing "conftest.", or (3) at the end.
21313 # Note that $ac_compile itself does not contain backslashes and begins
21314 # with a dollar sign (not a hyphen), so the echo should work correctly.
21315 # The option is referenced via a variable to avoid confusing sed.
21316 lt_compile=`echo "$ac_compile" | $SED \
21317 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21319 -e 's:$: $lt_compiler_flag:'`
21320 (eval echo "\"\$as_me:21320: $lt_compile\"" >&5)
21321 (eval "$lt_compile" 2>conftest.err)
21323 cat conftest.err >&5
21324 echo "$as_me:21324: \$? = $ac_status" >&5
21325 if (exit $ac_status) && test -s "$ac_outfile"; then
21326 # The compiler can only warn and ignore the option if not recognized
21327 # So say no if there are warnings
21328 if test ! -s conftest.err; then
21329 lt_cv_prog_compiler_rtti_exceptions=yes
21335 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21336 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21338 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21339 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21346 lt_prog_compiler_wl_GCJ=
21347 lt_prog_compiler_pic_GCJ=
21348 lt_prog_compiler_static_GCJ=
21350 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21351 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21353 if test "$GCC" = yes; then
21354 lt_prog_compiler_wl_GCJ='-Wl,'
21355 lt_prog_compiler_static_GCJ='-static'
21359 # All AIX code is PIC.
21360 if test "$host_cpu" = ia64; then
21361 # AIX 5 now supports IA64 processor
21362 lt_prog_compiler_static_GCJ='-Bstatic'
21367 # FIXME: we need at least 68020 code to build shared libraries, but
21368 # adding the `-m68020' flag to GCC prevents building anything better,
21370 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21373 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21374 # PIC is the default for these OSes.
21377 mingw* | pw32* | os2*)
21378 # This hack is so that the source file can tell whether it is being
21379 # built for inclusion in a dll (and should export symbols for example).
21380 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21383 darwin* | rhapsody*)
21384 # PIC is the default on this platform
21385 # Common symbols not allowed in MH_DYLIB files
21386 lt_prog_compiler_pic_GCJ='-fno-common'
21390 # Just because we use GCC doesn't mean we suddenly get shared libraries
21391 # on systems that don't support them.
21392 lt_prog_compiler_can_build_shared_GCJ=no
21397 if test -d /usr/nec; then
21398 lt_prog_compiler_pic_GCJ=-Kconform_pic
21403 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21404 # not for PA HP-UX.
21405 case "$host_cpu" in
21410 lt_prog_compiler_pic_GCJ='-fPIC'
21416 lt_prog_compiler_pic_GCJ='-fPIC'
21420 # PORTME Check for flag to pass linker flags through the system compiler.
21423 lt_prog_compiler_wl_GCJ='-Wl,'
21424 if test "$host_cpu" = ia64; then
21425 # AIX 5 now supports IA64 processor
21426 lt_prog_compiler_static_GCJ='-Bstatic'
21428 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21432 # PIC is the default on this platform
21433 # Common symbols not allowed in MH_DYLIB files
21434 case "$cc_basename" in
21436 lt_prog_compiler_pic_GCJ='-qnocommon'
21437 lt_prog_compiler_wl_GCJ='-Wl,'
21442 mingw* | pw32* | os2*)
21443 # This hack is so that the source file can tell whether it is being
21444 # built for inclusion in a dll (and should export symbols for example).
21445 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21448 hpux9* | hpux10* | hpux11*)
21449 lt_prog_compiler_wl_GCJ='-Wl,'
21450 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21451 # not for PA HP-UX.
21452 case "$host_cpu" in
21457 lt_prog_compiler_pic_GCJ='+Z'
21460 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21461 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21464 irix5* | irix6* | nonstopux*)
21465 lt_prog_compiler_wl_GCJ='-Wl,'
21466 # PIC (with -KPIC) is the default.
21467 lt_prog_compiler_static_GCJ='-non_shared'
21471 lt_prog_compiler_pic_GCJ='-KPIC'
21472 lt_prog_compiler_static_GCJ='-Bstatic'
21478 lt_prog_compiler_wl_GCJ='-Wl,'
21479 lt_prog_compiler_pic_GCJ='-KPIC'
21480 lt_prog_compiler_static_GCJ='-static'
21483 lt_prog_compiler_wl_GCJ='-Wl,'
21484 # All Alpha code is PIC.
21485 lt_prog_compiler_static_GCJ='-non_shared'
21490 osf3* | osf4* | osf5*)
21491 lt_prog_compiler_wl_GCJ='-Wl,'
21492 # All OSF/1 code is PIC.
21493 lt_prog_compiler_static_GCJ='-non_shared'
21497 lt_prog_compiler_pic_GCJ='-Kpic'
21498 lt_prog_compiler_static_GCJ='-dn'
21502 lt_prog_compiler_wl_GCJ='-Wl,'
21503 lt_prog_compiler_pic_GCJ='-KPIC'
21504 lt_prog_compiler_static_GCJ='-Bstatic'
21508 lt_prog_compiler_wl_GCJ='-Qoption ld '
21509 lt_prog_compiler_pic_GCJ='-PIC'
21510 lt_prog_compiler_static_GCJ='-Bstatic'
21513 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21514 lt_prog_compiler_wl_GCJ='-Wl,'
21515 lt_prog_compiler_pic_GCJ='-KPIC'
21516 lt_prog_compiler_static_GCJ='-Bstatic'
21520 if test -d /usr/nec ;then
21521 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21522 lt_prog_compiler_static_GCJ='-Bstatic'
21527 lt_prog_compiler_pic_GCJ='-pic'
21528 lt_prog_compiler_static_GCJ='-Bstatic'
21532 lt_prog_compiler_can_build_shared_GCJ=no
21537 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21538 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21541 # Check to make sure the PIC flag actually works.
21543 if test -n "$lt_prog_compiler_pic_GCJ"; then
21545 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21546 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21547 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21548 echo $ECHO_N "(cached) $ECHO_C" >&6
21550 lt_prog_compiler_pic_works_GCJ=no
21551 ac_outfile=conftest.$ac_objext
21552 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21553 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21554 # Insert the option either (1) after the last *FLAGS variable, or
21555 # (2) before a word containing "conftest.", or (3) at the end.
21556 # Note that $ac_compile itself does not contain backslashes and begins
21557 # with a dollar sign (not a hyphen), so the echo should work correctly.
21558 # The option is referenced via a variable to avoid confusing sed.
21559 lt_compile=`echo "$ac_compile" | $SED \
21560 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21562 -e 's:$: $lt_compiler_flag:'`
21563 (eval echo "\"\$as_me:21563: $lt_compile\"" >&5)
21564 (eval "$lt_compile" 2>conftest.err)
21566 cat conftest.err >&5
21567 echo "$as_me:21567: \$? = $ac_status" >&5
21568 if (exit $ac_status) && test -s "$ac_outfile"; then
21569 # The compiler can only warn and ignore the option if not recognized
21570 # So say no if there are warnings
21571 if test ! -s conftest.err; then
21572 lt_prog_compiler_pic_works_GCJ=yes
21578 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21579 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21581 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21582 case $lt_prog_compiler_pic_GCJ in
21584 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21587 lt_prog_compiler_pic_GCJ=
21588 lt_prog_compiler_can_build_shared_GCJ=no
21593 # For platforms which do not support PIC, -DPIC is meaningless:
21595 lt_prog_compiler_pic_GCJ=
21598 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21602 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21603 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21604 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21605 echo $ECHO_N "(cached) $ECHO_C" >&6
21607 lt_cv_prog_compiler_c_o_GCJ=no
21608 $rm -r conftest 2>/dev/null
21612 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21614 lt_compiler_flag="-o out/conftest2.$ac_objext"
21615 # Insert the option either (1) after the last *FLAGS variable, or
21616 # (2) before a word containing "conftest.", or (3) at the end.
21617 # Note that $ac_compile itself does not contain backslashes and begins
21618 # with a dollar sign (not a hyphen), so the echo should work correctly.
21619 lt_compile=`echo "$ac_compile" | $SED \
21620 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21622 -e 's:$: $lt_compiler_flag:'`
21623 (eval echo "\"\$as_me:21623: $lt_compile\"" >&5)
21624 (eval "$lt_compile" 2>out/conftest.err)
21626 cat out/conftest.err >&5
21627 echo "$as_me:21627: \$? = $ac_status" >&5
21628 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21630 # The compiler can only warn and ignore the option if not recognized
21631 # So say no if there are warnings
21632 if test ! -s out/conftest.err; then
21633 lt_cv_prog_compiler_c_o_GCJ=yes
21638 # SGI C++ compiler will create directory out/ii_files/ for
21639 # template instantiation
21640 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21641 $rm out/* && rmdir out
21647 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21648 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21651 hard_links="nottested"
21652 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21653 # do not overwrite the value of need_locks provided by the user
21654 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21655 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21660 ln conftest.a conftest.b 2>&5 || hard_links=no
21661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21662 echo "$as_me:$LINENO: result: $hard_links" >&5
21663 echo "${ECHO_T}$hard_links" >&6
21664 if test "$hard_links" = no; then
21665 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21666 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21673 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21674 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21677 allow_undefined_flag_GCJ=
21678 enable_shared_with_static_runtimes_GCJ=no
21680 archive_expsym_cmds_GCJ=
21681 old_archive_From_new_cmds_GCJ=
21682 old_archive_from_expsyms_cmds_GCJ=
21683 export_dynamic_flag_spec_GCJ=
21684 whole_archive_flag_spec_GCJ=
21685 thread_safe_flag_spec_GCJ=
21686 hardcode_libdir_flag_spec_GCJ=
21687 hardcode_libdir_flag_spec_ld_GCJ=
21688 hardcode_libdir_separator_GCJ=
21689 hardcode_direct_GCJ=no
21690 hardcode_minus_L_GCJ=no
21691 hardcode_shlibpath_var_GCJ=unsupported
21692 link_all_deplibs_GCJ=unknown
21693 hardcode_automatic_GCJ=no
21695 module_expsym_cmds_GCJ=
21696 always_export_symbols_GCJ=no
21697 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21698 # include_expsyms should be a list of space-separated symbols to be *always*
21699 # included in the symbol list
21700 include_expsyms_GCJ=
21701 # exclude_expsyms can be an extended regexp of symbols to exclude
21702 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21703 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21704 # as well as any symbol that contains `d'.
21705 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21706 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21707 # platforms (ab)use it in PIC code, but their linkers get confused if
21708 # the symbol is explicitly referenced. Since portable code cannot
21709 # rely on this symbol name, it's probably fine to never include it in
21710 # preloaded symbol tables.
21711 extract_expsyms_cmds=
21714 cygwin* | mingw* | pw32*)
21715 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21716 # When not using gcc, we currently assume that we are using
21717 # Microsoft Visual C++.
21718 if test "$GCC" != yes; then
21728 if test "$with_gnu_ld" = yes; then
21729 # If archive_cmds runs LD, not CC, wlarc should be empty
21732 # See if GNU ld supports shared libraries.
21734 aix3* | aix4* | aix5*)
21735 # On AIX/PPC, the GNU linker is very broken
21736 if test "$host_cpu" != ia64; then
21740 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21741 *** to be unable to reliably create shared libraries on AIX.
21742 *** Therefore, libtool is disabling shared libraries support. If you
21743 *** really care for shared libraries, you may want to modify your PATH
21744 *** so that a non-GNU linker is found, and then restart.
21751 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)'
21752 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21753 hardcode_minus_L_GCJ=yes
21755 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21756 # that the semantics of dynamic libraries on AmigaOS, at least up
21757 # to version 4, is to share data among multiple programs linked
21758 # with the same dynamic library. Since this doesn't match the
21759 # behavior of shared libraries on other platforms, we can't use
21765 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21766 allow_undefined_flag_GCJ=unsupported
21767 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21768 # support --undefined. This deserves some investigation. FIXME
21769 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21775 cygwin* | mingw* | pw32*)
21776 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21777 # as there is no search path for DLLs.
21778 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21779 allow_undefined_flag_GCJ=unsupported
21780 always_export_symbols_GCJ=no
21781 enable_shared_with_static_runtimes_GCJ=yes
21782 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21784 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21785 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21786 # If the export-symbols file already is a .def file (1st line
21787 # is EXPORTS), use it as is; otherwise, prepend...
21788 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21789 cp $export_symbols $output_objdir/$soname.def;
21791 echo EXPORTS > $output_objdir/$soname.def;
21792 cat $export_symbols >> $output_objdir/$soname.def;
21794 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21801 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21802 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21805 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21806 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21811 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21815 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21816 *** create shared libraries on Solaris systems. Therefore, libtool
21817 *** is disabling shared libraries support. We urge you to upgrade GNU
21818 *** binutils to release 2.9.1 or newer. Another option is to modify
21819 *** your PATH or compiler configuration so that the native linker is
21820 *** used, and then restart.
21823 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21824 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21825 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21832 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21834 hardcode_direct_GCJ=yes
21835 hardcode_shlibpath_var_GCJ=no
21839 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21840 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21841 archive_cmds_GCJ="$tmp_archive_cmds"
21842 supports_anon_versioning=no
21843 case `$LD -v 2>/dev/null` in
21844 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21845 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21846 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21847 *\ 2.11.*) ;; # other 2.11 versions
21848 *) supports_anon_versioning=yes ;;
21850 if test $supports_anon_versioning = yes; then
21851 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21852 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21853 $echo "local: *; };" >> $output_objdir/$libname.ver~
21854 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21856 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21864 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21865 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21866 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21873 if test "$ld_shlibs_GCJ" = yes; then
21874 runpath_var=LD_RUN_PATH
21875 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21876 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21877 # ancient GNU ld didn't support --whole-archive et. al.
21878 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21879 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21881 whole_archive_flag_spec_GCJ=
21885 # PORTME fill in a description of your system's linker (not GNU ld)
21888 allow_undefined_flag_GCJ=unsupported
21889 always_export_symbols_GCJ=yes
21890 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'
21891 # Note: this linker hardcodes the directories in LIBPATH if there
21892 # are no directories specified by -L.
21893 hardcode_minus_L_GCJ=yes
21894 if test "$GCC" = yes && test -z "$link_static_flag"; then
21895 # Neither direct hardcoding nor static linking is supported with a
21897 hardcode_direct_GCJ=unsupported
21902 if test "$host_cpu" = ia64; then
21903 # On IA64, the linker does run time linking by default, so we don't
21904 # have to do anything special.
21905 aix_use_runtimelinking=no
21906 exp_sym_flag='-Bexport'
21909 # If we're using GNU nm, then we don't want the "-C" option.
21910 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21911 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21912 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'
21914 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'
21916 aix_use_runtimelinking=no
21918 # Test if we are trying to use run time linking or normal
21919 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21920 # need to do runtime linking.
21921 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21922 for ld_flag in $LDFLAGS; do
21923 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21924 aix_use_runtimelinking=yes
21930 exp_sym_flag='-bexport'
21931 no_entry_flag='-bnoentry'
21934 # When large executables or shared objects are built, AIX ld can
21935 # have problems creating the table of contents. If linking a library
21936 # or program results in "error TOC overflow" add -mminimal-toc to
21937 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21938 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21940 archive_cmds_GCJ=''
21941 hardcode_direct_GCJ=yes
21942 hardcode_libdir_separator_GCJ=':'
21943 link_all_deplibs_GCJ=yes
21945 if test "$GCC" = yes; then
21946 case $host_os in aix4.012|aix4.012.*)
21947 # We only want to do this on AIX 4.2 and lower, the check
21948 # below for broken collect2 doesn't work under 4.3+
21949 collect2name=`${CC} -print-prog-name=collect2`
21950 if test -f "$collect2name" && \
21951 strings "$collect2name" | grep resolve_lib_name >/dev/null
21953 # We have reworked collect2
21954 hardcode_direct_GCJ=yes
21956 # We have old collect2
21957 hardcode_direct_GCJ=unsupported
21958 # It fails to find uninstalled libraries when the uninstalled
21959 # path is not listed in the libpath. Setting hardcode_minus_L
21960 # to unsupported forces relinking
21961 hardcode_minus_L_GCJ=yes
21962 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21963 hardcode_libdir_separator_GCJ=
21966 shared_flag='-shared'
21969 if test "$host_cpu" = ia64; then
21970 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21971 # chokes on -Wl,-G. The following line is correct:
21974 if test "$aix_use_runtimelinking" = yes; then
21975 shared_flag='${wl}-G'
21977 shared_flag='${wl}-bM:SRE'
21982 # It seems that -bexpall does not export symbols beginning with
21983 # underscore (_), so it is better to generate a list of symbols to export.
21984 always_export_symbols_GCJ=yes
21985 if test "$aix_use_runtimelinking" = yes; then
21986 # Warning - without using the other runtime loading flags (-brtl),
21987 # -berok will link without error, but may produce a broken library.
21988 allow_undefined_flag_GCJ='-berok'
21989 # Determine the default libpath from the value encoded in an empty executable.
21990 cat >conftest.$ac_ext <<_ACEOF
21993 cat confdefs.h >>conftest.$ac_ext
21994 cat >>conftest.$ac_ext <<_ACEOF
21995 /* end confdefs.h. */
22005 rm -f conftest.$ac_objext conftest$ac_exeext
22006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22007 (eval $ac_link) 2>conftest.er1
22009 grep -v '^ *+' conftest.er1 >conftest.err
22011 cat conftest.err >&5
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); } &&
22014 { ac_try='test -z "$ac_c_werror_flag"
22015 || test ! -s conftest.err'
22016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017 (eval $ac_try) 2>&5
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); }; } &&
22021 { ac_try='test -s conftest$ac_exeext'
22022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22023 (eval $ac_try) 2>&5
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); }; }; then
22028 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22030 # Check for a 64-bit object if we didn't find anything.
22031 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; }
22034 echo "$as_me: failed program was:" >&5
22035 sed 's/^/| /' conftest.$ac_ext >&5
22038 rm -f conftest.err conftest.$ac_objext \
22039 conftest$ac_exeext conftest.$ac_ext
22040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22042 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22043 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"
22045 if test "$host_cpu" = ia64; then
22046 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22047 allow_undefined_flag_GCJ="-z nodefs"
22048 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"
22050 # Determine the default libpath from the value encoded in an empty executable.
22051 cat >conftest.$ac_ext <<_ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h. */
22066 rm -f conftest.$ac_objext conftest$ac_exeext
22067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22068 (eval $ac_link) 2>conftest.er1
22070 grep -v '^ *+' conftest.er1 >conftest.err
22072 cat conftest.err >&5
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); } &&
22075 { ac_try='test -z "$ac_c_werror_flag"
22076 || test ! -s conftest.err'
22077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22078 (eval $ac_try) 2>&5
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); }; } &&
22082 { ac_try='test -s conftest$ac_exeext'
22083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22084 (eval $ac_try) 2>&5
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); }; }; then
22089 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22091 # Check for a 64-bit object if we didn't find anything.
22092 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; }
22095 echo "$as_me: failed program was:" >&5
22096 sed 's/^/| /' conftest.$ac_ext >&5
22099 rm -f conftest.err conftest.$ac_objext \
22100 conftest$ac_exeext conftest.$ac_ext
22101 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22103 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22104 # Warning - without using the other run time loading flags,
22105 # -berok will link without error, but may produce a broken library.
22106 no_undefined_flag_GCJ=' ${wl}-bernotok'
22107 allow_undefined_flag_GCJ=' ${wl}-berok'
22108 # -bexpall does not export symbols beginning with underscore (_)
22109 always_export_symbols_GCJ=yes
22110 # Exported symbols can be pulled into shared objects from archives
22111 whole_archive_flag_spec_GCJ=' '
22112 archive_cmds_need_lc_GCJ=yes
22113 # This is similar to how AIX traditionally builds it's shared libraries.
22114 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'
22120 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)'
22121 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22122 hardcode_minus_L_GCJ=yes
22123 # see comment about different semantics on the GNU ld section
22128 export_dynamic_flag_spec_GCJ=-rdynamic
22131 cygwin* | mingw* | pw32*)
22132 # When not using gcc, we currently assume that we are using
22133 # Microsoft Visual C++.
22134 # hardcode_libdir_flag_spec is actually meaningless, as there is
22135 # no search path for DLLs.
22136 hardcode_libdir_flag_spec_GCJ=' '
22137 allow_undefined_flag_GCJ=unsupported
22138 # Tell ltmain to make .lib files, not .a files.
22140 # Tell ltmain to make .dll files, not .so files.
22142 # FIXME: Setting linknames here is a bad hack.
22143 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22144 # The linker will automatically build a .lib file if we build a DLL.
22145 old_archive_From_new_cmds_GCJ='true'
22146 # FIXME: Should let the user specify the lib program.
22147 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22148 fix_srcfile_path='`cygpath -w "$srcfile"`'
22149 enable_shared_with_static_runtimes_GCJ=yes
22152 darwin* | rhapsody*)
22154 rhapsody* | darwin1.[012])
22155 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22158 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22159 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22161 case ${MACOSX_DEPLOYMENT_TARGET} in
22163 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22166 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22172 archive_cmds_need_lc_GCJ=no
22173 hardcode_direct_GCJ=no
22174 hardcode_automatic_GCJ=yes
22175 hardcode_shlibpath_var_GCJ=unsupported
22176 whole_archive_flag_spec_GCJ=''
22177 link_all_deplibs_GCJ=yes
22178 if test "$GCC" = yes ; then
22179 output_verbose_link_cmd='echo'
22180 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22181 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22182 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22183 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}'
22184 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}'
22186 case "$cc_basename" in
22188 output_verbose_link_cmd='echo'
22189 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22190 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22191 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22192 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}'
22193 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}'
22203 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22204 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22205 hardcode_shlibpath_var_GCJ=no
22212 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22213 # support. Future versions do this automatically, but an explicit c++rt0.o
22214 # does not break anything, and helps significantly (at the cost of a little
22217 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22218 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22219 hardcode_direct_GCJ=yes
22220 hardcode_shlibpath_var_GCJ=no
22223 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22225 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22226 hardcode_direct_GCJ=yes
22227 hardcode_minus_L_GCJ=yes
22228 hardcode_shlibpath_var_GCJ=no
22231 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22232 freebsd* | kfreebsd*-gnu)
22233 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22234 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22235 hardcode_direct_GCJ=yes
22236 hardcode_shlibpath_var_GCJ=no
22240 if test "$GCC" = yes; then
22241 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'
22243 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'
22245 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22246 hardcode_libdir_separator_GCJ=:
22247 hardcode_direct_GCJ=yes
22249 # hardcode_minus_L: Not really in the search PATH,
22250 # but as the default location of the library.
22251 hardcode_minus_L_GCJ=yes
22252 export_dynamic_flag_spec_GCJ='${wl}-E'
22256 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22257 case "$host_cpu" in
22259 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22262 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22266 case "$host_cpu" in
22268 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22271 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22275 if test "$with_gnu_ld" = no; then
22276 case "$host_cpu" in
22278 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22279 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22280 hardcode_libdir_separator_GCJ=:
22281 hardcode_direct_GCJ=no
22282 hardcode_shlibpath_var_GCJ=no
22285 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22286 hardcode_direct_GCJ=no
22287 hardcode_shlibpath_var_GCJ=no
22289 # hardcode_minus_L: Not really in the search PATH,
22290 # but as the default location of the library.
22291 hardcode_minus_L_GCJ=yes
22294 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22295 hardcode_libdir_separator_GCJ=:
22296 hardcode_direct_GCJ=yes
22297 export_dynamic_flag_spec_GCJ='${wl}-E'
22299 # hardcode_minus_L: Not really in the search PATH,
22300 # but as the default location of the library.
22301 hardcode_minus_L_GCJ=yes
22307 irix5* | irix6* | nonstopux*)
22308 if test "$GCC" = yes; then
22309 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'
22311 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'
22312 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22314 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22315 hardcode_libdir_separator_GCJ=:
22316 link_all_deplibs_GCJ=yes
22320 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22321 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22323 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22325 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22326 hardcode_direct_GCJ=yes
22327 hardcode_shlibpath_var_GCJ=no
22331 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22332 hardcode_direct_GCJ=yes
22333 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22334 hardcode_libdir_separator_GCJ=:
22335 hardcode_shlibpath_var_GCJ=no
22339 hardcode_direct_GCJ=yes
22340 hardcode_shlibpath_var_GCJ=no
22341 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22342 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22343 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22344 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22345 export_dynamic_flag_spec_GCJ='${wl}-E'
22348 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22349 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22350 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22353 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22354 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22361 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22362 hardcode_minus_L_GCJ=yes
22363 allow_undefined_flag_GCJ=unsupported
22364 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'
22365 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22369 if test "$GCC" = yes; then
22370 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22371 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'
22373 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22374 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'
22376 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22377 hardcode_libdir_separator_GCJ=:
22380 osf4* | osf5*) # as osf3* with the addition of -msym flag
22381 if test "$GCC" = yes; then
22382 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22383 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'
22384 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22386 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22387 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'
22388 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~
22389 $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'
22391 # Both c and cxx compiler support -rpath directly
22392 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22394 hardcode_libdir_separator_GCJ=:
22398 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22399 hardcode_shlibpath_var_GCJ=no
22400 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22401 runpath_var=LD_RUN_PATH
22402 hardcode_runpath_var=yes
22406 no_undefined_flag_GCJ=' -z text'
22407 if test "$GCC" = yes; then
22408 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22409 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22410 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22412 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22413 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22414 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22416 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22417 hardcode_shlibpath_var_GCJ=no
22419 solaris2.[0-5] | solaris2.[0-5].*) ;;
22420 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22421 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22423 link_all_deplibs_GCJ=yes
22427 if test "x$host_vendor" = xsequent; then
22428 # Use $CC to link under sequent, because it throws in some extra .o
22429 # files that make .init and .fini sections work.
22430 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22432 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22434 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22435 hardcode_direct_GCJ=yes
22436 hardcode_minus_L_GCJ=yes
22437 hardcode_shlibpath_var_GCJ=no
22441 case $host_vendor in
22443 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22444 hardcode_direct_GCJ=yes # is this really true???
22447 ## LD is ld it makes a PLAMLIB
22448 ## CC just makes a GrossModule.
22449 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22450 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22451 hardcode_direct_GCJ=no
22454 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22455 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22458 runpath_var='LD_RUN_PATH'
22459 hardcode_shlibpath_var_GCJ=no
22463 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22464 hardcode_shlibpath_var_GCJ=no
22465 export_dynamic_flag_spec_GCJ='-Bexport'
22469 if test -d /usr/nec; then
22470 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22471 hardcode_shlibpath_var_GCJ=no
22472 runpath_var=LD_RUN_PATH
22473 hardcode_runpath_var=yes
22479 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22480 hardcode_direct_GCJ=yes
22481 hardcode_minus_L_GCJ=no
22482 hardcode_shlibpath_var_GCJ=no
22483 hardcode_runpath_var=yes
22484 runpath_var=LD_RUN_PATH
22487 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22488 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22489 if test "$GCC" = yes; then
22490 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22492 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22494 runpath_var='LD_RUN_PATH'
22495 hardcode_shlibpath_var_GCJ=no
22499 no_undefined_flag_GCJ=' -z text'
22500 # $CC -shared without GNU ld will not create a library from C++
22501 # object files and a static libstdc++, better avoid it by now
22502 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22503 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22504 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22505 hardcode_libdir_flag_spec_GCJ=
22506 hardcode_shlibpath_var_GCJ=no
22507 runpath_var='LD_RUN_PATH'
22511 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22512 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22513 hardcode_shlibpath_var_GCJ=no
22522 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22523 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22524 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22526 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22527 if test "$GCC" = yes; then
22528 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22532 # Do we need to explicitly link libc?
22534 case "x$archive_cmds_need_lc_GCJ" in
22536 # Assume -lc should be added
22537 archive_cmds_need_lc_GCJ=yes
22539 if test "$enable_shared" = yes && test "$GCC" = yes; then
22540 case $archive_cmds_GCJ in
22542 # FIXME: we may have to deal with multi-command sequences.
22545 # Test whether the compiler implicitly links with -lc since on some
22546 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22547 # to ld, don't add -lc before -lgcc.
22548 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22549 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22551 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22554 (eval $ac_compile) 2>&5
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); } 2>conftest.err; then
22560 libobjs=conftest.$ac_objext
22562 wl=$lt_prog_compiler_wl_GCJ
22568 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22569 allow_undefined_flag_GCJ=
22570 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22571 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); }
22576 archive_cmds_need_lc_GCJ=no
22578 archive_cmds_need_lc_GCJ=yes
22580 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22582 cat conftest.err 1>&5
22585 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22586 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22593 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22594 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22595 library_names_spec=
22596 libname_spec='lib$name'
22600 postuninstall_cmds=
22604 shlibpath_overrides_runpath=unknown
22606 dynamic_linker="$host_os ld.so"
22607 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22608 if test "$GCC" = yes; then
22609 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22610 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22611 # if the path contains ";" then we assume it to be the separator
22612 # otherwise default to the standard path separator (i.e. ":") - it is
22613 # assumed that no part of a normal pathname contains ";" but that should
22614 # okay in the real world where ";" in dirpaths is itself problematic.
22615 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22620 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22622 need_lib_prefix=unknown
22623 hardcode_into_libs=no
22625 # when you set need_version to no, make sure it does not cause -set_version
22626 # flags to be left without arguments
22627 need_version=unknown
22632 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22633 shlibpath_var=LIBPATH
22635 # AIX 3 has no versioning support, so we append a major version to the name.
22636 soname_spec='${libname}${release}${shared_ext}$major'
22643 hardcode_into_libs=yes
22644 if test "$host_cpu" = ia64; then
22645 # AIX 5 supports IA64
22646 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22647 shlibpath_var=LD_LIBRARY_PATH
22649 # With GCC up to 2.95.x, collect2 would create an import file
22650 # for dependence libraries. The import file would start with
22651 # the line `#! .'. This would cause the generated library to
22652 # depend on `.', always an invalid library. This was fixed in
22653 # development snapshots of GCC prior to 3.0.
22655 aix4 | aix4.[01] | aix4.[01].*)
22656 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22658 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22661 can_build_shared=no
22665 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22666 # soname into executable. Probably we can add versioning support to
22667 # collect2, so additional links can be useful in future.
22668 if test "$aix_use_runtimelinking" = yes; then
22669 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22670 # instead of lib<name>.a to let people know that these are not
22671 # typical AIX shared libraries.
22672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22674 # We preserve .a as extension for shared libraries through AIX4.2
22675 # and later when we are not doing run time linking.
22676 library_names_spec='${libname}${release}.a $libname.a'
22677 soname_spec='${libname}${release}${shared_ext}$major'
22679 shlibpath_var=LIBPATH
22684 library_names_spec='$libname.ixlibrary $libname.a'
22685 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22686 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'
22690 library_names_spec='${libname}${shared_ext}'
22691 dynamic_linker="$host_os ld.so"
22692 shlibpath_var=LIBRARY_PATH
22698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22699 soname_spec='${libname}${release}${shared_ext}$major'
22700 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22701 shlibpath_var=LD_LIBRARY_PATH
22702 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22703 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22704 # the default ld.so.conf also contains /usr/contrib/lib and
22705 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22706 # libtool to hard-code these into programs
22709 cygwin* | mingw* | pw32*)
22710 version_type=windows
22715 case $GCC,$host_os in
22716 yes,cygwin* | yes,mingw* | yes,pw32*)
22717 library_names_spec='$libname.dll.a'
22718 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22719 postinstall_cmds='base_file=`basename \${file}`~
22720 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22721 dldir=$destdir/`dirname \$dlpath`~
22722 test -d \$dldir || mkdir -p \$dldir~
22723 $install_prog $dir/$dlname \$dldir/$dlname'
22724 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22725 dlpath=$dir/\$dldll~
22727 shlibpath_overrides_runpath=yes
22731 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22732 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22733 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22736 # MinGW DLLs use traditional 'lib' prefix
22737 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22738 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22739 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22740 # It is most probably a Windows format PATH printed by
22741 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22742 # path with ; separators, and with drive letters. We can handle the
22743 # drive letters (cygwin fileutils understands them), so leave them,
22744 # especially as we might pass files found there to a mingw objdump,
22745 # which wouldn't understand a cygwinified path. Ahh.
22746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22752 # pw32 DLLs use 'pw' prefix rather than 'lib'
22753 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22759 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22762 dynamic_linker='Win32 ld.exe'
22763 # FIXME: first we should search . and the directory the executable is in
22767 darwin* | rhapsody*)
22768 dynamic_linker="$host_os dyld"
22769 version_type=darwin
22772 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22773 soname_spec='${libname}${release}${major}$shared_ext'
22774 shlibpath_overrides_runpath=yes
22775 shlibpath_var=DYLD_LIBRARY_PATH
22776 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22777 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22778 if test "$GCC" = yes; then
22779 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"`
22781 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22783 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22791 soname_spec='${libname}${release}${shared_ext}$major'
22792 shlibpath_var=LD_LIBRARY_PATH
22803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22804 soname_spec='${libname}${release}${shared_ext}$major'
22805 shlibpath_var=LD_LIBRARY_PATH
22806 shlibpath_overrides_runpath=no
22807 hardcode_into_libs=yes
22808 dynamic_linker='GNU ld.so'
22812 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22813 version_type=freebsd-$objformat
22814 case $version_type in
22816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22821 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22825 shlibpath_var=LD_LIBRARY_PATH
22828 shlibpath_overrides_runpath=yes
22830 freebsd3.01* | freebsdelf3.01*)
22831 shlibpath_overrides_runpath=yes
22832 hardcode_into_libs=yes
22835 shlibpath_overrides_runpath=no
22836 hardcode_into_libs=yes
22845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22846 soname_spec='${libname}${release}${shared_ext}$major'
22847 shlibpath_var=LD_LIBRARY_PATH
22848 hardcode_into_libs=yes
22851 hpux9* | hpux10* | hpux11*)
22852 # Give a soname corresponding to the major version so that dld.sl refuses to
22853 # link against other versions.
22857 case "$host_cpu" in
22860 hardcode_into_libs=yes
22861 dynamic_linker="$host_os dld.so"
22862 shlibpath_var=LD_LIBRARY_PATH
22863 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22865 soname_spec='${libname}${release}${shared_ext}$major'
22866 if test "X$HPUX_IA64_MODE" = X32; then
22867 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22869 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22871 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22875 hardcode_into_libs=yes
22876 dynamic_linker="$host_os dld.sl"
22877 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22880 soname_spec='${libname}${release}${shared_ext}$major'
22881 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22882 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22886 dynamic_linker="$host_os dld.sl"
22887 shlibpath_var=SHLIB_PATH
22888 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22890 soname_spec='${libname}${release}${shared_ext}$major'
22893 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22894 postinstall_cmds='chmod 555 $lib'
22897 irix5* | irix6* | nonstopux*)
22899 nonstopux*) version_type=nonstopux ;;
22901 if test "$lt_cv_prog_gnu_ld" = yes; then
22909 soname_spec='${libname}${release}${shared_ext}$major'
22910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22912 irix5* | nonstopux*)
22913 libsuff= shlibsuff=
22916 case $LD in # libtool.m4 will add one of these switches to LD
22917 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22918 libsuff= shlibsuff= libmagic=32-bit;;
22919 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22920 libsuff=32 shlibsuff=N32 libmagic=N32;;
22921 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22922 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22923 *) libsuff= shlibsuff= libmagic=never-match;;
22927 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22928 shlibpath_overrides_runpath=no
22929 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22930 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22931 hardcode_into_libs=yes
22934 # No shared lib support for Linux oldld, aout, or coff.
22935 linux*oldld* | linux*aout* | linux*coff*)
22939 # This must be Linux ELF.
22944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22945 soname_spec='${libname}${release}${shared_ext}$major'
22946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22947 shlibpath_var=LD_LIBRARY_PATH
22948 shlibpath_overrides_runpath=no
22949 # This implies no fast_install, which is unacceptable.
22950 # Some rework will be needed to allow for fast_install
22951 # before this can be enabled.
22952 hardcode_into_libs=yes
22954 # Append ld.so.conf contents to the search path
22955 if test -f /etc/ld.so.conf; then
22956 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22957 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22960 # We used to test for /lib/ld.so.1 and disable shared libraries on
22961 # powerpc, because MkLinux only supported shared libraries with the
22962 # GNU dynamic linker. Since this was broken with cross compilers,
22963 # most powerpc-linux boxes support dynamic linking these days and
22964 # people can always --disable-shared, the test was removed, and we
22965 # assume the GNU/Linux dynamic linker is in use.
22966 dynamic_linker='GNU/Linux ld.so'
22973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22974 soname_spec='${libname}${release}${shared_ext}$major'
22975 shlibpath_var=LD_LIBRARY_PATH
22976 shlibpath_overrides_runpath=no
22977 hardcode_into_libs=yes
22978 dynamic_linker='GNU ld.so'
22985 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22988 dynamic_linker='NetBSD (a.out) ld.so'
22990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22991 soname_spec='${libname}${release}${shared_ext}$major'
22992 dynamic_linker='NetBSD ld.elf_so'
22994 shlibpath_var=LD_LIBRARY_PATH
22995 shlibpath_overrides_runpath=yes
22996 hardcode_into_libs=yes
23001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23002 shlibpath_var=LD_LIBRARY_PATH
23003 shlibpath_overrides_runpath=yes
23010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23011 soname_spec='${libname}${release}${shared_ext}$major'
23012 shlibpath_var=LD_LIBRARY_PATH
23013 shlibpath_overrides_runpath=yes
23020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23022 shlibpath_var=LD_LIBRARY_PATH
23023 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23025 openbsd2.[89] | openbsd2.[89].*)
23026 shlibpath_overrides_runpath=no
23029 shlibpath_overrides_runpath=yes
23033 shlibpath_overrides_runpath=yes
23038 libname_spec='$name'
23041 library_names_spec='$libname${shared_ext} $libname.a'
23042 dynamic_linker='OS/2 ld.exe'
23043 shlibpath_var=LIBPATH
23046 osf3* | osf4* | osf5*)
23050 soname_spec='${libname}${release}${shared_ext}$major'
23051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23052 shlibpath_var=LD_LIBRARY_PATH
23053 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23054 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23059 soname_spec='${libname}${release}${shared_ext}$major'
23060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23061 shlibpath_var=LD_LIBRARY_PATH
23068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23069 soname_spec='${libname}${release}${shared_ext}$major'
23070 shlibpath_var=LD_LIBRARY_PATH
23071 shlibpath_overrides_runpath=yes
23072 hardcode_into_libs=yes
23073 # ldd complains unless libraries are executable
23074 postinstall_cmds='chmod +x $lib'
23079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23080 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23081 shlibpath_var=LD_LIBRARY_PATH
23082 shlibpath_overrides_runpath=yes
23083 if test "$with_gnu_ld" = yes; then
23089 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23092 soname_spec='${libname}${release}${shared_ext}$major'
23093 shlibpath_var=LD_LIBRARY_PATH
23094 case $host_vendor in
23096 shlibpath_overrides_runpath=no
23098 export_dynamic_flag_spec='${wl}-Blargedynsym'
23099 runpath_var=LD_RUN_PATH
23107 shlibpath_overrides_runpath=no
23108 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23114 if test -d /usr/nec ;then
23116 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23117 soname_spec='$libname${shared_ext}.$major'
23118 shlibpath_var=LD_LIBRARY_PATH
23124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23125 soname_spec='${libname}${release}${shared_ext}$major'
23126 shlibpath_var=LD_LIBRARY_PATH
23133 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23134 echo "${ECHO_T}$dynamic_linker" >&6
23135 test "$dynamic_linker" = no && can_build_shared=no
23137 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23138 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23139 hardcode_action_GCJ=
23140 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23141 test -n "$runpath_var_GCJ" || \
23142 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23144 # We can hardcode non-existant directories.
23145 if test "$hardcode_direct_GCJ" != no &&
23146 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23147 # have to relink, otherwise we might link with an installed library
23148 # when we should be linking with a yet-to-be-installed one
23149 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23150 test "$hardcode_minus_L_GCJ" != no; then
23151 # Linking always hardcodes the temporary library directory.
23152 hardcode_action_GCJ=relink
23154 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23155 hardcode_action_GCJ=immediate
23158 # We cannot hardcode anything, or else we can only hardcode existing
23160 hardcode_action_GCJ=unsupported
23162 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23163 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23165 if test "$hardcode_action_GCJ" = relink; then
23166 # Fast installation is not supported
23167 enable_fast_install=no
23168 elif test "$shlibpath_overrides_runpath" = yes ||
23169 test "$enable_shared" = no; then
23170 # Fast installation is not necessary
23171 enable_fast_install=needless
23176 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23177 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23178 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23179 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23180 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23181 echo "$as_me:$LINENO: result: yes" >&5
23182 echo "${ECHO_T}yes" >&6
23184 # FIXME - insert some real tests, host_os isn't really good enough
23187 if test -n "$STRIP" ; then
23188 striplib="$STRIP -x"
23189 echo "$as_me:$LINENO: result: yes" >&5
23190 echo "${ECHO_T}yes" >&6
23192 echo "$as_me:$LINENO: result: no" >&5
23193 echo "${ECHO_T}no" >&6
23197 echo "$as_me:$LINENO: result: no" >&5
23198 echo "${ECHO_T}no" >&6
23203 if test "x$enable_dlopen" != xyes; then
23204 enable_dlopen=unknown
23205 enable_dlopen_self=unknown
23206 enable_dlopen_self_static=unknown
23213 lt_cv_dlopen="load_add_on"
23215 lt_cv_dlopen_self=yes
23219 lt_cv_dlopen="LoadLibrary"
23224 lt_cv_dlopen="dlopen"
23229 # if libdl is installed we need to link against it
23230 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23231 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23232 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23233 echo $ECHO_N "(cached) $ECHO_C" >&6
23235 ac_check_lib_save_LIBS=$LIBS
23237 cat >conftest.$ac_ext <<_ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h. */
23244 /* Override any gcc2 internal prototype to avoid an error. */
23248 /* We use char because int might match the return type of a gcc2
23249 builtin and then its argument prototype would still apply. */
23259 rm -f conftest.$ac_objext conftest$ac_exeext
23260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23261 (eval $ac_link) 2>conftest.er1
23263 grep -v '^ *+' conftest.er1 >conftest.err
23265 cat conftest.err >&5
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); } &&
23268 { ac_try='test -z "$ac_c_werror_flag"
23269 || test ! -s conftest.err'
23270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23271 (eval $ac_try) 2>&5
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); }; } &&
23275 { ac_try='test -s conftest$ac_exeext'
23276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277 (eval $ac_try) 2>&5
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; }; then
23281 ac_cv_lib_dl_dlopen=yes
23283 echo "$as_me: failed program was:" >&5
23284 sed 's/^/| /' conftest.$ac_ext >&5
23286 ac_cv_lib_dl_dlopen=no
23288 rm -f conftest.err conftest.$ac_objext \
23289 conftest$ac_exeext conftest.$ac_ext
23290 LIBS=$ac_check_lib_save_LIBS
23292 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23293 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23294 if test $ac_cv_lib_dl_dlopen = yes; then
23295 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23298 lt_cv_dlopen="dyld"
23300 lt_cv_dlopen_self=yes
23307 echo "$as_me:$LINENO: checking for shl_load" >&5
23308 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23309 if test "${ac_cv_func_shl_load+set}" = set; then
23310 echo $ECHO_N "(cached) $ECHO_C" >&6
23312 cat >conftest.$ac_ext <<_ACEOF
23315 cat confdefs.h >>conftest.$ac_ext
23316 cat >>conftest.$ac_ext <<_ACEOF
23317 /* end confdefs.h. */
23318 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23320 #define shl_load innocuous_shl_load
23322 /* System header to define __stub macros and hopefully few prototypes,
23323 which can conflict with char shl_load (); below.
23324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23325 <limits.h> exists even on freestanding compilers. */
23328 # include <limits.h>
23330 # include <assert.h>
23335 /* Override any gcc2 internal prototype to avoid an error. */
23340 /* We use char because int might match the return type of a gcc2
23341 builtin and then its argument prototype would still apply. */
23343 /* The GNU C library defines this for functions which it implements
23344 to always fail with ENOSYS. Some functions are actually named
23345 something starting with __ and the normal name is an alias. */
23346 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23349 char (*f) () = shl_load;
23358 return f != shl_load;
23363 rm -f conftest.$ac_objext conftest$ac_exeext
23364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23365 (eval $ac_link) 2>conftest.er1
23367 grep -v '^ *+' conftest.er1 >conftest.err
23369 cat conftest.err >&5
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); } &&
23372 { ac_try='test -z "$ac_c_werror_flag"
23373 || test ! -s conftest.err'
23374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23375 (eval $ac_try) 2>&5
23377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378 (exit $ac_status); }; } &&
23379 { ac_try='test -s conftest$ac_exeext'
23380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23381 (eval $ac_try) 2>&5
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); }; }; then
23385 ac_cv_func_shl_load=yes
23387 echo "$as_me: failed program was:" >&5
23388 sed 's/^/| /' conftest.$ac_ext >&5
23390 ac_cv_func_shl_load=no
23392 rm -f conftest.err conftest.$ac_objext \
23393 conftest$ac_exeext conftest.$ac_ext
23395 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23396 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23397 if test $ac_cv_func_shl_load = yes; then
23398 lt_cv_dlopen="shl_load"
23400 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23401 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23402 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23403 echo $ECHO_N "(cached) $ECHO_C" >&6
23405 ac_check_lib_save_LIBS=$LIBS
23407 cat >conftest.$ac_ext <<_ACEOF
23410 cat confdefs.h >>conftest.$ac_ext
23411 cat >>conftest.$ac_ext <<_ACEOF
23412 /* end confdefs.h. */
23414 /* Override any gcc2 internal prototype to avoid an error. */
23418 /* We use char because int might match the return type of a gcc2
23419 builtin and then its argument prototype would still apply. */
23429 rm -f conftest.$ac_objext conftest$ac_exeext
23430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23431 (eval $ac_link) 2>conftest.er1
23433 grep -v '^ *+' conftest.er1 >conftest.err
23435 cat conftest.err >&5
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); } &&
23438 { ac_try='test -z "$ac_c_werror_flag"
23439 || test ! -s conftest.err'
23440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23441 (eval $ac_try) 2>&5
23443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444 (exit $ac_status); }; } &&
23445 { ac_try='test -s conftest$ac_exeext'
23446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23447 (eval $ac_try) 2>&5
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); }; }; then
23451 ac_cv_lib_dld_shl_load=yes
23453 echo "$as_me: failed program was:" >&5
23454 sed 's/^/| /' conftest.$ac_ext >&5
23456 ac_cv_lib_dld_shl_load=no
23458 rm -f conftest.err conftest.$ac_objext \
23459 conftest$ac_exeext conftest.$ac_ext
23460 LIBS=$ac_check_lib_save_LIBS
23462 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23463 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23464 if test $ac_cv_lib_dld_shl_load = yes; then
23465 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23467 echo "$as_me:$LINENO: checking for dlopen" >&5
23468 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23469 if test "${ac_cv_func_dlopen+set}" = set; then
23470 echo $ECHO_N "(cached) $ECHO_C" >&6
23472 cat >conftest.$ac_ext <<_ACEOF
23475 cat confdefs.h >>conftest.$ac_ext
23476 cat >>conftest.$ac_ext <<_ACEOF
23477 /* end confdefs.h. */
23478 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23480 #define dlopen innocuous_dlopen
23482 /* System header to define __stub macros and hopefully few prototypes,
23483 which can conflict with char dlopen (); below.
23484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23485 <limits.h> exists even on freestanding compilers. */
23488 # include <limits.h>
23490 # include <assert.h>
23495 /* Override any gcc2 internal prototype to avoid an error. */
23500 /* We use char because int might match the return type of a gcc2
23501 builtin and then its argument prototype would still apply. */
23503 /* The GNU C library defines this for functions which it implements
23504 to always fail with ENOSYS. Some functions are actually named
23505 something starting with __ and the normal name is an alias. */
23506 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23509 char (*f) () = dlopen;
23518 return f != dlopen;
23523 rm -f conftest.$ac_objext conftest$ac_exeext
23524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23525 (eval $ac_link) 2>conftest.er1
23527 grep -v '^ *+' conftest.er1 >conftest.err
23529 cat conftest.err >&5
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); } &&
23532 { ac_try='test -z "$ac_c_werror_flag"
23533 || test ! -s conftest.err'
23534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23535 (eval $ac_try) 2>&5
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); }; } &&
23539 { ac_try='test -s conftest$ac_exeext'
23540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23541 (eval $ac_try) 2>&5
23543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544 (exit $ac_status); }; }; then
23545 ac_cv_func_dlopen=yes
23547 echo "$as_me: failed program was:" >&5
23548 sed 's/^/| /' conftest.$ac_ext >&5
23550 ac_cv_func_dlopen=no
23552 rm -f conftest.err conftest.$ac_objext \
23553 conftest$ac_exeext conftest.$ac_ext
23555 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23556 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23557 if test $ac_cv_func_dlopen = yes; then
23558 lt_cv_dlopen="dlopen"
23560 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23561 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23562 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23563 echo $ECHO_N "(cached) $ECHO_C" >&6
23565 ac_check_lib_save_LIBS=$LIBS
23567 cat >conftest.$ac_ext <<_ACEOF
23570 cat confdefs.h >>conftest.$ac_ext
23571 cat >>conftest.$ac_ext <<_ACEOF
23572 /* end confdefs.h. */
23574 /* Override any gcc2 internal prototype to avoid an error. */
23578 /* We use char because int might match the return type of a gcc2
23579 builtin and then its argument prototype would still apply. */
23589 rm -f conftest.$ac_objext conftest$ac_exeext
23590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23591 (eval $ac_link) 2>conftest.er1
23593 grep -v '^ *+' conftest.er1 >conftest.err
23595 cat conftest.err >&5
23596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); } &&
23598 { ac_try='test -z "$ac_c_werror_flag"
23599 || test ! -s conftest.err'
23600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23601 (eval $ac_try) 2>&5
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); }; } &&
23605 { ac_try='test -s conftest$ac_exeext'
23606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23607 (eval $ac_try) 2>&5
23609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610 (exit $ac_status); }; }; then
23611 ac_cv_lib_dl_dlopen=yes
23613 echo "$as_me: failed program was:" >&5
23614 sed 's/^/| /' conftest.$ac_ext >&5
23616 ac_cv_lib_dl_dlopen=no
23618 rm -f conftest.err conftest.$ac_objext \
23619 conftest$ac_exeext conftest.$ac_ext
23620 LIBS=$ac_check_lib_save_LIBS
23622 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23623 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23624 if test $ac_cv_lib_dl_dlopen = yes; then
23625 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23627 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23628 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23629 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23630 echo $ECHO_N "(cached) $ECHO_C" >&6
23632 ac_check_lib_save_LIBS=$LIBS
23633 LIBS="-lsvld $LIBS"
23634 cat >conftest.$ac_ext <<_ACEOF
23637 cat confdefs.h >>conftest.$ac_ext
23638 cat >>conftest.$ac_ext <<_ACEOF
23639 /* end confdefs.h. */
23641 /* Override any gcc2 internal prototype to avoid an error. */
23645 /* We use char because int might match the return type of a gcc2
23646 builtin and then its argument prototype would still apply. */
23656 rm -f conftest.$ac_objext conftest$ac_exeext
23657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23658 (eval $ac_link) 2>conftest.er1
23660 grep -v '^ *+' conftest.er1 >conftest.err
23662 cat conftest.err >&5
23663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664 (exit $ac_status); } &&
23665 { ac_try='test -z "$ac_c_werror_flag"
23666 || test ! -s conftest.err'
23667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23668 (eval $ac_try) 2>&5
23670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671 (exit $ac_status); }; } &&
23672 { ac_try='test -s conftest$ac_exeext'
23673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23674 (eval $ac_try) 2>&5
23676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); }; }; then
23678 ac_cv_lib_svld_dlopen=yes
23680 echo "$as_me: failed program was:" >&5
23681 sed 's/^/| /' conftest.$ac_ext >&5
23683 ac_cv_lib_svld_dlopen=no
23685 rm -f conftest.err conftest.$ac_objext \
23686 conftest$ac_exeext conftest.$ac_ext
23687 LIBS=$ac_check_lib_save_LIBS
23689 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23690 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23691 if test $ac_cv_lib_svld_dlopen = yes; then
23692 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23694 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23695 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23696 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23697 echo $ECHO_N "(cached) $ECHO_C" >&6
23699 ac_check_lib_save_LIBS=$LIBS
23701 cat >conftest.$ac_ext <<_ACEOF
23704 cat confdefs.h >>conftest.$ac_ext
23705 cat >>conftest.$ac_ext <<_ACEOF
23706 /* end confdefs.h. */
23708 /* Override any gcc2 internal prototype to avoid an error. */
23712 /* We use char because int might match the return type of a gcc2
23713 builtin and then its argument prototype would still apply. */
23723 rm -f conftest.$ac_objext conftest$ac_exeext
23724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23725 (eval $ac_link) 2>conftest.er1
23727 grep -v '^ *+' conftest.er1 >conftest.err
23729 cat conftest.err >&5
23730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731 (exit $ac_status); } &&
23732 { ac_try='test -z "$ac_c_werror_flag"
23733 || test ! -s conftest.err'
23734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23735 (eval $ac_try) 2>&5
23737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738 (exit $ac_status); }; } &&
23739 { ac_try='test -s conftest$ac_exeext'
23740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23741 (eval $ac_try) 2>&5
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); }; }; then
23745 ac_cv_lib_dld_dld_link=yes
23747 echo "$as_me: failed program was:" >&5
23748 sed 's/^/| /' conftest.$ac_ext >&5
23750 ac_cv_lib_dld_dld_link=no
23752 rm -f conftest.err conftest.$ac_objext \
23753 conftest$ac_exeext conftest.$ac_ext
23754 LIBS=$ac_check_lib_save_LIBS
23756 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23757 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23758 if test $ac_cv_lib_dld_dld_link = yes; then
23759 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23780 if test "x$lt_cv_dlopen" != xno; then
23786 case $lt_cv_dlopen in
23788 save_CPPFLAGS="$CPPFLAGS"
23789 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23791 save_LDFLAGS="$LDFLAGS"
23792 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23795 LIBS="$lt_cv_dlopen_libs $LIBS"
23797 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23798 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23799 if test "${lt_cv_dlopen_self+set}" = set; then
23800 echo $ECHO_N "(cached) $ECHO_C" >&6
23802 if test "$cross_compiling" = yes; then :
23803 lt_cv_dlopen_self=cross
23805 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23806 lt_status=$lt_dlunknown
23807 cat > conftest.$ac_ext <<EOF
23808 #line 23808 "configure"
23809 #include "confdefs.h"
23818 # define LT_DLGLOBAL RTLD_GLOBAL
23821 # define LT_DLGLOBAL DL_GLOBAL
23823 # define LT_DLGLOBAL 0
23827 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23828 find out it does not work in some platform. */
23829 #ifndef LT_DLLAZY_OR_NOW
23831 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23834 # define LT_DLLAZY_OR_NOW DL_LAZY
23837 # define LT_DLLAZY_OR_NOW RTLD_NOW
23840 # define LT_DLLAZY_OR_NOW DL_NOW
23842 # define LT_DLLAZY_OR_NOW 0
23850 extern "C" void exit (int);
23853 void fnord() { int i=42;}
23856 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23857 int status = $lt_dlunknown;
23861 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23862 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23863 /* dlclose (self); */
23869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23870 (eval $ac_link) 2>&5
23872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23874 (./conftest; exit; ) 2>/dev/null
23876 case x$lt_status in
23877 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23878 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23879 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23882 # compilation failed
23883 lt_cv_dlopen_self=no
23890 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23891 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23893 if test "x$lt_cv_dlopen_self" = xyes; then
23894 LDFLAGS="$LDFLAGS $link_static_flag"
23895 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23896 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23897 if test "${lt_cv_dlopen_self_static+set}" = set; then
23898 echo $ECHO_N "(cached) $ECHO_C" >&6
23900 if test "$cross_compiling" = yes; then :
23901 lt_cv_dlopen_self_static=cross
23903 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23904 lt_status=$lt_dlunknown
23905 cat > conftest.$ac_ext <<EOF
23906 #line 23906 "configure"
23907 #include "confdefs.h"
23916 # define LT_DLGLOBAL RTLD_GLOBAL
23919 # define LT_DLGLOBAL DL_GLOBAL
23921 # define LT_DLGLOBAL 0
23925 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23926 find out it does not work in some platform. */
23927 #ifndef LT_DLLAZY_OR_NOW
23929 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23932 # define LT_DLLAZY_OR_NOW DL_LAZY
23935 # define LT_DLLAZY_OR_NOW RTLD_NOW
23938 # define LT_DLLAZY_OR_NOW DL_NOW
23940 # define LT_DLLAZY_OR_NOW 0
23948 extern "C" void exit (int);
23951 void fnord() { int i=42;}
23954 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23955 int status = $lt_dlunknown;
23959 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23960 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23961 /* dlclose (self); */
23967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23968 (eval $ac_link) 2>&5
23970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23972 (./conftest; exit; ) 2>/dev/null
23974 case x$lt_status in
23975 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23976 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23977 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23980 # compilation failed
23981 lt_cv_dlopen_self_static=no
23988 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23989 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23992 CPPFLAGS="$save_CPPFLAGS"
23993 LDFLAGS="$save_LDFLAGS"
23998 case $lt_cv_dlopen_self in
23999 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24000 *) enable_dlopen_self=unknown ;;
24003 case $lt_cv_dlopen_self_static in
24004 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24005 *) enable_dlopen_self_static=unknown ;;
24010 # The else clause should only fire when bootstrapping the
24011 # libtool distribution, otherwise you forgot to ship ltmain.sh
24012 # with your package, and you will get complaints that there are
24013 # no rules to generate ltmain.sh.
24014 if test -f "$ltmain"; then
24015 # See if we are running on zsh, and set the options which allow our commands through
24016 # without removal of \ escapes.
24017 if test -n "${ZSH_VERSION+set}" ; then
24018 setopt NO_GLOB_SUBST
24020 # Now quote all the things that may contain metacharacters while being
24021 # careful not to overquote the AC_SUBSTed values. We take copies of the
24022 # variables and quote the copies for generation of the libtool script.
24023 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24025 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24026 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24027 deplibs_check_method reload_flag reload_cmds need_locks \
24028 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24029 lt_cv_sys_global_symbol_to_c_name_address \
24030 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24031 old_postinstall_cmds old_postuninstall_cmds \
24035 lt_prog_compiler_wl_GCJ \
24036 lt_prog_compiler_pic_GCJ \
24037 lt_prog_compiler_static_GCJ \
24038 lt_prog_compiler_no_builtin_flag_GCJ \
24039 export_dynamic_flag_spec_GCJ \
24040 thread_safe_flag_spec_GCJ \
24041 whole_archive_flag_spec_GCJ \
24042 enable_shared_with_static_runtimes_GCJ \
24043 old_archive_cmds_GCJ \
24044 old_archive_from_new_cmds_GCJ \
24045 predep_objects_GCJ \
24046 postdep_objects_GCJ \
24049 compiler_lib_search_path_GCJ \
24051 archive_expsym_cmds_GCJ \
24052 postinstall_cmds_GCJ \
24053 postuninstall_cmds_GCJ \
24054 old_archive_from_expsyms_cmds_GCJ \
24055 allow_undefined_flag_GCJ \
24056 no_undefined_flag_GCJ \
24057 export_symbols_cmds_GCJ \
24058 hardcode_libdir_flag_spec_GCJ \
24059 hardcode_libdir_flag_spec_ld_GCJ \
24060 hardcode_libdir_separator_GCJ \
24061 hardcode_automatic_GCJ \
24063 module_expsym_cmds_GCJ \
24064 lt_cv_prog_compiler_c_o_GCJ \
24065 exclude_expsyms_GCJ \
24066 include_expsyms_GCJ; do
24069 old_archive_cmds_GCJ | \
24070 old_archive_from_new_cmds_GCJ | \
24071 archive_cmds_GCJ | \
24072 archive_expsym_cmds_GCJ | \
24073 module_cmds_GCJ | \
24074 module_expsym_cmds_GCJ | \
24075 old_archive_from_expsyms_cmds_GCJ | \
24076 export_symbols_cmds_GCJ | \
24077 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24078 postinstall_cmds | postuninstall_cmds | \
24079 old_postinstall_cmds | old_postuninstall_cmds | \
24080 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24081 # Double-quote double-evaled strings.
24082 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24085 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24091 *'\$0 --fallback-echo"')
24092 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24098 cat <<__EOF__ >> "$cfgfile"
24099 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24101 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24103 # Shell to use when invoking shell scripts.
24106 # Whether or not to build shared libraries.
24107 build_libtool_libs=$enable_shared
24109 # Whether or not to build static libraries.
24110 build_old_libs=$enable_static
24112 # Whether or not to add -lc for building shared libraries.
24113 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24115 # Whether or not to disallow shared libs when runtime libs are static
24116 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24118 # Whether or not to optimize for fast installation.
24119 fast_install=$enable_fast_install
24122 host_alias=$host_alias
24125 # An echo program that does not interpret backslashes.
24130 AR_FLAGS=$lt_AR_FLAGS
24135 # A language-specific compiler.
24136 CC=$lt_compiler_GCJ
24138 # Is the compiler the GNU C compiler?
24144 # The linker used to build libraries.
24147 # Whether we need hard or soft links.
24150 # A BSD-compatible nm program.
24153 # A symbol stripping program
24156 # Used to examine libraries when file_magic_cmd begins "file"
24157 MAGIC_CMD=$MAGIC_CMD
24159 # Used on cygwin: DLL creation program.
24162 # Used on cygwin: object dumper.
24165 # Used on cygwin: assembler.
24168 # The name of the directory that contains temporary libtool files.
24171 # How to create reloadable object files.
24172 reload_flag=$lt_reload_flag
24173 reload_cmds=$lt_reload_cmds
24175 # How to pass a linker flag through the compiler.
24176 wl=$lt_lt_prog_compiler_wl_GCJ
24178 # Object file suffix (normally "o").
24179 objext="$ac_objext"
24181 # Old archive suffix (normally "a").
24184 # Shared library suffix (normally ".so").
24185 shrext_cmds='$shrext_cmds'
24187 # Executable file suffix (normally "").
24190 # Additional compiler flags for building library objects.
24191 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24194 # What is the maximum length of a command?
24195 max_cmd_len=$lt_cv_sys_max_cmd_len
24197 # Does compiler simultaneously support -c and -o options?
24198 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24200 # Must we lock files when doing compilation ?
24201 need_locks=$lt_need_locks
24203 # Do we need the lib prefix for modules?
24204 need_lib_prefix=$need_lib_prefix
24206 # Do we need a version for libraries?
24207 need_version=$need_version
24209 # Whether dlopen is supported.
24210 dlopen_support=$enable_dlopen
24212 # Whether dlopen of programs is supported.
24213 dlopen_self=$enable_dlopen_self
24215 # Whether dlopen of statically linked programs is supported.
24216 dlopen_self_static=$enable_dlopen_self_static
24218 # Compiler flag to prevent dynamic linking.
24219 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24221 # Compiler flag to turn off builtin functions.
24222 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24224 # Compiler flag to allow reflexive dlopens.
24225 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24227 # Compiler flag to generate shared objects directly from archives.
24228 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24230 # Compiler flag to generate thread-safe objects.
24231 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24233 # Library versioning type.
24234 version_type=$version_type
24236 # Format of library name prefix.
24237 libname_spec=$lt_libname_spec
24239 # List of archive names. First name is the real one, the rest are links.
24240 # The last name is the one that the linker finds with -lNAME.
24241 library_names_spec=$lt_library_names_spec
24243 # The coded name of the library, if different from the real name.
24244 soname_spec=$lt_soname_spec
24246 # Commands used to build and install an old-style archive.
24248 old_archive_cmds=$lt_old_archive_cmds_GCJ
24249 old_postinstall_cmds=$lt_old_postinstall_cmds
24250 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24252 # Create an old-style archive from a shared archive.
24253 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24255 # Create a temporary old-style archive to link instead of a shared archive.
24256 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24258 # Commands used to build and install a shared archive.
24259 archive_cmds=$lt_archive_cmds_GCJ
24260 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24261 postinstall_cmds=$lt_postinstall_cmds
24262 postuninstall_cmds=$lt_postuninstall_cmds
24264 # Commands used to build a loadable module (assumed same as above if empty)
24265 module_cmds=$lt_module_cmds_GCJ
24266 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24268 # Commands to strip libraries.
24269 old_striplib=$lt_old_striplib
24270 striplib=$lt_striplib
24272 # Dependencies to place before the objects being linked to create a
24274 predep_objects=$lt_predep_objects_GCJ
24276 # Dependencies to place after the objects being linked to create a
24278 postdep_objects=$lt_postdep_objects_GCJ
24280 # Dependencies to place before the objects being linked to create a
24282 predeps=$lt_predeps_GCJ
24284 # Dependencies to place after the objects being linked to create a
24286 postdeps=$lt_postdeps_GCJ
24288 # The library search path used internally by the compiler when linking
24289 # a shared library.
24290 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24292 # Method to check whether dependent libraries are shared objects.
24293 deplibs_check_method=$lt_deplibs_check_method
24295 # Command to use when deplibs_check_method == file_magic.
24296 file_magic_cmd=$lt_file_magic_cmd
24298 # Flag that allows shared libraries with undefined symbols to be built.
24299 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24301 # Flag that forces no undefined symbols.
24302 no_undefined_flag=$lt_no_undefined_flag_GCJ
24304 # Commands used to finish a libtool library installation in a directory.
24305 finish_cmds=$lt_finish_cmds
24307 # Same as above, but a single script fragment to be evaled but not shown.
24308 finish_eval=$lt_finish_eval
24310 # Take the output of nm and produce a listing of raw symbols and C names.
24311 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24313 # Transform the output of nm in a proper C declaration
24314 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24316 # Transform the output of nm in a C name address pair
24317 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24319 # This is the shared library runtime path variable.
24320 runpath_var=$runpath_var
24322 # This is the shared library path variable.
24323 shlibpath_var=$shlibpath_var
24325 # Is shlibpath searched before the hard-coded library search path?
24326 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24328 # How to hardcode a shared library path into an executable.
24329 hardcode_action=$hardcode_action_GCJ
24331 # Whether we should hardcode library paths into libraries.
24332 hardcode_into_libs=$hardcode_into_libs
24334 # Flag to hardcode \$libdir into a binary during linking.
24335 # This must work even if \$libdir does not exist.
24336 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24338 # If ld is used when linking, flag to hardcode \$libdir into
24339 # a binary during linking. This must work even if \$libdir does
24341 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24343 # Whether we need a single -rpath flag with a separated argument.
24344 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24346 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24347 # resulting binary.
24348 hardcode_direct=$hardcode_direct_GCJ
24350 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24351 # resulting binary.
24352 hardcode_minus_L=$hardcode_minus_L_GCJ
24354 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24355 # the resulting binary.
24356 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24358 # Set to yes if building a shared library automatically hardcodes DIR into the library
24359 # and all subsequent libraries and executables linked against it.
24360 hardcode_automatic=$hardcode_automatic_GCJ
24362 # Variables whose values should be saved in libtool wrapper scripts and
24363 # restored at relink time.
24364 variables_saved_for_relink="$variables_saved_for_relink"
24366 # Whether libtool must link a program against all its dependency libraries.
24367 link_all_deplibs=$link_all_deplibs_GCJ
24369 # Compile-time system search path for libraries
24370 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24372 # Run-time system search path for libraries
24373 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24375 # Fix the shell variable \$srcfile for the compiler.
24376 fix_srcfile_path="$fix_srcfile_path_GCJ"
24378 # Set to yes if exported symbols are required.
24379 always_export_symbols=$always_export_symbols_GCJ
24381 # The commands to list exported symbols.
24382 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24384 # The commands to extract the exported symbol list from a shared archive.
24385 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24387 # Symbols that should not be listed in the preloaded symbols.
24388 exclude_expsyms=$lt_exclude_expsyms_GCJ
24390 # Symbols that must always be exported.
24391 include_expsyms=$lt_include_expsyms_GCJ
24393 # ### END LIBTOOL TAG CONFIG: $tagname
24399 # If there is no Makefile yet, we rely on a make rule to execute
24400 # `config.status --recheck' to rerun these tests and create the
24401 # libtool script then.
24402 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24403 if test -f "$ltmain_in"; then
24404 test -f Makefile && make "$ltmain"
24410 ac_cpp='$CPP $CPPFLAGS'
24411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24424 ac_cpp='$CPP $CPPFLAGS'
24425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24430 # Source file extension for RC test sources.
24433 # Object file extension for compiled RC test sources.
24437 # Code to be used in simple compile tests
24438 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24440 # Code to be used in simple link tests
24441 lt_simple_link_test_code="$lt_simple_compile_test_code"
24443 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24445 # If no C compiler was specified, use CC.
24448 # Allow CC to be a program name with arguments.
24452 # Allow CC to be a program name with arguments.
24457 lt_cv_prog_compiler_c_o_RC=yes
24459 # The else clause should only fire when bootstrapping the
24460 # libtool distribution, otherwise you forgot to ship ltmain.sh
24461 # with your package, and you will get complaints that there are
24462 # no rules to generate ltmain.sh.
24463 if test -f "$ltmain"; then
24464 # See if we are running on zsh, and set the options which allow our commands through
24465 # without removal of \ escapes.
24466 if test -n "${ZSH_VERSION+set}" ; then
24467 setopt NO_GLOB_SUBST
24469 # Now quote all the things that may contain metacharacters while being
24470 # careful not to overquote the AC_SUBSTed values. We take copies of the
24471 # variables and quote the copies for generation of the libtool script.
24472 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24474 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24475 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24476 deplibs_check_method reload_flag reload_cmds need_locks \
24477 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24478 lt_cv_sys_global_symbol_to_c_name_address \
24479 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24480 old_postinstall_cmds old_postuninstall_cmds \
24484 lt_prog_compiler_wl_RC \
24485 lt_prog_compiler_pic_RC \
24486 lt_prog_compiler_static_RC \
24487 lt_prog_compiler_no_builtin_flag_RC \
24488 export_dynamic_flag_spec_RC \
24489 thread_safe_flag_spec_RC \
24490 whole_archive_flag_spec_RC \
24491 enable_shared_with_static_runtimes_RC \
24492 old_archive_cmds_RC \
24493 old_archive_from_new_cmds_RC \
24494 predep_objects_RC \
24495 postdep_objects_RC \
24498 compiler_lib_search_path_RC \
24500 archive_expsym_cmds_RC \
24501 postinstall_cmds_RC \
24502 postuninstall_cmds_RC \
24503 old_archive_from_expsyms_cmds_RC \
24504 allow_undefined_flag_RC \
24505 no_undefined_flag_RC \
24506 export_symbols_cmds_RC \
24507 hardcode_libdir_flag_spec_RC \
24508 hardcode_libdir_flag_spec_ld_RC \
24509 hardcode_libdir_separator_RC \
24510 hardcode_automatic_RC \
24512 module_expsym_cmds_RC \
24513 lt_cv_prog_compiler_c_o_RC \
24514 exclude_expsyms_RC \
24515 include_expsyms_RC; do
24518 old_archive_cmds_RC | \
24519 old_archive_from_new_cmds_RC | \
24520 archive_cmds_RC | \
24521 archive_expsym_cmds_RC | \
24523 module_expsym_cmds_RC | \
24524 old_archive_from_expsyms_cmds_RC | \
24525 export_symbols_cmds_RC | \
24526 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24527 postinstall_cmds | postuninstall_cmds | \
24528 old_postinstall_cmds | old_postuninstall_cmds | \
24529 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24530 # Double-quote double-evaled strings.
24531 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24534 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24540 *'\$0 --fallback-echo"')
24541 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24547 cat <<__EOF__ >> "$cfgfile"
24548 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24550 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24552 # Shell to use when invoking shell scripts.
24555 # Whether or not to build shared libraries.
24556 build_libtool_libs=$enable_shared
24558 # Whether or not to build static libraries.
24559 build_old_libs=$enable_static
24561 # Whether or not to add -lc for building shared libraries.
24562 build_libtool_need_lc=$archive_cmds_need_lc_RC
24564 # Whether or not to disallow shared libs when runtime libs are static
24565 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24567 # Whether or not to optimize for fast installation.
24568 fast_install=$enable_fast_install
24571 host_alias=$host_alias
24574 # An echo program that does not interpret backslashes.
24579 AR_FLAGS=$lt_AR_FLAGS
24584 # A language-specific compiler.
24587 # Is the compiler the GNU C compiler?
24593 # The linker used to build libraries.
24596 # Whether we need hard or soft links.
24599 # A BSD-compatible nm program.
24602 # A symbol stripping program
24605 # Used to examine libraries when file_magic_cmd begins "file"
24606 MAGIC_CMD=$MAGIC_CMD
24608 # Used on cygwin: DLL creation program.
24611 # Used on cygwin: object dumper.
24614 # Used on cygwin: assembler.
24617 # The name of the directory that contains temporary libtool files.
24620 # How to create reloadable object files.
24621 reload_flag=$lt_reload_flag
24622 reload_cmds=$lt_reload_cmds
24624 # How to pass a linker flag through the compiler.
24625 wl=$lt_lt_prog_compiler_wl_RC
24627 # Object file suffix (normally "o").
24628 objext="$ac_objext"
24630 # Old archive suffix (normally "a").
24633 # Shared library suffix (normally ".so").
24634 shrext_cmds='$shrext_cmds'
24636 # Executable file suffix (normally "").
24639 # Additional compiler flags for building library objects.
24640 pic_flag=$lt_lt_prog_compiler_pic_RC
24643 # What is the maximum length of a command?
24644 max_cmd_len=$lt_cv_sys_max_cmd_len
24646 # Does compiler simultaneously support -c and -o options?
24647 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24649 # Must we lock files when doing compilation ?
24650 need_locks=$lt_need_locks
24652 # Do we need the lib prefix for modules?
24653 need_lib_prefix=$need_lib_prefix
24655 # Do we need a version for libraries?
24656 need_version=$need_version
24658 # Whether dlopen is supported.
24659 dlopen_support=$enable_dlopen
24661 # Whether dlopen of programs is supported.
24662 dlopen_self=$enable_dlopen_self
24664 # Whether dlopen of statically linked programs is supported.
24665 dlopen_self_static=$enable_dlopen_self_static
24667 # Compiler flag to prevent dynamic linking.
24668 link_static_flag=$lt_lt_prog_compiler_static_RC
24670 # Compiler flag to turn off builtin functions.
24671 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24673 # Compiler flag to allow reflexive dlopens.
24674 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24676 # Compiler flag to generate shared objects directly from archives.
24677 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24679 # Compiler flag to generate thread-safe objects.
24680 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24682 # Library versioning type.
24683 version_type=$version_type
24685 # Format of library name prefix.
24686 libname_spec=$lt_libname_spec
24688 # List of archive names. First name is the real one, the rest are links.
24689 # The last name is the one that the linker finds with -lNAME.
24690 library_names_spec=$lt_library_names_spec
24692 # The coded name of the library, if different from the real name.
24693 soname_spec=$lt_soname_spec
24695 # Commands used to build and install an old-style archive.
24697 old_archive_cmds=$lt_old_archive_cmds_RC
24698 old_postinstall_cmds=$lt_old_postinstall_cmds
24699 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24701 # Create an old-style archive from a shared archive.
24702 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24704 # Create a temporary old-style archive to link instead of a shared archive.
24705 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24707 # Commands used to build and install a shared archive.
24708 archive_cmds=$lt_archive_cmds_RC
24709 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24710 postinstall_cmds=$lt_postinstall_cmds
24711 postuninstall_cmds=$lt_postuninstall_cmds
24713 # Commands used to build a loadable module (assumed same as above if empty)
24714 module_cmds=$lt_module_cmds_RC
24715 module_expsym_cmds=$lt_module_expsym_cmds_RC
24717 # Commands to strip libraries.
24718 old_striplib=$lt_old_striplib
24719 striplib=$lt_striplib
24721 # Dependencies to place before the objects being linked to create a
24723 predep_objects=$lt_predep_objects_RC
24725 # Dependencies to place after the objects being linked to create a
24727 postdep_objects=$lt_postdep_objects_RC
24729 # Dependencies to place before the objects being linked to create a
24731 predeps=$lt_predeps_RC
24733 # Dependencies to place after the objects being linked to create a
24735 postdeps=$lt_postdeps_RC
24737 # The library search path used internally by the compiler when linking
24738 # a shared library.
24739 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24741 # Method to check whether dependent libraries are shared objects.
24742 deplibs_check_method=$lt_deplibs_check_method
24744 # Command to use when deplibs_check_method == file_magic.
24745 file_magic_cmd=$lt_file_magic_cmd
24747 # Flag that allows shared libraries with undefined symbols to be built.
24748 allow_undefined_flag=$lt_allow_undefined_flag_RC
24750 # Flag that forces no undefined symbols.
24751 no_undefined_flag=$lt_no_undefined_flag_RC
24753 # Commands used to finish a libtool library installation in a directory.
24754 finish_cmds=$lt_finish_cmds
24756 # Same as above, but a single script fragment to be evaled but not shown.
24757 finish_eval=$lt_finish_eval
24759 # Take the output of nm and produce a listing of raw symbols and C names.
24760 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24762 # Transform the output of nm in a proper C declaration
24763 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24765 # Transform the output of nm in a C name address pair
24766 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24768 # This is the shared library runtime path variable.
24769 runpath_var=$runpath_var
24771 # This is the shared library path variable.
24772 shlibpath_var=$shlibpath_var
24774 # Is shlibpath searched before the hard-coded library search path?
24775 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24777 # How to hardcode a shared library path into an executable.
24778 hardcode_action=$hardcode_action_RC
24780 # Whether we should hardcode library paths into libraries.
24781 hardcode_into_libs=$hardcode_into_libs
24783 # Flag to hardcode \$libdir into a binary during linking.
24784 # This must work even if \$libdir does not exist.
24785 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24787 # If ld is used when linking, flag to hardcode \$libdir into
24788 # a binary during linking. This must work even if \$libdir does
24790 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24792 # Whether we need a single -rpath flag with a separated argument.
24793 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24795 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24796 # resulting binary.
24797 hardcode_direct=$hardcode_direct_RC
24799 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24800 # resulting binary.
24801 hardcode_minus_L=$hardcode_minus_L_RC
24803 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24804 # the resulting binary.
24805 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24807 # Set to yes if building a shared library automatically hardcodes DIR into the library
24808 # and all subsequent libraries and executables linked against it.
24809 hardcode_automatic=$hardcode_automatic_RC
24811 # Variables whose values should be saved in libtool wrapper scripts and
24812 # restored at relink time.
24813 variables_saved_for_relink="$variables_saved_for_relink"
24815 # Whether libtool must link a program against all its dependency libraries.
24816 link_all_deplibs=$link_all_deplibs_RC
24818 # Compile-time system search path for libraries
24819 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24821 # Run-time system search path for libraries
24822 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24824 # Fix the shell variable \$srcfile for the compiler.
24825 fix_srcfile_path="$fix_srcfile_path_RC"
24827 # Set to yes if exported symbols are required.
24828 always_export_symbols=$always_export_symbols_RC
24830 # The commands to list exported symbols.
24831 export_symbols_cmds=$lt_export_symbols_cmds_RC
24833 # The commands to extract the exported symbol list from a shared archive.
24834 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24836 # Symbols that should not be listed in the preloaded symbols.
24837 exclude_expsyms=$lt_exclude_expsyms_RC
24839 # Symbols that must always be exported.
24840 include_expsyms=$lt_include_expsyms_RC
24842 # ### END LIBTOOL TAG CONFIG: $tagname
24848 # If there is no Makefile yet, we rely on a make rule to execute
24849 # `config.status --recheck' to rerun these tests and create the
24850 # libtool script then.
24851 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24852 if test -f "$ltmain_in"; then
24853 test -f Makefile && make "$ltmain"
24859 ac_cpp='$CPP $CPPFLAGS'
24860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24869 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24870 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24871 { (exit 1); exit 1; }; }
24875 # Append the new tag name to the list of available tags.
24876 if test -n "$tagname" ; then
24877 available_tags="$available_tags $tagname"
24883 # Now substitute the updated list of available tags.
24884 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24885 mv "${ofile}T" "$ofile"
24889 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24890 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24891 { (exit 1); exit 1; }; }
24897 # This can be used to rebuild libtool when needed
24898 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24900 # Always use our own libtool.
24901 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24903 # Prevent multiple expansion
24925 if test "$lt_cv_dlopen_self" = "yes" ; then
24927 cat >>confdefs.h <<\_ACEOF
24928 #define CAN_DLOPEN_SELF 1
24933 etags_version=`$ETAGS --version 2>&1`
24934 case "$etags_version" in
24935 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24936 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24937 *) ETAGSFLAGS="" ;;
24939 ETAGSFLAGS=$ETAGSFLAGS
24942 if test "$WITH_LLVMGCCDIR" = "default" ; then
24943 LLVMGCC="llvm-gcc${EXEEXT}"
24944 LLVMGXX="llvm-g++${EXEEXT}"
24945 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24946 set dummy $LLVMGCC; ac_word=$2
24947 echo "$as_me:$LINENO: checking for $ac_word" >&5
24948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24949 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24950 echo $ECHO_N "(cached) $ECHO_C" >&6
24954 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24958 for as_dir in $PATH
24961 test -z "$as_dir" && as_dir=.
24962 for ac_exec_ext in '' $ac_executable_extensions; do
24963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24964 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24974 LLVMGCC=$ac_cv_path_LLVMGCC
24976 if test -n "$LLVMGCC"; then
24977 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24978 echo "${ECHO_T}$LLVMGCC" >&6
24980 echo "$as_me:$LINENO: result: no" >&5
24981 echo "${ECHO_T}no" >&6
24984 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24985 set dummy $LLVMGXX; ac_word=$2
24986 echo "$as_me:$LINENO: checking for $ac_word" >&5
24987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24988 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24989 echo $ECHO_N "(cached) $ECHO_C" >&6
24993 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24997 for as_dir in $PATH
25000 test -z "$as_dir" && as_dir=.
25001 for ac_exec_ext in '' $ac_executable_extensions; do
25002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25003 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25013 LLVMGXX=$ac_cv_path_LLVMGXX
25015 if test -n "$LLVMGXX"; then
25016 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25017 echo "${ECHO_T}$LLVMGXX" >&6
25019 echo "$as_me:$LINENO: result: no" >&5
25020 echo "${ECHO_T}no" >&6
25024 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25025 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25032 echo "$as_me:$LINENO: checking tool compatibility" >&5
25033 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
25046 if test "$GCC" != "yes" && test "$ICC" != "yes"
25048 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25049 echo "$as_me: error: gcc|icc required but not found" >&2;}
25050 { (exit 1); exit 1; }; }
25053 if test "$GXX" != "yes" && test "$IXX" != "yes"
25055 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25056 echo "$as_me: error: g++|icc required but not found" >&2;}
25057 { (exit 1); exit 1; }; }
25060 if test "$GCC" = "yes"
25062 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
25063 if test "$gccmajor" -lt "3"
25065 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25066 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25067 { (exit 1); exit 1; }; }
25071 if test -z "$llvm_cv_gnu_make_command"
25073 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25074 echo "$as_me: error: GNU Make required but not found" >&2;}
25075 { (exit 1); exit 1; }; }
25078 echo "$as_me:$LINENO: result: ok" >&5
25079 echo "${ECHO_T}ok" >&6
25083 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25084 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25085 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25086 echo $ECHO_N "(cached) $ECHO_C" >&6
25088 ac_check_lib_save_LIBS=$LIBS
25090 cat >conftest.$ac_ext <<_ACEOF
25093 cat confdefs.h >>conftest.$ac_ext
25094 cat >>conftest.$ac_ext <<_ACEOF
25095 /* end confdefs.h. */
25097 /* Override any gcc2 internal prototype to avoid an error. */
25101 /* We use char because int might match the return type of a gcc2
25102 builtin and then its argument prototype would still apply. */
25112 rm -f conftest.$ac_objext conftest$ac_exeext
25113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25114 (eval $ac_link) 2>conftest.er1
25116 grep -v '^ *+' conftest.er1 >conftest.err
25118 cat conftest.err >&5
25119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25120 (exit $ac_status); } &&
25121 { ac_try='test -z "$ac_c_werror_flag"
25122 || test ! -s conftest.err'
25123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25124 (eval $ac_try) 2>&5
25126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127 (exit $ac_status); }; } &&
25128 { ac_try='test -s conftest$ac_exeext'
25129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25130 (eval $ac_try) 2>&5
25132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); }; }; then
25134 ac_cv_lib_elf_elf_begin=yes
25136 echo "$as_me: failed program was:" >&5
25137 sed 's/^/| /' conftest.$ac_ext >&5
25139 ac_cv_lib_elf_elf_begin=no
25141 rm -f conftest.err conftest.$ac_objext \
25142 conftest$ac_exeext conftest.$ac_ext
25143 LIBS=$ac_check_lib_save_LIBS
25145 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25146 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25147 if test $ac_cv_lib_elf_elf_begin = yes; then
25148 cat >>confdefs.h <<_ACEOF
25149 #define HAVE_LIBELF 1
25157 echo "$as_me:$LINENO: checking for sin in -lm" >&5
25158 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25159 if test "${ac_cv_lib_m_sin+set}" = set; then
25160 echo $ECHO_N "(cached) $ECHO_C" >&6
25162 ac_check_lib_save_LIBS=$LIBS
25164 cat >conftest.$ac_ext <<_ACEOF
25167 cat confdefs.h >>conftest.$ac_ext
25168 cat >>conftest.$ac_ext <<_ACEOF
25169 /* end confdefs.h. */
25171 /* Override any gcc2 internal prototype to avoid an error. */
25175 /* We use char because int might match the return type of a gcc2
25176 builtin and then its argument prototype would still apply. */
25186 rm -f conftest.$ac_objext conftest$ac_exeext
25187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25188 (eval $ac_link) 2>conftest.er1
25190 grep -v '^ *+' conftest.er1 >conftest.err
25192 cat conftest.err >&5
25193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); } &&
25195 { ac_try='test -z "$ac_c_werror_flag"
25196 || test ! -s conftest.err'
25197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25198 (eval $ac_try) 2>&5
25200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201 (exit $ac_status); }; } &&
25202 { ac_try='test -s conftest$ac_exeext'
25203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25204 (eval $ac_try) 2>&5
25206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); }; }; then
25208 ac_cv_lib_m_sin=yes
25210 echo "$as_me: failed program was:" >&5
25211 sed 's/^/| /' conftest.$ac_ext >&5
25215 rm -f conftest.err conftest.$ac_objext \
25216 conftest$ac_exeext conftest.$ac_ext
25217 LIBS=$ac_check_lib_save_LIBS
25219 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25220 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25221 if test $ac_cv_lib_m_sin = yes; then
25222 cat >>confdefs.h <<_ACEOF
25223 #define HAVE_LIBM 1
25230 if test "$llvm_cv_os_type" == "MingW" ; then
25232 echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25233 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6
25234 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25235 echo $ECHO_N "(cached) $ECHO_C" >&6
25237 ac_check_lib_save_LIBS=$LIBS
25238 LIBS="-limagehlp $LIBS"
25239 cat >conftest.$ac_ext <<_ACEOF
25242 cat confdefs.h >>conftest.$ac_ext
25243 cat >>conftest.$ac_ext <<_ACEOF
25244 /* end confdefs.h. */
25255 rm -f conftest.$ac_objext conftest$ac_exeext
25256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25257 (eval $ac_link) 2>conftest.er1
25259 grep -v '^ *+' conftest.er1 >conftest.err
25261 cat conftest.err >&5
25262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263 (exit $ac_status); } &&
25264 { ac_try='test -z "$ac_c_werror_flag"
25265 || test ! -s conftest.err'
25266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25267 (eval $ac_try) 2>&5
25269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270 (exit $ac_status); }; } &&
25271 { ac_try='test -s conftest$ac_exeext'
25272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25273 (eval $ac_try) 2>&5
25275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); }; }; then
25277 ac_cv_lib_imagehlp_main=yes
25279 echo "$as_me: failed program was:" >&5
25280 sed 's/^/| /' conftest.$ac_ext >&5
25282 ac_cv_lib_imagehlp_main=no
25284 rm -f conftest.err conftest.$ac_objext \
25285 conftest$ac_exeext conftest.$ac_ext
25286 LIBS=$ac_check_lib_save_LIBS
25288 echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25289 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6
25290 if test $ac_cv_lib_imagehlp_main = yes; then
25291 cat >>confdefs.h <<_ACEOF
25292 #define HAVE_LIBIMAGEHLP 1
25295 LIBS="-limagehlp $LIBS"
25300 echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25301 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6
25302 if test "${ac_cv_lib_psapi_main+set}" = set; then
25303 echo $ECHO_N "(cached) $ECHO_C" >&6
25305 ac_check_lib_save_LIBS=$LIBS
25306 LIBS="-lpsapi $LIBS"
25307 cat >conftest.$ac_ext <<_ACEOF
25310 cat confdefs.h >>conftest.$ac_ext
25311 cat >>conftest.$ac_ext <<_ACEOF
25312 /* end confdefs.h. */
25323 rm -f conftest.$ac_objext conftest$ac_exeext
25324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25325 (eval $ac_link) 2>conftest.er1
25327 grep -v '^ *+' conftest.er1 >conftest.err
25329 cat conftest.err >&5
25330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331 (exit $ac_status); } &&
25332 { ac_try='test -z "$ac_c_werror_flag"
25333 || test ! -s conftest.err'
25334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25335 (eval $ac_try) 2>&5
25337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338 (exit $ac_status); }; } &&
25339 { ac_try='test -s conftest$ac_exeext'
25340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25341 (eval $ac_try) 2>&5
25343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); }; }; then
25345 ac_cv_lib_psapi_main=yes
25347 echo "$as_me: failed program was:" >&5
25348 sed 's/^/| /' conftest.$ac_ext >&5
25350 ac_cv_lib_psapi_main=no
25352 rm -f conftest.err conftest.$ac_objext \
25353 conftest$ac_exeext conftest.$ac_ext
25354 LIBS=$ac_check_lib_save_LIBS
25356 echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25357 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6
25358 if test $ac_cv_lib_psapi_main = yes; then
25359 cat >>confdefs.h <<_ACEOF
25360 #define HAVE_LIBPSAPI 1
25363 LIBS="-lpsapi $LIBS"
25369 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25370 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25371 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25372 echo $ECHO_N "(cached) $ECHO_C" >&6
25374 ac_func_search_save_LIBS=$LIBS
25375 ac_cv_search_lt_dlopen=no
25376 cat >conftest.$ac_ext <<_ACEOF
25379 cat confdefs.h >>conftest.$ac_ext
25380 cat >>conftest.$ac_ext <<_ACEOF
25381 /* end confdefs.h. */
25383 /* Override any gcc2 internal prototype to avoid an error. */
25387 /* We use char because int might match the return type of a gcc2
25388 builtin and then its argument prototype would still apply. */
25398 rm -f conftest.$ac_objext conftest$ac_exeext
25399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25400 (eval $ac_link) 2>conftest.er1
25402 grep -v '^ *+' conftest.er1 >conftest.err
25404 cat conftest.err >&5
25405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406 (exit $ac_status); } &&
25407 { ac_try='test -z "$ac_c_werror_flag"
25408 || test ! -s conftest.err'
25409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25410 (eval $ac_try) 2>&5
25412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413 (exit $ac_status); }; } &&
25414 { ac_try='test -s conftest$ac_exeext'
25415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25416 (eval $ac_try) 2>&5
25418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419 (exit $ac_status); }; }; then
25420 ac_cv_search_lt_dlopen="none required"
25422 echo "$as_me: failed program was:" >&5
25423 sed 's/^/| /' conftest.$ac_ext >&5
25426 rm -f conftest.err conftest.$ac_objext \
25427 conftest$ac_exeext conftest.$ac_ext
25428 if test "$ac_cv_search_lt_dlopen" = no; then
25429 for ac_lib in ltdl; do
25430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25431 cat >conftest.$ac_ext <<_ACEOF
25434 cat confdefs.h >>conftest.$ac_ext
25435 cat >>conftest.$ac_ext <<_ACEOF
25436 /* end confdefs.h. */
25438 /* Override any gcc2 internal prototype to avoid an error. */
25442 /* We use char because int might match the return type of a gcc2
25443 builtin and then its argument prototype would still apply. */
25453 rm -f conftest.$ac_objext conftest$ac_exeext
25454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25455 (eval $ac_link) 2>conftest.er1
25457 grep -v '^ *+' conftest.er1 >conftest.err
25459 cat conftest.err >&5
25460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461 (exit $ac_status); } &&
25462 { ac_try='test -z "$ac_c_werror_flag"
25463 || test ! -s conftest.err'
25464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25465 (eval $ac_try) 2>&5
25467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468 (exit $ac_status); }; } &&
25469 { ac_try='test -s conftest$ac_exeext'
25470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25471 (eval $ac_try) 2>&5
25473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25474 (exit $ac_status); }; }; then
25475 ac_cv_search_lt_dlopen="-l$ac_lib"
25478 echo "$as_me: failed program was:" >&5
25479 sed 's/^/| /' conftest.$ac_ext >&5
25482 rm -f conftest.err conftest.$ac_objext \
25483 conftest$ac_exeext conftest.$ac_ext
25486 LIBS=$ac_func_search_save_LIBS
25488 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25489 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25490 if test "$ac_cv_search_lt_dlopen" != no; then
25491 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25493 cat >>confdefs.h <<\_ACEOF
25494 #define HAVE_LT_DLOPEN 1
25498 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25499 not be available" >&5
25500 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25501 not be available" >&2;}
25505 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25506 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25507 if test "${ac_cv_search_dlopen+set}" = set; then
25508 echo $ECHO_N "(cached) $ECHO_C" >&6
25510 ac_func_search_save_LIBS=$LIBS
25511 ac_cv_search_dlopen=no
25512 cat >conftest.$ac_ext <<_ACEOF
25515 cat confdefs.h >>conftest.$ac_ext
25516 cat >>conftest.$ac_ext <<_ACEOF
25517 /* end confdefs.h. */
25519 /* Override any gcc2 internal prototype to avoid an error. */
25523 /* We use char because int might match the return type of a gcc2
25524 builtin and then its argument prototype would still apply. */
25534 rm -f conftest.$ac_objext conftest$ac_exeext
25535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25536 (eval $ac_link) 2>conftest.er1
25538 grep -v '^ *+' conftest.er1 >conftest.err
25540 cat conftest.err >&5
25541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); } &&
25543 { ac_try='test -z "$ac_c_werror_flag"
25544 || test ! -s conftest.err'
25545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25546 (eval $ac_try) 2>&5
25548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25549 (exit $ac_status); }; } &&
25550 { ac_try='test -s conftest$ac_exeext'
25551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25552 (eval $ac_try) 2>&5
25554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555 (exit $ac_status); }; }; then
25556 ac_cv_search_dlopen="none required"
25558 echo "$as_me: failed program was:" >&5
25559 sed 's/^/| /' conftest.$ac_ext >&5
25562 rm -f conftest.err conftest.$ac_objext \
25563 conftest$ac_exeext conftest.$ac_ext
25564 if test "$ac_cv_search_dlopen" = no; then
25565 for ac_lib in dl; do
25566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25567 cat >conftest.$ac_ext <<_ACEOF
25570 cat confdefs.h >>conftest.$ac_ext
25571 cat >>conftest.$ac_ext <<_ACEOF
25572 /* end confdefs.h. */
25574 /* Override any gcc2 internal prototype to avoid an error. */
25578 /* We use char because int might match the return type of a gcc2
25579 builtin and then its argument prototype would still apply. */
25589 rm -f conftest.$ac_objext conftest$ac_exeext
25590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25591 (eval $ac_link) 2>conftest.er1
25593 grep -v '^ *+' conftest.er1 >conftest.err
25595 cat conftest.err >&5
25596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); } &&
25598 { ac_try='test -z "$ac_c_werror_flag"
25599 || test ! -s conftest.err'
25600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25601 (eval $ac_try) 2>&5
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); }; } &&
25605 { ac_try='test -s conftest$ac_exeext'
25606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25607 (eval $ac_try) 2>&5
25609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610 (exit $ac_status); }; }; then
25611 ac_cv_search_dlopen="-l$ac_lib"
25614 echo "$as_me: failed program was:" >&5
25615 sed 's/^/| /' conftest.$ac_ext >&5
25618 rm -f conftest.err conftest.$ac_objext \
25619 conftest$ac_exeext conftest.$ac_ext
25622 LIBS=$ac_func_search_save_LIBS
25624 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25625 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25626 if test "$ac_cv_search_dlopen" != no; then
25627 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25629 cat >>confdefs.h <<\_ACEOF
25630 #define HAVE_DLOPEN 1
25634 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25635 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25639 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25640 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25641 if test "${ac_cv_search_mallinfo+set}" = set; then
25642 echo $ECHO_N "(cached) $ECHO_C" >&6
25644 ac_func_search_save_LIBS=$LIBS
25645 ac_cv_search_mallinfo=no
25646 cat >conftest.$ac_ext <<_ACEOF
25649 cat confdefs.h >>conftest.$ac_ext
25650 cat >>conftest.$ac_ext <<_ACEOF
25651 /* end confdefs.h. */
25653 /* Override any gcc2 internal prototype to avoid an error. */
25657 /* We use char because int might match the return type of a gcc2
25658 builtin and then its argument prototype would still apply. */
25668 rm -f conftest.$ac_objext conftest$ac_exeext
25669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25670 (eval $ac_link) 2>conftest.er1
25672 grep -v '^ *+' conftest.er1 >conftest.err
25674 cat conftest.err >&5
25675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676 (exit $ac_status); } &&
25677 { ac_try='test -z "$ac_c_werror_flag"
25678 || test ! -s conftest.err'
25679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25680 (eval $ac_try) 2>&5
25682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); }; } &&
25684 { ac_try='test -s conftest$ac_exeext'
25685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25686 (eval $ac_try) 2>&5
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); }; }; then
25690 ac_cv_search_mallinfo="none required"
25692 echo "$as_me: failed program was:" >&5
25693 sed 's/^/| /' conftest.$ac_ext >&5
25696 rm -f conftest.err conftest.$ac_objext \
25697 conftest$ac_exeext conftest.$ac_ext
25698 if test "$ac_cv_search_mallinfo" = no; then
25699 for ac_lib in malloc; do
25700 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25701 cat >conftest.$ac_ext <<_ACEOF
25704 cat confdefs.h >>conftest.$ac_ext
25705 cat >>conftest.$ac_ext <<_ACEOF
25706 /* end confdefs.h. */
25708 /* Override any gcc2 internal prototype to avoid an error. */
25712 /* We use char because int might match the return type of a gcc2
25713 builtin and then its argument prototype would still apply. */
25723 rm -f conftest.$ac_objext conftest$ac_exeext
25724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25725 (eval $ac_link) 2>conftest.er1
25727 grep -v '^ *+' conftest.er1 >conftest.err
25729 cat conftest.err >&5
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); } &&
25732 { ac_try='test -z "$ac_c_werror_flag"
25733 || test ! -s conftest.err'
25734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25735 (eval $ac_try) 2>&5
25737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); }; } &&
25739 { ac_try='test -s conftest$ac_exeext'
25740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25741 (eval $ac_try) 2>&5
25743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744 (exit $ac_status); }; }; then
25745 ac_cv_search_mallinfo="-l$ac_lib"
25748 echo "$as_me: failed program was:" >&5
25749 sed 's/^/| /' conftest.$ac_ext >&5
25752 rm -f conftest.err conftest.$ac_objext \
25753 conftest$ac_exeext conftest.$ac_ext
25756 LIBS=$ac_func_search_save_LIBS
25758 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25759 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25760 if test "$ac_cv_search_mallinfo" != no; then
25761 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25763 cat >>confdefs.h <<\_ACEOF
25764 #define HAVE_MALLINFO 1
25770 if test "$ENABLE_THREADS" -eq 1 ; then
25772 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25773 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25774 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25775 echo $ECHO_N "(cached) $ECHO_C" >&6
25777 ac_check_lib_save_LIBS=$LIBS
25778 LIBS="-lpthread $LIBS"
25779 cat >conftest.$ac_ext <<_ACEOF
25782 cat confdefs.h >>conftest.$ac_ext
25783 cat >>conftest.$ac_ext <<_ACEOF
25784 /* end confdefs.h. */
25786 /* Override any gcc2 internal prototype to avoid an error. */
25790 /* We use char because int might match the return type of a gcc2
25791 builtin and then its argument prototype would still apply. */
25792 char pthread_mutex_init ();
25796 pthread_mutex_init ();
25801 rm -f conftest.$ac_objext conftest$ac_exeext
25802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25803 (eval $ac_link) 2>conftest.er1
25805 grep -v '^ *+' conftest.er1 >conftest.err
25807 cat conftest.err >&5
25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809 (exit $ac_status); } &&
25810 { ac_try='test -z "$ac_c_werror_flag"
25811 || test ! -s conftest.err'
25812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25813 (eval $ac_try) 2>&5
25815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816 (exit $ac_status); }; } &&
25817 { ac_try='test -s conftest$ac_exeext'
25818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25819 (eval $ac_try) 2>&5
25821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822 (exit $ac_status); }; }; then
25823 ac_cv_lib_pthread_pthread_mutex_init=yes
25825 echo "$as_me: failed program was:" >&5
25826 sed 's/^/| /' conftest.$ac_ext >&5
25828 ac_cv_lib_pthread_pthread_mutex_init=no
25830 rm -f conftest.err conftest.$ac_objext \
25831 conftest$ac_exeext conftest.$ac_ext
25832 LIBS=$ac_check_lib_save_LIBS
25834 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25835 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25836 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25837 cat >>confdefs.h <<_ACEOF
25838 #define HAVE_LIBPTHREAD 1
25841 LIBS="-lpthread $LIBS"
25845 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25846 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25847 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25848 echo $ECHO_N "(cached) $ECHO_C" >&6
25850 ac_func_search_save_LIBS=$LIBS
25851 ac_cv_search_pthread_mutex_lock=no
25852 cat >conftest.$ac_ext <<_ACEOF
25855 cat confdefs.h >>conftest.$ac_ext
25856 cat >>conftest.$ac_ext <<_ACEOF
25857 /* end confdefs.h. */
25859 /* Override any gcc2 internal prototype to avoid an error. */
25863 /* We use char because int might match the return type of a gcc2
25864 builtin and then its argument prototype would still apply. */
25865 char pthread_mutex_lock ();
25869 pthread_mutex_lock ();
25874 rm -f conftest.$ac_objext conftest$ac_exeext
25875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25876 (eval $ac_link) 2>conftest.er1
25878 grep -v '^ *+' conftest.er1 >conftest.err
25880 cat conftest.err >&5
25881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); } &&
25883 { ac_try='test -z "$ac_c_werror_flag"
25884 || test ! -s conftest.err'
25885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25886 (eval $ac_try) 2>&5
25888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889 (exit $ac_status); }; } &&
25890 { ac_try='test -s conftest$ac_exeext'
25891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25892 (eval $ac_try) 2>&5
25894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895 (exit $ac_status); }; }; then
25896 ac_cv_search_pthread_mutex_lock="none required"
25898 echo "$as_me: failed program was:" >&5
25899 sed 's/^/| /' conftest.$ac_ext >&5
25902 rm -f conftest.err conftest.$ac_objext \
25903 conftest$ac_exeext conftest.$ac_ext
25904 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25905 for ac_lib in pthread; do
25906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25907 cat >conftest.$ac_ext <<_ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h. */
25914 /* Override any gcc2 internal prototype to avoid an error. */
25918 /* We use char because int might match the return type of a gcc2
25919 builtin and then its argument prototype would still apply. */
25920 char pthread_mutex_lock ();
25924 pthread_mutex_lock ();
25929 rm -f conftest.$ac_objext conftest$ac_exeext
25930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25931 (eval $ac_link) 2>conftest.er1
25933 grep -v '^ *+' conftest.er1 >conftest.err
25935 cat conftest.err >&5
25936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); } &&
25938 { ac_try='test -z "$ac_c_werror_flag"
25939 || test ! -s conftest.err'
25940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25941 (eval $ac_try) 2>&5
25943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); }; } &&
25945 { ac_try='test -s conftest$ac_exeext'
25946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25947 (eval $ac_try) 2>&5
25949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950 (exit $ac_status); }; }; then
25951 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25954 echo "$as_me: failed program was:" >&5
25955 sed 's/^/| /' conftest.$ac_ext >&5
25958 rm -f conftest.err conftest.$ac_objext \
25959 conftest$ac_exeext conftest.$ac_ext
25962 LIBS=$ac_func_search_save_LIBS
25964 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25965 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25966 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25967 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25969 cat >>confdefs.h <<\_ACEOF
25970 #define HAVE_PTHREAD_MUTEX_LOCK 1
25983 ac_header_dirent=no
25984 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25985 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25986 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25987 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25989 echo $ECHO_N "(cached) $ECHO_C" >&6
25991 cat >conftest.$ac_ext <<_ACEOF
25994 cat confdefs.h >>conftest.$ac_ext
25995 cat >>conftest.$ac_ext <<_ACEOF
25996 /* end confdefs.h. */
25997 #include <sys/types.h>
26009 rm -f conftest.$ac_objext
26010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26011 (eval $ac_compile) 2>conftest.er1
26013 grep -v '^ *+' conftest.er1 >conftest.err
26015 cat conftest.err >&5
26016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017 (exit $ac_status); } &&
26018 { ac_try='test -z "$ac_c_werror_flag"
26019 || test ! -s conftest.err'
26020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26021 (eval $ac_try) 2>&5
26023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); }; } &&
26025 { ac_try='test -s conftest.$ac_objext'
26026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26027 (eval $ac_try) 2>&5
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); }; }; then
26031 eval "$as_ac_Header=yes"
26033 echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.$ac_ext >&5
26036 eval "$as_ac_Header=no"
26038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26043 cat >>confdefs.h <<_ACEOF
26044 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26047 ac_header_dirent=$ac_hdr; break
26051 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26052 if test $ac_header_dirent = dirent.h; then
26053 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26054 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26055 if test "${ac_cv_search_opendir+set}" = set; then
26056 echo $ECHO_N "(cached) $ECHO_C" >&6
26058 ac_func_search_save_LIBS=$LIBS
26059 ac_cv_search_opendir=no
26060 cat >conftest.$ac_ext <<_ACEOF
26063 cat confdefs.h >>conftest.$ac_ext
26064 cat >>conftest.$ac_ext <<_ACEOF
26065 /* end confdefs.h. */
26067 /* Override any gcc2 internal prototype to avoid an error. */
26071 /* We use char because int might match the return type of a gcc2
26072 builtin and then its argument prototype would still apply. */
26082 rm -f conftest.$ac_objext conftest$ac_exeext
26083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26084 (eval $ac_link) 2>conftest.er1
26086 grep -v '^ *+' conftest.er1 >conftest.err
26088 cat conftest.err >&5
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090 (exit $ac_status); } &&
26091 { ac_try='test -z "$ac_c_werror_flag"
26092 || test ! -s conftest.err'
26093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094 (eval $ac_try) 2>&5
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); }; } &&
26098 { ac_try='test -s conftest$ac_exeext'
26099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26100 (eval $ac_try) 2>&5
26102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103 (exit $ac_status); }; }; then
26104 ac_cv_search_opendir="none required"
26106 echo "$as_me: failed program was:" >&5
26107 sed 's/^/| /' conftest.$ac_ext >&5
26110 rm -f conftest.err conftest.$ac_objext \
26111 conftest$ac_exeext conftest.$ac_ext
26112 if test "$ac_cv_search_opendir" = no; then
26113 for ac_lib in dir; do
26114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26115 cat >conftest.$ac_ext <<_ACEOF
26118 cat confdefs.h >>conftest.$ac_ext
26119 cat >>conftest.$ac_ext <<_ACEOF
26120 /* end confdefs.h. */
26122 /* Override any gcc2 internal prototype to avoid an error. */
26126 /* We use char because int might match the return type of a gcc2
26127 builtin and then its argument prototype would still apply. */
26137 rm -f conftest.$ac_objext conftest$ac_exeext
26138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26139 (eval $ac_link) 2>conftest.er1
26141 grep -v '^ *+' conftest.er1 >conftest.err
26143 cat conftest.err >&5
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); } &&
26146 { ac_try='test -z "$ac_c_werror_flag"
26147 || test ! -s conftest.err'
26148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26149 (eval $ac_try) 2>&5
26151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152 (exit $ac_status); }; } &&
26153 { ac_try='test -s conftest$ac_exeext'
26154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26155 (eval $ac_try) 2>&5
26157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158 (exit $ac_status); }; }; then
26159 ac_cv_search_opendir="-l$ac_lib"
26162 echo "$as_me: failed program was:" >&5
26163 sed 's/^/| /' conftest.$ac_ext >&5
26166 rm -f conftest.err conftest.$ac_objext \
26167 conftest$ac_exeext conftest.$ac_ext
26170 LIBS=$ac_func_search_save_LIBS
26172 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26173 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26174 if test "$ac_cv_search_opendir" != no; then
26175 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26180 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26181 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26182 if test "${ac_cv_search_opendir+set}" = set; then
26183 echo $ECHO_N "(cached) $ECHO_C" >&6
26185 ac_func_search_save_LIBS=$LIBS
26186 ac_cv_search_opendir=no
26187 cat >conftest.$ac_ext <<_ACEOF
26190 cat confdefs.h >>conftest.$ac_ext
26191 cat >>conftest.$ac_ext <<_ACEOF
26192 /* end confdefs.h. */
26194 /* Override any gcc2 internal prototype to avoid an error. */
26198 /* We use char because int might match the return type of a gcc2
26199 builtin and then its argument prototype would still apply. */
26209 rm -f conftest.$ac_objext conftest$ac_exeext
26210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26211 (eval $ac_link) 2>conftest.er1
26213 grep -v '^ *+' conftest.er1 >conftest.err
26215 cat conftest.err >&5
26216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217 (exit $ac_status); } &&
26218 { ac_try='test -z "$ac_c_werror_flag"
26219 || test ! -s conftest.err'
26220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26221 (eval $ac_try) 2>&5
26223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224 (exit $ac_status); }; } &&
26225 { ac_try='test -s conftest$ac_exeext'
26226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26227 (eval $ac_try) 2>&5
26229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26230 (exit $ac_status); }; }; then
26231 ac_cv_search_opendir="none required"
26233 echo "$as_me: failed program was:" >&5
26234 sed 's/^/| /' conftest.$ac_ext >&5
26237 rm -f conftest.err conftest.$ac_objext \
26238 conftest$ac_exeext conftest.$ac_ext
26239 if test "$ac_cv_search_opendir" = no; then
26240 for ac_lib in x; do
26241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26242 cat >conftest.$ac_ext <<_ACEOF
26245 cat confdefs.h >>conftest.$ac_ext
26246 cat >>conftest.$ac_ext <<_ACEOF
26247 /* end confdefs.h. */
26249 /* Override any gcc2 internal prototype to avoid an error. */
26253 /* We use char because int might match the return type of a gcc2
26254 builtin and then its argument prototype would still apply. */
26264 rm -f conftest.$ac_objext conftest$ac_exeext
26265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26266 (eval $ac_link) 2>conftest.er1
26268 grep -v '^ *+' conftest.er1 >conftest.err
26270 cat conftest.err >&5
26271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272 (exit $ac_status); } &&
26273 { ac_try='test -z "$ac_c_werror_flag"
26274 || test ! -s conftest.err'
26275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26276 (eval $ac_try) 2>&5
26278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26279 (exit $ac_status); }; } &&
26280 { ac_try='test -s conftest$ac_exeext'
26281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26282 (eval $ac_try) 2>&5
26284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26285 (exit $ac_status); }; }; then
26286 ac_cv_search_opendir="-l$ac_lib"
26289 echo "$as_me: failed program was:" >&5
26290 sed 's/^/| /' conftest.$ac_ext >&5
26293 rm -f conftest.err conftest.$ac_objext \
26294 conftest$ac_exeext conftest.$ac_ext
26297 LIBS=$ac_func_search_save_LIBS
26299 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26300 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26301 if test "$ac_cv_search_opendir" != no; then
26302 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26308 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26309 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26310 if test "${ac_cv_header_mmap_anon+set}" = set; then
26311 echo $ECHO_N "(cached) $ECHO_C" >&6
26314 ac_cpp='$CPP $CPPFLAGS'
26315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26319 cat >conftest.$ac_ext <<_ACEOF
26322 cat confdefs.h >>conftest.$ac_ext
26323 cat >>conftest.$ac_ext <<_ACEOF
26324 /* end confdefs.h. */
26325 #include <sys/mman.h>
26326 #include <unistd.h>
26331 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26336 rm -f conftest.$ac_objext
26337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26338 (eval $ac_compile) 2>conftest.er1
26340 grep -v '^ *+' conftest.er1 >conftest.err
26342 cat conftest.err >&5
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); } &&
26345 { ac_try='test -z "$ac_c_werror_flag"
26346 || test ! -s conftest.err'
26347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26348 (eval $ac_try) 2>&5
26350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351 (exit $ac_status); }; } &&
26352 { ac_try='test -s conftest.$ac_objext'
26353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26354 (eval $ac_try) 2>&5
26356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357 (exit $ac_status); }; }; then
26358 ac_cv_header_mmap_anon=yes
26360 echo "$as_me: failed program was:" >&5
26361 sed 's/^/| /' conftest.$ac_ext >&5
26363 ac_cv_header_mmap_anon=no
26365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26367 ac_cpp='$CPP $CPPFLAGS'
26368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26374 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26375 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26376 if test "$ac_cv_header_mmap_anon" = yes; then
26378 cat >>confdefs.h <<\_ACEOF
26379 #define HAVE_MMAP_ANONYMOUS 1
26384 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26385 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26386 if test "${ac_cv_header_stat_broken+set}" = set; then
26387 echo $ECHO_N "(cached) $ECHO_C" >&6
26389 cat >conftest.$ac_ext <<_ACEOF
26392 cat confdefs.h >>conftest.$ac_ext
26393 cat >>conftest.$ac_ext <<_ACEOF
26394 /* end confdefs.h. */
26395 #include <sys/types.h>
26396 #include <sys/stat.h>
26398 #if defined(S_ISBLK) && defined(S_IFDIR)
26399 # if S_ISBLK (S_IFDIR)
26404 #if defined(S_ISBLK) && defined(S_IFCHR)
26405 # if S_ISBLK (S_IFCHR)
26410 #if defined(S_ISLNK) && defined(S_IFREG)
26411 # if S_ISLNK (S_IFREG)
26416 #if defined(S_ISSOCK) && defined(S_IFREG)
26417 # if S_ISSOCK (S_IFREG)
26423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26424 $EGREP "You lose" >/dev/null 2>&1; then
26425 ac_cv_header_stat_broken=yes
26427 ac_cv_header_stat_broken=no
26432 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26433 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26434 if test $ac_cv_header_stat_broken = yes; then
26436 cat >>confdefs.h <<\_ACEOF
26437 #define STAT_MACROS_BROKEN 1
26442 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26443 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26444 if test "${ac_cv_header_stdc+set}" = set; then
26445 echo $ECHO_N "(cached) $ECHO_C" >&6
26447 cat >conftest.$ac_ext <<_ACEOF
26450 cat confdefs.h >>conftest.$ac_ext
26451 cat >>conftest.$ac_ext <<_ACEOF
26452 /* end confdefs.h. */
26453 #include <stdlib.h>
26454 #include <stdarg.h>
26455 #include <string.h>
26466 rm -f conftest.$ac_objext
26467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26468 (eval $ac_compile) 2>conftest.er1
26470 grep -v '^ *+' conftest.er1 >conftest.err
26472 cat conftest.err >&5
26473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474 (exit $ac_status); } &&
26475 { ac_try='test -z "$ac_c_werror_flag"
26476 || test ! -s conftest.err'
26477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26478 (eval $ac_try) 2>&5
26480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481 (exit $ac_status); }; } &&
26482 { ac_try='test -s conftest.$ac_objext'
26483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26484 (eval $ac_try) 2>&5
26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 (exit $ac_status); }; }; then
26488 ac_cv_header_stdc=yes
26490 echo "$as_me: failed program was:" >&5
26491 sed 's/^/| /' conftest.$ac_ext >&5
26493 ac_cv_header_stdc=no
26495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26497 if test $ac_cv_header_stdc = yes; then
26498 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26499 cat >conftest.$ac_ext <<_ACEOF
26502 cat confdefs.h >>conftest.$ac_ext
26503 cat >>conftest.$ac_ext <<_ACEOF
26504 /* end confdefs.h. */
26505 #include <string.h>
26508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26509 $EGREP "memchr" >/dev/null 2>&1; then
26512 ac_cv_header_stdc=no
26518 if test $ac_cv_header_stdc = yes; then
26519 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26520 cat >conftest.$ac_ext <<_ACEOF
26523 cat confdefs.h >>conftest.$ac_ext
26524 cat >>conftest.$ac_ext <<_ACEOF
26525 /* end confdefs.h. */
26526 #include <stdlib.h>
26529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26530 $EGREP "free" >/dev/null 2>&1; then
26533 ac_cv_header_stdc=no
26539 if test $ac_cv_header_stdc = yes; then
26540 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26541 if test "$cross_compiling" = yes; then
26544 cat >conftest.$ac_ext <<_ACEOF
26547 cat confdefs.h >>conftest.$ac_ext
26548 cat >>conftest.$ac_ext <<_ACEOF
26549 /* end confdefs.h. */
26551 #if ((' ' & 0x0FF) == 0x020)
26552 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26553 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26555 # define ISLOWER(c) \
26556 (('a' <= (c) && (c) <= 'i') \
26557 || ('j' <= (c) && (c) <= 'r') \
26558 || ('s' <= (c) && (c) <= 'z'))
26559 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26562 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26567 for (i = 0; i < 256; i++)
26568 if (XOR (islower (i), ISLOWER (i))
26569 || toupper (i) != TOUPPER (i))
26574 rm -f conftest$ac_exeext
26575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26576 (eval $ac_link) 2>&5
26578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26581 (eval $ac_try) 2>&5
26583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584 (exit $ac_status); }; }; then
26587 echo "$as_me: program exited with status $ac_status" >&5
26588 echo "$as_me: failed program was:" >&5
26589 sed 's/^/| /' conftest.$ac_ext >&5
26591 ( exit $ac_status )
26592 ac_cv_header_stdc=no
26594 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26598 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26599 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26600 if test $ac_cv_header_stdc = yes; then
26602 cat >>confdefs.h <<\_ACEOF
26603 #define STDC_HEADERS 1
26608 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26609 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26610 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26611 echo $ECHO_N "(cached) $ECHO_C" >&6
26613 cat >conftest.$ac_ext <<_ACEOF
26616 cat confdefs.h >>conftest.$ac_ext
26617 cat >>conftest.$ac_ext <<_ACEOF
26618 /* end confdefs.h. */
26619 #include <sys/types.h>
26620 #include <sys/wait.h>
26621 #ifndef WEXITSTATUS
26622 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26625 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26633 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26638 rm -f conftest.$ac_objext
26639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26640 (eval $ac_compile) 2>conftest.er1
26642 grep -v '^ *+' conftest.er1 >conftest.err
26644 cat conftest.err >&5
26645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646 (exit $ac_status); } &&
26647 { ac_try='test -z "$ac_c_werror_flag"
26648 || test ! -s conftest.err'
26649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26650 (eval $ac_try) 2>&5
26652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653 (exit $ac_status); }; } &&
26654 { ac_try='test -s conftest.$ac_objext'
26655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26656 (eval $ac_try) 2>&5
26658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659 (exit $ac_status); }; }; then
26660 ac_cv_header_sys_wait_h=yes
26662 echo "$as_me: failed program was:" >&5
26663 sed 's/^/| /' conftest.$ac_ext >&5
26665 ac_cv_header_sys_wait_h=no
26667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26669 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26670 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26671 if test $ac_cv_header_sys_wait_h = yes; then
26673 cat >>confdefs.h <<\_ACEOF
26674 #define HAVE_SYS_WAIT_H 1
26679 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26680 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26681 if test "${ac_cv_header_time+set}" = set; then
26682 echo $ECHO_N "(cached) $ECHO_C" >&6
26684 cat >conftest.$ac_ext <<_ACEOF
26687 cat confdefs.h >>conftest.$ac_ext
26688 cat >>conftest.$ac_ext <<_ACEOF
26689 /* end confdefs.h. */
26690 #include <sys/types.h>
26691 #include <sys/time.h>
26697 if ((struct tm *) 0)
26703 rm -f conftest.$ac_objext
26704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26705 (eval $ac_compile) 2>conftest.er1
26707 grep -v '^ *+' conftest.er1 >conftest.err
26709 cat conftest.err >&5
26710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26711 (exit $ac_status); } &&
26712 { ac_try='test -z "$ac_c_werror_flag"
26713 || test ! -s conftest.err'
26714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26715 (eval $ac_try) 2>&5
26717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718 (exit $ac_status); }; } &&
26719 { ac_try='test -s conftest.$ac_objext'
26720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26721 (eval $ac_try) 2>&5
26723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724 (exit $ac_status); }; }; then
26725 ac_cv_header_time=yes
26727 echo "$as_me: failed program was:" >&5
26728 sed 's/^/| /' conftest.$ac_ext >&5
26730 ac_cv_header_time=no
26732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26734 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26735 echo "${ECHO_T}$ac_cv_header_time" >&6
26736 if test $ac_cv_header_time = yes; then
26738 cat >>confdefs.h <<\_ACEOF
26739 #define TIME_WITH_SYS_TIME 1
26751 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26755 echo "$as_me:$LINENO: checking for $ac_header" >&5
26756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26758 echo $ECHO_N "(cached) $ECHO_C" >&6
26760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26763 # Is the header compilable?
26764 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26766 cat >conftest.$ac_ext <<_ACEOF
26769 cat confdefs.h >>conftest.$ac_ext
26770 cat >>conftest.$ac_ext <<_ACEOF
26771 /* end confdefs.h. */
26772 $ac_includes_default
26773 #include <$ac_header>
26775 rm -f conftest.$ac_objext
26776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26777 (eval $ac_compile) 2>conftest.er1
26779 grep -v '^ *+' conftest.er1 >conftest.err
26781 cat conftest.err >&5
26782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783 (exit $ac_status); } &&
26784 { ac_try='test -z "$ac_c_werror_flag"
26785 || test ! -s conftest.err'
26786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26787 (eval $ac_try) 2>&5
26789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790 (exit $ac_status); }; } &&
26791 { ac_try='test -s conftest.$ac_objext'
26792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26793 (eval $ac_try) 2>&5
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); }; }; then
26797 ac_header_compiler=yes
26799 echo "$as_me: failed program was:" >&5
26800 sed 's/^/| /' conftest.$ac_ext >&5
26802 ac_header_compiler=no
26804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26806 echo "${ECHO_T}$ac_header_compiler" >&6
26808 # Is the header present?
26809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26811 cat >conftest.$ac_ext <<_ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h. */
26817 #include <$ac_header>
26819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26822 grep -v '^ *+' conftest.er1 >conftest.err
26824 cat conftest.err >&5
26825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826 (exit $ac_status); } >/dev/null; then
26827 if test -s conftest.err; then
26828 ac_cpp_err=$ac_c_preproc_warn_flag
26829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26836 if test -z "$ac_cpp_err"; then
26837 ac_header_preproc=yes
26839 echo "$as_me: failed program was:" >&5
26840 sed 's/^/| /' conftest.$ac_ext >&5
26842 ac_header_preproc=no
26844 rm -f conftest.err conftest.$ac_ext
26845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26846 echo "${ECHO_T}$ac_header_preproc" >&6
26848 # So? What about this header?
26849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26855 ac_header_preproc=yes
26858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26872 ## ----------------------------------- ##
26873 ## Report this to llvmbugs@cs.uiuc.edu ##
26874 ## ----------------------------------- ##
26877 sed "s/^/$as_me: WARNING: /" >&2
26880 echo "$as_me:$LINENO: checking for $ac_header" >&5
26881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26883 echo $ECHO_N "(cached) $ECHO_C" >&6
26885 eval "$as_ac_Header=\$ac_header_preproc"
26887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26892 cat >>confdefs.h <<_ACEOF
26893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26906 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26910 echo "$as_me:$LINENO: checking for $ac_header" >&5
26911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26913 echo $ECHO_N "(cached) $ECHO_C" >&6
26915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26918 # Is the header compilable?
26919 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26921 cat >conftest.$ac_ext <<_ACEOF
26924 cat confdefs.h >>conftest.$ac_ext
26925 cat >>conftest.$ac_ext <<_ACEOF
26926 /* end confdefs.h. */
26927 $ac_includes_default
26928 #include <$ac_header>
26930 rm -f conftest.$ac_objext
26931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26932 (eval $ac_compile) 2>conftest.er1
26934 grep -v '^ *+' conftest.er1 >conftest.err
26936 cat conftest.err >&5
26937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); } &&
26939 { ac_try='test -z "$ac_c_werror_flag"
26940 || test ! -s conftest.err'
26941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26942 (eval $ac_try) 2>&5
26944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26945 (exit $ac_status); }; } &&
26946 { ac_try='test -s conftest.$ac_objext'
26947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26948 (eval $ac_try) 2>&5
26950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951 (exit $ac_status); }; }; then
26952 ac_header_compiler=yes
26954 echo "$as_me: failed program was:" >&5
26955 sed 's/^/| /' conftest.$ac_ext >&5
26957 ac_header_compiler=no
26959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26960 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26961 echo "${ECHO_T}$ac_header_compiler" >&6
26963 # Is the header present?
26964 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26966 cat >conftest.$ac_ext <<_ACEOF
26969 cat confdefs.h >>conftest.$ac_ext
26970 cat >>conftest.$ac_ext <<_ACEOF
26971 /* end confdefs.h. */
26972 #include <$ac_header>
26974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26977 grep -v '^ *+' conftest.er1 >conftest.err
26979 cat conftest.err >&5
26980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26981 (exit $ac_status); } >/dev/null; then
26982 if test -s conftest.err; then
26983 ac_cpp_err=$ac_c_preproc_warn_flag
26984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26991 if test -z "$ac_cpp_err"; then
26992 ac_header_preproc=yes
26994 echo "$as_me: failed program was:" >&5
26995 sed 's/^/| /' conftest.$ac_ext >&5
26997 ac_header_preproc=no
26999 rm -f conftest.err conftest.$ac_ext
27000 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27001 echo "${ECHO_T}$ac_header_preproc" >&6
27003 # So? What about this header?
27004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27010 ac_header_preproc=yes
27013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27016 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27020 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27027 ## ----------------------------------- ##
27028 ## Report this to llvmbugs@cs.uiuc.edu ##
27029 ## ----------------------------------- ##
27032 sed "s/^/$as_me: WARNING: /" >&2
27035 echo "$as_me:$LINENO: checking for $ac_header" >&5
27036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27038 echo $ECHO_N "(cached) $ECHO_C" >&6
27040 eval "$as_ac_Header=\$ac_header_preproc"
27042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27047 cat >>confdefs.h <<_ACEOF
27048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27060 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
27062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27064 echo "$as_me:$LINENO: checking for $ac_header" >&5
27065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27067 echo $ECHO_N "(cached) $ECHO_C" >&6
27069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27072 # Is the header compilable?
27073 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27074 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27075 cat >conftest.$ac_ext <<_ACEOF
27078 cat confdefs.h >>conftest.$ac_ext
27079 cat >>conftest.$ac_ext <<_ACEOF
27080 /* end confdefs.h. */
27081 $ac_includes_default
27082 #include <$ac_header>
27084 rm -f conftest.$ac_objext
27085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27086 (eval $ac_compile) 2>conftest.er1
27088 grep -v '^ *+' conftest.er1 >conftest.err
27090 cat conftest.err >&5
27091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092 (exit $ac_status); } &&
27093 { ac_try='test -z "$ac_c_werror_flag"
27094 || test ! -s conftest.err'
27095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27096 (eval $ac_try) 2>&5
27098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27099 (exit $ac_status); }; } &&
27100 { ac_try='test -s conftest.$ac_objext'
27101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27102 (eval $ac_try) 2>&5
27104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105 (exit $ac_status); }; }; then
27106 ac_header_compiler=yes
27108 echo "$as_me: failed program was:" >&5
27109 sed 's/^/| /' conftest.$ac_ext >&5
27111 ac_header_compiler=no
27113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27115 echo "${ECHO_T}$ac_header_compiler" >&6
27117 # Is the header present?
27118 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27120 cat >conftest.$ac_ext <<_ACEOF
27123 cat confdefs.h >>conftest.$ac_ext
27124 cat >>conftest.$ac_ext <<_ACEOF
27125 /* end confdefs.h. */
27126 #include <$ac_header>
27128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27131 grep -v '^ *+' conftest.er1 >conftest.err
27133 cat conftest.err >&5
27134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135 (exit $ac_status); } >/dev/null; then
27136 if test -s conftest.err; then
27137 ac_cpp_err=$ac_c_preproc_warn_flag
27138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27145 if test -z "$ac_cpp_err"; then
27146 ac_header_preproc=yes
27148 echo "$as_me: failed program was:" >&5
27149 sed 's/^/| /' conftest.$ac_ext >&5
27151 ac_header_preproc=no
27153 rm -f conftest.err conftest.$ac_ext
27154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27155 echo "${ECHO_T}$ac_header_preproc" >&6
27157 # So? What about this header?
27158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27160 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27163 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27164 ac_header_preproc=yes
27167 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27168 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27169 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27170 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27171 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27172 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27173 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27174 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27177 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27178 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27181 ## ----------------------------------- ##
27182 ## Report this to llvmbugs@cs.uiuc.edu ##
27183 ## ----------------------------------- ##
27186 sed "s/^/$as_me: WARNING: /" >&2
27189 echo "$as_me:$LINENO: checking for $ac_header" >&5
27190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27192 echo $ECHO_N "(cached) $ECHO_C" >&6
27194 eval "$as_ac_Header=\$ac_header_preproc"
27196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27201 cat >>confdefs.h <<_ACEOF
27202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27210 for ac_header in malloc/malloc.h
27212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27214 echo "$as_me:$LINENO: checking for $ac_header" >&5
27215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27217 echo $ECHO_N "(cached) $ECHO_C" >&6
27219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27222 # Is the header compilable?
27223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27225 cat >conftest.$ac_ext <<_ACEOF
27228 cat confdefs.h >>conftest.$ac_ext
27229 cat >>conftest.$ac_ext <<_ACEOF
27230 /* end confdefs.h. */
27231 $ac_includes_default
27232 #include <$ac_header>
27234 rm -f conftest.$ac_objext
27235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27236 (eval $ac_compile) 2>conftest.er1
27238 grep -v '^ *+' conftest.er1 >conftest.err
27240 cat conftest.err >&5
27241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242 (exit $ac_status); } &&
27243 { ac_try='test -z "$ac_c_werror_flag"
27244 || test ! -s conftest.err'
27245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27246 (eval $ac_try) 2>&5
27248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27249 (exit $ac_status); }; } &&
27250 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27256 ac_header_compiler=yes
27258 echo "$as_me: failed program was:" >&5
27259 sed 's/^/| /' conftest.$ac_ext >&5
27261 ac_header_compiler=no
27263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27265 echo "${ECHO_T}$ac_header_compiler" >&6
27267 # Is the header present?
27268 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27270 cat >conftest.$ac_ext <<_ACEOF
27273 cat confdefs.h >>conftest.$ac_ext
27274 cat >>conftest.$ac_ext <<_ACEOF
27275 /* end confdefs.h. */
27276 #include <$ac_header>
27278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27281 grep -v '^ *+' conftest.er1 >conftest.err
27283 cat conftest.err >&5
27284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285 (exit $ac_status); } >/dev/null; then
27286 if test -s conftest.err; then
27287 ac_cpp_err=$ac_c_preproc_warn_flag
27288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27295 if test -z "$ac_cpp_err"; then
27296 ac_header_preproc=yes
27298 echo "$as_me: failed program was:" >&5
27299 sed 's/^/| /' conftest.$ac_ext >&5
27301 ac_header_preproc=no
27303 rm -f conftest.err conftest.$ac_ext
27304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27305 echo "${ECHO_T}$ac_header_preproc" >&6
27307 # So? What about this header?
27308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27314 ac_header_preproc=yes
27317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27331 ## ----------------------------------- ##
27332 ## Report this to llvmbugs@cs.uiuc.edu ##
27333 ## ----------------------------------- ##
27336 sed "s/^/$as_me: WARNING: /" >&2
27339 echo "$as_me:$LINENO: checking for $ac_header" >&5
27340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27342 echo $ECHO_N "(cached) $ECHO_C" >&6
27344 eval "$as_ac_Header=\$ac_header_preproc"
27346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27351 cat >>confdefs.h <<_ACEOF
27352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27359 if test "$ENABLE_THREADS" -eq 1 ; then
27361 for ac_header in pthread.h
27363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27365 echo "$as_me:$LINENO: checking for $ac_header" >&5
27366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27368 echo $ECHO_N "(cached) $ECHO_C" >&6
27370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27373 # Is the header compilable?
27374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27376 cat >conftest.$ac_ext <<_ACEOF
27379 cat confdefs.h >>conftest.$ac_ext
27380 cat >>conftest.$ac_ext <<_ACEOF
27381 /* end confdefs.h. */
27382 $ac_includes_default
27383 #include <$ac_header>
27385 rm -f conftest.$ac_objext
27386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27387 (eval $ac_compile) 2>conftest.er1
27389 grep -v '^ *+' conftest.er1 >conftest.err
27391 cat conftest.err >&5
27392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393 (exit $ac_status); } &&
27394 { ac_try='test -z "$ac_c_werror_flag"
27395 || test ! -s conftest.err'
27396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27397 (eval $ac_try) 2>&5
27399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400 (exit $ac_status); }; } &&
27401 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27407 ac_header_compiler=yes
27409 echo "$as_me: failed program was:" >&5
27410 sed 's/^/| /' conftest.$ac_ext >&5
27412 ac_header_compiler=no
27414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27416 echo "${ECHO_T}$ac_header_compiler" >&6
27418 # Is the header present?
27419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27421 cat >conftest.$ac_ext <<_ACEOF
27424 cat confdefs.h >>conftest.$ac_ext
27425 cat >>conftest.$ac_ext <<_ACEOF
27426 /* end confdefs.h. */
27427 #include <$ac_header>
27429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27432 grep -v '^ *+' conftest.er1 >conftest.err
27434 cat conftest.err >&5
27435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436 (exit $ac_status); } >/dev/null; then
27437 if test -s conftest.err; then
27438 ac_cpp_err=$ac_c_preproc_warn_flag
27439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27446 if test -z "$ac_cpp_err"; then
27447 ac_header_preproc=yes
27449 echo "$as_me: failed program was:" >&5
27450 sed 's/^/| /' conftest.$ac_ext >&5
27452 ac_header_preproc=no
27454 rm -f conftest.err conftest.$ac_ext
27455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27456 echo "${ECHO_T}$ac_header_preproc" >&6
27458 # So? What about this header?
27459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27465 ac_header_preproc=yes
27468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27482 ## ----------------------------------- ##
27483 ## Report this to llvmbugs@cs.uiuc.edu ##
27484 ## ----------------------------------- ##
27487 sed "s/^/$as_me: WARNING: /" >&2
27490 echo "$as_me:$LINENO: checking for $ac_header" >&5
27491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27493 echo $ECHO_N "(cached) $ECHO_C" >&6
27495 eval "$as_ac_Header=\$ac_header_preproc"
27497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27502 cat >>confdefs.h <<_ACEOF
27503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27513 echo "$as_me:$LINENO: checking for pid_t" >&5
27514 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27515 if test "${ac_cv_type_pid_t+set}" = set; then
27516 echo $ECHO_N "(cached) $ECHO_C" >&6
27518 cat >conftest.$ac_ext <<_ACEOF
27521 cat confdefs.h >>conftest.$ac_ext
27522 cat >>conftest.$ac_ext <<_ACEOF
27523 /* end confdefs.h. */
27524 $ac_includes_default
27530 if (sizeof (pid_t))
27536 rm -f conftest.$ac_objext
27537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27538 (eval $ac_compile) 2>conftest.er1
27540 grep -v '^ *+' conftest.er1 >conftest.err
27542 cat conftest.err >&5
27543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544 (exit $ac_status); } &&
27545 { ac_try='test -z "$ac_c_werror_flag"
27546 || test ! -s conftest.err'
27547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27548 (eval $ac_try) 2>&5
27550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551 (exit $ac_status); }; } &&
27552 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27558 ac_cv_type_pid_t=yes
27560 echo "$as_me: failed program was:" >&5
27561 sed 's/^/| /' conftest.$ac_ext >&5
27563 ac_cv_type_pid_t=no
27565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27567 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27568 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27569 if test $ac_cv_type_pid_t = yes; then
27573 cat >>confdefs.h <<_ACEOF
27579 echo "$as_me:$LINENO: checking for size_t" >&5
27580 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27581 if test "${ac_cv_type_size_t+set}" = set; then
27582 echo $ECHO_N "(cached) $ECHO_C" >&6
27584 cat >conftest.$ac_ext <<_ACEOF
27587 cat confdefs.h >>conftest.$ac_ext
27588 cat >>conftest.$ac_ext <<_ACEOF
27589 /* end confdefs.h. */
27590 $ac_includes_default
27596 if (sizeof (size_t))
27602 rm -f conftest.$ac_objext
27603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27604 (eval $ac_compile) 2>conftest.er1
27606 grep -v '^ *+' conftest.er1 >conftest.err
27608 cat conftest.err >&5
27609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610 (exit $ac_status); } &&
27611 { ac_try='test -z "$ac_c_werror_flag"
27612 || test ! -s conftest.err'
27613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27614 (eval $ac_try) 2>&5
27616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617 (exit $ac_status); }; } &&
27618 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27624 ac_cv_type_size_t=yes
27626 echo "$as_me: failed program was:" >&5
27627 sed 's/^/| /' conftest.$ac_ext >&5
27629 ac_cv_type_size_t=no
27631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27633 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27634 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27635 if test $ac_cv_type_size_t = yes; then
27639 cat >>confdefs.h <<_ACEOF
27640 #define size_t unsigned
27645 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27646 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27647 if test "${ac_cv_type_signal+set}" = set; then
27648 echo $ECHO_N "(cached) $ECHO_C" >&6
27650 cat >conftest.$ac_ext <<_ACEOF
27653 cat confdefs.h >>conftest.$ac_ext
27654 cat >>conftest.$ac_ext <<_ACEOF
27655 /* end confdefs.h. */
27656 #include <sys/types.h>
27657 #include <signal.h>
27662 extern "C" void (*signal (int, void (*)(int)))(int);
27664 void (*signal ()) ();
27675 rm -f conftest.$ac_objext
27676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27677 (eval $ac_compile) 2>conftest.er1
27679 grep -v '^ *+' conftest.er1 >conftest.err
27681 cat conftest.err >&5
27682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683 (exit $ac_status); } &&
27684 { ac_try='test -z "$ac_c_werror_flag"
27685 || test ! -s conftest.err'
27686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27687 (eval $ac_try) 2>&5
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); }; } &&
27691 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27697 ac_cv_type_signal=void
27699 echo "$as_me: failed program was:" >&5
27700 sed 's/^/| /' conftest.$ac_ext >&5
27702 ac_cv_type_signal=int
27704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27706 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27707 echo "${ECHO_T}$ac_cv_type_signal" >&6
27709 cat >>confdefs.h <<_ACEOF
27710 #define RETSIGTYPE $ac_cv_type_signal
27714 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27715 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27716 if test "${ac_cv_struct_tm+set}" = set; then
27717 echo $ECHO_N "(cached) $ECHO_C" >&6
27719 cat >conftest.$ac_ext <<_ACEOF
27722 cat confdefs.h >>conftest.$ac_ext
27723 cat >>conftest.$ac_ext <<_ACEOF
27724 /* end confdefs.h. */
27725 #include <sys/types.h>
27731 struct tm *tp; tp->tm_sec;
27736 rm -f conftest.$ac_objext
27737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27738 (eval $ac_compile) 2>conftest.er1
27740 grep -v '^ *+' conftest.er1 >conftest.err
27742 cat conftest.err >&5
27743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27744 (exit $ac_status); } &&
27745 { ac_try='test -z "$ac_c_werror_flag"
27746 || test ! -s conftest.err'
27747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27748 (eval $ac_try) 2>&5
27750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751 (exit $ac_status); }; } &&
27752 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27758 ac_cv_struct_tm=time.h
27760 echo "$as_me: failed program was:" >&5
27761 sed 's/^/| /' conftest.$ac_ext >&5
27763 ac_cv_struct_tm=sys/time.h
27765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27767 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27768 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27769 if test $ac_cv_struct_tm = sys/time.h; then
27771 cat >>confdefs.h <<\_ACEOF
27772 #define TM_IN_SYS_TIME 1
27777 echo "$as_me:$LINENO: checking for int64_t" >&5
27778 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27779 if test "${ac_cv_type_int64_t+set}" = set; then
27780 echo $ECHO_N "(cached) $ECHO_C" >&6
27782 cat >conftest.$ac_ext <<_ACEOF
27785 cat confdefs.h >>conftest.$ac_ext
27786 cat >>conftest.$ac_ext <<_ACEOF
27787 /* end confdefs.h. */
27788 $ac_includes_default
27794 if (sizeof (int64_t))
27800 rm -f conftest.$ac_objext
27801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27802 (eval $ac_compile) 2>conftest.er1
27804 grep -v '^ *+' conftest.er1 >conftest.err
27806 cat conftest.err >&5
27807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808 (exit $ac_status); } &&
27809 { ac_try='test -z "$ac_c_werror_flag"
27810 || test ! -s conftest.err'
27811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27812 (eval $ac_try) 2>&5
27814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815 (exit $ac_status); }; } &&
27816 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27822 ac_cv_type_int64_t=yes
27824 echo "$as_me: failed program was:" >&5
27825 sed 's/^/| /' conftest.$ac_ext >&5
27827 ac_cv_type_int64_t=no
27829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27831 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27832 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27833 if test $ac_cv_type_int64_t = yes; then
27835 cat >>confdefs.h <<_ACEOF
27836 #define HAVE_INT64_T 1
27841 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27842 echo "$as_me: error: Type int64_t required but not found" >&2;}
27843 { (exit 1); exit 1; }; }
27846 echo "$as_me:$LINENO: checking for uint64_t" >&5
27847 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27848 if test "${ac_cv_type_uint64_t+set}" = set; then
27849 echo $ECHO_N "(cached) $ECHO_C" >&6
27851 cat >conftest.$ac_ext <<_ACEOF
27854 cat confdefs.h >>conftest.$ac_ext
27855 cat >>conftest.$ac_ext <<_ACEOF
27856 /* end confdefs.h. */
27857 $ac_includes_default
27861 if ((uint64_t *) 0)
27863 if (sizeof (uint64_t))
27869 rm -f conftest.$ac_objext
27870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27871 (eval $ac_compile) 2>conftest.er1
27873 grep -v '^ *+' conftest.er1 >conftest.err
27875 cat conftest.err >&5
27876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877 (exit $ac_status); } &&
27878 { ac_try='test -z "$ac_c_werror_flag"
27879 || test ! -s conftest.err'
27880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27881 (eval $ac_try) 2>&5
27883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884 (exit $ac_status); }; } &&
27885 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27891 ac_cv_type_uint64_t=yes
27893 echo "$as_me: failed program was:" >&5
27894 sed 's/^/| /' conftest.$ac_ext >&5
27896 ac_cv_type_uint64_t=no
27898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27900 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27901 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27902 if test $ac_cv_type_uint64_t = yes; then
27904 cat >>confdefs.h <<_ACEOF
27905 #define HAVE_UINT64_T 1
27910 echo "$as_me:$LINENO: checking for u_int64_t" >&5
27911 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27912 if test "${ac_cv_type_u_int64_t+set}" = set; then
27913 echo $ECHO_N "(cached) $ECHO_C" >&6
27915 cat >conftest.$ac_ext <<_ACEOF
27918 cat confdefs.h >>conftest.$ac_ext
27919 cat >>conftest.$ac_ext <<_ACEOF
27920 /* end confdefs.h. */
27921 $ac_includes_default
27925 if ((u_int64_t *) 0)
27927 if (sizeof (u_int64_t))
27933 rm -f conftest.$ac_objext
27934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27935 (eval $ac_compile) 2>conftest.er1
27937 grep -v '^ *+' conftest.er1 >conftest.err
27939 cat conftest.err >&5
27940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27941 (exit $ac_status); } &&
27942 { ac_try='test -z "$ac_c_werror_flag"
27943 || test ! -s conftest.err'
27944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27945 (eval $ac_try) 2>&5
27947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948 (exit $ac_status); }; } &&
27949 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27955 ac_cv_type_u_int64_t=yes
27957 echo "$as_me: failed program was:" >&5
27958 sed 's/^/| /' conftest.$ac_ext >&5
27960 ac_cv_type_u_int64_t=no
27962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27964 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27965 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27966 if test $ac_cv_type_u_int64_t = yes; then
27968 cat >>confdefs.h <<_ACEOF
27969 #define HAVE_U_INT64_T 1
27974 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27975 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27976 { (exit 1); exit 1; }; }
27990 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
27992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27993 echo "$as_me:$LINENO: checking for $ac_func" >&5
27994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27995 if eval "test \"\${$as_ac_var+set}\" = set"; then
27996 echo $ECHO_N "(cached) $ECHO_C" >&6
27998 cat >conftest.$ac_ext <<_ACEOF
28001 cat confdefs.h >>conftest.$ac_ext
28002 cat >>conftest.$ac_ext <<_ACEOF
28003 /* end confdefs.h. */
28004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28006 #define $ac_func innocuous_$ac_func
28008 /* System header to define __stub macros and hopefully few prototypes,
28009 which can conflict with char $ac_func (); below.
28010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28011 <limits.h> exists even on freestanding compilers. */
28014 # include <limits.h>
28016 # include <assert.h>
28021 /* Override any gcc2 internal prototype to avoid an error. */
28026 /* We use char because int might match the return type of a gcc2
28027 builtin and then its argument prototype would still apply. */
28029 /* The GNU C library defines this for functions which it implements
28030 to always fail with ENOSYS. Some functions are actually named
28031 something starting with __ and the normal name is an alias. */
28032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28035 char (*f) () = $ac_func;
28044 return f != $ac_func;
28049 rm -f conftest.$ac_objext conftest$ac_exeext
28050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28051 (eval $ac_link) 2>conftest.er1
28053 grep -v '^ *+' conftest.er1 >conftest.err
28055 cat conftest.err >&5
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); } &&
28058 { ac_try='test -z "$ac_c_werror_flag"
28059 || test ! -s conftest.err'
28060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28061 (eval $ac_try) 2>&5
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); }; } &&
28065 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28071 eval "$as_ac_var=yes"
28073 echo "$as_me: failed program was:" >&5
28074 sed 's/^/| /' conftest.$ac_ext >&5
28076 eval "$as_ac_var=no"
28078 rm -f conftest.err conftest.$ac_objext \
28079 conftest$ac_exeext conftest.$ac_ext
28081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28083 if test `eval echo '${'$as_ac_var'}'` = yes; then
28084 cat >>confdefs.h <<_ACEOF
28085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28097 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
28099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28100 echo "$as_me:$LINENO: checking for $ac_func" >&5
28101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28102 if eval "test \"\${$as_ac_var+set}\" = set"; then
28103 echo $ECHO_N "(cached) $ECHO_C" >&6
28105 cat >conftest.$ac_ext <<_ACEOF
28108 cat confdefs.h >>conftest.$ac_ext
28109 cat >>conftest.$ac_ext <<_ACEOF
28110 /* end confdefs.h. */
28111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28113 #define $ac_func innocuous_$ac_func
28115 /* System header to define __stub macros and hopefully few prototypes,
28116 which can conflict with char $ac_func (); below.
28117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28118 <limits.h> exists even on freestanding compilers. */
28121 # include <limits.h>
28123 # include <assert.h>
28128 /* Override any gcc2 internal prototype to avoid an error. */
28133 /* We use char because int might match the return type of a gcc2
28134 builtin and then its argument prototype would still apply. */
28136 /* The GNU C library defines this for functions which it implements
28137 to always fail with ENOSYS. Some functions are actually named
28138 something starting with __ and the normal name is an alias. */
28139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28142 char (*f) () = $ac_func;
28151 return f != $ac_func;
28156 rm -f conftest.$ac_objext conftest$ac_exeext
28157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28158 (eval $ac_link) 2>conftest.er1
28160 grep -v '^ *+' conftest.er1 >conftest.err
28162 cat conftest.err >&5
28163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164 (exit $ac_status); } &&
28165 { ac_try='test -z "$ac_c_werror_flag"
28166 || test ! -s conftest.err'
28167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28168 (eval $ac_try) 2>&5
28170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171 (exit $ac_status); }; } &&
28172 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28178 eval "$as_ac_var=yes"
28180 echo "$as_me: failed program was:" >&5
28181 sed 's/^/| /' conftest.$ac_ext >&5
28183 eval "$as_ac_var=no"
28185 rm -f conftest.err conftest.$ac_objext \
28186 conftest$ac_exeext conftest.$ac_ext
28188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28189 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28190 if test `eval echo '${'$as_ac_var'}'` = yes; then
28191 cat >>confdefs.h <<_ACEOF
28192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28205 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
28207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28208 echo "$as_me:$LINENO: checking for $ac_func" >&5
28209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28210 if eval "test \"\${$as_ac_var+set}\" = set"; then
28211 echo $ECHO_N "(cached) $ECHO_C" >&6
28213 cat >conftest.$ac_ext <<_ACEOF
28216 cat confdefs.h >>conftest.$ac_ext
28217 cat >>conftest.$ac_ext <<_ACEOF
28218 /* end confdefs.h. */
28219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28221 #define $ac_func innocuous_$ac_func
28223 /* System header to define __stub macros and hopefully few prototypes,
28224 which can conflict with char $ac_func (); below.
28225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28226 <limits.h> exists even on freestanding compilers. */
28229 # include <limits.h>
28231 # include <assert.h>
28236 /* Override any gcc2 internal prototype to avoid an error. */
28241 /* We use char because int might match the return type of a gcc2
28242 builtin and then its argument prototype would still apply. */
28244 /* The GNU C library defines this for functions which it implements
28245 to always fail with ENOSYS. Some functions are actually named
28246 something starting with __ and the normal name is an alias. */
28247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28250 char (*f) () = $ac_func;
28259 return f != $ac_func;
28264 rm -f conftest.$ac_objext conftest$ac_exeext
28265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28266 (eval $ac_link) 2>conftest.er1
28268 grep -v '^ *+' conftest.er1 >conftest.err
28270 cat conftest.err >&5
28271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272 (exit $ac_status); } &&
28273 { ac_try='test -z "$ac_c_werror_flag"
28274 || test ! -s conftest.err'
28275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28276 (eval $ac_try) 2>&5
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); }; } &&
28280 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28286 eval "$as_ac_var=yes"
28288 echo "$as_me: failed program was:" >&5
28289 sed 's/^/| /' conftest.$ac_ext >&5
28291 eval "$as_ac_var=no"
28293 rm -f conftest.err conftest.$ac_objext \
28294 conftest$ac_exeext conftest.$ac_ext
28296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28298 if test `eval echo '${'$as_ac_var'}'` = yes; then
28299 cat >>confdefs.h <<_ACEOF
28300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28310 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28313 echo "$as_me:$LINENO: checking for $ac_func" >&5
28314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28315 if eval "test \"\${$as_ac_var+set}\" = set"; then
28316 echo $ECHO_N "(cached) $ECHO_C" >&6
28318 cat >conftest.$ac_ext <<_ACEOF
28321 cat confdefs.h >>conftest.$ac_ext
28322 cat >>conftest.$ac_ext <<_ACEOF
28323 /* end confdefs.h. */
28324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28326 #define $ac_func innocuous_$ac_func
28328 /* System header to define __stub macros and hopefully few prototypes,
28329 which can conflict with char $ac_func (); below.
28330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28331 <limits.h> exists even on freestanding compilers. */
28334 # include <limits.h>
28336 # include <assert.h>
28341 /* Override any gcc2 internal prototype to avoid an error. */
28346 /* We use char because int might match the return type of a gcc2
28347 builtin and then its argument prototype would still apply. */
28349 /* The GNU C library defines this for functions which it implements
28350 to always fail with ENOSYS. Some functions are actually named
28351 something starting with __ and the normal name is an alias. */
28352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28355 char (*f) () = $ac_func;
28364 return f != $ac_func;
28369 rm -f conftest.$ac_objext conftest$ac_exeext
28370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28371 (eval $ac_link) 2>conftest.er1
28373 grep -v '^ *+' conftest.er1 >conftest.err
28375 cat conftest.err >&5
28376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377 (exit $ac_status); } &&
28378 { ac_try='test -z "$ac_c_werror_flag"
28379 || test ! -s conftest.err'
28380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28381 (eval $ac_try) 2>&5
28383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28384 (exit $ac_status); }; } &&
28385 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28391 eval "$as_ac_var=yes"
28393 echo "$as_me: failed program was:" >&5
28394 sed 's/^/| /' conftest.$ac_ext >&5
28396 eval "$as_ac_var=no"
28398 rm -f conftest.err conftest.$ac_objext \
28399 conftest$ac_exeext conftest.$ac_ext
28401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28403 if test `eval echo '${'$as_ac_var'}'` = yes; then
28404 cat >>confdefs.h <<_ACEOF
28405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28411 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28412 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28413 if test "${llvm_cv_c_printf_a+set}" = set; then
28414 echo $ECHO_N "(cached) $ECHO_C" >&6
28417 ac_cpp='$CPP $CPPFLAGS'
28418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28422 if test "$cross_compiling" = yes; then
28423 llvmac_cv_c_printf_a=no
28425 cat >conftest.$ac_ext <<_ACEOF
28429 cat confdefs.h >>conftest.$ac_ext
28430 cat >>conftest.$ac_ext <<_ACEOF
28431 /* end confdefs.h. */
28434 #include <stdlib.h>
28440 volatile double A, B;
28444 sprintf(Buffer, "%a", A);
28448 if (A != 0x1.999999999999ap-4)
28455 rm -f conftest$ac_exeext
28456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28457 (eval $ac_link) 2>&5
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28462 (eval $ac_try) 2>&5
28464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465 (exit $ac_status); }; }; then
28466 llvm_cv_c_printf_a=yes
28468 echo "$as_me: program exited with status $ac_status" >&5
28469 echo "$as_me: failed program was:" >&5
28470 sed 's/^/| /' conftest.$ac_ext >&5
28472 ( exit $ac_status )
28473 llvmac_cv_c_printf_a=no
28475 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28478 ac_cpp='$CPP $CPPFLAGS'
28479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28484 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28485 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28486 if test "$llvm_cv_c_printf_a" = "yes"; then
28488 cat >>confdefs.h <<\_ACEOF
28489 #define HAVE_PRINTF_A 1
28494 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28495 # for constant arguments. Useless!
28496 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28497 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28498 if test "${ac_cv_working_alloca_h+set}" = set; then
28499 echo $ECHO_N "(cached) $ECHO_C" >&6
28501 cat >conftest.$ac_ext <<_ACEOF
28504 cat confdefs.h >>conftest.$ac_ext
28505 cat >>conftest.$ac_ext <<_ACEOF
28506 /* end confdefs.h. */
28507 #include <alloca.h>
28511 char *p = (char *) alloca (2 * sizeof (int));
28516 rm -f conftest.$ac_objext conftest$ac_exeext
28517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28518 (eval $ac_link) 2>conftest.er1
28520 grep -v '^ *+' conftest.er1 >conftest.err
28522 cat conftest.err >&5
28523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524 (exit $ac_status); } &&
28525 { ac_try='test -z "$ac_c_werror_flag"
28526 || test ! -s conftest.err'
28527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28528 (eval $ac_try) 2>&5
28530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531 (exit $ac_status); }; } &&
28532 { ac_try='test -s conftest$ac_exeext'
28533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28534 (eval $ac_try) 2>&5
28536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537 (exit $ac_status); }; }; then
28538 ac_cv_working_alloca_h=yes
28540 echo "$as_me: failed program was:" >&5
28541 sed 's/^/| /' conftest.$ac_ext >&5
28543 ac_cv_working_alloca_h=no
28545 rm -f conftest.err conftest.$ac_objext \
28546 conftest$ac_exeext conftest.$ac_ext
28548 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28549 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28550 if test $ac_cv_working_alloca_h = yes; then
28552 cat >>confdefs.h <<\_ACEOF
28553 #define HAVE_ALLOCA_H 1
28558 echo "$as_me:$LINENO: checking for alloca" >&5
28559 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28560 if test "${ac_cv_func_alloca_works+set}" = set; then
28561 echo $ECHO_N "(cached) $ECHO_C" >&6
28563 cat >conftest.$ac_ext <<_ACEOF
28566 cat confdefs.h >>conftest.$ac_ext
28567 cat >>conftest.$ac_ext <<_ACEOF
28568 /* end confdefs.h. */
28570 # define alloca __builtin_alloca
28573 # include <malloc.h>
28574 # define alloca _alloca
28577 # include <alloca.h>
28582 # ifndef alloca /* predefined by HP cc +Olibcalls */
28593 char *p = (char *) alloca (1);
28598 rm -f conftest.$ac_objext conftest$ac_exeext
28599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28600 (eval $ac_link) 2>conftest.er1
28602 grep -v '^ *+' conftest.er1 >conftest.err
28604 cat conftest.err >&5
28605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606 (exit $ac_status); } &&
28607 { ac_try='test -z "$ac_c_werror_flag"
28608 || test ! -s conftest.err'
28609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28610 (eval $ac_try) 2>&5
28612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613 (exit $ac_status); }; } &&
28614 { ac_try='test -s conftest$ac_exeext'
28615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28616 (eval $ac_try) 2>&5
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); }; }; then
28620 ac_cv_func_alloca_works=yes
28622 echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28625 ac_cv_func_alloca_works=no
28627 rm -f conftest.err conftest.$ac_objext \
28628 conftest$ac_exeext conftest.$ac_ext
28630 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28631 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28633 if test $ac_cv_func_alloca_works = yes; then
28635 cat >>confdefs.h <<\_ACEOF
28636 #define HAVE_ALLOCA 1
28640 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28641 # that cause trouble. Some versions do not even contain alloca or
28642 # contain a buggy version. If you still want to use their alloca,
28643 # use ar to extract alloca.o from them instead of compiling alloca.c.
28645 ALLOCA=alloca.$ac_objext
28647 cat >>confdefs.h <<\_ACEOF
28652 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28653 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28654 if test "${ac_cv_os_cray+set}" = set; then
28655 echo $ECHO_N "(cached) $ECHO_C" >&6
28657 cat >conftest.$ac_ext <<_ACEOF
28660 cat confdefs.h >>conftest.$ac_ext
28661 cat >>conftest.$ac_ext <<_ACEOF
28662 /* end confdefs.h. */
28663 #if defined(CRAY) && ! defined(CRAY2)
28670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28671 $EGREP "webecray" >/dev/null 2>&1; then
28679 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28680 echo "${ECHO_T}$ac_cv_os_cray" >&6
28681 if test $ac_cv_os_cray = yes; then
28682 for ac_func in _getb67 GETB67 getb67; do
28683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28684 echo "$as_me:$LINENO: checking for $ac_func" >&5
28685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28686 if eval "test \"\${$as_ac_var+set}\" = set"; then
28687 echo $ECHO_N "(cached) $ECHO_C" >&6
28689 cat >conftest.$ac_ext <<_ACEOF
28692 cat confdefs.h >>conftest.$ac_ext
28693 cat >>conftest.$ac_ext <<_ACEOF
28694 /* end confdefs.h. */
28695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28697 #define $ac_func innocuous_$ac_func
28699 /* System header to define __stub macros and hopefully few prototypes,
28700 which can conflict with char $ac_func (); below.
28701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28702 <limits.h> exists even on freestanding compilers. */
28705 # include <limits.h>
28707 # include <assert.h>
28712 /* Override any gcc2 internal prototype to avoid an error. */
28717 /* We use char because int might match the return type of a gcc2
28718 builtin and then its argument prototype would still apply. */
28720 /* The GNU C library defines this for functions which it implements
28721 to always fail with ENOSYS. Some functions are actually named
28722 something starting with __ and the normal name is an alias. */
28723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28726 char (*f) () = $ac_func;
28735 return f != $ac_func;
28740 rm -f conftest.$ac_objext conftest$ac_exeext
28741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28742 (eval $ac_link) 2>conftest.er1
28744 grep -v '^ *+' conftest.er1 >conftest.err
28746 cat conftest.err >&5
28747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748 (exit $ac_status); } &&
28749 { ac_try='test -z "$ac_c_werror_flag"
28750 || test ! -s conftest.err'
28751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28752 (eval $ac_try) 2>&5
28754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755 (exit $ac_status); }; } &&
28756 { ac_try='test -s conftest$ac_exeext'
28757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28758 (eval $ac_try) 2>&5
28760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28761 (exit $ac_status); }; }; then
28762 eval "$as_ac_var=yes"
28764 echo "$as_me: failed program was:" >&5
28765 sed 's/^/| /' conftest.$ac_ext >&5
28767 eval "$as_ac_var=no"
28769 rm -f conftest.err conftest.$ac_objext \
28770 conftest$ac_exeext conftest.$ac_ext
28772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28774 if test `eval echo '${'$as_ac_var'}'` = yes; then
28776 cat >>confdefs.h <<_ACEOF
28777 #define CRAY_STACKSEG_END $ac_func
28786 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28787 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28788 if test "${ac_cv_c_stack_direction+set}" = set; then
28789 echo $ECHO_N "(cached) $ECHO_C" >&6
28791 if test "$cross_compiling" = yes; then
28792 ac_cv_c_stack_direction=0
28794 cat >conftest.$ac_ext <<_ACEOF
28797 cat confdefs.h >>conftest.$ac_ext
28798 cat >>conftest.$ac_ext <<_ACEOF
28799 /* end confdefs.h. */
28801 find_stack_direction ()
28803 static char *addr = 0;
28808 return find_stack_direction ();
28811 return (&dummy > addr) ? 1 : -1;
28817 exit (find_stack_direction () < 0);
28820 rm -f conftest$ac_exeext
28821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28822 (eval $ac_link) 2>&5
28824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28827 (eval $ac_try) 2>&5
28829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830 (exit $ac_status); }; }; then
28831 ac_cv_c_stack_direction=1
28833 echo "$as_me: program exited with status $ac_status" >&5
28834 echo "$as_me: failed program was:" >&5
28835 sed 's/^/| /' conftest.$ac_ext >&5
28837 ( exit $ac_status )
28838 ac_cv_c_stack_direction=-1
28840 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28843 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28844 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28846 cat >>confdefs.h <<_ACEOF
28847 #define STACK_DIRECTION $ac_cv_c_stack_direction
28854 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28855 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28856 if test "${ac_cv_func_rand48+set}" = set; then
28857 echo $ECHO_N "(cached) $ECHO_C" >&6
28860 ac_cpp='$CXXCPP $CPPFLAGS'
28861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28865 cat >conftest.$ac_ext <<_ACEOF
28868 cat confdefs.h >>conftest.$ac_ext
28869 cat >>conftest.$ac_ext <<_ACEOF
28870 /* end confdefs.h. */
28871 #include <stdlib.h>
28875 srand48(0);lrand48();drand48();
28880 rm -f conftest.$ac_objext
28881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28882 (eval $ac_compile) 2>conftest.er1
28884 grep -v '^ *+' conftest.er1 >conftest.err
28886 cat conftest.err >&5
28887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28888 (exit $ac_status); } &&
28889 { ac_try='test -z "$ac_cxx_werror_flag"
28890 || test ! -s conftest.err'
28891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28892 (eval $ac_try) 2>&5
28894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895 (exit $ac_status); }; } &&
28896 { ac_try='test -s conftest.$ac_objext'
28897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28898 (eval $ac_try) 2>&5
28900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901 (exit $ac_status); }; }; then
28902 ac_cv_func_rand48=yes
28904 echo "$as_me: failed program was:" >&5
28905 sed 's/^/| /' conftest.$ac_ext >&5
28907 ac_cv_func_rand48=no
28909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28911 ac_cpp='$CPP $CPPFLAGS'
28912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28917 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28918 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28920 if test "$ac_cv_func_rand48" = "yes" ; then
28922 cat >>confdefs.h <<\_ACEOF
28923 #define HAVE_RAND48 1
28929 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28930 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28931 if test "${ac_cv_cxx_namespaces+set}" = set; then
28932 echo $ECHO_N "(cached) $ECHO_C" >&6
28935 ac_cpp='$CXXCPP $CPPFLAGS'
28936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28940 cat >conftest.$ac_ext <<_ACEOF
28943 cat confdefs.h >>conftest.$ac_ext
28944 cat >>conftest.$ac_ext <<_ACEOF
28945 /* end confdefs.h. */
28946 namespace Outer { namespace Inner { int i = 0; }}
28950 using namespace Outer::Inner; return i;
28955 rm -f conftest.$ac_objext
28956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28957 (eval $ac_compile) 2>conftest.er1
28959 grep -v '^ *+' conftest.er1 >conftest.err
28961 cat conftest.err >&5
28962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963 (exit $ac_status); } &&
28964 { ac_try='test -z "$ac_cxx_werror_flag"
28965 || test ! -s conftest.err'
28966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28967 (eval $ac_try) 2>&5
28969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970 (exit $ac_status); }; } &&
28971 { ac_try='test -s conftest.$ac_objext'
28972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28973 (eval $ac_try) 2>&5
28975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28976 (exit $ac_status); }; }; then
28977 ac_cv_cxx_namespaces=yes
28979 echo "$as_me: failed program was:" >&5
28980 sed 's/^/| /' conftest.$ac_ext >&5
28982 ac_cv_cxx_namespaces=no
28984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28986 ac_cpp='$CPP $CPPFLAGS'
28987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28993 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28994 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28995 if test "$ac_cv_cxx_namespaces" = yes; then
28997 cat >>confdefs.h <<\_ACEOF
28998 #define HAVE_NAMESPACES
29003 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29004 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
29005 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
29006 echo $ECHO_N "(cached) $ECHO_C" >&6
29010 ac_cpp='$CXXCPP $CPPFLAGS'
29011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29015 cat >conftest.$ac_ext <<_ACEOF
29018 cat confdefs.h >>conftest.$ac_ext
29019 cat >>conftest.$ac_ext <<_ACEOF
29020 /* end confdefs.h. */
29021 #include <ext/hash_map>
29022 #ifdef HAVE_NAMESPACES
29023 using namespace std;
29028 hash_map<int, int> t;
29033 rm -f conftest.$ac_objext
29034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29035 (eval $ac_compile) 2>conftest.er1
29037 grep -v '^ *+' conftest.er1 >conftest.err
29039 cat conftest.err >&5
29040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041 (exit $ac_status); } &&
29042 { ac_try='test -z "$ac_cxx_werror_flag"
29043 || test ! -s conftest.err'
29044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29045 (eval $ac_try) 2>&5
29047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29048 (exit $ac_status); }; } &&
29049 { ac_try='test -s conftest.$ac_objext'
29050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29051 (eval $ac_try) 2>&5
29053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054 (exit $ac_status); }; }; then
29055 ac_cv_cxx_have_std_ext_hash_map=yes
29057 echo "$as_me: failed program was:" >&5
29058 sed 's/^/| /' conftest.$ac_ext >&5
29060 ac_cv_cxx_have_std_ext_hash_map=no
29062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29064 ac_cpp='$CPP $CPPFLAGS'
29065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29070 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29071 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
29072 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29075 cat >>confdefs.h <<\_ACEOF
29076 #define HAVE_STD_EXT_HASH_MAP 1
29081 cat >>confdefs.h <<\_ACEOF
29082 #define HAVE_STD_EXT_HASH_MAP 0
29087 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
29088 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
29089 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
29090 echo $ECHO_N "(cached) $ECHO_C" >&6
29094 ac_cpp='$CXXCPP $CPPFLAGS'
29095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29099 cat >conftest.$ac_ext <<_ACEOF
29102 cat confdefs.h >>conftest.$ac_ext
29103 cat >>conftest.$ac_ext <<_ACEOF
29104 /* end confdefs.h. */
29105 #include <ext/hash_map>
29106 #ifdef HAVE_NAMESPACES
29107 using namespace __gnu_cxx;
29112 hash_map<int,int> t;
29117 rm -f conftest.$ac_objext
29118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29119 (eval $ac_compile) 2>conftest.er1
29121 grep -v '^ *+' conftest.er1 >conftest.err
29123 cat conftest.err >&5
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); } &&
29126 { ac_try='test -z "$ac_cxx_werror_flag"
29127 || test ! -s conftest.err'
29128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29129 (eval $ac_try) 2>&5
29131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); }; } &&
29133 { ac_try='test -s conftest.$ac_objext'
29134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29135 (eval $ac_try) 2>&5
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); }; }; then
29139 ac_cv_cxx_have_gnu_ext_hash_map=yes
29141 echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29144 ac_cv_cxx_have_gnu_ext_hash_map=no
29146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29148 ac_cpp='$CPP $CPPFLAGS'
29149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29154 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
29155 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
29156 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
29159 cat >>confdefs.h <<\_ACEOF
29160 #define HAVE_GNU_EXT_HASH_MAP 1
29165 cat >>confdefs.h <<\_ACEOF
29166 #define HAVE_GNU_EXT_HASH_MAP 0
29171 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29172 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29173 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
29174 echo $ECHO_N "(cached) $ECHO_C" >&6
29178 ac_cpp='$CXXCPP $CPPFLAGS'
29179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29183 cat >conftest.$ac_ext <<_ACEOF
29186 cat confdefs.h >>conftest.$ac_ext
29187 cat >>conftest.$ac_ext <<_ACEOF
29188 /* end confdefs.h. */
29189 #include <hash_map>
29193 hash_map<int,int> t;
29198 rm -f conftest.$ac_objext
29199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29200 (eval $ac_compile) 2>conftest.er1
29202 grep -v '^ *+' conftest.er1 >conftest.err
29204 cat conftest.err >&5
29205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29206 (exit $ac_status); } &&
29207 { ac_try='test -z "$ac_cxx_werror_flag"
29208 || test ! -s conftest.err'
29209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29210 (eval $ac_try) 2>&5
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); }; } &&
29214 { ac_try='test -s conftest.$ac_objext'
29215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29216 (eval $ac_try) 2>&5
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); }; }; then
29220 ac_cv_cxx_have_global_hash_map=yes
29222 echo "$as_me: failed program was:" >&5
29223 sed 's/^/| /' conftest.$ac_ext >&5
29225 ac_cv_cxx_have_global_hash_map=no
29227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29229 ac_cpp='$CPP $CPPFLAGS'
29230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29235 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29236 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
29237 if test "$ac_cv_cxx_have_global_hash_map" = yes
29240 cat >>confdefs.h <<\_ACEOF
29241 #define HAVE_GLOBAL_HASH_MAP 1
29246 cat >>confdefs.h <<\_ACEOF
29247 #define HAVE_GLOBAL_HASH_MAP 0
29252 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29253 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29254 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29255 echo $ECHO_N "(cached) $ECHO_C" >&6
29259 ac_cpp='$CXXCPP $CPPFLAGS'
29260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29264 cat >conftest.$ac_ext <<_ACEOF
29267 cat confdefs.h >>conftest.$ac_ext
29268 cat >>conftest.$ac_ext <<_ACEOF
29269 /* end confdefs.h. */
29270 #include <ext/hash_set>
29271 #ifdef HAVE_NAMESPACES
29272 using namespace std;
29282 rm -f conftest.$ac_objext
29283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29284 (eval $ac_compile) 2>conftest.er1
29286 grep -v '^ *+' conftest.er1 >conftest.err
29288 cat conftest.err >&5
29289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290 (exit $ac_status); } &&
29291 { ac_try='test -z "$ac_cxx_werror_flag"
29292 || test ! -s conftest.err'
29293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29294 (eval $ac_try) 2>&5
29296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297 (exit $ac_status); }; } &&
29298 { ac_try='test -s conftest.$ac_objext'
29299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29300 (eval $ac_try) 2>&5
29302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303 (exit $ac_status); }; }; then
29304 ac_cv_cxx_have_std_ext_hash_set=yes
29306 echo "$as_me: failed program was:" >&5
29307 sed 's/^/| /' conftest.$ac_ext >&5
29309 ac_cv_cxx_have_std_ext_hash_set=no
29311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29313 ac_cpp='$CPP $CPPFLAGS'
29314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29319 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29320 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29321 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29324 cat >>confdefs.h <<\_ACEOF
29325 #define HAVE_STD_EXT_HASH_SET 1
29330 cat >>confdefs.h <<\_ACEOF
29331 #define HAVE_STD_EXT_HASH_SET 0
29336 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29337 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29338 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29339 echo $ECHO_N "(cached) $ECHO_C" >&6
29343 ac_cpp='$CXXCPP $CPPFLAGS'
29344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29348 cat >conftest.$ac_ext <<_ACEOF
29351 cat confdefs.h >>conftest.$ac_ext
29352 cat >>conftest.$ac_ext <<_ACEOF
29353 /* end confdefs.h. */
29354 #include <ext/hash_set>
29355 #ifdef HAVE_NAMESPACES
29356 using namespace __gnu_cxx;
29366 rm -f conftest.$ac_objext
29367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29368 (eval $ac_compile) 2>conftest.er1
29370 grep -v '^ *+' conftest.er1 >conftest.err
29372 cat conftest.err >&5
29373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); } &&
29375 { ac_try='test -z "$ac_cxx_werror_flag"
29376 || test ! -s conftest.err'
29377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29378 (eval $ac_try) 2>&5
29380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29381 (exit $ac_status); }; } &&
29382 { ac_try='test -s conftest.$ac_objext'
29383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29384 (eval $ac_try) 2>&5
29386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29387 (exit $ac_status); }; }; then
29388 ac_cv_cxx_have_gnu_ext_hash_set=yes
29390 echo "$as_me: failed program was:" >&5
29391 sed 's/^/| /' conftest.$ac_ext >&5
29393 ac_cv_cxx_have_gnu_ext_hash_set=no
29395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29397 ac_cpp='$CPP $CPPFLAGS'
29398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29403 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29404 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29405 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29408 cat >>confdefs.h <<\_ACEOF
29409 #define HAVE_GNU_EXT_HASH_SET 1
29414 cat >>confdefs.h <<\_ACEOF
29415 #define HAVE_GNU_EXT_HASH_SET 0
29420 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29421 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29422 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29423 echo $ECHO_N "(cached) $ECHO_C" >&6
29427 ac_cpp='$CXXCPP $CPPFLAGS'
29428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29432 cat >conftest.$ac_ext <<_ACEOF
29435 cat confdefs.h >>conftest.$ac_ext
29436 cat >>conftest.$ac_ext <<_ACEOF
29437 /* end confdefs.h. */
29438 #include <hash_set>
29442 hash_set<int> t; return 0;
29447 rm -f conftest.$ac_objext
29448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29449 (eval $ac_compile) 2>conftest.er1
29451 grep -v '^ *+' conftest.er1 >conftest.err
29453 cat conftest.err >&5
29454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29455 (exit $ac_status); } &&
29456 { ac_try='test -z "$ac_cxx_werror_flag"
29457 || test ! -s conftest.err'
29458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29459 (eval $ac_try) 2>&5
29461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462 (exit $ac_status); }; } &&
29463 { ac_try='test -s conftest.$ac_objext'
29464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29465 (eval $ac_try) 2>&5
29467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468 (exit $ac_status); }; }; then
29469 ac_cv_cxx_have_global_hash_set=yes
29471 echo "$as_me: failed program was:" >&5
29472 sed 's/^/| /' conftest.$ac_ext >&5
29474 ac_cv_cxx_have_global_hash_set=no
29476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29478 ac_cpp='$CPP $CPPFLAGS'
29479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29484 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29485 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29486 if test "$ac_cv_cxx_have_global_hash_set" = yes
29489 cat >>confdefs.h <<\_ACEOF
29490 #define HAVE_GLOBAL_HASH_SET 1
29495 cat >>confdefs.h <<\_ACEOF
29496 #define HAVE_GLOBAL_HASH_SET 0
29501 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29502 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29503 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29504 echo $ECHO_N "(cached) $ECHO_C" >&6
29508 ac_cpp='$CXXCPP $CPPFLAGS'
29509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29513 cat >conftest.$ac_ext <<_ACEOF
29516 cat confdefs.h >>conftest.$ac_ext
29517 cat >>conftest.$ac_ext <<_ACEOF
29518 /* end confdefs.h. */
29519 #include <iterator>
29520 #ifdef HAVE_NAMESPACES
29521 using namespace std;
29526 iterator<int,int,int> t; return 0;
29531 rm -f conftest.$ac_objext
29532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29533 (eval $ac_compile) 2>conftest.er1
29535 grep -v '^ *+' conftest.er1 >conftest.err
29537 cat conftest.err >&5
29538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29539 (exit $ac_status); } &&
29540 { ac_try='test -z "$ac_cxx_werror_flag"
29541 || test ! -s conftest.err'
29542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29543 (eval $ac_try) 2>&5
29545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546 (exit $ac_status); }; } &&
29547 { ac_try='test -s conftest.$ac_objext'
29548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29549 (eval $ac_try) 2>&5
29551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552 (exit $ac_status); }; }; then
29553 ac_cv_cxx_have_std_iterator=yes
29555 echo "$as_me: failed program was:" >&5
29556 sed 's/^/| /' conftest.$ac_ext >&5
29558 ac_cv_cxx_have_std_iterator=no
29560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29562 ac_cpp='$CPP $CPPFLAGS'
29563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29569 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29570 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29571 if test "$ac_cv_cxx_have_std_iterator" = yes
29574 cat >>confdefs.h <<\_ACEOF
29575 #define HAVE_STD_ITERATOR 1
29580 cat >>confdefs.h <<\_ACEOF
29581 #define HAVE_STD_ITERATOR 0
29586 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29587 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29588 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29589 echo $ECHO_N "(cached) $ECHO_C" >&6
29593 ac_cpp='$CXXCPP $CPPFLAGS'
29594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29598 cat >conftest.$ac_ext <<_ACEOF
29601 cat confdefs.h >>conftest.$ac_ext
29602 cat >>conftest.$ac_ext <<_ACEOF
29603 /* end confdefs.h. */
29604 #include <iterator>
29605 #ifdef HAVE_NAMESPACES
29606 using namespace std;
29611 bidirectional_iterator<int,int> t; return 0;
29616 rm -f conftest.$ac_objext
29617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29618 (eval $ac_compile) 2>conftest.er1
29620 grep -v '^ *+' conftest.er1 >conftest.err
29622 cat conftest.err >&5
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); } &&
29625 { ac_try='test -z "$ac_cxx_werror_flag"
29626 || test ! -s conftest.err'
29627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29628 (eval $ac_try) 2>&5
29630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631 (exit $ac_status); }; } &&
29632 { ac_try='test -s conftest.$ac_objext'
29633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29634 (eval $ac_try) 2>&5
29636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637 (exit $ac_status); }; }; then
29638 ac_cv_cxx_have_bi_iterator=yes
29640 echo "$as_me: failed program was:" >&5
29641 sed 's/^/| /' conftest.$ac_ext >&5
29643 ac_cv_cxx_have_bi_iterator=no
29645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29647 ac_cpp='$CPP $CPPFLAGS'
29648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29654 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29655 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29656 if test "$ac_cv_cxx_have_bi_iterator" = yes
29659 cat >>confdefs.h <<\_ACEOF
29660 #define HAVE_BI_ITERATOR 1
29665 cat >>confdefs.h <<\_ACEOF
29666 #define HAVE_BI_ITERATOR 0
29671 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29672 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29673 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29674 echo $ECHO_N "(cached) $ECHO_C" >&6
29678 ac_cpp='$CXXCPP $CPPFLAGS'
29679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29683 cat >conftest.$ac_ext <<_ACEOF
29686 cat confdefs.h >>conftest.$ac_ext
29687 cat >>conftest.$ac_ext <<_ACEOF
29688 /* end confdefs.h. */
29689 #include <iterator>
29690 #ifdef HAVE_NAMESPACES
29691 using namespace std;
29696 forward_iterator<int,int> t; return 0;
29701 rm -f conftest.$ac_objext
29702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29703 (eval $ac_compile) 2>conftest.er1
29705 grep -v '^ *+' conftest.er1 >conftest.err
29707 cat conftest.err >&5
29708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709 (exit $ac_status); } &&
29710 { ac_try='test -z "$ac_cxx_werror_flag"
29711 || test ! -s conftest.err'
29712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29713 (eval $ac_try) 2>&5
29715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); }; } &&
29717 { ac_try='test -s conftest.$ac_objext'
29718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29719 (eval $ac_try) 2>&5
29721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722 (exit $ac_status); }; }; then
29723 ac_cv_cxx_have_fwd_iterator=yes
29725 echo "$as_me: failed program was:" >&5
29726 sed 's/^/| /' conftest.$ac_ext >&5
29728 ac_cv_cxx_have_fwd_iterator=no
29730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29732 ac_cpp='$CPP $CPPFLAGS'
29733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29739 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29740 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29741 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29744 cat >>confdefs.h <<\_ACEOF
29745 #define HAVE_FWD_ITERATOR 1
29750 cat >>confdefs.h <<\_ACEOF
29751 #define HAVE_FWD_ITERATOR 0
29757 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29758 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29759 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29760 echo $ECHO_N "(cached) $ECHO_C" >&6
29763 ac_cpp='$CXXCPP $CPPFLAGS'
29764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29768 cat >conftest.$ac_ext <<_ACEOF
29771 cat confdefs.h >>conftest.$ac_ext
29772 cat >>conftest.$ac_ext <<_ACEOF
29773 /* end confdefs.h. */
29783 rm -f conftest.$ac_objext
29784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29785 (eval $ac_compile) 2>conftest.er1
29787 grep -v '^ *+' conftest.er1 >conftest.err
29789 cat conftest.err >&5
29790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791 (exit $ac_status); } &&
29792 { ac_try='test -z "$ac_cxx_werror_flag"
29793 || test ! -s conftest.err'
29794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29795 (eval $ac_try) 2>&5
29797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29798 (exit $ac_status); }; } &&
29799 { ac_try='test -s conftest.$ac_objext'
29800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29801 (eval $ac_try) 2>&5
29803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804 (exit $ac_status); }; }; then
29805 ac_cv_func_isnan_in_math_h=yes
29807 echo "$as_me: failed program was:" >&5
29808 sed 's/^/| /' conftest.$ac_ext >&5
29810 ac_cv_func_isnan_in_math_h=no
29812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29814 ac_cpp='$CPP $CPPFLAGS'
29815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29820 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29821 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29824 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29826 cat >>confdefs.h <<\_ACEOF
29827 #define HAVE_ISNAN_IN_MATH_H 1
29832 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29833 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29834 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29835 echo $ECHO_N "(cached) $ECHO_C" >&6
29838 ac_cpp='$CXXCPP $CPPFLAGS'
29839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29843 cat >conftest.$ac_ext <<_ACEOF
29846 cat confdefs.h >>conftest.$ac_ext
29847 cat >>conftest.$ac_ext <<_ACEOF
29848 /* end confdefs.h. */
29858 rm -f conftest.$ac_objext
29859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29860 (eval $ac_compile) 2>conftest.er1
29862 grep -v '^ *+' conftest.er1 >conftest.err
29864 cat conftest.err >&5
29865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866 (exit $ac_status); } &&
29867 { ac_try='test -z "$ac_cxx_werror_flag"
29868 || test ! -s conftest.err'
29869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29870 (eval $ac_try) 2>&5
29872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873 (exit $ac_status); }; } &&
29874 { ac_try='test -s conftest.$ac_objext'
29875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29876 (eval $ac_try) 2>&5
29878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879 (exit $ac_status); }; }; then
29880 ac_cv_func_isnan_in_cmath=yes
29882 echo "$as_me: failed program was:" >&5
29883 sed 's/^/| /' conftest.$ac_ext >&5
29885 ac_cv_func_isnan_in_cmath=no
29887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29889 ac_cpp='$CPP $CPPFLAGS'
29890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29895 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29896 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29898 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29900 cat >>confdefs.h <<\_ACEOF
29901 #define HAVE_ISNAN_IN_CMATH 1
29906 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29907 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29908 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29909 echo $ECHO_N "(cached) $ECHO_C" >&6
29912 ac_cpp='$CXXCPP $CPPFLAGS'
29913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29917 cat >conftest.$ac_ext <<_ACEOF
29920 cat confdefs.h >>conftest.$ac_ext
29921 cat >>conftest.$ac_ext <<_ACEOF
29922 /* end confdefs.h. */
29927 float f; std::isnan(f);
29932 rm -f conftest.$ac_objext
29933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29934 (eval $ac_compile) 2>conftest.er1
29936 grep -v '^ *+' conftest.er1 >conftest.err
29938 cat conftest.err >&5
29939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940 (exit $ac_status); } &&
29941 { ac_try='test -z "$ac_cxx_werror_flag"
29942 || test ! -s conftest.err'
29943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29944 (eval $ac_try) 2>&5
29946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947 (exit $ac_status); }; } &&
29948 { ac_try='test -s conftest.$ac_objext'
29949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29950 (eval $ac_try) 2>&5
29952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953 (exit $ac_status); }; }; then
29954 ac_cv_func_std_isnan_in_cmath=yes
29956 echo "$as_me: failed program was:" >&5
29957 sed 's/^/| /' conftest.$ac_ext >&5
29959 ac_cv_func_std_isnan_in_cmath=no
29961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29963 ac_cpp='$CPP $CPPFLAGS'
29964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29969 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29970 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29972 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29974 cat >>confdefs.h <<\_ACEOF
29975 #define HAVE_STD_ISNAN_IN_CMATH 1
29981 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29982 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29983 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29984 echo $ECHO_N "(cached) $ECHO_C" >&6
29987 ac_cpp='$CXXCPP $CPPFLAGS'
29988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29992 cat >conftest.$ac_ext <<_ACEOF
29995 cat confdefs.h >>conftest.$ac_ext
29996 cat >>conftest.$ac_ext <<_ACEOF
29997 /* end confdefs.h. */
30007 rm -f conftest.$ac_objext
30008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30009 (eval $ac_compile) 2>conftest.er1
30011 grep -v '^ *+' conftest.er1 >conftest.err
30013 cat conftest.err >&5
30014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015 (exit $ac_status); } &&
30016 { ac_try='test -z "$ac_cxx_werror_flag"
30017 || test ! -s conftest.err'
30018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30019 (eval $ac_try) 2>&5
30021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022 (exit $ac_status); }; } &&
30023 { ac_try='test -s conftest.$ac_objext'
30024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30025 (eval $ac_try) 2>&5
30027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028 (exit $ac_status); }; }; then
30029 ac_cv_func_isinf_in_math_h=yes
30031 echo "$as_me: failed program was:" >&5
30032 sed 's/^/| /' conftest.$ac_ext >&5
30034 ac_cv_func_isinf_in_math_h=no
30036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30038 ac_cpp='$CPP $CPPFLAGS'
30039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30044 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30045 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
30047 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30049 cat >>confdefs.h <<\_ACEOF
30050 #define HAVE_ISINF_IN_MATH_H 1
30055 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30056 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
30057 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30058 echo $ECHO_N "(cached) $ECHO_C" >&6
30061 ac_cpp='$CXXCPP $CPPFLAGS'
30062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30066 cat >conftest.$ac_ext <<_ACEOF
30069 cat confdefs.h >>conftest.$ac_ext
30070 cat >>conftest.$ac_ext <<_ACEOF
30071 /* end confdefs.h. */
30081 rm -f conftest.$ac_objext
30082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30083 (eval $ac_compile) 2>conftest.er1
30085 grep -v '^ *+' conftest.er1 >conftest.err
30087 cat conftest.err >&5
30088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089 (exit $ac_status); } &&
30090 { ac_try='test -z "$ac_cxx_werror_flag"
30091 || test ! -s conftest.err'
30092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30093 (eval $ac_try) 2>&5
30095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096 (exit $ac_status); }; } &&
30097 { ac_try='test -s conftest.$ac_objext'
30098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30099 (eval $ac_try) 2>&5
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); }; }; then
30103 ac_cv_func_isinf_in_cmath=yes
30105 echo "$as_me: failed program was:" >&5
30106 sed 's/^/| /' conftest.$ac_ext >&5
30108 ac_cv_func_isinf_in_cmath=no
30110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30112 ac_cpp='$CPP $CPPFLAGS'
30113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30118 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30119 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
30121 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30123 cat >>confdefs.h <<\_ACEOF
30124 #define HAVE_ISINF_IN_CMATH 1
30129 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30130 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
30131 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30132 echo $ECHO_N "(cached) $ECHO_C" >&6
30135 ac_cpp='$CXXCPP $CPPFLAGS'
30136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30140 cat >conftest.$ac_ext <<_ACEOF
30143 cat confdefs.h >>conftest.$ac_ext
30144 cat >>conftest.$ac_ext <<_ACEOF
30145 /* end confdefs.h. */
30150 float f; std::isinf(f)}
30155 rm -f conftest.$ac_objext
30156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30157 (eval $ac_compile) 2>conftest.er1
30159 grep -v '^ *+' conftest.er1 >conftest.err
30161 cat conftest.err >&5
30162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30163 (exit $ac_status); } &&
30164 { ac_try='test -z "$ac_cxx_werror_flag"
30165 || test ! -s conftest.err'
30166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30167 (eval $ac_try) 2>&5
30169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30170 (exit $ac_status); }; } &&
30171 { ac_try='test -s conftest.$ac_objext'
30172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30173 (eval $ac_try) 2>&5
30175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176 (exit $ac_status); }; }; then
30177 ac_cv_func_std_isinf_in_cmath=yes
30179 echo "$as_me: failed program was:" >&5
30180 sed 's/^/| /' conftest.$ac_ext >&5
30182 ac_cv_func_std_isinf_in_cmath=no
30184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30186 ac_cpp='$CPP $CPPFLAGS'
30187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30192 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30193 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
30195 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
30197 cat >>confdefs.h <<\_ACEOF
30198 #define HAVE_STD_ISINF_IN_CMATH 1
30203 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30204 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30205 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30206 echo $ECHO_N "(cached) $ECHO_C" >&6
30209 ac_cpp='$CXXCPP $CPPFLAGS'
30210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30214 cat >conftest.$ac_ext <<_ACEOF
30217 cat confdefs.h >>conftest.$ac_ext
30218 cat >>conftest.$ac_ext <<_ACEOF
30219 /* end confdefs.h. */
30220 #include <ieeefp.h>
30224 float f; finite(f);
30229 rm -f conftest.$ac_objext
30230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30231 (eval $ac_compile) 2>conftest.er1
30233 grep -v '^ *+' conftest.er1 >conftest.err
30235 cat conftest.err >&5
30236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30237 (exit $ac_status); } &&
30238 { ac_try='test -z "$ac_cxx_werror_flag"
30239 || test ! -s conftest.err'
30240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30241 (eval $ac_try) 2>&5
30243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244 (exit $ac_status); }; } &&
30245 { ac_try='test -s conftest.$ac_objext'
30246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30247 (eval $ac_try) 2>&5
30249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30250 (exit $ac_status); }; }; then
30251 ac_cv_func_finite_in_ieeefp_h=yes
30253 echo "$as_me: failed program was:" >&5
30254 sed 's/^/| /' conftest.$ac_ext >&5
30256 ac_cv_func_finite_in_ieeefp_h=no
30258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30260 ac_cpp='$CPP $CPPFLAGS'
30261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30266 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30267 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30269 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30271 cat >>confdefs.h <<\_ACEOF
30272 #define HAVE_FINITE_IN_IEEEFP_H 1
30281 for ac_header in stdlib.h unistd.h
30283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30285 echo "$as_me:$LINENO: checking for $ac_header" >&5
30286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30288 echo $ECHO_N "(cached) $ECHO_C" >&6
30290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30293 # Is the header compilable?
30294 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30296 cat >conftest.$ac_ext <<_ACEOF
30299 cat confdefs.h >>conftest.$ac_ext
30300 cat >>conftest.$ac_ext <<_ACEOF
30301 /* end confdefs.h. */
30302 $ac_includes_default
30303 #include <$ac_header>
30305 rm -f conftest.$ac_objext
30306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30307 (eval $ac_compile) 2>conftest.er1
30309 grep -v '^ *+' conftest.er1 >conftest.err
30311 cat conftest.err >&5
30312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30313 (exit $ac_status); } &&
30314 { ac_try='test -z "$ac_c_werror_flag"
30315 || test ! -s conftest.err'
30316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30317 (eval $ac_try) 2>&5
30319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30320 (exit $ac_status); }; } &&
30321 { ac_try='test -s conftest.$ac_objext'
30322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30323 (eval $ac_try) 2>&5
30325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30326 (exit $ac_status); }; }; then
30327 ac_header_compiler=yes
30329 echo "$as_me: failed program was:" >&5
30330 sed 's/^/| /' conftest.$ac_ext >&5
30332 ac_header_compiler=no
30334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30336 echo "${ECHO_T}$ac_header_compiler" >&6
30338 # Is the header present?
30339 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30341 cat >conftest.$ac_ext <<_ACEOF
30344 cat confdefs.h >>conftest.$ac_ext
30345 cat >>conftest.$ac_ext <<_ACEOF
30346 /* end confdefs.h. */
30347 #include <$ac_header>
30349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30352 grep -v '^ *+' conftest.er1 >conftest.err
30354 cat conftest.err >&5
30355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356 (exit $ac_status); } >/dev/null; then
30357 if test -s conftest.err; then
30358 ac_cpp_err=$ac_c_preproc_warn_flag
30359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30366 if test -z "$ac_cpp_err"; then
30367 ac_header_preproc=yes
30369 echo "$as_me: failed program was:" >&5
30370 sed 's/^/| /' conftest.$ac_ext >&5
30372 ac_header_preproc=no
30374 rm -f conftest.err conftest.$ac_ext
30375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30376 echo "${ECHO_T}$ac_header_preproc" >&6
30378 # So? What about this header?
30379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30385 ac_header_preproc=yes
30388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30391 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30395 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30402 ## ----------------------------------- ##
30403 ## Report this to llvmbugs@cs.uiuc.edu ##
30404 ## ----------------------------------- ##
30407 sed "s/^/$as_me: WARNING: /" >&2
30410 echo "$as_me:$LINENO: checking for $ac_header" >&5
30411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30413 echo $ECHO_N "(cached) $ECHO_C" >&6
30415 eval "$as_ac_Header=\$ac_header_preproc"
30417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30422 cat >>confdefs.h <<_ACEOF
30423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30431 for ac_func in getpagesize
30433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30434 echo "$as_me:$LINENO: checking for $ac_func" >&5
30435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30436 if eval "test \"\${$as_ac_var+set}\" = set"; then
30437 echo $ECHO_N "(cached) $ECHO_C" >&6
30439 cat >conftest.$ac_ext <<_ACEOF
30442 cat confdefs.h >>conftest.$ac_ext
30443 cat >>conftest.$ac_ext <<_ACEOF
30444 /* end confdefs.h. */
30445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30447 #define $ac_func innocuous_$ac_func
30449 /* System header to define __stub macros and hopefully few prototypes,
30450 which can conflict with char $ac_func (); below.
30451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30452 <limits.h> exists even on freestanding compilers. */
30455 # include <limits.h>
30457 # include <assert.h>
30462 /* Override any gcc2 internal prototype to avoid an error. */
30467 /* We use char because int might match the return type of a gcc2
30468 builtin and then its argument prototype would still apply. */
30470 /* The GNU C library defines this for functions which it implements
30471 to always fail with ENOSYS. Some functions are actually named
30472 something starting with __ and the normal name is an alias. */
30473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30476 char (*f) () = $ac_func;
30485 return f != $ac_func;
30490 rm -f conftest.$ac_objext conftest$ac_exeext
30491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30492 (eval $ac_link) 2>conftest.er1
30494 grep -v '^ *+' conftest.er1 >conftest.err
30496 cat conftest.err >&5
30497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30498 (exit $ac_status); } &&
30499 { ac_try='test -z "$ac_c_werror_flag"
30500 || test ! -s conftest.err'
30501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30502 (eval $ac_try) 2>&5
30504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30505 (exit $ac_status); }; } &&
30506 { ac_try='test -s conftest$ac_exeext'
30507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30508 (eval $ac_try) 2>&5
30510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30511 (exit $ac_status); }; }; then
30512 eval "$as_ac_var=yes"
30514 echo "$as_me: failed program was:" >&5
30515 sed 's/^/| /' conftest.$ac_ext >&5
30517 eval "$as_ac_var=no"
30519 rm -f conftest.err conftest.$ac_objext \
30520 conftest$ac_exeext conftest.$ac_ext
30522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30524 if test `eval echo '${'$as_ac_var'}'` = yes; then
30525 cat >>confdefs.h <<_ACEOF
30526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30532 echo "$as_me:$LINENO: checking for working mmap" >&5
30533 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30534 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30535 echo $ECHO_N "(cached) $ECHO_C" >&6
30537 if test "$cross_compiling" = yes; then
30538 ac_cv_func_mmap_fixed_mapped=no
30540 cat >conftest.$ac_ext <<_ACEOF
30543 cat confdefs.h >>conftest.$ac_ext
30544 cat >>conftest.$ac_ext <<_ACEOF
30545 /* end confdefs.h. */
30546 $ac_includes_default
30547 /* malloc might have been renamed as rpl_malloc. */
30550 /* Thanks to Mike Haertel and Jim Avera for this test.
30551 Here is a matrix of mmap possibilities:
30552 mmap private not fixed
30553 mmap private fixed at somewhere currently unmapped
30554 mmap private fixed at somewhere already mapped
30555 mmap shared not fixed
30556 mmap shared fixed at somewhere currently unmapped
30557 mmap shared fixed at somewhere already mapped
30558 For private mappings, we should verify that changes cannot be read()
30559 back from the file, nor mmap's back from the file at a different
30560 address. (There have been systems where private was not correctly
30561 implemented like the infamous i386 svr4.0, and systems where the
30562 VM page cache was not coherent with the file system buffer cache
30563 like early versions of FreeBSD and possibly contemporary NetBSD.)
30564 For shared mappings, we should conversely verify that changes get
30565 propagated back to all the places they're supposed to be.
30567 Grep wants private fixed already mapped.
30568 The main things grep needs to know about mmap are:
30569 * does it exist and is it safe to write into the mmap'd area
30570 * how to use it (BSD variants) */
30573 #include <sys/mman.h>
30575 #if !STDC_HEADERS && !HAVE_STDLIB_H
30579 /* This mess was copied from the GNU getpagesize.h. */
30580 #if !HAVE_GETPAGESIZE
30581 /* Assume that all systems that can run configure have sys/param.h. */
30582 # if !HAVE_SYS_PARAM_H
30583 # define HAVE_SYS_PARAM_H 1
30586 # ifdef _SC_PAGESIZE
30587 # define getpagesize() sysconf(_SC_PAGESIZE)
30588 # else /* no _SC_PAGESIZE */
30589 # if HAVE_SYS_PARAM_H
30590 # include <sys/param.h>
30591 # ifdef EXEC_PAGESIZE
30592 # define getpagesize() EXEC_PAGESIZE
30593 # else /* no EXEC_PAGESIZE */
30595 # define getpagesize() NBPG * CLSIZE
30598 # endif /* no CLSIZE */
30599 # else /* no NBPG */
30601 # define getpagesize() NBPC
30602 # else /* no NBPC */
30604 # define getpagesize() PAGESIZE
30605 # endif /* PAGESIZE */
30606 # endif /* no NBPC */
30607 # endif /* no NBPG */
30608 # endif /* no EXEC_PAGESIZE */
30609 # else /* no HAVE_SYS_PARAM_H */
30610 # define getpagesize() 8192 /* punt totally */
30611 # endif /* no HAVE_SYS_PARAM_H */
30612 # endif /* no _SC_PAGESIZE */
30614 #endif /* no HAVE_GETPAGESIZE */
30619 char *data, *data2, *data3;
30623 pagesize = getpagesize ();
30625 /* First, make a file with some known garbage in it. */
30626 data = (char *) malloc (pagesize);
30629 for (i = 0; i < pagesize; ++i)
30630 *(data + i) = rand ();
30632 fd = creat ("conftest.mmap", 0600);
30635 if (write (fd, data, pagesize) != pagesize)
30639 /* Next, try to mmap the file at a fixed address which already has
30640 something else allocated at it. If we can, also make sure that
30641 we see the same garbage. */
30642 fd = open ("conftest.mmap", O_RDWR);
30645 data2 = (char *) malloc (2 * pagesize);
30648 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30649 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30650 MAP_PRIVATE | MAP_FIXED, fd, 0L))
30652 for (i = 0; i < pagesize; ++i)
30653 if (*(data + i) != *(data2 + i))
30656 /* Finally, make sure that changes to the mapped area do not
30657 percolate back to the file as seen by read(). (This is a bug on
30658 some variants of i386 svr4.0.) */
30659 for (i = 0; i < pagesize; ++i)
30660 *(data2 + i) = *(data2 + i) + 1;
30661 data3 = (char *) malloc (pagesize);
30664 if (read (fd, data3, pagesize) != pagesize)
30666 for (i = 0; i < pagesize; ++i)
30667 if (*(data + i) != *(data3 + i))
30673 rm -f conftest$ac_exeext
30674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30675 (eval $ac_link) 2>&5
30677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30680 (eval $ac_try) 2>&5
30682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30683 (exit $ac_status); }; }; then
30684 ac_cv_func_mmap_fixed_mapped=yes
30686 echo "$as_me: program exited with status $ac_status" >&5
30687 echo "$as_me: failed program was:" >&5
30688 sed 's/^/| /' conftest.$ac_ext >&5
30690 ( exit $ac_status )
30691 ac_cv_func_mmap_fixed_mapped=no
30693 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30696 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30697 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30698 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30700 cat >>confdefs.h <<\_ACEOF
30701 #define HAVE_MMAP 1
30705 rm -f conftest.mmap
30707 echo "$as_me:$LINENO: checking for mmap of files" >&5
30708 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30709 if test "${ac_cv_func_mmap_file+set}" = set; then
30710 echo $ECHO_N "(cached) $ECHO_C" >&6
30713 ac_cpp='$CPP $CPPFLAGS'
30714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30718 if test "$cross_compiling" = yes; then
30719 ac_cv_func_mmap_file=no
30721 cat >conftest.$ac_ext <<_ACEOF
30725 cat confdefs.h >>conftest.$ac_ext
30726 cat >>conftest.$ac_ext <<_ACEOF
30727 /* end confdefs.h. */
30729 #include <sys/types.h>
30730 #include <sys/mman.h>
30738 fd = creat ("foo",0777);
30739 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30741 return (fd != (int) MAP_FAILED);
30746 rm -f conftest$ac_exeext
30747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30748 (eval $ac_link) 2>&5
30750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30753 (eval $ac_try) 2>&5
30755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30756 (exit $ac_status); }; }; then
30757 ac_cv_func_mmap_file=yes
30759 echo "$as_me: program exited with status $ac_status" >&5
30760 echo "$as_me: failed program was:" >&5
30761 sed 's/^/| /' conftest.$ac_ext >&5
30763 ( exit $ac_status )
30764 ac_cv_func_mmap_file=no
30766 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30769 ac_cpp='$CPP $CPPFLAGS'
30770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30776 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30777 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30778 if test "$ac_cv_func_mmap_file" = yes; then
30780 cat >>confdefs.h <<\_ACEOF
30781 #define HAVE_MMAP_FILE
30788 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30789 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30790 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30791 echo $ECHO_N "(cached) $ECHO_C" >&6
30793 if test "$llvm_cv_os_type" = "Interix" ; then
30794 ac_cv_need_dev_zero_for_mmap=yes
30796 ac_cv_need_dev_zero_for_mmap=no
30800 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30801 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30802 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30804 cat >>confdefs.h <<\_ACEOF
30805 #define NEED_DEV_ZERO_FOR_MMAP 1
30809 echo "$as_me:$LINENO: checking for mprotect" >&5
30810 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30811 if test "${ac_cv_func_mprotect+set}" = set; then
30812 echo $ECHO_N "(cached) $ECHO_C" >&6
30814 cat >conftest.$ac_ext <<_ACEOF
30817 cat confdefs.h >>conftest.$ac_ext
30818 cat >>conftest.$ac_ext <<_ACEOF
30819 /* end confdefs.h. */
30820 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30822 #define mprotect innocuous_mprotect
30824 /* System header to define __stub macros and hopefully few prototypes,
30825 which can conflict with char mprotect (); below.
30826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30827 <limits.h> exists even on freestanding compilers. */
30830 # include <limits.h>
30832 # include <assert.h>
30837 /* Override any gcc2 internal prototype to avoid an error. */
30842 /* We use char because int might match the return type of a gcc2
30843 builtin and then its argument prototype would still apply. */
30845 /* The GNU C library defines this for functions which it implements
30846 to always fail with ENOSYS. Some functions are actually named
30847 something starting with __ and the normal name is an alias. */
30848 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30851 char (*f) () = mprotect;
30860 return f != mprotect;
30865 rm -f conftest.$ac_objext conftest$ac_exeext
30866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30867 (eval $ac_link) 2>conftest.er1
30869 grep -v '^ *+' conftest.er1 >conftest.err
30871 cat conftest.err >&5
30872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873 (exit $ac_status); } &&
30874 { ac_try='test -z "$ac_c_werror_flag"
30875 || test ! -s conftest.err'
30876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30877 (eval $ac_try) 2>&5
30879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880 (exit $ac_status); }; } &&
30881 { ac_try='test -s conftest$ac_exeext'
30882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30883 (eval $ac_try) 2>&5
30885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886 (exit $ac_status); }; }; then
30887 ac_cv_func_mprotect=yes
30889 echo "$as_me: failed program was:" >&5
30890 sed 's/^/| /' conftest.$ac_ext >&5
30892 ac_cv_func_mprotect=no
30894 rm -f conftest.err conftest.$ac_objext \
30895 conftest$ac_exeext conftest.$ac_ext
30897 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30898 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30899 if test $ac_cv_func_mprotect = yes; then
30902 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30903 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30904 { (exit 1); exit 1; }; }
30908 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30910 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30911 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30913 if test "$ac_cv_func_mmap_file" = "no"
30915 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30916 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30920 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30921 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30922 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30923 echo $ECHO_N "(cached) $ECHO_C" >&6
30925 llvm_cv_llvmgcc_sanity="no"
30926 if test -x "$LLVMGCC" ; then
30927 cp /dev/null conftest.c
30928 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
30929 if test $? -eq 0 ; then
30930 llvm_cv_llvmgcc_sanity="yes"
30935 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30936 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30938 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30939 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30940 LLVMCC1=$llvmcc1path
30942 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30943 LLVMCC1PLUS=$llvmcc1pluspath
30945 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30946 LLVMGCCDIR=$llvmgccdir
30948 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
30949 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
30950 LLVMGCC_VERSION=$llvmgccversion
30952 LLVMGCC_MAJVERS=$llvmgccmajvers
30956 SHLIBEXT=$libltdl_cv_shlibext
30959 # Translate the various configuration directories and other basic
30960 # information into substitutions that will end up in Makefile.config.in
30961 # that these configured values can be used by the makefiles
30962 if test "${prefix}" == "NONE" ; then
30963 prefix="/usr/local"
30965 eval LLVM_PREFIX="${prefix}";
30966 eval LLVM_BINDIR="${prefix}/bin";
30967 eval LLVM_LIBDIR="${prefix}/lib";
30968 eval LLVM_DATADIR="${prefix}/share/llvm";
30969 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30970 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30971 eval LLVM_INCLUDEDIR="${prefix}/include";
30972 eval LLVM_INFODIR="${prefix}/info";
30973 eval LLVM_MANDIR="${prefix}/man";
30974 LLVM_CONFIGTIME=`date`
30986 # Place the various directores into the config.h file as #defines so that we
30987 # can know about the installation paths within LLVM.
30989 cat >>confdefs.h <<_ACEOF
30990 #define LLVM_PREFIX "$LLVM_PREFIX"
30994 cat >>confdefs.h <<_ACEOF
30995 #define LLVM_BINDIR "$LLVM_BINDIR"
30999 cat >>confdefs.h <<_ACEOF
31000 #define LLVM_LIBDIR "$LLVM_LIBDIR"
31004 cat >>confdefs.h <<_ACEOF
31005 #define LLVM_DATADIR "$LLVM_DATADIR"
31009 cat >>confdefs.h <<_ACEOF
31010 #define LLVM_DATADIR "$LLVM_DOCSDIR"
31014 cat >>confdefs.h <<_ACEOF
31015 #define LLVM_ETCDIR "$LLVM_ETCDIR"
31019 cat >>confdefs.h <<_ACEOF
31020 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31024 cat >>confdefs.h <<_ACEOF
31025 #define LLVM_INFODIR "$LLVM_INFODIR"
31029 cat >>confdefs.h <<_ACEOF
31030 #define LLVM_MANDIR "$LLVM_MANDIR"
31034 cat >>confdefs.h <<_ACEOF
31035 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31040 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31042 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31044 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31046 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31048 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31051 ac_config_files="$ac_config_files Makefile.config"
31054 ac_config_files="$ac_config_files docs/doxygen.cfg"
31057 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
31060 ac_config_commands="$ac_config_commands setup"
31062 ac_config_commands="$ac_config_commands Makefile"
31065 ac_config_commands="$ac_config_commands Makefile.common"
31068 ac_config_commands="$ac_config_commands examples/Makefile"
31071 ac_config_commands="$ac_config_commands lib/Makefile"
31074 ac_config_commands="$ac_config_commands runtime/Makefile"
31077 ac_config_commands="$ac_config_commands test/Makefile"
31080 ac_config_commands="$ac_config_commands test/Makefile.tests"
31083 ac_config_commands="$ac_config_commands tools/Makefile"
31086 ac_config_commands="$ac_config_commands utils/Makefile"
31089 ac_config_commands="$ac_config_commands projects/Makefile"
31093 cat >confcache <<\_ACEOF
31094 # This file is a shell script that caches the results of configure
31095 # tests run on this system so they can be shared between configure
31096 # scripts and configure runs, see configure's option --config-cache.
31097 # It is not useful on other systems. If it contains results you don't
31098 # want to keep, you may remove or edit it.
31100 # config.status only pays attention to the cache file if you give it
31101 # the --recheck option to rerun configure.
31103 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31104 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31105 # following values.
31109 # The following way of writing the cache mishandles newlines in values,
31110 # but we know of no workaround that is simple, portable, and efficient.
31111 # So, don't put newlines in cache variables' values.
31112 # Ultrix sh set writes to stderr and can't be redirected directly,
31113 # and sets the high bit in the cache file unless we assign to the vars.
31116 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31118 # `set' does not quote correctly, so add quotes (double-quote
31119 # substitution turns \\\\ into \\, and sed turns \\ into \).
31122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31125 # `set' quotes correctly as required by POSIX, so do not add quotes.
31127 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31134 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31136 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31138 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31139 if test -w $cache_file; then
31140 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31141 cat confcache >$cache_file
31143 echo "not updating unwritable cache $cache_file"
31148 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31149 # Let make expand exec_prefix.
31150 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31152 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31153 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31154 # trailing colons and then remove the whole line if VPATH becomes empty
31155 # (actually we leave an empty line to preserve line numbers).
31156 if test "x$srcdir" = x.; then
31157 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31158 s/:*\$(srcdir):*/:/;
31159 s/:*\${srcdir}:*/:/;
31161 s/^\([^=]*=[ ]*\):*/\1/;
31167 DEFS=-DHAVE_CONFIG_H
31171 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31172 # 1. Remove the extension, and $U if already installed.
31173 ac_i=`echo "$ac_i" |
31174 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31176 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31177 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31179 LIBOBJS=$ac_libobjs
31181 LTLIBOBJS=$ac_ltlibobjs
31184 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31185 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31186 Usually this means the macro was only invoked conditionally." >&5
31187 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31188 Usually this means the macro was only invoked conditionally." >&2;}
31189 { (exit 1); exit 1; }; }
31191 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31192 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31193 Usually this means the macro was only invoked conditionally." >&5
31194 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31195 Usually this means the macro was only invoked conditionally." >&2;}
31196 { (exit 1); exit 1; }; }
31199 : ${CONFIG_STATUS=./config.status}
31200 ac_clean_files_save=$ac_clean_files
31201 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31202 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31203 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31204 cat >$CONFIG_STATUS <<_ACEOF
31206 # Generated by $as_me.
31207 # Run this file to recreate the current configuration.
31208 # Compiler output produced by configure, useful for debugging
31209 # configure, is in config.log if it exists.
31212 ac_cs_recheck=false
31214 SHELL=\${CONFIG_SHELL-$SHELL}
31217 cat >>$CONFIG_STATUS <<\_ACEOF
31218 ## --------------------- ##
31219 ## M4sh Initialization. ##
31220 ## --------------------- ##
31222 # Be Bourne compatible
31223 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31226 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31227 # is contrary to our usage. Disable this feature.
31228 alias -g '${1+"$@"}'='"$@"'
31229 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31232 DUALCASE=1; export DUALCASE # for MKS sh
31234 # Support unset when possible.
31235 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31242 # Work around bugs in pre-3.0 UWIN ksh.
31243 $as_unset ENV MAIL MAILPATH
31250 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31251 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31252 LC_TELEPHONE LC_TIME
31254 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31255 eval $as_var=C; export $as_var
31261 # Required to use basename.
31262 if expr a : '\(a\)' >/dev/null 2>&1; then
31268 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31269 as_basename=basename
31275 # Name of the executable.
31276 as_me=`$as_basename "$0" ||
31277 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31278 X"$0" : 'X\(//\)$' \| \
31279 X"$0" : 'X\(/\)$' \| \
31280 . : '\(.\)' 2>/dev/null ||
31282 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31283 /^X\/\(\/\/\)$/{ s//\1/; q; }
31284 /^X\/\(\/\).*/{ s//\1/; q; }
31288 # PATH needs CR, and LINENO needs CR and PATH.
31289 # Avoid depending upon Character Ranges.
31290 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31291 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31292 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31293 as_cr_digits='0123456789'
31294 as_cr_alnum=$as_cr_Letters$as_cr_digits
31296 # The user is always right.
31297 if test "${PATH_SEPARATOR+set}" != set; then
31298 echo "#! /bin/sh" >conf$$.sh
31299 echo "exit 0" >>conf$$.sh
31301 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31310 as_lineno_1=$LINENO
31311 as_lineno_2=$LINENO
31312 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31313 test "x$as_lineno_1" != "x$as_lineno_2" &&
31314 test "x$as_lineno_3" = "x$as_lineno_2" || {
31315 # Find who we are. Look in the path if we contain no path at all
31318 *[\\/]* ) as_myself=$0 ;;
31319 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31320 for as_dir in $PATH
31323 test -z "$as_dir" && as_dir=.
31324 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31329 # We did not find ourselves, most probably we were run as `sh COMMAND'
31330 # in which case we are not to be found in the path.
31331 if test "x$as_myself" = x; then
31334 if test ! -f "$as_myself"; then
31335 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31336 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31337 { (exit 1); exit 1; }; }
31339 case $CONFIG_SHELL in
31341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31342 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31345 test -z "$as_dir" && as_dir=.
31346 for as_base in sh bash ksh sh5; do
31349 if ("$as_dir/$as_base" -c '
31350 as_lineno_1=$LINENO
31351 as_lineno_2=$LINENO
31352 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31353 test "x$as_lineno_1" != "x$as_lineno_2" &&
31354 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
31355 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31356 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31357 CONFIG_SHELL=$as_dir/$as_base
31358 export CONFIG_SHELL
31359 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31367 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31368 # uniformly replaced by the line number. The first 'sed' inserts a
31369 # line-number line before each line; the second 'sed' does the real
31370 # work. The second script uses 'N' to pair each line-number line
31371 # with the numbered line, and appends trailing '-' during
31372 # substitution so that $LINENO is not a special case at line end.
31373 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31374 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31375 sed '=' <$as_myself |
31380 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31383 s,^['$as_cr_digits']*\n,,
31384 ' >$as_me.lineno &&
31385 chmod +x $as_me.lineno ||
31386 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31387 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31388 { (exit 1); exit 1; }; }
31390 # Don't try to exec as it changes $[0], causing all sort of problems
31391 # (the dirname of $[0] is not the place where we might find the
31392 # original and so on. Autoconf is especially sensible to this).
31394 # Exit status is that of the last command.
31399 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31400 *c*,-n*) ECHO_N= ECHO_C='
31402 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31403 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31406 if expr a : '\(a\)' >/dev/null 2>&1; then
31412 rm -f conf$$ conf$$.exe conf$$.file
31414 if ln -s conf$$.file conf$$ 2>/dev/null; then
31415 # We could just check for DJGPP; but this test a) works b) is more generic
31416 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31417 if test -f conf$$.exe; then
31418 # Don't use ln at all; we don't have any links
31423 elif ln conf$$.file conf$$ 2>/dev/null; then
31428 rm -f conf$$ conf$$.exe conf$$.file
31430 if mkdir -p . 2>/dev/null; then
31433 test -d ./-p && rmdir ./-p
31437 as_executable_p="test -f"
31439 # Sed expression to map a string onto a valid CPP name.
31440 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31442 # Sed expression to map a string onto a valid variable name.
31443 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31447 # We need space, tab and new line, in precisely that order.
31457 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31458 # report actual input values of CONFIG_FILES etc. instead of their
31459 # values after options handling. Logging --version etc. is OK.
31463 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31464 ## Running $as_me. ##
31469 This file was extended by llvm $as_me 1.8cvs, which was
31470 generated by GNU Autoconf 2.59. Invocation command line was
31472 CONFIG_FILES = $CONFIG_FILES
31473 CONFIG_HEADERS = $CONFIG_HEADERS
31474 CONFIG_LINKS = $CONFIG_LINKS
31475 CONFIG_COMMANDS = $CONFIG_COMMANDS
31479 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31483 # Files that config.status was made for.
31484 if test -n "$ac_config_files"; then
31485 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31488 if test -n "$ac_config_headers"; then
31489 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31492 if test -n "$ac_config_links"; then
31493 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31496 if test -n "$ac_config_commands"; then
31497 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31500 cat >>$CONFIG_STATUS <<\_ACEOF
31503 \`$as_me' instantiates files from templates according to the
31504 current configuration.
31506 Usage: $0 [OPTIONS] [FILE]...
31508 -h, --help print this help, then exit
31509 -V, --version print version number, then exit
31510 -q, --quiet do not print progress messages
31511 -d, --debug don't remove temporary files
31512 --recheck update $as_me by reconfiguring in the same conditions
31513 --file=FILE[:TEMPLATE]
31514 instantiate the configuration file FILE
31515 --header=FILE[:TEMPLATE]
31516 instantiate the configuration header FILE
31518 Configuration files:
31521 Configuration headers:
31524 Configuration commands:
31527 Report bugs to <bug-autoconf@gnu.org>."
31530 cat >>$CONFIG_STATUS <<_ACEOF
31532 llvm config.status 1.8cvs
31533 configured by $0, generated by GNU Autoconf 2.59,
31534 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31536 Copyright (C) 2003 Free Software Foundation, Inc.
31537 This config.status script is free software; the Free Software Foundation
31538 gives unlimited permission to copy, distribute and modify it."
31543 cat >>$CONFIG_STATUS <<\_ACEOF
31544 # If no file are specified by the user, then we need to provide default
31545 # value. By we need to know if files were specified by the user.
31551 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31552 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31560 *) # This is not an option, so the user has probably given explicit
31563 ac_need_defaults=false;;
31567 # Handling of the options.
31569 cat >>$CONFIG_STATUS <<\_ACEOF
31570 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31572 --version | --vers* | -V )
31573 echo "$ac_cs_version"; exit 0 ;;
31575 # Conflict between --help and --header
31576 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31577 Try \`$0 --help' for more information." >&5
31578 echo "$as_me: error: ambiguous option: $1
31579 Try \`$0 --help' for more information." >&2;}
31580 { (exit 1); exit 1; }; };;
31581 --help | --hel | -h )
31582 echo "$ac_cs_usage"; exit 0 ;;
31583 --debug | --d* | -d )
31585 --file | --fil | --fi | --f )
31587 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31588 ac_need_defaults=false;;
31589 --header | --heade | --head | --hea )
31591 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31592 ac_need_defaults=false;;
31593 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31594 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31597 # This is an error.
31598 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31599 Try \`$0 --help' for more information." >&5
31600 echo "$as_me: error: unrecognized option: $1
31601 Try \`$0 --help' for more information." >&2;}
31602 { (exit 1); exit 1; }; } ;;
31604 *) ac_config_targets="$ac_config_targets $1" ;;
31610 ac_configure_extra_args=
31612 if $ac_cs_silent; then
31614 ac_configure_extra_args="$ac_configure_extra_args --silent"
31618 cat >>$CONFIG_STATUS <<_ACEOF
31619 if \$ac_cs_recheck; then
31620 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31621 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31626 cat >>$CONFIG_STATUS <<_ACEOF
31628 # INIT-COMMANDS section.
31631 llvm_src="${srcdir}"
31637 cat >>$CONFIG_STATUS <<\_ACEOF
31638 for ac_config_target in $ac_config_targets
31640 case "$ac_config_target" in
31641 # Handling of arguments.
31642 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31643 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31644 "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
31645 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31646 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31647 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31648 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31649 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31650 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31651 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31652 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31653 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31654 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31655 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31656 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31657 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31658 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31659 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31660 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31661 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31662 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31663 { (exit 1); exit 1; }; };;
31667 # If the user did not use the arguments to specify the items to instantiate,
31668 # then the envvar interface is used. Set only those that are not.
31669 # We use the long form for the default assignment because of an extremely
31670 # bizarre bug on SunOS 4.1.3.
31671 if $ac_need_defaults; then
31672 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31673 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31674 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31677 # Have a temporary directory for convenience. Make it in the build tree
31678 # simply because there is no reason to put it here, and in addition,
31679 # creating and moving files from /tmp can sometimes cause problems.
31680 # Create a temporary directory, and hook for its removal unless debugging.
31683 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31684 trap '{ (exit 1); exit 1; }' 1 2 13 15
31687 # Create a (secure) tmp directory for tmp files.
31690 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31691 test -n "$tmp" && test -d "$tmp"
31694 tmp=./confstat$$-$RANDOM
31695 (umask 077 && mkdir $tmp)
31698 echo "$me: cannot create a temporary directory in ." >&2
31699 { (exit 1); exit 1; }
31704 cat >>$CONFIG_STATUS <<_ACEOF
31707 # CONFIG_FILES section.
31710 # No need to generate the scripts if there are no CONFIG_FILES.
31711 # This happens for instance when ./config.status config.h
31712 if test -n "\$CONFIG_FILES"; then
31713 # Protect against being on the right side of a sed subst in config.status.
31714 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31715 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31716 s,@SHELL@,$SHELL,;t t
31717 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31718 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31719 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31720 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31721 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31722 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31723 s,@exec_prefix@,$exec_prefix,;t t
31724 s,@prefix@,$prefix,;t t
31725 s,@program_transform_name@,$program_transform_name,;t t
31726 s,@bindir@,$bindir,;t t
31727 s,@sbindir@,$sbindir,;t t
31728 s,@libexecdir@,$libexecdir,;t t
31729 s,@datadir@,$datadir,;t t
31730 s,@sysconfdir@,$sysconfdir,;t t
31731 s,@sharedstatedir@,$sharedstatedir,;t t
31732 s,@localstatedir@,$localstatedir,;t t
31733 s,@libdir@,$libdir,;t t
31734 s,@includedir@,$includedir,;t t
31735 s,@oldincludedir@,$oldincludedir,;t t
31736 s,@infodir@,$infodir,;t t
31737 s,@mandir@,$mandir,;t t
31738 s,@build_alias@,$build_alias,;t t
31739 s,@host_alias@,$host_alias,;t t
31740 s,@target_alias@,$target_alias,;t t
31741 s,@DEFS@,$DEFS,;t t
31742 s,@ECHO_C@,$ECHO_C,;t t
31743 s,@ECHO_N@,$ECHO_N,;t t
31744 s,@ECHO_T@,$ECHO_T,;t t
31745 s,@LIBS@,$LIBS,;t t
31746 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31747 s,@subdirs@,$subdirs,;t t
31748 s,@build@,$build,;t t
31749 s,@build_cpu@,$build_cpu,;t t
31750 s,@build_vendor@,$build_vendor,;t t
31751 s,@build_os@,$build_os,;t t
31752 s,@host@,$host,;t t
31753 s,@host_cpu@,$host_cpu,;t t
31754 s,@host_vendor@,$host_vendor,;t t
31755 s,@host_os@,$host_os,;t t
31756 s,@target@,$target,;t t
31757 s,@target_cpu@,$target_cpu,;t t
31758 s,@target_vendor@,$target_vendor,;t t
31759 s,@target_os@,$target_os,;t t
31761 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31762 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31763 s,@ARCH@,$ARCH,;t t
31764 s,@ENDIAN@,$ENDIAN,;t t
31766 s,@CFLAGS@,$CFLAGS,;t t
31767 s,@LDFLAGS@,$LDFLAGS,;t t
31768 s,@CPPFLAGS@,$CPPFLAGS,;t t
31769 s,@ac_ct_CC@,$ac_ct_CC,;t t
31770 s,@EXEEXT@,$EXEEXT,;t t
31771 s,@OBJEXT@,$OBJEXT,;t t
31772 s,@CVSBUILD@,$CVSBUILD,;t t
31773 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31774 s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
31775 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31777 s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
31778 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31779 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31780 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31783 s,@CXXFLAGS@,$CXXFLAGS,;t t
31784 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31786 s,@LEXLIB@,$LEXLIB,;t t
31787 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31788 s,@FLEX@,$FLEX,;t t
31789 s,@YACC@,$YACC,;t t
31790 s,@BISON@,$BISON,;t t
31791 s,@ifGNUmake@,$ifGNUmake,;t t
31792 s,@LN_S@,$LN_S,;t t
31795 s,@DATE@,$DATE,;t t
31796 s,@FIND@,$FIND,;t t
31797 s,@GREP@,$GREP,;t t
31798 s,@MKDIR@,$MKDIR,;t t
31800 s,@RANLIB@,$RANLIB,;t t
31801 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31805 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31808 s,@DOTTY@,$DOTTY,;t t
31809 s,@PERL@,$PERL,;t t
31810 s,@HAVE_PERL@,$HAVE_PERL,;t t
31811 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31812 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31813 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31814 s,@BZIP2@,$BZIP2,;t t
31815 s,@DOXYGEN@,$DOXYGEN,;t t
31816 s,@ETAGS@,$ETAGS,;t t
31817 s,@GROFF@,$GROFF,;t t
31818 s,@GZIP@,$GZIP,;t t
31819 s,@POD2HTML@,$POD2HTML,;t t
31820 s,@POD2MAN@,$POD2MAN,;t t
31821 s,@RUNTEST@,$RUNTEST,;t t
31822 s,@TCLSH@,$TCLSH,;t t
31824 s,@EGREP@,$EGREP,;t t
31825 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31826 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31827 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31828 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31829 s,@LIBADD_DL@,$LIBADD_DL,;t t
31830 s,@ECHO@,$ECHO,;t t
31832 s,@ac_ct_AR@,$ac_ct_AR,;t t
31833 s,@STRIP@,$STRIP,;t t
31834 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31835 s,@CXXCPP@,$CXXCPP,;t t
31837 s,@FFLAGS@,$FFLAGS,;t t
31838 s,@ac_ct_F77@,$ac_ct_F77,;t t
31839 s,@LIBTOOL@,$LIBTOOL,;t t
31840 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31841 s,@LLVMGCC@,$LLVMGCC,;t t
31842 s,@LLVMGXX@,$LLVMGXX,;t t
31843 s,@ALLOCA@,$ALLOCA,;t t
31844 s,@MMAP_FILE@,$MMAP_FILE,;t t
31845 s,@LLVMCC1@,$LLVMCC1,;t t
31846 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31847 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31848 s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
31849 s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
31850 s,@SHLIBEXT@,$SHLIBEXT,;t t
31851 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31852 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31853 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31854 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31855 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31856 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31857 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31858 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31859 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31860 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31861 s,@LIBOBJS@,$LIBOBJS,;t t
31862 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31867 cat >>$CONFIG_STATUS <<\_ACEOF
31868 # Split the substitutions into bite-sized pieces for seds with
31869 # small command number limits, like on Digital OSF/1 and HP-UX.
31870 ac_max_sed_lines=48
31871 ac_sed_frag=1 # Number of current file.
31872 ac_beg=1 # First line for current file.
31873 ac_end=$ac_max_sed_lines # Line after last line for current file.
31876 while $ac_more_lines; do
31877 if test $ac_beg -gt 1; then
31878 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31880 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31882 if test ! -s $tmp/subs.frag; then
31883 ac_more_lines=false
31885 # The purpose of the label and of the branching condition is to
31886 # speed up the sed processing (if there are no `@' at all, there
31887 # is no need to browse any of the substitutions).
31888 # These are the two extra sed commands mentioned above.
31890 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31891 if test -z "$ac_sed_cmds"; then
31892 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31894 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31896 ac_sed_frag=`expr $ac_sed_frag + 1`
31898 ac_end=`expr $ac_end + $ac_max_sed_lines`
31901 if test -z "$ac_sed_cmds"; then
31904 fi # test -n "$CONFIG_FILES"
31907 cat >>$CONFIG_STATUS <<\_ACEOF
31908 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31909 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31911 - | *:- | *:-:* ) # input from stdin
31913 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31914 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31915 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31916 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31917 * ) ac_file_in=$ac_file.in ;;
31920 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31921 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31922 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31923 X"$ac_file" : 'X\(//\)[^/]' \| \
31924 X"$ac_file" : 'X\(//\)$' \| \
31925 X"$ac_file" : 'X\(/\)' \| \
31926 . : '\(.\)' 2>/dev/null ||
31928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31929 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31930 /^X\(\/\/\)$/{ s//\1/; q; }
31931 /^X\(\/\).*/{ s//\1/; q; }
31933 { if $as_mkdir_p; then
31938 while test ! -d "$as_dir"; do
31939 as_dirs="$as_dir $as_dirs"
31940 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31941 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31942 X"$as_dir" : 'X\(//\)[^/]' \| \
31943 X"$as_dir" : 'X\(//\)$' \| \
31944 X"$as_dir" : 'X\(/\)' \| \
31945 . : '\(.\)' 2>/dev/null ||
31947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31948 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31949 /^X\(\/\/\)$/{ s//\1/; q; }
31950 /^X\(\/\).*/{ s//\1/; q; }
31953 test ! -n "$as_dirs" || mkdir $as_dirs
31954 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31955 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31956 { (exit 1); exit 1; }; }; }
31960 if test "$ac_dir" != .; then
31961 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31962 # A "../" for each directory in $ac_dir_suffix.
31963 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31965 ac_dir_suffix= ac_top_builddir=
31969 .) # No --srcdir option. We are building in place.
31971 if test -z "$ac_top_builddir"; then
31974 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31976 [\\/]* | ?:[\\/]* ) # Absolute path.
31977 ac_srcdir=$srcdir$ac_dir_suffix;
31978 ac_top_srcdir=$srcdir ;;
31979 *) # Relative path.
31980 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31981 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31984 # Do not use `cd foo && pwd` to compute absolute paths, because
31985 # the directories may not exist.
31987 .) ac_abs_builddir="$ac_dir";;
31990 .) ac_abs_builddir=`pwd`;;
31991 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31992 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31995 case $ac_abs_builddir in
31996 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31998 case ${ac_top_builddir}. in
31999 .) ac_abs_top_builddir=$ac_abs_builddir;;
32000 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32001 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32004 case $ac_abs_builddir in
32005 .) ac_abs_srcdir=$ac_srcdir;;
32008 .) ac_abs_srcdir=$ac_abs_builddir;;
32009 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32010 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32013 case $ac_abs_builddir in
32014 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32016 case $ac_top_srcdir in
32017 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32018 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32019 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32025 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32026 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32029 if test x"$ac_file" != x-; then
32030 { echo "$as_me:$LINENO: creating $ac_file" >&5
32031 echo "$as_me: creating $ac_file" >&6;}
32034 # Let's still pretend it is `configure' which instantiates (i.e., don't
32035 # use $as_me), people would be surprised to read:
32036 # /* config.h. Generated by config.status. */
32037 if test x"$ac_file" = x-; then
32040 configure_input="$ac_file. "
32042 configure_input=$configure_input"Generated from `echo $ac_file_in |
32043 sed 's,.*/,,'` by configure."
32045 # First look for the input files in the build tree, otherwise in the
32047 ac_file_inputs=`IFS=:
32048 for f in $ac_file_in; do
32050 -) echo $tmp/stdin ;;
32052 # Absolute (can't be DOS-style, as IFS=:)
32053 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32054 echo "$as_me: error: cannot find input file: $f" >&2;}
32055 { (exit 1); exit 1; }; }
32058 if test -f "$f"; then
32061 elif test -f "$srcdir/$f"; then
32066 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32067 echo "$as_me: error: cannot find input file: $f" >&2;}
32068 { (exit 1); exit 1; }; }
32071 done` || { (exit 1); exit 1; }
32073 cat >>$CONFIG_STATUS <<_ACEOF
32077 cat >>$CONFIG_STATUS <<\_ACEOF
32079 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32080 s,@configure_input@,$configure_input,;t t
32081 s,@srcdir@,$ac_srcdir,;t t
32082 s,@abs_srcdir@,$ac_abs_srcdir,;t t
32083 s,@top_srcdir@,$ac_top_srcdir,;t t
32084 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32085 s,@builddir@,$ac_builddir,;t t
32086 s,@abs_builddir@,$ac_abs_builddir,;t t
32087 s,@top_builddir@,$ac_top_builddir,;t t
32088 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32089 s,@INSTALL@,$ac_INSTALL,;t t
32090 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32092 if test x"$ac_file" != x-; then
32093 mv $tmp/out $ac_file
32101 cat >>$CONFIG_STATUS <<\_ACEOF
32104 # CONFIG_HEADER section.
32107 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32108 # NAME is the cpp macro being defined and VALUE is the value it is being given.
32110 # ac_d sets the value in "#define NAME VALUE" lines.
32111 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
32112 ac_dB='[ ].*$,\1#\2'
32115 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32116 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
32117 ac_uB='$,\1#\2define\3'
32121 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32122 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32124 - | *:- | *:-:* ) # input from stdin
32126 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32127 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32128 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32129 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32130 * ) ac_file_in=$ac_file.in ;;
32133 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32134 echo "$as_me: creating $ac_file" >&6;}
32136 # First look for the input files in the build tree, otherwise in the
32138 ac_file_inputs=`IFS=:
32139 for f in $ac_file_in; do
32141 -) echo $tmp/stdin ;;
32143 # Absolute (can't be DOS-style, as IFS=:)
32144 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32145 echo "$as_me: error: cannot find input file: $f" >&2;}
32146 { (exit 1); exit 1; }; }
32147 # Do quote $f, to prevent DOS paths from being IFS'd.
32150 if test -f "$f"; then
32153 elif test -f "$srcdir/$f"; then
32158 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32159 echo "$as_me: error: cannot find input file: $f" >&2;}
32160 { (exit 1); exit 1; }; }
32163 done` || { (exit 1); exit 1; }
32164 # Remove the trailing spaces.
32165 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
32169 # Transform confdefs.h into two sed scripts, `conftest.defines' and
32170 # `conftest.undefs', that substitutes the proper values into
32171 # config.h.in to produce config.h. The first handles `#define'
32172 # templates, and the second `#undef' templates.
32173 # And first: Protect against being on the right side of a sed subst in
32174 # config.status. Protect against being in an unquoted here document
32175 # in config.status.
32176 rm -f conftest.defines conftest.undefs
32177 # Using a here document instead of a string reduces the quoting nightmare.
32178 # Putting comments in sed scripts is not portable.
32180 # `end' is used to avoid that the second main sed command (meant for
32181 # 0-ary CPP macros) applies to n-ary macro definitions.
32182 # See the Autoconf documentation for `clear'.
32183 cat >confdef2sed.sed <<\_ACEOF
32188 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32190 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32193 # If some macros were called several times there might be several times
32194 # the same #defines, which is useless. Nevertheless, we may not want to
32195 # sort them, since we want the *last* AC-DEFINE to be honored.
32196 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32197 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32198 rm -f confdef2sed.sed
32200 # This sed command replaces #undef with comments. This is necessary, for
32201 # example, in the case of _POSIX_SOURCE, which is predefined and required
32202 # on some systems where configure will not decide to define it.
32203 cat >>conftest.undefs <<\_ACEOF
32204 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32207 # Break up conftest.defines because some shells have a limit on the size
32208 # of here documents, and old seds have small limits too (100 cmds).
32209 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32210 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32211 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32212 echo ' :' >>$CONFIG_STATUS
32213 rm -f conftest.tail
32214 while grep . conftest.defines >/dev/null
32216 # Write a limited-size here document to $tmp/defines.sed.
32217 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32218 # Speed up: don't consider the non `#define' lines.
32219 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
32220 # Work around the forget-to-reset-the-flag bug.
32221 echo 't clr' >>$CONFIG_STATUS
32222 echo ': clr' >>$CONFIG_STATUS
32223 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32225 sed -f $tmp/defines.sed $tmp/in >$tmp/out
32227 mv $tmp/out $tmp/in
32229 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32230 rm -f conftest.defines
32231 mv conftest.tail conftest.defines
32233 rm -f conftest.defines
32234 echo ' fi # grep' >>$CONFIG_STATUS
32235 echo >>$CONFIG_STATUS
32237 # Break up conftest.undefs because some shells have a limit on the size
32238 # of here documents, and old seds have small limits too (100 cmds).
32239 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
32240 rm -f conftest.tail
32241 while grep . conftest.undefs >/dev/null
32243 # Write a limited-size here document to $tmp/undefs.sed.
32244 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32245 # Speed up: don't consider the non `#undef'
32246 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
32247 # Work around the forget-to-reset-the-flag bug.
32248 echo 't clr' >>$CONFIG_STATUS
32249 echo ': clr' >>$CONFIG_STATUS
32250 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32252 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32254 mv $tmp/out $tmp/in
32256 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32257 rm -f conftest.undefs
32258 mv conftest.tail conftest.undefs
32260 rm -f conftest.undefs
32262 cat >>$CONFIG_STATUS <<\_ACEOF
32263 # Let's still pretend it is `configure' which instantiates (i.e., don't
32264 # use $as_me), people would be surprised to read:
32265 # /* config.h. Generated by config.status. */
32266 if test x"$ac_file" = x-; then
32267 echo "/* Generated by configure. */" >$tmp/config.h
32269 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32271 cat $tmp/in >>$tmp/config.h
32273 if test x"$ac_file" != x-; then
32274 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32275 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32276 echo "$as_me: $ac_file is unchanged" >&6;}
32278 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32279 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32280 X"$ac_file" : 'X\(//\)[^/]' \| \
32281 X"$ac_file" : 'X\(//\)$' \| \
32282 X"$ac_file" : 'X\(/\)' \| \
32283 . : '\(.\)' 2>/dev/null ||
32285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32286 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32287 /^X\(\/\/\)$/{ s//\1/; q; }
32288 /^X\(\/\).*/{ s//\1/; q; }
32290 { if $as_mkdir_p; then
32295 while test ! -d "$as_dir"; do
32296 as_dirs="$as_dir $as_dirs"
32297 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32299 X"$as_dir" : 'X\(//\)[^/]' \| \
32300 X"$as_dir" : 'X\(//\)$' \| \
32301 X"$as_dir" : 'X\(/\)' \| \
32302 . : '\(.\)' 2>/dev/null ||
32304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32305 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32306 /^X\(\/\/\)$/{ s//\1/; q; }
32307 /^X\(\/\).*/{ s//\1/; q; }
32310 test ! -n "$as_dirs" || mkdir $as_dirs
32311 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32312 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32313 { (exit 1); exit 1; }; }; }
32316 mv $tmp/config.h $ac_file
32320 rm -f $tmp/config.h
32324 cat >>$CONFIG_STATUS <<\_ACEOF
32327 # CONFIG_COMMANDS section.
32329 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32330 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32331 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32332 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32333 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32334 X"$ac_dest" : 'X\(//\)[^/]' \| \
32335 X"$ac_dest" : 'X\(//\)$' \| \
32336 X"$ac_dest" : 'X\(/\)' \| \
32337 . : '\(.\)' 2>/dev/null ||
32339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32340 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32341 /^X\(\/\/\)$/{ s//\1/; q; }
32342 /^X\(\/\).*/{ s//\1/; q; }
32344 { if $as_mkdir_p; then
32349 while test ! -d "$as_dir"; do
32350 as_dirs="$as_dir $as_dirs"
32351 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32353 X"$as_dir" : 'X\(//\)[^/]' \| \
32354 X"$as_dir" : 'X\(//\)$' \| \
32355 X"$as_dir" : 'X\(/\)' \| \
32356 . : '\(.\)' 2>/dev/null ||
32358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32359 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32360 /^X\(\/\/\)$/{ s//\1/; q; }
32361 /^X\(\/\).*/{ s//\1/; q; }
32364 test ! -n "$as_dirs" || mkdir $as_dirs
32365 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32366 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32367 { (exit 1); exit 1; }; }; }
32371 if test "$ac_dir" != .; then
32372 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32373 # A "../" for each directory in $ac_dir_suffix.
32374 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32376 ac_dir_suffix= ac_top_builddir=
32380 .) # No --srcdir option. We are building in place.
32382 if test -z "$ac_top_builddir"; then
32385 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32387 [\\/]* | ?:[\\/]* ) # Absolute path.
32388 ac_srcdir=$srcdir$ac_dir_suffix;
32389 ac_top_srcdir=$srcdir ;;
32390 *) # Relative path.
32391 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32392 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32395 # Do not use `cd foo && pwd` to compute absolute paths, because
32396 # the directories may not exist.
32398 .) ac_abs_builddir="$ac_dir";;
32401 .) ac_abs_builddir=`pwd`;;
32402 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32403 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32406 case $ac_abs_builddir in
32407 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32409 case ${ac_top_builddir}. in
32410 .) ac_abs_top_builddir=$ac_abs_builddir;;
32411 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32412 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32415 case $ac_abs_builddir in
32416 .) ac_abs_srcdir=$ac_srcdir;;
32419 .) ac_abs_srcdir=$ac_abs_builddir;;
32420 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32421 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32424 case $ac_abs_builddir in
32425 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32427 case $ac_top_srcdir in
32428 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32429 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32430 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32435 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32436 echo "$as_me: executing $ac_dest commands" >&6;}
32438 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32439 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32440 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32441 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32442 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32443 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32444 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32445 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32446 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32447 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32448 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32449 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32450 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32451 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32452 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32453 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32454 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32455 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32456 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32457 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32462 cat >>$CONFIG_STATUS <<\_ACEOF
32464 { (exit 0); exit 0; }
32466 chmod +x $CONFIG_STATUS
32467 ac_clean_files=$ac_clean_files_save
32470 # configure is writing to config.log, and then calls config.status.
32471 # config.status does its own redirection, appending to config.log.
32472 # Unfortunately, on DOS this fails, as config.log is still kept open
32473 # by configure, so config.status won't be able to write to it; its
32474 # output is simply discarded. So we exec the FD to /dev/null,
32475 # effectively closing config.log, so it can be properly (re)opened and
32476 # appended to by config.status. When coming back to configure, we
32477 # need to make the FD available again.
32478 if test "$no_create" != yes; then
32480 ac_config_status_args=
32481 test "$silent" = yes &&
32482 ac_config_status_args="$ac_config_status_args --quiet"
32484 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32486 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32487 # would make configure fail if this is the last instruction.
32488 $ac_cs_success || { (exit 1); exit 1; }
32492 # CONFIG_SUBDIRS section.
32494 if test "$no_recursion" != yes; then
32496 # Remove --cache-file and --srcdir arguments so they do not pile up.
32497 ac_sub_configure_args=
32499 for ac_arg in $ac_configure_args; do
32500 if test -n "$ac_prev"; then
32505 -cache-file | --cache-file | --cache-fil | --cache-fi \
32506 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32507 ac_prev=cache_file ;;
32508 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32509 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32512 --config-cache | -C)
32514 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32516 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32518 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32520 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32522 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32526 # Always prepend --prefix to ensure using the same prefix
32527 # in subdir configurations.
32528 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32531 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32533 # Do not complain, so a configure script can configure whichever
32534 # parts of a large source tree are present.
32535 test -d $srcdir/$ac_dir || continue
32537 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32538 echo "$as_me: configuring in $ac_dir" >&6;}
32539 { if $as_mkdir_p; then
32544 while test ! -d "$as_dir"; do
32545 as_dirs="$as_dir $as_dirs"
32546 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32547 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32548 X"$as_dir" : 'X\(//\)[^/]' \| \
32549 X"$as_dir" : 'X\(//\)$' \| \
32550 X"$as_dir" : 'X\(/\)' \| \
32551 . : '\(.\)' 2>/dev/null ||
32553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32554 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32555 /^X\(\/\/\)$/{ s//\1/; q; }
32556 /^X\(\/\).*/{ s//\1/; q; }
32559 test ! -n "$as_dirs" || mkdir $as_dirs
32560 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32561 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32562 { (exit 1); exit 1; }; }; }
32566 if test "$ac_dir" != .; then
32567 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32568 # A "../" for each directory in $ac_dir_suffix.
32569 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32571 ac_dir_suffix= ac_top_builddir=
32575 .) # No --srcdir option. We are building in place.
32577 if test -z "$ac_top_builddir"; then
32580 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32582 [\\/]* | ?:[\\/]* ) # Absolute path.
32583 ac_srcdir=$srcdir$ac_dir_suffix;
32584 ac_top_srcdir=$srcdir ;;
32585 *) # Relative path.
32586 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32587 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32590 # Do not use `cd foo && pwd` to compute absolute paths, because
32591 # the directories may not exist.
32593 .) ac_abs_builddir="$ac_dir";;
32596 .) ac_abs_builddir=`pwd`;;
32597 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32598 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32601 case $ac_abs_builddir in
32602 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32604 case ${ac_top_builddir}. in
32605 .) ac_abs_top_builddir=$ac_abs_builddir;;
32606 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32607 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32610 case $ac_abs_builddir in
32611 .) ac_abs_srcdir=$ac_srcdir;;
32614 .) ac_abs_srcdir=$ac_abs_builddir;;
32615 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32616 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32619 case $ac_abs_builddir in
32620 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32622 case $ac_top_srcdir in
32623 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32624 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32625 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32632 # Check for guested configure; otherwise get Cygnus style configure.
32633 if test -f $ac_srcdir/configure.gnu; then
32634 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32635 elif test -f $ac_srcdir/configure; then
32636 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32637 elif test -f $ac_srcdir/configure.in; then
32638 ac_sub_configure=$ac_configure
32640 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32641 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32645 # The recursion is here.
32646 if test -n "$ac_sub_configure"; then
32647 # Make the cache file name correct relative to the subdirectory.
32648 case $cache_file in
32649 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32650 *) # Relative path.
32651 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32654 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32655 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32656 # The eval makes quoting arguments work.
32657 eval $ac_sub_configure $ac_sub_configure_args \
32658 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32659 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32660 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32661 { (exit 1); exit 1; }; }
32669 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32670 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32671 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32672 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32673 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32674 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32675 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32676 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32677 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32678 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32679 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}