2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.8cvs.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398 tagnames=${tagnames+${tagnames},}CXX
400 tagnames=${tagnames+${tagnames},}F77
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
418 SHELL=${CONFIG_SHELL-/bin/sh}
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete. It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
425 # Identity of this package.
427 PACKAGE_TARNAME='-llvm-'
428 PACKAGE_VERSION='1.8cvs'
429 PACKAGE_STRING='llvm 1.8cvs'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/privbracket"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
441 ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
442 ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
443 # Factoring default headers for most tests.
444 ac_includes_default="\
447 # include <sys/types.h>
450 # include <sys/stat.h>
461 # if !STDC_HEADERS && HAVE_MEMORY_H
467 # include <strings.h>
470 # include <inttypes.h>
480 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LLVM_CROSS_COMPILING BUILD_CC BUILD_EXEEXT CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD EXTRA_OPTIONS CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ DOT GV DOTTY PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
483 # Initialize some variables set by options.
485 ac_init_version=false
486 # The variables have the same names as the options, with
487 # dashes changed to underlines.
495 program_transform_name=s,x,x,
503 # Installation directory options.
504 # These are left unexpanded so users can "make install exec_prefix=/foo"
505 # and all the variables that are supposed to be based on exec_prefix
506 # by default will actually change.
507 # Use braces instead of parens because sh, perl, etc. also accept them.
508 bindir='${exec_prefix}/bin'
509 sbindir='${exec_prefix}/sbin'
510 libexecdir='${exec_prefix}/libexec'
511 datadir='${prefix}/share'
512 sysconfdir='${prefix}/etc'
513 sharedstatedir='${prefix}/com'
514 localstatedir='${prefix}/var'
515 libdir='${exec_prefix}/lib'
516 includedir='${prefix}/include'
517 oldincludedir='/usr/include'
518 infodir='${prefix}/info'
519 mandir='${prefix}/man'
524 # If the previous option needs an argument, assign it.
525 if test -n "$ac_prev"; then
526 eval "$ac_prev=\$ac_option"
531 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
533 # Accept the important Cygnus configure options, so we can diagnose typos.
537 -bindir | --bindir | --bindi | --bind | --bin | --bi)
539 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
542 -build | --build | --buil | --bui | --bu)
543 ac_prev=build_alias ;;
544 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
545 build_alias=$ac_optarg ;;
547 -cache-file | --cache-file | --cache-fil | --cache-fi \
548 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
549 ac_prev=cache_file ;;
550 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
551 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
552 cache_file=$ac_optarg ;;
555 cache_file=config.cache ;;
557 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
559 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
561 datadir=$ac_optarg ;;
563 -disable-* | --disable-*)
564 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568 { (exit 1); exit 1; }; }
569 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570 eval "enable_$ac_feature=no" ;;
572 -enable-* | --enable-*)
573 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
574 # Reject names that are not valid shell variable names.
575 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
577 { (exit 1); exit 1; }; }
578 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
580 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
583 eval "enable_$ac_feature='$ac_optarg'" ;;
585 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
586 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
587 | --exec | --exe | --ex)
588 ac_prev=exec_prefix ;;
589 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
590 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
591 | --exec=* | --exe=* | --ex=*)
592 exec_prefix=$ac_optarg ;;
594 -gas | --gas | --ga | --g)
595 # Obsolete; use --with-gas.
598 -help | --help | --hel | --he | -h)
600 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
601 ac_init_help=recursive ;;
602 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
603 ac_init_help=short ;;
605 -host | --host | --hos | --ho)
606 ac_prev=host_alias ;;
607 -host=* | --host=* | --hos=* | --ho=*)
608 host_alias=$ac_optarg ;;
610 -includedir | --includedir | --includedi | --included | --include \
611 | --includ | --inclu | --incl | --inc)
612 ac_prev=includedir ;;
613 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
614 | --includ=* | --inclu=* | --incl=* | --inc=*)
615 includedir=$ac_optarg ;;
617 -infodir | --infodir | --infodi | --infod | --info | --inf)
619 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
620 infodir=$ac_optarg ;;
622 -libdir | --libdir | --libdi | --libd)
624 -libdir=* | --libdir=* | --libdi=* | --libd=*)
627 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
628 | --libexe | --libex | --libe)
629 ac_prev=libexecdir ;;
630 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
631 | --libexe=* | --libex=* | --libe=*)
632 libexecdir=$ac_optarg ;;
634 -localstatedir | --localstatedir | --localstatedi | --localstated \
635 | --localstate | --localstat | --localsta | --localst \
636 | --locals | --local | --loca | --loc | --lo)
637 ac_prev=localstatedir ;;
638 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
639 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
640 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
641 localstatedir=$ac_optarg ;;
643 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
645 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
649 # Obsolete; use --without-fp.
652 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
653 | --no-cr | --no-c | -n)
656 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
657 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
660 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
661 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
662 | --oldin | --oldi | --old | --ol | --o)
663 ac_prev=oldincludedir ;;
664 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
665 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
666 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
667 oldincludedir=$ac_optarg ;;
669 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
671 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
674 -program-prefix | --program-prefix | --program-prefi | --program-pref \
675 | --program-pre | --program-pr | --program-p)
676 ac_prev=program_prefix ;;
677 -program-prefix=* | --program-prefix=* | --program-prefi=* \
678 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
679 program_prefix=$ac_optarg ;;
681 -program-suffix | --program-suffix | --program-suffi | --program-suff \
682 | --program-suf | --program-su | --program-s)
683 ac_prev=program_suffix ;;
684 -program-suffix=* | --program-suffix=* | --program-suffi=* \
685 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
686 program_suffix=$ac_optarg ;;
688 -program-transform-name | --program-transform-name \
689 | --program-transform-nam | --program-transform-na \
690 | --program-transform-n | --program-transform- \
691 | --program-transform | --program-transfor \
692 | --program-transfo | --program-transf \
693 | --program-trans | --program-tran \
694 | --progr-tra | --program-tr | --program-t)
695 ac_prev=program_transform_name ;;
696 -program-transform-name=* | --program-transform-name=* \
697 | --program-transform-nam=* | --program-transform-na=* \
698 | --program-transform-n=* | --program-transform-=* \
699 | --program-transform=* | --program-transfor=* \
700 | --program-transfo=* | --program-transf=* \
701 | --program-trans=* | --program-tran=* \
702 | --progr-tra=* | --program-tr=* | --program-t=*)
703 program_transform_name=$ac_optarg ;;
705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
706 | -silent | --silent | --silen | --sile | --sil)
709 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
711 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
713 sbindir=$ac_optarg ;;
715 -sharedstatedir | --sharedstatedir | --sharedstatedi \
716 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
717 | --sharedst | --shareds | --shared | --share | --shar \
719 ac_prev=sharedstatedir ;;
720 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
721 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
722 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
724 sharedstatedir=$ac_optarg ;;
726 -site | --site | --sit)
728 -site=* | --site=* | --sit=*)
731 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
733 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
736 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
737 | --syscon | --sysco | --sysc | --sys | --sy)
738 ac_prev=sysconfdir ;;
739 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
740 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
741 sysconfdir=$ac_optarg ;;
743 -target | --target | --targe | --targ | --tar | --ta | --t)
744 ac_prev=target_alias ;;
745 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
746 target_alias=$ac_optarg ;;
748 -v | -verbose | --verbose | --verbos | --verbo | --verb)
751 -version | --version | --versio | --versi | --vers | -V)
755 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package| sed 's/-/_/g'`
762 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
765 eval "with_$ac_package='$ac_optarg'" ;;
767 -without-* | --without-*)
768 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
769 # Reject names that are not valid shell variable names.
770 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
771 { echo "$as_me: error: invalid package name: $ac_package" >&2
772 { (exit 1); exit 1; }; }
773 ac_package=`echo $ac_package | sed 's/-/_/g'`
774 eval "with_$ac_package=no" ;;
777 # Obsolete; use --with-x.
780 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
781 | --x-incl | --x-inc | --x-in | --x-i)
782 ac_prev=x_includes ;;
783 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
784 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
785 x_includes=$ac_optarg ;;
787 -x-libraries | --x-libraries | --x-librarie | --x-librari \
788 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
789 ac_prev=x_libraries ;;
790 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
791 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
792 x_libraries=$ac_optarg ;;
794 -*) { echo "$as_me: error: unrecognized option: $ac_option
795 Try \`$0 --help' for more information." >&2
796 { (exit 1); exit 1; }; }
800 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
801 # Reject names that are not valid shell variable names.
802 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
803 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
804 { (exit 1); exit 1; }; }
805 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
806 eval "$ac_envvar='$ac_optarg'"
810 # FIXME: should be removed in autoconf 3.0.
811 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
812 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
813 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
814 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
820 if test -n "$ac_prev"; then
821 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
822 { echo "$as_me: error: missing argument to $ac_option" >&2
823 { (exit 1); exit 1; }; }
826 # Be sure to have absolute paths.
827 for ac_var in exec_prefix prefix
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # Be sure to have absolute paths.
838 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
839 localstatedir libdir includedir oldincludedir infodir mandir
841 eval ac_val=$`echo $ac_var`
843 [\\/$]* | ?:[\\/]* ) ;;
844 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
845 { (exit 1); exit 1; }; };;
849 # There might be people who depend on the old broken behavior: `$host'
850 # used to hold the argument of --host etc.
851 # FIXME: To remove some day.
856 # FIXME: To remove some day.
857 if test "x$host_alias" != x; then
858 if test "x$build_alias" = x; then
859 cross_compiling=maybe
860 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
861 If a cross compiler is detected then cross compile mode will be used." >&2
862 elif test "x$build_alias" != "x$host_alias"; then
868 test -n "$host_alias" && ac_tool_prefix=$host_alias-
870 test "$silent" = yes && exec 6>/dev/null
873 # Find the source files, if location was not specified.
874 if test -z "$srcdir"; then
875 ac_srcdir_defaulted=yes
876 # Try the directory containing this script, then its parent.
877 ac_confdir=`(dirname "$0") 2>/dev/null ||
878 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
879 X"$0" : 'X\(//\)[^/]' \| \
880 X"$0" : 'X\(//\)$' \| \
881 X"$0" : 'X\(/\)' \| \
882 . : '\(.\)' 2>/dev/null ||
884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
886 /^X\(\/\/\)$/{ s//\1/; q; }
887 /^X\(\/\).*/{ s//\1/; q; }
890 if test ! -r $srcdir/$ac_unique_file; then
894 ac_srcdir_defaulted=no
896 if test ! -r $srcdir/$ac_unique_file; then
897 if test "$ac_srcdir_defaulted" = yes; then
898 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
899 { (exit 1); exit 1; }; }
901 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
902 { (exit 1); exit 1; }; }
905 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
906 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
907 { (exit 1); exit 1; }; }
908 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
909 ac_env_build_alias_set=${build_alias+set}
910 ac_env_build_alias_value=$build_alias
911 ac_cv_env_build_alias_set=${build_alias+set}
912 ac_cv_env_build_alias_value=$build_alias
913 ac_env_host_alias_set=${host_alias+set}
914 ac_env_host_alias_value=$host_alias
915 ac_cv_env_host_alias_set=${host_alias+set}
916 ac_cv_env_host_alias_value=$host_alias
917 ac_env_target_alias_set=${target_alias+set}
918 ac_env_target_alias_value=$target_alias
919 ac_cv_env_target_alias_set=${target_alias+set}
920 ac_cv_env_target_alias_value=$target_alias
921 ac_env_CC_set=${CC+set}
923 ac_cv_env_CC_set=${CC+set}
924 ac_cv_env_CC_value=$CC
925 ac_env_CFLAGS_set=${CFLAGS+set}
926 ac_env_CFLAGS_value=$CFLAGS
927 ac_cv_env_CFLAGS_set=${CFLAGS+set}
928 ac_cv_env_CFLAGS_value=$CFLAGS
929 ac_env_LDFLAGS_set=${LDFLAGS+set}
930 ac_env_LDFLAGS_value=$LDFLAGS
931 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
932 ac_cv_env_LDFLAGS_value=$LDFLAGS
933 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
934 ac_env_CPPFLAGS_value=$CPPFLAGS
935 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
936 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
937 ac_env_CPP_set=${CPP+set}
938 ac_env_CPP_value=$CPP
939 ac_cv_env_CPP_set=${CPP+set}
940 ac_cv_env_CPP_value=$CPP
941 ac_env_CXX_set=${CXX+set}
942 ac_env_CXX_value=$CXX
943 ac_cv_env_CXX_set=${CXX+set}
944 ac_cv_env_CXX_value=$CXX
945 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
946 ac_env_CXXFLAGS_value=$CXXFLAGS
947 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
948 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
949 ac_env_CXXCPP_set=${CXXCPP+set}
950 ac_env_CXXCPP_value=$CXXCPP
951 ac_cv_env_CXXCPP_set=${CXXCPP+set}
952 ac_cv_env_CXXCPP_value=$CXXCPP
953 ac_env_F77_set=${F77+set}
954 ac_env_F77_value=$F77
955 ac_cv_env_F77_set=${F77+set}
956 ac_cv_env_F77_value=$F77
957 ac_env_FFLAGS_set=${FFLAGS+set}
958 ac_env_FFLAGS_value=$FFLAGS
959 ac_cv_env_FFLAGS_set=${FFLAGS+set}
960 ac_cv_env_FFLAGS_value=$FFLAGS
963 # Report the --help message.
965 if test "$ac_init_help" = "long"; then
966 # Omit some internal or obsolete options to make the list less imposing.
967 # This message is too long to be a string in the A/UX 3.1 sh.
969 \`configure' configures llvm 1.8cvs to adapt to many kinds of systems.
971 Usage: $0 [OPTION]... [VAR=VALUE]...
973 To assign environment variables (e.g., CC, CFLAGS...), specify them as
974 VAR=VALUE. See below for descriptions of some of the useful variables.
976 Defaults for the options are specified in brackets.
979 -h, --help display this help and exit
980 --help=short display options specific to this package
981 --help=recursive display the short help of all the included packages
982 -V, --version display version information and exit
983 -q, --quiet, --silent do not print \`checking...' messages
984 --cache-file=FILE cache test results in FILE [disabled]
985 -C, --config-cache alias for \`--cache-file=config.cache'
986 -n, --no-create do not create output files
987 --srcdir=DIR find the sources in DIR [configure dir or \`..']
992 Installation directories:
993 --prefix=PREFIX install architecture-independent files in PREFIX
995 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
998 By default, \`make install' will install all the files in
999 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1000 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1001 for instance \`--prefix=\$HOME'.
1003 For better control, use the options below.
1005 Fine tuning of the installation directories:
1006 --bindir=DIR user executables [EPREFIX/bin]
1007 --sbindir=DIR system admin executables [EPREFIX/sbin]
1008 --libexecdir=DIR program executables [EPREFIX/libexec]
1009 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1010 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1011 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1012 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1013 --libdir=DIR object code libraries [EPREFIX/lib]
1014 --includedir=DIR C header files [PREFIX/include]
1015 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1016 --infodir=DIR info documentation [PREFIX/info]
1017 --mandir=DIR man documentation [PREFIX/man]
1023 --build=BUILD configure for building on BUILD [guessed]
1024 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1025 --target=TARGET configure for building compilers for TARGET [HOST]
1029 if test -n "$ac_init_help"; then
1030 case $ac_init_help in
1031 short | recursive ) echo "Configuration of llvm 1.8cvs:";;
1036 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1037 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1040 --enable-debug-runtime
1041 --enable-jit Enable Just In Time Compiling (default is YES)
1042 --enable-doxygen Build doxygen documentation (default is NO)
1043 --enable-threads Use threads if available (default is YES)
1044 --enable-targets Build specific host targets:
1045 all,host-only,{target-name} (default=all)
1046 --enable-ltdl-install install libltdl
1047 --enable-shared[=PKGS]
1048 build shared libraries [default=yes]
1049 --enable-static[=PKGS]
1050 build static libraries [default=yes]
1051 --enable-fast-install[=PKGS]
1052 optimize for fast installation [default=yes]
1053 --disable-libtool-lock avoid locking (might break parallel builds)
1056 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1057 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1058 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1060 --with-extra-options Specify addtional options to compile LLVM with
1061 --with-tclinclude directory where tcl headers are
1062 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1063 --with-pic try to use only PIC/non-PIC objects [default=use
1066 include additional configurations [automatic]
1068 Some influential environment variables:
1069 CC C compiler command
1070 CFLAGS C compiler flags
1071 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1072 nonstandard directory <lib dir>
1073 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074 headers in a nonstandard directory <include dir>
1076 CXX C++ compiler command
1077 CXXFLAGS C++ compiler flags
1078 CXXCPP C++ preprocessor
1079 F77 Fortran 77 compiler command
1080 FFLAGS Fortran 77 compiler flags
1082 Use these variables to override the choices made by `configure' or to help
1083 it to find libraries and programs with nonstandard names/locations.
1085 Report bugs to <llvmbugs@cs.uiuc.edu>.
1089 if test "$ac_init_help" = "recursive"; then
1090 # If there are subdirs, report their specific --help.
1092 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093 test -d $ac_dir || continue
1096 if test "$ac_dir" != .; then
1097 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098 # A "../" for each directory in $ac_dir_suffix.
1099 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1101 ac_dir_suffix= ac_top_builddir=
1105 .) # No --srcdir option. We are building in place.
1107 if test -z "$ac_top_builddir"; then
1110 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1112 [\\/]* | ?:[\\/]* ) # Absolute path.
1113 ac_srcdir=$srcdir$ac_dir_suffix;
1114 ac_top_srcdir=$srcdir ;;
1116 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1120 # Do not use `cd foo && pwd` to compute absolute paths, because
1121 # the directories may not exist.
1123 .) ac_abs_builddir="$ac_dir";;
1126 .) ac_abs_builddir=`pwd`;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1134 case ${ac_top_builddir}. in
1135 .) ac_abs_top_builddir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1140 case $ac_abs_builddir in
1141 .) ac_abs_srcdir=$ac_srcdir;;
1144 .) ac_abs_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1149 case $ac_abs_builddir in
1150 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1152 case $ac_top_srcdir in
1153 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1160 # Check for guested configure; otherwise get Cygnus style configure.
1161 if test -f $ac_srcdir/configure.gnu; then
1163 $SHELL $ac_srcdir/configure.gnu --help=recursive
1164 elif test -f $ac_srcdir/configure; then
1166 $SHELL $ac_srcdir/configure --help=recursive
1167 elif test -f $ac_srcdir/configure.ac ||
1168 test -f $ac_srcdir/configure.in; then
1170 $ac_configure --help
1172 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1178 test -n "$ac_init_help" && exit 0
1179 if $ac_init_version; then
1181 llvm configure 1.8cvs
1182 generated by GNU Autoconf 2.59
1184 Copyright (C) 2003 Free Software Foundation, Inc.
1185 This configure script is free software; the Free Software Foundation
1186 gives unlimited permission to copy, distribute and modify it.
1188 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1194 This file contains any messages produced by compilers while
1195 running configure, to aid debugging if configure makes a mistake.
1197 It was created by llvm $as_me 1.8cvs, which was
1198 generated by GNU Autoconf 2.59. Invocation command line was
1209 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1210 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1211 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1212 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1213 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1215 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1216 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1218 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1219 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1220 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1221 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1222 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1223 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1224 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1232 test -z "$as_dir" && as_dir=.
1233 echo "PATH: $as_dir"
1248 # Keep a trace of the command line.
1249 # Strip out --no-create and --no-recursion so they do not pile up.
1250 # Strip out --silent because we don't want to record it for future runs.
1251 # Also quote any args containing shell meta-characters.
1252 # Make two passes to allow for proper duplicate-argument suppression.
1257 ac_must_keep_next=false
1263 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265 | -silent | --silent | --silen | --sile | --sil)
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1271 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1273 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1274 if test $ac_must_keep_next = true; then
1275 ac_must_keep_next=false # Got value, back to normal.
1278 *=* | --config-cache | -C | -disable-* | --disable-* \
1279 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1280 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1281 | -with-* | --with-* | -without-* | --without-* | --x)
1282 case "$ac_configure_args0 " in
1283 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1286 -* ) ac_must_keep_next=true ;;
1289 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1290 # Get rid of the leading space.
1296 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1297 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1299 # When interrupted or exit'd, cleanup temporary files, and complete
1300 # config.log. We remove comments because anyway the quotes in there
1301 # would cause problems or look ugly.
1302 # WARNING: Be sure not to use single quotes in there, as some shells,
1303 # such as our DU 5.0 friend, will then `close' the trap.
1304 trap 'exit_status=$?
1305 # Save into config.log some information that might help in debugging.
1310 ## ---------------- ##
1311 ## Cache variables. ##
1312 ## ---------------- ##
1315 # The following way of writing the cache mishandles newlines in values,
1318 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1321 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1322 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1326 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1333 ## ----------------- ##
1334 ## Output variables. ##
1335 ## ----------------- ##
1338 for ac_var in $ac_subst_vars
1340 eval ac_val=$`echo $ac_var`
1341 echo "$ac_var='"'"'$ac_val'"'"'"
1345 if test -n "$ac_subst_files"; then
1352 for ac_var in $ac_subst_files
1354 eval ac_val=$`echo $ac_var`
1355 echo "$ac_var='"'"'$ac_val'"'"'"
1360 if test -s confdefs.h; then
1367 sed "/^$/d" confdefs.h | sort
1370 test "$ac_signal" != 0 &&
1371 echo "$as_me: caught signal $ac_signal"
1372 echo "$as_me: exit $exit_status"
1374 rm -f core *.core &&
1375 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1378 for ac_signal in 1 2 13 15; do
1379 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1383 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1384 rm -rf conftest* confdefs.h
1385 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1388 # Predefined preprocessor variables.
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_NAME "$PACKAGE_NAME"
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_STRING "$PACKAGE_STRING"
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1415 # Let the site file select an alternate cache file if it wants to.
1416 # Prefer explicitly selected file to automatically selected ones.
1417 if test -z "$CONFIG_SITE"; then
1418 if test "x$prefix" != xNONE; then
1419 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1421 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1424 for ac_site_file in $CONFIG_SITE; do
1425 if test -r "$ac_site_file"; then
1426 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1427 echo "$as_me: loading site script $ac_site_file" >&6;}
1428 sed 's/^/| /' "$ac_site_file" >&5
1433 if test -r "$cache_file"; then
1434 # Some versions of bash will fail to source /dev/null (special
1435 # files actually), so we avoid doing that.
1436 if test -f "$cache_file"; then
1437 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1438 echo "$as_me: loading cache $cache_file" >&6;}
1440 [\\/]* | ?:[\\/]* ) . $cache_file;;
1441 *) . ./$cache_file;;
1445 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1446 echo "$as_me: creating cache $cache_file" >&6;}
1450 # Check that the precious variables saved in the cache have kept the same
1452 ac_cache_corrupted=false
1453 for ac_var in `(set) 2>&1 |
1454 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1455 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1456 eval ac_new_set=\$ac_env_${ac_var}_set
1457 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1458 eval ac_new_val="\$ac_env_${ac_var}_value"
1459 case $ac_old_set,$ac_new_set in
1461 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1463 ac_cache_corrupted=: ;;
1465 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1466 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1467 ac_cache_corrupted=: ;;
1470 if test "x$ac_old_val" != "x$ac_new_val"; then
1471 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1472 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1473 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1474 echo "$as_me: former value: $ac_old_val" >&2;}
1475 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1476 echo "$as_me: current value: $ac_new_val" >&2;}
1477 ac_cache_corrupted=:
1480 # Pass precious variables to config.status.
1481 if test "$ac_new_set" = set; then
1483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1484 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1485 *) ac_arg=$ac_var=$ac_new_val ;;
1487 case " $ac_configure_args " in
1488 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1489 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1493 if $ac_cache_corrupted; then
1494 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1495 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1496 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1497 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1498 { (exit 1); exit 1; }; }
1502 ac_cpp='$CPP $CPPFLAGS'
1503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1534 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1543 for ac_dir in autoconf $srcdir/autoconf; do
1544 if test -f $ac_dir/install-sh; then
1546 ac_install_sh="$ac_aux_dir/install-sh -c"
1548 elif test -f $ac_dir/install.sh; then
1550 ac_install_sh="$ac_aux_dir/install.sh -c"
1552 elif test -f $ac_dir/shtool; then
1554 ac_install_sh="$ac_aux_dir/shtool install -c"
1558 if test -z "$ac_aux_dir"; then
1559 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1560 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1561 { (exit 1); exit 1; }; }
1563 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1564 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1565 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568 if test ${srcdir} != "." ; then
1569 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1570 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1571 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1572 { (exit 1); exit 1; }; }
1576 for i in `ls ${srcdir}/projects`
1578 if test -d ${srcdir}/projects/${i} ; then
1583 subdirs="$subdirs projects/sample"
1587 subdirs="$subdirs projects/Stacker"
1591 subdirs="$subdirs projects/privbracket"
1595 subdirs="$subdirs projects/llvm-test"
1599 subdirs="$subdirs projects/llvm-reopt"
1603 subdirs="$subdirs projects/llvm-gcc"
1607 subdirs="$subdirs projects/llvm-java"
1611 subdirs="$subdirs projects/llvm-tv"
1615 subdirs="$subdirs projects/llvm-poolalloc"
1619 subdirs="$subdirs projects/llvm-kernel"
1622 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1623 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684 echo "$as_me:$LINENO: checking target system type" >&5
1685 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1686 if test "${ac_cv_target+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 ac_cv_target_alias=$target_alias
1690 test "x$ac_cv_target_alias" = "x" &&
1691 ac_cv_target_alias=$ac_cv_host_alias
1692 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1693 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1694 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1695 { (exit 1); exit 1; }; }
1698 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1699 echo "${ECHO_T}$ac_cv_target" >&6
1700 target=$ac_cv_target
1701 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1702 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1703 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1706 # The aliases save the names the user supplied, while $host etc.
1707 # will get canonicalized.
1708 test -n "$target_alias" &&
1709 test "$program_prefix$program_suffix$program_transform_name" = \
1711 program_prefix=${target_alias}-
1713 echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
1714 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6
1715 if test "${llvm_cv_os_type+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 llvm_cv_os_type="AIX"
1721 llvm_cv_platform_type="Unix" ;;
1723 llvm_cv_os_type="Cygwin"
1724 llvm_cv_platform_type="Unix" ;;
1726 llvm_cv_os_type="Darwin"
1727 llvm_cv_platform_type="Unix" ;;
1729 llvm_cv_os_type="FreeBSD"
1730 llvm_cv_platform_type="Unix" ;;
1732 llvm_cv_os_type="OpenBSD"
1733 llvm_cv_platform_type="Unix" ;;
1735 llvm_cv_os_type="HP-UX"
1736 llvm_cv_platform_type="Unix" ;;
1738 llvm_cv_os_type="Interix"
1739 llvm_cv_platform_type="Unix" ;;
1741 llvm_cv_os_type="Linux"
1742 llvm_cv_platform_type="Unix" ;;
1744 llvm_cv_os_type="SunOS"
1745 llvm_cv_platform_type="Unix" ;;
1747 llvm_cv_os_type="Win32"
1748 llvm_cv_platform_type="Win32" ;;
1750 llvm_cv_os_type="MingW"
1751 llvm_cv_platform_type="Win32" ;;
1753 llvm_cv_os_type="Unknown"
1754 llvm_cv_platform_type="Unknown" ;;
1757 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1758 echo "${ECHO_T}$llvm_cv_os_type" >&6
1760 if test "$llvm_cv_os_type" = "Unknown" ; then
1761 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1762 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1763 { (exit 1); exit 1; }; }
1769 case $llvm_cv_platform_type in
1772 cat >>confdefs.h <<\_ACEOF
1773 #define LLVM_ON_UNIX 1
1783 cat >>confdefs.h <<\_ACEOF
1784 #define LLVM_ON_WIN32 1
1794 echo "$as_me:$LINENO: checking target architecture" >&5
1795 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1796 if test "${llvm_cv_target_arch+set}" = set; then
1797 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 i?86-*) llvm_cv_target_arch="x86" ;;
1801 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
1802 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1803 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1804 alpha*-*) llvm_cv_target_arch="Alpha" ;;
1805 ia64-*) llvm_cv_target_arch="IA64" ;;
1806 *) llvm_cv_target_arch="Unknown" ;;
1809 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1810 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1812 if test "$llvm_cv_target_arch" = "Unknown" ; then
1813 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1814 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1817 ARCH=$llvm_cv_target_arch
1821 ac_cpp='$CPP $CPPFLAGS'
1822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1825 if test -n "$ac_tool_prefix"; then
1826 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1827 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_CC+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 if test -n "$CC"; then
1834 ac_cv_prog_CC="$CC" # Let the user override the test.
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 if test -n "$CC"; then
1854 echo "$as_me:$LINENO: result: $CC" >&5
1855 echo "${ECHO_T}$CC" >&6
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1862 if test -z "$ac_cv_prog_CC"; then
1864 # Extract the first word of "gcc", so it can be a program name with args.
1865 set dummy gcc; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 if test -n "$ac_ct_CC"; then
1872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
1880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881 ac_cv_prog_ac_ct_CC="gcc"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1891 if test -n "$ac_ct_CC"; then
1892 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1893 echo "${ECHO_T}$ac_ct_CC" >&6
1895 echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1904 if test -z "$CC"; then
1905 if test -n "$ac_tool_prefix"; then
1906 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1907 set dummy ${ac_tool_prefix}cc; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_CC+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 if test -n "$CC"; then
1914 ac_cv_prog_CC="$CC" # Let the user override the test.
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 test -z "$as_dir" && as_dir=.
1921 for ac_exec_ext in '' $ac_executable_extensions; do
1922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923 ac_cv_prog_CC="${ac_tool_prefix}cc"
1924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 if test -n "$CC"; then
1934 echo "$as_me:$LINENO: result: $CC" >&5
1935 echo "${ECHO_T}$CC" >&6
1937 echo "$as_me:$LINENO: result: no" >&5
1938 echo "${ECHO_T}no" >&6
1942 if test -z "$ac_cv_prog_CC"; then
1944 # Extract the first word of "cc", so it can be a program name with args.
1945 set dummy cc; ac_word=$2
1946 echo "$as_me:$LINENO: checking for $ac_word" >&5
1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 if test -n "$ac_ct_CC"; then
1952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958 test -z "$as_dir" && as_dir=.
1959 for ac_exec_ext in '' $ac_executable_extensions; do
1960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961 ac_cv_prog_ac_ct_CC="cc"
1962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1971 if test -n "$ac_ct_CC"; then
1972 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1973 echo "${ECHO_T}$ac_ct_CC" >&6
1975 echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1985 if test -z "$CC"; then
1986 # Extract the first word of "cc", so it can be a program name with args.
1987 set dummy cc; ac_word=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 if test -n "$CC"; then
1994 ac_cv_prog_CC="$CC" # Let the user override the test.
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 test -z "$as_dir" && as_dir=.
2002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2005 ac_prog_rejected=yes
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015 if test $ac_prog_rejected = yes; then
2016 # We found a bogon in the path, so make sure we never use it.
2017 set dummy $ac_cv_prog_CC
2019 if test $# != 0; then
2020 # We chose a different compiler from the bogus one.
2021 # However, it has the same basename, so the bogon will be chosen
2022 # first if we set CC to just the basename; use the full file name.
2024 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2030 if test -n "$CC"; then
2031 echo "$as_me:$LINENO: result: $CC" >&5
2032 echo "${ECHO_T}$CC" >&6
2034 echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2039 if test -z "$CC"; then
2040 if test -n "$ac_tool_prefix"; then
2043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2045 echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047 if test "${ac_cv_prog_CC+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 if test -n "$CC"; then
2051 ac_cv_prog_CC="$CC" # Let the user override the test.
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 test -z "$as_dir" && as_dir=.
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 if test -n "$CC"; then
2071 echo "$as_me:$LINENO: result: $CC" >&5
2072 echo "${ECHO_T}$CC" >&6
2074 echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2078 test -n "$CC" && break
2081 if test -z "$CC"; then
2085 # Extract the first word of "$ac_prog", so it can be a program name with args.
2086 set dummy $ac_prog; ac_word=$2
2087 echo "$as_me:$LINENO: checking for $ac_word" >&5
2088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2089 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2090 echo $ECHO_N "(cached) $ECHO_C" >&6
2092 if test -n "$ac_ct_CC"; then
2093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 test -z "$as_dir" && as_dir=.
2100 for ac_exec_ext in '' $ac_executable_extensions; do
2101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2102 ac_cv_prog_ac_ct_CC="$ac_prog"
2103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112 if test -n "$ac_ct_CC"; then
2113 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114 echo "${ECHO_T}$ac_ct_CC" >&6
2116 echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6
2120 test -n "$ac_ct_CC" && break
2129 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2130 See \`config.log' for more details." >&5
2131 echo "$as_me: error: no acceptable C compiler found in \$PATH
2132 See \`config.log' for more details." >&2;}
2133 { (exit 1); exit 1; }; }
2135 # Provide some information about the compiler.
2136 echo "$as_me:$LINENO:" \
2137 "checking for C compiler version" >&5
2138 ac_compiler=`set X $ac_compile; echo $2`
2139 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2140 (eval $ac_compiler --version </dev/null >&5) 2>&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2144 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2145 (eval $ac_compiler -v </dev/null >&5) 2>&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }
2149 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2150 (eval $ac_compiler -V </dev/null >&5) 2>&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2155 cat >conftest.$ac_ext <<_ACEOF
2158 cat confdefs.h >>conftest.$ac_ext
2159 cat >>conftest.$ac_ext <<_ACEOF
2160 /* end confdefs.h. */
2170 ac_clean_files_save=$ac_clean_files
2171 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2172 # Try to create an executable without -o first, disregard a.out.
2173 # It will help us diagnose broken compilers, and finding out an intuition
2175 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2176 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2177 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2178 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2179 (eval $ac_link_default) 2>&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; then
2183 # Find the output, starting from the most likely. This scheme is
2184 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2187 # Be careful to initialize this variable, since it used to be cached.
2188 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2190 # b.out is created by i960 compilers.
2191 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2193 test -f "$ac_file" || continue
2195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2198 # This is the source file.
2201 # We found the default executable, but exeext='' is most
2205 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2206 # FIXME: I believe we export ac_cv_exeext for Libtool,
2207 # but it would be cool to find out if it's true. Does anybody
2208 # maintain Libtool? --akim.
2216 echo "$as_me: failed program was:" >&5
2217 sed 's/^/| /' conftest.$ac_ext >&5
2219 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2220 See \`config.log' for more details." >&5
2221 echo "$as_me: error: C compiler cannot create executables
2222 See \`config.log' for more details." >&2;}
2223 { (exit 77); exit 77; }; }
2226 ac_exeext=$ac_cv_exeext
2227 echo "$as_me:$LINENO: result: $ac_file" >&5
2228 echo "${ECHO_T}$ac_file" >&6
2230 # Check the compiler produces executables we can run. If not, either
2231 # the compiler is broken, or we cross compile.
2232 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2233 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2234 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2235 # If not cross compiling, check that we can run a simple program.
2236 if test "$cross_compiling" != yes; then
2237 if { ac_try='./$ac_file'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; }; then
2245 if test "$cross_compiling" = maybe; then
2248 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2249 If you meant to cross compile, use \`--host'.
2250 See \`config.log' for more details." >&5
2251 echo "$as_me: error: cannot run C compiled programs.
2252 If you meant to cross compile, use \`--host'.
2253 See \`config.log' for more details." >&2;}
2254 { (exit 1); exit 1; }; }
2258 echo "$as_me:$LINENO: result: yes" >&5
2259 echo "${ECHO_T}yes" >&6
2261 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2262 ac_clean_files=$ac_clean_files_save
2263 # Check the compiler produces executables we can run. If not, either
2264 # the compiler is broken, or we cross compile.
2265 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2266 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2267 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2268 echo "${ECHO_T}$cross_compiling" >&6
2270 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2271 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2273 (eval $ac_link) 2>&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; then
2277 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2278 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2279 # work properly (i.e., refer to `conftest.exe'), while it won't with
2281 for ac_file in conftest.exe conftest conftest.*; do
2282 test -f "$ac_file" || continue
2284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2285 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2292 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2293 See \`config.log' for more details." >&5
2294 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2295 See \`config.log' for more details." >&2;}
2296 { (exit 1); exit 1; }; }
2299 rm -f conftest$ac_cv_exeext
2300 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2301 echo "${ECHO_T}$ac_cv_exeext" >&6
2303 rm -f conftest.$ac_ext
2304 EXEEXT=$ac_cv_exeext
2306 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2307 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2308 if test "${ac_cv_objext+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 cat >conftest.$ac_ext <<_ACEOF
2314 cat confdefs.h >>conftest.$ac_ext
2315 cat >>conftest.$ac_ext <<_ACEOF
2316 /* end confdefs.h. */
2326 rm -f conftest.o conftest.obj
2327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2328 (eval $ac_compile) 2>&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; then
2332 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2335 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2340 echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2343 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2344 See \`config.log' for more details." >&5
2345 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&2;}
2347 { (exit 1); exit 1; }; }
2350 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2352 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2353 echo "${ECHO_T}$ac_cv_objext" >&6
2354 OBJEXT=$ac_cv_objext
2356 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2357 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2358 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 cat >conftest.$ac_ext <<_ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2379 rm -f conftest.$ac_objext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381 (eval $ac_compile) 2>conftest.er1
2383 grep -v '^ *+' conftest.er1 >conftest.err
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
2388 { ac_try='test -z "$ac_c_werror_flag"
2389 || test ! -s conftest.err'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try='test -s conftest.$ac_objext'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2403 echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2409 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2412 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2414 GCC=`test $ac_compiler_gnu = yes && echo yes`
2415 ac_test_CFLAGS=${CFLAGS+set}
2416 ac_save_CFLAGS=$CFLAGS
2418 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2419 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2420 if test "${ac_cv_prog_cc_g+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2423 cat >conftest.$ac_ext <<_ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2438 rm -f conftest.$ac_objext
2439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2440 (eval $ac_compile) 2>conftest.er1
2442 grep -v '^ *+' conftest.er1 >conftest.err
2444 cat conftest.err >&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); } &&
2447 { ac_try='test -z "$ac_c_werror_flag"
2448 || test ! -s conftest.err'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; } &&
2454 { ac_try='test -s conftest.$ac_objext'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; }; then
2462 echo "$as_me: failed program was:" >&5
2463 sed 's/^/| /' conftest.$ac_ext >&5
2467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2469 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2470 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2471 if test "$ac_test_CFLAGS" = set; then
2472 CFLAGS=$ac_save_CFLAGS
2473 elif test $ac_cv_prog_cc_g = yes; then
2474 if test "$GCC" = yes; then
2480 if test "$GCC" = yes; then
2486 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2487 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2488 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 ac_cv_prog_cc_stdc=no
2493 cat >conftest.$ac_ext <<_ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h. */
2501 #include <sys/types.h>
2502 #include <sys/stat.h>
2503 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2504 struct buf { int x; };
2505 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2506 static char *e (p, i)
2512 static char *f (char * (*g) (char **, int), char **p, ...)
2517 s = g (p, va_arg (v,int));
2522 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2523 function prototypes and stuff, but not '\xHH' hex character constants.
2524 These don't provoke an error unfortunately, instead are silently treated
2525 as 'x'. The following induces an error, until -std1 is added to get
2526 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2527 array size at least. It's necessary to write '\x00'==0 to get something
2528 that's true only with -std1. */
2529 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2531 int test (int i, double x);
2532 struct s1 {int (*f) (int a);};
2533 struct s2 {int (*f) (double a);};
2534 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2540 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2545 # Don't try gcc -ansi; that turns off useful extensions and
2546 # breaks some systems' header files.
2547 # AIX -qlanglvl=ansi
2548 # Ultrix and OSF/1 -std1
2549 # HP-UX 10.20 and later -Ae
2550 # HP-UX older versions -Aa -D_HPUX_SOURCE
2551 # SVR4 -Xc -D__EXTENSIONS__
2552 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2554 CC="$ac_save_CC $ac_arg"
2555 rm -f conftest.$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557 (eval $ac_compile) 2>conftest.er1
2559 grep -v '^ *+' conftest.er1 >conftest.err
2561 cat conftest.err >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -z "$ac_c_werror_flag"
2565 || test ! -s conftest.err'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; }; then
2577 ac_cv_prog_cc_stdc=$ac_arg
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2584 rm -f conftest.err conftest.$ac_objext
2586 rm -f conftest.$ac_ext conftest.$ac_objext
2591 case "x$ac_cv_prog_cc_stdc" in
2593 echo "$as_me:$LINENO: result: none needed" >&5
2594 echo "${ECHO_T}none needed" >&6 ;;
2596 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2597 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2598 CC="$CC $ac_cv_prog_cc_stdc" ;;
2601 # Some people use a C++ compiler to compile C. Since we use `exit',
2602 # in C++ we need to declare it. In case someone uses the same compiler
2603 # for both compiling C and C++ we need to have the C++ compiler decide
2604 # the declaration of exit, since it's the most demanding environment.
2605 cat >conftest.$ac_ext <<_ACEOF
2610 rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>conftest.er1
2614 grep -v '^ *+' conftest.er1 >conftest.err
2616 cat conftest.err >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -z "$ac_c_werror_flag"
2620 || test ! -s conftest.err'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; } &&
2626 { ac_try='test -s conftest.$ac_objext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 for ac_declaration in \
2634 'extern "C" void std::exit (int) throw (); using std::exit;' \
2635 'extern "C" void std::exit (int); using std::exit;' \
2636 'extern "C" void exit (int) throw ();' \
2637 'extern "C" void exit (int);' \
2640 cat >conftest.$ac_ext <<_ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2656 rm -f conftest.$ac_objext
2657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658 (eval $ac_compile) 2>conftest.er1
2660 grep -v '^ *+' conftest.er1 >conftest.err
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
2665 { ac_try='test -z "$ac_c_werror_flag"
2666 || test ! -s conftest.err'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; } &&
2672 { ac_try='test -s conftest.$ac_objext'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2680 echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686 cat >conftest.$ac_ext <<_ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2701 rm -f conftest.$ac_objext
2702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703 (eval $ac_compile) 2>conftest.er1
2705 grep -v '^ *+' conftest.er1 >conftest.err
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -z "$ac_c_werror_flag"
2711 || test ! -s conftest.err'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; } &&
2717 { ac_try='test -s conftest.$ac_objext'
2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; }; then
2725 echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732 if test -n "$ac_declaration"; then
2733 echo '#ifdef __cplusplus' >>confdefs.h
2734 echo $ac_declaration >>confdefs.h
2735 echo '#endif' >>confdefs.h
2739 echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2745 ac_cpp='$CPP $CPPFLAGS'
2746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2752 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2753 if test "${ac_cv_c_bigendian+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 # See if sys/param.h defines the BYTE_ORDER macro.
2757 cat >conftest.$ac_ext <<_ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2763 #include <sys/types.h>
2764 #include <sys/param.h>
2769 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2781 grep -v '^ *+' conftest.er1 >conftest.err
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try='test -z "$ac_c_werror_flag"
2787 || test ! -s conftest.err'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 # It does; now see whether it defined to BIG_ENDIAN or not.
2800 cat >conftest.$ac_ext <<_ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2806 #include <sys/types.h>
2807 #include <sys/param.h>
2812 #if BYTE_ORDER != BIG_ENDIAN
2820 rm -f conftest.$ac_objext
2821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822 (eval $ac_compile) 2>conftest.er1
2824 grep -v '^ *+' conftest.er1 >conftest.err
2826 cat conftest.err >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } &&
2829 { ac_try='test -z "$ac_c_werror_flag"
2830 || test ! -s conftest.err'
2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; } &&
2836 { ac_try='test -s conftest.$ac_objext'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2842 ac_cv_c_bigendian=yes
2844 echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2847 ac_cv_c_bigendian=no
2849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2854 # It does not; compile a test program.
2855 if test "$cross_compiling" = yes; then
2856 # try to guess the endianness by grepping values into an object file
2857 ac_cv_c_bigendian=unknown
2858 cat >conftest.$ac_ext <<_ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2864 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2865 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2866 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2867 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2868 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2869 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2873 _ascii (); _ebcdic ();
2878 rm -f conftest.$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880 (eval $ac_compile) 2>conftest.er1
2882 grep -v '^ *+' conftest.er1 >conftest.err
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } &&
2887 { ac_try='test -z "$ac_c_werror_flag"
2888 || test ! -s conftest.err'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2900 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2901 ac_cv_c_bigendian=yes
2903 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2904 if test "$ac_cv_c_bigendian" = unknown; then
2905 ac_cv_c_bigendian=no
2907 # finding both strings is unlikely to happen, but who knows?
2908 ac_cv_c_bigendian=unknown
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2918 cat >conftest.$ac_ext <<_ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2927 /* Are we little or big endian? From Harbison&Steele. */
2931 char c[sizeof (long)];
2934 exit (u.c[sizeof (long) - 1] == 1);
2937 rm -f conftest$ac_exeext
2938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2939 (eval $ac_link) 2>&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2948 ac_cv_c_bigendian=no
2950 echo "$as_me: program exited with status $ac_status" >&5
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2955 ac_cv_c_bigendian=yes
2957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2962 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2963 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2964 case $ac_cv_c_bigendian in
2972 { { echo "$as_me:$LINENO: error: unknown endianness
2973 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2974 echo "$as_me: error: unknown endianness
2975 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2976 { (exit 1); exit 1; }; } ;;
2980 if test "$cross_compiling" = yes; then
2981 LLVM_CROSS_COMPILING=1
2984 echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
2985 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6
2986 if test "${ac_cv_build_exeext+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2990 ac_cv_build_exeext=.exe
2992 ac_build_prefix=${build_alias}-
2994 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
2995 set dummy ${ac_build_prefix}gcc; ac_word=$2
2996 echo "$as_me:$LINENO: checking for $ac_word" >&5
2997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2998 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 if test -n "$BUILD_CC"; then
3002 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3011 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
3012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 BUILD_CC=$ac_cv_prog_BUILD_CC
3021 if test -n "$BUILD_CC"; then
3022 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3023 echo "${ECHO_T}$BUILD_CC" >&6
3025 echo "$as_me:$LINENO: result: no" >&5
3026 echo "${ECHO_T}no" >&6
3029 if test -z "$BUILD_CC"; then
3030 # Extract the first word of "gcc", so it can be a program name with args.
3031 set dummy gcc; ac_word=$2
3032 echo "$as_me:$LINENO: checking for $ac_word" >&5
3033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3034 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 if test -n "$BUILD_CC"; then
3038 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_BUILD_CC="gcc"
3048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 BUILD_CC=$ac_cv_prog_BUILD_CC
3057 if test -n "$BUILD_CC"; then
3058 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3059 echo "${ECHO_T}$BUILD_CC" >&6
3061 echo "$as_me:$LINENO: result: no" >&5
3062 echo "${ECHO_T}no" >&6
3065 if test -z "$BUILD_CC"; then
3066 # Extract the first word of "cc", so it can be a program name with args.
3067 set dummy cc; ac_word=$2
3068 echo "$as_me:$LINENO: checking for $ac_word" >&5
3069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3070 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 if test -n "$BUILD_CC"; then
3074 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3085 ac_prog_rejected=yes
3088 ac_cv_prog_BUILD_CC="cc"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 if test $ac_prog_rejected = yes; then
3096 # We found a bogon in the path, so make sure we never use it.
3097 set dummy $ac_cv_prog_BUILD_CC
3099 if test $# != 0; then
3100 # We chose a different compiler from the bogus one.
3101 # However, it has the same basename, so the bogon will be chosen
3102 # first if we set BUILD_CC to just the basename; use the full file name.
3104 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
3109 BUILD_CC=$ac_cv_prog_BUILD_CC
3110 if test -n "$BUILD_CC"; then
3111 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3112 echo "${ECHO_T}$BUILD_CC" >&6
3114 echo "$as_me:$LINENO: result: no" >&5
3115 echo "${ECHO_T}no" >&6
3120 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
3121 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3122 { (exit 1); exit 1; }; }
3123 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3125 echo 'int main () { return 0; }' > conftest.$ac_ext
3127 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
3128 (eval $ac_build_link) 2>&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; then
3132 for file in conftest.*; do
3134 *.c | *.o | *.obj) ;;
3135 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
3139 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
3140 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
3141 { (exit 1); exit 1; }; }
3144 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
3149 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
3150 echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
3151 echo "${ECHO_T}${ac_cv_build_exeext}" >&6
3152 ac_build_exeext=$BUILD_EXEEXT
3155 LLVM_CROSS_COMPILING=0
3159 if test -d "CVS" -o -d "${srcdir}/CVS"; then
3170 # Check whether --enable-optimized or --disable-optimized was given.
3171 if test "${enable_optimized+set}" = set; then
3172 enableval="$enable_optimized"
3177 if test ${enableval} = "no" ; then
3181 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
3185 # Check whether --enable-assertions or --disable-assertions was given.
3186 if test "${enable_assertions+set}" = set; then
3187 enableval="$enable_assertions"
3192 if test ${enableval} = "yes" ; then
3196 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
3200 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3201 if test "${enable_debug_runtime+set}" = set; then
3202 enableval="$enable_debug_runtime"
3207 if test ${enableval} = "no" ; then
3211 DEBUG_RUNTIME=DEBUG_RUNTIME=1
3215 # Check whether --enable-jit or --disable-jit was given.
3216 if test "${enable_jit+set}" = set; then
3217 enableval="$enable_jit"
3222 if test ${enableval} = "no"
3227 case "$llvm_cv_target_arch" in
3228 x86) TARGET_HAS_JIT=1
3230 Sparc) TARGET_HAS_JIT=1
3232 PowerPC) TARGET_HAS_JIT=1
3234 x86_64) TARGET_HAS_JIT=0
3236 Alpha) TARGET_HAS_JIT=1
3238 IA64) TARGET_HAS_JIT=0
3245 # Check whether --enable-doxygen or --disable-doxygen was given.
3246 if test "${enable_doxygen+set}" = set; then
3247 enableval="$enable_doxygen"
3252 case "$enableval" in
3253 yes) ENABLE_DOXYGEN=1
3255 no) ENABLE_DOXYGEN=0
3257 default) ENABLE_DOXYGEN=0
3259 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3260 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3261 { (exit 1); exit 1; }; } ;;
3264 # Check whether --enable-threads or --disable-threads was given.
3265 if test "${enable_threads+set}" = set; then
3266 enableval="$enable_threads"
3271 case "$enableval" in
3272 yes) ENABLE_THREADS=1
3274 no) ENABLE_THREADS=0
3276 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3277 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3278 { (exit 1); exit 1; }; } ;;
3281 cat >>confdefs.h <<_ACEOF
3282 #define ENABLE_THREADS $ENABLE_THREADS
3287 # Check whether --enable-targets or --disable-targets was given.
3288 if test "${enable_targets+set}" = set; then
3289 enableval="$enable_targets"
3294 case "$enableval" in
3295 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
3297 case "$llvm_cv_target_arch" in
3298 x86) TARGETS_TO_BUILD="X86" ;;
3299 x86_64) TARGETS_TO_BUILD="X86" ;;
3300 Sparc) TARGETS_TO_BUILD="Sparc" ;;
3301 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3302 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3303 IA64) TARGETS_TO_BUILD="IA64" ;;
3304 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3305 echo "$as_me: error: Can not set target to build" >&2;}
3306 { (exit 1); exit 1; }; } ;;
3309 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3311 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3312 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3313 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
3314 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3315 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3316 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3317 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3318 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3319 { (exit 1); exit 1; }; } ;;
3324 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3325 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3329 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3330 if test "${with_llvmgccdir+set}" = set; then
3331 withval="$with_llvmgccdir"
3337 default) WITH_LLVMGCCDIR=default ;;
3338 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
3339 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3340 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3341 { (exit 1); exit 1; }; } ;;
3345 # Check whether --with-extra-options or --without-extra-options was given.
3346 if test "${with_extra_options+set}" = set; then
3347 withval="$with_extra_options"
3352 case "$extraopts" in
3353 default) EXTRA_OPTIONS= ;;
3354 *) EXTRA_OPTIONS=$extraopts ;;
3356 EXTRA_OPTIONS=$EXTRA_OPTIONS
3361 ac_cpp='$CPP $CPPFLAGS'
3362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3366 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3367 # On Suns, sometimes $CPP names a directory.
3368 if test -n "$CPP" && test -d "$CPP"; then
3371 if test -z "$CPP"; then
3372 if test "${ac_cv_prog_CPP+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 # Double quotes because CPP needs to be expanded
3376 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3379 for ac_c_preproc_warn_flag in '' yes
3381 # Use a header file that comes with gcc, so configuring glibc
3382 # with a fresh cross-compiler works.
3383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384 # <limits.h> exists even on freestanding compilers.
3385 # On the NeXT, cc -E runs the code through the compiler's parser,
3386 # not just through cpp. "Syntax error" is here to catch this case.
3387 cat >conftest.$ac_ext <<_ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3394 # include <limits.h>
3396 # include <assert.h>
3400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3403 grep -v '^ *+' conftest.er1 >conftest.err
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } >/dev/null; then
3408 if test -s conftest.err; then
3409 ac_cpp_err=$ac_c_preproc_warn_flag
3410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3417 if test -z "$ac_cpp_err"; then
3420 echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3423 # Broken: fails on valid input.
3426 rm -f conftest.err conftest.$ac_ext
3428 # OK, works on sane cases. Now check whether non-existent headers
3429 # can be detected and how.
3430 cat >conftest.$ac_ext <<_ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3436 #include <ac_nonexistent.h>
3438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3441 grep -v '^ *+' conftest.er1 >conftest.err
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } >/dev/null; then
3446 if test -s conftest.err; then
3447 ac_cpp_err=$ac_c_preproc_warn_flag
3448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455 if test -z "$ac_cpp_err"; then
3456 # Broken: success on invalid input.
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3462 # Passes both tests.
3466 rm -f conftest.err conftest.$ac_ext
3469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470 rm -f conftest.err conftest.$ac_ext
3471 if $ac_preproc_ok; then
3483 echo "$as_me:$LINENO: result: $CPP" >&5
3484 echo "${ECHO_T}$CPP" >&6
3486 for ac_c_preproc_warn_flag in '' yes
3488 # Use a header file that comes with gcc, so configuring glibc
3489 # with a fresh cross-compiler works.
3490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3491 # <limits.h> exists even on freestanding compilers.
3492 # On the NeXT, cc -E runs the code through the compiler's parser,
3493 # not just through cpp. "Syntax error" is here to catch this case.
3494 cat >conftest.$ac_ext <<_ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3501 # include <limits.h>
3503 # include <assert.h>
3507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3510 grep -v '^ *+' conftest.er1 >conftest.err
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } >/dev/null; then
3515 if test -s conftest.err; then
3516 ac_cpp_err=$ac_c_preproc_warn_flag
3517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3524 if test -z "$ac_cpp_err"; then
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3530 # Broken: fails on valid input.
3533 rm -f conftest.err conftest.$ac_ext
3535 # OK, works on sane cases. Now check whether non-existent headers
3536 # can be detected and how.
3537 cat >conftest.$ac_ext <<_ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3543 #include <ac_nonexistent.h>
3545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3548 grep -v '^ *+' conftest.er1 >conftest.err
3550 cat conftest.err >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } >/dev/null; then
3553 if test -s conftest.err; then
3554 ac_cpp_err=$ac_c_preproc_warn_flag
3555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562 if test -z "$ac_cpp_err"; then
3563 # Broken: success on invalid input.
3566 echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3569 # Passes both tests.
3573 rm -f conftest.err conftest.$ac_ext
3576 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3577 rm -f conftest.err conftest.$ac_ext
3578 if $ac_preproc_ok; then
3581 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3582 See \`config.log' for more details." >&5
3583 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3584 See \`config.log' for more details." >&2;}
3585 { (exit 1); exit 1; }; }
3589 ac_cpp='$CPP $CPPFLAGS'
3590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3595 ac_cpp='$CPP $CPPFLAGS'
3596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3599 if test -n "$ac_tool_prefix"; then
3602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3604 echo "$as_me:$LINENO: checking for $ac_word" >&5
3605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3606 if test "${ac_cv_prog_CC+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 if test -n "$CC"; then
3610 ac_cv_prog_CC="$CC" # Let the user override the test.
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 if test -n "$CC"; then
3630 echo "$as_me:$LINENO: result: $CC" >&5
3631 echo "${ECHO_T}$CC" >&6
3633 echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6
3637 test -n "$CC" && break
3640 if test -z "$CC"; then
3644 # Extract the first word of "$ac_prog", so it can be a program name with args.
3645 set dummy $ac_prog; ac_word=$2
3646 echo "$as_me:$LINENO: checking for $ac_word" >&5
3647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 if test -n "$ac_ct_CC"; then
3652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661 ac_cv_prog_ac_ct_CC="$ac_prog"
3662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3671 if test -n "$ac_ct_CC"; then
3672 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3673 echo "${ECHO_T}$ac_ct_CC" >&6
3675 echo "$as_me:$LINENO: result: no" >&5
3676 echo "${ECHO_T}no" >&6
3679 test -n "$ac_ct_CC" && break
3686 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3687 See \`config.log' for more details." >&5
3688 echo "$as_me: error: no acceptable C compiler found in \$PATH
3689 See \`config.log' for more details." >&2;}
3690 { (exit 1); exit 1; }; }
3692 # Provide some information about the compiler.
3693 echo "$as_me:$LINENO:" \
3694 "checking for C compiler version" >&5
3695 ac_compiler=`set X $ac_compile; echo $2`
3696 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3697 (eval $ac_compiler --version </dev/null >&5) 2>&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }
3701 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3702 (eval $ac_compiler -v </dev/null >&5) 2>&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }
3706 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3707 (eval $ac_compiler -V </dev/null >&5) 2>&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }
3712 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3713 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3714 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 cat >conftest.$ac_ext <<_ACEOF
3720 cat confdefs.h >>conftest.$ac_ext
3721 cat >>conftest.$ac_ext <<_ACEOF
3722 /* end confdefs.h. */
3735 rm -f conftest.$ac_objext
3736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737 (eval $ac_compile) 2>conftest.er1
3739 grep -v '^ *+' conftest.er1 >conftest.err
3741 cat conftest.err >&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); } &&
3744 { ac_try='test -z "$ac_c_werror_flag"
3745 || test ! -s conftest.err'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; } &&
3751 { ac_try='test -s conftest.$ac_objext'
3752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; }; then
3759 echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3765 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3768 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3769 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3770 GCC=`test $ac_compiler_gnu = yes && echo yes`
3771 ac_test_CFLAGS=${CFLAGS+set}
3772 ac_save_CFLAGS=$CFLAGS
3774 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3775 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3776 if test "${ac_cv_prog_cc_g+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 cat >conftest.$ac_ext <<_ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3794 rm -f conftest.$ac_objext
3795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3796 (eval $ac_compile) 2>conftest.er1
3798 grep -v '^ *+' conftest.er1 >conftest.err
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } &&
3803 { ac_try='test -z "$ac_c_werror_flag"
3804 || test ! -s conftest.err'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; } &&
3810 { ac_try='test -s conftest.$ac_objext'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; }; then
3818 echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3825 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3826 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3827 if test "$ac_test_CFLAGS" = set; then
3828 CFLAGS=$ac_save_CFLAGS
3829 elif test $ac_cv_prog_cc_g = yes; then
3830 if test "$GCC" = yes; then
3836 if test "$GCC" = yes; then
3842 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3843 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3844 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 ac_cv_prog_cc_stdc=no
3849 cat >conftest.$ac_ext <<_ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3857 #include <sys/types.h>
3858 #include <sys/stat.h>
3859 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3860 struct buf { int x; };
3861 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3862 static char *e (p, i)
3868 static char *f (char * (*g) (char **, int), char **p, ...)
3873 s = g (p, va_arg (v,int));
3878 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3879 function prototypes and stuff, but not '\xHH' hex character constants.
3880 These don't provoke an error unfortunately, instead are silently treated
3881 as 'x'. The following induces an error, until -std1 is added to get
3882 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3883 array size at least. It's necessary to write '\x00'==0 to get something
3884 that's true only with -std1. */
3885 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3887 int test (int i, double x);
3888 struct s1 {int (*f) (int a);};
3889 struct s2 {int (*f) (double a);};
3890 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3896 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3901 # Don't try gcc -ansi; that turns off useful extensions and
3902 # breaks some systems' header files.
3903 # AIX -qlanglvl=ansi
3904 # Ultrix and OSF/1 -std1
3905 # HP-UX 10.20 and later -Ae
3906 # HP-UX older versions -Aa -D_HPUX_SOURCE
3907 # SVR4 -Xc -D__EXTENSIONS__
3908 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3910 CC="$ac_save_CC $ac_arg"
3911 rm -f conftest.$ac_objext
3912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3913 (eval $ac_compile) 2>conftest.er1
3915 grep -v '^ *+' conftest.er1 >conftest.err
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } &&
3920 { ac_try='test -z "$ac_c_werror_flag"
3921 || test ! -s conftest.err'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; } &&
3927 { ac_try='test -s conftest.$ac_objext'
3928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; }; then
3933 ac_cv_prog_cc_stdc=$ac_arg
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3940 rm -f conftest.err conftest.$ac_objext
3942 rm -f conftest.$ac_ext conftest.$ac_objext
3947 case "x$ac_cv_prog_cc_stdc" in
3949 echo "$as_me:$LINENO: result: none needed" >&5
3950 echo "${ECHO_T}none needed" >&6 ;;
3952 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3953 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3954 CC="$CC $ac_cv_prog_cc_stdc" ;;
3957 # Some people use a C++ compiler to compile C. Since we use `exit',
3958 # in C++ we need to declare it. In case someone uses the same compiler
3959 # for both compiling C and C++ we need to have the C++ compiler decide
3960 # the declaration of exit, since it's the most demanding environment.
3961 cat >conftest.$ac_ext <<_ACEOF
3966 rm -f conftest.$ac_objext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968 (eval $ac_compile) 2>conftest.er1
3970 grep -v '^ *+' conftest.er1 >conftest.err
3972 cat conftest.err >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } &&
3975 { ac_try='test -z "$ac_c_werror_flag"
3976 || test ! -s conftest.err'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; } &&
3982 { ac_try='test -s conftest.$ac_objext'
3983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; }; then
3988 for ac_declaration in \
3990 'extern "C" void std::exit (int) throw (); using std::exit;' \
3991 'extern "C" void std::exit (int); using std::exit;' \
3992 'extern "C" void exit (int) throw ();' \
3993 'extern "C" void exit (int);' \
3996 cat >conftest.$ac_ext <<_ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4012 rm -f conftest.$ac_objext
4013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4014 (eval $ac_compile) 2>conftest.er1
4016 grep -v '^ *+' conftest.er1 >conftest.err
4018 cat conftest.err >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } &&
4021 { ac_try='test -z "$ac_c_werror_flag"
4022 || test ! -s conftest.err'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; } &&
4028 { ac_try='test -s conftest.$ac_objext'
4029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); }; }; then
4036 echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4042 cat >conftest.$ac_ext <<_ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4057 rm -f conftest.$ac_objext
4058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4059 (eval $ac_compile) 2>conftest.er1
4061 grep -v '^ *+' conftest.er1 >conftest.err
4063 cat conftest.err >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
4066 { ac_try='test -z "$ac_c_werror_flag"
4067 || test ! -s conftest.err'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; } &&
4073 { ac_try='test -s conftest.$ac_objext'
4074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4088 if test -n "$ac_declaration"; then
4089 echo '#ifdef __cplusplus' >>confdefs.h
4090 echo $ac_declaration >>confdefs.h
4091 echo '#endif' >>confdefs.h
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4101 ac_cpp='$CPP $CPPFLAGS'
4102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107 ac_cpp='$CXXCPP $CPPFLAGS'
4108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4111 if test -n "$ac_tool_prefix"; then
4112 for ac_prog in $CCC g++
4114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4116 echo "$as_me:$LINENO: checking for $ac_word" >&5
4117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4118 if test "${ac_cv_prog_CXX+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 if test -n "$CXX"; then
4122 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4131 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141 if test -n "$CXX"; then
4142 echo "$as_me:$LINENO: result: $CXX" >&5
4143 echo "${ECHO_T}$CXX" >&6
4145 echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6
4149 test -n "$CXX" && break
4152 if test -z "$CXX"; then
4154 for ac_prog in $CCC g++
4156 # Extract the first word of "$ac_prog", so it can be a program name with args.
4157 set dummy $ac_prog; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 if test -n "$ac_ct_CXX"; then
4164 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_ac_ct_CXX="$ac_prog"
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4183 if test -n "$ac_ct_CXX"; then
4184 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4185 echo "${ECHO_T}$ac_ct_CXX" >&6
4187 echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4191 test -n "$ac_ct_CXX" && break
4193 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4199 # Provide some information about the compiler.
4200 echo "$as_me:$LINENO:" \
4201 "checking for C++ compiler version" >&5
4202 ac_compiler=`set X $ac_compile; echo $2`
4203 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4204 (eval $ac_compiler --version </dev/null >&5) 2>&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }
4208 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4209 (eval $ac_compiler -v </dev/null >&5) 2>&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }
4213 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4214 (eval $ac_compiler -V </dev/null >&5) 2>&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }
4219 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4220 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4221 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 cat >conftest.$ac_ext <<_ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4242 rm -f conftest.$ac_objext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4244 (eval $ac_compile) 2>conftest.er1
4246 grep -v '^ *+' conftest.er1 >conftest.err
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_cxx_werror_flag"
4252 || test ! -s conftest.err'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; } &&
4258 { ac_try='test -s conftest.$ac_objext'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4266 echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4272 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4275 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4276 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4277 GXX=`test $ac_compiler_gnu = yes && echo yes`
4278 ac_test_CXXFLAGS=${CXXFLAGS+set}
4279 ac_save_CXXFLAGS=$CXXFLAGS
4281 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4282 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4283 if test "${ac_cv_prog_cxx_g+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 cat >conftest.$ac_ext <<_ACEOF
4289 cat confdefs.h >>conftest.$ac_ext
4290 cat >>conftest.$ac_ext <<_ACEOF
4291 /* end confdefs.h. */
4301 rm -f conftest.$ac_objext
4302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4303 (eval $ac_compile) 2>conftest.er1
4305 grep -v '^ *+' conftest.er1 >conftest.err
4307 cat conftest.err >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } &&
4310 { ac_try='test -z "$ac_cxx_werror_flag"
4311 || test ! -s conftest.err'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; } &&
4317 { ac_try='test -s conftest.$ac_objext'
4318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4323 ac_cv_prog_cxx_g=yes
4325 echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4332 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4333 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4334 if test "$ac_test_CXXFLAGS" = set; then
4335 CXXFLAGS=$ac_save_CXXFLAGS
4336 elif test $ac_cv_prog_cxx_g = yes; then
4337 if test "$GXX" = yes; then
4343 if test "$GXX" = yes; then
4349 for ac_declaration in \
4351 'extern "C" void std::exit (int) throw (); using std::exit;' \
4352 'extern "C" void std::exit (int); using std::exit;' \
4353 'extern "C" void exit (int) throw ();' \
4354 'extern "C" void exit (int);' \
4357 cat >conftest.$ac_ext <<_ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4373 rm -f conftest.$ac_objext
4374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375 (eval $ac_compile) 2>conftest.er1
4377 grep -v '^ *+' conftest.er1 >conftest.err
4379 cat conftest.err >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } &&
4382 { ac_try='test -z "$ac_cxx_werror_flag"
4383 || test ! -s conftest.err'
4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; } &&
4389 { ac_try='test -s conftest.$ac_objext'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; }; then
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403 cat >conftest.$ac_ext <<_ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4418 rm -f conftest.$ac_objext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>conftest.er1
4422 grep -v '^ *+' conftest.er1 >conftest.err
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } &&
4427 { ac_try='test -z "$ac_cxx_werror_flag"
4428 || test ! -s conftest.err'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; } &&
4434 { ac_try='test -s conftest.$ac_objext'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4449 if test -n "$ac_declaration"; then
4450 echo '#ifdef __cplusplus' >>confdefs.h
4451 echo $ac_declaration >>confdefs.h
4452 echo '#endif' >>confdefs.h
4456 ac_cpp='$CPP $CPPFLAGS'
4457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4461 echo "$as_me:$LINENO: checking " >&5
4462 echo $ECHO_N "checking ... $ECHO_C" >&6
4463 if test "${ac_cv_has_flex+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 for ac_prog in flex lex
4468 # Extract the first word of "$ac_prog", so it can be a program name with args.
4469 set dummy $ac_prog; ac_word=$2
4470 echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472 if test "${ac_cv_prog_LEX+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 if test -n "$LEX"; then
4476 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485 ac_cv_prog_LEX="$ac_prog"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 if test -n "$LEX"; then
4496 echo "$as_me:$LINENO: result: $LEX" >&5
4497 echo "${ECHO_T}$LEX" >&6
4499 echo "$as_me:$LINENO: result: no" >&5
4500 echo "${ECHO_T}no" >&6
4503 test -n "$LEX" && break
4505 test -n "$LEX" || LEX=":"
4507 if test -z "$LEXLIB"
4509 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4510 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4511 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 ac_check_lib_save_LIBS=$LIBS
4516 cat >conftest.$ac_ext <<_ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4523 /* Override any gcc2 internal prototype to avoid an error. */
4527 /* We use char because int might match the return type of a gcc2
4528 builtin and then its argument prototype would still apply. */
4538 rm -f conftest.$ac_objext conftest$ac_exeext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4540 (eval $ac_link) 2>conftest.er1
4542 grep -v '^ *+' conftest.er1 >conftest.err
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -z "$ac_c_werror_flag"
4548 || test ! -s conftest.err'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; } &&
4554 { ac_try='test -s conftest$ac_exeext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 ac_cv_lib_fl_yywrap=yes
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4565 ac_cv_lib_fl_yywrap=no
4567 rm -f conftest.err conftest.$ac_objext \
4568 conftest$ac_exeext conftest.$ac_ext
4569 LIBS=$ac_check_lib_save_LIBS
4571 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4572 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4573 if test $ac_cv_lib_fl_yywrap = yes; then
4576 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4577 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4578 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 ac_check_lib_save_LIBS=$LIBS
4583 cat >conftest.$ac_ext <<_ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4590 /* Override any gcc2 internal prototype to avoid an error. */
4594 /* We use char because int might match the return type of a gcc2
4595 builtin and then its argument prototype would still apply. */
4605 rm -f conftest.$ac_objext conftest$ac_exeext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4607 (eval $ac_link) 2>conftest.er1
4609 grep -v '^ *+' conftest.er1 >conftest.err
4611 cat conftest.err >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } &&
4614 { ac_try='test -z "$ac_c_werror_flag"
4615 || test ! -s conftest.err'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest$ac_exeext'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 ac_cv_lib_l_yywrap=yes
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4632 ac_cv_lib_l_yywrap=no
4634 rm -f conftest.err conftest.$ac_objext \
4635 conftest$ac_exeext conftest.$ac_ext
4636 LIBS=$ac_check_lib_save_LIBS
4638 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4639 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4640 if test $ac_cv_lib_l_yywrap = yes; then
4648 if test "x$LEX" != "x:"; then
4649 echo "$as_me:$LINENO: checking lex output file root" >&5
4650 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4651 if test "${ac_cv_prog_lex_root+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 # The minimal lex program is just a single line: %%. But some broken lexes
4655 # (Solaris, I think it was) want two %% lines, so accommodate them.
4656 cat >conftest.l <<_ACEOF
4660 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4661 (eval $LEX conftest.l) 2>&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }
4665 if test -f lex.yy.c; then
4666 ac_cv_prog_lex_root=lex.yy
4667 elif test -f lexyy.c; then
4668 ac_cv_prog_lex_root=lexyy
4670 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4671 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4672 { (exit 1); exit 1; }; }
4675 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4676 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4678 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4680 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4681 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4682 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 # POSIX says lex can declare yytext either as a pointer or an array; the
4686 # default is implementation-dependent. Figure out which it is, since
4687 # not all implementations provide the %pointer and %array declarations.
4688 ac_cv_prog_lex_yytext_pointer=no
4689 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4691 LIBS="$LIBS $LEXLIB"
4692 cat >conftest.$ac_ext <<_ACEOF
4693 `cat $LEX_OUTPUT_ROOT.c`
4695 rm -f conftest.$ac_objext conftest$ac_exeext
4696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4697 (eval $ac_link) 2>conftest.er1
4699 grep -v '^ *+' conftest.er1 >conftest.err
4701 cat conftest.err >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } &&
4704 { ac_try='test -z "$ac_c_werror_flag"
4705 || test ! -s conftest.err'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; } &&
4711 { ac_try='test -s conftest$ac_exeext'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4717 ac_cv_prog_lex_yytext_pointer=yes
4719 echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4723 rm -f conftest.err conftest.$ac_objext \
4724 conftest$ac_exeext conftest.$ac_ext
4726 rm -f "${LEX_OUTPUT_ROOT}.c"
4729 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4730 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4731 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4733 cat >>confdefs.h <<\_ACEOF
4734 #define YYTEXT_POINTER 1
4742 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4743 echo "${ECHO_T}$ac_cv_has_flex" >&6
4744 if test "$LEX" != "flex"; then
4745 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4746 echo "$as_me: error: flex not found but required" >&2;}
4747 { (exit 1); exit 1; }; }
4753 echo "$as_me:$LINENO: checking " >&5
4754 echo $ECHO_N "checking ... $ECHO_C" >&6
4755 if test "${llvm_cv_has_bison+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 for ac_prog in 'bison -y' byacc
4760 # Extract the first word of "$ac_prog", so it can be a program name with args.
4761 set dummy $ac_prog; ac_word=$2
4762 echo "$as_me:$LINENO: checking for $ac_word" >&5
4763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4764 if test "${ac_cv_prog_YACC+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 if test -n "$YACC"; then
4768 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4777 ac_cv_prog_YACC="$ac_prog"
4778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 YACC=$ac_cv_prog_YACC
4787 if test -n "$YACC"; then
4788 echo "$as_me:$LINENO: result: $YACC" >&5
4789 echo "${ECHO_T}$YACC" >&6
4791 echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6
4795 test -n "$YACC" && break
4797 test -n "$YACC" || YACC="yacc"
4800 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4801 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4802 if test "$YACC" != "bison -y"; then
4803 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4804 echo "$as_me: error: bison not found but required" >&2;}
4805 { (exit 1); exit 1; }; }
4811 echo "$as_me:$LINENO: checking for GNU make" >&5
4812 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4813 if test "${llvm_cv_gnu_make_command+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 llvm_cv_gnu_make_command=''
4817 for a in "$MAKE" make gmake gnumake ; do
4818 if test -z "$a" ; then continue ; fi ;
4819 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4821 llvm_cv_gnu_make_command=$a ;
4826 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4827 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4828 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4832 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4833 echo "${ECHO_T}\"Not found\"" >&6;
4837 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4838 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4840 if test "$LN_S" = "ln -s"; then
4841 echo "$as_me:$LINENO: result: yes" >&5
4842 echo "${ECHO_T}yes" >&6
4844 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4845 echo "${ECHO_T}no, using $LN_S" >&6
4848 # Extract the first word of "cmp", so it can be a program name with args.
4849 set dummy cmp; ac_word=$2
4850 echo "$as_me:$LINENO: checking for $ac_word" >&5
4851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4852 if test "${ac_cv_path_CMP+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4867 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4880 if test -n "$CMP"; then
4881 echo "$as_me:$LINENO: result: $CMP" >&5
4882 echo "${ECHO_T}$CMP" >&6
4884 echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6
4888 # Extract the first word of "cp", so it can be a program name with args.
4889 set dummy cp; ac_word=$2
4890 echo "$as_me:$LINENO: checking for $ac_word" >&5
4891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4892 if test "${ac_cv_path_CP+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4907 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4920 if test -n "$CP"; then
4921 echo "$as_me:$LINENO: result: $CP" >&5
4922 echo "${ECHO_T}$CP" >&6
4924 echo "$as_me:$LINENO: result: no" >&5
4925 echo "${ECHO_T}no" >&6
4928 # Extract the first word of "date", so it can be a program name with args.
4929 set dummy date; ac_word=$2
4930 echo "$as_me:$LINENO: checking for $ac_word" >&5
4931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4932 if test "${ac_cv_path_DATE+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
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_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4954 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4958 DATE=$ac_cv_path_DATE
4960 if test -n "$DATE"; then
4961 echo "$as_me:$LINENO: result: $DATE" >&5
4962 echo "${ECHO_T}$DATE" >&6
4964 echo "$as_me:$LINENO: result: no" >&5
4965 echo "${ECHO_T}no" >&6
4968 # Extract the first word of "find", so it can be a program name with args.
4969 set dummy find; 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_path_FIND+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4998 FIND=$ac_cv_path_FIND
5000 if test -n "$FIND"; then
5001 echo "$as_me:$LINENO: result: $FIND" >&5
5002 echo "${ECHO_T}$FIND" >&6
5004 echo "$as_me:$LINENO: result: no" >&5
5005 echo "${ECHO_T}no" >&6
5008 # Extract the first word of "grep", so it can be a program name with args.
5009 set dummy grep; ac_word=$2
5010 echo "$as_me:$LINENO: checking for $ac_word" >&5
5011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5012 if test "${ac_cv_path_GREP+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 test -z "$as_dir" && as_dir=.
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5027 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5038 GREP=$ac_cv_path_GREP
5040 if test -n "$GREP"; then
5041 echo "$as_me:$LINENO: result: $GREP" >&5
5042 echo "${ECHO_T}$GREP" >&6
5044 echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6
5048 # Extract the first word of "mkdir", so it can be a program name with args.
5049 set dummy mkdir; ac_word=$2
5050 echo "$as_me:$LINENO: checking for $ac_word" >&5
5051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5052 if test "${ac_cv_path_MKDIR+set}" = set; then
5053 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5078 MKDIR=$ac_cv_path_MKDIR
5080 if test -n "$MKDIR"; then
5081 echo "$as_me:$LINENO: result: $MKDIR" >&5
5082 echo "${ECHO_T}$MKDIR" >&6
5084 echo "$as_me:$LINENO: result: no" >&5
5085 echo "${ECHO_T}no" >&6
5088 # Extract the first word of "mv", so it can be a program name with args.
5089 set dummy mv; ac_word=$2
5090 echo "$as_me:$LINENO: checking for $ac_word" >&5
5091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5092 if test "${ac_cv_path_MV+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5120 if test -n "$MV"; then
5121 echo "$as_me:$LINENO: result: $MV" >&5
5122 echo "${ECHO_T}$MV" >&6
5124 echo "$as_me:$LINENO: result: no" >&5
5125 echo "${ECHO_T}no" >&6
5128 if test -n "$ac_tool_prefix"; then
5129 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5130 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5131 echo "$as_me:$LINENO: checking for $ac_word" >&5
5132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5133 if test "${ac_cv_prog_RANLIB+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 if test -n "$RANLIB"; then
5137 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 RANLIB=$ac_cv_prog_RANLIB
5156 if test -n "$RANLIB"; then
5157 echo "$as_me:$LINENO: result: $RANLIB" >&5
5158 echo "${ECHO_T}$RANLIB" >&6
5160 echo "$as_me:$LINENO: result: no" >&5
5161 echo "${ECHO_T}no" >&6
5165 if test -z "$ac_cv_prog_RANLIB"; then
5166 ac_ct_RANLIB=$RANLIB
5167 # Extract the first word of "ranlib", so it can be a program name with args.
5168 set dummy ranlib; ac_word=$2
5169 echo "$as_me:$LINENO: checking for $ac_word" >&5
5170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5171 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 if test -n "$ac_ct_RANLIB"; then
5175 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184 ac_cv_prog_ac_ct_RANLIB="ranlib"
5185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5194 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5195 if test -n "$ac_ct_RANLIB"; then
5196 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5197 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5199 echo "$as_me:$LINENO: result: no" >&5
5200 echo "${ECHO_T}no" >&6
5203 RANLIB=$ac_ct_RANLIB
5205 RANLIB="$ac_cv_prog_RANLIB"
5208 # Extract the first word of "rm", so it can be a program name with args.
5209 set dummy rm; ac_word=$2
5210 echo "$as_me:$LINENO: checking for $ac_word" >&5
5211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5212 if test "${ac_cv_path_RM+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5240 if test -n "$RM"; then
5241 echo "$as_me:$LINENO: result: $RM" >&5
5242 echo "${ECHO_T}$RM" >&6
5244 echo "$as_me:$LINENO: result: no" >&5
5245 echo "${ECHO_T}no" >&6
5248 # Extract the first word of "sed", so it can be a program name with args.
5249 set dummy sed; ac_word=$2
5250 echo "$as_me:$LINENO: checking for $ac_word" >&5
5251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5252 if test "${ac_cv_path_SED+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5267 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5280 if test -n "$SED"; then
5281 echo "$as_me:$LINENO: result: $SED" >&5
5282 echo "${ECHO_T}$SED" >&6
5284 echo "$as_me:$LINENO: result: no" >&5
5285 echo "${ECHO_T}no" >&6
5288 # Extract the first word of "tar", so it can be a program name with args.
5289 set dummy tar; ac_word=$2
5290 echo "$as_me:$LINENO: checking for $ac_word" >&5
5291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5292 if test "${ac_cv_path_TAR+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5320 if test -n "$TAR"; then
5321 echo "$as_me:$LINENO: result: $TAR" >&5
5322 echo "${ECHO_T}$TAR" >&6
5324 echo "$as_me:$LINENO: result: no" >&5
5325 echo "${ECHO_T}no" >&6
5329 # Extract the first word of "Graphviz", so it can be a program name with args.
5330 set dummy Graphviz; ac_word=$2
5331 echo "$as_me:$LINENO: checking for $ac_word" >&5
5332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5333 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5348 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5359 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5361 if test -n "$GRAPHVIZ"; then
5362 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5363 echo "${ECHO_T}$GRAPHVIZ" >&6
5365 echo "$as_me:$LINENO: result: no" >&5
5366 echo "${ECHO_T}no" >&6
5369 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5371 cat >>confdefs.h <<\_ACEOF
5372 #define HAVE_GRAPHVIZ 1
5375 if test "$llvm_cv_os_type" == "MingW" ; then
5376 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5379 cat >>confdefs.h <<_ACEOF
5380 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
5384 # Extract the first word of "dot", so it can be a program name with args.
5385 set dummy dot; ac_word=$2
5386 echo "$as_me:$LINENO: checking for $ac_word" >&5
5387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5388 if test "${ac_cv_path_DOT+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5403 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5410 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
5416 if test -n "$DOT"; then
5417 echo "$as_me:$LINENO: result: $DOT" >&5
5418 echo "${ECHO_T}$DOT" >&6
5420 echo "$as_me:$LINENO: result: no" >&5
5421 echo "${ECHO_T}no" >&6
5424 if test "$DOT" != "echo dot" ; then
5426 cat >>confdefs.h <<\_ACEOF
5430 if test "$llvm_cv_os_type" == "MingW" ; then
5431 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5434 cat >>confdefs.h <<_ACEOF
5435 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
5439 for ac_prog in gv gsview32
5441 # Extract the first word of "$ac_prog", so it can be a program name with args.
5442 set dummy $ac_prog; ac_word=$2
5443 echo "$as_me:$LINENO: checking for $ac_word" >&5
5444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5445 if test "${ac_cv_path_GV+set}" = set; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 test -z "$as_dir" && as_dir=.
5458 for ac_exec_ext in '' $ac_executable_extensions; do
5459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5460 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 if test -n "$GV"; then
5473 echo "$as_me:$LINENO: result: $GV" >&5
5474 echo "${ECHO_T}$GV" >&6
5476 echo "$as_me:$LINENO: result: no" >&5
5477 echo "${ECHO_T}no" >&6
5480 test -n "$GV" && break
5482 test -n "$GV" || GV="echo gv"
5484 if test "$GV" != "echo gv" ; then
5486 cat >>confdefs.h <<\_ACEOF
5490 if test "$llvm_cv_os_type" == "MingW" ; then
5491 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5494 cat >>confdefs.h <<_ACEOF
5495 #define LLVM_PATH_GV "$GV${EXEEXT}"
5499 # Extract the first word of "dotty", so it can be a program name with args.
5500 set dummy dotty; 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_DOTTY+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 ac_cv_path_DOTTY="$DOTTY" # 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_DOTTY="$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_DOTTY" && ac_cv_path_DOTTY="echo dotty"
5529 DOTTY=$ac_cv_path_DOTTY
5531 if test -n "$DOTTY"; then
5532 echo "$as_me:$LINENO: result: $DOTTY" >&5
5533 echo "${ECHO_T}$DOTTY" >&6
5535 echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6
5539 if test "$DOTTY" != "echo dotty" ; then
5541 cat >>confdefs.h <<\_ACEOF
5542 #define HAVE_DOTTY 1
5545 if test "$llvm_cv_os_type" == "MingW" ; then
5546 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5549 cat >>confdefs.h <<_ACEOF
5550 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
5556 # Extract the first word of "perl", so it can be a program name with args.
5557 set dummy perl; ac_word=$2
5558 echo "$as_me:$LINENO: checking for $ac_word" >&5
5559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5560 if test "${ac_cv_path_PERL+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5586 PERL=$ac_cv_path_PERL
5588 if test -n "$PERL"; then
5589 echo "$as_me:$LINENO: result: $PERL" >&5
5590 echo "${ECHO_T}$PERL" >&6
5592 echo "$as_me:$LINENO: result: no" >&5
5593 echo "${ECHO_T}no" >&6
5596 if test "$PERL" != "none"; then
5597 echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5598 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5599 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5600 echo "$as_me:$LINENO: result: yes" >&5
5601 echo "${ECHO_T}yes" >&6
5604 echo "$as_me:$LINENO: result: not found" >&5
5605 echo "${ECHO_T}not found" >&6
5610 if test x"$PERL" = xnone; then
5618 # Find a good install program. We prefer a C program (faster),
5619 # so one script is as good as another. But avoid the broken or
5620 # incompatible versions:
5621 # SysV /etc/install, /usr/sbin/install
5622 # SunOS /usr/etc/install
5623 # IRIX /sbin/install
5625 # AmigaOS /C/install, which installs bootblocks on floppy discs
5626 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5627 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5628 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5629 # OS/2's system install, which has a completely different semantic
5630 # ./install, which can be erroneously created by make from ./install.sh.
5631 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5632 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5633 if test -z "$INSTALL"; then
5634 if test "${ac_cv_path_install+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 test -z "$as_dir" && as_dir=.
5642 # Account for people who put trailing slashes in PATH elements.
5644 ./ | .// | /cC/* | \
5645 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5646 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5649 # OSF1 and SCO ODT 3.0 have their own names for install.
5650 # Don't use installbsd from OSF since it installs stuff as root
5652 for ac_prog in ginstall scoinst install; do
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5655 if test $ac_prog = install &&
5656 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5657 # AIX install. It has an incompatible calling convention.
5659 elif test $ac_prog = install &&
5660 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5661 # program-specific install script used by HP pwplus--don't use.
5664 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5676 if test "${ac_cv_path_install+set}" = set; then
5677 INSTALL=$ac_cv_path_install
5679 # As a last resort, use the slow shell script. We don't cache a
5680 # path for INSTALL within a source directory, because that will
5681 # break other packages using the cache if that directory is
5682 # removed, or if the path is relative.
5683 INSTALL=$ac_install_sh
5686 echo "$as_me:$LINENO: result: $INSTALL" >&5
5687 echo "${ECHO_T}$INSTALL" >&6
5689 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5690 # It thinks the first close brace ends the variable substitution.
5691 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5693 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5695 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5698 # Extract the first word of "bzip2", so it can be a program name with args.
5699 set dummy bzip2; ac_word=$2
5700 echo "$as_me:$LINENO: checking for $ac_word" >&5
5701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5702 if test "${ac_cv_path_BZIP2+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
5728 BZIP2=$ac_cv_path_BZIP2
5730 if test -n "$BZIP2"; then
5731 echo "$as_me:$LINENO: result: $BZIP2" >&5
5732 echo "${ECHO_T}$BZIP2" >&6
5734 echo "$as_me:$LINENO: result: no" >&5
5735 echo "${ECHO_T}no" >&6
5738 # Extract the first word of "doxygen", so it can be a program name with args.
5739 set dummy doxygen; ac_word=$2
5740 echo "$as_me:$LINENO: checking for $ac_word" >&5
5741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5742 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
5768 DOXYGEN=$ac_cv_path_DOXYGEN
5770 if test -n "$DOXYGEN"; then
5771 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5772 echo "${ECHO_T}$DOXYGEN" >&6
5774 echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6
5778 # Extract the first word of "etags", so it can be a program name with args.
5779 set dummy etags; ac_word=$2
5780 echo "$as_me:$LINENO: checking for $ac_word" >&5
5781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5782 if test "${ac_cv_path_ETAGS+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5797 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5804 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
5808 ETAGS=$ac_cv_path_ETAGS
5810 if test -n "$ETAGS"; then
5811 echo "$as_me:$LINENO: result: $ETAGS" >&5
5812 echo "${ECHO_T}$ETAGS" >&6
5814 echo "$as_me:$LINENO: result: no" >&5
5815 echo "${ECHO_T}no" >&6
5818 # Extract the first word of "groff", so it can be a program name with args.
5819 set dummy groff; ac_word=$2
5820 echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5822 if test "${ac_cv_path_GROFF+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 test -z "$as_dir" && as_dir=.
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5837 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
5848 GROFF=$ac_cv_path_GROFF
5850 if test -n "$GROFF"; then
5851 echo "$as_me:$LINENO: result: $GROFF" >&5
5852 echo "${ECHO_T}$GROFF" >&6
5854 echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6
5858 # Extract the first word of "gzip", so it can be a program name with args.
5859 set dummy gzip; ac_word=$2
5860 echo "$as_me:$LINENO: checking for $ac_word" >&5
5861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5862 if test "${ac_cv_path_GZIP+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5884 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
5888 GZIP=$ac_cv_path_GZIP
5890 if test -n "$GZIP"; then
5891 echo "$as_me:$LINENO: result: $GZIP" >&5
5892 echo "${ECHO_T}$GZIP" >&6
5894 echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6
5898 # Extract the first word of "pod2html", so it can be a program name with args.
5899 set dummy pod2html; ac_word=$2
5900 echo "$as_me:$LINENO: checking for $ac_word" >&5
5901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5902 if test "${ac_cv_path_POD2HTML+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
5928 POD2HTML=$ac_cv_path_POD2HTML
5930 if test -n "$POD2HTML"; then
5931 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5932 echo "${ECHO_T}$POD2HTML" >&6
5934 echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6
5938 # Extract the first word of "pod2man", so it can be a program name with args.
5939 set dummy pod2man; ac_word=$2
5940 echo "$as_me:$LINENO: checking for $ac_word" >&5
5941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5942 if test "${ac_cv_path_POD2MAN+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 test -z "$as_dir" && as_dir=.
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5957 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
5968 POD2MAN=$ac_cv_path_POD2MAN
5970 if test -n "$POD2MAN"; then
5971 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5972 echo "${ECHO_T}$POD2MAN" >&6
5974 echo "$as_me:$LINENO: result: no" >&5
5975 echo "${ECHO_T}no" >&6
5978 # Extract the first word of "runtest", so it can be a program name with args.
5979 set dummy runtest; ac_word=$2
5980 echo "$as_me:$LINENO: checking for $ac_word" >&5
5981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5982 if test "${ac_cv_path_RUNTEST+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 test -z "$as_dir" && as_dir=.
5995 for ac_exec_ext in '' $ac_executable_extensions; do
5996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5997 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
6008 RUNTEST=$ac_cv_path_RUNTEST
6010 if test -n "$RUNTEST"; then
6011 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6012 echo "${ECHO_T}$RUNTEST" >&6
6014 echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6
6020 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
6021 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
6023 # Check whether --with-tclinclude or --without-tclinclude was given.
6024 if test "${with_tclinclude+set}" = set; then
6025 withval="$with_tclinclude"
6026 with_tclinclude=${withval}
6030 if test "${ac_cv_path_tclsh+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 if test x"${with_tclinclude}" != x ; then
6035 if test -f ${with_tclinclude}/tclsh ; then
6036 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
6037 elif test -f ${with_tclinclude}/src/tclsh ; then
6038 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
6040 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
6041 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
6042 { (exit 1); exit 1; }; }
6046 if test x"${ac_cv_path_tclsh}" = x ; then
6047 echo "$as_me:$LINENO: result: none" >&5
6048 echo "${ECHO_T}none" >&6
6049 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
6051 # Extract the first word of "$ac_prog", so it can be a program name with args.
6052 set dummy $ac_prog; ac_word=$2
6053 echo "$as_me:$LINENO: checking for $ac_word" >&5
6054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6055 if test "${ac_cv_path_TCLSH+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
6071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 TCLSH=$ac_cv_path_TCLSH
6082 if test -n "$TCLSH"; then
6083 echo "$as_me:$LINENO: result: $TCLSH" >&5
6084 echo "${ECHO_T}$TCLSH" >&6
6086 echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6
6090 test -n "$TCLSH" && break
6093 if test x"${TCLSH}" = x ; then
6094 ac_cv_path_tclsh='';
6096 ac_cv_path_tclsh="${TCLSH}";
6099 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
6100 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
6101 TCLSH="${ac_cv_path_tclsh}"
6107 # Extract the first word of "zip", so it can be a program name with args.
6108 set dummy zip; ac_word=$2
6109 echo "$as_me:$LINENO: checking for $ac_word" >&5
6110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6111 if test "${ac_cv_path_ZIP+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
6139 if test -n "$ZIP"; then
6140 echo "$as_me:$LINENO: result: $ZIP" >&5
6141 echo "${ECHO_T}$ZIP" >&6
6143 echo "$as_me:$LINENO: result: no" >&5
6144 echo "${ECHO_T}no" >&6
6148 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
6149 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
6150 if test "${llvm_cv_link_use_r+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 ac_cpp='$CPP $CPPFLAGS'
6155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6160 CFLAGS="$CFLAGS -Wl,-R."
6161 cat >conftest.$ac_ext <<_ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6171 int main() { return 0; }
6176 rm -f conftest.$ac_objext conftest$ac_exeext
6177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6178 (eval $ac_link) 2>conftest.er1
6180 grep -v '^ *+' conftest.er1 >conftest.err
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try='test -z "$ac_c_werror_flag"
6186 || test ! -s conftest.err'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; } &&
6192 { ac_try='test -s conftest$ac_exeext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 llvm_cv_link_use_r=yes
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6203 llvm_cv_link_use_r=no
6205 rm -f conftest.err conftest.$ac_objext \
6206 conftest$ac_exeext conftest.$ac_ext
6209 ac_cpp='$CPP $CPPFLAGS'
6210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6216 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
6217 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
6218 if test "$llvm_cv_link_use_r" = yes ; then
6220 cat >>confdefs.h <<\_ACEOF
6221 #define HAVE_LINK_R 1
6229 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6230 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6231 if test "${ac_cv_c_const+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 cat >conftest.$ac_ext <<_ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6244 /* FIXME: Include the comments suggested by Paul. */
6246 /* Ultrix mips cc rejects this. */
6247 typedef int charset[2];
6249 /* SunOS 4.1.1 cc rejects this. */
6250 char const *const *ccp;
6252 /* NEC SVR4.0.2 mips cc rejects this. */
6253 struct point {int x, y;};
6254 static struct point const zero = {0,0};
6255 /* AIX XL C 1.02.0.0 rejects this.
6256 It does not let you subtract one const X* pointer from another in
6257 an arm of an if-expression whose if-part is not a constant
6259 const char *g = "string";
6260 ccp = &g + (g ? g-g : 0);
6261 /* HPUX 7.0 cc rejects these. */
6264 ccp = (char const *const *) p;
6265 { /* SCO 3.2v4 cc rejects this. */
6267 char const *s = 0 ? (char *) 0 : (char const *) 0;
6271 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6273 const int *foo = &x[0];
6276 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6277 typedef const int *iptr;
6281 { /* AIX XL C 1.02.0.0 rejects this saying
6282 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6283 struct s { int j; const int *ap[3]; };
6284 struct s *b; b->j = 5;
6286 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6295 rm -f conftest.$ac_objext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297 (eval $ac_compile) 2>conftest.er1
6299 grep -v '^ *+' conftest.er1 >conftest.err
6301 cat conftest.err >&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); } &&
6304 { ac_try='test -z "$ac_c_werror_flag"
6305 || test ! -s conftest.err'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; } &&
6311 { ac_try='test -s conftest.$ac_objext'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6319 echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6326 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6327 echo "${ECHO_T}$ac_cv_c_const" >&6
6328 if test $ac_cv_c_const = no; then
6330 cat >>confdefs.h <<\_ACEOF
6337 echo "$as_me:$LINENO: checking for egrep" >&5
6338 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6339 if test "${ac_cv_prog_egrep+set}" = set; then
6340 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6343 then ac_cv_prog_egrep='grep -E'
6344 else ac_cv_prog_egrep='egrep'
6347 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6348 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6349 EGREP=$ac_cv_prog_egrep
6352 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6353 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6354 if test "${ac_cv_header_stdc+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 cat >conftest.$ac_ext <<_ACEOF
6360 cat confdefs.h >>conftest.$ac_ext
6361 cat >>conftest.$ac_ext <<_ACEOF
6362 /* end confdefs.h. */
6376 rm -f conftest.$ac_objext
6377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6378 (eval $ac_compile) 2>conftest.er1
6380 grep -v '^ *+' conftest.er1 >conftest.err
6382 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try='test -z "$ac_c_werror_flag"
6386 || test ! -s conftest.err'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; } &&
6392 { ac_try='test -s conftest.$ac_objext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6398 ac_cv_header_stdc=yes
6400 echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6403 ac_cv_header_stdc=no
6405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6407 if test $ac_cv_header_stdc = yes; then
6408 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6409 cat >conftest.$ac_ext <<_ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h. */
6418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6419 $EGREP "memchr" >/dev/null 2>&1; then
6422 ac_cv_header_stdc=no
6428 if test $ac_cv_header_stdc = yes; then
6429 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6430 cat >conftest.$ac_ext <<_ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6440 $EGREP "free" >/dev/null 2>&1; then
6443 ac_cv_header_stdc=no
6449 if test $ac_cv_header_stdc = yes; then
6450 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6451 if test "$cross_compiling" = yes; then
6454 cat >conftest.$ac_ext <<_ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6461 #if ((' ' & 0x0FF) == 0x020)
6462 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6463 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6465 # define ISLOWER(c) \
6466 (('a' <= (c) && (c) <= 'i') \
6467 || ('j' <= (c) && (c) <= 'r') \
6468 || ('s' <= (c) && (c) <= 'z'))
6469 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6472 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6477 for (i = 0; i < 256; i++)
6478 if (XOR (islower (i), ISLOWER (i))
6479 || toupper (i) != TOUPPER (i))
6484 rm -f conftest$ac_exeext
6485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6486 (eval $ac_link) 2>&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; }; then
6497 echo "$as_me: program exited with status $ac_status" >&5
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6502 ac_cv_header_stdc=no
6504 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6508 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6509 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6510 if test $ac_cv_header_stdc = yes; then
6512 cat >>confdefs.h <<\_ACEOF
6513 #define STDC_HEADERS 1
6524 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6525 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6526 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6527 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 cat >conftest.$ac_ext <<_ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6537 #include <sys/types.h>
6549 rm -f conftest.$ac_objext
6550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6551 (eval $ac_compile) 2>conftest.er1
6553 grep -v '^ *+' conftest.er1 >conftest.err
6555 cat conftest.err >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } &&
6558 { ac_try='test -z "$ac_c_werror_flag"
6559 || test ! -s conftest.err'
6560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); }; } &&
6565 { ac_try='test -s conftest.$ac_objext'
6566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); }; }; then
6571 eval "$as_ac_Header=yes"
6573 echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.$ac_ext >&5
6576 eval "$as_ac_Header=no"
6578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6583 cat >>confdefs.h <<_ACEOF
6584 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6587 ac_header_dirent=$ac_hdr; break
6591 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6592 if test $ac_header_dirent = dirent.h; then
6593 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6594 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6595 if test "${ac_cv_search_opendir+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 ac_func_search_save_LIBS=$LIBS
6599 ac_cv_search_opendir=no
6600 cat >conftest.$ac_ext <<_ACEOF
6603 cat confdefs.h >>conftest.$ac_ext
6604 cat >>conftest.$ac_ext <<_ACEOF
6605 /* end confdefs.h. */
6607 /* Override any gcc2 internal prototype to avoid an error. */
6611 /* We use char because int might match the return type of a gcc2
6612 builtin and then its argument prototype would still apply. */
6622 rm -f conftest.$ac_objext conftest$ac_exeext
6623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6624 (eval $ac_link) 2>conftest.er1
6626 grep -v '^ *+' conftest.er1 >conftest.err
6628 cat conftest.err >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } &&
6631 { ac_try='test -z "$ac_c_werror_flag"
6632 || test ! -s conftest.err'
6633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; } &&
6638 { ac_try='test -s conftest$ac_exeext'
6639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); }; }; then
6644 ac_cv_search_opendir="none required"
6646 echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6650 rm -f conftest.err conftest.$ac_objext \
6651 conftest$ac_exeext conftest.$ac_ext
6652 if test "$ac_cv_search_opendir" = no; then
6653 for ac_lib in dir; do
6654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6655 cat >conftest.$ac_ext <<_ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h. */
6662 /* Override any gcc2 internal prototype to avoid an error. */
6666 /* We use char because int might match the return type of a gcc2
6667 builtin and then its argument prototype would still apply. */
6677 rm -f conftest.$ac_objext conftest$ac_exeext
6678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6679 (eval $ac_link) 2>conftest.er1
6681 grep -v '^ *+' conftest.er1 >conftest.err
6683 cat conftest.err >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } &&
6686 { ac_try='test -z "$ac_c_werror_flag"
6687 || test ! -s conftest.err'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; } &&
6693 { ac_try='test -s conftest$ac_exeext'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6699 ac_cv_search_opendir="-l$ac_lib"
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6706 rm -f conftest.err conftest.$ac_objext \
6707 conftest$ac_exeext conftest.$ac_ext
6710 LIBS=$ac_func_search_save_LIBS
6712 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6713 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6714 if test "$ac_cv_search_opendir" != no; then
6715 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6720 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6721 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6722 if test "${ac_cv_search_opendir+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 ac_func_search_save_LIBS=$LIBS
6726 ac_cv_search_opendir=no
6727 cat >conftest.$ac_ext <<_ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6734 /* Override any gcc2 internal prototype to avoid an error. */
6738 /* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */
6749 rm -f conftest.$ac_objext conftest$ac_exeext
6750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6751 (eval $ac_link) 2>conftest.er1
6753 grep -v '^ *+' conftest.er1 >conftest.err
6755 cat conftest.err >&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } &&
6758 { ac_try='test -z "$ac_c_werror_flag"
6759 || test ! -s conftest.err'
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; } &&
6765 { ac_try='test -s conftest$ac_exeext'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; }; then
6771 ac_cv_search_opendir="none required"
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6777 rm -f conftest.err conftest.$ac_objext \
6778 conftest$ac_exeext conftest.$ac_ext
6779 if test "$ac_cv_search_opendir" = no; then
6781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6782 cat >conftest.$ac_ext <<_ACEOF
6785 cat confdefs.h >>conftest.$ac_ext
6786 cat >>conftest.$ac_ext <<_ACEOF
6787 /* end confdefs.h. */
6789 /* Override any gcc2 internal prototype to avoid an error. */
6793 /* We use char because int might match the return type of a gcc2
6794 builtin and then its argument prototype would still apply. */
6804 rm -f conftest.$ac_objext conftest$ac_exeext
6805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6806 (eval $ac_link) 2>conftest.er1
6808 grep -v '^ *+' conftest.er1 >conftest.err
6810 cat conftest.err >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } &&
6813 { ac_try='test -z "$ac_c_werror_flag"
6814 || test ! -s conftest.err'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; } &&
6820 { ac_try='test -s conftest$ac_exeext'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; }; then
6826 ac_cv_search_opendir="-l$ac_lib"
6829 echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6833 rm -f conftest.err conftest.$ac_objext \
6834 conftest$ac_exeext conftest.$ac_ext
6837 LIBS=$ac_func_search_save_LIBS
6839 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6840 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6841 if test "$ac_cv_search_opendir" != no; then
6842 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6848 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6858 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6859 inttypes.h stdint.h unistd.h
6861 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6862 echo "$as_me:$LINENO: checking for $ac_header" >&5
6863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 cat >conftest.$ac_ext <<_ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6873 $ac_includes_default
6875 #include <$ac_header>
6877 rm -f conftest.$ac_objext
6878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6879 (eval $ac_compile) 2>conftest.er1
6881 grep -v '^ *+' conftest.er1 >conftest.err
6883 cat conftest.err >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } &&
6886 { ac_try='test -z "$ac_c_werror_flag"
6887 || test ! -s conftest.err'
6888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; } &&
6893 { ac_try='test -s conftest.$ac_objext'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6899 eval "$as_ac_Header=yes"
6901 echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6904 eval "$as_ac_Header=no"
6906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6911 cat >>confdefs.h <<_ACEOF
6912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6921 for ac_header in dlfcn.h
6923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6925 echo "$as_me:$LINENO: checking for $ac_header" >&5
6926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6933 # Is the header compilable?
6934 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6936 cat >conftest.$ac_ext <<_ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6942 $ac_includes_default
6943 #include <$ac_header>
6945 rm -f conftest.$ac_objext
6946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6947 (eval $ac_compile) 2>conftest.er1
6949 grep -v '^ *+' conftest.er1 >conftest.err
6951 cat conftest.err >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } &&
6954 { ac_try='test -z "$ac_c_werror_flag"
6955 || test ! -s conftest.err'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; } &&
6961 { ac_try='test -s conftest.$ac_objext'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; }; then
6967 ac_header_compiler=yes
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6972 ac_header_compiler=no
6974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6975 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6976 echo "${ECHO_T}$ac_header_compiler" >&6
6978 # Is the header present?
6979 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6981 cat >conftest.$ac_ext <<_ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 #include <$ac_header>
6989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6992 grep -v '^ *+' conftest.er1 >conftest.err
6994 cat conftest.err >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); } >/dev/null; then
6997 if test -s conftest.err; then
6998 ac_cpp_err=$ac_c_preproc_warn_flag
6999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7006 if test -z "$ac_cpp_err"; then
7007 ac_header_preproc=yes
7009 echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.$ac_ext >&5
7012 ac_header_preproc=no
7014 rm -f conftest.err conftest.$ac_ext
7015 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7016 echo "${ECHO_T}$ac_header_preproc" >&6
7018 # So? What about this header?
7019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7025 ac_header_preproc=yes
7028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7031 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7032 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7034 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7035 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7042 ## ----------------------------------- ##
7043 ## Report this to llvmbugs@cs.uiuc.edu ##
7044 ## ----------------------------------- ##
7047 sed "s/^/$as_me: WARNING: /" >&2
7050 echo "$as_me:$LINENO: checking for $ac_header" >&5
7051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 eval "$as_ac_Header=\$ac_header_preproc"
7057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7062 cat >>confdefs.h <<_ACEOF
7063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7070 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
7071 if test "${enable_ltdl_install+set}" = set; then
7072 enableval="$enable_ltdl_install"
7078 if test x"${enable_ltdl_install-no}" != xno; then
7080 INSTALL_LTDL_FALSE='#'
7082 INSTALL_LTDL_TRUE='#'
7088 if test x"${enable_ltdl_convenience-no}" != xno; then
7089 CONVENIENCE_LTDL_TRUE=
7090 CONVENIENCE_LTDL_FALSE='#'
7092 CONVENIENCE_LTDL_TRUE='#'
7093 CONVENIENCE_LTDL_FALSE=
7097 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7098 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7100 libname_spec='lib$name'
7108 shlibpath_overrides_runpath=unknown
7110 dynamic_linker="$host_os ld.so"
7111 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7112 if test "$GCC" = yes; then
7113 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7114 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7115 # if the path contains ";" then we assume it to be the separator
7116 # otherwise default to the standard path separator (i.e. ":") - it is
7117 # assumed that no part of a normal pathname contains ";" but that should
7118 # okay in the real world where ";" in dirpaths is itself problematic.
7119 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7121 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7124 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7126 need_lib_prefix=unknown
7127 hardcode_into_libs=no
7129 # when you set need_version to no, make sure it does not cause -set_version
7130 # flags to be left without arguments
7131 need_version=unknown
7136 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7137 shlibpath_var=LIBPATH
7139 # AIX 3 has no versioning support, so we append a major version to the name.
7140 soname_spec='${libname}${release}${shared_ext}$major'
7147 hardcode_into_libs=yes
7148 if test "$host_cpu" = ia64; then
7149 # AIX 5 supports IA64
7150 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7151 shlibpath_var=LD_LIBRARY_PATH
7153 # With GCC up to 2.95.x, collect2 would create an import file
7154 # for dependence libraries. The import file would start with
7155 # the line `#! .'. This would cause the generated library to
7156 # depend on `.', always an invalid library. This was fixed in
7157 # development snapshots of GCC prior to 3.0.
7159 aix4 | aix4.[01] | aix4.[01].*)
7160 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7162 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7169 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7170 # soname into executable. Probably we can add versioning support to
7171 # collect2, so additional links can be useful in future.
7172 if test "$aix_use_runtimelinking" = yes; then
7173 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7174 # instead of lib<name>.a to let people know that these are not
7175 # typical AIX shared libraries.
7176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7178 # We preserve .a as extension for shared libraries through AIX4.2
7179 # and later when we are not doing run time linking.
7180 library_names_spec='${libname}${release}.a $libname.a'
7181 soname_spec='${libname}${release}${shared_ext}$major'
7183 shlibpath_var=LIBPATH
7188 library_names_spec='$libname.ixlibrary $libname.a'
7189 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7190 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'
7194 library_names_spec='${libname}${shared_ext}'
7195 dynamic_linker="$host_os ld.so"
7196 shlibpath_var=LIBRARY_PATH
7202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7203 soname_spec='${libname}${release}${shared_ext}$major'
7204 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7205 shlibpath_var=LD_LIBRARY_PATH
7206 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7207 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7208 # the default ld.so.conf also contains /usr/contrib/lib and
7209 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7210 # libtool to hard-code these into programs
7213 cygwin* | mingw* | pw32*)
7214 version_type=windows
7219 case $GCC,$host_os in
7220 yes,cygwin* | yes,mingw* | yes,pw32*)
7221 library_names_spec='$libname.dll.a'
7222 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7223 postinstall_cmds='base_file=`basename \${file}`~
7224 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7225 dldir=$destdir/`dirname \$dlpath`~
7226 test -d \$dldir || mkdir -p \$dldir~
7227 $install_prog $dir/$dlname \$dldir/$dlname'
7228 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7229 dlpath=$dir/\$dldll~
7231 shlibpath_overrides_runpath=yes
7235 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7236 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7237 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7240 # MinGW DLLs use traditional 'lib' prefix
7241 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7242 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7243 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7244 # It is most probably a Windows format PATH printed by
7245 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7246 # path with ; separators, and with drive letters. We can handle the
7247 # drive letters (cygwin fileutils understands them), so leave them,
7248 # especially as we might pass files found there to a mingw objdump,
7249 # which wouldn't understand a cygwinified path. Ahh.
7250 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7252 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7256 # pw32 DLLs use 'pw' prefix rather than 'lib'
7257 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7263 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7266 dynamic_linker='Win32 ld.exe'
7267 # FIXME: first we should search . and the directory the executable is in
7271 darwin* | rhapsody*)
7272 dynamic_linker="$host_os dyld"
7276 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7277 soname_spec='${libname}${release}${major}$shared_ext'
7278 shlibpath_overrides_runpath=yes
7279 shlibpath_var=DYLD_LIBRARY_PATH
7280 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7281 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7282 if test "$GCC" = yes; then
7283 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"`
7285 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7287 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7295 soname_spec='${libname}${release}${shared_ext}$major'
7296 shlibpath_var=LD_LIBRARY_PATH
7307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7308 soname_spec='${libname}${release}${shared_ext}$major'
7309 shlibpath_var=LD_LIBRARY_PATH
7310 shlibpath_overrides_runpath=no
7311 hardcode_into_libs=yes
7312 dynamic_linker='GNU ld.so'
7316 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7317 version_type=freebsd-$objformat
7318 case $version_type in
7320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7325 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7329 shlibpath_var=LD_LIBRARY_PATH
7332 shlibpath_overrides_runpath=yes
7334 freebsd3.01* | freebsdelf3.01*)
7335 shlibpath_overrides_runpath=yes
7336 hardcode_into_libs=yes
7339 shlibpath_overrides_runpath=no
7340 hardcode_into_libs=yes
7349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7350 soname_spec='${libname}${release}${shared_ext}$major'
7351 shlibpath_var=LD_LIBRARY_PATH
7352 hardcode_into_libs=yes
7355 hpux9* | hpux10* | hpux11*)
7356 # Give a soname corresponding to the major version so that dld.sl refuses to
7357 # link against other versions.
7364 hardcode_into_libs=yes
7365 dynamic_linker="$host_os dld.so"
7366 shlibpath_var=LD_LIBRARY_PATH
7367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7369 soname_spec='${libname}${release}${shared_ext}$major'
7370 if test "X$HPUX_IA64_MODE" = X32; then
7371 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7373 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7379 hardcode_into_libs=yes
7380 dynamic_linker="$host_os dld.sl"
7381 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7382 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7384 soname_spec='${libname}${release}${shared_ext}$major'
7385 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7390 dynamic_linker="$host_os dld.sl"
7391 shlibpath_var=SHLIB_PATH
7392 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7394 soname_spec='${libname}${release}${shared_ext}$major'
7397 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7398 postinstall_cmds='chmod 555 $lib'
7401 irix5* | irix6* | nonstopux*)
7403 nonstopux*) version_type=nonstopux ;;
7405 if test "$lt_cv_prog_gnu_ld" = yes; then
7413 soname_spec='${libname}${release}${shared_ext}$major'
7414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7416 irix5* | nonstopux*)
7420 case $LD in # libtool.m4 will add one of these switches to LD
7421 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7422 libsuff= shlibsuff= libmagic=32-bit;;
7423 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7424 libsuff=32 shlibsuff=N32 libmagic=N32;;
7425 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7426 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7427 *) libsuff= shlibsuff= libmagic=never-match;;
7431 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7432 shlibpath_overrides_runpath=no
7433 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7434 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7435 hardcode_into_libs=yes
7438 # No shared lib support for Linux oldld, aout, or coff.
7439 linux*oldld* | linux*aout* | linux*coff*)
7443 # This must be Linux ELF.
7448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7449 soname_spec='${libname}${release}${shared_ext}$major'
7450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7451 shlibpath_var=LD_LIBRARY_PATH
7452 shlibpath_overrides_runpath=no
7453 # This implies no fast_install, which is unacceptable.
7454 # Some rework will be needed to allow for fast_install
7455 # before this can be enabled.
7456 hardcode_into_libs=yes
7458 # Append ld.so.conf contents to the search path
7459 if test -f /etc/ld.so.conf; then
7460 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7461 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7464 # We used to test for /lib/ld.so.1 and disable shared libraries on
7465 # powerpc, because MkLinux only supported shared libraries with the
7466 # GNU dynamic linker. Since this was broken with cross compilers,
7467 # most powerpc-linux boxes support dynamic linking these days and
7468 # people can always --disable-shared, the test was removed, and we
7469 # assume the GNU/Linux dynamic linker is in use.
7470 dynamic_linker='GNU/Linux ld.so'
7477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7478 soname_spec='${libname}${release}${shared_ext}$major'
7479 shlibpath_var=LD_LIBRARY_PATH
7480 shlibpath_overrides_runpath=no
7481 hardcode_into_libs=yes
7482 dynamic_linker='GNU ld.so'
7489 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7492 dynamic_linker='NetBSD (a.out) ld.so'
7494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7495 soname_spec='${libname}${release}${shared_ext}$major'
7496 dynamic_linker='NetBSD ld.elf_so'
7498 shlibpath_var=LD_LIBRARY_PATH
7499 shlibpath_overrides_runpath=yes
7500 hardcode_into_libs=yes
7505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7506 shlibpath_var=LD_LIBRARY_PATH
7507 shlibpath_overrides_runpath=yes
7514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7515 soname_spec='${libname}${release}${shared_ext}$major'
7516 shlibpath_var=LD_LIBRARY_PATH
7517 shlibpath_overrides_runpath=yes
7524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7526 shlibpath_var=LD_LIBRARY_PATH
7527 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7529 openbsd2.[89] | openbsd2.[89].*)
7530 shlibpath_overrides_runpath=no
7533 shlibpath_overrides_runpath=yes
7537 shlibpath_overrides_runpath=yes
7542 libname_spec='$name'
7545 library_names_spec='$libname${shared_ext} $libname.a'
7546 dynamic_linker='OS/2 ld.exe'
7547 shlibpath_var=LIBPATH
7550 osf3* | osf4* | osf5*)
7554 soname_spec='${libname}${release}${shared_ext}$major'
7555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7556 shlibpath_var=LD_LIBRARY_PATH
7557 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7558 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7563 soname_spec='${libname}${release}${shared_ext}$major'
7564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7565 shlibpath_var=LD_LIBRARY_PATH
7572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7573 soname_spec='${libname}${release}${shared_ext}$major'
7574 shlibpath_var=LD_LIBRARY_PATH
7575 shlibpath_overrides_runpath=yes
7576 hardcode_into_libs=yes
7577 # ldd complains unless libraries are executable
7578 postinstall_cmds='chmod +x $lib'
7583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7584 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7585 shlibpath_var=LD_LIBRARY_PATH
7586 shlibpath_overrides_runpath=yes
7587 if test "$with_gnu_ld" = yes; then
7593 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7596 soname_spec='${libname}${release}${shared_ext}$major'
7597 shlibpath_var=LD_LIBRARY_PATH
7598 case $host_vendor in
7600 shlibpath_overrides_runpath=no
7602 export_dynamic_flag_spec='${wl}-Blargedynsym'
7603 runpath_var=LD_RUN_PATH
7611 shlibpath_overrides_runpath=no
7612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7618 if test -d /usr/nec ;then
7620 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7621 soname_spec='$libname${shared_ext}.$major'
7622 shlibpath_var=LD_LIBRARY_PATH
7628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7629 soname_spec='${libname}${release}${shared_ext}$major'
7630 shlibpath_var=LD_LIBRARY_PATH
7637 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7638 echo "${ECHO_T}$dynamic_linker" >&6
7639 test "$dynamic_linker" = no && can_build_shared=no
7642 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7643 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7644 if test "${libltdl_cv_shlibext+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7649 eval libltdl_cv_shlibext=$shrext_cmds
7652 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7653 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7654 if test -n "$libltdl_cv_shlibext"; then
7656 cat >>confdefs.h <<_ACEOF
7657 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7663 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7664 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7665 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 libltdl_cv_shlibpath_var="$shlibpath_var"
7670 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7671 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7672 if test -n "$libltdl_cv_shlibpath_var"; then
7674 cat >>confdefs.h <<_ACEOF
7675 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7681 echo "$as_me:$LINENO: checking for the default library search path" >&5
7682 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7683 if test "${libltdl_cv_sys_search_path+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7686 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7688 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7689 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7690 if test -n "$libltdl_cv_sys_search_path"; then
7692 for dir in $libltdl_cv_sys_search_path; do
7693 if test -z "$sys_search_path"; then
7694 sys_search_path="$dir"
7696 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7700 cat >>confdefs.h <<_ACEOF
7701 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7706 echo "$as_me:$LINENO: checking for objdir" >&5
7707 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7708 if test "${libltdl_cv_objdir+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 libltdl_cv_objdir="$objdir"
7712 if test -n "$objdir"; then
7715 rm -f .libs 2>/dev/null
7716 mkdir .libs 2>/dev/null
7717 if test -d .libs; then
7718 libltdl_cv_objdir=.libs
7720 # MS-DOS does not allow filenames that begin with a dot.
7721 libltdl_cv_objdir=_libs
7723 rmdir .libs 2>/dev/null
7727 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7728 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7730 cat >>confdefs.h <<_ACEOF
7731 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7735 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7736 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7737 if test "${lt_cv_path_NM+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 if test -n "$NM"; then
7741 # Let the user override the test.
7744 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7745 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7747 test -z "$ac_dir" && ac_dir=.
7748 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7749 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7750 # Check to see if the nm accepts a BSD-compat flag.
7751 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7752 # nm: unknown option "B" ignored
7753 # Tru64's nm complains that /dev/null is an invalid object file
7754 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7755 */dev/null* | *'Invalid file or object type'*)
7756 lt_cv_path_NM="$tmp_nm -B"
7760 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7762 lt_cv_path_NM="$tmp_nm -p"
7766 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7767 continue # so that we can try to find one that supports BSD flags
7774 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7777 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7778 echo "${ECHO_T}$lt_cv_path_NM" >&6
7785 # Check for command to grab the raw symbol name followed by C symbol from nm.
7786 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7787 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7788 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 # These are sane defaults that work on at least a few old systems.
7793 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7795 # Character class describing NM global symbol codes.
7796 symcode='[BCDEGRST]'
7798 # Regexp to match symbols that can be accessed directly from C.
7799 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7801 # Transform the above into a raw symbol and a C symbol.
7802 symxfrm='\1 \2\3 \3'
7804 # Transform an extracted symbol line into a proper C declaration
7805 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7807 # Transform an extracted symbol line into symbol name and symbol address
7808 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'"
7810 # Define system-specific variables.
7815 cygwin* | mingw* | pw32*)
7816 symcode='[ABCDGISTW]'
7818 hpux*) # Its linker distinguishes data from code symbols
7819 if test "$host_cpu" = ia64; then
7820 symcode='[ABCDEGRST]'
7822 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7823 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'"
7826 if test "$host_cpu" = ia64; then
7827 symcode='[ABCDGIRSTW]'
7828 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7829 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'"
7833 symcode='[BCDEGRST]'
7836 symcode='[BCDEGQRST]'
7846 # Handle CRLF in mingw tool chain
7850 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7854 # If we're using GNU nm, then use its standard symbol codes.
7855 case `$NM -V 2>&1` in
7856 *GNU* | *'with BFD'*)
7857 symcode='[ABCDGIRSTW]' ;;
7860 # Try without a prefix undercore, then with it.
7861 for ac_symprfx in "" "_"; do
7863 # Write the raw and C identifiers.
7864 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7866 # Check to see that the pipe works correctly.
7870 cat > conftest.$ac_ext <<EOF
7875 void nm_test_func(){}
7879 int main(){nm_test_var='a';nm_test_func();return(0);}
7882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7883 (eval $ac_compile) 2>&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; then
7887 # Now try to grab the symbols.
7889 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7890 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } && test -s "$nlist"; then
7894 # Try sorting and uniquifying the output.
7895 if sort "$nlist" | uniq > "$nlist"T; then
7896 mv -f "$nlist"T "$nlist"
7901 # Make sure that we snagged all the symbols we need.
7902 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7903 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7904 cat <<EOF > conftest.$ac_ext
7910 # Now generate the symbol file.
7911 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7913 cat <<EOF >> conftest.$ac_ext
7914 #if defined (__STDC__) && __STDC__
7915 # define lt_ptr_t void *
7917 # define lt_ptr_t char *
7921 /* The mapping between symbol names and symbols. */
7926 lt_preloaded_symbols[] =
7929 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7930 cat <<\EOF >> conftest.$ac_ext
7938 # Now try linking the two files.
7939 mv conftest.$ac_objext conftstm.$ac_objext
7940 lt_save_LIBS="$LIBS"
7941 lt_save_CFLAGS="$CFLAGS"
7942 LIBS="conftstm.$ac_objext"
7943 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7945 (eval $ac_link) 2>&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7951 LIBS="$lt_save_LIBS"
7952 CFLAGS="$lt_save_CFLAGS"
7954 echo "cannot find nm_test_func in $nlist" >&5
7957 echo "cannot find nm_test_var in $nlist" >&5
7960 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7963 echo "$progname: failed program was:" >&5
7964 cat conftest.$ac_ext >&5
7966 rm -f conftest* conftst*
7968 # Do not use the global_symbol_pipe unless it works.
7969 if test "$pipe_works" = yes; then
7972 lt_cv_sys_global_symbol_pipe=
7978 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7979 lt_cv_sys_global_symbol_to_cdecl=
7981 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7982 echo "$as_me:$LINENO: result: failed" >&5
7983 echo "${ECHO_T}failed" >&6
7985 echo "$as_me:$LINENO: result: ok" >&5
7986 echo "${ECHO_T}ok" >&6
7990 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7991 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7992 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7996 libltdl_cv_preloaded_symbols=yes
7998 libltdl_cv_preloaded_symbols=no
8002 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
8003 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
8004 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
8006 cat >>confdefs.h <<\_ACEOF
8007 #define HAVE_PRELOADED_SYMBOLS 1
8015 ac_cpp='$CPP $CPPFLAGS'
8016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8021 echo "$as_me:$LINENO: checking for shl_load" >&5
8022 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8023 if test "${ac_cv_func_shl_load+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8026 cat >conftest.$ac_ext <<_ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8032 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8034 #define shl_load innocuous_shl_load
8036 /* System header to define __stub macros and hopefully few prototypes,
8037 which can conflict with char shl_load (); below.
8038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8039 <limits.h> exists even on freestanding compilers. */
8042 # include <limits.h>
8044 # include <assert.h>
8049 /* Override any gcc2 internal prototype to avoid an error. */
8054 /* We use char because int might match the return type of a gcc2
8055 builtin and then its argument prototype would still apply. */
8057 /* The GNU C library defines this for functions which it implements
8058 to always fail with ENOSYS. Some functions are actually named
8059 something starting with __ and the normal name is an alias. */
8060 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8063 char (*f) () = shl_load;
8072 return f != shl_load;
8077 rm -f conftest.$ac_objext conftest$ac_exeext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8079 (eval $ac_link) 2>conftest.er1
8081 grep -v '^ *+' conftest.er1 >conftest.err
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } &&
8086 { ac_try='test -z "$ac_c_werror_flag"
8087 || test ! -s conftest.err'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; } &&
8093 { ac_try='test -s conftest$ac_exeext'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; }; then
8099 ac_cv_func_shl_load=yes
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8104 ac_cv_func_shl_load=no
8106 rm -f conftest.err conftest.$ac_objext \
8107 conftest$ac_exeext conftest.$ac_ext
8109 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8110 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8111 if test $ac_cv_func_shl_load = yes; then
8113 cat >>confdefs.h <<\_ACEOF
8114 #define HAVE_SHL_LOAD 1
8118 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8119 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8120 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 ac_check_lib_save_LIBS=$LIBS
8125 cat >conftest.$ac_ext <<_ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8132 /* Override any gcc2 internal prototype to avoid an error. */
8136 /* We use char because int might match the return type of a gcc2
8137 builtin and then its argument prototype would still apply. */
8147 rm -f conftest.$ac_objext conftest$ac_exeext
8148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8149 (eval $ac_link) 2>conftest.er1
8151 grep -v '^ *+' conftest.er1 >conftest.err
8153 cat conftest.err >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } &&
8156 { ac_try='test -z "$ac_c_werror_flag"
8157 || test ! -s conftest.err'
8158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); }; } &&
8163 { ac_try='test -s conftest$ac_exeext'
8164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); }; }; then
8169 ac_cv_lib_dld_shl_load=yes
8171 echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8174 ac_cv_lib_dld_shl_load=no
8176 rm -f conftest.err conftest.$ac_objext \
8177 conftest$ac_exeext conftest.$ac_ext
8178 LIBS=$ac_check_lib_save_LIBS
8180 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8181 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8182 if test $ac_cv_lib_dld_shl_load = yes; then
8184 cat >>confdefs.h <<\_ACEOF
8185 #define HAVE_SHL_LOAD 1
8188 LIBADD_DL="$LIBADD_DL -ldld"
8190 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8191 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8192 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 ac_check_lib_save_LIBS=$LIBS
8197 cat >conftest.$ac_ext <<_ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h. */
8204 /* Override any gcc2 internal prototype to avoid an error. */
8208 /* We use char because int might match the return type of a gcc2
8209 builtin and then its argument prototype would still apply. */
8219 rm -f conftest.$ac_objext conftest$ac_exeext
8220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8221 (eval $ac_link) 2>conftest.er1
8223 grep -v '^ *+' conftest.er1 >conftest.err
8225 cat conftest.err >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } &&
8228 { ac_try='test -z "$ac_c_werror_flag"
8229 || test ! -s conftest.err'
8230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; } &&
8235 { ac_try='test -s conftest$ac_exeext'
8236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; }; then
8241 ac_cv_lib_dl_dlopen=yes
8243 echo "$as_me: failed program was:" >&5
8244 sed 's/^/| /' conftest.$ac_ext >&5
8246 ac_cv_lib_dl_dlopen=no
8248 rm -f conftest.err conftest.$ac_objext \
8249 conftest$ac_exeext conftest.$ac_ext
8250 LIBS=$ac_check_lib_save_LIBS
8252 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8253 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8254 if test $ac_cv_lib_dl_dlopen = yes; then
8256 cat >>confdefs.h <<\_ACEOF
8257 #define HAVE_LIBDL 1
8260 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
8262 cat >conftest.$ac_ext <<_ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8280 rm -f conftest.$ac_objext conftest$ac_exeext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282 (eval $ac_link) 2>conftest.er1
8284 grep -v '^ *+' conftest.er1 >conftest.err
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag"
8290 || test ! -s conftest.err'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; } &&
8296 { ac_try='test -s conftest$ac_exeext'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8303 cat >>confdefs.h <<\_ACEOF
8304 #define HAVE_LIBDL 1
8306 libltdl_cv_func_dlopen="yes"
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8311 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8312 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8313 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
8316 ac_check_lib_save_LIBS=$LIBS
8318 cat >conftest.$ac_ext <<_ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8325 /* Override any gcc2 internal prototype to avoid an error. */
8329 /* We use char because int might match the return type of a gcc2
8330 builtin and then its argument prototype would still apply. */
8340 rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8342 (eval $ac_link) 2>conftest.er1
8344 grep -v '^ *+' conftest.er1 >conftest.err
8346 cat conftest.err >&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); } &&
8349 { ac_try='test -z "$ac_c_werror_flag"
8350 || test ! -s conftest.err'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; } &&
8356 { ac_try='test -s conftest$ac_exeext'
8357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; }; then
8362 ac_cv_lib_svld_dlopen=yes
8364 echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.$ac_ext >&5
8367 ac_cv_lib_svld_dlopen=no
8369 rm -f conftest.err conftest.$ac_objext \
8370 conftest$ac_exeext conftest.$ac_ext
8371 LIBS=$ac_check_lib_save_LIBS
8373 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8374 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8375 if test $ac_cv_lib_svld_dlopen = yes; then
8377 cat >>confdefs.h <<\_ACEOF
8378 #define HAVE_LIBDL 1
8381 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8383 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8384 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8385 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 ac_check_lib_save_LIBS=$LIBS
8390 cat >conftest.$ac_ext <<_ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8397 /* Override any gcc2 internal prototype to avoid an error. */
8401 /* We use char because int might match the return type of a gcc2
8402 builtin and then its argument prototype would still apply. */
8412 rm -f conftest.$ac_objext conftest$ac_exeext
8413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8414 (eval $ac_link) 2>conftest.er1
8416 grep -v '^ *+' conftest.er1 >conftest.err
8418 cat conftest.err >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } &&
8421 { ac_try='test -z "$ac_c_werror_flag"
8422 || test ! -s conftest.err'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; } &&
8428 { ac_try='test -s conftest$ac_exeext'
8429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8434 ac_cv_lib_dld_dld_link=yes
8436 echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.$ac_ext >&5
8439 ac_cv_lib_dld_dld_link=no
8441 rm -f conftest.err conftest.$ac_objext \
8442 conftest$ac_exeext conftest.$ac_ext
8443 LIBS=$ac_check_lib_save_LIBS
8445 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8446 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8447 if test $ac_cv_lib_dld_dld_link = yes; then
8449 cat >>confdefs.h <<\_ACEOF
8453 LIBADD_DL="$LIBADD_DL -ldld"
8455 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8456 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8457 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8458 echo $ECHO_N "(cached) $ECHO_C" >&6
8460 cat >conftest.$ac_ext <<_ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8466 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8468 #define _dyld_func_lookup innocuous__dyld_func_lookup
8470 /* System header to define __stub macros and hopefully few prototypes,
8471 which can conflict with char _dyld_func_lookup (); below.
8472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8473 <limits.h> exists even on freestanding compilers. */
8476 # include <limits.h>
8478 # include <assert.h>
8481 #undef _dyld_func_lookup
8483 /* Override any gcc2 internal prototype to avoid an error. */
8488 /* We use char because int might match the return type of a gcc2
8489 builtin and then its argument prototype would still apply. */
8490 char _dyld_func_lookup ();
8491 /* The GNU C library defines this for functions which it implements
8492 to always fail with ENOSYS. Some functions are actually named
8493 something starting with __ and the normal name is an alias. */
8494 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8497 char (*f) () = _dyld_func_lookup;
8506 return f != _dyld_func_lookup;
8511 rm -f conftest.$ac_objext conftest$ac_exeext
8512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8513 (eval $ac_link) 2>conftest.er1
8515 grep -v '^ *+' conftest.er1 >conftest.err
8517 cat conftest.err >&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } &&
8520 { ac_try='test -z "$ac_c_werror_flag"
8521 || test ! -s conftest.err'
8522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); }; } &&
8527 { ac_try='test -s conftest$ac_exeext'
8528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; }; then
8533 ac_cv_func__dyld_func_lookup=yes
8535 echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8538 ac_cv_func__dyld_func_lookup=no
8540 rm -f conftest.err conftest.$ac_objext \
8541 conftest$ac_exeext conftest.$ac_ext
8543 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8544 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8545 if test $ac_cv_func__dyld_func_lookup = yes; then
8547 cat >>confdefs.h <<\_ACEOF
8561 rm -f conftest.err conftest.$ac_objext \
8562 conftest$ac_exeext conftest.$ac_ext
8573 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8575 lt_save_LIBS="$LIBS"
8576 LIBS="$LIBS $LIBADD_DL"
8578 for ac_func in dlerror
8580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8581 echo "$as_me:$LINENO: checking for $ac_func" >&5
8582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8583 if eval "test \"\${$as_ac_var+set}\" = set"; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 cat >conftest.$ac_ext <<_ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8594 #define $ac_func innocuous_$ac_func
8596 /* System header to define __stub macros and hopefully few prototypes,
8597 which can conflict with char $ac_func (); below.
8598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8599 <limits.h> exists even on freestanding compilers. */
8602 # include <limits.h>
8604 # include <assert.h>
8609 /* Override any gcc2 internal prototype to avoid an error. */
8614 /* We use char because int might match the return type of a gcc2
8615 builtin and then its argument prototype would still apply. */
8617 /* The GNU C library defines this for functions which it implements
8618 to always fail with ENOSYS. Some functions are actually named
8619 something starting with __ and the normal name is an alias. */
8620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8623 char (*f) () = $ac_func;
8632 return f != $ac_func;
8637 rm -f conftest.$ac_objext conftest$ac_exeext
8638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8639 (eval $ac_link) 2>conftest.er1
8641 grep -v '^ *+' conftest.er1 >conftest.err
8643 cat conftest.err >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } &&
8646 { ac_try='test -z "$ac_c_werror_flag"
8647 || test ! -s conftest.err'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; } &&
8653 { ac_try='test -s conftest$ac_exeext'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; }; then
8659 eval "$as_ac_var=yes"
8661 echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8664 eval "$as_ac_var=no"
8666 rm -f conftest.err conftest.$ac_objext \
8667 conftest$ac_exeext conftest.$ac_ext
8669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8671 if test `eval echo '${'$as_ac_var'}'` = yes; then
8672 cat >>confdefs.h <<_ACEOF
8673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8679 LIBS="$lt_save_LIBS"
8682 ac_cpp='$CPP $CPPFLAGS'
8683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8689 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8690 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8691 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8694 ac_cv_sys_symbol_underscore=no
8695 cat > conftest.$ac_ext <<EOF
8696 void nm_test_func(){}
8697 int main(){nm_test_func;return 0;}
8699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8700 (eval $ac_compile) 2>&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; then
8704 # Now try to grab the symbols.
8705 ac_nlist=conftest.nm
8706 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8707 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } && test -s "$ac_nlist"; then
8711 # See whether the symbols have a leading underscore.
8712 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8713 ac_cv_sys_symbol_underscore=yes
8715 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8718 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8722 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8725 echo "configure: failed program was:" >&5
8731 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8732 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8735 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8736 if test x"$libltdl_cv_func_dlopen" = xyes ||
8737 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8738 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8739 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8740 if test "${libltdl_cv_need_uscore+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 libltdl_cv_need_uscore=unknown
8745 LIBS="$LIBS $LIBADD_DL"
8746 if test "$cross_compiling" = yes; then :
8747 libltdl_cv_need_uscore=cross
8749 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8750 lt_status=$lt_dlunknown
8751 cat > conftest.$ac_ext <<EOF
8752 #line 8752 "configure"
8753 #include "confdefs.h"
8762 # define LT_DLGLOBAL RTLD_GLOBAL
8765 # define LT_DLGLOBAL DL_GLOBAL
8767 # define LT_DLGLOBAL 0
8771 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8772 find out it does not work in some platform. */
8773 #ifndef LT_DLLAZY_OR_NOW
8775 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8778 # define LT_DLLAZY_OR_NOW DL_LAZY
8781 # define LT_DLLAZY_OR_NOW RTLD_NOW
8784 # define LT_DLLAZY_OR_NOW DL_NOW
8786 # define LT_DLLAZY_OR_NOW 0
8794 extern "C" void exit (int);
8797 void fnord() { int i=42;}
8800 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8801 int status = $lt_dlunknown;
8805 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8806 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8807 /* dlclose (self); */
8813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814 (eval $ac_link) 2>&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8818 (./conftest; exit; ) 2>/dev/null
8821 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8822 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8826 # compilation failed
8835 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8836 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8840 if test x"$libltdl_cv_need_uscore" = xyes; then
8842 cat >>confdefs.h <<\_ACEOF
8843 #define NEED_USCORE 1
8849 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8850 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8851 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8854 # PORTME does your system automatically load deplibs for dlopen?
8855 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8856 # For now, we just catch OSes we know something about -- in the
8857 # future, we'll try test this programmatically.
8858 libltdl_cv_sys_dlopen_deplibs=unknown
8860 aix3*|aix4.1.*|aix4.2.*)
8861 # Unknown whether this is true for these versions of AIX, but
8862 # we want this `case' here to explicitly catch those versions.
8863 libltdl_cv_sys_dlopen_deplibs=unknown
8866 libltdl_cv_sys_dlopen_deplibs=yes
8869 # Assuming the user has installed a libdl from somewhere, this is true
8870 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8871 libltdl_cv_sys_dlopen_deplibs=yes
8873 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8874 # GNU and its variants, using gnu ld.so (Glibc)
8875 libltdl_cv_sys_dlopen_deplibs=yes
8878 libltdl_cv_sys_dlopen_deplibs=yes
8880 irix[12345]*|irix6.[01]*)
8881 # Catch all versions of IRIX before 6.2, and indicate that we don't
8882 # know how it worked for any of those versions.
8883 libltdl_cv_sys_dlopen_deplibs=unknown
8886 # The case above catches anything before 6.2, and it's known that
8887 # at 6.2 and later dlopen does load deplibs.
8888 libltdl_cv_sys_dlopen_deplibs=yes
8891 libltdl_cv_sys_dlopen_deplibs=yes
8894 libltdl_cv_sys_dlopen_deplibs=yes
8897 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8898 # it did *not* use an RPATH in a shared library to find objects the
8899 # library depends on, so we explictly say `no'.
8900 libltdl_cv_sys_dlopen_deplibs=no
8902 osf5.0|osf5.0a|osf5.1)
8903 # dlopen *does* load deplibs and with the right loader patch applied
8904 # it even uses RPATH in a shared library to search for shared objects
8905 # that the library depends on, but there's no easy way to know if that
8906 # patch is installed. Since this is the case, all we can really
8907 # say is unknown -- it depends on the patch being installed. If
8908 # it is, this changes to `yes'. Without it, it would be `no'.
8909 libltdl_cv_sys_dlopen_deplibs=unknown
8912 # the two cases above should catch all versions of osf <= 5.1. Read
8913 # the comments above for what we know about them.
8914 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8915 # is used to find them so we can finally say `yes'.
8916 libltdl_cv_sys_dlopen_deplibs=yes
8919 libltdl_cv_sys_dlopen_deplibs=yes
8924 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8925 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8926 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8928 cat >>confdefs.h <<\_ACEOF
8929 #define LTDL_DLOPEN_DEPLIBS 1
8935 for ac_header in argz.h
8937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8939 echo "$as_me:$LINENO: checking for $ac_header" >&5
8940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8947 # Is the header compilable?
8948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8950 cat >conftest.$ac_ext <<_ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h. */
8956 $ac_includes_default
8957 #include <$ac_header>
8959 rm -f conftest.$ac_objext
8960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8961 (eval $ac_compile) 2>conftest.er1
8963 grep -v '^ *+' conftest.er1 >conftest.err
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } &&
8968 { ac_try='test -z "$ac_c_werror_flag"
8969 || test ! -s conftest.err'
8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; } &&
8975 { ac_try='test -s conftest.$ac_objext'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; }; then
8981 ac_header_compiler=yes
8983 echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8986 ac_header_compiler=no
8988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8990 echo "${ECHO_T}$ac_header_compiler" >&6
8992 # Is the header present?
8993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8995 cat >conftest.$ac_ext <<_ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h. */
9001 #include <$ac_header>
9003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9006 grep -v '^ *+' conftest.er1 >conftest.err
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } >/dev/null; then
9011 if test -s conftest.err; then
9012 ac_cpp_err=$ac_c_preproc_warn_flag
9013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9020 if test -z "$ac_cpp_err"; then
9021 ac_header_preproc=yes
9023 echo "$as_me: failed program was:" >&5
9024 sed 's/^/| /' conftest.$ac_ext >&5
9026 ac_header_preproc=no
9028 rm -f conftest.err conftest.$ac_ext
9029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9030 echo "${ECHO_T}$ac_header_preproc" >&6
9032 # So? What about this header?
9033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9039 ac_header_preproc=yes
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9056 ## ----------------------------------- ##
9057 ## Report this to llvmbugs@cs.uiuc.edu ##
9058 ## ----------------------------------- ##
9061 sed "s/^/$as_me: WARNING: /" >&2
9064 echo "$as_me:$LINENO: checking for $ac_header" >&5
9065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9069 eval "$as_ac_Header=\$ac_header_preproc"
9071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9076 cat >>confdefs.h <<_ACEOF
9077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9085 echo "$as_me:$LINENO: checking for error_t" >&5
9086 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
9087 if test "${ac_cv_type_error_t+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 cat >conftest.$ac_ext <<_ACEOF
9093 cat confdefs.h >>conftest.$ac_ext
9094 cat >>conftest.$ac_ext <<_ACEOF
9095 /* end confdefs.h. */
9105 if (sizeof (error_t))
9111 rm -f conftest.$ac_objext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9113 (eval $ac_compile) 2>conftest.er1
9115 grep -v '^ *+' conftest.er1 >conftest.err
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } &&
9120 { ac_try='test -z "$ac_c_werror_flag"
9121 || test ! -s conftest.err'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; } &&
9127 { ac_try='test -s conftest.$ac_objext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 ac_cv_type_error_t=yes
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9138 ac_cv_type_error_t=no
9140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9142 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
9143 echo "${ECHO_T}$ac_cv_type_error_t" >&6
9144 if test $ac_cv_type_error_t = yes; then
9146 cat >>confdefs.h <<_ACEOF
9147 #define HAVE_ERROR_T 1
9153 cat >>confdefs.h <<\_ACEOF
9165 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
9167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9168 echo "$as_me:$LINENO: checking for $ac_func" >&5
9169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9170 if eval "test \"\${$as_ac_var+set}\" = set"; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9173 cat >conftest.$ac_ext <<_ACEOF
9176 cat confdefs.h >>conftest.$ac_ext
9177 cat >>conftest.$ac_ext <<_ACEOF
9178 /* end confdefs.h. */
9179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9181 #define $ac_func innocuous_$ac_func
9183 /* System header to define __stub macros and hopefully few prototypes,
9184 which can conflict with char $ac_func (); below.
9185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9186 <limits.h> exists even on freestanding compilers. */
9189 # include <limits.h>
9191 # include <assert.h>
9196 /* Override any gcc2 internal prototype to avoid an error. */
9201 /* We use char because int might match the return type of a gcc2
9202 builtin and then its argument prototype would still apply. */
9204 /* The GNU C library defines this for functions which it implements
9205 to always fail with ENOSYS. Some functions are actually named
9206 something starting with __ and the normal name is an alias. */
9207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9210 char (*f) () = $ac_func;
9219 return f != $ac_func;
9224 rm -f conftest.$ac_objext conftest$ac_exeext
9225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9226 (eval $ac_link) 2>conftest.er1
9228 grep -v '^ *+' conftest.er1 >conftest.err
9230 cat conftest.err >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } &&
9233 { ac_try='test -z "$ac_c_werror_flag"
9234 || test ! -s conftest.err'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; } &&
9240 { ac_try='test -s conftest$ac_exeext'
9241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); }; }; then
9246 eval "$as_ac_var=yes"
9248 echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9251 eval "$as_ac_var=no"
9253 rm -f conftest.err conftest.$ac_objext \
9254 conftest$ac_exeext conftest.$ac_ext
9256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9258 if test `eval echo '${'$as_ac_var'}'` = yes; then
9259 cat >>confdefs.h <<_ACEOF
9260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9293 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9298 echo "$as_me:$LINENO: checking for $ac_header" >&5
9299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
9303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9306 # Is the header compilable?
9307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9309 cat >conftest.$ac_ext <<_ACEOF
9312 cat confdefs.h >>conftest.$ac_ext
9313 cat >>conftest.$ac_ext <<_ACEOF
9314 /* end confdefs.h. */
9315 $ac_includes_default
9316 #include <$ac_header>
9318 rm -f conftest.$ac_objext
9319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9320 (eval $ac_compile) 2>conftest.er1
9322 grep -v '^ *+' conftest.er1 >conftest.err
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } &&
9327 { ac_try='test -z "$ac_c_werror_flag"
9328 || test ! -s conftest.err'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; } &&
9334 { ac_try='test -s conftest.$ac_objext'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
9340 ac_header_compiler=yes
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9345 ac_header_compiler=no
9347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9349 echo "${ECHO_T}$ac_header_compiler" >&6
9351 # Is the header present?
9352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9354 cat >conftest.$ac_ext <<_ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9360 #include <$ac_header>
9362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9365 grep -v '^ *+' conftest.er1 >conftest.err
9367 cat conftest.err >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } >/dev/null; then
9370 if test -s conftest.err; then
9371 ac_cpp_err=$ac_c_preproc_warn_flag
9372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9379 if test -z "$ac_cpp_err"; then
9380 ac_header_preproc=yes
9382 echo "$as_me: failed program was:" >&5
9383 sed 's/^/| /' conftest.$ac_ext >&5
9385 ac_header_preproc=no
9387 rm -f conftest.err conftest.$ac_ext
9388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9389 echo "${ECHO_T}$ac_header_preproc" >&6
9391 # So? What about this header?
9392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9398 ac_header_preproc=yes
9401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9415 ## ----------------------------------- ##
9416 ## Report this to llvmbugs@cs.uiuc.edu ##
9417 ## ----------------------------------- ##
9420 sed "s/^/$as_me: WARNING: /" >&2
9423 echo "$as_me:$LINENO: checking for $ac_header" >&5
9424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 eval "$as_ac_Header=\$ac_header_preproc"
9430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9435 cat >>confdefs.h <<_ACEOF
9436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9447 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9451 echo "$as_me:$LINENO: checking for $ac_header" >&5
9452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9459 # Is the header compilable?
9460 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9462 cat >conftest.$ac_ext <<_ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h. */
9468 $ac_includes_default
9469 #include <$ac_header>
9471 rm -f conftest.$ac_objext
9472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9473 (eval $ac_compile) 2>conftest.er1
9475 grep -v '^ *+' conftest.er1 >conftest.err
9477 cat conftest.err >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); } &&
9480 { ac_try='test -z "$ac_c_werror_flag"
9481 || test ! -s conftest.err'
9482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); }; } &&
9487 { ac_try='test -s conftest.$ac_objext'
9488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; }; then
9493 ac_header_compiler=yes
9495 echo "$as_me: failed program was:" >&5
9496 sed 's/^/| /' conftest.$ac_ext >&5
9498 ac_header_compiler=no
9500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9502 echo "${ECHO_T}$ac_header_compiler" >&6
9504 # Is the header present?
9505 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9507 cat >conftest.$ac_ext <<_ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h. */
9513 #include <$ac_header>
9515 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9518 grep -v '^ *+' conftest.er1 >conftest.err
9520 cat conftest.err >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } >/dev/null; then
9523 if test -s conftest.err; then
9524 ac_cpp_err=$ac_c_preproc_warn_flag
9525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9532 if test -z "$ac_cpp_err"; then
9533 ac_header_preproc=yes
9535 echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9538 ac_header_preproc=no
9540 rm -f conftest.err conftest.$ac_ext
9541 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9542 echo "${ECHO_T}$ac_header_preproc" >&6
9544 # So? What about this header?
9545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9551 ac_header_preproc=yes
9554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9561 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9568 ## ----------------------------------- ##
9569 ## Report this to llvmbugs@cs.uiuc.edu ##
9570 ## ----------------------------------- ##
9573 sed "s/^/$as_me: WARNING: /" >&2
9576 echo "$as_me:$LINENO: checking for $ac_header" >&5
9577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 eval "$as_ac_Header=\$ac_header_preproc"
9583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9588 cat >>confdefs.h <<_ACEOF
9589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9598 for ac_header in string.h strings.h
9600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9602 echo "$as_me:$LINENO: checking for $ac_header" >&5
9603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9610 # Is the header compilable?
9611 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9613 cat >conftest.$ac_ext <<_ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9619 $ac_includes_default
9620 #include <$ac_header>
9622 rm -f conftest.$ac_objext
9623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9624 (eval $ac_compile) 2>conftest.er1
9626 grep -v '^ *+' conftest.er1 >conftest.err
9628 cat conftest.err >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } &&
9631 { ac_try='test -z "$ac_c_werror_flag"
9632 || test ! -s conftest.err'
9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; } &&
9638 { ac_try='test -s conftest.$ac_objext'
9639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }; }; then
9644 ac_header_compiler=yes
9646 echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9649 ac_header_compiler=no
9651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9652 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9653 echo "${ECHO_T}$ac_header_compiler" >&6
9655 # Is the header present?
9656 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9658 cat >conftest.$ac_ext <<_ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h. */
9664 #include <$ac_header>
9666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9669 grep -v '^ *+' conftest.er1 >conftest.err
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } >/dev/null; then
9674 if test -s conftest.err; then
9675 ac_cpp_err=$ac_c_preproc_warn_flag
9676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9683 if test -z "$ac_cpp_err"; then
9684 ac_header_preproc=yes
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9689 ac_header_preproc=no
9691 rm -f conftest.err conftest.$ac_ext
9692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9693 echo "${ECHO_T}$ac_header_preproc" >&6
9695 # So? What about this header?
9696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9702 ac_header_preproc=yes
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9712 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9719 ## ----------------------------------- ##
9720 ## Report this to llvmbugs@cs.uiuc.edu ##
9721 ## ----------------------------------- ##
9724 sed "s/^/$as_me: WARNING: /" >&2
9727 echo "$as_me:$LINENO: checking for $ac_header" >&5
9728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9732 eval "$as_ac_Header=\$ac_header_preproc"
9734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9739 cat >>confdefs.h <<_ACEOF
9740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9750 for ac_func in strchr index
9752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9753 echo "$as_me:$LINENO: checking for $ac_func" >&5
9754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9755 if eval "test \"\${$as_ac_var+set}\" = set"; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9758 cat >conftest.$ac_ext <<_ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h. */
9764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9766 #define $ac_func innocuous_$ac_func
9768 /* System header to define __stub macros and hopefully few prototypes,
9769 which can conflict with char $ac_func (); below.
9770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9771 <limits.h> exists even on freestanding compilers. */
9774 # include <limits.h>
9776 # include <assert.h>
9781 /* Override any gcc2 internal prototype to avoid an error. */
9786 /* We use char because int might match the return type of a gcc2
9787 builtin and then its argument prototype would still apply. */
9789 /* The GNU C library defines this for functions which it implements
9790 to always fail with ENOSYS. Some functions are actually named
9791 something starting with __ and the normal name is an alias. */
9792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9795 char (*f) () = $ac_func;
9804 return f != $ac_func;
9809 rm -f conftest.$ac_objext conftest$ac_exeext
9810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9811 (eval $ac_link) 2>conftest.er1
9813 grep -v '^ *+' conftest.er1 >conftest.err
9815 cat conftest.err >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } &&
9818 { ac_try='test -z "$ac_c_werror_flag"
9819 || test ! -s conftest.err'
9820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); }; } &&
9825 { ac_try='test -s conftest$ac_exeext'
9826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); }; }; then
9831 eval "$as_ac_var=yes"
9833 echo "$as_me: failed program was:" >&5
9834 sed 's/^/| /' conftest.$ac_ext >&5
9836 eval "$as_ac_var=no"
9838 rm -f conftest.err conftest.$ac_objext \
9839 conftest$ac_exeext conftest.$ac_ext
9841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9843 if test `eval echo '${'$as_ac_var'}'` = yes; then
9844 cat >>confdefs.h <<_ACEOF
9845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9853 for ac_func in strrchr rindex
9855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9856 echo "$as_me:$LINENO: checking for $ac_func" >&5
9857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9858 if eval "test \"\${$as_ac_var+set}\" = set"; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 cat >conftest.$ac_ext <<_ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h. */
9867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9869 #define $ac_func innocuous_$ac_func
9871 /* System header to define __stub macros and hopefully few prototypes,
9872 which can conflict with char $ac_func (); below.
9873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9874 <limits.h> exists even on freestanding compilers. */
9877 # include <limits.h>
9879 # include <assert.h>
9884 /* Override any gcc2 internal prototype to avoid an error. */
9889 /* We use char because int might match the return type of a gcc2
9890 builtin and then its argument prototype would still apply. */
9892 /* The GNU C library defines this for functions which it implements
9893 to always fail with ENOSYS. Some functions are actually named
9894 something starting with __ and the normal name is an alias. */
9895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9898 char (*f) () = $ac_func;
9907 return f != $ac_func;
9912 rm -f conftest.$ac_objext conftest$ac_exeext
9913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9914 (eval $ac_link) 2>conftest.er1
9916 grep -v '^ *+' conftest.er1 >conftest.err
9918 cat conftest.err >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); } &&
9921 { ac_try='test -z "$ac_c_werror_flag"
9922 || test ! -s conftest.err'
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; } &&
9928 { ac_try='test -s conftest$ac_exeext'
9929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; }; then
9934 eval "$as_ac_var=yes"
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9939 eval "$as_ac_var=no"
9941 rm -f conftest.err conftest.$ac_objext \
9942 conftest$ac_exeext conftest.$ac_ext
9944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9946 if test `eval echo '${'$as_ac_var'}'` = yes; then
9947 cat >>confdefs.h <<_ACEOF
9948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9956 for ac_func in memcpy bcopy
9958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9959 echo "$as_me:$LINENO: checking for $ac_func" >&5
9960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9961 if eval "test \"\${$as_ac_var+set}\" = set"; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 cat >conftest.$ac_ext <<_ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9972 #define $ac_func innocuous_$ac_func
9974 /* System header to define __stub macros and hopefully few prototypes,
9975 which can conflict with char $ac_func (); below.
9976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9977 <limits.h> exists even on freestanding compilers. */
9980 # include <limits.h>
9982 # include <assert.h>
9987 /* Override any gcc2 internal prototype to avoid an error. */
9992 /* We use char because int might match the return type of a gcc2
9993 builtin and then its argument prototype would still apply. */
9995 /* The GNU C library defines this for functions which it implements
9996 to always fail with ENOSYS. Some functions are actually named
9997 something starting with __ and the normal name is an alias. */
9998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10001 char (*f) () = $ac_func;
10010 return f != $ac_func;
10015 rm -f conftest.$ac_objext conftest$ac_exeext
10016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10017 (eval $ac_link) 2>conftest.er1
10019 grep -v '^ *+' conftest.er1 >conftest.err
10021 cat conftest.err >&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); } &&
10024 { ac_try='test -z "$ac_c_werror_flag"
10025 || test ! -s conftest.err'
10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027 (eval $ac_try) 2>&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; } &&
10031 { ac_try='test -s conftest$ac_exeext'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10037 eval "$as_ac_var=yes"
10039 echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10042 eval "$as_ac_var=no"
10044 rm -f conftest.err conftest.$ac_objext \
10045 conftest$ac_exeext conftest.$ac_ext
10047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10049 if test `eval echo '${'$as_ac_var'}'` = yes; then
10050 cat >>confdefs.h <<_ACEOF
10051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10059 for ac_func in memmove strcmp
10061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10062 echo "$as_me:$LINENO: checking for $ac_func" >&5
10063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10064 if eval "test \"\${$as_ac_var+set}\" = set"; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10067 cat >conftest.$ac_ext <<_ACEOF
10070 cat confdefs.h >>conftest.$ac_ext
10071 cat >>conftest.$ac_ext <<_ACEOF
10072 /* end confdefs.h. */
10073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10075 #define $ac_func innocuous_$ac_func
10077 /* System header to define __stub macros and hopefully few prototypes,
10078 which can conflict with char $ac_func (); below.
10079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10080 <limits.h> exists even on freestanding compilers. */
10083 # include <limits.h>
10085 # include <assert.h>
10090 /* Override any gcc2 internal prototype to avoid an error. */
10095 /* We use char because int might match the return type of a gcc2
10096 builtin and then its argument prototype would still apply. */
10098 /* The GNU C library defines this for functions which it implements
10099 to always fail with ENOSYS. Some functions are actually named
10100 something starting with __ and the normal name is an alias. */
10101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10104 char (*f) () = $ac_func;
10113 return f != $ac_func;
10118 rm -f conftest.$ac_objext conftest$ac_exeext
10119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10120 (eval $ac_link) 2>conftest.er1
10122 grep -v '^ *+' conftest.er1 >conftest.err
10124 cat conftest.err >&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } &&
10127 { ac_try='test -z "$ac_c_werror_flag"
10128 || test ! -s conftest.err'
10129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130 (eval $ac_try) 2>&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; } &&
10134 { ac_try='test -s conftest$ac_exeext'
10135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10136 (eval $ac_try) 2>&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); }; }; then
10140 eval "$as_ac_var=yes"
10142 echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10145 eval "$as_ac_var=no"
10147 rm -f conftest.err conftest.$ac_objext \
10148 conftest$ac_exeext conftest.$ac_ext
10150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10152 if test `eval echo '${'$as_ac_var'}'` = yes; then
10153 cat >>confdefs.h <<_ACEOF
10154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10163 for ac_func in closedir opendir readdir
10165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10166 echo "$as_me:$LINENO: checking for $ac_func" >&5
10167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10168 if eval "test \"\${$as_ac_var+set}\" = set"; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10171 cat >conftest.$ac_ext <<_ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h. */
10177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10179 #define $ac_func innocuous_$ac_func
10181 /* System header to define __stub macros and hopefully few prototypes,
10182 which can conflict with char $ac_func (); below.
10183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10184 <limits.h> exists even on freestanding compilers. */
10187 # include <limits.h>
10189 # include <assert.h>
10194 /* Override any gcc2 internal prototype to avoid an error. */
10199 /* We use char because int might match the return type of a gcc2
10200 builtin and then its argument prototype would still apply. */
10202 /* The GNU C library defines this for functions which it implements
10203 to always fail with ENOSYS. Some functions are actually named
10204 something starting with __ and the normal name is an alias. */
10205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10208 char (*f) () = $ac_func;
10217 return f != $ac_func;
10222 rm -f conftest.$ac_objext conftest$ac_exeext
10223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10224 (eval $ac_link) 2>conftest.er1
10226 grep -v '^ *+' conftest.er1 >conftest.err
10228 cat conftest.err >&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } &&
10231 { ac_try='test -z "$ac_c_werror_flag"
10232 || test ! -s conftest.err'
10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; } &&
10238 { ac_try='test -s conftest$ac_exeext'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; }; then
10244 eval "$as_ac_var=yes"
10246 echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10249 eval "$as_ac_var=no"
10251 rm -f conftest.err conftest.$ac_objext \
10252 conftest$ac_exeext conftest.$ac_ext
10254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10256 if test `eval echo '${'$as_ac_var'}'` = yes; then
10257 cat >>confdefs.h <<_ACEOF
10258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10265 # Check whether --enable-shared or --disable-shared was given.
10266 if test "${enable_shared+set}" = set; then
10267 enableval="$enable_shared"
10268 p=${PACKAGE-default}
10270 yes) enable_shared=yes ;;
10271 no) enable_shared=no ;;
10274 # Look at the argument we got. We use all the common list separators.
10275 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10276 for pkg in $enableval; do
10278 if test "X$pkg" = "X$p"; then
10289 # Check whether --enable-static or --disable-static was given.
10290 if test "${enable_static+set}" = set; then
10291 enableval="$enable_static"
10292 p=${PACKAGE-default}
10294 yes) enable_static=yes ;;
10295 no) enable_static=no ;;
10298 # Look at the argument we got. We use all the common list separators.
10299 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10300 for pkg in $enableval; do
10302 if test "X$pkg" = "X$p"; then
10313 # Check whether --enable-fast-install or --disable-fast-install was given.
10314 if test "${enable_fast_install+set}" = set; then
10315 enableval="$enable_fast_install"
10316 p=${PACKAGE-default}
10318 yes) enable_fast_install=yes ;;
10319 no) enable_fast_install=no ;;
10321 enable_fast_install=no
10322 # Look at the argument we got. We use all the common list separators.
10323 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10324 for pkg in $enableval; do
10326 if test "X$pkg" = "X$p"; then
10327 enable_fast_install=yes
10334 enable_fast_install=yes
10337 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10338 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10339 if test "${lt_cv_path_SED+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
10342 # Loop through the user's path and test for sed and gsed.
10343 # Then use that list of sed's as ones to test for truncation.
10344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10345 for as_dir in $PATH
10348 test -z "$as_dir" && as_dir=.
10349 for lt_ac_prog in sed gsed; do
10350 for ac_exec_ext in '' $ac_executable_extensions; do
10351 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10352 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10359 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10360 # along with /bin/sed that truncates output.
10361 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10362 test ! -f $lt_ac_sed && break
10363 cat /dev/null > conftest.in
10365 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10366 # Check for GNU sed and select it if it is found.
10367 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10368 lt_cv_path_SED=$lt_ac_sed
10372 cat conftest.in conftest.in >conftest.tmp
10373 mv conftest.tmp conftest.in
10374 cp conftest.in conftest.nl
10376 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10377 cmp -s conftest.out conftest.nl || break
10378 # 10000 chars as input seems more than enough
10379 test $lt_ac_count -gt 10 && break
10380 lt_ac_count=`expr $lt_ac_count + 1`
10381 if test $lt_ac_count -gt $lt_ac_max; then
10382 lt_ac_max=$lt_ac_count
10383 lt_cv_path_SED=$lt_ac_sed
10390 SED=$lt_cv_path_SED
10391 echo "$as_me:$LINENO: result: $SED" >&5
10392 echo "${ECHO_T}$SED" >&6
10395 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10396 if test "${with_gnu_ld+set}" = set; then
10397 withval="$with_gnu_ld"
10398 test "$withval" = no || with_gnu_ld=yes
10403 if test "$GCC" = yes; then
10404 # Check if gcc -print-prog-name=ld gives a path.
10405 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10406 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10409 # gcc leaves a trailing carriage return which upsets mingw
10410 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10412 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10415 # Accept absolute paths.
10417 re_direlt='/[^/][^/]*/\.\./'
10418 # Canonicalize the pathname of ld
10419 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10420 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10421 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10423 test -z "$LD" && LD="$ac_prog"
10426 # If it fails, then pretend we aren't using GCC.
10430 # If it is relative, then search for the first ld in PATH.
10431 with_gnu_ld=unknown
10434 elif test "$with_gnu_ld" = yes; then
10435 echo "$as_me:$LINENO: checking for GNU ld" >&5
10436 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10438 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10439 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10441 if test "${lt_cv_path_LD+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 if test -z "$LD"; then
10445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10446 for ac_dir in $PATH; do
10448 test -z "$ac_dir" && ac_dir=.
10449 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10450 lt_cv_path_LD="$ac_dir/$ac_prog"
10451 # Check to see if the program is GNU ld. I'd rather use --version,
10452 # but apparently some GNU ld's only accept -v.
10453 # Break only if it was the GNU/non-GNU ld that we prefer.
10454 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10455 *GNU* | *'with BFD'*)
10456 test "$with_gnu_ld" != no && break
10459 test "$with_gnu_ld" != yes && break
10466 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10470 LD="$lt_cv_path_LD"
10471 if test -n "$LD"; then
10472 echo "$as_me:$LINENO: result: $LD" >&5
10473 echo "${ECHO_T}$LD" >&6
10475 echo "$as_me:$LINENO: result: no" >&5
10476 echo "${ECHO_T}no" >&6
10478 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10479 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10480 { (exit 1); exit 1; }; }
10481 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10482 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10483 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10487 case `$LD -v 2>&1 </dev/null` in
10488 *GNU* | *'with BFD'*)
10489 lt_cv_prog_gnu_ld=yes
10492 lt_cv_prog_gnu_ld=no
10496 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10497 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10498 with_gnu_ld=$lt_cv_prog_gnu_ld
10501 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10502 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10503 if test "${lt_cv_ld_reload_flag+set}" = set; then
10504 echo $ECHO_N "(cached) $ECHO_C" >&6
10506 lt_cv_ld_reload_flag='-r'
10508 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10509 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10510 reload_flag=$lt_cv_ld_reload_flag
10511 case $reload_flag in
10513 *) reload_flag=" $reload_flag" ;;
10515 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10518 if test "$GCC" = yes; then
10519 reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
10521 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10526 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10527 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10528 if test "${lt_cv_deplibs_check_method+set}" = set; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 lt_cv_file_magic_cmd='$MAGIC_CMD'
10532 lt_cv_file_magic_test_file=
10533 lt_cv_deplibs_check_method='unknown'
10534 # Need to set the preceding variable on all platforms that support
10535 # interlibrary dependencies.
10536 # 'none' -- dependencies not supported.
10537 # `unknown' -- same as none, but documents that we really don't know.
10538 # 'pass_all' -- all dependencies passed with no checks.
10539 # 'test_compile' -- check by making test program.
10540 # 'file_magic [[regex]]' -- check by looking for files in library path
10541 # which responds to the $file_magic_cmd with a given extended regex.
10542 # If you have `file' or equivalent on your system and you're not sure
10543 # whether `pass_all' will *always* work, you probably want this one.
10547 lt_cv_deplibs_check_method=pass_all
10551 lt_cv_deplibs_check_method=pass_all
10555 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10556 lt_cv_file_magic_cmd='/usr/bin/file -L'
10557 lt_cv_file_magic_test_file=/shlib/libc.so
10561 # func_win32_libid is a shell function defined in ltmain.sh
10562 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10563 lt_cv_file_magic_cmd='func_win32_libid'
10567 # Base MSYS/MinGW do not provide the 'file' command needed by
10568 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10569 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10570 lt_cv_file_magic_cmd='$OBJDUMP -f'
10573 darwin* | rhapsody*)
10574 lt_cv_deplibs_check_method=pass_all
10577 freebsd* | kfreebsd*-gnu)
10578 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10581 # Not sure whether the presence of OpenBSD here was a mistake.
10582 # Let's accept both of them until this is cleared up.
10583 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10584 lt_cv_file_magic_cmd=/usr/bin/file
10585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10589 lt_cv_deplibs_check_method=pass_all
10594 lt_cv_deplibs_check_method=pass_all
10597 hpux10.20* | hpux11*)
10598 lt_cv_file_magic_cmd=/usr/bin/file
10599 case "$host_cpu" in
10601 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10602 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10605 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]'
10606 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10609 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10610 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10615 irix5* | irix6* | nonstopux*)
10617 *-32|*"-32 ") libmagic=32-bit;;
10618 *-n32|*"-n32 ") libmagic=N32;;
10619 *-64|*"-64 ") libmagic=64-bit;;
10620 *) libmagic=never-match;;
10622 lt_cv_deplibs_check_method=pass_all
10625 # This must be Linux ELF.
10627 lt_cv_deplibs_check_method=pass_all
10631 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10632 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10639 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10640 lt_cv_file_magic_cmd=/usr/bin/file
10641 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10645 lt_cv_deplibs_check_method=unknown
10649 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10652 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10656 osf3* | osf4* | osf5*)
10657 lt_cv_deplibs_check_method=pass_all
10661 lt_cv_deplibs_check_method=pass_all
10665 lt_cv_deplibs_check_method=pass_all
10668 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10669 case $host_vendor in
10671 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]'
10672 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10675 lt_cv_deplibs_check_method=pass_all
10678 lt_cv_file_magic_cmd='/bin/file'
10679 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10682 lt_cv_file_magic_cmd='/bin/file'
10683 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10684 lt_cv_file_magic_test_file=/lib/libc.so
10687 lt_cv_deplibs_check_method=pass_all
10692 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10693 lt_cv_deplibs_check_method=pass_all
10698 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10699 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10700 file_magic_cmd=$lt_cv_file_magic_cmd
10701 deplibs_check_method=$lt_cv_deplibs_check_method
10702 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10706 # If no C compiler was specified, use CC.
10709 # Allow CC to be a program name with arguments.
10712 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10713 if test "${enable_libtool_lock+set}" = set; then
10714 enableval="$enable_libtool_lock"
10717 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10719 # Some flags need to be propagated to the compiler or linker for good
10723 # Find out which ABI we are using.
10724 echo 'int i;' > conftest.$ac_ext
10725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10726 (eval $ac_compile) 2>&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; then
10730 case `/usr/bin/file conftest.$ac_objext` in
10732 HPUX_IA64_MODE="32"
10735 HPUX_IA64_MODE="64"
10742 # Find out which ABI we are using.
10743 echo '#line 10743 "configure"' > conftest.$ac_ext
10744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10745 (eval $ac_compile) 2>&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); }; then
10749 if test "$lt_cv_prog_gnu_ld" = yes; then
10750 case `/usr/bin/file conftest.$ac_objext` in
10752 LD="${LD-ld} -melf32bsmip"
10755 LD="${LD-ld} -melf32bmipn32"
10758 LD="${LD-ld} -melf64bmip"
10762 case `/usr/bin/file conftest.$ac_objext` in
10778 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10779 # Find out which ABI we are using.
10780 echo 'int i;' > conftest.$ac_ext
10781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10782 (eval $ac_compile) 2>&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; then
10786 case "`/usr/bin/file conftest.o`" in
10790 LD="${LD-ld} -m elf_i386"
10792 ppc64-*linux*|powerpc64-*linux*)
10793 LD="${LD-ld} -m elf32ppclinux"
10796 LD="${LD-ld} -m elf_s390"
10799 LD="${LD-ld} -m elf32_sparc"
10806 LD="${LD-ld} -m elf_x86_64"
10808 ppc*-*linux*|powerpc*-*linux*)
10809 LD="${LD-ld} -m elf64ppc"
10812 LD="${LD-ld} -m elf64_s390"
10815 LD="${LD-ld} -m elf64_sparc"
10825 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10826 SAVE_CFLAGS="$CFLAGS"
10827 CFLAGS="$CFLAGS -belf"
10828 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10829 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10830 if test "${lt_cv_cc_needs_belf+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10834 ac_cpp='$CPP $CPPFLAGS'
10835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10839 cat >conftest.$ac_ext <<_ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10847 rm -f conftest.$ac_objext conftest$ac_exeext
10848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10849 (eval $ac_link) 2>conftest.er1
10851 grep -v '^ *+' conftest.er1 >conftest.err
10853 cat conftest.err >&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } &&
10856 { ac_try='test -z "$ac_c_werror_flag"
10857 || test ! -s conftest.err'
10858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859 (eval $ac_try) 2>&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; } &&
10863 { ac_try='test -s conftest$ac_exeext'
10864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865 (eval $ac_try) 2>&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; }; then
10869 lt_cv_cc_needs_belf=yes
10871 echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.$ac_ext >&5
10874 lt_cv_cc_needs_belf=no
10876 rm -f conftest.err conftest.$ac_objext \
10877 conftest$ac_exeext conftest.$ac_ext
10879 ac_cpp='$CPP $CPPFLAGS'
10880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10885 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10886 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10887 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10888 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10889 CFLAGS="$SAVE_CFLAGS"
10895 need_locks="$enable_libtool_lock"
10900 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10901 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10902 (test "X$CXX" != "Xg++"))) ; then
10904 ac_cpp='$CXXCPP $CPPFLAGS'
10905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10908 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10909 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10910 if test -z "$CXXCPP"; then
10911 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 # Double quotes because CXXCPP needs to be expanded
10915 for CXXCPP in "$CXX -E" "/lib/cpp"
10917 ac_preproc_ok=false
10918 for ac_cxx_preproc_warn_flag in '' yes
10920 # Use a header file that comes with gcc, so configuring glibc
10921 # with a fresh cross-compiler works.
10922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10923 # <limits.h> exists even on freestanding compilers.
10924 # On the NeXT, cc -E runs the code through the compiler's parser,
10925 # not just through cpp. "Syntax error" is here to catch this case.
10926 cat >conftest.$ac_ext <<_ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h. */
10933 # include <limits.h>
10935 # include <assert.h>
10939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10942 grep -v '^ *+' conftest.er1 >conftest.err
10944 cat conftest.err >&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } >/dev/null; then
10947 if test -s conftest.err; then
10948 ac_cpp_err=$ac_cxx_preproc_warn_flag
10949 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10956 if test -z "$ac_cpp_err"; then
10959 echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10962 # Broken: fails on valid input.
10965 rm -f conftest.err conftest.$ac_ext
10967 # OK, works on sane cases. Now check whether non-existent headers
10968 # can be detected and how.
10969 cat >conftest.$ac_ext <<_ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10975 #include <ac_nonexistent.h>
10977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10980 grep -v '^ *+' conftest.er1 >conftest.err
10982 cat conftest.err >&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); } >/dev/null; then
10985 if test -s conftest.err; then
10986 ac_cpp_err=$ac_cxx_preproc_warn_flag
10987 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10994 if test -z "$ac_cpp_err"; then
10995 # Broken: success on invalid input.
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11001 # Passes both tests.
11005 rm -f conftest.err conftest.$ac_ext
11008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11009 rm -f conftest.err conftest.$ac_ext
11010 if $ac_preproc_ok; then
11015 ac_cv_prog_CXXCPP=$CXXCPP
11018 CXXCPP=$ac_cv_prog_CXXCPP
11020 ac_cv_prog_CXXCPP=$CXXCPP
11022 echo "$as_me:$LINENO: result: $CXXCPP" >&5
11023 echo "${ECHO_T}$CXXCPP" >&6
11024 ac_preproc_ok=false
11025 for ac_cxx_preproc_warn_flag in '' yes
11027 # Use a header file that comes with gcc, so configuring glibc
11028 # with a fresh cross-compiler works.
11029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11030 # <limits.h> exists even on freestanding compilers.
11031 # On the NeXT, cc -E runs the code through the compiler's parser,
11032 # not just through cpp. "Syntax error" is here to catch this case.
11033 cat >conftest.$ac_ext <<_ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11040 # include <limits.h>
11042 # include <assert.h>
11046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11049 grep -v '^ *+' conftest.er1 >conftest.err
11051 cat conftest.err >&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } >/dev/null; then
11054 if test -s conftest.err; then
11055 ac_cpp_err=$ac_cxx_preproc_warn_flag
11056 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11063 if test -z "$ac_cpp_err"; then
11066 echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11069 # Broken: fails on valid input.
11072 rm -f conftest.err conftest.$ac_ext
11074 # OK, works on sane cases. Now check whether non-existent headers
11075 # can be detected and how.
11076 cat >conftest.$ac_ext <<_ACEOF
11079 cat confdefs.h >>conftest.$ac_ext
11080 cat >>conftest.$ac_ext <<_ACEOF
11081 /* end confdefs.h. */
11082 #include <ac_nonexistent.h>
11084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11087 grep -v '^ *+' conftest.er1 >conftest.err
11089 cat conftest.err >&5
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); } >/dev/null; then
11092 if test -s conftest.err; then
11093 ac_cpp_err=$ac_cxx_preproc_warn_flag
11094 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11101 if test -z "$ac_cpp_err"; then
11102 # Broken: success on invalid input.
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11108 # Passes both tests.
11112 rm -f conftest.err conftest.$ac_ext
11115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11116 rm -f conftest.err conftest.$ac_ext
11117 if $ac_preproc_ok; then
11120 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11121 See \`config.log' for more details." >&5
11122 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11123 See \`config.log' for more details." >&2;}
11124 { (exit 1); exit 1; }; }
11128 ac_cpp='$CXXCPP $CPPFLAGS'
11129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11137 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11138 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11139 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11140 if test -n "$ac_tool_prefix"; then
11141 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11145 echo "$as_me:$LINENO: checking for $ac_word" >&5
11146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11147 if test "${ac_cv_prog_F77+set}" = set; then
11148 echo $ECHO_N "(cached) $ECHO_C" >&6
11150 if test -n "$F77"; then
11151 ac_cv_prog_F77="$F77" # Let the user override the test.
11153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11154 for as_dir in $PATH
11157 test -z "$as_dir" && as_dir=.
11158 for ac_exec_ext in '' $ac_executable_extensions; do
11159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11160 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
11161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11169 F77=$ac_cv_prog_F77
11170 if test -n "$F77"; then
11171 echo "$as_me:$LINENO: result: $F77" >&5
11172 echo "${ECHO_T}$F77" >&6
11174 echo "$as_me:$LINENO: result: no" >&5
11175 echo "${ECHO_T}no" >&6
11178 test -n "$F77" && break
11181 if test -z "$F77"; then
11183 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11185 # Extract the first word of "$ac_prog", so it can be a program name with args.
11186 set dummy $ac_prog; ac_word=$2
11187 echo "$as_me:$LINENO: checking for $ac_word" >&5
11188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11189 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 if test -n "$ac_ct_F77"; then
11193 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11196 for as_dir in $PATH
11199 test -z "$as_dir" && as_dir=.
11200 for ac_exec_ext in '' $ac_executable_extensions; do
11201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11202 ac_cv_prog_ac_ct_F77="$ac_prog"
11203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11211 ac_ct_F77=$ac_cv_prog_ac_ct_F77
11212 if test -n "$ac_ct_F77"; then
11213 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11214 echo "${ECHO_T}$ac_ct_F77" >&6
11216 echo "$as_me:$LINENO: result: no" >&5
11217 echo "${ECHO_T}no" >&6
11220 test -n "$ac_ct_F77" && break
11227 # Provide some information about the compiler.
11228 echo "$as_me:11228:" \
11229 "checking for Fortran 77 compiler version" >&5
11230 ac_compiler=`set X $ac_compile; echo $2`
11231 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11232 (eval $ac_compiler --version </dev/null >&5) 2>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }
11236 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11237 (eval $ac_compiler -v </dev/null >&5) 2>&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }
11241 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11242 (eval $ac_compiler -V </dev/null >&5) 2>&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }
11248 # If we don't use `.F' as extension, the preprocessor is not run on the
11249 # input file. (Note that this only needs to work for GNU compilers.)
11250 ac_save_ext=$ac_ext
11252 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11253 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11254 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 cat >conftest.$ac_ext <<_ACEOF
11265 rm -f conftest.$ac_objext
11266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11267 (eval $ac_compile) 2>conftest.er1
11269 grep -v '^ *+' conftest.er1 >conftest.err
11271 cat conftest.err >&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } &&
11274 { ac_try='test -z "$ac_f77_werror_flag"
11275 || test ! -s conftest.err'
11276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277 (eval $ac_try) 2>&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; } &&
11281 { ac_try='test -s conftest.$ac_objext'
11282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; }; then
11287 ac_compiler_gnu=yes
11289 echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11295 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11298 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11299 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11300 ac_ext=$ac_save_ext
11301 ac_test_FFLAGS=${FFLAGS+set}
11302 ac_save_FFLAGS=$FFLAGS
11304 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11305 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11306 if test "${ac_cv_prog_f77_g+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11310 cat >conftest.$ac_ext <<_ACEOF
11315 rm -f conftest.$ac_objext
11316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11317 (eval $ac_compile) 2>conftest.er1
11319 grep -v '^ *+' conftest.er1 >conftest.err
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } &&
11324 { ac_try='test -z "$ac_f77_werror_flag"
11325 || test ! -s conftest.err'
11326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; } &&
11331 { ac_try='test -s conftest.$ac_objext'
11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333 (eval $ac_try) 2>&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); }; }; then
11337 ac_cv_prog_f77_g=yes
11339 echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11342 ac_cv_prog_f77_g=no
11344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11347 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11348 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11349 if test "$ac_test_FFLAGS" = set; then
11350 FFLAGS=$ac_save_FFLAGS
11351 elif test $ac_cv_prog_f77_g = yes; then
11352 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11358 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11365 G77=`test $ac_compiler_gnu = yes && echo yes`
11367 ac_cpp='$CPP $CPPFLAGS'
11368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11374 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11376 # find the maximum length of command line arguments
11377 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11378 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11379 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 # On DJGPP, this test can blow up pretty badly due to problems in libc
11388 # (any single argument exceeding 2000 bytes causes a buffer overrun
11389 # during glob expansion). Even if it were fixed, the result of this
11390 # check would be larger than it should be.
11391 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11395 # Under GNU Hurd, this test is not required because there is
11396 # no limit to the length of command line arguments.
11397 # Libtool will interpret -1 as no limit whatsoever
11398 lt_cv_sys_max_cmd_len=-1;
11402 # On Win9x/ME, this test blows up -- it succeeds, but takes
11403 # about 5 minutes as the teststring grows exponentially.
11404 # Worse, since 9x/ME are not pre-emptively multitasking,
11405 # you end up with a "frozen" computer, even though with patience
11406 # the test eventually succeeds (with a max line length of 256k).
11407 # Instead, let's just punt: use the minimum linelength reported by
11408 # all of the supported platforms: 8192 (on NT/2K/XP).
11409 lt_cv_sys_max_cmd_len=8192;
11413 # On AmigaOS with pdksh, this test takes hours, literally.
11414 # So we just punt and use a minimum line length of 8192.
11415 lt_cv_sys_max_cmd_len=8192;
11418 netbsd* | freebsd* | openbsd* | darwin* )
11419 # This has been around since 386BSD, at least. Likely further.
11420 if test -x /sbin/sysctl; then
11421 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11422 elif test -x /usr/sbin/sysctl; then
11423 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11425 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11427 # And add a safety zone
11428 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11432 # If test is not a shell built-in, we'll probably end up computing a
11433 # maximum length that is only half of the actual maximum length, but
11435 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11436 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11437 = "XX$teststring") >/dev/null 2>&1 &&
11438 new_result=`expr "X$teststring" : ".*" 2>&1` &&
11439 lt_cv_sys_max_cmd_len=$new_result &&
11440 test $i != 17 # 1/2 MB should be enough
11443 teststring=$teststring$teststring
11446 # Add a significant safety factor because C++ compilers can tack on massive
11447 # amounts of additional arguments before passing them to the linker.
11448 # It appears as though 1/2 is a usable value.
11449 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11455 if test -n $lt_cv_sys_max_cmd_len ; then
11456 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11457 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11459 echo "$as_me:$LINENO: result: none" >&5
11460 echo "${ECHO_T}none" >&6
11466 # Check for command to grab the raw symbol name followed by C symbol from nm.
11467 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11468 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11469 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 # These are sane defaults that work on at least a few old systems.
11474 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11476 # Character class describing NM global symbol codes.
11477 symcode='[BCDEGRST]'
11479 # Regexp to match symbols that can be accessed directly from C.
11480 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11482 # Transform the above into a raw symbol and a C symbol.
11483 symxfrm='\1 \2\3 \3'
11485 # Transform an extracted symbol line into a proper C declaration
11486 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11488 # Transform an extracted symbol line into symbol name and symbol address
11489 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'"
11491 # Define system-specific variables.
11496 cygwin* | mingw* | pw32*)
11497 symcode='[ABCDGISTW]'
11499 hpux*) # Its linker distinguishes data from code symbols
11500 if test "$host_cpu" = ia64; then
11501 symcode='[ABCDEGRST]'
11503 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11504 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'"
11507 if test "$host_cpu" = ia64; then
11508 symcode='[ABCDGIRSTW]'
11509 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11510 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'"
11513 irix* | nonstopux*)
11514 symcode='[BCDEGRST]'
11517 symcode='[BCDEGQRST]'
11527 # Handle CRLF in mingw tool chain
11531 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11535 # If we're using GNU nm, then use its standard symbol codes.
11536 case `$NM -V 2>&1` in
11537 *GNU* | *'with BFD'*)
11538 symcode='[ABCDGIRSTW]' ;;
11541 # Try without a prefix undercore, then with it.
11542 for ac_symprfx in "" "_"; do
11544 # Write the raw and C identifiers.
11545 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11547 # Check to see that the pipe works correctly.
11551 cat > conftest.$ac_ext <<EOF
11556 void nm_test_func(){}
11560 int main(){nm_test_var='a';nm_test_func();return(0);}
11563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11564 (eval $ac_compile) 2>&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; then
11568 # Now try to grab the symbols.
11570 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11571 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } && test -s "$nlist"; then
11575 # Try sorting and uniquifying the output.
11576 if sort "$nlist" | uniq > "$nlist"T; then
11577 mv -f "$nlist"T "$nlist"
11582 # Make sure that we snagged all the symbols we need.
11583 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11584 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11585 cat <<EOF > conftest.$ac_ext
11591 # Now generate the symbol file.
11592 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11594 cat <<EOF >> conftest.$ac_ext
11595 #if defined (__STDC__) && __STDC__
11596 # define lt_ptr_t void *
11598 # define lt_ptr_t char *
11602 /* The mapping between symbol names and symbols. */
11607 lt_preloaded_symbols[] =
11610 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11611 cat <<\EOF >> conftest.$ac_ext
11619 # Now try linking the two files.
11620 mv conftest.$ac_objext conftstm.$ac_objext
11621 lt_save_LIBS="$LIBS"
11622 lt_save_CFLAGS="$CFLAGS"
11623 LIBS="conftstm.$ac_objext"
11624 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11626 (eval $ac_link) 2>&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11632 LIBS="$lt_save_LIBS"
11633 CFLAGS="$lt_save_CFLAGS"
11635 echo "cannot find nm_test_func in $nlist" >&5
11638 echo "cannot find nm_test_var in $nlist" >&5
11641 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11644 echo "$progname: failed program was:" >&5
11645 cat conftest.$ac_ext >&5
11647 rm -f conftest* conftst*
11649 # Do not use the global_symbol_pipe unless it works.
11650 if test "$pipe_works" = yes; then
11653 lt_cv_sys_global_symbol_pipe=
11659 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11660 lt_cv_sys_global_symbol_to_cdecl=
11662 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11663 echo "$as_me:$LINENO: result: failed" >&5
11664 echo "${ECHO_T}failed" >&6
11666 echo "$as_me:$LINENO: result: ok" >&5
11667 echo "${ECHO_T}ok" >&6
11670 echo "$as_me:$LINENO: checking for objdir" >&5
11671 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11672 if test "${lt_cv_objdir+set}" = set; then
11673 echo $ECHO_N "(cached) $ECHO_C" >&6
11675 rm -f .libs 2>/dev/null
11676 mkdir .libs 2>/dev/null
11677 if test -d .libs; then
11680 # MS-DOS does not allow filenames that begin with a dot.
11683 rmdir .libs 2>/dev/null
11685 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11686 echo "${ECHO_T}$lt_cv_objdir" >&6
11687 objdir=$lt_cv_objdir
11695 # AIX sometimes has problems with the GCC collect2 program. For some
11696 # reason, if we set the COLLECT_NAMES environment variable, the problems
11697 # vanish in a puff of smoke.
11698 if test "X${COLLECT_NAMES+set}" != Xset; then
11700 export COLLECT_NAMES
11705 # Sed substitution that helps us do robust quoting. It backslashifies
11706 # metacharacters that are still active within double-quoted strings.
11707 Xsed='sed -e s/^X//'
11708 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11710 # Same as above, but do not quote variable references.
11711 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11713 # Sed substitution to delay expansion of an escaped shell variable in a
11714 # double_quote_subst'ed string.
11715 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11717 # Sed substitution to avoid accidental globbing in evaled expressions
11718 no_glob_subst='s/\*/\\\*/g'
11723 # Global variables:
11724 default_ofile=mklib
11725 can_build_shared=yes
11727 # All known linkers require a `.a' archive for static linking (except M$VC,
11728 # which needs '.lib').
11730 ltmain="$ac_aux_dir/ltmain.sh"
11731 ofile="$default_ofile"
11732 with_gnu_ld="$lt_cv_prog_gnu_ld"
11734 if test -n "$ac_tool_prefix"; then
11735 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11736 set dummy ${ac_tool_prefix}ar; ac_word=$2
11737 echo "$as_me:$LINENO: checking for $ac_word" >&5
11738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11739 if test "${ac_cv_prog_AR+set}" = set; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11742 if test -n "$AR"; then
11743 ac_cv_prog_AR="$AR" # Let the user override the test.
11745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746 for as_dir in $PATH
11749 test -z "$as_dir" && as_dir=.
11750 for ac_exec_ext in '' $ac_executable_extensions; do
11751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11752 ac_cv_prog_AR="${ac_tool_prefix}ar"
11753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11762 if test -n "$AR"; then
11763 echo "$as_me:$LINENO: result: $AR" >&5
11764 echo "${ECHO_T}$AR" >&6
11766 echo "$as_me:$LINENO: result: no" >&5
11767 echo "${ECHO_T}no" >&6
11771 if test -z "$ac_cv_prog_AR"; then
11773 # Extract the first word of "ar", so it can be a program name with args.
11774 set dummy ar; ac_word=$2
11775 echo "$as_me:$LINENO: checking for $ac_word" >&5
11776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11777 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11778 echo $ECHO_N "(cached) $ECHO_C" >&6
11780 if test -n "$ac_ct_AR"; then
11781 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784 for as_dir in $PATH
11787 test -z "$as_dir" && as_dir=.
11788 for ac_exec_ext in '' $ac_executable_extensions; do
11789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11790 ac_cv_prog_ac_ct_AR="ar"
11791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11797 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11800 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11801 if test -n "$ac_ct_AR"; then
11802 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11803 echo "${ECHO_T}$ac_ct_AR" >&6
11805 echo "$as_me:$LINENO: result: no" >&5
11806 echo "${ECHO_T}no" >&6
11811 AR="$ac_cv_prog_AR"
11814 if test -n "$ac_tool_prefix"; then
11815 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11816 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11817 echo "$as_me:$LINENO: checking for $ac_word" >&5
11818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11819 if test "${ac_cv_prog_RANLIB+set}" = set; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11822 if test -n "$RANLIB"; then
11823 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826 for as_dir in $PATH
11829 test -z "$as_dir" && as_dir=.
11830 for ac_exec_ext in '' $ac_executable_extensions; do
11831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11832 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11841 RANLIB=$ac_cv_prog_RANLIB
11842 if test -n "$RANLIB"; then
11843 echo "$as_me:$LINENO: result: $RANLIB" >&5
11844 echo "${ECHO_T}$RANLIB" >&6
11846 echo "$as_me:$LINENO: result: no" >&5
11847 echo "${ECHO_T}no" >&6
11851 if test -z "$ac_cv_prog_RANLIB"; then
11852 ac_ct_RANLIB=$RANLIB
11853 # Extract the first word of "ranlib", so it can be a program name with args.
11854 set dummy ranlib; ac_word=$2
11855 echo "$as_me:$LINENO: checking for $ac_word" >&5
11856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11857 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 if test -n "$ac_ct_RANLIB"; then
11861 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864 for as_dir in $PATH
11867 test -z "$as_dir" && as_dir=.
11868 for ac_exec_ext in '' $ac_executable_extensions; do
11869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11870 ac_cv_prog_ac_ct_RANLIB="ranlib"
11871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11877 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11880 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11881 if test -n "$ac_ct_RANLIB"; then
11882 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11883 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11885 echo "$as_me:$LINENO: result: no" >&5
11886 echo "${ECHO_T}no" >&6
11889 RANLIB=$ac_ct_RANLIB
11891 RANLIB="$ac_cv_prog_RANLIB"
11894 if test -n "$ac_tool_prefix"; then
11895 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11896 set dummy ${ac_tool_prefix}strip; ac_word=$2
11897 echo "$as_me:$LINENO: checking for $ac_word" >&5
11898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11899 if test "${ac_cv_prog_STRIP+set}" = set; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11902 if test -n "$STRIP"; then
11903 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11921 STRIP=$ac_cv_prog_STRIP
11922 if test -n "$STRIP"; then
11923 echo "$as_me:$LINENO: result: $STRIP" >&5
11924 echo "${ECHO_T}$STRIP" >&6
11926 echo "$as_me:$LINENO: result: no" >&5
11927 echo "${ECHO_T}no" >&6
11931 if test -z "$ac_cv_prog_STRIP"; then
11933 # Extract the first word of "strip", so it can be a program name with args.
11934 set dummy strip; ac_word=$2
11935 echo "$as_me:$LINENO: checking for $ac_word" >&5
11936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11937 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11938 echo $ECHO_N "(cached) $ECHO_C" >&6
11940 if test -n "$ac_ct_STRIP"; then
11941 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11944 for as_dir in $PATH
11947 test -z "$as_dir" && as_dir=.
11948 for ac_exec_ext in '' $ac_executable_extensions; do
11949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11950 ac_cv_prog_ac_ct_STRIP="strip"
11951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11957 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11960 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11961 if test -n "$ac_ct_STRIP"; then
11962 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11963 echo "${ECHO_T}$ac_ct_STRIP" >&6
11965 echo "$as_me:$LINENO: result: no" >&5
11966 echo "${ECHO_T}no" >&6
11971 STRIP="$ac_cv_prog_STRIP"
11976 old_CFLAGS="$CFLAGS"
11978 # Set sane defaults for various variables
11979 test -z "$AR" && AR=ar
11980 test -z "$AR_FLAGS" && AR_FLAGS=cru
11981 test -z "$AS" && AS=as
11982 test -z "$CC" && CC=cc
11983 test -z "$LTCC" && LTCC=$CC
11984 test -z "$DLLTOOL" && DLLTOOL=dlltool
11985 test -z "$LD" && LD=ld
11986 test -z "$LN_S" && LN_S="ln -s"
11987 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11988 test -z "$NM" && NM=nm
11989 test -z "$SED" && SED=sed
11990 test -z "$OBJDUMP" && OBJDUMP=objdump
11991 test -z "$RANLIB" && RANLIB=:
11992 test -z "$STRIP" && STRIP=:
11993 test -z "$ac_objext" && ac_objext=o
11995 # Determine commands to create old-style static archives.
11996 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11997 old_postinstall_cmds='chmod 644 $oldlib'
11998 old_postuninstall_cmds=
12000 if test -n "$RANLIB"; then
12003 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
12006 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
12009 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12012 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12014 # Only perform the check for file, if the check method requires it
12015 case $deplibs_check_method in
12017 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12018 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12019 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
12020 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12025 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12028 lt_save_MAGIC_CMD="$MAGIC_CMD"
12029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12030 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12031 for ac_dir in $ac_dummy; do
12033 test -z "$ac_dir" && ac_dir=.
12034 if test -f $ac_dir/${ac_tool_prefix}file; then
12035 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12036 if test -n "$file_magic_test_file"; then
12037 case $deplibs_check_method in
12039 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12040 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12041 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12042 $EGREP "$file_magic_regex" > /dev/null; then
12047 *** Warning: the command libtool uses to detect shared libraries,
12048 *** $file_magic_cmd, produces output that libtool cannot recognize.
12049 *** The result is that libtool may fail to recognize shared libraries
12050 *** as such. This will affect the creation of libtool libraries that
12051 *** depend on shared libraries, but programs linked with such libtool
12052 *** libraries will work regardless of this problem. Nevertheless, you
12053 *** may want to report the problem to your system manager and/or to
12054 *** bug-libtool@gnu.org
12064 MAGIC_CMD="$lt_save_MAGIC_CMD"
12069 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12070 if test -n "$MAGIC_CMD"; then
12071 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12072 echo "${ECHO_T}$MAGIC_CMD" >&6
12074 echo "$as_me:$LINENO: result: no" >&5
12075 echo "${ECHO_T}no" >&6
12078 if test -z "$lt_cv_path_MAGIC_CMD"; then
12079 if test -n "$ac_tool_prefix"; then
12080 echo "$as_me:$LINENO: checking for file" >&5
12081 echo $ECHO_N "checking for file... $ECHO_C" >&6
12082 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12090 lt_save_MAGIC_CMD="$MAGIC_CMD"
12091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12092 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12093 for ac_dir in $ac_dummy; do
12095 test -z "$ac_dir" && ac_dir=.
12096 if test -f $ac_dir/file; then
12097 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12098 if test -n "$file_magic_test_file"; then
12099 case $deplibs_check_method in
12101 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12102 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12103 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12104 $EGREP "$file_magic_regex" > /dev/null; then
12109 *** Warning: the command libtool uses to detect shared libraries,
12110 *** $file_magic_cmd, produces output that libtool cannot recognize.
12111 *** The result is that libtool may fail to recognize shared libraries
12112 *** as such. This will affect the creation of libtool libraries that
12113 *** depend on shared libraries, but programs linked with such libtool
12114 *** libraries will work regardless of this problem. Nevertheless, you
12115 *** may want to report the problem to your system manager and/or to
12116 *** bug-libtool@gnu.org
12126 MAGIC_CMD="$lt_save_MAGIC_CMD"
12131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12132 if test -n "$MAGIC_CMD"; then
12133 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12134 echo "${ECHO_T}$MAGIC_CMD" >&6
12136 echo "$as_me:$LINENO: result: no" >&5
12137 echo "${ECHO_T}no" >&6
12150 enable_win32_dll=no
12152 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
12153 if test "${enable_libtool_lock+set}" = set; then
12154 enableval="$enable_libtool_lock"
12157 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12160 # Check whether --with-pic or --without-pic was given.
12161 if test "${with_pic+set}" = set; then
12162 withval="$with_pic"
12163 pic_mode="$withval"
12167 test -z "$pic_mode" && pic_mode=default
12169 # Use C for the default configuration in the libtool script
12173 ac_cpp='$CPP $CPPFLAGS'
12174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12179 # Source file extension for C test sources.
12182 # Object file extension for compiled C test sources.
12186 # Code to be used in simple compile tests
12187 lt_simple_compile_test_code="int some_variable = 0;\n"
12189 # Code to be used in simple link tests
12190 lt_simple_link_test_code='int main(){return(0);}\n'
12193 # If no C compiler was specified, use CC.
12196 # Allow CC to be a program name with arguments.
12201 # Check for any special shared library compilation flags.
12204 if test "$GCC" = no; then
12207 lt_prog_cc_shlib='-belf'
12211 if test -n "$lt_prog_cc_shlib"; then
12212 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12213 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12214 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
12216 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12217 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12218 lt_cv_prog_cc_can_build_shared=no
12224 # Check to make sure the static flag actually works.
12226 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12227 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12228 if test "${lt_prog_compiler_static_works+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12231 lt_prog_compiler_static_works=no
12232 save_LDFLAGS="$LDFLAGS"
12233 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12234 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12235 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12236 # The compiler can only warn and ignore the option if not recognized
12237 # So say no if there are warnings
12238 if test -s conftest.err; then
12239 # Append any errors to the config.log.
12240 cat conftest.err 1>&5
12242 lt_prog_compiler_static_works=yes
12246 LDFLAGS="$save_LDFLAGS"
12249 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12250 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12252 if test x"$lt_prog_compiler_static_works" = xyes; then
12255 lt_prog_compiler_static=
12261 lt_prog_compiler_no_builtin_flag=
12263 if test "$GCC" = yes; then
12264 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12267 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12268 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12269 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12272 lt_cv_prog_compiler_rtti_exceptions=no
12273 ac_outfile=conftest.$ac_objext
12274 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12275 lt_compiler_flag="-fno-rtti -fno-exceptions"
12276 # Insert the option either (1) after the last *FLAGS variable, or
12277 # (2) before a word containing "conftest.", or (3) at the end.
12278 # Note that $ac_compile itself does not contain backslashes and begins
12279 # with a dollar sign (not a hyphen), so the echo should work correctly.
12280 # The option is referenced via a variable to avoid confusing sed.
12281 lt_compile=`echo "$ac_compile" | $SED \
12282 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12284 -e 's:$: $lt_compiler_flag:'`
12285 (eval echo "\"\$as_me:12285: $lt_compile\"" >&5)
12286 (eval "$lt_compile" 2>conftest.err)
12288 cat conftest.err >&5
12289 echo "$as_me:12289: \$? = $ac_status" >&5
12290 if (exit $ac_status) && test -s "$ac_outfile"; then
12291 # The compiler can only warn and ignore the option if not recognized
12292 # So say no if there are warnings
12293 if test ! -s conftest.err; then
12294 lt_cv_prog_compiler_rtti_exceptions=yes
12300 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12301 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12303 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12304 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12311 lt_prog_compiler_wl=
12312 lt_prog_compiler_pic=
12313 lt_prog_compiler_static=
12315 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12316 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12318 if test "$GCC" = yes; then
12319 lt_prog_compiler_wl='-Wl,'
12320 lt_prog_compiler_static='-static'
12324 # All AIX code is PIC.
12325 if test "$host_cpu" = ia64; then
12326 # AIX 5 now supports IA64 processor
12327 lt_prog_compiler_static='-Bstatic'
12332 # FIXME: we need at least 68020 code to build shared libraries, but
12333 # adding the `-m68020' flag to GCC prevents building anything better,
12335 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12338 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12339 # PIC is the default for these OSes.
12342 mingw* | pw32* | os2*)
12343 # This hack is so that the source file can tell whether it is being
12344 # built for inclusion in a dll (and should export symbols for example).
12345 lt_prog_compiler_pic='-DDLL_EXPORT'
12348 darwin* | rhapsody*)
12349 # PIC is the default on this platform
12350 # Common symbols not allowed in MH_DYLIB files
12351 lt_prog_compiler_pic='-fno-common'
12355 # Just because we use GCC doesn't mean we suddenly get shared libraries
12356 # on systems that don't support them.
12357 lt_prog_compiler_can_build_shared=no
12362 if test -d /usr/nec; then
12363 lt_prog_compiler_pic=-Kconform_pic
12368 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12369 # not for PA HP-UX.
12370 case "$host_cpu" in
12375 lt_prog_compiler_pic='-fPIC'
12381 lt_prog_compiler_pic='-fPIC'
12385 # PORTME Check for flag to pass linker flags through the system compiler.
12388 lt_prog_compiler_wl='-Wl,'
12389 if test "$host_cpu" = ia64; then
12390 # AIX 5 now supports IA64 processor
12391 lt_prog_compiler_static='-Bstatic'
12393 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12397 # PIC is the default on this platform
12398 # Common symbols not allowed in MH_DYLIB files
12399 case "$cc_basename" in
12401 lt_prog_compiler_pic='-qnocommon'
12402 lt_prog_compiler_wl='-Wl,'
12407 mingw* | pw32* | os2*)
12408 # This hack is so that the source file can tell whether it is being
12409 # built for inclusion in a dll (and should export symbols for example).
12410 lt_prog_compiler_pic='-DDLL_EXPORT'
12413 hpux9* | hpux10* | hpux11*)
12414 lt_prog_compiler_wl='-Wl,'
12415 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12416 # not for PA HP-UX.
12417 case "$host_cpu" in
12422 lt_prog_compiler_pic='+Z'
12425 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12426 lt_prog_compiler_static='${wl}-a ${wl}archive'
12429 irix5* | irix6* | nonstopux*)
12430 lt_prog_compiler_wl='-Wl,'
12431 # PIC (with -KPIC) is the default.
12432 lt_prog_compiler_static='-non_shared'
12436 lt_prog_compiler_pic='-KPIC'
12437 lt_prog_compiler_static='-Bstatic'
12443 lt_prog_compiler_wl='-Wl,'
12444 lt_prog_compiler_pic='-KPIC'
12445 lt_prog_compiler_static='-static'
12448 lt_prog_compiler_wl='-Wl,'
12449 # All Alpha code is PIC.
12450 lt_prog_compiler_static='-non_shared'
12455 osf3* | osf4* | osf5*)
12456 lt_prog_compiler_wl='-Wl,'
12457 # All OSF/1 code is PIC.
12458 lt_prog_compiler_static='-non_shared'
12462 lt_prog_compiler_pic='-Kpic'
12463 lt_prog_compiler_static='-dn'
12467 lt_prog_compiler_wl='-Wl,'
12468 lt_prog_compiler_pic='-KPIC'
12469 lt_prog_compiler_static='-Bstatic'
12473 lt_prog_compiler_wl='-Qoption ld '
12474 lt_prog_compiler_pic='-PIC'
12475 lt_prog_compiler_static='-Bstatic'
12478 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12479 lt_prog_compiler_wl='-Wl,'
12480 lt_prog_compiler_pic='-KPIC'
12481 lt_prog_compiler_static='-Bstatic'
12485 if test -d /usr/nec ;then
12486 lt_prog_compiler_pic='-Kconform_pic'
12487 lt_prog_compiler_static='-Bstatic'
12492 lt_prog_compiler_pic='-pic'
12493 lt_prog_compiler_static='-Bstatic'
12497 lt_prog_compiler_can_build_shared=no
12502 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12503 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12506 # Check to make sure the PIC flag actually works.
12508 if test -n "$lt_prog_compiler_pic"; then
12510 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12511 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12512 if test "${lt_prog_compiler_pic_works+set}" = set; then
12513 echo $ECHO_N "(cached) $ECHO_C" >&6
12515 lt_prog_compiler_pic_works=no
12516 ac_outfile=conftest.$ac_objext
12517 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12518 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12519 # Insert the option either (1) after the last *FLAGS variable, or
12520 # (2) before a word containing "conftest.", or (3) at the end.
12521 # Note that $ac_compile itself does not contain backslashes and begins
12522 # with a dollar sign (not a hyphen), so the echo should work correctly.
12523 # The option is referenced via a variable to avoid confusing sed.
12524 lt_compile=`echo "$ac_compile" | $SED \
12525 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12527 -e 's:$: $lt_compiler_flag:'`
12528 (eval echo "\"\$as_me:12528: $lt_compile\"" >&5)
12529 (eval "$lt_compile" 2>conftest.err)
12531 cat conftest.err >&5
12532 echo "$as_me:12532: \$? = $ac_status" >&5
12533 if (exit $ac_status) && test -s "$ac_outfile"; then
12534 # The compiler can only warn and ignore the option if not recognized
12535 # So say no if there are warnings
12536 if test ! -s conftest.err; then
12537 lt_prog_compiler_pic_works=yes
12543 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12544 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12546 if test x"$lt_prog_compiler_pic_works" = xyes; then
12547 case $lt_prog_compiler_pic in
12549 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12552 lt_prog_compiler_pic=
12553 lt_prog_compiler_can_build_shared=no
12558 # For platforms which do not support PIC, -DPIC is meaningless:
12560 lt_prog_compiler_pic=
12563 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12567 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12568 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12569 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12572 lt_cv_prog_compiler_c_o=no
12573 $rm -r conftest 2>/dev/null
12577 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12579 lt_compiler_flag="-o out/conftest2.$ac_objext"
12580 # Insert the option either (1) after the last *FLAGS variable, or
12581 # (2) before a word containing "conftest.", or (3) at the end.
12582 # Note that $ac_compile itself does not contain backslashes and begins
12583 # with a dollar sign (not a hyphen), so the echo should work correctly.
12584 lt_compile=`echo "$ac_compile" | $SED \
12585 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12586 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12587 -e 's:$: $lt_compiler_flag:'`
12588 (eval echo "\"\$as_me:12588: $lt_compile\"" >&5)
12589 (eval "$lt_compile" 2>out/conftest.err)
12591 cat out/conftest.err >&5
12592 echo "$as_me:12592: \$? = $ac_status" >&5
12593 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12595 # The compiler can only warn and ignore the option if not recognized
12596 # So say no if there are warnings
12597 if test ! -s out/conftest.err; then
12598 lt_cv_prog_compiler_c_o=yes
12603 # SGI C++ compiler will create directory out/ii_files/ for
12604 # template instantiation
12605 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12606 $rm out/* && rmdir out
12612 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12613 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12616 hard_links="nottested"
12617 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12618 # do not overwrite the value of need_locks provided by the user
12619 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12620 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12623 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12625 ln conftest.a conftest.b 2>&5 || hard_links=no
12626 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12627 echo "$as_me:$LINENO: result: $hard_links" >&5
12628 echo "${ECHO_T}$hard_links" >&6
12629 if test "$hard_links" = no; then
12630 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12631 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12638 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12639 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12642 allow_undefined_flag=
12643 enable_shared_with_static_runtimes=no
12645 archive_expsym_cmds=
12646 old_archive_From_new_cmds=
12647 old_archive_from_expsyms_cmds=
12648 export_dynamic_flag_spec=
12649 whole_archive_flag_spec=
12650 thread_safe_flag_spec=
12651 hardcode_libdir_flag_spec=
12652 hardcode_libdir_flag_spec_ld=
12653 hardcode_libdir_separator=
12655 hardcode_minus_L=no
12656 hardcode_shlibpath_var=unsupported
12657 link_all_deplibs=unknown
12658 hardcode_automatic=no
12660 module_expsym_cmds=
12661 always_export_symbols=no
12662 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12663 # include_expsyms should be a list of space-separated symbols to be *always*
12664 # included in the symbol list
12666 # exclude_expsyms can be an extended regexp of symbols to exclude
12667 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12668 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12669 # as well as any symbol that contains `d'.
12670 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12671 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12672 # platforms (ab)use it in PIC code, but their linkers get confused if
12673 # the symbol is explicitly referenced. Since portable code cannot
12674 # rely on this symbol name, it's probably fine to never include it in
12675 # preloaded symbol tables.
12676 extract_expsyms_cmds=
12679 cygwin* | mingw* | pw32*)
12680 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12681 # When not using gcc, we currently assume that we are using
12682 # Microsoft Visual C++.
12683 if test "$GCC" != yes; then
12693 if test "$with_gnu_ld" = yes; then
12694 # If archive_cmds runs LD, not CC, wlarc should be empty
12697 # See if GNU ld supports shared libraries.
12699 aix3* | aix4* | aix5*)
12700 # On AIX/PPC, the GNU linker is very broken
12701 if test "$host_cpu" != ia64; then
12705 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12706 *** to be unable to reliably create shared libraries on AIX.
12707 *** Therefore, libtool is disabling shared libraries support. If you
12708 *** really care for shared libraries, you may want to modify your PATH
12709 *** so that a non-GNU linker is found, and then restart.
12716 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)'
12717 hardcode_libdir_flag_spec='-L$libdir'
12718 hardcode_minus_L=yes
12720 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12721 # that the semantics of dynamic libraries on AmigaOS, at least up
12722 # to version 4, is to share data among multiple programs linked
12723 # with the same dynamic library. Since this doesn't match the
12724 # behavior of shared libraries on other platforms, we can't use
12730 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12731 allow_undefined_flag=unsupported
12732 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12733 # support --undefined. This deserves some investigation. FIXME
12734 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12740 cygwin* | mingw* | pw32*)
12741 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12742 # as there is no search path for DLLs.
12743 hardcode_libdir_flag_spec='-L$libdir'
12744 allow_undefined_flag=unsupported
12745 always_export_symbols=no
12746 enable_shared_with_static_runtimes=yes
12747 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12749 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12751 # If the export-symbols file already is a .def file (1st line
12752 # is EXPORTS), use it as is; otherwise, prepend...
12753 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12754 cp $export_symbols $output_objdir/$soname.def;
12756 echo EXPORTS > $output_objdir/$soname.def;
12757 cat $export_symbols >> $output_objdir/$soname.def;
12759 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12766 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12767 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12771 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12776 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12780 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12781 *** create shared libraries on Solaris systems. Therefore, libtool
12782 *** is disabling shared libraries support. We urge you to upgrade GNU
12783 *** binutils to release 2.9.1 or newer. Another option is to modify
12784 *** your PATH or compiler configuration so that the native linker is
12785 *** used, and then restart.
12788 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12790 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12797 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12799 hardcode_direct=yes
12800 hardcode_shlibpath_var=no
12804 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12805 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12806 archive_cmds="$tmp_archive_cmds"
12807 supports_anon_versioning=no
12808 case `$LD -v 2>/dev/null` in
12809 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12810 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12811 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12812 *\ 2.11.*) ;; # other 2.11 versions
12813 *) supports_anon_versioning=yes ;;
12815 if test $supports_anon_versioning = yes; then
12816 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12817 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12818 $echo "local: *; };" >> $output_objdir/$libname.ver~
12819 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12821 archive_expsym_cmds="$tmp_archive_cmds"
12829 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12831 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12838 if test "$ld_shlibs" = yes; then
12839 runpath_var=LD_RUN_PATH
12840 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12841 export_dynamic_flag_spec='${wl}--export-dynamic'
12842 # ancient GNU ld didn't support --whole-archive et. al.
12843 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12844 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12846 whole_archive_flag_spec=
12850 # PORTME fill in a description of your system's linker (not GNU ld)
12853 allow_undefined_flag=unsupported
12854 always_export_symbols=yes
12855 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'
12856 # Note: this linker hardcodes the directories in LIBPATH if there
12857 # are no directories specified by -L.
12858 hardcode_minus_L=yes
12859 if test "$GCC" = yes && test -z "$link_static_flag"; then
12860 # Neither direct hardcoding nor static linking is supported with a
12862 hardcode_direct=unsupported
12867 if test "$host_cpu" = ia64; then
12868 # On IA64, the linker does run time linking by default, so we don't
12869 # have to do anything special.
12870 aix_use_runtimelinking=no
12871 exp_sym_flag='-Bexport'
12874 # If we're using GNU nm, then we don't want the "-C" option.
12875 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12876 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12877 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'
12879 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'
12881 aix_use_runtimelinking=no
12883 # Test if we are trying to use run time linking or normal
12884 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12885 # need to do runtime linking.
12886 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12887 for ld_flag in $LDFLAGS; do
12888 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12889 aix_use_runtimelinking=yes
12895 exp_sym_flag='-bexport'
12896 no_entry_flag='-bnoentry'
12899 # When large executables or shared objects are built, AIX ld can
12900 # have problems creating the table of contents. If linking a library
12901 # or program results in "error TOC overflow" add -mminimal-toc to
12902 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12903 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12906 hardcode_direct=yes
12907 hardcode_libdir_separator=':'
12908 link_all_deplibs=yes
12910 if test "$GCC" = yes; then
12911 case $host_os in aix4.012|aix4.012.*)
12912 # We only want to do this on AIX 4.2 and lower, the check
12913 # below for broken collect2 doesn't work under 4.3+
12914 collect2name=`${CC} -print-prog-name=collect2`
12915 if test -f "$collect2name" && \
12916 strings "$collect2name" | grep resolve_lib_name >/dev/null
12918 # We have reworked collect2
12919 hardcode_direct=yes
12921 # We have old collect2
12922 hardcode_direct=unsupported
12923 # It fails to find uninstalled libraries when the uninstalled
12924 # path is not listed in the libpath. Setting hardcode_minus_L
12925 # to unsupported forces relinking
12926 hardcode_minus_L=yes
12927 hardcode_libdir_flag_spec='-L$libdir'
12928 hardcode_libdir_separator=
12931 shared_flag='-shared'
12934 if test "$host_cpu" = ia64; then
12935 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12936 # chokes on -Wl,-G. The following line is correct:
12939 if test "$aix_use_runtimelinking" = yes; then
12940 shared_flag='${wl}-G'
12942 shared_flag='${wl}-bM:SRE'
12947 # It seems that -bexpall does not export symbols beginning with
12948 # underscore (_), so it is better to generate a list of symbols to export.
12949 always_export_symbols=yes
12950 if test "$aix_use_runtimelinking" = yes; then
12951 # Warning - without using the other runtime loading flags (-brtl),
12952 # -berok will link without error, but may produce a broken library.
12953 allow_undefined_flag='-berok'
12954 # Determine the default libpath from the value encoded in an empty executable.
12955 cat >conftest.$ac_ext <<_ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h. */
12970 rm -f conftest.$ac_objext conftest$ac_exeext
12971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12972 (eval $ac_link) 2>conftest.er1
12974 grep -v '^ *+' conftest.er1 >conftest.err
12976 cat conftest.err >&5
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); } &&
12979 { ac_try='test -z "$ac_c_werror_flag"
12980 || test ! -s conftest.err'
12981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982 (eval $ac_try) 2>&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; } &&
12986 { ac_try='test -s conftest$ac_exeext'
12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; }; then
12993 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12995 # Check for a 64-bit object if we didn't find anything.
12996 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; }
12999 echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13003 rm -f conftest.err conftest.$ac_objext \
13004 conftest$ac_exeext conftest.$ac_ext
13005 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13007 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13008 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"
13010 if test "$host_cpu" = ia64; then
13011 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13012 allow_undefined_flag="-z nodefs"
13013 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"
13015 # Determine the default libpath from the value encoded in an empty executable.
13016 cat >conftest.$ac_ext <<_ACEOF
13019 cat confdefs.h >>conftest.$ac_ext
13020 cat >>conftest.$ac_ext <<_ACEOF
13021 /* end confdefs.h. */
13031 rm -f conftest.$ac_objext conftest$ac_exeext
13032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13033 (eval $ac_link) 2>conftest.er1
13035 grep -v '^ *+' conftest.er1 >conftest.err
13037 cat conftest.err >&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); } &&
13040 { ac_try='test -z "$ac_c_werror_flag"
13041 || test ! -s conftest.err'
13042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043 (eval $ac_try) 2>&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; } &&
13047 { ac_try='test -s conftest$ac_exeext'
13048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049 (eval $ac_try) 2>&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
13054 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13056 # Check for a 64-bit object if we didn't find anything.
13057 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; }
13060 echo "$as_me: failed program was:" >&5
13061 sed 's/^/| /' conftest.$ac_ext >&5
13064 rm -f conftest.err conftest.$ac_objext \
13065 conftest$ac_exeext conftest.$ac_ext
13066 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13068 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13069 # Warning - without using the other run time loading flags,
13070 # -berok will link without error, but may produce a broken library.
13071 no_undefined_flag=' ${wl}-bernotok'
13072 allow_undefined_flag=' ${wl}-berok'
13073 # -bexpall does not export symbols beginning with underscore (_)
13074 always_export_symbols=yes
13075 # Exported symbols can be pulled into shared objects from archives
13076 whole_archive_flag_spec=' '
13077 archive_cmds_need_lc=yes
13078 # This is similar to how AIX traditionally builds it's shared libraries.
13079 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'
13085 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)'
13086 hardcode_libdir_flag_spec='-L$libdir'
13087 hardcode_minus_L=yes
13088 # see comment about different semantics on the GNU ld section
13093 export_dynamic_flag_spec=-rdynamic
13096 cygwin* | mingw* | pw32*)
13097 # When not using gcc, we currently assume that we are using
13098 # Microsoft Visual C++.
13099 # hardcode_libdir_flag_spec is actually meaningless, as there is
13100 # no search path for DLLs.
13101 hardcode_libdir_flag_spec=' '
13102 allow_undefined_flag=unsupported
13103 # Tell ltmain to make .lib files, not .a files.
13105 # Tell ltmain to make .dll files, not .so files.
13107 # FIXME: Setting linknames here is a bad hack.
13108 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13109 # The linker will automatically build a .lib file if we build a DLL.
13110 old_archive_From_new_cmds='true'
13111 # FIXME: Should let the user specify the lib program.
13112 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
13113 fix_srcfile_path='`cygpath -w "$srcfile"`'
13114 enable_shared_with_static_runtimes=yes
13117 darwin* | rhapsody*)
13119 rhapsody* | darwin1.[012])
13120 allow_undefined_flag='${wl}-undefined ${wl}suppress'
13123 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13124 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13126 case ${MACOSX_DEPLOYMENT_TARGET} in
13128 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13131 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
13137 archive_cmds_need_lc=no
13139 hardcode_automatic=yes
13140 hardcode_shlibpath_var=unsupported
13141 whole_archive_flag_spec=''
13142 link_all_deplibs=yes
13143 if test "$GCC" = yes ; then
13144 output_verbose_link_cmd='echo'
13145 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13146 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13147 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13148 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}'
13149 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}'
13151 case "$cc_basename" in
13153 output_verbose_link_cmd='echo'
13154 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13155 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13156 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13157 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}'
13158 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}'
13168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13169 hardcode_libdir_flag_spec='-L$libdir'
13170 hardcode_shlibpath_var=no
13177 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13178 # support. Future versions do this automatically, but an explicit c++rt0.o
13179 # does not break anything, and helps significantly (at the cost of a little
13182 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13183 hardcode_libdir_flag_spec='-R$libdir'
13184 hardcode_direct=yes
13185 hardcode_shlibpath_var=no
13188 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13190 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13191 hardcode_direct=yes
13192 hardcode_minus_L=yes
13193 hardcode_shlibpath_var=no
13196 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13197 freebsd* | kfreebsd*-gnu)
13198 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13199 hardcode_libdir_flag_spec='-R$libdir'
13200 hardcode_direct=yes
13201 hardcode_shlibpath_var=no
13205 if test "$GCC" = yes; then
13206 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'
13208 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'
13210 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13211 hardcode_libdir_separator=:
13212 hardcode_direct=yes
13214 # hardcode_minus_L: Not really in the search PATH,
13215 # but as the default location of the library.
13216 hardcode_minus_L=yes
13217 export_dynamic_flag_spec='${wl}-E'
13221 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13222 case "$host_cpu" in
13224 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13227 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13231 case "$host_cpu" in
13233 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13236 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13240 if test "$with_gnu_ld" = no; then
13241 case "$host_cpu" in
13243 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13244 hardcode_libdir_flag_spec_ld='+b $libdir'
13245 hardcode_libdir_separator=:
13247 hardcode_shlibpath_var=no
13250 hardcode_libdir_flag_spec='-L$libdir'
13252 hardcode_shlibpath_var=no
13254 # hardcode_minus_L: Not really in the search PATH,
13255 # but as the default location of the library.
13256 hardcode_minus_L=yes
13259 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13260 hardcode_libdir_separator=:
13261 hardcode_direct=yes
13262 export_dynamic_flag_spec='${wl}-E'
13264 # hardcode_minus_L: Not really in the search PATH,
13265 # but as the default location of the library.
13266 hardcode_minus_L=yes
13272 irix5* | irix6* | nonstopux*)
13273 if test "$GCC" = yes; then
13274 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'
13276 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'
13277 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13279 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13280 hardcode_libdir_separator=:
13281 link_all_deplibs=yes
13285 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13286 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13288 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13290 hardcode_libdir_flag_spec='-R$libdir'
13291 hardcode_direct=yes
13292 hardcode_shlibpath_var=no
13296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13297 hardcode_direct=yes
13298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13299 hardcode_libdir_separator=:
13300 hardcode_shlibpath_var=no
13304 hardcode_direct=yes
13305 hardcode_shlibpath_var=no
13306 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13307 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13308 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13309 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13310 export_dynamic_flag_spec='${wl}-E'
13313 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13314 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13315 hardcode_libdir_flag_spec='-R$libdir'
13318 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13319 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13326 hardcode_libdir_flag_spec='-L$libdir'
13327 hardcode_minus_L=yes
13328 allow_undefined_flag=unsupported
13329 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'
13330 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13334 if test "$GCC" = yes; then
13335 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13336 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'
13338 allow_undefined_flag=' -expect_unresolved \*'
13339 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'
13341 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13342 hardcode_libdir_separator=:
13345 osf4* | osf5*) # as osf3* with the addition of -msym flag
13346 if test "$GCC" = yes; then
13347 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13348 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'
13349 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13351 allow_undefined_flag=' -expect_unresolved \*'
13352 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'
13353 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13354 $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'
13356 # Both c and cxx compiler support -rpath directly
13357 hardcode_libdir_flag_spec='-rpath $libdir'
13359 hardcode_libdir_separator=:
13363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13364 hardcode_shlibpath_var=no
13365 export_dynamic_flag_spec='${wl}-Bexport'
13366 runpath_var=LD_RUN_PATH
13367 hardcode_runpath_var=yes
13371 no_undefined_flag=' -z text'
13372 if test "$GCC" = yes; then
13373 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13374 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13375 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13377 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13378 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13379 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13381 hardcode_libdir_flag_spec='-R$libdir'
13382 hardcode_shlibpath_var=no
13384 solaris2.[0-5] | solaris2.[0-5].*) ;;
13385 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13386 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13388 link_all_deplibs=yes
13392 if test "x$host_vendor" = xsequent; then
13393 # Use $CC to link under sequent, because it throws in some extra .o
13394 # files that make .init and .fini sections work.
13395 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13397 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13399 hardcode_libdir_flag_spec='-L$libdir'
13400 hardcode_direct=yes
13401 hardcode_minus_L=yes
13402 hardcode_shlibpath_var=no
13406 case $host_vendor in
13408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13409 hardcode_direct=yes # is this really true???
13412 ## LD is ld it makes a PLAMLIB
13413 ## CC just makes a GrossModule.
13414 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13415 reload_cmds='$CC -r -o $output$reload_objs'
13419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13420 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13423 runpath_var='LD_RUN_PATH'
13424 hardcode_shlibpath_var=no
13428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13429 hardcode_shlibpath_var=no
13430 export_dynamic_flag_spec='-Bexport'
13434 if test -d /usr/nec; then
13435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13436 hardcode_shlibpath_var=no
13437 runpath_var=LD_RUN_PATH
13438 hardcode_runpath_var=yes
13444 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13445 hardcode_direct=yes
13446 hardcode_minus_L=no
13447 hardcode_shlibpath_var=no
13448 hardcode_runpath_var=yes
13449 runpath_var=LD_RUN_PATH
13452 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13453 no_undefined_flag='${wl}-z ${wl}text'
13454 if test "$GCC" = yes; then
13455 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13457 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13459 runpath_var='LD_RUN_PATH'
13460 hardcode_shlibpath_var=no
13464 no_undefined_flag=' -z text'
13465 # $CC -shared without GNU ld will not create a library from C++
13466 # object files and a static libstdc++, better avoid it by now
13467 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13468 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13469 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13470 hardcode_libdir_flag_spec=
13471 hardcode_shlibpath_var=no
13472 runpath_var='LD_RUN_PATH'
13476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13477 hardcode_libdir_flag_spec='-L$libdir'
13478 hardcode_shlibpath_var=no
13487 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13488 echo "${ECHO_T}$ld_shlibs" >&6
13489 test "$ld_shlibs" = no && can_build_shared=no
13491 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13492 if test "$GCC" = yes; then
13493 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13497 # Do we need to explicitly link libc?
13499 case "x$archive_cmds_need_lc" in
13501 # Assume -lc should be added
13502 archive_cmds_need_lc=yes
13504 if test "$enable_shared" = yes && test "$GCC" = yes; then
13505 case $archive_cmds in
13507 # FIXME: we may have to deal with multi-command sequences.
13510 # Test whether the compiler implicitly links with -lc since on some
13511 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13512 # to ld, don't add -lc before -lgcc.
13513 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13514 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13516 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13519 (eval $ac_compile) 2>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } 2>conftest.err; then
13525 libobjs=conftest.$ac_objext
13527 wl=$lt_prog_compiler_wl
13533 lt_save_allow_undefined_flag=$allow_undefined_flag
13534 allow_undefined_flag=
13535 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13536 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }
13541 archive_cmds_need_lc=no
13543 archive_cmds_need_lc=yes
13545 allow_undefined_flag=$lt_save_allow_undefined_flag
13547 cat conftest.err 1>&5
13550 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13551 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13558 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13559 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13560 library_names_spec=
13561 libname_spec='lib$name'
13565 postuninstall_cmds=
13569 shlibpath_overrides_runpath=unknown
13571 dynamic_linker="$host_os ld.so"
13572 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13573 if test "$GCC" = yes; then
13574 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13575 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13576 # if the path contains ";" then we assume it to be the separator
13577 # otherwise default to the standard path separator (i.e. ":") - it is
13578 # assumed that no part of a normal pathname contains ";" but that should
13579 # okay in the real world where ";" in dirpaths is itself problematic.
13580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13585 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13587 need_lib_prefix=unknown
13588 hardcode_into_libs=no
13590 # when you set need_version to no, make sure it does not cause -set_version
13591 # flags to be left without arguments
13592 need_version=unknown
13597 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13598 shlibpath_var=LIBPATH
13600 # AIX 3 has no versioning support, so we append a major version to the name.
13601 soname_spec='${libname}${release}${shared_ext}$major'
13608 hardcode_into_libs=yes
13609 if test "$host_cpu" = ia64; then
13610 # AIX 5 supports IA64
13611 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13612 shlibpath_var=LD_LIBRARY_PATH
13614 # With GCC up to 2.95.x, collect2 would create an import file
13615 # for dependence libraries. The import file would start with
13616 # the line `#! .'. This would cause the generated library to
13617 # depend on `.', always an invalid library. This was fixed in
13618 # development snapshots of GCC prior to 3.0.
13620 aix4 | aix4.[01] | aix4.[01].*)
13621 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13623 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13626 can_build_shared=no
13630 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13631 # soname into executable. Probably we can add versioning support to
13632 # collect2, so additional links can be useful in future.
13633 if test "$aix_use_runtimelinking" = yes; then
13634 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13635 # instead of lib<name>.a to let people know that these are not
13636 # typical AIX shared libraries.
13637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13639 # We preserve .a as extension for shared libraries through AIX4.2
13640 # and later when we are not doing run time linking.
13641 library_names_spec='${libname}${release}.a $libname.a'
13642 soname_spec='${libname}${release}${shared_ext}$major'
13644 shlibpath_var=LIBPATH
13649 library_names_spec='$libname.ixlibrary $libname.a'
13650 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13651 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'
13655 library_names_spec='${libname}${shared_ext}'
13656 dynamic_linker="$host_os ld.so"
13657 shlibpath_var=LIBRARY_PATH
13663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13664 soname_spec='${libname}${release}${shared_ext}$major'
13665 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13666 shlibpath_var=LD_LIBRARY_PATH
13667 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13668 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13669 # the default ld.so.conf also contains /usr/contrib/lib and
13670 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13671 # libtool to hard-code these into programs
13674 cygwin* | mingw* | pw32*)
13675 version_type=windows
13680 case $GCC,$host_os in
13681 yes,cygwin* | yes,mingw* | yes,pw32*)
13682 library_names_spec='$libname.dll.a'
13683 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13684 postinstall_cmds='base_file=`basename \${file}`~
13685 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13686 dldir=$destdir/`dirname \$dlpath`~
13687 test -d \$dldir || mkdir -p \$dldir~
13688 $install_prog $dir/$dlname \$dldir/$dlname'
13689 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13690 dlpath=$dir/\$dldll~
13692 shlibpath_overrides_runpath=yes
13696 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13697 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13698 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13701 # MinGW DLLs use traditional 'lib' prefix
13702 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13703 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13704 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13705 # It is most probably a Windows format PATH printed by
13706 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13707 # path with ; separators, and with drive letters. We can handle the
13708 # drive letters (cygwin fileutils understands them), so leave them,
13709 # especially as we might pass files found there to a mingw objdump,
13710 # which wouldn't understand a cygwinified path. Ahh.
13711 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13717 # pw32 DLLs use 'pw' prefix rather than 'lib'
13718 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13724 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13727 dynamic_linker='Win32 ld.exe'
13728 # FIXME: first we should search . and the directory the executable is in
13732 darwin* | rhapsody*)
13733 dynamic_linker="$host_os dyld"
13734 version_type=darwin
13737 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13738 soname_spec='${libname}${release}${major}$shared_ext'
13739 shlibpath_overrides_runpath=yes
13740 shlibpath_var=DYLD_LIBRARY_PATH
13741 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13742 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13743 if test "$GCC" = yes; then
13744 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"`
13746 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13748 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13756 soname_spec='${libname}${release}${shared_ext}$major'
13757 shlibpath_var=LD_LIBRARY_PATH
13768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13769 soname_spec='${libname}${release}${shared_ext}$major'
13770 shlibpath_var=LD_LIBRARY_PATH
13771 shlibpath_overrides_runpath=no
13772 hardcode_into_libs=yes
13773 dynamic_linker='GNU ld.so'
13777 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13778 version_type=freebsd-$objformat
13779 case $version_type in
13781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13790 shlibpath_var=LD_LIBRARY_PATH
13793 shlibpath_overrides_runpath=yes
13795 freebsd3.01* | freebsdelf3.01*)
13796 shlibpath_overrides_runpath=yes
13797 hardcode_into_libs=yes
13800 shlibpath_overrides_runpath=no
13801 hardcode_into_libs=yes
13810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13811 soname_spec='${libname}${release}${shared_ext}$major'
13812 shlibpath_var=LD_LIBRARY_PATH
13813 hardcode_into_libs=yes
13816 hpux9* | hpux10* | hpux11*)
13817 # Give a soname corresponding to the major version so that dld.sl refuses to
13818 # link against other versions.
13822 case "$host_cpu" in
13825 hardcode_into_libs=yes
13826 dynamic_linker="$host_os dld.so"
13827 shlibpath_var=LD_LIBRARY_PATH
13828 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13830 soname_spec='${libname}${release}${shared_ext}$major'
13831 if test "X$HPUX_IA64_MODE" = X32; then
13832 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13834 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13836 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13840 hardcode_into_libs=yes
13841 dynamic_linker="$host_os dld.sl"
13842 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13845 soname_spec='${libname}${release}${shared_ext}$major'
13846 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13851 dynamic_linker="$host_os dld.sl"
13852 shlibpath_var=SHLIB_PATH
13853 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13855 soname_spec='${libname}${release}${shared_ext}$major'
13858 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13859 postinstall_cmds='chmod 555 $lib'
13862 irix5* | irix6* | nonstopux*)
13864 nonstopux*) version_type=nonstopux ;;
13866 if test "$lt_cv_prog_gnu_ld" = yes; then
13874 soname_spec='${libname}${release}${shared_ext}$major'
13875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13877 irix5* | nonstopux*)
13878 libsuff= shlibsuff=
13881 case $LD in # libtool.m4 will add one of these switches to LD
13882 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13883 libsuff= shlibsuff= libmagic=32-bit;;
13884 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13885 libsuff=32 shlibsuff=N32 libmagic=N32;;
13886 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13887 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13888 *) libsuff= shlibsuff= libmagic=never-match;;
13892 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13893 shlibpath_overrides_runpath=no
13894 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13895 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13896 hardcode_into_libs=yes
13899 # No shared lib support for Linux oldld, aout, or coff.
13900 linux*oldld* | linux*aout* | linux*coff*)
13904 # This must be Linux ELF.
13909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13910 soname_spec='${libname}${release}${shared_ext}$major'
13911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13912 shlibpath_var=LD_LIBRARY_PATH
13913 shlibpath_overrides_runpath=no
13914 # This implies no fast_install, which is unacceptable.
13915 # Some rework will be needed to allow for fast_install
13916 # before this can be enabled.
13917 hardcode_into_libs=yes
13919 # Append ld.so.conf contents to the search path
13920 if test -f /etc/ld.so.conf; then
13921 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13922 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13925 # We used to test for /lib/ld.so.1 and disable shared libraries on
13926 # powerpc, because MkLinux only supported shared libraries with the
13927 # GNU dynamic linker. Since this was broken with cross compilers,
13928 # most powerpc-linux boxes support dynamic linking these days and
13929 # people can always --disable-shared, the test was removed, and we
13930 # assume the GNU/Linux dynamic linker is in use.
13931 dynamic_linker='GNU/Linux ld.so'
13938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13939 soname_spec='${libname}${release}${shared_ext}$major'
13940 shlibpath_var=LD_LIBRARY_PATH
13941 shlibpath_overrides_runpath=no
13942 hardcode_into_libs=yes
13943 dynamic_linker='GNU ld.so'
13950 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13953 dynamic_linker='NetBSD (a.out) ld.so'
13955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13956 soname_spec='${libname}${release}${shared_ext}$major'
13957 dynamic_linker='NetBSD ld.elf_so'
13959 shlibpath_var=LD_LIBRARY_PATH
13960 shlibpath_overrides_runpath=yes
13961 hardcode_into_libs=yes
13966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13967 shlibpath_var=LD_LIBRARY_PATH
13968 shlibpath_overrides_runpath=yes
13975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13976 soname_spec='${libname}${release}${shared_ext}$major'
13977 shlibpath_var=LD_LIBRARY_PATH
13978 shlibpath_overrides_runpath=yes
13985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13987 shlibpath_var=LD_LIBRARY_PATH
13988 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13990 openbsd2.[89] | openbsd2.[89].*)
13991 shlibpath_overrides_runpath=no
13994 shlibpath_overrides_runpath=yes
13998 shlibpath_overrides_runpath=yes
14003 libname_spec='$name'
14006 library_names_spec='$libname${shared_ext} $libname.a'
14007 dynamic_linker='OS/2 ld.exe'
14008 shlibpath_var=LIBPATH
14011 osf3* | osf4* | osf5*)
14015 soname_spec='${libname}${release}${shared_ext}$major'
14016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14017 shlibpath_var=LD_LIBRARY_PATH
14018 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14019 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14024 soname_spec='${libname}${release}${shared_ext}$major'
14025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14026 shlibpath_var=LD_LIBRARY_PATH
14033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14034 soname_spec='${libname}${release}${shared_ext}$major'
14035 shlibpath_var=LD_LIBRARY_PATH
14036 shlibpath_overrides_runpath=yes
14037 hardcode_into_libs=yes
14038 # ldd complains unless libraries are executable
14039 postinstall_cmds='chmod +x $lib'
14044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14045 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14046 shlibpath_var=LD_LIBRARY_PATH
14047 shlibpath_overrides_runpath=yes
14048 if test "$with_gnu_ld" = yes; then
14054 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14057 soname_spec='${libname}${release}${shared_ext}$major'
14058 shlibpath_var=LD_LIBRARY_PATH
14059 case $host_vendor in
14061 shlibpath_overrides_runpath=no
14063 export_dynamic_flag_spec='${wl}-Blargedynsym'
14064 runpath_var=LD_RUN_PATH
14072 shlibpath_overrides_runpath=no
14073 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14079 if test -d /usr/nec ;then
14081 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14082 soname_spec='$libname${shared_ext}.$major'
14083 shlibpath_var=LD_LIBRARY_PATH
14089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14090 soname_spec='${libname}${release}${shared_ext}$major'
14091 shlibpath_var=LD_LIBRARY_PATH
14098 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14099 echo "${ECHO_T}$dynamic_linker" >&6
14100 test "$dynamic_linker" = no && can_build_shared=no
14102 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14103 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14105 if test -n "$hardcode_libdir_flag_spec" || \
14106 test -n "$runpath_var" || \
14107 test "X$hardcode_automatic" = "Xyes" ; then
14109 # We can hardcode non-existant directories.
14110 if test "$hardcode_direct" != no &&
14111 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14112 # have to relink, otherwise we might link with an installed library
14113 # when we should be linking with a yet-to-be-installed one
14114 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14115 test "$hardcode_minus_L" != no; then
14116 # Linking always hardcodes the temporary library directory.
14117 hardcode_action=relink
14119 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14120 hardcode_action=immediate
14123 # We cannot hardcode anything, or else we can only hardcode existing
14125 hardcode_action=unsupported
14127 echo "$as_me:$LINENO: result: $hardcode_action" >&5
14128 echo "${ECHO_T}$hardcode_action" >&6
14130 if test "$hardcode_action" = relink; then
14131 # Fast installation is not supported
14132 enable_fast_install=no
14133 elif test "$shlibpath_overrides_runpath" = yes ||
14134 test "$enable_shared" = no; then
14135 # Fast installation is not necessary
14136 enable_fast_install=needless
14141 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14142 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14143 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14144 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14145 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14146 echo "$as_me:$LINENO: result: yes" >&5
14147 echo "${ECHO_T}yes" >&6
14149 # FIXME - insert some real tests, host_os isn't really good enough
14152 if test -n "$STRIP" ; then
14153 striplib="$STRIP -x"
14154 echo "$as_me:$LINENO: result: yes" >&5
14155 echo "${ECHO_T}yes" >&6
14157 echo "$as_me:$LINENO: result: no" >&5
14158 echo "${ECHO_T}no" >&6
14162 echo "$as_me:$LINENO: result: no" >&5
14163 echo "${ECHO_T}no" >&6
14168 if test "x$enable_dlopen" != xyes; then
14169 enable_dlopen=unknown
14170 enable_dlopen_self=unknown
14171 enable_dlopen_self_static=unknown
14178 lt_cv_dlopen="load_add_on"
14180 lt_cv_dlopen_self=yes
14184 lt_cv_dlopen="LoadLibrary"
14189 lt_cv_dlopen="dlopen"
14194 # if libdl is installed we need to link against it
14195 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14196 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14197 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
14200 ac_check_lib_save_LIBS=$LIBS
14202 cat >conftest.$ac_ext <<_ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h. */
14209 /* Override any gcc2 internal prototype to avoid an error. */
14213 /* We use char because int might match the return type of a gcc2
14214 builtin and then its argument prototype would still apply. */
14224 rm -f conftest.$ac_objext conftest$ac_exeext
14225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14226 (eval $ac_link) 2>conftest.er1
14228 grep -v '^ *+' conftest.er1 >conftest.err
14230 cat conftest.err >&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); } &&
14233 { ac_try='test -z "$ac_c_werror_flag"
14234 || test ! -s conftest.err'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; } &&
14240 { ac_try='test -s conftest$ac_exeext'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; }; then
14246 ac_cv_lib_dl_dlopen=yes
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14251 ac_cv_lib_dl_dlopen=no
14253 rm -f conftest.err conftest.$ac_objext \
14254 conftest$ac_exeext conftest.$ac_ext
14255 LIBS=$ac_check_lib_save_LIBS
14257 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14258 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14259 if test $ac_cv_lib_dl_dlopen = yes; then
14260 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14263 lt_cv_dlopen="dyld"
14265 lt_cv_dlopen_self=yes
14272 echo "$as_me:$LINENO: checking for shl_load" >&5
14273 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14274 if test "${ac_cv_func_shl_load+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 cat >conftest.$ac_ext <<_ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14283 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14285 #define shl_load innocuous_shl_load
14287 /* System header to define __stub macros and hopefully few prototypes,
14288 which can conflict with char shl_load (); below.
14289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14290 <limits.h> exists even on freestanding compilers. */
14293 # include <limits.h>
14295 # include <assert.h>
14300 /* Override any gcc2 internal prototype to avoid an error. */
14305 /* We use char because int might match the return type of a gcc2
14306 builtin and then its argument prototype would still apply. */
14308 /* The GNU C library defines this for functions which it implements
14309 to always fail with ENOSYS. Some functions are actually named
14310 something starting with __ and the normal name is an alias. */
14311 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14314 char (*f) () = shl_load;
14323 return f != shl_load;
14328 rm -f conftest.$ac_objext conftest$ac_exeext
14329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14330 (eval $ac_link) 2>conftest.er1
14332 grep -v '^ *+' conftest.er1 >conftest.err
14334 cat conftest.err >&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); } &&
14337 { ac_try='test -z "$ac_c_werror_flag"
14338 || test ! -s conftest.err'
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; } &&
14344 { ac_try='test -s conftest$ac_exeext'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; }; then
14350 ac_cv_func_shl_load=yes
14352 echo "$as_me: failed program was:" >&5
14353 sed 's/^/| /' conftest.$ac_ext >&5
14355 ac_cv_func_shl_load=no
14357 rm -f conftest.err conftest.$ac_objext \
14358 conftest$ac_exeext conftest.$ac_ext
14360 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14361 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14362 if test $ac_cv_func_shl_load = yes; then
14363 lt_cv_dlopen="shl_load"
14365 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14366 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14367 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
14370 ac_check_lib_save_LIBS=$LIBS
14372 cat >conftest.$ac_ext <<_ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14379 /* Override any gcc2 internal prototype to avoid an error. */
14383 /* We use char because int might match the return type of a gcc2
14384 builtin and then its argument prototype would still apply. */
14394 rm -f conftest.$ac_objext conftest$ac_exeext
14395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14396 (eval $ac_link) 2>conftest.er1
14398 grep -v '^ *+' conftest.er1 >conftest.err
14400 cat conftest.err >&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
14403 { ac_try='test -z "$ac_c_werror_flag"
14404 || test ! -s conftest.err'
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; } &&
14410 { ac_try='test -s conftest$ac_exeext'
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; }; then
14416 ac_cv_lib_dld_shl_load=yes
14418 echo "$as_me: failed program was:" >&5
14419 sed 's/^/| /' conftest.$ac_ext >&5
14421 ac_cv_lib_dld_shl_load=no
14423 rm -f conftest.err conftest.$ac_objext \
14424 conftest$ac_exeext conftest.$ac_ext
14425 LIBS=$ac_check_lib_save_LIBS
14427 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14428 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14429 if test $ac_cv_lib_dld_shl_load = yes; then
14430 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14432 echo "$as_me:$LINENO: checking for dlopen" >&5
14433 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14434 if test "${ac_cv_func_dlopen+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14437 cat >conftest.$ac_ext <<_ACEOF
14440 cat confdefs.h >>conftest.$ac_ext
14441 cat >>conftest.$ac_ext <<_ACEOF
14442 /* end confdefs.h. */
14443 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14445 #define dlopen innocuous_dlopen
14447 /* System header to define __stub macros and hopefully few prototypes,
14448 which can conflict with char dlopen (); below.
14449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14450 <limits.h> exists even on freestanding compilers. */
14453 # include <limits.h>
14455 # include <assert.h>
14460 /* Override any gcc2 internal prototype to avoid an error. */
14465 /* We use char because int might match the return type of a gcc2
14466 builtin and then its argument prototype would still apply. */
14468 /* The GNU C library defines this for functions which it implements
14469 to always fail with ENOSYS. Some functions are actually named
14470 something starting with __ and the normal name is an alias. */
14471 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14474 char (*f) () = dlopen;
14483 return f != dlopen;
14488 rm -f conftest.$ac_objext conftest$ac_exeext
14489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14490 (eval $ac_link) 2>conftest.er1
14492 grep -v '^ *+' conftest.er1 >conftest.err
14494 cat conftest.err >&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); } &&
14497 { ac_try='test -z "$ac_c_werror_flag"
14498 || test ! -s conftest.err'
14499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500 (eval $ac_try) 2>&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); }; } &&
14504 { ac_try='test -s conftest$ac_exeext'
14505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506 (eval $ac_try) 2>&5
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); }; }; then
14510 ac_cv_func_dlopen=yes
14512 echo "$as_me: failed program was:" >&5
14513 sed 's/^/| /' conftest.$ac_ext >&5
14515 ac_cv_func_dlopen=no
14517 rm -f conftest.err conftest.$ac_objext \
14518 conftest$ac_exeext conftest.$ac_ext
14520 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14521 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14522 if test $ac_cv_func_dlopen = yes; then
14523 lt_cv_dlopen="dlopen"
14525 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14526 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14527 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14528 echo $ECHO_N "(cached) $ECHO_C" >&6
14530 ac_check_lib_save_LIBS=$LIBS
14532 cat >conftest.$ac_ext <<_ACEOF
14535 cat confdefs.h >>conftest.$ac_ext
14536 cat >>conftest.$ac_ext <<_ACEOF
14537 /* end confdefs.h. */
14539 /* Override any gcc2 internal prototype to avoid an error. */
14543 /* We use char because int might match the return type of a gcc2
14544 builtin and then its argument prototype would still apply. */
14554 rm -f conftest.$ac_objext conftest$ac_exeext
14555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14556 (eval $ac_link) 2>conftest.er1
14558 grep -v '^ *+' conftest.er1 >conftest.err
14560 cat conftest.err >&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } &&
14563 { ac_try='test -z "$ac_c_werror_flag"
14564 || test ! -s conftest.err'
14565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14566 (eval $ac_try) 2>&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; } &&
14570 { ac_try='test -s conftest$ac_exeext'
14571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14572 (eval $ac_try) 2>&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); }; }; then
14576 ac_cv_lib_dl_dlopen=yes
14578 echo "$as_me: failed program was:" >&5
14579 sed 's/^/| /' conftest.$ac_ext >&5
14581 ac_cv_lib_dl_dlopen=no
14583 rm -f conftest.err conftest.$ac_objext \
14584 conftest$ac_exeext conftest.$ac_ext
14585 LIBS=$ac_check_lib_save_LIBS
14587 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14588 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14589 if test $ac_cv_lib_dl_dlopen = yes; then
14590 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14592 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14593 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14594 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14597 ac_check_lib_save_LIBS=$LIBS
14598 LIBS="-lsvld $LIBS"
14599 cat >conftest.$ac_ext <<_ACEOF
14602 cat confdefs.h >>conftest.$ac_ext
14603 cat >>conftest.$ac_ext <<_ACEOF
14604 /* end confdefs.h. */
14606 /* Override any gcc2 internal prototype to avoid an error. */
14610 /* We use char because int might match the return type of a gcc2
14611 builtin and then its argument prototype would still apply. */
14621 rm -f conftest.$ac_objext conftest$ac_exeext
14622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14623 (eval $ac_link) 2>conftest.er1
14625 grep -v '^ *+' conftest.er1 >conftest.err
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } &&
14630 { ac_try='test -z "$ac_c_werror_flag"
14631 || test ! -s conftest.err'
14632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633 (eval $ac_try) 2>&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; } &&
14637 { ac_try='test -s conftest$ac_exeext'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; }; then
14643 ac_cv_lib_svld_dlopen=yes
14645 echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14648 ac_cv_lib_svld_dlopen=no
14650 rm -f conftest.err conftest.$ac_objext \
14651 conftest$ac_exeext conftest.$ac_ext
14652 LIBS=$ac_check_lib_save_LIBS
14654 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14655 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14656 if test $ac_cv_lib_svld_dlopen = yes; then
14657 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14659 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14660 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14661 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14662 echo $ECHO_N "(cached) $ECHO_C" >&6
14664 ac_check_lib_save_LIBS=$LIBS
14666 cat >conftest.$ac_ext <<_ACEOF
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h. */
14673 /* Override any gcc2 internal prototype to avoid an error. */
14677 /* We use char because int might match the return type of a gcc2
14678 builtin and then its argument prototype would still apply. */
14688 rm -f conftest.$ac_objext conftest$ac_exeext
14689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14690 (eval $ac_link) 2>conftest.er1
14692 grep -v '^ *+' conftest.er1 >conftest.err
14694 cat conftest.err >&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } &&
14697 { ac_try='test -z "$ac_c_werror_flag"
14698 || test ! -s conftest.err'
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; } &&
14704 { ac_try='test -s conftest$ac_exeext'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; }; then
14710 ac_cv_lib_dld_dld_link=yes
14712 echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14715 ac_cv_lib_dld_dld_link=no
14717 rm -f conftest.err conftest.$ac_objext \
14718 conftest$ac_exeext conftest.$ac_ext
14719 LIBS=$ac_check_lib_save_LIBS
14721 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14722 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14723 if test $ac_cv_lib_dld_dld_link = yes; then
14724 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14745 if test "x$lt_cv_dlopen" != xno; then
14751 case $lt_cv_dlopen in
14753 save_CPPFLAGS="$CPPFLAGS"
14754 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14756 save_LDFLAGS="$LDFLAGS"
14757 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14760 LIBS="$lt_cv_dlopen_libs $LIBS"
14762 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14763 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14764 if test "${lt_cv_dlopen_self+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14767 if test "$cross_compiling" = yes; then :
14768 lt_cv_dlopen_self=cross
14770 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14771 lt_status=$lt_dlunknown
14772 cat > conftest.$ac_ext <<EOF
14773 #line 14773 "configure"
14774 #include "confdefs.h"
14783 # define LT_DLGLOBAL RTLD_GLOBAL
14786 # define LT_DLGLOBAL DL_GLOBAL
14788 # define LT_DLGLOBAL 0
14792 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14793 find out it does not work in some platform. */
14794 #ifndef LT_DLLAZY_OR_NOW
14796 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14799 # define LT_DLLAZY_OR_NOW DL_LAZY
14802 # define LT_DLLAZY_OR_NOW RTLD_NOW
14805 # define LT_DLLAZY_OR_NOW DL_NOW
14807 # define LT_DLLAZY_OR_NOW 0
14815 extern "C" void exit (int);
14818 void fnord() { int i=42;}
14821 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14822 int status = $lt_dlunknown;
14826 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14827 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14828 /* dlclose (self); */
14834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14835 (eval $ac_link) 2>&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14839 (./conftest; exit; ) 2>/dev/null
14841 case x$lt_status in
14842 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14843 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14844 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14847 # compilation failed
14848 lt_cv_dlopen_self=no
14855 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14856 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14858 if test "x$lt_cv_dlopen_self" = xyes; then
14859 LDFLAGS="$LDFLAGS $link_static_flag"
14860 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14861 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14862 if test "${lt_cv_dlopen_self_static+set}" = set; then
14863 echo $ECHO_N "(cached) $ECHO_C" >&6
14865 if test "$cross_compiling" = yes; then :
14866 lt_cv_dlopen_self_static=cross
14868 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14869 lt_status=$lt_dlunknown
14870 cat > conftest.$ac_ext <<EOF
14871 #line 14871 "configure"
14872 #include "confdefs.h"
14881 # define LT_DLGLOBAL RTLD_GLOBAL
14884 # define LT_DLGLOBAL DL_GLOBAL
14886 # define LT_DLGLOBAL 0
14890 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14891 find out it does not work in some platform. */
14892 #ifndef LT_DLLAZY_OR_NOW
14894 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14897 # define LT_DLLAZY_OR_NOW DL_LAZY
14900 # define LT_DLLAZY_OR_NOW RTLD_NOW
14903 # define LT_DLLAZY_OR_NOW DL_NOW
14905 # define LT_DLLAZY_OR_NOW 0
14913 extern "C" void exit (int);
14916 void fnord() { int i=42;}
14919 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14920 int status = $lt_dlunknown;
14924 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14925 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14926 /* dlclose (self); */
14932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14933 (eval $ac_link) 2>&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14937 (./conftest; exit; ) 2>/dev/null
14939 case x$lt_status in
14940 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14941 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14942 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14945 # compilation failed
14946 lt_cv_dlopen_self_static=no
14953 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14954 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14957 CPPFLAGS="$save_CPPFLAGS"
14958 LDFLAGS="$save_LDFLAGS"
14963 case $lt_cv_dlopen_self in
14964 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14965 *) enable_dlopen_self=unknown ;;
14968 case $lt_cv_dlopen_self_static in
14969 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14970 *) enable_dlopen_self_static=unknown ;;
14975 # Report which librarie types wil actually be built
14976 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14977 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14978 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14979 echo "${ECHO_T}$can_build_shared" >&6
14981 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14982 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14983 test "$can_build_shared" = "no" && enable_shared=no
14985 # On AIX, shared libraries and static libraries use the same namespace, and
14986 # are all built from PIC.
14989 test "$enable_shared" = yes && enable_static=no
14990 if test -n "$RANLIB"; then
14991 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14992 postinstall_cmds='$RANLIB $lib'
14997 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14998 test "$enable_shared" = yes && enable_static=no
15002 echo "$as_me:$LINENO: result: $enable_shared" >&5
15003 echo "${ECHO_T}$enable_shared" >&6
15005 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15006 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15007 # Make sure either enable_shared or enable_static is yes.
15008 test "$enable_shared" = yes || enable_static=yes
15009 echo "$as_me:$LINENO: result: $enable_static" >&5
15010 echo "${ECHO_T}$enable_static" >&6
15012 # The else clause should only fire when bootstrapping the
15013 # libtool distribution, otherwise you forgot to ship ltmain.sh
15014 # with your package, and you will get complaints that there are
15015 # no rules to generate ltmain.sh.
15016 if test -f "$ltmain"; then
15017 # See if we are running on zsh, and set the options which allow our commands through
15018 # without removal of \ escapes.
15019 if test -n "${ZSH_VERSION+set}" ; then
15020 setopt NO_GLOB_SUBST
15022 # Now quote all the things that may contain metacharacters while being
15023 # careful not to overquote the AC_SUBSTed values. We take copies of the
15024 # variables and quote the copies for generation of the libtool script.
15025 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15027 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15028 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15029 deplibs_check_method reload_flag reload_cmds need_locks \
15030 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15031 lt_cv_sys_global_symbol_to_c_name_address \
15032 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15033 old_postinstall_cmds old_postuninstall_cmds \
15037 lt_prog_compiler_wl \
15038 lt_prog_compiler_pic \
15039 lt_prog_compiler_static \
15040 lt_prog_compiler_no_builtin_flag \
15041 export_dynamic_flag_spec \
15042 thread_safe_flag_spec \
15043 whole_archive_flag_spec \
15044 enable_shared_with_static_runtimes \
15046 old_archive_from_new_cmds \
15051 compiler_lib_search_path \
15053 archive_expsym_cmds \
15055 postuninstall_cmds \
15056 old_archive_from_expsyms_cmds \
15057 allow_undefined_flag \
15058 no_undefined_flag \
15059 export_symbols_cmds \
15060 hardcode_libdir_flag_spec \
15061 hardcode_libdir_flag_spec_ld \
15062 hardcode_libdir_separator \
15063 hardcode_automatic \
15065 module_expsym_cmds \
15066 lt_cv_prog_compiler_c_o \
15068 include_expsyms; do
15071 old_archive_cmds | \
15072 old_archive_from_new_cmds | \
15074 archive_expsym_cmds | \
15076 module_expsym_cmds | \
15077 old_archive_from_expsyms_cmds | \
15078 export_symbols_cmds | \
15079 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15080 postinstall_cmds | postuninstall_cmds | \
15081 old_postinstall_cmds | old_postuninstall_cmds | \
15082 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15083 # Double-quote double-evaled strings.
15084 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15087 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15093 *'\$0 --fallback-echo"')
15094 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15098 cfgfile="${ofile}T"
15099 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15101 { echo "$as_me:$LINENO: creating $ofile" >&5
15102 echo "$as_me: creating $ofile" >&6;}
15104 cat <<__EOF__ >> "$cfgfile"
15107 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15108 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
15109 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15111 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
15112 # Free Software Foundation, Inc.
15114 # This file is part of GNU Libtool:
15115 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15117 # This program is free software; you can redistribute it and/or modify
15118 # it under the terms of the GNU General Public License as published by
15119 # the Free Software Foundation; either version 2 of the License, or
15120 # (at your option) any later version.
15122 # This program is distributed in the hope that it will be useful, but
15123 # WITHOUT ANY WARRANTY; without even the implied warranty of
15124 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15125 # General Public License for more details.
15127 # You should have received a copy of the GNU General Public License
15128 # along with this program; if not, write to the Free Software
15129 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15131 # As a special exception to the GNU General Public License, if you
15132 # distribute this file as part of a program that contains a
15133 # configuration script generated by Autoconf, you may include it under
15134 # the same distribution terms that you use for the rest of that program.
15136 # A sed program that does not truncate output.
15139 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15140 Xsed="$SED -e s/^X//"
15142 # The HP-UX ksh and POSIX shell print the target directory to stdout
15143 # if CDPATH is set.
15144 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15146 # The names of the tagged configurations supported by this script.
15149 # ### BEGIN LIBTOOL CONFIG
15151 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15153 # Shell to use when invoking shell scripts.
15156 # Whether or not to build shared libraries.
15157 build_libtool_libs=$enable_shared
15159 # Whether or not to build static libraries.
15160 build_old_libs=$enable_static
15162 # Whether or not to add -lc for building shared libraries.
15163 build_libtool_need_lc=$archive_cmds_need_lc
15165 # Whether or not to disallow shared libs when runtime libs are static
15166 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15168 # Whether or not to optimize for fast installation.
15169 fast_install=$enable_fast_install
15172 host_alias=$host_alias
15175 # An echo program that does not interpret backslashes.
15180 AR_FLAGS=$lt_AR_FLAGS
15185 # A language-specific compiler.
15188 # Is the compiler the GNU C compiler?
15194 # The linker used to build libraries.
15197 # Whether we need hard or soft links.
15200 # A BSD-compatible nm program.
15203 # A symbol stripping program
15206 # Used to examine libraries when file_magic_cmd begins "file"
15207 MAGIC_CMD=$MAGIC_CMD
15209 # Used on cygwin: DLL creation program.
15212 # Used on cygwin: object dumper.
15215 # Used on cygwin: assembler.
15218 # The name of the directory that contains temporary libtool files.
15221 # How to create reloadable object files.
15222 reload_flag=$lt_reload_flag
15223 reload_cmds=$lt_reload_cmds
15225 # How to pass a linker flag through the compiler.
15226 wl=$lt_lt_prog_compiler_wl
15228 # Object file suffix (normally "o").
15229 objext="$ac_objext"
15231 # Old archive suffix (normally "a").
15234 # Shared library suffix (normally ".so").
15235 shrext_cmds='$shrext_cmds'
15237 # Executable file suffix (normally "").
15240 # Additional compiler flags for building library objects.
15241 pic_flag=$lt_lt_prog_compiler_pic
15244 # What is the maximum length of a command?
15245 max_cmd_len=$lt_cv_sys_max_cmd_len
15247 # Does compiler simultaneously support -c and -o options?
15248 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15250 # Must we lock files when doing compilation ?
15251 need_locks=$lt_need_locks
15253 # Do we need the lib prefix for modules?
15254 need_lib_prefix=$need_lib_prefix
15256 # Do we need a version for libraries?
15257 need_version=$need_version
15259 # Whether dlopen is supported.
15260 dlopen_support=$enable_dlopen
15262 # Whether dlopen of programs is supported.
15263 dlopen_self=$enable_dlopen_self
15265 # Whether dlopen of statically linked programs is supported.
15266 dlopen_self_static=$enable_dlopen_self_static
15268 # Compiler flag to prevent dynamic linking.
15269 link_static_flag=$lt_lt_prog_compiler_static
15271 # Compiler flag to turn off builtin functions.
15272 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15274 # Compiler flag to allow reflexive dlopens.
15275 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15277 # Compiler flag to generate shared objects directly from archives.
15278 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15280 # Compiler flag to generate thread-safe objects.
15281 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15283 # Library versioning type.
15284 version_type=$version_type
15286 # Format of library name prefix.
15287 libname_spec=$lt_libname_spec
15289 # List of archive names. First name is the real one, the rest are links.
15290 # The last name is the one that the linker finds with -lNAME.
15291 library_names_spec=$lt_library_names_spec
15293 # The coded name of the library, if different from the real name.
15294 soname_spec=$lt_soname_spec
15296 # Commands used to build and install an old-style archive.
15298 old_archive_cmds=$lt_old_archive_cmds
15299 old_postinstall_cmds=$lt_old_postinstall_cmds
15300 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15302 # Create an old-style archive from a shared archive.
15303 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15305 # Create a temporary old-style archive to link instead of a shared archive.
15306 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15308 # Commands used to build and install a shared archive.
15309 archive_cmds=$lt_archive_cmds
15310 archive_expsym_cmds=$lt_archive_expsym_cmds
15311 postinstall_cmds=$lt_postinstall_cmds
15312 postuninstall_cmds=$lt_postuninstall_cmds
15314 # Commands used to build a loadable module (assumed same as above if empty)
15315 module_cmds=$lt_module_cmds
15316 module_expsym_cmds=$lt_module_expsym_cmds
15318 # Commands to strip libraries.
15319 old_striplib=$lt_old_striplib
15320 striplib=$lt_striplib
15322 # Dependencies to place before the objects being linked to create a
15324 predep_objects=$lt_predep_objects
15326 # Dependencies to place after the objects being linked to create a
15328 postdep_objects=$lt_postdep_objects
15330 # Dependencies to place before the objects being linked to create a
15332 predeps=$lt_predeps
15334 # Dependencies to place after the objects being linked to create a
15336 postdeps=$lt_postdeps
15338 # The library search path used internally by the compiler when linking
15339 # a shared library.
15340 compiler_lib_search_path=$lt_compiler_lib_search_path
15342 # Method to check whether dependent libraries are shared objects.
15343 deplibs_check_method=$lt_deplibs_check_method
15345 # Command to use when deplibs_check_method == file_magic.
15346 file_magic_cmd=$lt_file_magic_cmd
15348 # Flag that allows shared libraries with undefined symbols to be built.
15349 allow_undefined_flag=$lt_allow_undefined_flag
15351 # Flag that forces no undefined symbols.
15352 no_undefined_flag=$lt_no_undefined_flag
15354 # Commands used to finish a libtool library installation in a directory.
15355 finish_cmds=$lt_finish_cmds
15357 # Same as above, but a single script fragment to be evaled but not shown.
15358 finish_eval=$lt_finish_eval
15360 # Take the output of nm and produce a listing of raw symbols and C names.
15361 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15363 # Transform the output of nm in a proper C declaration
15364 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15366 # Transform the output of nm in a C name address pair
15367 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15369 # This is the shared library runtime path variable.
15370 runpath_var=$runpath_var
15372 # This is the shared library path variable.
15373 shlibpath_var=$shlibpath_var
15375 # Is shlibpath searched before the hard-coded library search path?
15376 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15378 # How to hardcode a shared library path into an executable.
15379 hardcode_action=$hardcode_action
15381 # Whether we should hardcode library paths into libraries.
15382 hardcode_into_libs=$hardcode_into_libs
15384 # Flag to hardcode \$libdir into a binary during linking.
15385 # This must work even if \$libdir does not exist.
15386 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15388 # If ld is used when linking, flag to hardcode \$libdir into
15389 # a binary during linking. This must work even if \$libdir does
15391 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15393 # Whether we need a single -rpath flag with a separated argument.
15394 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15396 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15397 # resulting binary.
15398 hardcode_direct=$hardcode_direct
15400 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15401 # resulting binary.
15402 hardcode_minus_L=$hardcode_minus_L
15404 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15405 # the resulting binary.
15406 hardcode_shlibpath_var=$hardcode_shlibpath_var
15408 # Set to yes if building a shared library automatically hardcodes DIR into the library
15409 # and all subsequent libraries and executables linked against it.
15410 hardcode_automatic=$hardcode_automatic
15412 # Variables whose values should be saved in libtool wrapper scripts and
15413 # restored at relink time.
15414 variables_saved_for_relink="$variables_saved_for_relink"
15416 # Whether libtool must link a program against all its dependency libraries.
15417 link_all_deplibs=$link_all_deplibs
15419 # Compile-time system search path for libraries
15420 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15422 # Run-time system search path for libraries
15423 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15425 # Fix the shell variable \$srcfile for the compiler.
15426 fix_srcfile_path="$fix_srcfile_path"
15428 # Set to yes if exported symbols are required.
15429 always_export_symbols=$always_export_symbols
15431 # The commands to list exported symbols.
15432 export_symbols_cmds=$lt_export_symbols_cmds
15434 # The commands to extract the exported symbol list from a shared archive.
15435 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15437 # Symbols that should not be listed in the preloaded symbols.
15438 exclude_expsyms=$lt_exclude_expsyms
15440 # Symbols that must always be exported.
15441 include_expsyms=$lt_include_expsyms
15443 # ### END LIBTOOL CONFIG
15450 cat <<\EOF >> "$cfgfile"
15452 # AIX sometimes has problems with the GCC collect2 program. For some
15453 # reason, if we set the COLLECT_NAMES environment variable, the problems
15454 # vanish in a puff of smoke.
15455 if test "X${COLLECT_NAMES+set}" != Xset; then
15457 export COLLECT_NAMES
15463 # We use sed instead of cat because bash on DJGPP gets confused if
15464 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15465 # text mode, it properly converts lines to CR/LF. This bash problem
15466 # is reportedly fixed, but why not run on old versions too?
15467 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15469 mv -f "$cfgfile" "$ofile" || \
15470 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15474 # If there is no Makefile yet, we rely on a make rule to execute
15475 # `config.status --recheck' to rerun these tests and create the
15476 # libtool script then.
15477 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15478 if test -f "$ltmain_in"; then
15479 test -f Makefile && make "$ltmain"
15485 ac_cpp='$CPP $CPPFLAGS'
15486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15493 # Check whether --with-tags or --without-tags was given.
15494 if test "${with_tags+set}" = set; then
15495 withval="$with_tags"
15496 tagnames="$withval"
15499 if test -f "$ltmain" && test -n "$tagnames"; then
15500 if test ! -f "${ofile}"; then
15501 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15502 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15505 if test -z "$LTCC"; then
15506 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15507 if test -z "$LTCC"; then
15508 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15509 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15511 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15512 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15516 # Extract list of available tagged configurations in $ofile.
15517 # Note that this assumes the entire list is on one line.
15518 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15520 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15521 for tagname in $tagnames; do
15523 # Check whether tagname contains only valid characters
15524 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15526 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15527 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15528 { (exit 1); exit 1; }; }
15532 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15534 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15535 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15536 { (exit 1); exit 1; }; }
15539 # Update the list of available tags.
15540 if test -n "$tagname"; then
15541 echo appending configuration tag "$tagname" to $ofile
15545 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15546 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15547 (test "X$CXX" != "Xg++"))) ; then
15549 ac_cpp='$CXXCPP $CPPFLAGS'
15550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15557 archive_cmds_need_lc_CXX=no
15558 allow_undefined_flag_CXX=
15559 always_export_symbols_CXX=no
15560 archive_expsym_cmds_CXX=
15561 export_dynamic_flag_spec_CXX=
15562 hardcode_direct_CXX=no
15563 hardcode_libdir_flag_spec_CXX=
15564 hardcode_libdir_flag_spec_ld_CXX=
15565 hardcode_libdir_separator_CXX=
15566 hardcode_minus_L_CXX=no
15567 hardcode_automatic_CXX=no
15569 module_expsym_cmds_CXX=
15570 link_all_deplibs_CXX=unknown
15571 old_archive_cmds_CXX=$old_archive_cmds
15572 no_undefined_flag_CXX=
15573 whole_archive_flag_spec_CXX=
15574 enable_shared_with_static_runtimes_CXX=no
15576 # Dependencies to place before and after the object being linked:
15577 predep_objects_CXX=
15578 postdep_objects_CXX=
15581 compiler_lib_search_path_CXX=
15583 # Source file extension for C++ test sources.
15586 # Object file extension for compiled C++ test sources.
15590 # Code to be used in simple compile tests
15591 lt_simple_compile_test_code="int some_variable = 0;\n"
15593 # Code to be used in simple link tests
15594 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15596 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15598 # If no C compiler was specified, use CC.
15601 # Allow CC to be a program name with arguments.
15605 # Allow CC to be a program name with arguments.
15610 lt_save_with_gnu_ld=$with_gnu_ld
15611 lt_save_path_LD=$lt_cv_path_LD
15612 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15613 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15615 unset lt_cv_prog_gnu_ld
15617 if test -n "${lt_cv_path_LDCXX+set}"; then
15618 lt_cv_path_LD=$lt_cv_path_LDCXX
15620 unset lt_cv_path_LD
15622 test -z "${LDCXX+set}" || LD=$LDCXX
15626 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15628 # We don't want -fno-exception wen compiling C++ code, so set the
15629 # no_builtin_flag separately
15630 if test "$GXX" = yes; then
15631 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15633 lt_prog_compiler_no_builtin_flag_CXX=
15636 if test "$GXX" = yes; then
15637 # Set up default GNU C++ configuration
15640 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15641 if test "${with_gnu_ld+set}" = set; then
15642 withval="$with_gnu_ld"
15643 test "$withval" = no || with_gnu_ld=yes
15648 if test "$GCC" = yes; then
15649 # Check if gcc -print-prog-name=ld gives a path.
15650 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15651 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15654 # gcc leaves a trailing carriage return which upsets mingw
15655 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15657 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15660 # Accept absolute paths.
15662 re_direlt='/[^/][^/]*/\.\./'
15663 # Canonicalize the pathname of ld
15664 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15665 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15666 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15668 test -z "$LD" && LD="$ac_prog"
15671 # If it fails, then pretend we aren't using GCC.
15675 # If it is relative, then search for the first ld in PATH.
15676 with_gnu_ld=unknown
15679 elif test "$with_gnu_ld" = yes; then
15680 echo "$as_me:$LINENO: checking for GNU ld" >&5
15681 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15683 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15684 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15686 if test "${lt_cv_path_LD+set}" = set; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15689 if test -z "$LD"; then
15690 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15691 for ac_dir in $PATH; do
15693 test -z "$ac_dir" && ac_dir=.
15694 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15695 lt_cv_path_LD="$ac_dir/$ac_prog"
15696 # Check to see if the program is GNU ld. I'd rather use --version,
15697 # but apparently some GNU ld's only accept -v.
15698 # Break only if it was the GNU/non-GNU ld that we prefer.
15699 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15700 *GNU* | *'with BFD'*)
15701 test "$with_gnu_ld" != no && break
15704 test "$with_gnu_ld" != yes && break
15711 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15715 LD="$lt_cv_path_LD"
15716 if test -n "$LD"; then
15717 echo "$as_me:$LINENO: result: $LD" >&5
15718 echo "${ECHO_T}$LD" >&6
15720 echo "$as_me:$LINENO: result: no" >&5
15721 echo "${ECHO_T}no" >&6
15723 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15724 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15725 { (exit 1); exit 1; }; }
15726 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15727 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15728 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15732 case `$LD -v 2>&1 </dev/null` in
15733 *GNU* | *'with BFD'*)
15734 lt_cv_prog_gnu_ld=yes
15737 lt_cv_prog_gnu_ld=no
15741 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15742 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15743 with_gnu_ld=$lt_cv_prog_gnu_ld
15747 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15748 # archiving commands below assume that GNU ld is being used.
15749 if test "$with_gnu_ld" = yes; then
15750 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15751 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'
15753 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15754 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15756 # If archive_cmds runs LD, not CC, wlarc should be empty
15757 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15758 # investigate it a little bit more. (MM)
15761 # ancient GNU ld didn't support --whole-archive et. al.
15762 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15763 grep 'no-whole-archive' > /dev/null; then
15764 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15766 whole_archive_flag_spec_CXX=
15772 # A generic and very simple default shared library creation
15773 # command for GNU C++ for the case where it uses the native
15774 # linker, instead of GNU ld. If possible, this setting should
15775 # overridden to take advantage of the native linker features on
15776 # the platform it is being used on.
15777 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15780 # Commands to make compiler produce verbose output that lists
15781 # what "hidden" libraries, object files and flags are used when
15782 # linking a shared library.
15783 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15791 # PORTME: fill in a description of your system's C++ link characteristics
15792 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15793 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15797 # FIXME: insert proper C++ library support
15801 if test "$host_cpu" = ia64; then
15802 # On IA64, the linker does run time linking by default, so we don't
15803 # have to do anything special.
15804 aix_use_runtimelinking=no
15805 exp_sym_flag='-Bexport'
15808 aix_use_runtimelinking=no
15810 # Test if we are trying to use run time linking or normal
15811 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15812 # need to do runtime linking.
15813 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15814 for ld_flag in $LDFLAGS; do
15817 aix_use_runtimelinking=yes
15824 exp_sym_flag='-bexport'
15825 no_entry_flag='-bnoentry'
15828 # When large executables or shared objects are built, AIX ld can
15829 # have problems creating the table of contents. If linking a library
15830 # or program results in "error TOC overflow" add -mminimal-toc to
15831 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15832 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15834 archive_cmds_CXX=''
15835 hardcode_direct_CXX=yes
15836 hardcode_libdir_separator_CXX=':'
15837 link_all_deplibs_CXX=yes
15839 if test "$GXX" = yes; then
15840 case $host_os in aix4.012|aix4.012.*)
15841 # We only want to do this on AIX 4.2 and lower, the check
15842 # below for broken collect2 doesn't work under 4.3+
15843 collect2name=`${CC} -print-prog-name=collect2`
15844 if test -f "$collect2name" && \
15845 strings "$collect2name" | grep resolve_lib_name >/dev/null
15847 # We have reworked collect2
15848 hardcode_direct_CXX=yes
15850 # We have old collect2
15851 hardcode_direct_CXX=unsupported
15852 # It fails to find uninstalled libraries when the uninstalled
15853 # path is not listed in the libpath. Setting hardcode_minus_L
15854 # to unsupported forces relinking
15855 hardcode_minus_L_CXX=yes
15856 hardcode_libdir_flag_spec_CXX='-L$libdir'
15857 hardcode_libdir_separator_CXX=
15860 shared_flag='-shared'
15863 if test "$host_cpu" = ia64; then
15864 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15865 # chokes on -Wl,-G. The following line is correct:
15868 if test "$aix_use_runtimelinking" = yes; then
15869 shared_flag='${wl}-G'
15871 shared_flag='${wl}-bM:SRE'
15876 # It seems that -bexpall does not export symbols beginning with
15877 # underscore (_), so it is better to generate a list of symbols to export.
15878 always_export_symbols_CXX=yes
15879 if test "$aix_use_runtimelinking" = yes; then
15880 # Warning - without using the other runtime loading flags (-brtl),
15881 # -berok will link without error, but may produce a broken library.
15882 allow_undefined_flag_CXX='-berok'
15883 # Determine the default libpath from the value encoded in an empty executable.
15884 cat >conftest.$ac_ext <<_ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h. */
15899 rm -f conftest.$ac_objext conftest$ac_exeext
15900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15901 (eval $ac_link) 2>conftest.er1
15903 grep -v '^ *+' conftest.er1 >conftest.err
15905 cat conftest.err >&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } &&
15908 { ac_try='test -z "$ac_cxx_werror_flag"
15909 || test ! -s conftest.err'
15910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911 (eval $ac_try) 2>&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); }; } &&
15915 { ac_try='test -s conftest$ac_exeext'
15916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917 (eval $ac_try) 2>&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); }; }; then
15922 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15924 # Check for a 64-bit object if we didn't find anything.
15925 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; }
15928 echo "$as_me: failed program was:" >&5
15929 sed 's/^/| /' conftest.$ac_ext >&5
15932 rm -f conftest.err conftest.$ac_objext \
15933 conftest$ac_exeext conftest.$ac_ext
15934 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15936 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15938 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"
15940 if test "$host_cpu" = ia64; then
15941 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15942 allow_undefined_flag_CXX="-z nodefs"
15943 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"
15945 # Determine the default libpath from the value encoded in an empty executable.
15946 cat >conftest.$ac_ext <<_ACEOF
15949 cat confdefs.h >>conftest.$ac_ext
15950 cat >>conftest.$ac_ext <<_ACEOF
15951 /* end confdefs.h. */
15961 rm -f conftest.$ac_objext conftest$ac_exeext
15962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15963 (eval $ac_link) 2>conftest.er1
15965 grep -v '^ *+' conftest.er1 >conftest.err
15967 cat conftest.err >&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); } &&
15970 { ac_try='test -z "$ac_cxx_werror_flag"
15971 || test ! -s conftest.err'
15972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15973 (eval $ac_try) 2>&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); }; } &&
15977 { ac_try='test -s conftest$ac_exeext'
15978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979 (eval $ac_try) 2>&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); }; }; then
15984 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15986 # Check for a 64-bit object if we didn't find anything.
15987 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; }
15990 echo "$as_me: failed program was:" >&5
15991 sed 's/^/| /' conftest.$ac_ext >&5
15994 rm -f conftest.err conftest.$ac_objext \
15995 conftest$ac_exeext conftest.$ac_ext
15996 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15998 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15999 # Warning - without using the other run time loading flags,
16000 # -berok will link without error, but may produce a broken library.
16001 no_undefined_flag_CXX=' ${wl}-bernotok'
16002 allow_undefined_flag_CXX=' ${wl}-berok'
16003 # -bexpall does not export symbols beginning with underscore (_)
16004 always_export_symbols_CXX=yes
16005 # Exported symbols can be pulled into shared objects from archives
16006 whole_archive_flag_spec_CXX=' '
16007 archive_cmds_need_lc_CXX=yes
16008 # This is similar to how AIX traditionally builds it's shared libraries.
16009 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'
16014 case $cc_basename in
16016 # FIXME: insert proper C++ library support
16023 cygwin* | mingw* | pw32*)
16024 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16025 # as there is no search path for DLLs.
16026 hardcode_libdir_flag_spec_CXX='-L$libdir'
16027 allow_undefined_flag_CXX=unsupported
16028 always_export_symbols_CXX=no
16029 enable_shared_with_static_runtimes_CXX=yes
16031 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16032 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'
16033 # If the export-symbols file already is a .def file (1st line
16034 # is EXPORTS), use it as is; otherwise, prepend...
16035 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16036 cp $export_symbols $output_objdir/$soname.def;
16038 echo EXPORTS > $output_objdir/$soname.def;
16039 cat $export_symbols >> $output_objdir/$soname.def;
16041 $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'
16046 darwin* | rhapsody*)
16048 rhapsody* | darwin1.[012])
16049 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
16052 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16053 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16055 case ${MACOSX_DEPLOYMENT_TARGET} in
16057 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16060 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
16066 archive_cmds_need_lc_CXX=no
16067 hardcode_direct_CXX=no
16068 hardcode_automatic_CXX=yes
16069 hardcode_shlibpath_var_CXX=unsupported
16070 whole_archive_flag_spec_CXX=''
16071 link_all_deplibs_CXX=yes
16073 if test "$GXX" = yes ; then
16074 lt_int_apple_cc_single_mod=no
16075 output_verbose_link_cmd='echo'
16076 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
16077 lt_int_apple_cc_single_mod=yes
16079 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16080 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16082 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'
16084 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16085 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16086 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16087 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}'
16089 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}'
16091 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}'
16093 case "$cc_basename" in
16095 output_verbose_link_cmd='echo'
16096 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'
16097 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16098 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16099 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}'
16100 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}'
16110 case $cc_basename in
16112 # FIXME: insert proper C++ library support
16116 # Green Hills C++ Compiler
16117 # FIXME: insert proper C++ library support
16121 # FIXME: insert proper C++ library support
16127 # C++ shared libraries reported to be fairly broken before switch to ELF
16131 archive_cmds_need_lc_CXX=no
16133 freebsd* | kfreebsd*-gnu)
16134 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16141 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16142 hardcode_libdir_separator_CXX=:
16143 export_dynamic_flag_spec_CXX='${wl}-E'
16144 hardcode_direct_CXX=yes
16145 hardcode_minus_L_CXX=yes # Not in the search PATH,
16146 # but as the default
16147 # location of the library.
16149 case $cc_basename in
16151 # FIXME: insert proper C++ library support
16155 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'
16156 # Commands to make compiler produce verbose output that lists
16157 # what "hidden" libraries, object files and flags are used when
16158 # linking a shared library.
16160 # There doesn't appear to be a way to prevent this compiler from
16161 # explicitly linking system object files so we need to strip them
16162 # from the output so that they don't get included in the library
16164 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'
16167 if test "$GXX" = yes; then
16168 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'
16170 # FIXME: insert proper C++ library support
16177 if test $with_gnu_ld = no; then
16178 case "$host_cpu" in
16180 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16181 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
16182 hardcode_libdir_separator_CXX=:
16185 hardcode_libdir_flag_spec_CXX='-L$libdir'
16188 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16189 hardcode_libdir_separator_CXX=:
16190 export_dynamic_flag_spec_CXX='${wl}-E'
16194 case "$host_cpu" in
16196 hardcode_direct_CXX=no
16197 hardcode_shlibpath_var_CXX=no
16200 hardcode_direct_CXX=no
16201 hardcode_shlibpath_var_CXX=no
16202 hardcode_minus_L_CXX=yes # Not in the search PATH,
16203 # but as the default
16204 # location of the library.
16207 hardcode_direct_CXX=yes
16208 hardcode_minus_L_CXX=yes # Not in the search PATH,
16209 # but as the default
16210 # location of the library.
16214 case $cc_basename in
16216 # FIXME: insert proper C++ library support
16220 case "$host_cpu" in
16222 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16225 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16228 # Commands to make compiler produce verbose output that lists
16229 # what "hidden" libraries, object files and flags are used when
16230 # linking a shared library.
16232 # There doesn't appear to be a way to prevent this compiler from
16233 # explicitly linking system object files so we need to strip them
16234 # from the output so that they don't get included in the library
16236 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'
16239 if test "$GXX" = yes; then
16240 if test $with_gnu_ld = no; then
16241 case "$host_cpu" in
16243 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16246 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'
16251 # FIXME: insert proper C++ library support
16258 case $cc_basename in
16261 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'
16263 # Archives containing C++ object files must be created using
16264 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16265 # necessary to make sure instantiated templates are included
16267 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16270 if test "$GXX" = yes; then
16271 if test "$with_gnu_ld" = no; then
16272 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'
16274 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'
16277 link_all_deplibs_CXX=yes
16280 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16281 hardcode_libdir_separator_CXX=:
16284 case $cc_basename in
16286 # Kuck and Associates, Inc. (KAI) C++ Compiler
16288 # KCC will only create a shared library if the output file
16289 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16290 # to its proper name (with version) after linking.
16291 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'
16292 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'
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 $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'
16303 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16304 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16306 # Archives containing C++ object files must be created using
16307 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16308 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16313 # version 8.0 and above of icpc choke on multiply defined symbols
16314 # if we add $predep_objects and $postdep_objects, however 7.1 and
16315 # earlier do not add the objects themselves.
16316 case `$CC -V 2>&1` in
16318 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16319 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'
16321 *) # Version 8.0 or newer
16322 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16323 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16326 archive_cmds_need_lc_CXX=no
16327 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16328 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16329 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16333 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16334 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'
16336 runpath_var=LD_RUN_PATH
16337 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16338 hardcode_libdir_separator_CXX=:
16340 # Commands to make compiler produce verbose output that lists
16341 # what "hidden" libraries, object files and flags are used when
16342 # linking a shared library.
16344 # There doesn't appear to be a way to prevent this compiler from
16345 # explicitly linking system object files so we need to strip them
16346 # from the output so that they don't get included in the library
16348 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'
16353 # FIXME: insert proper C++ library support
16357 # FIXME: insert proper C++ library support
16361 case $cc_basename in
16363 # FIXME: insert proper C++ library support
16367 # FIXME: insert proper C++ library support
16373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16374 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16376 hardcode_libdir_flag_spec_CXX='-R$libdir'
16377 hardcode_direct_CXX=yes
16378 hardcode_shlibpath_var_CXX=no
16380 # Workaround some broken pre-1.5 toolchains
16381 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16384 # C++ shared libraries are fairly broken
16388 hardcode_direct_CXX=yes
16389 hardcode_shlibpath_var_CXX=no
16390 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16391 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16392 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16393 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16394 export_dynamic_flag_spec_CXX='${wl}-E'
16395 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16397 output_verbose_link_cmd='echo'
16400 case $cc_basename in
16402 # Kuck and Associates, Inc. (KAI) C++ Compiler
16404 # KCC will only create a shared library if the output file
16405 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16406 # to its proper name (with version) after linking.
16407 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'
16409 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16410 hardcode_libdir_separator_CXX=:
16412 # Archives containing C++ object files must be created using
16413 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16414 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16418 # Rational C++ 2.4.1
16419 # FIXME: insert proper C++ library support
16423 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16424 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'
16426 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16427 hardcode_libdir_separator_CXX=:
16429 # Commands to make compiler produce verbose output that lists
16430 # what "hidden" libraries, object files and flags are used when
16431 # linking a shared library.
16433 # There doesn't appear to be a way to prevent this compiler from
16434 # explicitly linking system object files so we need to strip them
16435 # from the output so that they don't get included in the library
16437 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'
16440 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16441 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16442 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'
16444 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16445 hardcode_libdir_separator_CXX=:
16447 # Commands to make compiler produce verbose output that lists
16448 # what "hidden" libraries, object files and flags are used when
16449 # linking a shared library.
16450 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16453 # FIXME: insert proper C++ library support
16460 case $cc_basename in
16462 # Kuck and Associates, Inc. (KAI) C++ Compiler
16464 # KCC will only create a shared library if the output file
16465 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16466 # to its proper name (with version) after linking.
16467 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'
16469 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16470 hardcode_libdir_separator_CXX=:
16472 # Archives containing C++ object files must be created using
16473 # the KAI C++ compiler.
16474 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16477 # Rational C++ 2.4.1
16478 # FIXME: insert proper C++ library support
16482 allow_undefined_flag_CXX=' -expect_unresolved \*'
16483 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'
16484 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16485 echo "-hidden">> $lib.exp~
16486 $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~
16489 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16490 hardcode_libdir_separator_CXX=:
16492 # Commands to make compiler produce verbose output that lists
16493 # what "hidden" libraries, object files and flags are used when
16494 # linking a shared library.
16496 # There doesn't appear to be a way to prevent this compiler from
16497 # explicitly linking system object files so we need to strip them
16498 # from the output so that they don't get included in the library
16500 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'
16503 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16504 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16505 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'
16507 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16508 hardcode_libdir_separator_CXX=:
16510 # Commands to make compiler produce verbose output that lists
16511 # what "hidden" libraries, object files and flags are used when
16512 # linking a shared library.
16513 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16516 # FIXME: insert proper C++ library support
16523 # FIXME: insert proper C++ library support
16527 archive_cmds_need_lc_CXX=no
16528 case $cc_basename in
16530 # FIXME: insert proper C++ library support
16534 # FIXME: insert proper C++ library support
16540 case $cc_basename in
16543 # FIXME: insert proper C++ library support
16548 # FIXME: insert proper C++ library support
16552 # FIXME: insert proper C++ library support
16558 case $cc_basename in
16560 # Sun C++ 4.2, 5.x and Centerline C++
16561 no_undefined_flag_CXX=' -zdefs'
16562 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16563 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16564 $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'
16566 hardcode_libdir_flag_spec_CXX='-R$libdir'
16567 hardcode_shlibpath_var_CXX=no
16569 solaris2.0-5 | solaris2.0-5.*) ;;
16571 # The C++ compiler is used as linker so we must use $wl
16572 # flag to pass the commands to the underlying system
16574 # Supported since Solaris 2.6 (maybe 2.5.1?)
16575 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16578 link_all_deplibs_CXX=yes
16580 # Commands to make compiler produce verbose output that lists
16581 # what "hidden" libraries, object files and flags are used when
16582 # linking a shared library.
16584 # There doesn't appear to be a way to prevent this compiler from
16585 # explicitly linking system object files so we need to strip them
16586 # from the output so that they don't get included in the library
16588 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'
16590 # Archives containing C++ object files must be created using
16591 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16592 # necessary to make sure instantiated templates are included
16594 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16597 # Green Hills C++ Compiler
16598 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16600 # The C++ compiler must be used to create the archive.
16601 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16604 # GNU C++ compiler with Solaris linker
16605 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16606 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16607 if $CC --version | grep -v '^2\.7' > /dev/null; then
16608 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16609 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16610 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16612 # Commands to make compiler produce verbose output that lists
16613 # what "hidden" libraries, object files and flags are used when
16614 # linking a shared library.
16615 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16617 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16619 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16620 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16621 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16623 # Commands to make compiler produce verbose output that lists
16624 # what "hidden" libraries, object files and flags are used when
16625 # linking a shared library.
16626 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16629 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16634 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16635 archive_cmds_need_lc_CXX=no
16638 case $cc_basename in
16640 # NonStop-UX NCC 3.20
16641 # FIXME: insert proper C++ library support
16645 # FIXME: insert proper C++ library support
16651 # FIXME: insert proper C++ library support
16655 # FIXME: insert proper C++ library support
16659 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16660 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16661 test "$ld_shlibs_CXX" = no && can_build_shared=no
16667 cat > conftest.$ac_ext <<EOF
16671 Foo (void) { a = 0; }
16677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16678 (eval $ac_compile) 2>&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; then
16682 # Parse the compiler output and extract the necessary
16683 # objects, libraries and library flags.
16685 # Sentinel used to keep track of whether or not we are before
16686 # the conftest object file.
16687 pre_test_object_deps_done=no
16689 # The `*' in the case matches for architectures that use `case' in
16690 # $output_verbose_cmd can trigger glob expansion during the loop
16691 # eval without this substitution.
16692 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16694 for p in `eval $output_verbose_link_cmd`; do
16698 # Some compilers place space between "-{L,R}" and the path.
16699 # Remove the space.
16700 if test $p = "-L" \
16701 || test $p = "-R"; then
16708 if test "$pre_test_object_deps_done" = no; then
16711 # Internal compiler library paths should come after those
16712 # provided the user. The postdeps already come after the
16713 # user supplied libs so there is no need to process them.
16714 if test -z "$compiler_lib_search_path_CXX"; then
16715 compiler_lib_search_path_CXX="${prev}${p}"
16717 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16720 # The "-l" case would never come before the object being
16721 # linked, so don't bother handling this case.
16724 if test -z "$postdeps_CXX"; then
16725 postdeps_CXX="${prev}${p}"
16727 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16733 # This assumes that the test object file only shows up
16734 # once in the compiler output.
16735 if test "$p" = "conftest.$objext"; then
16736 pre_test_object_deps_done=yes
16740 if test "$pre_test_object_deps_done" = no; then
16741 if test -z "$predep_objects_CXX"; then
16742 predep_objects_CXX="$p"
16744 predep_objects_CXX="$predep_objects_CXX $p"
16747 if test -z "$postdep_objects_CXX"; then
16748 postdep_objects_CXX="$p"
16750 postdep_objects_CXX="$postdep_objects_CXX $p"
16755 *) ;; # Ignore the rest.
16763 echo "libtool.m4: error: problem compiling CXX test program"
16766 $rm -f confest.$objext
16768 case " $postdeps_CXX " in
16769 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16772 lt_prog_compiler_wl_CXX=
16773 lt_prog_compiler_pic_CXX=
16774 lt_prog_compiler_static_CXX=
16776 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16777 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16779 # C++ specific cases for pic, static, wl, etc.
16780 if test "$GXX" = yes; then
16781 lt_prog_compiler_wl_CXX='-Wl,'
16782 lt_prog_compiler_static_CXX='-static'
16786 # All AIX code is PIC.
16787 if test "$host_cpu" = ia64; then
16788 # AIX 5 now supports IA64 processor
16789 lt_prog_compiler_static_CXX='-Bstatic'
16793 # FIXME: we need at least 68020 code to build shared libraries, but
16794 # adding the `-m68020' flag to GCC prevents building anything better,
16796 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16798 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16799 # PIC is the default for these OSes.
16801 mingw* | os2* | pw32*)
16802 # This hack is so that the source file can tell whether it is being
16803 # built for inclusion in a dll (and should export symbols for example).
16804 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16806 darwin* | rhapsody*)
16807 # PIC is the default on this platform
16808 # Common symbols not allowed in MH_DYLIB files
16809 lt_prog_compiler_pic_CXX='-fno-common'
16812 # DJGPP does not support shared libraries at all
16813 lt_prog_compiler_pic_CXX=
16816 if test -d /usr/nec; then
16817 lt_prog_compiler_pic_CXX=-Kconform_pic
16821 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16822 # not for PA HP-UX.
16823 case "$host_cpu" in
16827 lt_prog_compiler_pic_CXX='-fPIC'
16832 lt_prog_compiler_pic_CXX='-fPIC'
16838 # All AIX code is PIC.
16839 if test "$host_cpu" = ia64; then
16840 # AIX 5 now supports IA64 processor
16841 lt_prog_compiler_static_CXX='-Bstatic'
16843 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16847 case $cc_basename in
16849 # Green Hills C++ Compiler
16850 # _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"
16855 # PIC is the default on this platform
16856 # Common symbols not allowed in MH_DYLIB files
16857 case "$cc_basename" in
16859 lt_prog_compiler_pic_CXX='-qnocommon'
16860 lt_prog_compiler_wl_CXX='-Wl,'
16865 case $cc_basename in
16867 lt_prog_compiler_pic_CXX='-KPIC'
16870 # Green Hills C++ Compiler
16871 lt_prog_compiler_pic_CXX='-pic'
16877 freebsd* | kfreebsd*-gnu)
16878 # FreeBSD uses GNU C++
16880 hpux9* | hpux10* | hpux11*)
16881 case $cc_basename in
16883 lt_prog_compiler_wl_CXX='-Wl,'
16884 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16885 if test "$host_cpu" != ia64; then
16886 lt_prog_compiler_pic_CXX='+Z'
16890 lt_prog_compiler_wl_CXX='-Wl,'
16891 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16892 case "$host_cpu" in
16897 lt_prog_compiler_pic_CXX='+Z'
16905 irix5* | irix6* | nonstopux*)
16906 case $cc_basename in
16908 lt_prog_compiler_wl_CXX='-Wl,'
16909 lt_prog_compiler_static_CXX='-non_shared'
16910 # CC pic flag -KPIC is the default.
16917 case $cc_basename in
16920 lt_prog_compiler_wl_CXX='--backend -Wl,'
16921 lt_prog_compiler_pic_CXX='-fPIC'
16925 lt_prog_compiler_wl_CXX='-Wl,'
16926 lt_prog_compiler_pic_CXX='-KPIC'
16927 lt_prog_compiler_static_CXX='-static'
16931 # Make sure the PIC flag is empty. It appears that all Alpha
16932 # Linux and Compaq Tru64 Unix objects are PIC.
16933 lt_prog_compiler_pic_CXX=
16934 lt_prog_compiler_static_CXX='-non_shared'
16945 case $cc_basename in
16947 lt_prog_compiler_pic_CXX='-W c,exportall'
16955 osf3* | osf4* | osf5*)
16956 case $cc_basename in
16958 lt_prog_compiler_wl_CXX='--backend -Wl,'
16961 # Rational C++ 2.4.1
16962 lt_prog_compiler_pic_CXX='-pic'
16965 # Digital/Compaq C++
16966 lt_prog_compiler_wl_CXX='-Wl,'
16967 # Make sure the PIC flag is empty. It appears that all Alpha
16968 # Linux and Compaq Tru64 Unix objects are PIC.
16969 lt_prog_compiler_pic_CXX=
16970 lt_prog_compiler_static_CXX='-non_shared'
16979 case $cc_basename in
16981 lt_prog_compiler_pic_CXX='-fPIC'
16988 case $cc_basename in
16990 # Sun C++ 4.2, 5.x and Centerline C++
16991 lt_prog_compiler_pic_CXX='-KPIC'
16992 lt_prog_compiler_static_CXX='-Bstatic'
16993 lt_prog_compiler_wl_CXX='-Qoption ld '
16996 # Green Hills C++ Compiler
16997 lt_prog_compiler_pic_CXX='-PIC'
17004 case $cc_basename in
17007 lt_prog_compiler_pic_CXX='-pic'
17008 lt_prog_compiler_static_CXX='-Bstatic'
17012 lt_prog_compiler_pic_CXX='-pic'
17019 case $cc_basename in
17021 # NonStop-UX NCC 3.20
17022 lt_prog_compiler_pic_CXX='-KPIC'
17033 lt_prog_compiler_can_build_shared_CXX=no
17038 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17039 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
17042 # Check to make sure the PIC flag actually works.
17044 if test -n "$lt_prog_compiler_pic_CXX"; then
17046 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17047 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
17048 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
17049 echo $ECHO_N "(cached) $ECHO_C" >&6
17051 lt_prog_compiler_pic_works_CXX=no
17052 ac_outfile=conftest.$ac_objext
17053 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17054 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17055 # Insert the option either (1) after the last *FLAGS variable, or
17056 # (2) before a word containing "conftest.", or (3) at the end.
17057 # Note that $ac_compile itself does not contain backslashes and begins
17058 # with a dollar sign (not a hyphen), so the echo should work correctly.
17059 # The option is referenced via a variable to avoid confusing sed.
17060 lt_compile=`echo "$ac_compile" | $SED \
17061 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17063 -e 's:$: $lt_compiler_flag:'`
17064 (eval echo "\"\$as_me:17064: $lt_compile\"" >&5)
17065 (eval "$lt_compile" 2>conftest.err)
17067 cat conftest.err >&5
17068 echo "$as_me:17068: \$? = $ac_status" >&5
17069 if (exit $ac_status) && test -s "$ac_outfile"; then
17070 # The compiler can only warn and ignore the option if not recognized
17071 # So say no if there are warnings
17072 if test ! -s conftest.err; then
17073 lt_prog_compiler_pic_works_CXX=yes
17079 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
17080 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
17082 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
17083 case $lt_prog_compiler_pic_CXX in
17085 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17088 lt_prog_compiler_pic_CXX=
17089 lt_prog_compiler_can_build_shared_CXX=no
17094 # For platforms which do not support PIC, -DPIC is meaningless:
17096 lt_prog_compiler_pic_CXX=
17099 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17103 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17104 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17105 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17106 echo $ECHO_N "(cached) $ECHO_C" >&6
17108 lt_cv_prog_compiler_c_o_CXX=no
17109 $rm -r conftest 2>/dev/null
17113 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17115 lt_compiler_flag="-o out/conftest2.$ac_objext"
17116 # Insert the option either (1) after the last *FLAGS variable, or
17117 # (2) before a word containing "conftest.", or (3) at the end.
17118 # Note that $ac_compile itself does not contain backslashes and begins
17119 # with a dollar sign (not a hyphen), so the echo should work correctly.
17120 lt_compile=`echo "$ac_compile" | $SED \
17121 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17123 -e 's:$: $lt_compiler_flag:'`
17124 (eval echo "\"\$as_me:17124: $lt_compile\"" >&5)
17125 (eval "$lt_compile" 2>out/conftest.err)
17127 cat out/conftest.err >&5
17128 echo "$as_me:17128: \$? = $ac_status" >&5
17129 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17131 # The compiler can only warn and ignore the option if not recognized
17132 # So say no if there are warnings
17133 if test ! -s out/conftest.err; then
17134 lt_cv_prog_compiler_c_o_CXX=yes
17139 # SGI C++ compiler will create directory out/ii_files/ for
17140 # template instantiation
17141 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17142 $rm out/* && rmdir out
17148 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17149 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
17152 hard_links="nottested"
17153 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17154 # do not overwrite the value of need_locks provided by the user
17155 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17156 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17159 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17161 ln conftest.a conftest.b 2>&5 || hard_links=no
17162 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17163 echo "$as_me:$LINENO: result: $hard_links" >&5
17164 echo "${ECHO_T}$hard_links" >&6
17165 if test "$hard_links" = no; then
17166 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17167 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17174 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17175 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17177 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17180 # If we're using GNU nm, then we don't want the "-C" option.
17181 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17182 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17183 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'
17185 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'
17189 export_symbols_cmds_CXX="$ltdll_cmds"
17192 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17195 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17199 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17200 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17201 test "$ld_shlibs_CXX" = no && can_build_shared=no
17203 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17204 if test "$GCC" = yes; then
17205 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17209 # Do we need to explicitly link libc?
17211 case "x$archive_cmds_need_lc_CXX" in
17213 # Assume -lc should be added
17214 archive_cmds_need_lc_CXX=yes
17216 if test "$enable_shared" = yes && test "$GCC" = yes; then
17217 case $archive_cmds_CXX in
17219 # FIXME: we may have to deal with multi-command sequences.
17222 # Test whether the compiler implicitly links with -lc since on some
17223 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17224 # to ld, don't add -lc before -lgcc.
17225 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17226 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17228 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17231 (eval $ac_compile) 2>&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } 2>conftest.err; then
17237 libobjs=conftest.$ac_objext
17239 wl=$lt_prog_compiler_wl_CXX
17245 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17246 allow_undefined_flag_CXX=
17247 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17248 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }
17253 archive_cmds_need_lc_CXX=no
17255 archive_cmds_need_lc_CXX=yes
17257 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17259 cat conftest.err 1>&5
17262 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17263 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17270 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17271 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17272 library_names_spec=
17273 libname_spec='lib$name'
17277 postuninstall_cmds=
17281 shlibpath_overrides_runpath=unknown
17283 dynamic_linker="$host_os ld.so"
17284 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17285 if test "$GCC" = yes; then
17286 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17287 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17288 # if the path contains ";" then we assume it to be the separator
17289 # otherwise default to the standard path separator (i.e. ":") - it is
17290 # assumed that no part of a normal pathname contains ";" but that should
17291 # okay in the real world where ";" in dirpaths is itself problematic.
17292 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17294 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17297 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17299 need_lib_prefix=unknown
17300 hardcode_into_libs=no
17302 # when you set need_version to no, make sure it does not cause -set_version
17303 # flags to be left without arguments
17304 need_version=unknown
17309 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17310 shlibpath_var=LIBPATH
17312 # AIX 3 has no versioning support, so we append a major version to the name.
17313 soname_spec='${libname}${release}${shared_ext}$major'
17320 hardcode_into_libs=yes
17321 if test "$host_cpu" = ia64; then
17322 # AIX 5 supports IA64
17323 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17324 shlibpath_var=LD_LIBRARY_PATH
17326 # With GCC up to 2.95.x, collect2 would create an import file
17327 # for dependence libraries. The import file would start with
17328 # the line `#! .'. This would cause the generated library to
17329 # depend on `.', always an invalid library. This was fixed in
17330 # development snapshots of GCC prior to 3.0.
17332 aix4 | aix4.[01] | aix4.[01].*)
17333 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17335 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17338 can_build_shared=no
17342 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17343 # soname into executable. Probably we can add versioning support to
17344 # collect2, so additional links can be useful in future.
17345 if test "$aix_use_runtimelinking" = yes; then
17346 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17347 # instead of lib<name>.a to let people know that these are not
17348 # typical AIX shared libraries.
17349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17351 # We preserve .a as extension for shared libraries through AIX4.2
17352 # and later when we are not doing run time linking.
17353 library_names_spec='${libname}${release}.a $libname.a'
17354 soname_spec='${libname}${release}${shared_ext}$major'
17356 shlibpath_var=LIBPATH
17361 library_names_spec='$libname.ixlibrary $libname.a'
17362 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17363 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'
17367 library_names_spec='${libname}${shared_ext}'
17368 dynamic_linker="$host_os ld.so"
17369 shlibpath_var=LIBRARY_PATH
17375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17376 soname_spec='${libname}${release}${shared_ext}$major'
17377 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17378 shlibpath_var=LD_LIBRARY_PATH
17379 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17380 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17381 # the default ld.so.conf also contains /usr/contrib/lib and
17382 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17383 # libtool to hard-code these into programs
17386 cygwin* | mingw* | pw32*)
17387 version_type=windows
17392 case $GCC,$host_os in
17393 yes,cygwin* | yes,mingw* | yes,pw32*)
17394 library_names_spec='$libname.dll.a'
17395 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17396 postinstall_cmds='base_file=`basename \${file}`~
17397 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17398 dldir=$destdir/`dirname \$dlpath`~
17399 test -d \$dldir || mkdir -p \$dldir~
17400 $install_prog $dir/$dlname \$dldir/$dlname'
17401 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17402 dlpath=$dir/\$dldll~
17404 shlibpath_overrides_runpath=yes
17408 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17409 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17410 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17413 # MinGW DLLs use traditional 'lib' prefix
17414 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17415 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17416 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17417 # It is most probably a Windows format PATH printed by
17418 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17419 # path with ; separators, and with drive letters. We can handle the
17420 # drive letters (cygwin fileutils understands them), so leave them,
17421 # especially as we might pass files found there to a mingw objdump,
17422 # which wouldn't understand a cygwinified path. Ahh.
17423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17425 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17429 # pw32 DLLs use 'pw' prefix rather than 'lib'
17430 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17436 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17439 dynamic_linker='Win32 ld.exe'
17440 # FIXME: first we should search . and the directory the executable is in
17444 darwin* | rhapsody*)
17445 dynamic_linker="$host_os dyld"
17446 version_type=darwin
17449 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17450 soname_spec='${libname}${release}${major}$shared_ext'
17451 shlibpath_overrides_runpath=yes
17452 shlibpath_var=DYLD_LIBRARY_PATH
17453 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17454 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17455 if test "$GCC" = yes; then
17456 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"`
17458 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17460 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17468 soname_spec='${libname}${release}${shared_ext}$major'
17469 shlibpath_var=LD_LIBRARY_PATH
17480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17481 soname_spec='${libname}${release}${shared_ext}$major'
17482 shlibpath_var=LD_LIBRARY_PATH
17483 shlibpath_overrides_runpath=no
17484 hardcode_into_libs=yes
17485 dynamic_linker='GNU ld.so'
17489 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17490 version_type=freebsd-$objformat
17491 case $version_type in
17493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17498 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17502 shlibpath_var=LD_LIBRARY_PATH
17505 shlibpath_overrides_runpath=yes
17507 freebsd3.01* | freebsdelf3.01*)
17508 shlibpath_overrides_runpath=yes
17509 hardcode_into_libs=yes
17512 shlibpath_overrides_runpath=no
17513 hardcode_into_libs=yes
17522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17523 soname_spec='${libname}${release}${shared_ext}$major'
17524 shlibpath_var=LD_LIBRARY_PATH
17525 hardcode_into_libs=yes
17528 hpux9* | hpux10* | hpux11*)
17529 # Give a soname corresponding to the major version so that dld.sl refuses to
17530 # link against other versions.
17534 case "$host_cpu" in
17537 hardcode_into_libs=yes
17538 dynamic_linker="$host_os dld.so"
17539 shlibpath_var=LD_LIBRARY_PATH
17540 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17542 soname_spec='${libname}${release}${shared_ext}$major'
17543 if test "X$HPUX_IA64_MODE" = X32; then
17544 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17546 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17552 hardcode_into_libs=yes
17553 dynamic_linker="$host_os dld.sl"
17554 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17555 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17557 soname_spec='${libname}${release}${shared_ext}$major'
17558 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17559 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17563 dynamic_linker="$host_os dld.sl"
17564 shlibpath_var=SHLIB_PATH
17565 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17567 soname_spec='${libname}${release}${shared_ext}$major'
17570 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17571 postinstall_cmds='chmod 555 $lib'
17574 irix5* | irix6* | nonstopux*)
17576 nonstopux*) version_type=nonstopux ;;
17578 if test "$lt_cv_prog_gnu_ld" = yes; then
17586 soname_spec='${libname}${release}${shared_ext}$major'
17587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17589 irix5* | nonstopux*)
17590 libsuff= shlibsuff=
17593 case $LD in # libtool.m4 will add one of these switches to LD
17594 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17595 libsuff= shlibsuff= libmagic=32-bit;;
17596 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17597 libsuff=32 shlibsuff=N32 libmagic=N32;;
17598 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17599 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17600 *) libsuff= shlibsuff= libmagic=never-match;;
17604 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17605 shlibpath_overrides_runpath=no
17606 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17607 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17608 hardcode_into_libs=yes
17611 # No shared lib support for Linux oldld, aout, or coff.
17612 linux*oldld* | linux*aout* | linux*coff*)
17616 # This must be Linux ELF.
17621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17622 soname_spec='${libname}${release}${shared_ext}$major'
17623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17624 shlibpath_var=LD_LIBRARY_PATH
17625 shlibpath_overrides_runpath=no
17626 # This implies no fast_install, which is unacceptable.
17627 # Some rework will be needed to allow for fast_install
17628 # before this can be enabled.
17629 hardcode_into_libs=yes
17631 # Append ld.so.conf contents to the search path
17632 if test -f /etc/ld.so.conf; then
17633 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17634 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17637 # We used to test for /lib/ld.so.1 and disable shared libraries on
17638 # powerpc, because MkLinux only supported shared libraries with the
17639 # GNU dynamic linker. Since this was broken with cross compilers,
17640 # most powerpc-linux boxes support dynamic linking these days and
17641 # people can always --disable-shared, the test was removed, and we
17642 # assume the GNU/Linux dynamic linker is in use.
17643 dynamic_linker='GNU/Linux ld.so'
17650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17651 soname_spec='${libname}${release}${shared_ext}$major'
17652 shlibpath_var=LD_LIBRARY_PATH
17653 shlibpath_overrides_runpath=no
17654 hardcode_into_libs=yes
17655 dynamic_linker='GNU ld.so'
17662 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17665 dynamic_linker='NetBSD (a.out) ld.so'
17667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17668 soname_spec='${libname}${release}${shared_ext}$major'
17669 dynamic_linker='NetBSD ld.elf_so'
17671 shlibpath_var=LD_LIBRARY_PATH
17672 shlibpath_overrides_runpath=yes
17673 hardcode_into_libs=yes
17678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17679 shlibpath_var=LD_LIBRARY_PATH
17680 shlibpath_overrides_runpath=yes
17687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17688 soname_spec='${libname}${release}${shared_ext}$major'
17689 shlibpath_var=LD_LIBRARY_PATH
17690 shlibpath_overrides_runpath=yes
17697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17699 shlibpath_var=LD_LIBRARY_PATH
17700 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17702 openbsd2.[89] | openbsd2.[89].*)
17703 shlibpath_overrides_runpath=no
17706 shlibpath_overrides_runpath=yes
17710 shlibpath_overrides_runpath=yes
17715 libname_spec='$name'
17718 library_names_spec='$libname${shared_ext} $libname.a'
17719 dynamic_linker='OS/2 ld.exe'
17720 shlibpath_var=LIBPATH
17723 osf3* | osf4* | osf5*)
17727 soname_spec='${libname}${release}${shared_ext}$major'
17728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17729 shlibpath_var=LD_LIBRARY_PATH
17730 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17731 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17736 soname_spec='${libname}${release}${shared_ext}$major'
17737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17738 shlibpath_var=LD_LIBRARY_PATH
17745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17746 soname_spec='${libname}${release}${shared_ext}$major'
17747 shlibpath_var=LD_LIBRARY_PATH
17748 shlibpath_overrides_runpath=yes
17749 hardcode_into_libs=yes
17750 # ldd complains unless libraries are executable
17751 postinstall_cmds='chmod +x $lib'
17756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17757 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17758 shlibpath_var=LD_LIBRARY_PATH
17759 shlibpath_overrides_runpath=yes
17760 if test "$with_gnu_ld" = yes; then
17766 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17769 soname_spec='${libname}${release}${shared_ext}$major'
17770 shlibpath_var=LD_LIBRARY_PATH
17771 case $host_vendor in
17773 shlibpath_overrides_runpath=no
17775 export_dynamic_flag_spec='${wl}-Blargedynsym'
17776 runpath_var=LD_RUN_PATH
17784 shlibpath_overrides_runpath=no
17785 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17791 if test -d /usr/nec ;then
17793 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17794 soname_spec='$libname${shared_ext}.$major'
17795 shlibpath_var=LD_LIBRARY_PATH
17801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17802 soname_spec='${libname}${release}${shared_ext}$major'
17803 shlibpath_var=LD_LIBRARY_PATH
17810 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17811 echo "${ECHO_T}$dynamic_linker" >&6
17812 test "$dynamic_linker" = no && can_build_shared=no
17814 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17815 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17816 hardcode_action_CXX=
17817 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17818 test -n "$runpath_var_CXX" || \
17819 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17821 # We can hardcode non-existant directories.
17822 if test "$hardcode_direct_CXX" != no &&
17823 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17824 # have to relink, otherwise we might link with an installed library
17825 # when we should be linking with a yet-to-be-installed one
17826 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17827 test "$hardcode_minus_L_CXX" != no; then
17828 # Linking always hardcodes the temporary library directory.
17829 hardcode_action_CXX=relink
17831 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17832 hardcode_action_CXX=immediate
17835 # We cannot hardcode anything, or else we can only hardcode existing
17837 hardcode_action_CXX=unsupported
17839 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17840 echo "${ECHO_T}$hardcode_action_CXX" >&6
17842 if test "$hardcode_action_CXX" = relink; then
17843 # Fast installation is not supported
17844 enable_fast_install=no
17845 elif test "$shlibpath_overrides_runpath" = yes ||
17846 test "$enable_shared" = no; then
17847 # Fast installation is not necessary
17848 enable_fast_install=needless
17853 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17854 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17855 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17856 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17857 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17858 echo "$as_me:$LINENO: result: yes" >&5
17859 echo "${ECHO_T}yes" >&6
17861 # FIXME - insert some real tests, host_os isn't really good enough
17864 if test -n "$STRIP" ; then
17865 striplib="$STRIP -x"
17866 echo "$as_me:$LINENO: result: yes" >&5
17867 echo "${ECHO_T}yes" >&6
17869 echo "$as_me:$LINENO: result: no" >&5
17870 echo "${ECHO_T}no" >&6
17874 echo "$as_me:$LINENO: result: no" >&5
17875 echo "${ECHO_T}no" >&6
17880 if test "x$enable_dlopen" != xyes; then
17881 enable_dlopen=unknown
17882 enable_dlopen_self=unknown
17883 enable_dlopen_self_static=unknown
17890 lt_cv_dlopen="load_add_on"
17892 lt_cv_dlopen_self=yes
17896 lt_cv_dlopen="LoadLibrary"
17901 lt_cv_dlopen="dlopen"
17906 # if libdl is installed we need to link against it
17907 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17908 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17909 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17910 echo $ECHO_N "(cached) $ECHO_C" >&6
17912 ac_check_lib_save_LIBS=$LIBS
17914 cat >conftest.$ac_ext <<_ACEOF
17917 cat confdefs.h >>conftest.$ac_ext
17918 cat >>conftest.$ac_ext <<_ACEOF
17919 /* end confdefs.h. */
17921 /* Override any gcc2 internal prototype to avoid an error. */
17925 /* We use char because int might match the return type of a gcc2
17926 builtin and then its argument prototype would still apply. */
17936 rm -f conftest.$ac_objext conftest$ac_exeext
17937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17938 (eval $ac_link) 2>conftest.er1
17940 grep -v '^ *+' conftest.er1 >conftest.err
17942 cat conftest.err >&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } &&
17945 { ac_try='test -z "$ac_cxx_werror_flag"
17946 || test ! -s conftest.err'
17947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; } &&
17952 { ac_try='test -s conftest$ac_exeext'
17953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17954 (eval $ac_try) 2>&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; }; then
17958 ac_cv_lib_dl_dlopen=yes
17960 echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.$ac_ext >&5
17963 ac_cv_lib_dl_dlopen=no
17965 rm -f conftest.err conftest.$ac_objext \
17966 conftest$ac_exeext conftest.$ac_ext
17967 LIBS=$ac_check_lib_save_LIBS
17969 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17970 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17971 if test $ac_cv_lib_dl_dlopen = yes; then
17972 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17975 lt_cv_dlopen="dyld"
17977 lt_cv_dlopen_self=yes
17984 echo "$as_me:$LINENO: checking for shl_load" >&5
17985 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17986 if test "${ac_cv_func_shl_load+set}" = set; then
17987 echo $ECHO_N "(cached) $ECHO_C" >&6
17989 cat >conftest.$ac_ext <<_ACEOF
17992 cat confdefs.h >>conftest.$ac_ext
17993 cat >>conftest.$ac_ext <<_ACEOF
17994 /* end confdefs.h. */
17995 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17997 #define shl_load innocuous_shl_load
17999 /* System header to define __stub macros and hopefully few prototypes,
18000 which can conflict with char shl_load (); below.
18001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18002 <limits.h> exists even on freestanding compilers. */
18005 # include <limits.h>
18007 # include <assert.h>
18012 /* Override any gcc2 internal prototype to avoid an error. */
18017 /* We use char because int might match the return type of a gcc2
18018 builtin and then its argument prototype would still apply. */
18020 /* The GNU C library defines this for functions which it implements
18021 to always fail with ENOSYS. Some functions are actually named
18022 something starting with __ and the normal name is an alias. */
18023 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18026 char (*f) () = shl_load;
18035 return f != shl_load;
18040 rm -f conftest.$ac_objext conftest$ac_exeext
18041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18042 (eval $ac_link) 2>conftest.er1
18044 grep -v '^ *+' conftest.er1 >conftest.err
18046 cat conftest.err >&5
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } &&
18049 { ac_try='test -z "$ac_cxx_werror_flag"
18050 || test ! -s conftest.err'
18051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052 (eval $ac_try) 2>&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); }; } &&
18056 { ac_try='test -s conftest$ac_exeext'
18057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058 (eval $ac_try) 2>&5
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; }; then
18062 ac_cv_func_shl_load=yes
18064 echo "$as_me: failed program was:" >&5
18065 sed 's/^/| /' conftest.$ac_ext >&5
18067 ac_cv_func_shl_load=no
18069 rm -f conftest.err conftest.$ac_objext \
18070 conftest$ac_exeext conftest.$ac_ext
18072 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18073 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18074 if test $ac_cv_func_shl_load = yes; then
18075 lt_cv_dlopen="shl_load"
18077 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18078 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18079 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18080 echo $ECHO_N "(cached) $ECHO_C" >&6
18082 ac_check_lib_save_LIBS=$LIBS
18084 cat >conftest.$ac_ext <<_ACEOF
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h. */
18091 /* Override any gcc2 internal prototype to avoid an error. */
18095 /* We use char because int might match the return type of a gcc2
18096 builtin and then its argument prototype would still apply. */
18106 rm -f conftest.$ac_objext conftest$ac_exeext
18107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18108 (eval $ac_link) 2>conftest.er1
18110 grep -v '^ *+' conftest.er1 >conftest.err
18112 cat conftest.err >&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); } &&
18115 { ac_try='test -z "$ac_cxx_werror_flag"
18116 || test ! -s conftest.err'
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; } &&
18122 { ac_try='test -s conftest$ac_exeext'
18123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124 (eval $ac_try) 2>&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 ac_cv_lib_dld_shl_load=yes
18130 echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.$ac_ext >&5
18133 ac_cv_lib_dld_shl_load=no
18135 rm -f conftest.err conftest.$ac_objext \
18136 conftest$ac_exeext conftest.$ac_ext
18137 LIBS=$ac_check_lib_save_LIBS
18139 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18140 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18141 if test $ac_cv_lib_dld_shl_load = yes; then
18142 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18144 echo "$as_me:$LINENO: checking for dlopen" >&5
18145 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18146 if test "${ac_cv_func_dlopen+set}" = set; then
18147 echo $ECHO_N "(cached) $ECHO_C" >&6
18149 cat >conftest.$ac_ext <<_ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h. */
18155 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18157 #define dlopen innocuous_dlopen
18159 /* System header to define __stub macros and hopefully few prototypes,
18160 which can conflict with char dlopen (); below.
18161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18162 <limits.h> exists even on freestanding compilers. */
18165 # include <limits.h>
18167 # include <assert.h>
18172 /* Override any gcc2 internal prototype to avoid an error. */
18177 /* We use char because int might match the return type of a gcc2
18178 builtin and then its argument prototype would still apply. */
18180 /* The GNU C library defines this for functions which it implements
18181 to always fail with ENOSYS. Some functions are actually named
18182 something starting with __ and the normal name is an alias. */
18183 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18186 char (*f) () = dlopen;
18195 return f != dlopen;
18200 rm -f conftest.$ac_objext conftest$ac_exeext
18201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18202 (eval $ac_link) 2>conftest.er1
18204 grep -v '^ *+' conftest.er1 >conftest.err
18206 cat conftest.err >&5
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); } &&
18209 { ac_try='test -z "$ac_cxx_werror_flag"
18210 || test ! -s conftest.err'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; } &&
18216 { ac_try='test -s conftest$ac_exeext'
18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; }; then
18222 ac_cv_func_dlopen=yes
18224 echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.$ac_ext >&5
18227 ac_cv_func_dlopen=no
18229 rm -f conftest.err conftest.$ac_objext \
18230 conftest$ac_exeext conftest.$ac_ext
18232 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18233 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18234 if test $ac_cv_func_dlopen = yes; then
18235 lt_cv_dlopen="dlopen"
18237 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18238 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18239 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
18242 ac_check_lib_save_LIBS=$LIBS
18244 cat >conftest.$ac_ext <<_ACEOF
18247 cat confdefs.h >>conftest.$ac_ext
18248 cat >>conftest.$ac_ext <<_ACEOF
18249 /* end confdefs.h. */
18251 /* Override any gcc2 internal prototype to avoid an error. */
18255 /* We use char because int might match the return type of a gcc2
18256 builtin and then its argument prototype would still apply. */
18266 rm -f conftest.$ac_objext conftest$ac_exeext
18267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18268 (eval $ac_link) 2>conftest.er1
18270 grep -v '^ *+' conftest.er1 >conftest.err
18272 cat conftest.err >&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); } &&
18275 { ac_try='test -z "$ac_cxx_werror_flag"
18276 || test ! -s conftest.err'
18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278 (eval $ac_try) 2>&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; } &&
18282 { ac_try='test -s conftest$ac_exeext'
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; }; then
18288 ac_cv_lib_dl_dlopen=yes
18290 echo "$as_me: failed program was:" >&5
18291 sed 's/^/| /' conftest.$ac_ext >&5
18293 ac_cv_lib_dl_dlopen=no
18295 rm -f conftest.err conftest.$ac_objext \
18296 conftest$ac_exeext conftest.$ac_ext
18297 LIBS=$ac_check_lib_save_LIBS
18299 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18300 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18301 if test $ac_cv_lib_dl_dlopen = yes; then
18302 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18304 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18305 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18306 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18307 echo $ECHO_N "(cached) $ECHO_C" >&6
18309 ac_check_lib_save_LIBS=$LIBS
18310 LIBS="-lsvld $LIBS"
18311 cat >conftest.$ac_ext <<_ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h. */
18318 /* Override any gcc2 internal prototype to avoid an error. */
18322 /* We use char because int might match the return type of a gcc2
18323 builtin and then its argument prototype would still apply. */
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18335 (eval $ac_link) 2>conftest.er1
18337 grep -v '^ *+' conftest.er1 >conftest.err
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } &&
18342 { ac_try='test -z "$ac_cxx_werror_flag"
18343 || test ! -s conftest.err'
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; } &&
18349 { ac_try='test -s conftest$ac_exeext'
18350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351 (eval $ac_try) 2>&5
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; }; then
18355 ac_cv_lib_svld_dlopen=yes
18357 echo "$as_me: failed program was:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18360 ac_cv_lib_svld_dlopen=no
18362 rm -f conftest.err conftest.$ac_objext \
18363 conftest$ac_exeext conftest.$ac_ext
18364 LIBS=$ac_check_lib_save_LIBS
18366 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18367 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18368 if test $ac_cv_lib_svld_dlopen = yes; then
18369 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18371 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18372 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18373 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18374 echo $ECHO_N "(cached) $ECHO_C" >&6
18376 ac_check_lib_save_LIBS=$LIBS
18378 cat >conftest.$ac_ext <<_ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h. */
18385 /* Override any gcc2 internal prototype to avoid an error. */
18389 /* We use char because int might match the return type of a gcc2
18390 builtin and then its argument prototype would still apply. */
18400 rm -f conftest.$ac_objext conftest$ac_exeext
18401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18402 (eval $ac_link) 2>conftest.er1
18404 grep -v '^ *+' conftest.er1 >conftest.err
18406 cat conftest.err >&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } &&
18409 { ac_try='test -z "$ac_cxx_werror_flag"
18410 || test ! -s conftest.err'
18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; } &&
18416 { ac_try='test -s conftest$ac_exeext'
18417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418 (eval $ac_try) 2>&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); }; }; then
18422 ac_cv_lib_dld_dld_link=yes
18424 echo "$as_me: failed program was:" >&5
18425 sed 's/^/| /' conftest.$ac_ext >&5
18427 ac_cv_lib_dld_dld_link=no
18429 rm -f conftest.err conftest.$ac_objext \
18430 conftest$ac_exeext conftest.$ac_ext
18431 LIBS=$ac_check_lib_save_LIBS
18433 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18434 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18435 if test $ac_cv_lib_dld_dld_link = yes; then
18436 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18457 if test "x$lt_cv_dlopen" != xno; then
18463 case $lt_cv_dlopen in
18465 save_CPPFLAGS="$CPPFLAGS"
18466 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18468 save_LDFLAGS="$LDFLAGS"
18469 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18472 LIBS="$lt_cv_dlopen_libs $LIBS"
18474 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18475 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18476 if test "${lt_cv_dlopen_self+set}" = set; then
18477 echo $ECHO_N "(cached) $ECHO_C" >&6
18479 if test "$cross_compiling" = yes; then :
18480 lt_cv_dlopen_self=cross
18482 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18483 lt_status=$lt_dlunknown
18484 cat > conftest.$ac_ext <<EOF
18485 #line 18485 "configure"
18486 #include "confdefs.h"
18495 # define LT_DLGLOBAL RTLD_GLOBAL
18498 # define LT_DLGLOBAL DL_GLOBAL
18500 # define LT_DLGLOBAL 0
18504 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18505 find out it does not work in some platform. */
18506 #ifndef LT_DLLAZY_OR_NOW
18508 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18511 # define LT_DLLAZY_OR_NOW DL_LAZY
18514 # define LT_DLLAZY_OR_NOW RTLD_NOW
18517 # define LT_DLLAZY_OR_NOW DL_NOW
18519 # define LT_DLLAZY_OR_NOW 0
18527 extern "C" void exit (int);
18530 void fnord() { int i=42;}
18533 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18534 int status = $lt_dlunknown;
18538 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18539 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18540 /* dlclose (self); */
18546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18547 (eval $ac_link) 2>&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18551 (./conftest; exit; ) 2>/dev/null
18553 case x$lt_status in
18554 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18555 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18556 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18559 # compilation failed
18560 lt_cv_dlopen_self=no
18567 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18568 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18570 if test "x$lt_cv_dlopen_self" = xyes; then
18571 LDFLAGS="$LDFLAGS $link_static_flag"
18572 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18573 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18574 if test "${lt_cv_dlopen_self_static+set}" = set; then
18575 echo $ECHO_N "(cached) $ECHO_C" >&6
18577 if test "$cross_compiling" = yes; then :
18578 lt_cv_dlopen_self_static=cross
18580 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18581 lt_status=$lt_dlunknown
18582 cat > conftest.$ac_ext <<EOF
18583 #line 18583 "configure"
18584 #include "confdefs.h"
18593 # define LT_DLGLOBAL RTLD_GLOBAL
18596 # define LT_DLGLOBAL DL_GLOBAL
18598 # define LT_DLGLOBAL 0
18602 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18603 find out it does not work in some platform. */
18604 #ifndef LT_DLLAZY_OR_NOW
18606 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18609 # define LT_DLLAZY_OR_NOW DL_LAZY
18612 # define LT_DLLAZY_OR_NOW RTLD_NOW
18615 # define LT_DLLAZY_OR_NOW DL_NOW
18617 # define LT_DLLAZY_OR_NOW 0
18625 extern "C" void exit (int);
18628 void fnord() { int i=42;}
18631 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18632 int status = $lt_dlunknown;
18636 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18637 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18638 /* dlclose (self); */
18644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18645 (eval $ac_link) 2>&5
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18649 (./conftest; exit; ) 2>/dev/null
18651 case x$lt_status in
18652 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18653 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18654 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18657 # compilation failed
18658 lt_cv_dlopen_self_static=no
18665 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18666 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18669 CPPFLAGS="$save_CPPFLAGS"
18670 LDFLAGS="$save_LDFLAGS"
18675 case $lt_cv_dlopen_self in
18676 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18677 *) enable_dlopen_self=unknown ;;
18680 case $lt_cv_dlopen_self_static in
18681 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18682 *) enable_dlopen_self_static=unknown ;;
18687 # The else clause should only fire when bootstrapping the
18688 # libtool distribution, otherwise you forgot to ship ltmain.sh
18689 # with your package, and you will get complaints that there are
18690 # no rules to generate ltmain.sh.
18691 if test -f "$ltmain"; then
18692 # See if we are running on zsh, and set the options which allow our commands through
18693 # without removal of \ escapes.
18694 if test -n "${ZSH_VERSION+set}" ; then
18695 setopt NO_GLOB_SUBST
18697 # Now quote all the things that may contain metacharacters while being
18698 # careful not to overquote the AC_SUBSTed values. We take copies of the
18699 # variables and quote the copies for generation of the libtool script.
18700 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18702 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18703 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18704 deplibs_check_method reload_flag reload_cmds need_locks \
18705 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18706 lt_cv_sys_global_symbol_to_c_name_address \
18707 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18708 old_postinstall_cmds old_postuninstall_cmds \
18712 lt_prog_compiler_wl_CXX \
18713 lt_prog_compiler_pic_CXX \
18714 lt_prog_compiler_static_CXX \
18715 lt_prog_compiler_no_builtin_flag_CXX \
18716 export_dynamic_flag_spec_CXX \
18717 thread_safe_flag_spec_CXX \
18718 whole_archive_flag_spec_CXX \
18719 enable_shared_with_static_runtimes_CXX \
18720 old_archive_cmds_CXX \
18721 old_archive_from_new_cmds_CXX \
18722 predep_objects_CXX \
18723 postdep_objects_CXX \
18726 compiler_lib_search_path_CXX \
18728 archive_expsym_cmds_CXX \
18729 postinstall_cmds_CXX \
18730 postuninstall_cmds_CXX \
18731 old_archive_from_expsyms_cmds_CXX \
18732 allow_undefined_flag_CXX \
18733 no_undefined_flag_CXX \
18734 export_symbols_cmds_CXX \
18735 hardcode_libdir_flag_spec_CXX \
18736 hardcode_libdir_flag_spec_ld_CXX \
18737 hardcode_libdir_separator_CXX \
18738 hardcode_automatic_CXX \
18740 module_expsym_cmds_CXX \
18741 lt_cv_prog_compiler_c_o_CXX \
18742 exclude_expsyms_CXX \
18743 include_expsyms_CXX; do
18746 old_archive_cmds_CXX | \
18747 old_archive_from_new_cmds_CXX | \
18748 archive_cmds_CXX | \
18749 archive_expsym_cmds_CXX | \
18750 module_cmds_CXX | \
18751 module_expsym_cmds_CXX | \
18752 old_archive_from_expsyms_cmds_CXX | \
18753 export_symbols_cmds_CXX | \
18754 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18755 postinstall_cmds | postuninstall_cmds | \
18756 old_postinstall_cmds | old_postuninstall_cmds | \
18757 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18758 # Double-quote double-evaled strings.
18759 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18762 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18768 *'\$0 --fallback-echo"')
18769 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18775 cat <<__EOF__ >> "$cfgfile"
18776 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18778 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18780 # Shell to use when invoking shell scripts.
18783 # Whether or not to build shared libraries.
18784 build_libtool_libs=$enable_shared
18786 # Whether or not to build static libraries.
18787 build_old_libs=$enable_static
18789 # Whether or not to add -lc for building shared libraries.
18790 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18792 # Whether or not to disallow shared libs when runtime libs are static
18793 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18795 # Whether or not to optimize for fast installation.
18796 fast_install=$enable_fast_install
18799 host_alias=$host_alias
18802 # An echo program that does not interpret backslashes.
18807 AR_FLAGS=$lt_AR_FLAGS
18812 # A language-specific compiler.
18813 CC=$lt_compiler_CXX
18815 # Is the compiler the GNU C compiler?
18821 # The linker used to build libraries.
18824 # Whether we need hard or soft links.
18827 # A BSD-compatible nm program.
18830 # A symbol stripping program
18833 # Used to examine libraries when file_magic_cmd begins "file"
18834 MAGIC_CMD=$MAGIC_CMD
18836 # Used on cygwin: DLL creation program.
18839 # Used on cygwin: object dumper.
18842 # Used on cygwin: assembler.
18845 # The name of the directory that contains temporary libtool files.
18848 # How to create reloadable object files.
18849 reload_flag=$lt_reload_flag
18850 reload_cmds=$lt_reload_cmds
18852 # How to pass a linker flag through the compiler.
18853 wl=$lt_lt_prog_compiler_wl_CXX
18855 # Object file suffix (normally "o").
18856 objext="$ac_objext"
18858 # Old archive suffix (normally "a").
18861 # Shared library suffix (normally ".so").
18862 shrext_cmds='$shrext_cmds'
18864 # Executable file suffix (normally "").
18867 # Additional compiler flags for building library objects.
18868 pic_flag=$lt_lt_prog_compiler_pic_CXX
18871 # What is the maximum length of a command?
18872 max_cmd_len=$lt_cv_sys_max_cmd_len
18874 # Does compiler simultaneously support -c and -o options?
18875 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18877 # Must we lock files when doing compilation ?
18878 need_locks=$lt_need_locks
18880 # Do we need the lib prefix for modules?
18881 need_lib_prefix=$need_lib_prefix
18883 # Do we need a version for libraries?
18884 need_version=$need_version
18886 # Whether dlopen is supported.
18887 dlopen_support=$enable_dlopen
18889 # Whether dlopen of programs is supported.
18890 dlopen_self=$enable_dlopen_self
18892 # Whether dlopen of statically linked programs is supported.
18893 dlopen_self_static=$enable_dlopen_self_static
18895 # Compiler flag to prevent dynamic linking.
18896 link_static_flag=$lt_lt_prog_compiler_static_CXX
18898 # Compiler flag to turn off builtin functions.
18899 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18901 # Compiler flag to allow reflexive dlopens.
18902 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18904 # Compiler flag to generate shared objects directly from archives.
18905 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18907 # Compiler flag to generate thread-safe objects.
18908 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18910 # Library versioning type.
18911 version_type=$version_type
18913 # Format of library name prefix.
18914 libname_spec=$lt_libname_spec
18916 # List of archive names. First name is the real one, the rest are links.
18917 # The last name is the one that the linker finds with -lNAME.
18918 library_names_spec=$lt_library_names_spec
18920 # The coded name of the library, if different from the real name.
18921 soname_spec=$lt_soname_spec
18923 # Commands used to build and install an old-style archive.
18925 old_archive_cmds=$lt_old_archive_cmds_CXX
18926 old_postinstall_cmds=$lt_old_postinstall_cmds
18927 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18929 # Create an old-style archive from a shared archive.
18930 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18932 # Create a temporary old-style archive to link instead of a shared archive.
18933 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18935 # Commands used to build and install a shared archive.
18936 archive_cmds=$lt_archive_cmds_CXX
18937 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18938 postinstall_cmds=$lt_postinstall_cmds
18939 postuninstall_cmds=$lt_postuninstall_cmds
18941 # Commands used to build a loadable module (assumed same as above if empty)
18942 module_cmds=$lt_module_cmds_CXX
18943 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18945 # Commands to strip libraries.
18946 old_striplib=$lt_old_striplib
18947 striplib=$lt_striplib
18949 # Dependencies to place before the objects being linked to create a
18951 predep_objects=$lt_predep_objects_CXX
18953 # Dependencies to place after the objects being linked to create a
18955 postdep_objects=$lt_postdep_objects_CXX
18957 # Dependencies to place before the objects being linked to create a
18959 predeps=$lt_predeps_CXX
18961 # Dependencies to place after the objects being linked to create a
18963 postdeps=$lt_postdeps_CXX
18965 # The library search path used internally by the compiler when linking
18966 # a shared library.
18967 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18969 # Method to check whether dependent libraries are shared objects.
18970 deplibs_check_method=$lt_deplibs_check_method
18972 # Command to use when deplibs_check_method == file_magic.
18973 file_magic_cmd=$lt_file_magic_cmd
18975 # Flag that allows shared libraries with undefined symbols to be built.
18976 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18978 # Flag that forces no undefined symbols.
18979 no_undefined_flag=$lt_no_undefined_flag_CXX
18981 # Commands used to finish a libtool library installation in a directory.
18982 finish_cmds=$lt_finish_cmds
18984 # Same as above, but a single script fragment to be evaled but not shown.
18985 finish_eval=$lt_finish_eval
18987 # Take the output of nm and produce a listing of raw symbols and C names.
18988 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18990 # Transform the output of nm in a proper C declaration
18991 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18993 # Transform the output of nm in a C name address pair
18994 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18996 # This is the shared library runtime path variable.
18997 runpath_var=$runpath_var
18999 # This is the shared library path variable.
19000 shlibpath_var=$shlibpath_var
19002 # Is shlibpath searched before the hard-coded library search path?
19003 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19005 # How to hardcode a shared library path into an executable.
19006 hardcode_action=$hardcode_action_CXX
19008 # Whether we should hardcode library paths into libraries.
19009 hardcode_into_libs=$hardcode_into_libs
19011 # Flag to hardcode \$libdir into a binary during linking.
19012 # This must work even if \$libdir does not exist.
19013 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19015 # If ld is used when linking, flag to hardcode \$libdir into
19016 # a binary during linking. This must work even if \$libdir does
19018 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19020 # Whether we need a single -rpath flag with a separated argument.
19021 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19023 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19024 # resulting binary.
19025 hardcode_direct=$hardcode_direct_CXX
19027 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19028 # resulting binary.
19029 hardcode_minus_L=$hardcode_minus_L_CXX
19031 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19032 # the resulting binary.
19033 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19035 # Set to yes if building a shared library automatically hardcodes DIR into the library
19036 # and all subsequent libraries and executables linked against it.
19037 hardcode_automatic=$hardcode_automatic_CXX
19039 # Variables whose values should be saved in libtool wrapper scripts and
19040 # restored at relink time.
19041 variables_saved_for_relink="$variables_saved_for_relink"
19043 # Whether libtool must link a program against all its dependency libraries.
19044 link_all_deplibs=$link_all_deplibs_CXX
19046 # Compile-time system search path for libraries
19047 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19049 # Run-time system search path for libraries
19050 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19052 # Fix the shell variable \$srcfile for the compiler.
19053 fix_srcfile_path="$fix_srcfile_path_CXX"
19055 # Set to yes if exported symbols are required.
19056 always_export_symbols=$always_export_symbols_CXX
19058 # The commands to list exported symbols.
19059 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19061 # The commands to extract the exported symbol list from a shared archive.
19062 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19064 # Symbols that should not be listed in the preloaded symbols.
19065 exclude_expsyms=$lt_exclude_expsyms_CXX
19067 # Symbols that must always be exported.
19068 include_expsyms=$lt_include_expsyms_CXX
19070 # ### END LIBTOOL TAG CONFIG: $tagname
19076 # If there is no Makefile yet, we rely on a make rule to execute
19077 # `config.status --recheck' to rerun these tests and create the
19078 # libtool script then.
19079 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19080 if test -f "$ltmain_in"; then
19081 test -f Makefile && make "$ltmain"
19087 ac_cpp='$CPP $CPPFLAGS'
19088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19096 with_gnu_ldcxx=$with_gnu_ld
19097 with_gnu_ld=$lt_save_with_gnu_ld
19098 lt_cv_path_LDCXX=$lt_cv_path_LD
19099 lt_cv_path_LD=$lt_save_path_LD
19100 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19101 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19109 if test -n "$F77" && test "X$F77" != "Xno"; then
19112 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19113 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19114 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19117 archive_cmds_need_lc_F77=no
19118 allow_undefined_flag_F77=
19119 always_export_symbols_F77=no
19120 archive_expsym_cmds_F77=
19121 export_dynamic_flag_spec_F77=
19122 hardcode_direct_F77=no
19123 hardcode_libdir_flag_spec_F77=
19124 hardcode_libdir_flag_spec_ld_F77=
19125 hardcode_libdir_separator_F77=
19126 hardcode_minus_L_F77=no
19127 hardcode_automatic_F77=no
19129 module_expsym_cmds_F77=
19130 link_all_deplibs_F77=unknown
19131 old_archive_cmds_F77=$old_archive_cmds
19132 no_undefined_flag_F77=
19133 whole_archive_flag_spec_F77=
19134 enable_shared_with_static_runtimes_F77=no
19136 # Source file extension for f77 test sources.
19139 # Object file extension for compiled f77 test sources.
19143 # Code to be used in simple compile tests
19144 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
19146 # Code to be used in simple link tests
19147 lt_simple_link_test_code=" program t\n end\n"
19149 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19151 # If no C compiler was specified, use CC.
19154 # Allow CC to be a program name with arguments.
19158 # Allow CC to be a program name with arguments.
19163 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
19165 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19166 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19167 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19168 echo "${ECHO_T}$can_build_shared" >&6
19170 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19171 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19172 test "$can_build_shared" = "no" && enable_shared=no
19174 # On AIX, shared libraries and static libraries use the same namespace, and
19175 # are all built from PIC.
19178 test "$enable_shared" = yes && enable_static=no
19179 if test -n "$RANLIB"; then
19180 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19181 postinstall_cmds='$RANLIB $lib'
19185 test "$enable_shared" = yes && enable_static=no
19188 echo "$as_me:$LINENO: result: $enable_shared" >&5
19189 echo "${ECHO_T}$enable_shared" >&6
19191 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19192 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19193 # Make sure either enable_shared or enable_static is yes.
19194 test "$enable_shared" = yes || enable_static=yes
19195 echo "$as_me:$LINENO: result: $enable_static" >&5
19196 echo "${ECHO_T}$enable_static" >&6
19198 test "$ld_shlibs_F77" = no && can_build_shared=no
19203 lt_prog_compiler_wl_F77=
19204 lt_prog_compiler_pic_F77=
19205 lt_prog_compiler_static_F77=
19207 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19208 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19210 if test "$GCC" = yes; then
19211 lt_prog_compiler_wl_F77='-Wl,'
19212 lt_prog_compiler_static_F77='-static'
19216 # All AIX code is PIC.
19217 if test "$host_cpu" = ia64; then
19218 # AIX 5 now supports IA64 processor
19219 lt_prog_compiler_static_F77='-Bstatic'
19224 # FIXME: we need at least 68020 code to build shared libraries, but
19225 # adding the `-m68020' flag to GCC prevents building anything better,
19227 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19230 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19231 # PIC is the default for these OSes.
19234 mingw* | pw32* | os2*)
19235 # This hack is so that the source file can tell whether it is being
19236 # built for inclusion in a dll (and should export symbols for example).
19237 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19240 darwin* | rhapsody*)
19241 # PIC is the default on this platform
19242 # Common symbols not allowed in MH_DYLIB files
19243 lt_prog_compiler_pic_F77='-fno-common'
19247 # Just because we use GCC doesn't mean we suddenly get shared libraries
19248 # on systems that don't support them.
19249 lt_prog_compiler_can_build_shared_F77=no
19254 if test -d /usr/nec; then
19255 lt_prog_compiler_pic_F77=-Kconform_pic
19260 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19261 # not for PA HP-UX.
19262 case "$host_cpu" in
19267 lt_prog_compiler_pic_F77='-fPIC'
19273 lt_prog_compiler_pic_F77='-fPIC'
19277 # PORTME Check for flag to pass linker flags through the system compiler.
19280 lt_prog_compiler_wl_F77='-Wl,'
19281 if test "$host_cpu" = ia64; then
19282 # AIX 5 now supports IA64 processor
19283 lt_prog_compiler_static_F77='-Bstatic'
19285 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19289 # PIC is the default on this platform
19290 # Common symbols not allowed in MH_DYLIB files
19291 case "$cc_basename" in
19293 lt_prog_compiler_pic_F77='-qnocommon'
19294 lt_prog_compiler_wl_F77='-Wl,'
19299 mingw* | pw32* | os2*)
19300 # This hack is so that the source file can tell whether it is being
19301 # built for inclusion in a dll (and should export symbols for example).
19302 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19305 hpux9* | hpux10* | hpux11*)
19306 lt_prog_compiler_wl_F77='-Wl,'
19307 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19308 # not for PA HP-UX.
19309 case "$host_cpu" in
19314 lt_prog_compiler_pic_F77='+Z'
19317 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19318 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19321 irix5* | irix6* | nonstopux*)
19322 lt_prog_compiler_wl_F77='-Wl,'
19323 # PIC (with -KPIC) is the default.
19324 lt_prog_compiler_static_F77='-non_shared'
19328 lt_prog_compiler_pic_F77='-KPIC'
19329 lt_prog_compiler_static_F77='-Bstatic'
19335 lt_prog_compiler_wl_F77='-Wl,'
19336 lt_prog_compiler_pic_F77='-KPIC'
19337 lt_prog_compiler_static_F77='-static'
19340 lt_prog_compiler_wl_F77='-Wl,'
19341 # All Alpha code is PIC.
19342 lt_prog_compiler_static_F77='-non_shared'
19347 osf3* | osf4* | osf5*)
19348 lt_prog_compiler_wl_F77='-Wl,'
19349 # All OSF/1 code is PIC.
19350 lt_prog_compiler_static_F77='-non_shared'
19354 lt_prog_compiler_pic_F77='-Kpic'
19355 lt_prog_compiler_static_F77='-dn'
19359 lt_prog_compiler_wl_F77='-Wl,'
19360 lt_prog_compiler_pic_F77='-KPIC'
19361 lt_prog_compiler_static_F77='-Bstatic'
19365 lt_prog_compiler_wl_F77='-Qoption ld '
19366 lt_prog_compiler_pic_F77='-PIC'
19367 lt_prog_compiler_static_F77='-Bstatic'
19370 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19371 lt_prog_compiler_wl_F77='-Wl,'
19372 lt_prog_compiler_pic_F77='-KPIC'
19373 lt_prog_compiler_static_F77='-Bstatic'
19377 if test -d /usr/nec ;then
19378 lt_prog_compiler_pic_F77='-Kconform_pic'
19379 lt_prog_compiler_static_F77='-Bstatic'
19384 lt_prog_compiler_pic_F77='-pic'
19385 lt_prog_compiler_static_F77='-Bstatic'
19389 lt_prog_compiler_can_build_shared_F77=no
19394 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19395 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19398 # Check to make sure the PIC flag actually works.
19400 if test -n "$lt_prog_compiler_pic_F77"; then
19402 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19403 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19404 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19407 lt_prog_compiler_pic_works_F77=no
19408 ac_outfile=conftest.$ac_objext
19409 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19410 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19411 # Insert the option either (1) after the last *FLAGS variable, or
19412 # (2) before a word containing "conftest.", or (3) at the end.
19413 # Note that $ac_compile itself does not contain backslashes and begins
19414 # with a dollar sign (not a hyphen), so the echo should work correctly.
19415 # The option is referenced via a variable to avoid confusing sed.
19416 lt_compile=`echo "$ac_compile" | $SED \
19417 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19419 -e 's:$: $lt_compiler_flag:'`
19420 (eval echo "\"\$as_me:19420: $lt_compile\"" >&5)
19421 (eval "$lt_compile" 2>conftest.err)
19423 cat conftest.err >&5
19424 echo "$as_me:19424: \$? = $ac_status" >&5
19425 if (exit $ac_status) && test -s "$ac_outfile"; then
19426 # The compiler can only warn and ignore the option if not recognized
19427 # So say no if there are warnings
19428 if test ! -s conftest.err; then
19429 lt_prog_compiler_pic_works_F77=yes
19435 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19436 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19438 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19439 case $lt_prog_compiler_pic_F77 in
19441 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19444 lt_prog_compiler_pic_F77=
19445 lt_prog_compiler_can_build_shared_F77=no
19450 # For platforms which do not support PIC, -DPIC is meaningless:
19452 lt_prog_compiler_pic_F77=
19455 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19459 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19460 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19461 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19464 lt_cv_prog_compiler_c_o_F77=no
19465 $rm -r conftest 2>/dev/null
19469 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19471 lt_compiler_flag="-o out/conftest2.$ac_objext"
19472 # Insert the option either (1) after the last *FLAGS variable, or
19473 # (2) before a word containing "conftest.", or (3) at the end.
19474 # Note that $ac_compile itself does not contain backslashes and begins
19475 # with a dollar sign (not a hyphen), so the echo should work correctly.
19476 lt_compile=`echo "$ac_compile" | $SED \
19477 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19479 -e 's:$: $lt_compiler_flag:'`
19480 (eval echo "\"\$as_me:19480: $lt_compile\"" >&5)
19481 (eval "$lt_compile" 2>out/conftest.err)
19483 cat out/conftest.err >&5
19484 echo "$as_me:19484: \$? = $ac_status" >&5
19485 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19487 # The compiler can only warn and ignore the option if not recognized
19488 # So say no if there are warnings
19489 if test ! -s out/conftest.err; then
19490 lt_cv_prog_compiler_c_o_F77=yes
19495 # SGI C++ compiler will create directory out/ii_files/ for
19496 # template instantiation
19497 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19498 $rm out/* && rmdir out
19504 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19505 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19508 hard_links="nottested"
19509 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19510 # do not overwrite the value of need_locks provided by the user
19511 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19512 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19515 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19517 ln conftest.a conftest.b 2>&5 || hard_links=no
19518 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19519 echo "$as_me:$LINENO: result: $hard_links" >&5
19520 echo "${ECHO_T}$hard_links" >&6
19521 if test "$hard_links" = no; then
19522 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19523 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19530 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19531 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19534 allow_undefined_flag_F77=
19535 enable_shared_with_static_runtimes_F77=no
19537 archive_expsym_cmds_F77=
19538 old_archive_From_new_cmds_F77=
19539 old_archive_from_expsyms_cmds_F77=
19540 export_dynamic_flag_spec_F77=
19541 whole_archive_flag_spec_F77=
19542 thread_safe_flag_spec_F77=
19543 hardcode_libdir_flag_spec_F77=
19544 hardcode_libdir_flag_spec_ld_F77=
19545 hardcode_libdir_separator_F77=
19546 hardcode_direct_F77=no
19547 hardcode_minus_L_F77=no
19548 hardcode_shlibpath_var_F77=unsupported
19549 link_all_deplibs_F77=unknown
19550 hardcode_automatic_F77=no
19552 module_expsym_cmds_F77=
19553 always_export_symbols_F77=no
19554 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19555 # include_expsyms should be a list of space-separated symbols to be *always*
19556 # included in the symbol list
19557 include_expsyms_F77=
19558 # exclude_expsyms can be an extended regexp of symbols to exclude
19559 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19560 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19561 # as well as any symbol that contains `d'.
19562 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19563 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19564 # platforms (ab)use it in PIC code, but their linkers get confused if
19565 # the symbol is explicitly referenced. Since portable code cannot
19566 # rely on this symbol name, it's probably fine to never include it in
19567 # preloaded symbol tables.
19568 extract_expsyms_cmds=
19571 cygwin* | mingw* | pw32*)
19572 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19573 # When not using gcc, we currently assume that we are using
19574 # Microsoft Visual C++.
19575 if test "$GCC" != yes; then
19585 if test "$with_gnu_ld" = yes; then
19586 # If archive_cmds runs LD, not CC, wlarc should be empty
19589 # See if GNU ld supports shared libraries.
19591 aix3* | aix4* | aix5*)
19592 # On AIX/PPC, the GNU linker is very broken
19593 if test "$host_cpu" != ia64; then
19597 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19598 *** to be unable to reliably create shared libraries on AIX.
19599 *** Therefore, libtool is disabling shared libraries support. If you
19600 *** really care for shared libraries, you may want to modify your PATH
19601 *** so that a non-GNU linker is found, and then restart.
19608 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)'
19609 hardcode_libdir_flag_spec_F77='-L$libdir'
19610 hardcode_minus_L_F77=yes
19612 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19613 # that the semantics of dynamic libraries on AmigaOS, at least up
19614 # to version 4, is to share data among multiple programs linked
19615 # with the same dynamic library. Since this doesn't match the
19616 # behavior of shared libraries on other platforms, we can't use
19622 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19623 allow_undefined_flag_F77=unsupported
19624 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19625 # support --undefined. This deserves some investigation. FIXME
19626 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19632 cygwin* | mingw* | pw32*)
19633 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19634 # as there is no search path for DLLs.
19635 hardcode_libdir_flag_spec_F77='-L$libdir'
19636 allow_undefined_flag_F77=unsupported
19637 always_export_symbols_F77=no
19638 enable_shared_with_static_runtimes_F77=yes
19639 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19641 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19642 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19643 # If the export-symbols file already is a .def file (1st line
19644 # is EXPORTS), use it as is; otherwise, prepend...
19645 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19646 cp $export_symbols $output_objdir/$soname.def;
19648 echo EXPORTS > $output_objdir/$soname.def;
19649 cat $export_symbols >> $output_objdir/$soname.def;
19651 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19658 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19659 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19662 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19663 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19668 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19672 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19673 *** create shared libraries on Solaris systems. Therefore, libtool
19674 *** is disabling shared libraries support. We urge you to upgrade GNU
19675 *** binutils to release 2.9.1 or newer. Another option is to modify
19676 *** your PATH or compiler configuration so that the native linker is
19677 *** used, and then restart.
19680 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19681 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19682 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19689 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19691 hardcode_direct_F77=yes
19692 hardcode_shlibpath_var_F77=no
19696 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19697 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19698 archive_cmds_F77="$tmp_archive_cmds"
19699 supports_anon_versioning=no
19700 case `$LD -v 2>/dev/null` in
19701 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19702 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19703 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19704 *\ 2.11.*) ;; # other 2.11 versions
19705 *) supports_anon_versioning=yes ;;
19707 if test $supports_anon_versioning = yes; then
19708 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19709 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19710 $echo "local: *; };" >> $output_objdir/$libname.ver~
19711 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19713 archive_expsym_cmds_F77="$tmp_archive_cmds"
19721 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19722 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19723 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19730 if test "$ld_shlibs_F77" = yes; then
19731 runpath_var=LD_RUN_PATH
19732 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19733 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19734 # ancient GNU ld didn't support --whole-archive et. al.
19735 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19736 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19738 whole_archive_flag_spec_F77=
19742 # PORTME fill in a description of your system's linker (not GNU ld)
19745 allow_undefined_flag_F77=unsupported
19746 always_export_symbols_F77=yes
19747 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'
19748 # Note: this linker hardcodes the directories in LIBPATH if there
19749 # are no directories specified by -L.
19750 hardcode_minus_L_F77=yes
19751 if test "$GCC" = yes && test -z "$link_static_flag"; then
19752 # Neither direct hardcoding nor static linking is supported with a
19754 hardcode_direct_F77=unsupported
19759 if test "$host_cpu" = ia64; then
19760 # On IA64, the linker does run time linking by default, so we don't
19761 # have to do anything special.
19762 aix_use_runtimelinking=no
19763 exp_sym_flag='-Bexport'
19766 # If we're using GNU nm, then we don't want the "-C" option.
19767 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19768 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19769 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'
19771 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'
19773 aix_use_runtimelinking=no
19775 # Test if we are trying to use run time linking or normal
19776 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19777 # need to do runtime linking.
19778 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19779 for ld_flag in $LDFLAGS; do
19780 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19781 aix_use_runtimelinking=yes
19787 exp_sym_flag='-bexport'
19788 no_entry_flag='-bnoentry'
19791 # When large executables or shared objects are built, AIX ld can
19792 # have problems creating the table of contents. If linking a library
19793 # or program results in "error TOC overflow" add -mminimal-toc to
19794 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19795 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19797 archive_cmds_F77=''
19798 hardcode_direct_F77=yes
19799 hardcode_libdir_separator_F77=':'
19800 link_all_deplibs_F77=yes
19802 if test "$GCC" = yes; then
19803 case $host_os in aix4.012|aix4.012.*)
19804 # We only want to do this on AIX 4.2 and lower, the check
19805 # below for broken collect2 doesn't work under 4.3+
19806 collect2name=`${CC} -print-prog-name=collect2`
19807 if test -f "$collect2name" && \
19808 strings "$collect2name" | grep resolve_lib_name >/dev/null
19810 # We have reworked collect2
19811 hardcode_direct_F77=yes
19813 # We have old collect2
19814 hardcode_direct_F77=unsupported
19815 # It fails to find uninstalled libraries when the uninstalled
19816 # path is not listed in the libpath. Setting hardcode_minus_L
19817 # to unsupported forces relinking
19818 hardcode_minus_L_F77=yes
19819 hardcode_libdir_flag_spec_F77='-L$libdir'
19820 hardcode_libdir_separator_F77=
19823 shared_flag='-shared'
19826 if test "$host_cpu" = ia64; then
19827 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19828 # chokes on -Wl,-G. The following line is correct:
19831 if test "$aix_use_runtimelinking" = yes; then
19832 shared_flag='${wl}-G'
19834 shared_flag='${wl}-bM:SRE'
19839 # It seems that -bexpall does not export symbols beginning with
19840 # underscore (_), so it is better to generate a list of symbols to export.
19841 always_export_symbols_F77=yes
19842 if test "$aix_use_runtimelinking" = yes; then
19843 # Warning - without using the other runtime loading flags (-brtl),
19844 # -berok will link without error, but may produce a broken library.
19845 allow_undefined_flag_F77='-berok'
19846 # Determine the default libpath from the value encoded in an empty executable.
19847 cat >conftest.$ac_ext <<_ACEOF
19852 rm -f conftest.$ac_objext conftest$ac_exeext
19853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19854 (eval $ac_link) 2>conftest.er1
19856 grep -v '^ *+' conftest.er1 >conftest.err
19858 cat conftest.err >&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); } &&
19861 { ac_try='test -z "$ac_f77_werror_flag"
19862 || test ! -s conftest.err'
19863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864 (eval $ac_try) 2>&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; } &&
19868 { ac_try='test -s conftest$ac_exeext'
19869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870 (eval $ac_try) 2>&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; }; then
19875 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19877 # Check for a 64-bit object if we didn't find anything.
19878 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; }
19881 echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19885 rm -f conftest.err conftest.$ac_objext \
19886 conftest$ac_exeext conftest.$ac_ext
19887 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19889 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19890 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"
19892 if test "$host_cpu" = ia64; then
19893 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19894 allow_undefined_flag_F77="-z nodefs"
19895 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"
19897 # Determine the default libpath from the value encoded in an empty executable.
19898 cat >conftest.$ac_ext <<_ACEOF
19903 rm -f conftest.$ac_objext conftest$ac_exeext
19904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19905 (eval $ac_link) 2>conftest.er1
19907 grep -v '^ *+' conftest.er1 >conftest.err
19909 cat conftest.err >&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } &&
19912 { ac_try='test -z "$ac_f77_werror_flag"
19913 || test ! -s conftest.err'
19914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915 (eval $ac_try) 2>&5
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; } &&
19919 { ac_try='test -s conftest$ac_exeext'
19920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19921 (eval $ac_try) 2>&5
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); }; }; then
19926 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19928 # Check for a 64-bit object if we didn't find anything.
19929 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; }
19932 echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19936 rm -f conftest.err conftest.$ac_objext \
19937 conftest$ac_exeext conftest.$ac_ext
19938 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19940 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19941 # Warning - without using the other run time loading flags,
19942 # -berok will link without error, but may produce a broken library.
19943 no_undefined_flag_F77=' ${wl}-bernotok'
19944 allow_undefined_flag_F77=' ${wl}-berok'
19945 # -bexpall does not export symbols beginning with underscore (_)
19946 always_export_symbols_F77=yes
19947 # Exported symbols can be pulled into shared objects from archives
19948 whole_archive_flag_spec_F77=' '
19949 archive_cmds_need_lc_F77=yes
19950 # This is similar to how AIX traditionally builds it's shared libraries.
19951 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'
19957 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)'
19958 hardcode_libdir_flag_spec_F77='-L$libdir'
19959 hardcode_minus_L_F77=yes
19960 # see comment about different semantics on the GNU ld section
19965 export_dynamic_flag_spec_F77=-rdynamic
19968 cygwin* | mingw* | pw32*)
19969 # When not using gcc, we currently assume that we are using
19970 # Microsoft Visual C++.
19971 # hardcode_libdir_flag_spec is actually meaningless, as there is
19972 # no search path for DLLs.
19973 hardcode_libdir_flag_spec_F77=' '
19974 allow_undefined_flag_F77=unsupported
19975 # Tell ltmain to make .lib files, not .a files.
19977 # Tell ltmain to make .dll files, not .so files.
19979 # FIXME: Setting linknames here is a bad hack.
19980 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19981 # The linker will automatically build a .lib file if we build a DLL.
19982 old_archive_From_new_cmds_F77='true'
19983 # FIXME: Should let the user specify the lib program.
19984 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19985 fix_srcfile_path='`cygpath -w "$srcfile"`'
19986 enable_shared_with_static_runtimes_F77=yes
19989 darwin* | rhapsody*)
19991 rhapsody* | darwin1.[012])
19992 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19995 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19996 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19998 case ${MACOSX_DEPLOYMENT_TARGET} in
20000 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20003 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20009 archive_cmds_need_lc_F77=no
20010 hardcode_direct_F77=no
20011 hardcode_automatic_F77=yes
20012 hardcode_shlibpath_var_F77=unsupported
20013 whole_archive_flag_spec_F77=''
20014 link_all_deplibs_F77=yes
20015 if test "$GCC" = yes ; then
20016 output_verbose_link_cmd='echo'
20017 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20018 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20019 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20020 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}'
20021 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}'
20023 case "$cc_basename" in
20025 output_verbose_link_cmd='echo'
20026 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20027 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20028 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20029 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}'
20030 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}'
20040 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20041 hardcode_libdir_flag_spec_F77='-L$libdir'
20042 hardcode_shlibpath_var_F77=no
20049 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20050 # support. Future versions do this automatically, but an explicit c++rt0.o
20051 # does not break anything, and helps significantly (at the cost of a little
20054 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20055 hardcode_libdir_flag_spec_F77='-R$libdir'
20056 hardcode_direct_F77=yes
20057 hardcode_shlibpath_var_F77=no
20060 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20062 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20063 hardcode_direct_F77=yes
20064 hardcode_minus_L_F77=yes
20065 hardcode_shlibpath_var_F77=no
20068 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20069 freebsd* | kfreebsd*-gnu)
20070 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20071 hardcode_libdir_flag_spec_F77='-R$libdir'
20072 hardcode_direct_F77=yes
20073 hardcode_shlibpath_var_F77=no
20077 if test "$GCC" = yes; then
20078 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'
20080 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'
20082 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20083 hardcode_libdir_separator_F77=:
20084 hardcode_direct_F77=yes
20086 # hardcode_minus_L: Not really in the search PATH,
20087 # but as the default location of the library.
20088 hardcode_minus_L_F77=yes
20089 export_dynamic_flag_spec_F77='${wl}-E'
20093 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20094 case "$host_cpu" in
20096 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20099 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20103 case "$host_cpu" in
20105 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20108 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20112 if test "$with_gnu_ld" = no; then
20113 case "$host_cpu" in
20115 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20116 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
20117 hardcode_libdir_separator_F77=:
20118 hardcode_direct_F77=no
20119 hardcode_shlibpath_var_F77=no
20122 hardcode_libdir_flag_spec_F77='-L$libdir'
20123 hardcode_direct_F77=no
20124 hardcode_shlibpath_var_F77=no
20126 # hardcode_minus_L: Not really in the search PATH,
20127 # but as the default location of the library.
20128 hardcode_minus_L_F77=yes
20131 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20132 hardcode_libdir_separator_F77=:
20133 hardcode_direct_F77=yes
20134 export_dynamic_flag_spec_F77='${wl}-E'
20136 # hardcode_minus_L: Not really in the search PATH,
20137 # but as the default location of the library.
20138 hardcode_minus_L_F77=yes
20144 irix5* | irix6* | nonstopux*)
20145 if test "$GCC" = yes; then
20146 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'
20148 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'
20149 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
20151 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20152 hardcode_libdir_separator_F77=:
20153 link_all_deplibs_F77=yes
20157 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20158 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20160 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20162 hardcode_libdir_flag_spec_F77='-R$libdir'
20163 hardcode_direct_F77=yes
20164 hardcode_shlibpath_var_F77=no
20168 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20169 hardcode_direct_F77=yes
20170 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20171 hardcode_libdir_separator_F77=:
20172 hardcode_shlibpath_var_F77=no
20176 hardcode_direct_F77=yes
20177 hardcode_shlibpath_var_F77=no
20178 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20179 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20180 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20181 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20182 export_dynamic_flag_spec_F77='${wl}-E'
20185 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20186 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20187 hardcode_libdir_flag_spec_F77='-R$libdir'
20190 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20191 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20198 hardcode_libdir_flag_spec_F77='-L$libdir'
20199 hardcode_minus_L_F77=yes
20200 allow_undefined_flag_F77=unsupported
20201 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'
20202 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20206 if test "$GCC" = yes; then
20207 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20208 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'
20210 allow_undefined_flag_F77=' -expect_unresolved \*'
20211 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'
20213 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20214 hardcode_libdir_separator_F77=:
20217 osf4* | osf5*) # as osf3* with the addition of -msym flag
20218 if test "$GCC" = yes; then
20219 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20220 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'
20221 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20223 allow_undefined_flag_F77=' -expect_unresolved \*'
20224 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'
20225 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~
20226 $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'
20228 # Both c and cxx compiler support -rpath directly
20229 hardcode_libdir_flag_spec_F77='-rpath $libdir'
20231 hardcode_libdir_separator_F77=:
20235 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20236 hardcode_shlibpath_var_F77=no
20237 export_dynamic_flag_spec_F77='${wl}-Bexport'
20238 runpath_var=LD_RUN_PATH
20239 hardcode_runpath_var=yes
20243 no_undefined_flag_F77=' -z text'
20244 if test "$GCC" = yes; then
20245 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20246 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20247 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20249 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20250 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20251 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20253 hardcode_libdir_flag_spec_F77='-R$libdir'
20254 hardcode_shlibpath_var_F77=no
20256 solaris2.[0-5] | solaris2.[0-5].*) ;;
20257 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20258 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20260 link_all_deplibs_F77=yes
20264 if test "x$host_vendor" = xsequent; then
20265 # Use $CC to link under sequent, because it throws in some extra .o
20266 # files that make .init and .fini sections work.
20267 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20269 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20271 hardcode_libdir_flag_spec_F77='-L$libdir'
20272 hardcode_direct_F77=yes
20273 hardcode_minus_L_F77=yes
20274 hardcode_shlibpath_var_F77=no
20278 case $host_vendor in
20280 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20281 hardcode_direct_F77=yes # is this really true???
20284 ## LD is ld it makes a PLAMLIB
20285 ## CC just makes a GrossModule.
20286 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20287 reload_cmds_F77='$CC -r -o $output$reload_objs'
20288 hardcode_direct_F77=no
20291 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20292 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20295 runpath_var='LD_RUN_PATH'
20296 hardcode_shlibpath_var_F77=no
20300 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20301 hardcode_shlibpath_var_F77=no
20302 export_dynamic_flag_spec_F77='-Bexport'
20306 if test -d /usr/nec; then
20307 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20308 hardcode_shlibpath_var_F77=no
20309 runpath_var=LD_RUN_PATH
20310 hardcode_runpath_var=yes
20316 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20317 hardcode_direct_F77=yes
20318 hardcode_minus_L_F77=no
20319 hardcode_shlibpath_var_F77=no
20320 hardcode_runpath_var=yes
20321 runpath_var=LD_RUN_PATH
20324 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20325 no_undefined_flag_F77='${wl}-z ${wl}text'
20326 if test "$GCC" = yes; then
20327 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20329 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20331 runpath_var='LD_RUN_PATH'
20332 hardcode_shlibpath_var_F77=no
20336 no_undefined_flag_F77=' -z text'
20337 # $CC -shared without GNU ld will not create a library from C++
20338 # object files and a static libstdc++, better avoid it by now
20339 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20340 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20341 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20342 hardcode_libdir_flag_spec_F77=
20343 hardcode_shlibpath_var_F77=no
20344 runpath_var='LD_RUN_PATH'
20348 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20349 hardcode_libdir_flag_spec_F77='-L$libdir'
20350 hardcode_shlibpath_var_F77=no
20359 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20360 echo "${ECHO_T}$ld_shlibs_F77" >&6
20361 test "$ld_shlibs_F77" = no && can_build_shared=no
20363 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20364 if test "$GCC" = yes; then
20365 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20369 # Do we need to explicitly link libc?
20371 case "x$archive_cmds_need_lc_F77" in
20373 # Assume -lc should be added
20374 archive_cmds_need_lc_F77=yes
20376 if test "$enable_shared" = yes && test "$GCC" = yes; then
20377 case $archive_cmds_F77 in
20379 # FIXME: we may have to deal with multi-command sequences.
20382 # Test whether the compiler implicitly links with -lc since on some
20383 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20384 # to ld, don't add -lc before -lgcc.
20385 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20386 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20388 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20391 (eval $ac_compile) 2>&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); } 2>conftest.err; then
20397 libobjs=conftest.$ac_objext
20399 wl=$lt_prog_compiler_wl_F77
20405 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20406 allow_undefined_flag_F77=
20407 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20408 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); }
20413 archive_cmds_need_lc_F77=no
20415 archive_cmds_need_lc_F77=yes
20417 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20419 cat conftest.err 1>&5
20422 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20423 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20430 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20431 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20432 library_names_spec=
20433 libname_spec='lib$name'
20437 postuninstall_cmds=
20441 shlibpath_overrides_runpath=unknown
20443 dynamic_linker="$host_os ld.so"
20444 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20445 if test "$GCC" = yes; then
20446 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20447 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20448 # if the path contains ";" then we assume it to be the separator
20449 # otherwise default to the standard path separator (i.e. ":") - it is
20450 # assumed that no part of a normal pathname contains ";" but that should
20451 # okay in the real world where ";" in dirpaths is itself problematic.
20452 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20454 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20457 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20459 need_lib_prefix=unknown
20460 hardcode_into_libs=no
20462 # when you set need_version to no, make sure it does not cause -set_version
20463 # flags to be left without arguments
20464 need_version=unknown
20469 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20470 shlibpath_var=LIBPATH
20472 # AIX 3 has no versioning support, so we append a major version to the name.
20473 soname_spec='${libname}${release}${shared_ext}$major'
20480 hardcode_into_libs=yes
20481 if test "$host_cpu" = ia64; then
20482 # AIX 5 supports IA64
20483 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20484 shlibpath_var=LD_LIBRARY_PATH
20486 # With GCC up to 2.95.x, collect2 would create an import file
20487 # for dependence libraries. The import file would start with
20488 # the line `#! .'. This would cause the generated library to
20489 # depend on `.', always an invalid library. This was fixed in
20490 # development snapshots of GCC prior to 3.0.
20492 aix4 | aix4.[01] | aix4.[01].*)
20493 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20495 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20498 can_build_shared=no
20502 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20503 # soname into executable. Probably we can add versioning support to
20504 # collect2, so additional links can be useful in future.
20505 if test "$aix_use_runtimelinking" = yes; then
20506 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20507 # instead of lib<name>.a to let people know that these are not
20508 # typical AIX shared libraries.
20509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20511 # We preserve .a as extension for shared libraries through AIX4.2
20512 # and later when we are not doing run time linking.
20513 library_names_spec='${libname}${release}.a $libname.a'
20514 soname_spec='${libname}${release}${shared_ext}$major'
20516 shlibpath_var=LIBPATH
20521 library_names_spec='$libname.ixlibrary $libname.a'
20522 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20523 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'
20527 library_names_spec='${libname}${shared_ext}'
20528 dynamic_linker="$host_os ld.so"
20529 shlibpath_var=LIBRARY_PATH
20535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20536 soname_spec='${libname}${release}${shared_ext}$major'
20537 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20538 shlibpath_var=LD_LIBRARY_PATH
20539 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20540 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20541 # the default ld.so.conf also contains /usr/contrib/lib and
20542 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20543 # libtool to hard-code these into programs
20546 cygwin* | mingw* | pw32*)
20547 version_type=windows
20552 case $GCC,$host_os in
20553 yes,cygwin* | yes,mingw* | yes,pw32*)
20554 library_names_spec='$libname.dll.a'
20555 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20556 postinstall_cmds='base_file=`basename \${file}`~
20557 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20558 dldir=$destdir/`dirname \$dlpath`~
20559 test -d \$dldir || mkdir -p \$dldir~
20560 $install_prog $dir/$dlname \$dldir/$dlname'
20561 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20562 dlpath=$dir/\$dldll~
20564 shlibpath_overrides_runpath=yes
20568 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20569 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20570 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20573 # MinGW DLLs use traditional 'lib' prefix
20574 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20575 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20576 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20577 # It is most probably a Windows format PATH printed by
20578 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20579 # path with ; separators, and with drive letters. We can handle the
20580 # drive letters (cygwin fileutils understands them), so leave them,
20581 # especially as we might pass files found there to a mingw objdump,
20582 # which wouldn't understand a cygwinified path. Ahh.
20583 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20585 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20589 # pw32 DLLs use 'pw' prefix rather than 'lib'
20590 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20596 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20599 dynamic_linker='Win32 ld.exe'
20600 # FIXME: first we should search . and the directory the executable is in
20604 darwin* | rhapsody*)
20605 dynamic_linker="$host_os dyld"
20606 version_type=darwin
20609 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20610 soname_spec='${libname}${release}${major}$shared_ext'
20611 shlibpath_overrides_runpath=yes
20612 shlibpath_var=DYLD_LIBRARY_PATH
20613 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20614 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20615 if test "$GCC" = yes; then
20616 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"`
20618 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20620 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20628 soname_spec='${libname}${release}${shared_ext}$major'
20629 shlibpath_var=LD_LIBRARY_PATH
20640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20641 soname_spec='${libname}${release}${shared_ext}$major'
20642 shlibpath_var=LD_LIBRARY_PATH
20643 shlibpath_overrides_runpath=no
20644 hardcode_into_libs=yes
20645 dynamic_linker='GNU ld.so'
20649 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20650 version_type=freebsd-$objformat
20651 case $version_type in
20653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20662 shlibpath_var=LD_LIBRARY_PATH
20665 shlibpath_overrides_runpath=yes
20667 freebsd3.01* | freebsdelf3.01*)
20668 shlibpath_overrides_runpath=yes
20669 hardcode_into_libs=yes
20672 shlibpath_overrides_runpath=no
20673 hardcode_into_libs=yes
20682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20683 soname_spec='${libname}${release}${shared_ext}$major'
20684 shlibpath_var=LD_LIBRARY_PATH
20685 hardcode_into_libs=yes
20688 hpux9* | hpux10* | hpux11*)
20689 # Give a soname corresponding to the major version so that dld.sl refuses to
20690 # link against other versions.
20694 case "$host_cpu" in
20697 hardcode_into_libs=yes
20698 dynamic_linker="$host_os dld.so"
20699 shlibpath_var=LD_LIBRARY_PATH
20700 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20702 soname_spec='${libname}${release}${shared_ext}$major'
20703 if test "X$HPUX_IA64_MODE" = X32; then
20704 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20706 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20712 hardcode_into_libs=yes
20713 dynamic_linker="$host_os dld.sl"
20714 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20717 soname_spec='${libname}${release}${shared_ext}$major'
20718 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20719 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20723 dynamic_linker="$host_os dld.sl"
20724 shlibpath_var=SHLIB_PATH
20725 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20727 soname_spec='${libname}${release}${shared_ext}$major'
20730 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20731 postinstall_cmds='chmod 555 $lib'
20734 irix5* | irix6* | nonstopux*)
20736 nonstopux*) version_type=nonstopux ;;
20738 if test "$lt_cv_prog_gnu_ld" = yes; then
20746 soname_spec='${libname}${release}${shared_ext}$major'
20747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20749 irix5* | nonstopux*)
20750 libsuff= shlibsuff=
20753 case $LD in # libtool.m4 will add one of these switches to LD
20754 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20755 libsuff= shlibsuff= libmagic=32-bit;;
20756 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20757 libsuff=32 shlibsuff=N32 libmagic=N32;;
20758 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20759 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20760 *) libsuff= shlibsuff= libmagic=never-match;;
20764 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20765 shlibpath_overrides_runpath=no
20766 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20767 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20768 hardcode_into_libs=yes
20771 # No shared lib support for Linux oldld, aout, or coff.
20772 linux*oldld* | linux*aout* | linux*coff*)
20776 # This must be Linux ELF.
20781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20782 soname_spec='${libname}${release}${shared_ext}$major'
20783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20784 shlibpath_var=LD_LIBRARY_PATH
20785 shlibpath_overrides_runpath=no
20786 # This implies no fast_install, which is unacceptable.
20787 # Some rework will be needed to allow for fast_install
20788 # before this can be enabled.
20789 hardcode_into_libs=yes
20791 # Append ld.so.conf contents to the search path
20792 if test -f /etc/ld.so.conf; then
20793 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20794 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20797 # We used to test for /lib/ld.so.1 and disable shared libraries on
20798 # powerpc, because MkLinux only supported shared libraries with the
20799 # GNU dynamic linker. Since this was broken with cross compilers,
20800 # most powerpc-linux boxes support dynamic linking these days and
20801 # people can always --disable-shared, the test was removed, and we
20802 # assume the GNU/Linux dynamic linker is in use.
20803 dynamic_linker='GNU/Linux ld.so'
20810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20811 soname_spec='${libname}${release}${shared_ext}$major'
20812 shlibpath_var=LD_LIBRARY_PATH
20813 shlibpath_overrides_runpath=no
20814 hardcode_into_libs=yes
20815 dynamic_linker='GNU ld.so'
20822 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20825 dynamic_linker='NetBSD (a.out) ld.so'
20827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20828 soname_spec='${libname}${release}${shared_ext}$major'
20829 dynamic_linker='NetBSD ld.elf_so'
20831 shlibpath_var=LD_LIBRARY_PATH
20832 shlibpath_overrides_runpath=yes
20833 hardcode_into_libs=yes
20838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20839 shlibpath_var=LD_LIBRARY_PATH
20840 shlibpath_overrides_runpath=yes
20847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20848 soname_spec='${libname}${release}${shared_ext}$major'
20849 shlibpath_var=LD_LIBRARY_PATH
20850 shlibpath_overrides_runpath=yes
20857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20859 shlibpath_var=LD_LIBRARY_PATH
20860 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20862 openbsd2.[89] | openbsd2.[89].*)
20863 shlibpath_overrides_runpath=no
20866 shlibpath_overrides_runpath=yes
20870 shlibpath_overrides_runpath=yes
20875 libname_spec='$name'
20878 library_names_spec='$libname${shared_ext} $libname.a'
20879 dynamic_linker='OS/2 ld.exe'
20880 shlibpath_var=LIBPATH
20883 osf3* | osf4* | osf5*)
20887 soname_spec='${libname}${release}${shared_ext}$major'
20888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20889 shlibpath_var=LD_LIBRARY_PATH
20890 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20891 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20896 soname_spec='${libname}${release}${shared_ext}$major'
20897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20898 shlibpath_var=LD_LIBRARY_PATH
20905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20906 soname_spec='${libname}${release}${shared_ext}$major'
20907 shlibpath_var=LD_LIBRARY_PATH
20908 shlibpath_overrides_runpath=yes
20909 hardcode_into_libs=yes
20910 # ldd complains unless libraries are executable
20911 postinstall_cmds='chmod +x $lib'
20916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20917 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20918 shlibpath_var=LD_LIBRARY_PATH
20919 shlibpath_overrides_runpath=yes
20920 if test "$with_gnu_ld" = yes; then
20926 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20929 soname_spec='${libname}${release}${shared_ext}$major'
20930 shlibpath_var=LD_LIBRARY_PATH
20931 case $host_vendor in
20933 shlibpath_overrides_runpath=no
20935 export_dynamic_flag_spec='${wl}-Blargedynsym'
20936 runpath_var=LD_RUN_PATH
20944 shlibpath_overrides_runpath=no
20945 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20951 if test -d /usr/nec ;then
20953 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20954 soname_spec='$libname${shared_ext}.$major'
20955 shlibpath_var=LD_LIBRARY_PATH
20961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20962 soname_spec='${libname}${release}${shared_ext}$major'
20963 shlibpath_var=LD_LIBRARY_PATH
20970 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20971 echo "${ECHO_T}$dynamic_linker" >&6
20972 test "$dynamic_linker" = no && can_build_shared=no
20974 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20975 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20976 hardcode_action_F77=
20977 if test -n "$hardcode_libdir_flag_spec_F77" || \
20978 test -n "$runpath_var_F77" || \
20979 test "X$hardcode_automatic_F77" = "Xyes" ; then
20981 # We can hardcode non-existant directories.
20982 if test "$hardcode_direct_F77" != no &&
20983 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20984 # have to relink, otherwise we might link with an installed library
20985 # when we should be linking with a yet-to-be-installed one
20986 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20987 test "$hardcode_minus_L_F77" != no; then
20988 # Linking always hardcodes the temporary library directory.
20989 hardcode_action_F77=relink
20991 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20992 hardcode_action_F77=immediate
20995 # We cannot hardcode anything, or else we can only hardcode existing
20997 hardcode_action_F77=unsupported
20999 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
21000 echo "${ECHO_T}$hardcode_action_F77" >&6
21002 if test "$hardcode_action_F77" = relink; then
21003 # Fast installation is not supported
21004 enable_fast_install=no
21005 elif test "$shlibpath_overrides_runpath" = yes ||
21006 test "$enable_shared" = no; then
21007 # Fast installation is not necessary
21008 enable_fast_install=needless
21013 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21014 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21015 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21016 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21017 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21018 echo "$as_me:$LINENO: result: yes" >&5
21019 echo "${ECHO_T}yes" >&6
21021 # FIXME - insert some real tests, host_os isn't really good enough
21024 if test -n "$STRIP" ; then
21025 striplib="$STRIP -x"
21026 echo "$as_me:$LINENO: result: yes" >&5
21027 echo "${ECHO_T}yes" >&6
21029 echo "$as_me:$LINENO: result: no" >&5
21030 echo "${ECHO_T}no" >&6
21034 echo "$as_me:$LINENO: result: no" >&5
21035 echo "${ECHO_T}no" >&6
21042 # The else clause should only fire when bootstrapping the
21043 # libtool distribution, otherwise you forgot to ship ltmain.sh
21044 # with your package, and you will get complaints that there are
21045 # no rules to generate ltmain.sh.
21046 if test -f "$ltmain"; then
21047 # See if we are running on zsh, and set the options which allow our commands through
21048 # without removal of \ escapes.
21049 if test -n "${ZSH_VERSION+set}" ; then
21050 setopt NO_GLOB_SUBST
21052 # Now quote all the things that may contain metacharacters while being
21053 # careful not to overquote the AC_SUBSTed values. We take copies of the
21054 # variables and quote the copies for generation of the libtool script.
21055 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21057 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21058 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21059 deplibs_check_method reload_flag reload_cmds need_locks \
21060 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21061 lt_cv_sys_global_symbol_to_c_name_address \
21062 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21063 old_postinstall_cmds old_postuninstall_cmds \
21067 lt_prog_compiler_wl_F77 \
21068 lt_prog_compiler_pic_F77 \
21069 lt_prog_compiler_static_F77 \
21070 lt_prog_compiler_no_builtin_flag_F77 \
21071 export_dynamic_flag_spec_F77 \
21072 thread_safe_flag_spec_F77 \
21073 whole_archive_flag_spec_F77 \
21074 enable_shared_with_static_runtimes_F77 \
21075 old_archive_cmds_F77 \
21076 old_archive_from_new_cmds_F77 \
21077 predep_objects_F77 \
21078 postdep_objects_F77 \
21081 compiler_lib_search_path_F77 \
21083 archive_expsym_cmds_F77 \
21084 postinstall_cmds_F77 \
21085 postuninstall_cmds_F77 \
21086 old_archive_from_expsyms_cmds_F77 \
21087 allow_undefined_flag_F77 \
21088 no_undefined_flag_F77 \
21089 export_symbols_cmds_F77 \
21090 hardcode_libdir_flag_spec_F77 \
21091 hardcode_libdir_flag_spec_ld_F77 \
21092 hardcode_libdir_separator_F77 \
21093 hardcode_automatic_F77 \
21095 module_expsym_cmds_F77 \
21096 lt_cv_prog_compiler_c_o_F77 \
21097 exclude_expsyms_F77 \
21098 include_expsyms_F77; do
21101 old_archive_cmds_F77 | \
21102 old_archive_from_new_cmds_F77 | \
21103 archive_cmds_F77 | \
21104 archive_expsym_cmds_F77 | \
21105 module_cmds_F77 | \
21106 module_expsym_cmds_F77 | \
21107 old_archive_from_expsyms_cmds_F77 | \
21108 export_symbols_cmds_F77 | \
21109 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21110 postinstall_cmds | postuninstall_cmds | \
21111 old_postinstall_cmds | old_postuninstall_cmds | \
21112 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21113 # Double-quote double-evaled strings.
21114 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21117 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21123 *'\$0 --fallback-echo"')
21124 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21130 cat <<__EOF__ >> "$cfgfile"
21131 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21133 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21135 # Shell to use when invoking shell scripts.
21138 # Whether or not to build shared libraries.
21139 build_libtool_libs=$enable_shared
21141 # Whether or not to build static libraries.
21142 build_old_libs=$enable_static
21144 # Whether or not to add -lc for building shared libraries.
21145 build_libtool_need_lc=$archive_cmds_need_lc_F77
21147 # Whether or not to disallow shared libs when runtime libs are static
21148 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
21150 # Whether or not to optimize for fast installation.
21151 fast_install=$enable_fast_install
21154 host_alias=$host_alias
21157 # An echo program that does not interpret backslashes.
21162 AR_FLAGS=$lt_AR_FLAGS
21167 # A language-specific compiler.
21168 CC=$lt_compiler_F77
21170 # Is the compiler the GNU C compiler?
21176 # The linker used to build libraries.
21179 # Whether we need hard or soft links.
21182 # A BSD-compatible nm program.
21185 # A symbol stripping program
21188 # Used to examine libraries when file_magic_cmd begins "file"
21189 MAGIC_CMD=$MAGIC_CMD
21191 # Used on cygwin: DLL creation program.
21194 # Used on cygwin: object dumper.
21197 # Used on cygwin: assembler.
21200 # The name of the directory that contains temporary libtool files.
21203 # How to create reloadable object files.
21204 reload_flag=$lt_reload_flag
21205 reload_cmds=$lt_reload_cmds
21207 # How to pass a linker flag through the compiler.
21208 wl=$lt_lt_prog_compiler_wl_F77
21210 # Object file suffix (normally "o").
21211 objext="$ac_objext"
21213 # Old archive suffix (normally "a").
21216 # Shared library suffix (normally ".so").
21217 shrext_cmds='$shrext_cmds'
21219 # Executable file suffix (normally "").
21222 # Additional compiler flags for building library objects.
21223 pic_flag=$lt_lt_prog_compiler_pic_F77
21226 # What is the maximum length of a command?
21227 max_cmd_len=$lt_cv_sys_max_cmd_len
21229 # Does compiler simultaneously support -c and -o options?
21230 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21232 # Must we lock files when doing compilation ?
21233 need_locks=$lt_need_locks
21235 # Do we need the lib prefix for modules?
21236 need_lib_prefix=$need_lib_prefix
21238 # Do we need a version for libraries?
21239 need_version=$need_version
21241 # Whether dlopen is supported.
21242 dlopen_support=$enable_dlopen
21244 # Whether dlopen of programs is supported.
21245 dlopen_self=$enable_dlopen_self
21247 # Whether dlopen of statically linked programs is supported.
21248 dlopen_self_static=$enable_dlopen_self_static
21250 # Compiler flag to prevent dynamic linking.
21251 link_static_flag=$lt_lt_prog_compiler_static_F77
21253 # Compiler flag to turn off builtin functions.
21254 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21256 # Compiler flag to allow reflexive dlopens.
21257 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21259 # Compiler flag to generate shared objects directly from archives.
21260 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21262 # Compiler flag to generate thread-safe objects.
21263 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21265 # Library versioning type.
21266 version_type=$version_type
21268 # Format of library name prefix.
21269 libname_spec=$lt_libname_spec
21271 # List of archive names. First name is the real one, the rest are links.
21272 # The last name is the one that the linker finds with -lNAME.
21273 library_names_spec=$lt_library_names_spec
21275 # The coded name of the library, if different from the real name.
21276 soname_spec=$lt_soname_spec
21278 # Commands used to build and install an old-style archive.
21280 old_archive_cmds=$lt_old_archive_cmds_F77
21281 old_postinstall_cmds=$lt_old_postinstall_cmds
21282 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21284 # Create an old-style archive from a shared archive.
21285 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21287 # Create a temporary old-style archive to link instead of a shared archive.
21288 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21290 # Commands used to build and install a shared archive.
21291 archive_cmds=$lt_archive_cmds_F77
21292 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21293 postinstall_cmds=$lt_postinstall_cmds
21294 postuninstall_cmds=$lt_postuninstall_cmds
21296 # Commands used to build a loadable module (assumed same as above if empty)
21297 module_cmds=$lt_module_cmds_F77
21298 module_expsym_cmds=$lt_module_expsym_cmds_F77
21300 # Commands to strip libraries.
21301 old_striplib=$lt_old_striplib
21302 striplib=$lt_striplib
21304 # Dependencies to place before the objects being linked to create a
21306 predep_objects=$lt_predep_objects_F77
21308 # Dependencies to place after the objects being linked to create a
21310 postdep_objects=$lt_postdep_objects_F77
21312 # Dependencies to place before the objects being linked to create a
21314 predeps=$lt_predeps_F77
21316 # Dependencies to place after the objects being linked to create a
21318 postdeps=$lt_postdeps_F77
21320 # The library search path used internally by the compiler when linking
21321 # a shared library.
21322 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21324 # Method to check whether dependent libraries are shared objects.
21325 deplibs_check_method=$lt_deplibs_check_method
21327 # Command to use when deplibs_check_method == file_magic.
21328 file_magic_cmd=$lt_file_magic_cmd
21330 # Flag that allows shared libraries with undefined symbols to be built.
21331 allow_undefined_flag=$lt_allow_undefined_flag_F77
21333 # Flag that forces no undefined symbols.
21334 no_undefined_flag=$lt_no_undefined_flag_F77
21336 # Commands used to finish a libtool library installation in a directory.
21337 finish_cmds=$lt_finish_cmds
21339 # Same as above, but a single script fragment to be evaled but not shown.
21340 finish_eval=$lt_finish_eval
21342 # Take the output of nm and produce a listing of raw symbols and C names.
21343 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21345 # Transform the output of nm in a proper C declaration
21346 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21348 # Transform the output of nm in a C name address pair
21349 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21351 # This is the shared library runtime path variable.
21352 runpath_var=$runpath_var
21354 # This is the shared library path variable.
21355 shlibpath_var=$shlibpath_var
21357 # Is shlibpath searched before the hard-coded library search path?
21358 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21360 # How to hardcode a shared library path into an executable.
21361 hardcode_action=$hardcode_action_F77
21363 # Whether we should hardcode library paths into libraries.
21364 hardcode_into_libs=$hardcode_into_libs
21366 # Flag to hardcode \$libdir into a binary during linking.
21367 # This must work even if \$libdir does not exist.
21368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21370 # If ld is used when linking, flag to hardcode \$libdir into
21371 # a binary during linking. This must work even if \$libdir does
21373 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21375 # Whether we need a single -rpath flag with a separated argument.
21376 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21378 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21379 # resulting binary.
21380 hardcode_direct=$hardcode_direct_F77
21382 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21383 # resulting binary.
21384 hardcode_minus_L=$hardcode_minus_L_F77
21386 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21387 # the resulting binary.
21388 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21390 # Set to yes if building a shared library automatically hardcodes DIR into the library
21391 # and all subsequent libraries and executables linked against it.
21392 hardcode_automatic=$hardcode_automatic_F77
21394 # Variables whose values should be saved in libtool wrapper scripts and
21395 # restored at relink time.
21396 variables_saved_for_relink="$variables_saved_for_relink"
21398 # Whether libtool must link a program against all its dependency libraries.
21399 link_all_deplibs=$link_all_deplibs_F77
21401 # Compile-time system search path for libraries
21402 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21404 # Run-time system search path for libraries
21405 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21407 # Fix the shell variable \$srcfile for the compiler.
21408 fix_srcfile_path="$fix_srcfile_path_F77"
21410 # Set to yes if exported symbols are required.
21411 always_export_symbols=$always_export_symbols_F77
21413 # The commands to list exported symbols.
21414 export_symbols_cmds=$lt_export_symbols_cmds_F77
21416 # The commands to extract the exported symbol list from a shared archive.
21417 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21419 # Symbols that should not be listed in the preloaded symbols.
21420 exclude_expsyms=$lt_exclude_expsyms_F77
21422 # Symbols that must always be exported.
21423 include_expsyms=$lt_include_expsyms_F77
21425 # ### END LIBTOOL TAG CONFIG: $tagname
21431 # If there is no Makefile yet, we rely on a make rule to execute
21432 # `config.status --recheck' to rerun these tests and create the
21433 # libtool script then.
21434 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21435 if test -f "$ltmain_in"; then
21436 test -f Makefile && make "$ltmain"
21442 ac_cpp='$CPP $CPPFLAGS'
21443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21455 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21457 ac_cpp='$CPP $CPPFLAGS'
21458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21463 # Source file extension for Java test sources.
21466 # Object file extension for compiled Java test sources.
21470 # Code to be used in simple compile tests
21471 lt_simple_compile_test_code="class foo {}\n"
21473 # Code to be used in simple link tests
21474 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21476 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21478 # If no C compiler was specified, use CC.
21481 # Allow CC to be a program name with arguments.
21485 # Allow CC to be a program name with arguments.
21491 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21492 archive_cmds_need_lc_GCJ=no
21495 lt_prog_compiler_no_builtin_flag_GCJ=
21497 if test "$GCC" = yes; then
21498 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21501 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21502 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21503 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21504 echo $ECHO_N "(cached) $ECHO_C" >&6
21506 lt_cv_prog_compiler_rtti_exceptions=no
21507 ac_outfile=conftest.$ac_objext
21508 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21509 lt_compiler_flag="-fno-rtti -fno-exceptions"
21510 # Insert the option either (1) after the last *FLAGS variable, or
21511 # (2) before a word containing "conftest.", or (3) at the end.
21512 # Note that $ac_compile itself does not contain backslashes and begins
21513 # with a dollar sign (not a hyphen), so the echo should work correctly.
21514 # The option is referenced via a variable to avoid confusing sed.
21515 lt_compile=`echo "$ac_compile" | $SED \
21516 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21518 -e 's:$: $lt_compiler_flag:'`
21519 (eval echo "\"\$as_me:21519: $lt_compile\"" >&5)
21520 (eval "$lt_compile" 2>conftest.err)
21522 cat conftest.err >&5
21523 echo "$as_me:21523: \$? = $ac_status" >&5
21524 if (exit $ac_status) && test -s "$ac_outfile"; then
21525 # The compiler can only warn and ignore the option if not recognized
21526 # So say no if there are warnings
21527 if test ! -s conftest.err; then
21528 lt_cv_prog_compiler_rtti_exceptions=yes
21534 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21535 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21537 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21538 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21545 lt_prog_compiler_wl_GCJ=
21546 lt_prog_compiler_pic_GCJ=
21547 lt_prog_compiler_static_GCJ=
21549 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21550 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21552 if test "$GCC" = yes; then
21553 lt_prog_compiler_wl_GCJ='-Wl,'
21554 lt_prog_compiler_static_GCJ='-static'
21558 # All AIX code is PIC.
21559 if test "$host_cpu" = ia64; then
21560 # AIX 5 now supports IA64 processor
21561 lt_prog_compiler_static_GCJ='-Bstatic'
21566 # FIXME: we need at least 68020 code to build shared libraries, but
21567 # adding the `-m68020' flag to GCC prevents building anything better,
21569 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21572 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21573 # PIC is the default for these OSes.
21576 mingw* | pw32* | os2*)
21577 # This hack is so that the source file can tell whether it is being
21578 # built for inclusion in a dll (and should export symbols for example).
21579 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21582 darwin* | rhapsody*)
21583 # PIC is the default on this platform
21584 # Common symbols not allowed in MH_DYLIB files
21585 lt_prog_compiler_pic_GCJ='-fno-common'
21589 # Just because we use GCC doesn't mean we suddenly get shared libraries
21590 # on systems that don't support them.
21591 lt_prog_compiler_can_build_shared_GCJ=no
21596 if test -d /usr/nec; then
21597 lt_prog_compiler_pic_GCJ=-Kconform_pic
21602 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21603 # not for PA HP-UX.
21604 case "$host_cpu" in
21609 lt_prog_compiler_pic_GCJ='-fPIC'
21615 lt_prog_compiler_pic_GCJ='-fPIC'
21619 # PORTME Check for flag to pass linker flags through the system compiler.
21622 lt_prog_compiler_wl_GCJ='-Wl,'
21623 if test "$host_cpu" = ia64; then
21624 # AIX 5 now supports IA64 processor
21625 lt_prog_compiler_static_GCJ='-Bstatic'
21627 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21631 # PIC is the default on this platform
21632 # Common symbols not allowed in MH_DYLIB files
21633 case "$cc_basename" in
21635 lt_prog_compiler_pic_GCJ='-qnocommon'
21636 lt_prog_compiler_wl_GCJ='-Wl,'
21641 mingw* | pw32* | os2*)
21642 # This hack is so that the source file can tell whether it is being
21643 # built for inclusion in a dll (and should export symbols for example).
21644 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21647 hpux9* | hpux10* | hpux11*)
21648 lt_prog_compiler_wl_GCJ='-Wl,'
21649 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21650 # not for PA HP-UX.
21651 case "$host_cpu" in
21656 lt_prog_compiler_pic_GCJ='+Z'
21659 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21660 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21663 irix5* | irix6* | nonstopux*)
21664 lt_prog_compiler_wl_GCJ='-Wl,'
21665 # PIC (with -KPIC) is the default.
21666 lt_prog_compiler_static_GCJ='-non_shared'
21670 lt_prog_compiler_pic_GCJ='-KPIC'
21671 lt_prog_compiler_static_GCJ='-Bstatic'
21677 lt_prog_compiler_wl_GCJ='-Wl,'
21678 lt_prog_compiler_pic_GCJ='-KPIC'
21679 lt_prog_compiler_static_GCJ='-static'
21682 lt_prog_compiler_wl_GCJ='-Wl,'
21683 # All Alpha code is PIC.
21684 lt_prog_compiler_static_GCJ='-non_shared'
21689 osf3* | osf4* | osf5*)
21690 lt_prog_compiler_wl_GCJ='-Wl,'
21691 # All OSF/1 code is PIC.
21692 lt_prog_compiler_static_GCJ='-non_shared'
21696 lt_prog_compiler_pic_GCJ='-Kpic'
21697 lt_prog_compiler_static_GCJ='-dn'
21701 lt_prog_compiler_wl_GCJ='-Wl,'
21702 lt_prog_compiler_pic_GCJ='-KPIC'
21703 lt_prog_compiler_static_GCJ='-Bstatic'
21707 lt_prog_compiler_wl_GCJ='-Qoption ld '
21708 lt_prog_compiler_pic_GCJ='-PIC'
21709 lt_prog_compiler_static_GCJ='-Bstatic'
21712 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21713 lt_prog_compiler_wl_GCJ='-Wl,'
21714 lt_prog_compiler_pic_GCJ='-KPIC'
21715 lt_prog_compiler_static_GCJ='-Bstatic'
21719 if test -d /usr/nec ;then
21720 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21721 lt_prog_compiler_static_GCJ='-Bstatic'
21726 lt_prog_compiler_pic_GCJ='-pic'
21727 lt_prog_compiler_static_GCJ='-Bstatic'
21731 lt_prog_compiler_can_build_shared_GCJ=no
21736 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21737 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21740 # Check to make sure the PIC flag actually works.
21742 if test -n "$lt_prog_compiler_pic_GCJ"; then
21744 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21745 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21746 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21747 echo $ECHO_N "(cached) $ECHO_C" >&6
21749 lt_prog_compiler_pic_works_GCJ=no
21750 ac_outfile=conftest.$ac_objext
21751 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21752 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21753 # Insert the option either (1) after the last *FLAGS variable, or
21754 # (2) before a word containing "conftest.", or (3) at the end.
21755 # Note that $ac_compile itself does not contain backslashes and begins
21756 # with a dollar sign (not a hyphen), so the echo should work correctly.
21757 # The option is referenced via a variable to avoid confusing sed.
21758 lt_compile=`echo "$ac_compile" | $SED \
21759 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21761 -e 's:$: $lt_compiler_flag:'`
21762 (eval echo "\"\$as_me:21762: $lt_compile\"" >&5)
21763 (eval "$lt_compile" 2>conftest.err)
21765 cat conftest.err >&5
21766 echo "$as_me:21766: \$? = $ac_status" >&5
21767 if (exit $ac_status) && test -s "$ac_outfile"; then
21768 # The compiler can only warn and ignore the option if not recognized
21769 # So say no if there are warnings
21770 if test ! -s conftest.err; then
21771 lt_prog_compiler_pic_works_GCJ=yes
21777 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21778 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21780 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21781 case $lt_prog_compiler_pic_GCJ in
21783 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21786 lt_prog_compiler_pic_GCJ=
21787 lt_prog_compiler_can_build_shared_GCJ=no
21792 # For platforms which do not support PIC, -DPIC is meaningless:
21794 lt_prog_compiler_pic_GCJ=
21797 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21801 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21802 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21803 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21804 echo $ECHO_N "(cached) $ECHO_C" >&6
21806 lt_cv_prog_compiler_c_o_GCJ=no
21807 $rm -r conftest 2>/dev/null
21811 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21813 lt_compiler_flag="-o out/conftest2.$ac_objext"
21814 # Insert the option either (1) after the last *FLAGS variable, or
21815 # (2) before a word containing "conftest.", or (3) at the end.
21816 # Note that $ac_compile itself does not contain backslashes and begins
21817 # with a dollar sign (not a hyphen), so the echo should work correctly.
21818 lt_compile=`echo "$ac_compile" | $SED \
21819 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21821 -e 's:$: $lt_compiler_flag:'`
21822 (eval echo "\"\$as_me:21822: $lt_compile\"" >&5)
21823 (eval "$lt_compile" 2>out/conftest.err)
21825 cat out/conftest.err >&5
21826 echo "$as_me:21826: \$? = $ac_status" >&5
21827 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21829 # The compiler can only warn and ignore the option if not recognized
21830 # So say no if there are warnings
21831 if test ! -s out/conftest.err; then
21832 lt_cv_prog_compiler_c_o_GCJ=yes
21837 # SGI C++ compiler will create directory out/ii_files/ for
21838 # template instantiation
21839 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21840 $rm out/* && rmdir out
21846 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21847 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21850 hard_links="nottested"
21851 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21852 # do not overwrite the value of need_locks provided by the user
21853 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21854 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21857 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21859 ln conftest.a conftest.b 2>&5 || hard_links=no
21860 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21861 echo "$as_me:$LINENO: result: $hard_links" >&5
21862 echo "${ECHO_T}$hard_links" >&6
21863 if test "$hard_links" = no; then
21864 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21865 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21872 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21873 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21876 allow_undefined_flag_GCJ=
21877 enable_shared_with_static_runtimes_GCJ=no
21879 archive_expsym_cmds_GCJ=
21880 old_archive_From_new_cmds_GCJ=
21881 old_archive_from_expsyms_cmds_GCJ=
21882 export_dynamic_flag_spec_GCJ=
21883 whole_archive_flag_spec_GCJ=
21884 thread_safe_flag_spec_GCJ=
21885 hardcode_libdir_flag_spec_GCJ=
21886 hardcode_libdir_flag_spec_ld_GCJ=
21887 hardcode_libdir_separator_GCJ=
21888 hardcode_direct_GCJ=no
21889 hardcode_minus_L_GCJ=no
21890 hardcode_shlibpath_var_GCJ=unsupported
21891 link_all_deplibs_GCJ=unknown
21892 hardcode_automatic_GCJ=no
21894 module_expsym_cmds_GCJ=
21895 always_export_symbols_GCJ=no
21896 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21897 # include_expsyms should be a list of space-separated symbols to be *always*
21898 # included in the symbol list
21899 include_expsyms_GCJ=
21900 # exclude_expsyms can be an extended regexp of symbols to exclude
21901 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21902 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21903 # as well as any symbol that contains `d'.
21904 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21905 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21906 # platforms (ab)use it in PIC code, but their linkers get confused if
21907 # the symbol is explicitly referenced. Since portable code cannot
21908 # rely on this symbol name, it's probably fine to never include it in
21909 # preloaded symbol tables.
21910 extract_expsyms_cmds=
21913 cygwin* | mingw* | pw32*)
21914 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21915 # When not using gcc, we currently assume that we are using
21916 # Microsoft Visual C++.
21917 if test "$GCC" != yes; then
21927 if test "$with_gnu_ld" = yes; then
21928 # If archive_cmds runs LD, not CC, wlarc should be empty
21931 # See if GNU ld supports shared libraries.
21933 aix3* | aix4* | aix5*)
21934 # On AIX/PPC, the GNU linker is very broken
21935 if test "$host_cpu" != ia64; then
21939 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21940 *** to be unable to reliably create shared libraries on AIX.
21941 *** Therefore, libtool is disabling shared libraries support. If you
21942 *** really care for shared libraries, you may want to modify your PATH
21943 *** so that a non-GNU linker is found, and then restart.
21950 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)'
21951 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21952 hardcode_minus_L_GCJ=yes
21954 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21955 # that the semantics of dynamic libraries on AmigaOS, at least up
21956 # to version 4, is to share data among multiple programs linked
21957 # with the same dynamic library. Since this doesn't match the
21958 # behavior of shared libraries on other platforms, we can't use
21964 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21965 allow_undefined_flag_GCJ=unsupported
21966 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21967 # support --undefined. This deserves some investigation. FIXME
21968 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21974 cygwin* | mingw* | pw32*)
21975 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21976 # as there is no search path for DLLs.
21977 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21978 allow_undefined_flag_GCJ=unsupported
21979 always_export_symbols_GCJ=no
21980 enable_shared_with_static_runtimes_GCJ=yes
21981 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21983 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21984 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21985 # If the export-symbols file already is a .def file (1st line
21986 # is EXPORTS), use it as is; otherwise, prepend...
21987 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21988 cp $export_symbols $output_objdir/$soname.def;
21990 echo EXPORTS > $output_objdir/$soname.def;
21991 cat $export_symbols >> $output_objdir/$soname.def;
21993 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22000 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22001 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22004 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22005 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22010 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22014 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22015 *** create shared libraries on Solaris systems. Therefore, libtool
22016 *** is disabling shared libraries support. We urge you to upgrade GNU
22017 *** binutils to release 2.9.1 or newer. Another option is to modify
22018 *** your PATH or compiler configuration so that the native linker is
22019 *** used, and then restart.
22022 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22023 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22024 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22031 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22033 hardcode_direct_GCJ=yes
22034 hardcode_shlibpath_var_GCJ=no
22038 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22039 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22040 archive_cmds_GCJ="$tmp_archive_cmds"
22041 supports_anon_versioning=no
22042 case `$LD -v 2>/dev/null` in
22043 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22044 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22045 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22046 *\ 2.11.*) ;; # other 2.11 versions
22047 *) supports_anon_versioning=yes ;;
22049 if test $supports_anon_versioning = yes; then
22050 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
22051 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22052 $echo "local: *; };" >> $output_objdir/$libname.ver~
22053 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22055 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
22063 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22064 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22065 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22072 if test "$ld_shlibs_GCJ" = yes; then
22073 runpath_var=LD_RUN_PATH
22074 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22075 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22076 # ancient GNU ld didn't support --whole-archive et. al.
22077 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22078 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22080 whole_archive_flag_spec_GCJ=
22084 # PORTME fill in a description of your system's linker (not GNU ld)
22087 allow_undefined_flag_GCJ=unsupported
22088 always_export_symbols_GCJ=yes
22089 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'
22090 # Note: this linker hardcodes the directories in LIBPATH if there
22091 # are no directories specified by -L.
22092 hardcode_minus_L_GCJ=yes
22093 if test "$GCC" = yes && test -z "$link_static_flag"; then
22094 # Neither direct hardcoding nor static linking is supported with a
22096 hardcode_direct_GCJ=unsupported
22101 if test "$host_cpu" = ia64; then
22102 # On IA64, the linker does run time linking by default, so we don't
22103 # have to do anything special.
22104 aix_use_runtimelinking=no
22105 exp_sym_flag='-Bexport'
22108 # If we're using GNU nm, then we don't want the "-C" option.
22109 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22110 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22111 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'
22113 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'
22115 aix_use_runtimelinking=no
22117 # Test if we are trying to use run time linking or normal
22118 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22119 # need to do runtime linking.
22120 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22121 for ld_flag in $LDFLAGS; do
22122 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22123 aix_use_runtimelinking=yes
22129 exp_sym_flag='-bexport'
22130 no_entry_flag='-bnoentry'
22133 # When large executables or shared objects are built, AIX ld can
22134 # have problems creating the table of contents. If linking a library
22135 # or program results in "error TOC overflow" add -mminimal-toc to
22136 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22137 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22139 archive_cmds_GCJ=''
22140 hardcode_direct_GCJ=yes
22141 hardcode_libdir_separator_GCJ=':'
22142 link_all_deplibs_GCJ=yes
22144 if test "$GCC" = yes; then
22145 case $host_os in aix4.012|aix4.012.*)
22146 # We only want to do this on AIX 4.2 and lower, the check
22147 # below for broken collect2 doesn't work under 4.3+
22148 collect2name=`${CC} -print-prog-name=collect2`
22149 if test -f "$collect2name" && \
22150 strings "$collect2name" | grep resolve_lib_name >/dev/null
22152 # We have reworked collect2
22153 hardcode_direct_GCJ=yes
22155 # We have old collect2
22156 hardcode_direct_GCJ=unsupported
22157 # It fails to find uninstalled libraries when the uninstalled
22158 # path is not listed in the libpath. Setting hardcode_minus_L
22159 # to unsupported forces relinking
22160 hardcode_minus_L_GCJ=yes
22161 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22162 hardcode_libdir_separator_GCJ=
22165 shared_flag='-shared'
22168 if test "$host_cpu" = ia64; then
22169 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22170 # chokes on -Wl,-G. The following line is correct:
22173 if test "$aix_use_runtimelinking" = yes; then
22174 shared_flag='${wl}-G'
22176 shared_flag='${wl}-bM:SRE'
22181 # It seems that -bexpall does not export symbols beginning with
22182 # underscore (_), so it is better to generate a list of symbols to export.
22183 always_export_symbols_GCJ=yes
22184 if test "$aix_use_runtimelinking" = yes; then
22185 # Warning - without using the other runtime loading flags (-brtl),
22186 # -berok will link without error, but may produce a broken library.
22187 allow_undefined_flag_GCJ='-berok'
22188 # Determine the default libpath from the value encoded in an empty executable.
22189 cat >conftest.$ac_ext <<_ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
22194 /* end confdefs.h. */
22204 rm -f conftest.$ac_objext conftest$ac_exeext
22205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22206 (eval $ac_link) 2>conftest.er1
22208 grep -v '^ *+' conftest.er1 >conftest.err
22210 cat conftest.err >&5
22211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212 (exit $ac_status); } &&
22213 { ac_try='test -z "$ac_c_werror_flag"
22214 || test ! -s conftest.err'
22215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22216 (eval $ac_try) 2>&5
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); }; } &&
22220 { ac_try='test -s conftest$ac_exeext'
22221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222 (eval $ac_try) 2>&5
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); }; }; then
22227 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22229 # Check for a 64-bit object if we didn't find anything.
22230 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; }
22233 echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22237 rm -f conftest.err conftest.$ac_objext \
22238 conftest$ac_exeext conftest.$ac_ext
22239 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22241 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22242 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"
22244 if test "$host_cpu" = ia64; then
22245 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22246 allow_undefined_flag_GCJ="-z nodefs"
22247 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"
22249 # Determine the default libpath from the value encoded in an empty executable.
22250 cat >conftest.$ac_ext <<_ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h. */
22265 rm -f conftest.$ac_objext conftest$ac_exeext
22266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22267 (eval $ac_link) 2>conftest.er1
22269 grep -v '^ *+' conftest.er1 >conftest.err
22271 cat conftest.err >&5
22272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273 (exit $ac_status); } &&
22274 { ac_try='test -z "$ac_c_werror_flag"
22275 || test ! -s conftest.err'
22276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22277 (eval $ac_try) 2>&5
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); }; } &&
22281 { ac_try='test -s conftest$ac_exeext'
22282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22283 (eval $ac_try) 2>&5
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); }; }; then
22288 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22290 # Check for a 64-bit object if we didn't find anything.
22291 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; }
22294 echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22298 rm -f conftest.err conftest.$ac_objext \
22299 conftest$ac_exeext conftest.$ac_ext
22300 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22302 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22303 # Warning - without using the other run time loading flags,
22304 # -berok will link without error, but may produce a broken library.
22305 no_undefined_flag_GCJ=' ${wl}-bernotok'
22306 allow_undefined_flag_GCJ=' ${wl}-berok'
22307 # -bexpall does not export symbols beginning with underscore (_)
22308 always_export_symbols_GCJ=yes
22309 # Exported symbols can be pulled into shared objects from archives
22310 whole_archive_flag_spec_GCJ=' '
22311 archive_cmds_need_lc_GCJ=yes
22312 # This is similar to how AIX traditionally builds it's shared libraries.
22313 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'
22319 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)'
22320 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22321 hardcode_minus_L_GCJ=yes
22322 # see comment about different semantics on the GNU ld section
22327 export_dynamic_flag_spec_GCJ=-rdynamic
22330 cygwin* | mingw* | pw32*)
22331 # When not using gcc, we currently assume that we are using
22332 # Microsoft Visual C++.
22333 # hardcode_libdir_flag_spec is actually meaningless, as there is
22334 # no search path for DLLs.
22335 hardcode_libdir_flag_spec_GCJ=' '
22336 allow_undefined_flag_GCJ=unsupported
22337 # Tell ltmain to make .lib files, not .a files.
22339 # Tell ltmain to make .dll files, not .so files.
22341 # FIXME: Setting linknames here is a bad hack.
22342 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22343 # The linker will automatically build a .lib file if we build a DLL.
22344 old_archive_From_new_cmds_GCJ='true'
22345 # FIXME: Should let the user specify the lib program.
22346 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22347 fix_srcfile_path='`cygpath -w "$srcfile"`'
22348 enable_shared_with_static_runtimes_GCJ=yes
22351 darwin* | rhapsody*)
22353 rhapsody* | darwin1.[012])
22354 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22357 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22358 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22360 case ${MACOSX_DEPLOYMENT_TARGET} in
22362 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22365 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22371 archive_cmds_need_lc_GCJ=no
22372 hardcode_direct_GCJ=no
22373 hardcode_automatic_GCJ=yes
22374 hardcode_shlibpath_var_GCJ=unsupported
22375 whole_archive_flag_spec_GCJ=''
22376 link_all_deplibs_GCJ=yes
22377 if test "$GCC" = yes ; then
22378 output_verbose_link_cmd='echo'
22379 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22380 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22381 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22382 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}'
22383 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}'
22385 case "$cc_basename" in
22387 output_verbose_link_cmd='echo'
22388 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22389 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22390 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22391 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}'
22392 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}'
22402 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22403 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22404 hardcode_shlibpath_var_GCJ=no
22411 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22412 # support. Future versions do this automatically, but an explicit c++rt0.o
22413 # does not break anything, and helps significantly (at the cost of a little
22416 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22417 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22418 hardcode_direct_GCJ=yes
22419 hardcode_shlibpath_var_GCJ=no
22422 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22424 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22425 hardcode_direct_GCJ=yes
22426 hardcode_minus_L_GCJ=yes
22427 hardcode_shlibpath_var_GCJ=no
22430 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22431 freebsd* | kfreebsd*-gnu)
22432 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22433 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22434 hardcode_direct_GCJ=yes
22435 hardcode_shlibpath_var_GCJ=no
22439 if test "$GCC" = yes; then
22440 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'
22442 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'
22444 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22445 hardcode_libdir_separator_GCJ=:
22446 hardcode_direct_GCJ=yes
22448 # hardcode_minus_L: Not really in the search PATH,
22449 # but as the default location of the library.
22450 hardcode_minus_L_GCJ=yes
22451 export_dynamic_flag_spec_GCJ='${wl}-E'
22455 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22456 case "$host_cpu" in
22458 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22461 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22465 case "$host_cpu" in
22467 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22470 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22474 if test "$with_gnu_ld" = no; then
22475 case "$host_cpu" in
22477 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22478 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22479 hardcode_libdir_separator_GCJ=:
22480 hardcode_direct_GCJ=no
22481 hardcode_shlibpath_var_GCJ=no
22484 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22485 hardcode_direct_GCJ=no
22486 hardcode_shlibpath_var_GCJ=no
22488 # hardcode_minus_L: Not really in the search PATH,
22489 # but as the default location of the library.
22490 hardcode_minus_L_GCJ=yes
22493 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22494 hardcode_libdir_separator_GCJ=:
22495 hardcode_direct_GCJ=yes
22496 export_dynamic_flag_spec_GCJ='${wl}-E'
22498 # hardcode_minus_L: Not really in the search PATH,
22499 # but as the default location of the library.
22500 hardcode_minus_L_GCJ=yes
22506 irix5* | irix6* | nonstopux*)
22507 if test "$GCC" = yes; then
22508 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'
22510 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'
22511 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22513 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22514 hardcode_libdir_separator_GCJ=:
22515 link_all_deplibs_GCJ=yes
22519 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22520 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22522 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22524 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22525 hardcode_direct_GCJ=yes
22526 hardcode_shlibpath_var_GCJ=no
22530 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22531 hardcode_direct_GCJ=yes
22532 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22533 hardcode_libdir_separator_GCJ=:
22534 hardcode_shlibpath_var_GCJ=no
22538 hardcode_direct_GCJ=yes
22539 hardcode_shlibpath_var_GCJ=no
22540 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22541 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22542 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22543 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22544 export_dynamic_flag_spec_GCJ='${wl}-E'
22547 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22548 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22549 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22552 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22553 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22560 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22561 hardcode_minus_L_GCJ=yes
22562 allow_undefined_flag_GCJ=unsupported
22563 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'
22564 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22568 if test "$GCC" = yes; then
22569 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22570 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'
22572 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22573 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'
22575 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22576 hardcode_libdir_separator_GCJ=:
22579 osf4* | osf5*) # as osf3* with the addition of -msym flag
22580 if test "$GCC" = yes; then
22581 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22582 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'
22583 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22585 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22586 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'
22587 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~
22588 $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'
22590 # Both c and cxx compiler support -rpath directly
22591 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22593 hardcode_libdir_separator_GCJ=:
22597 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22598 hardcode_shlibpath_var_GCJ=no
22599 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22600 runpath_var=LD_RUN_PATH
22601 hardcode_runpath_var=yes
22605 no_undefined_flag_GCJ=' -z text'
22606 if test "$GCC" = yes; then
22607 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22608 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22609 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22611 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22612 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22613 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22615 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22616 hardcode_shlibpath_var_GCJ=no
22618 solaris2.[0-5] | solaris2.[0-5].*) ;;
22619 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22620 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22622 link_all_deplibs_GCJ=yes
22626 if test "x$host_vendor" = xsequent; then
22627 # Use $CC to link under sequent, because it throws in some extra .o
22628 # files that make .init and .fini sections work.
22629 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22631 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22633 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22634 hardcode_direct_GCJ=yes
22635 hardcode_minus_L_GCJ=yes
22636 hardcode_shlibpath_var_GCJ=no
22640 case $host_vendor in
22642 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22643 hardcode_direct_GCJ=yes # is this really true???
22646 ## LD is ld it makes a PLAMLIB
22647 ## CC just makes a GrossModule.
22648 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22649 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22650 hardcode_direct_GCJ=no
22653 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22654 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22657 runpath_var='LD_RUN_PATH'
22658 hardcode_shlibpath_var_GCJ=no
22662 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22663 hardcode_shlibpath_var_GCJ=no
22664 export_dynamic_flag_spec_GCJ='-Bexport'
22668 if test -d /usr/nec; then
22669 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22670 hardcode_shlibpath_var_GCJ=no
22671 runpath_var=LD_RUN_PATH
22672 hardcode_runpath_var=yes
22678 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22679 hardcode_direct_GCJ=yes
22680 hardcode_minus_L_GCJ=no
22681 hardcode_shlibpath_var_GCJ=no
22682 hardcode_runpath_var=yes
22683 runpath_var=LD_RUN_PATH
22686 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22687 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22688 if test "$GCC" = yes; then
22689 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22691 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22693 runpath_var='LD_RUN_PATH'
22694 hardcode_shlibpath_var_GCJ=no
22698 no_undefined_flag_GCJ=' -z text'
22699 # $CC -shared without GNU ld will not create a library from C++
22700 # object files and a static libstdc++, better avoid it by now
22701 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22702 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22703 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22704 hardcode_libdir_flag_spec_GCJ=
22705 hardcode_shlibpath_var_GCJ=no
22706 runpath_var='LD_RUN_PATH'
22710 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22711 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22712 hardcode_shlibpath_var_GCJ=no
22721 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22722 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22723 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22725 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22726 if test "$GCC" = yes; then
22727 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22731 # Do we need to explicitly link libc?
22733 case "x$archive_cmds_need_lc_GCJ" in
22735 # Assume -lc should be added
22736 archive_cmds_need_lc_GCJ=yes
22738 if test "$enable_shared" = yes && test "$GCC" = yes; then
22739 case $archive_cmds_GCJ in
22741 # FIXME: we may have to deal with multi-command sequences.
22744 # Test whether the compiler implicitly links with -lc since on some
22745 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22746 # to ld, don't add -lc before -lgcc.
22747 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22748 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22750 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22753 (eval $ac_compile) 2>&5
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); } 2>conftest.err; then
22759 libobjs=conftest.$ac_objext
22761 wl=$lt_prog_compiler_wl_GCJ
22767 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22768 allow_undefined_flag_GCJ=
22769 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22770 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773 (exit $ac_status); }
22775 archive_cmds_need_lc_GCJ=no
22777 archive_cmds_need_lc_GCJ=yes
22779 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22781 cat conftest.err 1>&5
22784 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22785 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22792 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22793 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22794 library_names_spec=
22795 libname_spec='lib$name'
22799 postuninstall_cmds=
22803 shlibpath_overrides_runpath=unknown
22805 dynamic_linker="$host_os ld.so"
22806 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22807 if test "$GCC" = yes; then
22808 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22809 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22810 # if the path contains ";" then we assume it to be the separator
22811 # otherwise default to the standard path separator (i.e. ":") - it is
22812 # assumed that no part of a normal pathname contains ";" but that should
22813 # okay in the real world where ";" in dirpaths is itself problematic.
22814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22816 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22819 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22821 need_lib_prefix=unknown
22822 hardcode_into_libs=no
22824 # when you set need_version to no, make sure it does not cause -set_version
22825 # flags to be left without arguments
22826 need_version=unknown
22831 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22832 shlibpath_var=LIBPATH
22834 # AIX 3 has no versioning support, so we append a major version to the name.
22835 soname_spec='${libname}${release}${shared_ext}$major'
22842 hardcode_into_libs=yes
22843 if test "$host_cpu" = ia64; then
22844 # AIX 5 supports IA64
22845 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22846 shlibpath_var=LD_LIBRARY_PATH
22848 # With GCC up to 2.95.x, collect2 would create an import file
22849 # for dependence libraries. The import file would start with
22850 # the line `#! .'. This would cause the generated library to
22851 # depend on `.', always an invalid library. This was fixed in
22852 # development snapshots of GCC prior to 3.0.
22854 aix4 | aix4.[01] | aix4.[01].*)
22855 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22857 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22860 can_build_shared=no
22864 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22865 # soname into executable. Probably we can add versioning support to
22866 # collect2, so additional links can be useful in future.
22867 if test "$aix_use_runtimelinking" = yes; then
22868 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22869 # instead of lib<name>.a to let people know that these are not
22870 # typical AIX shared libraries.
22871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22873 # We preserve .a as extension for shared libraries through AIX4.2
22874 # and later when we are not doing run time linking.
22875 library_names_spec='${libname}${release}.a $libname.a'
22876 soname_spec='${libname}${release}${shared_ext}$major'
22878 shlibpath_var=LIBPATH
22883 library_names_spec='$libname.ixlibrary $libname.a'
22884 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22885 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'
22889 library_names_spec='${libname}${shared_ext}'
22890 dynamic_linker="$host_os ld.so"
22891 shlibpath_var=LIBRARY_PATH
22897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22898 soname_spec='${libname}${release}${shared_ext}$major'
22899 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22900 shlibpath_var=LD_LIBRARY_PATH
22901 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22902 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22903 # the default ld.so.conf also contains /usr/contrib/lib and
22904 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22905 # libtool to hard-code these into programs
22908 cygwin* | mingw* | pw32*)
22909 version_type=windows
22914 case $GCC,$host_os in
22915 yes,cygwin* | yes,mingw* | yes,pw32*)
22916 library_names_spec='$libname.dll.a'
22917 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22918 postinstall_cmds='base_file=`basename \${file}`~
22919 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22920 dldir=$destdir/`dirname \$dlpath`~
22921 test -d \$dldir || mkdir -p \$dldir~
22922 $install_prog $dir/$dlname \$dldir/$dlname'
22923 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22924 dlpath=$dir/\$dldll~
22926 shlibpath_overrides_runpath=yes
22930 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22931 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22932 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22935 # MinGW DLLs use traditional 'lib' prefix
22936 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22937 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22938 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22939 # It is most probably a Windows format PATH printed by
22940 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22941 # path with ; separators, and with drive letters. We can handle the
22942 # drive letters (cygwin fileutils understands them), so leave them,
22943 # especially as we might pass files found there to a mingw objdump,
22944 # which wouldn't understand a cygwinified path. Ahh.
22945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22947 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22951 # pw32 DLLs use 'pw' prefix rather than 'lib'
22952 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22958 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22961 dynamic_linker='Win32 ld.exe'
22962 # FIXME: first we should search . and the directory the executable is in
22966 darwin* | rhapsody*)
22967 dynamic_linker="$host_os dyld"
22968 version_type=darwin
22971 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22972 soname_spec='${libname}${release}${major}$shared_ext'
22973 shlibpath_overrides_runpath=yes
22974 shlibpath_var=DYLD_LIBRARY_PATH
22975 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22976 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22977 if test "$GCC" = yes; then
22978 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"`
22980 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22982 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22990 soname_spec='${libname}${release}${shared_ext}$major'
22991 shlibpath_var=LD_LIBRARY_PATH
23002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23003 soname_spec='${libname}${release}${shared_ext}$major'
23004 shlibpath_var=LD_LIBRARY_PATH
23005 shlibpath_overrides_runpath=no
23006 hardcode_into_libs=yes
23007 dynamic_linker='GNU ld.so'
23011 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
23012 version_type=freebsd-$objformat
23013 case $version_type in
23015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23024 shlibpath_var=LD_LIBRARY_PATH
23027 shlibpath_overrides_runpath=yes
23029 freebsd3.01* | freebsdelf3.01*)
23030 shlibpath_overrides_runpath=yes
23031 hardcode_into_libs=yes
23034 shlibpath_overrides_runpath=no
23035 hardcode_into_libs=yes
23044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23045 soname_spec='${libname}${release}${shared_ext}$major'
23046 shlibpath_var=LD_LIBRARY_PATH
23047 hardcode_into_libs=yes
23050 hpux9* | hpux10* | hpux11*)
23051 # Give a soname corresponding to the major version so that dld.sl refuses to
23052 # link against other versions.
23056 case "$host_cpu" in
23059 hardcode_into_libs=yes
23060 dynamic_linker="$host_os dld.so"
23061 shlibpath_var=LD_LIBRARY_PATH
23062 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23064 soname_spec='${libname}${release}${shared_ext}$major'
23065 if test "X$HPUX_IA64_MODE" = X32; then
23066 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23068 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23070 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23074 hardcode_into_libs=yes
23075 dynamic_linker="$host_os dld.sl"
23076 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23077 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23079 soname_spec='${libname}${release}${shared_ext}$major'
23080 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23081 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23085 dynamic_linker="$host_os dld.sl"
23086 shlibpath_var=SHLIB_PATH
23087 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23089 soname_spec='${libname}${release}${shared_ext}$major'
23092 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23093 postinstall_cmds='chmod 555 $lib'
23096 irix5* | irix6* | nonstopux*)
23098 nonstopux*) version_type=nonstopux ;;
23100 if test "$lt_cv_prog_gnu_ld" = yes; then
23108 soname_spec='${libname}${release}${shared_ext}$major'
23109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23111 irix5* | nonstopux*)
23112 libsuff= shlibsuff=
23115 case $LD in # libtool.m4 will add one of these switches to LD
23116 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23117 libsuff= shlibsuff= libmagic=32-bit;;
23118 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23119 libsuff=32 shlibsuff=N32 libmagic=N32;;
23120 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23121 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23122 *) libsuff= shlibsuff= libmagic=never-match;;
23126 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23127 shlibpath_overrides_runpath=no
23128 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23129 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23130 hardcode_into_libs=yes
23133 # No shared lib support for Linux oldld, aout, or coff.
23134 linux*oldld* | linux*aout* | linux*coff*)
23138 # This must be Linux ELF.
23143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23144 soname_spec='${libname}${release}${shared_ext}$major'
23145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23146 shlibpath_var=LD_LIBRARY_PATH
23147 shlibpath_overrides_runpath=no
23148 # This implies no fast_install, which is unacceptable.
23149 # Some rework will be needed to allow for fast_install
23150 # before this can be enabled.
23151 hardcode_into_libs=yes
23153 # Append ld.so.conf contents to the search path
23154 if test -f /etc/ld.so.conf; then
23155 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
23156 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23159 # We used to test for /lib/ld.so.1 and disable shared libraries on
23160 # powerpc, because MkLinux only supported shared libraries with the
23161 # GNU dynamic linker. Since this was broken with cross compilers,
23162 # most powerpc-linux boxes support dynamic linking these days and
23163 # people can always --disable-shared, the test was removed, and we
23164 # assume the GNU/Linux dynamic linker is in use.
23165 dynamic_linker='GNU/Linux ld.so'
23172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23173 soname_spec='${libname}${release}${shared_ext}$major'
23174 shlibpath_var=LD_LIBRARY_PATH
23175 shlibpath_overrides_runpath=no
23176 hardcode_into_libs=yes
23177 dynamic_linker='GNU ld.so'
23184 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23187 dynamic_linker='NetBSD (a.out) ld.so'
23189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23190 soname_spec='${libname}${release}${shared_ext}$major'
23191 dynamic_linker='NetBSD ld.elf_so'
23193 shlibpath_var=LD_LIBRARY_PATH
23194 shlibpath_overrides_runpath=yes
23195 hardcode_into_libs=yes
23200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23201 shlibpath_var=LD_LIBRARY_PATH
23202 shlibpath_overrides_runpath=yes
23209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23210 soname_spec='${libname}${release}${shared_ext}$major'
23211 shlibpath_var=LD_LIBRARY_PATH
23212 shlibpath_overrides_runpath=yes
23219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23221 shlibpath_var=LD_LIBRARY_PATH
23222 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23224 openbsd2.[89] | openbsd2.[89].*)
23225 shlibpath_overrides_runpath=no
23228 shlibpath_overrides_runpath=yes
23232 shlibpath_overrides_runpath=yes
23237 libname_spec='$name'
23240 library_names_spec='$libname${shared_ext} $libname.a'
23241 dynamic_linker='OS/2 ld.exe'
23242 shlibpath_var=LIBPATH
23245 osf3* | osf4* | osf5*)
23249 soname_spec='${libname}${release}${shared_ext}$major'
23250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23251 shlibpath_var=LD_LIBRARY_PATH
23252 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23253 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23258 soname_spec='${libname}${release}${shared_ext}$major'
23259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23260 shlibpath_var=LD_LIBRARY_PATH
23267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23268 soname_spec='${libname}${release}${shared_ext}$major'
23269 shlibpath_var=LD_LIBRARY_PATH
23270 shlibpath_overrides_runpath=yes
23271 hardcode_into_libs=yes
23272 # ldd complains unless libraries are executable
23273 postinstall_cmds='chmod +x $lib'
23278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23279 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23280 shlibpath_var=LD_LIBRARY_PATH
23281 shlibpath_overrides_runpath=yes
23282 if test "$with_gnu_ld" = yes; then
23288 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23291 soname_spec='${libname}${release}${shared_ext}$major'
23292 shlibpath_var=LD_LIBRARY_PATH
23293 case $host_vendor in
23295 shlibpath_overrides_runpath=no
23297 export_dynamic_flag_spec='${wl}-Blargedynsym'
23298 runpath_var=LD_RUN_PATH
23306 shlibpath_overrides_runpath=no
23307 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23313 if test -d /usr/nec ;then
23315 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23316 soname_spec='$libname${shared_ext}.$major'
23317 shlibpath_var=LD_LIBRARY_PATH
23323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23324 soname_spec='${libname}${release}${shared_ext}$major'
23325 shlibpath_var=LD_LIBRARY_PATH
23332 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23333 echo "${ECHO_T}$dynamic_linker" >&6
23334 test "$dynamic_linker" = no && can_build_shared=no
23336 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23337 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23338 hardcode_action_GCJ=
23339 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23340 test -n "$runpath_var_GCJ" || \
23341 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23343 # We can hardcode non-existant directories.
23344 if test "$hardcode_direct_GCJ" != no &&
23345 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23346 # have to relink, otherwise we might link with an installed library
23347 # when we should be linking with a yet-to-be-installed one
23348 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23349 test "$hardcode_minus_L_GCJ" != no; then
23350 # Linking always hardcodes the temporary library directory.
23351 hardcode_action_GCJ=relink
23353 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23354 hardcode_action_GCJ=immediate
23357 # We cannot hardcode anything, or else we can only hardcode existing
23359 hardcode_action_GCJ=unsupported
23361 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23362 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23364 if test "$hardcode_action_GCJ" = relink; then
23365 # Fast installation is not supported
23366 enable_fast_install=no
23367 elif test "$shlibpath_overrides_runpath" = yes ||
23368 test "$enable_shared" = no; then
23369 # Fast installation is not necessary
23370 enable_fast_install=needless
23375 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23376 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23377 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23378 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23379 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23380 echo "$as_me:$LINENO: result: yes" >&5
23381 echo "${ECHO_T}yes" >&6
23383 # FIXME - insert some real tests, host_os isn't really good enough
23386 if test -n "$STRIP" ; then
23387 striplib="$STRIP -x"
23388 echo "$as_me:$LINENO: result: yes" >&5
23389 echo "${ECHO_T}yes" >&6
23391 echo "$as_me:$LINENO: result: no" >&5
23392 echo "${ECHO_T}no" >&6
23396 echo "$as_me:$LINENO: result: no" >&5
23397 echo "${ECHO_T}no" >&6
23402 if test "x$enable_dlopen" != xyes; then
23403 enable_dlopen=unknown
23404 enable_dlopen_self=unknown
23405 enable_dlopen_self_static=unknown
23412 lt_cv_dlopen="load_add_on"
23414 lt_cv_dlopen_self=yes
23418 lt_cv_dlopen="LoadLibrary"
23423 lt_cv_dlopen="dlopen"
23428 # if libdl is installed we need to link against it
23429 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23430 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23431 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23432 echo $ECHO_N "(cached) $ECHO_C" >&6
23434 ac_check_lib_save_LIBS=$LIBS
23436 cat >conftest.$ac_ext <<_ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h. */
23443 /* Override any gcc2 internal prototype to avoid an error. */
23447 /* We use char because int might match the return type of a gcc2
23448 builtin and then its argument prototype would still apply. */
23458 rm -f conftest.$ac_objext conftest$ac_exeext
23459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23460 (eval $ac_link) 2>conftest.er1
23462 grep -v '^ *+' conftest.er1 >conftest.err
23464 cat conftest.err >&5
23465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466 (exit $ac_status); } &&
23467 { ac_try='test -z "$ac_c_werror_flag"
23468 || test ! -s conftest.err'
23469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23470 (eval $ac_try) 2>&5
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); }; } &&
23474 { ac_try='test -s conftest$ac_exeext'
23475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23476 (eval $ac_try) 2>&5
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); }; }; then
23480 ac_cv_lib_dl_dlopen=yes
23482 echo "$as_me: failed program was:" >&5
23483 sed 's/^/| /' conftest.$ac_ext >&5
23485 ac_cv_lib_dl_dlopen=no
23487 rm -f conftest.err conftest.$ac_objext \
23488 conftest$ac_exeext conftest.$ac_ext
23489 LIBS=$ac_check_lib_save_LIBS
23491 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23492 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23493 if test $ac_cv_lib_dl_dlopen = yes; then
23494 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23497 lt_cv_dlopen="dyld"
23499 lt_cv_dlopen_self=yes
23506 echo "$as_me:$LINENO: checking for shl_load" >&5
23507 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23508 if test "${ac_cv_func_shl_load+set}" = set; then
23509 echo $ECHO_N "(cached) $ECHO_C" >&6
23511 cat >conftest.$ac_ext <<_ACEOF
23514 cat confdefs.h >>conftest.$ac_ext
23515 cat >>conftest.$ac_ext <<_ACEOF
23516 /* end confdefs.h. */
23517 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23519 #define shl_load innocuous_shl_load
23521 /* System header to define __stub macros and hopefully few prototypes,
23522 which can conflict with char shl_load (); below.
23523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23524 <limits.h> exists even on freestanding compilers. */
23527 # include <limits.h>
23529 # include <assert.h>
23534 /* Override any gcc2 internal prototype to avoid an error. */
23539 /* We use char because int might match the return type of a gcc2
23540 builtin and then its argument prototype would still apply. */
23542 /* The GNU C library defines this for functions which it implements
23543 to always fail with ENOSYS. Some functions are actually named
23544 something starting with __ and the normal name is an alias. */
23545 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23548 char (*f) () = shl_load;
23557 return f != shl_load;
23562 rm -f conftest.$ac_objext conftest$ac_exeext
23563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23564 (eval $ac_link) 2>conftest.er1
23566 grep -v '^ *+' conftest.er1 >conftest.err
23568 cat conftest.err >&5
23569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); } &&
23571 { ac_try='test -z "$ac_c_werror_flag"
23572 || test ! -s conftest.err'
23573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23574 (eval $ac_try) 2>&5
23576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); }; } &&
23578 { ac_try='test -s conftest$ac_exeext'
23579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23580 (eval $ac_try) 2>&5
23582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); }; }; then
23584 ac_cv_func_shl_load=yes
23586 echo "$as_me: failed program was:" >&5
23587 sed 's/^/| /' conftest.$ac_ext >&5
23589 ac_cv_func_shl_load=no
23591 rm -f conftest.err conftest.$ac_objext \
23592 conftest$ac_exeext conftest.$ac_ext
23594 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23595 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23596 if test $ac_cv_func_shl_load = yes; then
23597 lt_cv_dlopen="shl_load"
23599 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23600 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23601 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23602 echo $ECHO_N "(cached) $ECHO_C" >&6
23604 ac_check_lib_save_LIBS=$LIBS
23606 cat >conftest.$ac_ext <<_ACEOF
23609 cat confdefs.h >>conftest.$ac_ext
23610 cat >>conftest.$ac_ext <<_ACEOF
23611 /* end confdefs.h. */
23613 /* Override any gcc2 internal prototype to avoid an error. */
23617 /* We use char because int might match the return type of a gcc2
23618 builtin and then its argument prototype would still apply. */
23628 rm -f conftest.$ac_objext conftest$ac_exeext
23629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23630 (eval $ac_link) 2>conftest.er1
23632 grep -v '^ *+' conftest.er1 >conftest.err
23634 cat conftest.err >&5
23635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); } &&
23637 { ac_try='test -z "$ac_c_werror_flag"
23638 || test ! -s conftest.err'
23639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23640 (eval $ac_try) 2>&5
23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643 (exit $ac_status); }; } &&
23644 { ac_try='test -s conftest$ac_exeext'
23645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23646 (eval $ac_try) 2>&5
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); }; }; then
23650 ac_cv_lib_dld_shl_load=yes
23652 echo "$as_me: failed program was:" >&5
23653 sed 's/^/| /' conftest.$ac_ext >&5
23655 ac_cv_lib_dld_shl_load=no
23657 rm -f conftest.err conftest.$ac_objext \
23658 conftest$ac_exeext conftest.$ac_ext
23659 LIBS=$ac_check_lib_save_LIBS
23661 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23662 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23663 if test $ac_cv_lib_dld_shl_load = yes; then
23664 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23666 echo "$as_me:$LINENO: checking for dlopen" >&5
23667 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23668 if test "${ac_cv_func_dlopen+set}" = set; then
23669 echo $ECHO_N "(cached) $ECHO_C" >&6
23671 cat >conftest.$ac_ext <<_ACEOF
23674 cat confdefs.h >>conftest.$ac_ext
23675 cat >>conftest.$ac_ext <<_ACEOF
23676 /* end confdefs.h. */
23677 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23679 #define dlopen innocuous_dlopen
23681 /* System header to define __stub macros and hopefully few prototypes,
23682 which can conflict with char dlopen (); below.
23683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23684 <limits.h> exists even on freestanding compilers. */
23687 # include <limits.h>
23689 # include <assert.h>
23694 /* Override any gcc2 internal prototype to avoid an error. */
23699 /* We use char because int might match the return type of a gcc2
23700 builtin and then its argument prototype would still apply. */
23702 /* The GNU C library defines this for functions which it implements
23703 to always fail with ENOSYS. Some functions are actually named
23704 something starting with __ and the normal name is an alias. */
23705 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23708 char (*f) () = dlopen;
23717 return f != dlopen;
23722 rm -f conftest.$ac_objext conftest$ac_exeext
23723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23724 (eval $ac_link) 2>conftest.er1
23726 grep -v '^ *+' conftest.er1 >conftest.err
23728 cat conftest.err >&5
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); } &&
23731 { ac_try='test -z "$ac_c_werror_flag"
23732 || test ! -s conftest.err'
23733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23734 (eval $ac_try) 2>&5
23736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737 (exit $ac_status); }; } &&
23738 { ac_try='test -s conftest$ac_exeext'
23739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23740 (eval $ac_try) 2>&5
23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); }; }; then
23744 ac_cv_func_dlopen=yes
23746 echo "$as_me: failed program was:" >&5
23747 sed 's/^/| /' conftest.$ac_ext >&5
23749 ac_cv_func_dlopen=no
23751 rm -f conftest.err conftest.$ac_objext \
23752 conftest$ac_exeext conftest.$ac_ext
23754 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23755 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23756 if test $ac_cv_func_dlopen = yes; then
23757 lt_cv_dlopen="dlopen"
23759 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23760 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23761 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23762 echo $ECHO_N "(cached) $ECHO_C" >&6
23764 ac_check_lib_save_LIBS=$LIBS
23766 cat >conftest.$ac_ext <<_ACEOF
23769 cat confdefs.h >>conftest.$ac_ext
23770 cat >>conftest.$ac_ext <<_ACEOF
23771 /* end confdefs.h. */
23773 /* Override any gcc2 internal prototype to avoid an error. */
23777 /* We use char because int might match the return type of a gcc2
23778 builtin and then its argument prototype would still apply. */
23788 rm -f conftest.$ac_objext conftest$ac_exeext
23789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23790 (eval $ac_link) 2>conftest.er1
23792 grep -v '^ *+' conftest.er1 >conftest.err
23794 cat conftest.err >&5
23795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796 (exit $ac_status); } &&
23797 { ac_try='test -z "$ac_c_werror_flag"
23798 || test ! -s conftest.err'
23799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23800 (eval $ac_try) 2>&5
23802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803 (exit $ac_status); }; } &&
23804 { ac_try='test -s conftest$ac_exeext'
23805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23806 (eval $ac_try) 2>&5
23808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809 (exit $ac_status); }; }; then
23810 ac_cv_lib_dl_dlopen=yes
23812 echo "$as_me: failed program was:" >&5
23813 sed 's/^/| /' conftest.$ac_ext >&5
23815 ac_cv_lib_dl_dlopen=no
23817 rm -f conftest.err conftest.$ac_objext \
23818 conftest$ac_exeext conftest.$ac_ext
23819 LIBS=$ac_check_lib_save_LIBS
23821 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23822 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23823 if test $ac_cv_lib_dl_dlopen = yes; then
23824 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23826 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23827 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23828 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23829 echo $ECHO_N "(cached) $ECHO_C" >&6
23831 ac_check_lib_save_LIBS=$LIBS
23832 LIBS="-lsvld $LIBS"
23833 cat >conftest.$ac_ext <<_ACEOF
23836 cat confdefs.h >>conftest.$ac_ext
23837 cat >>conftest.$ac_ext <<_ACEOF
23838 /* end confdefs.h. */
23840 /* Override any gcc2 internal prototype to avoid an error. */
23844 /* We use char because int might match the return type of a gcc2
23845 builtin and then its argument prototype would still apply. */
23855 rm -f conftest.$ac_objext conftest$ac_exeext
23856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23857 (eval $ac_link) 2>conftest.er1
23859 grep -v '^ *+' conftest.er1 >conftest.err
23861 cat conftest.err >&5
23862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863 (exit $ac_status); } &&
23864 { ac_try='test -z "$ac_c_werror_flag"
23865 || test ! -s conftest.err'
23866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23867 (eval $ac_try) 2>&5
23869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870 (exit $ac_status); }; } &&
23871 { ac_try='test -s conftest$ac_exeext'
23872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23873 (eval $ac_try) 2>&5
23875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876 (exit $ac_status); }; }; then
23877 ac_cv_lib_svld_dlopen=yes
23879 echo "$as_me: failed program was:" >&5
23880 sed 's/^/| /' conftest.$ac_ext >&5
23882 ac_cv_lib_svld_dlopen=no
23884 rm -f conftest.err conftest.$ac_objext \
23885 conftest$ac_exeext conftest.$ac_ext
23886 LIBS=$ac_check_lib_save_LIBS
23888 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23889 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23890 if test $ac_cv_lib_svld_dlopen = yes; then
23891 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23893 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23894 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23895 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23896 echo $ECHO_N "(cached) $ECHO_C" >&6
23898 ac_check_lib_save_LIBS=$LIBS
23900 cat >conftest.$ac_ext <<_ACEOF
23903 cat confdefs.h >>conftest.$ac_ext
23904 cat >>conftest.$ac_ext <<_ACEOF
23905 /* end confdefs.h. */
23907 /* Override any gcc2 internal prototype to avoid an error. */
23911 /* We use char because int might match the return type of a gcc2
23912 builtin and then its argument prototype would still apply. */
23922 rm -f conftest.$ac_objext conftest$ac_exeext
23923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23924 (eval $ac_link) 2>conftest.er1
23926 grep -v '^ *+' conftest.er1 >conftest.err
23928 cat conftest.err >&5
23929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); } &&
23931 { ac_try='test -z "$ac_c_werror_flag"
23932 || test ! -s conftest.err'
23933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23934 (eval $ac_try) 2>&5
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); }; } &&
23938 { ac_try='test -s conftest$ac_exeext'
23939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23940 (eval $ac_try) 2>&5
23942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943 (exit $ac_status); }; }; then
23944 ac_cv_lib_dld_dld_link=yes
23946 echo "$as_me: failed program was:" >&5
23947 sed 's/^/| /' conftest.$ac_ext >&5
23949 ac_cv_lib_dld_dld_link=no
23951 rm -f conftest.err conftest.$ac_objext \
23952 conftest$ac_exeext conftest.$ac_ext
23953 LIBS=$ac_check_lib_save_LIBS
23955 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23956 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23957 if test $ac_cv_lib_dld_dld_link = yes; then
23958 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23979 if test "x$lt_cv_dlopen" != xno; then
23985 case $lt_cv_dlopen in
23987 save_CPPFLAGS="$CPPFLAGS"
23988 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23990 save_LDFLAGS="$LDFLAGS"
23991 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23994 LIBS="$lt_cv_dlopen_libs $LIBS"
23996 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23997 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23998 if test "${lt_cv_dlopen_self+set}" = set; then
23999 echo $ECHO_N "(cached) $ECHO_C" >&6
24001 if test "$cross_compiling" = yes; then :
24002 lt_cv_dlopen_self=cross
24004 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24005 lt_status=$lt_dlunknown
24006 cat > conftest.$ac_ext <<EOF
24007 #line 24007 "configure"
24008 #include "confdefs.h"
24017 # define LT_DLGLOBAL RTLD_GLOBAL
24020 # define LT_DLGLOBAL DL_GLOBAL
24022 # define LT_DLGLOBAL 0
24026 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24027 find out it does not work in some platform. */
24028 #ifndef LT_DLLAZY_OR_NOW
24030 # define LT_DLLAZY_OR_NOW RTLD_LAZY
24033 # define LT_DLLAZY_OR_NOW DL_LAZY
24036 # define LT_DLLAZY_OR_NOW RTLD_NOW
24039 # define LT_DLLAZY_OR_NOW DL_NOW
24041 # define LT_DLLAZY_OR_NOW 0
24049 extern "C" void exit (int);
24052 void fnord() { int i=42;}
24055 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24056 int status = $lt_dlunknown;
24060 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
24061 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24062 /* dlclose (self); */
24068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24069 (eval $ac_link) 2>&5
24071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24073 (./conftest; exit; ) 2>/dev/null
24075 case x$lt_status in
24076 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
24077 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
24078 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
24081 # compilation failed
24082 lt_cv_dlopen_self=no
24089 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
24090 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
24092 if test "x$lt_cv_dlopen_self" = xyes; then
24093 LDFLAGS="$LDFLAGS $link_static_flag"
24094 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
24095 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
24096 if test "${lt_cv_dlopen_self_static+set}" = set; then
24097 echo $ECHO_N "(cached) $ECHO_C" >&6
24099 if test "$cross_compiling" = yes; then :
24100 lt_cv_dlopen_self_static=cross
24102 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24103 lt_status=$lt_dlunknown
24104 cat > conftest.$ac_ext <<EOF
24105 #line 24105 "configure"
24106 #include "confdefs.h"
24115 # define LT_DLGLOBAL RTLD_GLOBAL
24118 # define LT_DLGLOBAL DL_GLOBAL
24120 # define LT_DLGLOBAL 0
24124 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24125 find out it does not work in some platform. */
24126 #ifndef LT_DLLAZY_OR_NOW
24128 # define LT_DLLAZY_OR_NOW RTLD_LAZY
24131 # define LT_DLLAZY_OR_NOW DL_LAZY
24134 # define LT_DLLAZY_OR_NOW RTLD_NOW
24137 # define LT_DLLAZY_OR_NOW DL_NOW
24139 # define LT_DLLAZY_OR_NOW 0
24147 extern "C" void exit (int);
24150 void fnord() { int i=42;}
24153 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24154 int status = $lt_dlunknown;
24158 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
24159 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24160 /* dlclose (self); */
24166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24167 (eval $ac_link) 2>&5
24169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24171 (./conftest; exit; ) 2>/dev/null
24173 case x$lt_status in
24174 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
24175 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
24176 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
24179 # compilation failed
24180 lt_cv_dlopen_self_static=no
24187 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
24188 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
24191 CPPFLAGS="$save_CPPFLAGS"
24192 LDFLAGS="$save_LDFLAGS"
24197 case $lt_cv_dlopen_self in
24198 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24199 *) enable_dlopen_self=unknown ;;
24202 case $lt_cv_dlopen_self_static in
24203 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24204 *) enable_dlopen_self_static=unknown ;;
24209 # The else clause should only fire when bootstrapping the
24210 # libtool distribution, otherwise you forgot to ship ltmain.sh
24211 # with your package, and you will get complaints that there are
24212 # no rules to generate ltmain.sh.
24213 if test -f "$ltmain"; then
24214 # See if we are running on zsh, and set the options which allow our commands through
24215 # without removal of \ escapes.
24216 if test -n "${ZSH_VERSION+set}" ; then
24217 setopt NO_GLOB_SUBST
24219 # Now quote all the things that may contain metacharacters while being
24220 # careful not to overquote the AC_SUBSTed values. We take copies of the
24221 # variables and quote the copies for generation of the libtool script.
24222 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24224 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24225 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24226 deplibs_check_method reload_flag reload_cmds need_locks \
24227 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24228 lt_cv_sys_global_symbol_to_c_name_address \
24229 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24230 old_postinstall_cmds old_postuninstall_cmds \
24234 lt_prog_compiler_wl_GCJ \
24235 lt_prog_compiler_pic_GCJ \
24236 lt_prog_compiler_static_GCJ \
24237 lt_prog_compiler_no_builtin_flag_GCJ \
24238 export_dynamic_flag_spec_GCJ \
24239 thread_safe_flag_spec_GCJ \
24240 whole_archive_flag_spec_GCJ \
24241 enable_shared_with_static_runtimes_GCJ \
24242 old_archive_cmds_GCJ \
24243 old_archive_from_new_cmds_GCJ \
24244 predep_objects_GCJ \
24245 postdep_objects_GCJ \
24248 compiler_lib_search_path_GCJ \
24250 archive_expsym_cmds_GCJ \
24251 postinstall_cmds_GCJ \
24252 postuninstall_cmds_GCJ \
24253 old_archive_from_expsyms_cmds_GCJ \
24254 allow_undefined_flag_GCJ \
24255 no_undefined_flag_GCJ \
24256 export_symbols_cmds_GCJ \
24257 hardcode_libdir_flag_spec_GCJ \
24258 hardcode_libdir_flag_spec_ld_GCJ \
24259 hardcode_libdir_separator_GCJ \
24260 hardcode_automatic_GCJ \
24262 module_expsym_cmds_GCJ \
24263 lt_cv_prog_compiler_c_o_GCJ \
24264 exclude_expsyms_GCJ \
24265 include_expsyms_GCJ; do
24268 old_archive_cmds_GCJ | \
24269 old_archive_from_new_cmds_GCJ | \
24270 archive_cmds_GCJ | \
24271 archive_expsym_cmds_GCJ | \
24272 module_cmds_GCJ | \
24273 module_expsym_cmds_GCJ | \
24274 old_archive_from_expsyms_cmds_GCJ | \
24275 export_symbols_cmds_GCJ | \
24276 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24277 postinstall_cmds | postuninstall_cmds | \
24278 old_postinstall_cmds | old_postuninstall_cmds | \
24279 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24280 # Double-quote double-evaled strings.
24281 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24284 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24290 *'\$0 --fallback-echo"')
24291 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24297 cat <<__EOF__ >> "$cfgfile"
24298 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24300 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24302 # Shell to use when invoking shell scripts.
24305 # Whether or not to build shared libraries.
24306 build_libtool_libs=$enable_shared
24308 # Whether or not to build static libraries.
24309 build_old_libs=$enable_static
24311 # Whether or not to add -lc for building shared libraries.
24312 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24314 # Whether or not to disallow shared libs when runtime libs are static
24315 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24317 # Whether or not to optimize for fast installation.
24318 fast_install=$enable_fast_install
24321 host_alias=$host_alias
24324 # An echo program that does not interpret backslashes.
24329 AR_FLAGS=$lt_AR_FLAGS
24334 # A language-specific compiler.
24335 CC=$lt_compiler_GCJ
24337 # Is the compiler the GNU C compiler?
24343 # The linker used to build libraries.
24346 # Whether we need hard or soft links.
24349 # A BSD-compatible nm program.
24352 # A symbol stripping program
24355 # Used to examine libraries when file_magic_cmd begins "file"
24356 MAGIC_CMD=$MAGIC_CMD
24358 # Used on cygwin: DLL creation program.
24361 # Used on cygwin: object dumper.
24364 # Used on cygwin: assembler.
24367 # The name of the directory that contains temporary libtool files.
24370 # How to create reloadable object files.
24371 reload_flag=$lt_reload_flag
24372 reload_cmds=$lt_reload_cmds
24374 # How to pass a linker flag through the compiler.
24375 wl=$lt_lt_prog_compiler_wl_GCJ
24377 # Object file suffix (normally "o").
24378 objext="$ac_objext"
24380 # Old archive suffix (normally "a").
24383 # Shared library suffix (normally ".so").
24384 shrext_cmds='$shrext_cmds'
24386 # Executable file suffix (normally "").
24389 # Additional compiler flags for building library objects.
24390 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24393 # What is the maximum length of a command?
24394 max_cmd_len=$lt_cv_sys_max_cmd_len
24396 # Does compiler simultaneously support -c and -o options?
24397 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24399 # Must we lock files when doing compilation ?
24400 need_locks=$lt_need_locks
24402 # Do we need the lib prefix for modules?
24403 need_lib_prefix=$need_lib_prefix
24405 # Do we need a version for libraries?
24406 need_version=$need_version
24408 # Whether dlopen is supported.
24409 dlopen_support=$enable_dlopen
24411 # Whether dlopen of programs is supported.
24412 dlopen_self=$enable_dlopen_self
24414 # Whether dlopen of statically linked programs is supported.
24415 dlopen_self_static=$enable_dlopen_self_static
24417 # Compiler flag to prevent dynamic linking.
24418 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24420 # Compiler flag to turn off builtin functions.
24421 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24423 # Compiler flag to allow reflexive dlopens.
24424 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24426 # Compiler flag to generate shared objects directly from archives.
24427 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24429 # Compiler flag to generate thread-safe objects.
24430 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24432 # Library versioning type.
24433 version_type=$version_type
24435 # Format of library name prefix.
24436 libname_spec=$lt_libname_spec
24438 # List of archive names. First name is the real one, the rest are links.
24439 # The last name is the one that the linker finds with -lNAME.
24440 library_names_spec=$lt_library_names_spec
24442 # The coded name of the library, if different from the real name.
24443 soname_spec=$lt_soname_spec
24445 # Commands used to build and install an old-style archive.
24447 old_archive_cmds=$lt_old_archive_cmds_GCJ
24448 old_postinstall_cmds=$lt_old_postinstall_cmds
24449 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24451 # Create an old-style archive from a shared archive.
24452 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24454 # Create a temporary old-style archive to link instead of a shared archive.
24455 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24457 # Commands used to build and install a shared archive.
24458 archive_cmds=$lt_archive_cmds_GCJ
24459 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24460 postinstall_cmds=$lt_postinstall_cmds
24461 postuninstall_cmds=$lt_postuninstall_cmds
24463 # Commands used to build a loadable module (assumed same as above if empty)
24464 module_cmds=$lt_module_cmds_GCJ
24465 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24467 # Commands to strip libraries.
24468 old_striplib=$lt_old_striplib
24469 striplib=$lt_striplib
24471 # Dependencies to place before the objects being linked to create a
24473 predep_objects=$lt_predep_objects_GCJ
24475 # Dependencies to place after the objects being linked to create a
24477 postdep_objects=$lt_postdep_objects_GCJ
24479 # Dependencies to place before the objects being linked to create a
24481 predeps=$lt_predeps_GCJ
24483 # Dependencies to place after the objects being linked to create a
24485 postdeps=$lt_postdeps_GCJ
24487 # The library search path used internally by the compiler when linking
24488 # a shared library.
24489 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24491 # Method to check whether dependent libraries are shared objects.
24492 deplibs_check_method=$lt_deplibs_check_method
24494 # Command to use when deplibs_check_method == file_magic.
24495 file_magic_cmd=$lt_file_magic_cmd
24497 # Flag that allows shared libraries with undefined symbols to be built.
24498 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24500 # Flag that forces no undefined symbols.
24501 no_undefined_flag=$lt_no_undefined_flag_GCJ
24503 # Commands used to finish a libtool library installation in a directory.
24504 finish_cmds=$lt_finish_cmds
24506 # Same as above, but a single script fragment to be evaled but not shown.
24507 finish_eval=$lt_finish_eval
24509 # Take the output of nm and produce a listing of raw symbols and C names.
24510 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24512 # Transform the output of nm in a proper C declaration
24513 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24515 # Transform the output of nm in a C name address pair
24516 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24518 # This is the shared library runtime path variable.
24519 runpath_var=$runpath_var
24521 # This is the shared library path variable.
24522 shlibpath_var=$shlibpath_var
24524 # Is shlibpath searched before the hard-coded library search path?
24525 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24527 # How to hardcode a shared library path into an executable.
24528 hardcode_action=$hardcode_action_GCJ
24530 # Whether we should hardcode library paths into libraries.
24531 hardcode_into_libs=$hardcode_into_libs
24533 # Flag to hardcode \$libdir into a binary during linking.
24534 # This must work even if \$libdir does not exist.
24535 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24537 # If ld is used when linking, flag to hardcode \$libdir into
24538 # a binary during linking. This must work even if \$libdir does
24540 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24542 # Whether we need a single -rpath flag with a separated argument.
24543 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24545 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24546 # resulting binary.
24547 hardcode_direct=$hardcode_direct_GCJ
24549 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24550 # resulting binary.
24551 hardcode_minus_L=$hardcode_minus_L_GCJ
24553 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24554 # the resulting binary.
24555 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24557 # Set to yes if building a shared library automatically hardcodes DIR into the library
24558 # and all subsequent libraries and executables linked against it.
24559 hardcode_automatic=$hardcode_automatic_GCJ
24561 # Variables whose values should be saved in libtool wrapper scripts and
24562 # restored at relink time.
24563 variables_saved_for_relink="$variables_saved_for_relink"
24565 # Whether libtool must link a program against all its dependency libraries.
24566 link_all_deplibs=$link_all_deplibs_GCJ
24568 # Compile-time system search path for libraries
24569 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24571 # Run-time system search path for libraries
24572 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24574 # Fix the shell variable \$srcfile for the compiler.
24575 fix_srcfile_path="$fix_srcfile_path_GCJ"
24577 # Set to yes if exported symbols are required.
24578 always_export_symbols=$always_export_symbols_GCJ
24580 # The commands to list exported symbols.
24581 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24583 # The commands to extract the exported symbol list from a shared archive.
24584 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24586 # Symbols that should not be listed in the preloaded symbols.
24587 exclude_expsyms=$lt_exclude_expsyms_GCJ
24589 # Symbols that must always be exported.
24590 include_expsyms=$lt_include_expsyms_GCJ
24592 # ### END LIBTOOL TAG CONFIG: $tagname
24598 # If there is no Makefile yet, we rely on a make rule to execute
24599 # `config.status --recheck' to rerun these tests and create the
24600 # libtool script then.
24601 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24602 if test -f "$ltmain_in"; then
24603 test -f Makefile && make "$ltmain"
24609 ac_cpp='$CPP $CPPFLAGS'
24610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24623 ac_cpp='$CPP $CPPFLAGS'
24624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24629 # Source file extension for RC test sources.
24632 # Object file extension for compiled RC test sources.
24636 # Code to be used in simple compile tests
24637 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24639 # Code to be used in simple link tests
24640 lt_simple_link_test_code="$lt_simple_compile_test_code"
24642 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24644 # If no C compiler was specified, use CC.
24647 # Allow CC to be a program name with arguments.
24651 # Allow CC to be a program name with arguments.
24656 lt_cv_prog_compiler_c_o_RC=yes
24658 # The else clause should only fire when bootstrapping the
24659 # libtool distribution, otherwise you forgot to ship ltmain.sh
24660 # with your package, and you will get complaints that there are
24661 # no rules to generate ltmain.sh.
24662 if test -f "$ltmain"; then
24663 # See if we are running on zsh, and set the options which allow our commands through
24664 # without removal of \ escapes.
24665 if test -n "${ZSH_VERSION+set}" ; then
24666 setopt NO_GLOB_SUBST
24668 # Now quote all the things that may contain metacharacters while being
24669 # careful not to overquote the AC_SUBSTed values. We take copies of the
24670 # variables and quote the copies for generation of the libtool script.
24671 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24673 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24674 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24675 deplibs_check_method reload_flag reload_cmds need_locks \
24676 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24677 lt_cv_sys_global_symbol_to_c_name_address \
24678 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24679 old_postinstall_cmds old_postuninstall_cmds \
24683 lt_prog_compiler_wl_RC \
24684 lt_prog_compiler_pic_RC \
24685 lt_prog_compiler_static_RC \
24686 lt_prog_compiler_no_builtin_flag_RC \
24687 export_dynamic_flag_spec_RC \
24688 thread_safe_flag_spec_RC \
24689 whole_archive_flag_spec_RC \
24690 enable_shared_with_static_runtimes_RC \
24691 old_archive_cmds_RC \
24692 old_archive_from_new_cmds_RC \
24693 predep_objects_RC \
24694 postdep_objects_RC \
24697 compiler_lib_search_path_RC \
24699 archive_expsym_cmds_RC \
24700 postinstall_cmds_RC \
24701 postuninstall_cmds_RC \
24702 old_archive_from_expsyms_cmds_RC \
24703 allow_undefined_flag_RC \
24704 no_undefined_flag_RC \
24705 export_symbols_cmds_RC \
24706 hardcode_libdir_flag_spec_RC \
24707 hardcode_libdir_flag_spec_ld_RC \
24708 hardcode_libdir_separator_RC \
24709 hardcode_automatic_RC \
24711 module_expsym_cmds_RC \
24712 lt_cv_prog_compiler_c_o_RC \
24713 exclude_expsyms_RC \
24714 include_expsyms_RC; do
24717 old_archive_cmds_RC | \
24718 old_archive_from_new_cmds_RC | \
24719 archive_cmds_RC | \
24720 archive_expsym_cmds_RC | \
24722 module_expsym_cmds_RC | \
24723 old_archive_from_expsyms_cmds_RC | \
24724 export_symbols_cmds_RC | \
24725 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24726 postinstall_cmds | postuninstall_cmds | \
24727 old_postinstall_cmds | old_postuninstall_cmds | \
24728 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24729 # Double-quote double-evaled strings.
24730 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24733 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24739 *'\$0 --fallback-echo"')
24740 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24746 cat <<__EOF__ >> "$cfgfile"
24747 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24749 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24751 # Shell to use when invoking shell scripts.
24754 # Whether or not to build shared libraries.
24755 build_libtool_libs=$enable_shared
24757 # Whether or not to build static libraries.
24758 build_old_libs=$enable_static
24760 # Whether or not to add -lc for building shared libraries.
24761 build_libtool_need_lc=$archive_cmds_need_lc_RC
24763 # Whether or not to disallow shared libs when runtime libs are static
24764 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24766 # Whether or not to optimize for fast installation.
24767 fast_install=$enable_fast_install
24770 host_alias=$host_alias
24773 # An echo program that does not interpret backslashes.
24778 AR_FLAGS=$lt_AR_FLAGS
24783 # A language-specific compiler.
24786 # Is the compiler the GNU C compiler?
24792 # The linker used to build libraries.
24795 # Whether we need hard or soft links.
24798 # A BSD-compatible nm program.
24801 # A symbol stripping program
24804 # Used to examine libraries when file_magic_cmd begins "file"
24805 MAGIC_CMD=$MAGIC_CMD
24807 # Used on cygwin: DLL creation program.
24810 # Used on cygwin: object dumper.
24813 # Used on cygwin: assembler.
24816 # The name of the directory that contains temporary libtool files.
24819 # How to create reloadable object files.
24820 reload_flag=$lt_reload_flag
24821 reload_cmds=$lt_reload_cmds
24823 # How to pass a linker flag through the compiler.
24824 wl=$lt_lt_prog_compiler_wl_RC
24826 # Object file suffix (normally "o").
24827 objext="$ac_objext"
24829 # Old archive suffix (normally "a").
24832 # Shared library suffix (normally ".so").
24833 shrext_cmds='$shrext_cmds'
24835 # Executable file suffix (normally "").
24838 # Additional compiler flags for building library objects.
24839 pic_flag=$lt_lt_prog_compiler_pic_RC
24842 # What is the maximum length of a command?
24843 max_cmd_len=$lt_cv_sys_max_cmd_len
24845 # Does compiler simultaneously support -c and -o options?
24846 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24848 # Must we lock files when doing compilation ?
24849 need_locks=$lt_need_locks
24851 # Do we need the lib prefix for modules?
24852 need_lib_prefix=$need_lib_prefix
24854 # Do we need a version for libraries?
24855 need_version=$need_version
24857 # Whether dlopen is supported.
24858 dlopen_support=$enable_dlopen
24860 # Whether dlopen of programs is supported.
24861 dlopen_self=$enable_dlopen_self
24863 # Whether dlopen of statically linked programs is supported.
24864 dlopen_self_static=$enable_dlopen_self_static
24866 # Compiler flag to prevent dynamic linking.
24867 link_static_flag=$lt_lt_prog_compiler_static_RC
24869 # Compiler flag to turn off builtin functions.
24870 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24872 # Compiler flag to allow reflexive dlopens.
24873 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24875 # Compiler flag to generate shared objects directly from archives.
24876 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24878 # Compiler flag to generate thread-safe objects.
24879 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24881 # Library versioning type.
24882 version_type=$version_type
24884 # Format of library name prefix.
24885 libname_spec=$lt_libname_spec
24887 # List of archive names. First name is the real one, the rest are links.
24888 # The last name is the one that the linker finds with -lNAME.
24889 library_names_spec=$lt_library_names_spec
24891 # The coded name of the library, if different from the real name.
24892 soname_spec=$lt_soname_spec
24894 # Commands used to build and install an old-style archive.
24896 old_archive_cmds=$lt_old_archive_cmds_RC
24897 old_postinstall_cmds=$lt_old_postinstall_cmds
24898 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24900 # Create an old-style archive from a shared archive.
24901 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24903 # Create a temporary old-style archive to link instead of a shared archive.
24904 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24906 # Commands used to build and install a shared archive.
24907 archive_cmds=$lt_archive_cmds_RC
24908 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24909 postinstall_cmds=$lt_postinstall_cmds
24910 postuninstall_cmds=$lt_postuninstall_cmds
24912 # Commands used to build a loadable module (assumed same as above if empty)
24913 module_cmds=$lt_module_cmds_RC
24914 module_expsym_cmds=$lt_module_expsym_cmds_RC
24916 # Commands to strip libraries.
24917 old_striplib=$lt_old_striplib
24918 striplib=$lt_striplib
24920 # Dependencies to place before the objects being linked to create a
24922 predep_objects=$lt_predep_objects_RC
24924 # Dependencies to place after the objects being linked to create a
24926 postdep_objects=$lt_postdep_objects_RC
24928 # Dependencies to place before the objects being linked to create a
24930 predeps=$lt_predeps_RC
24932 # Dependencies to place after the objects being linked to create a
24934 postdeps=$lt_postdeps_RC
24936 # The library search path used internally by the compiler when linking
24937 # a shared library.
24938 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24940 # Method to check whether dependent libraries are shared objects.
24941 deplibs_check_method=$lt_deplibs_check_method
24943 # Command to use when deplibs_check_method == file_magic.
24944 file_magic_cmd=$lt_file_magic_cmd
24946 # Flag that allows shared libraries with undefined symbols to be built.
24947 allow_undefined_flag=$lt_allow_undefined_flag_RC
24949 # Flag that forces no undefined symbols.
24950 no_undefined_flag=$lt_no_undefined_flag_RC
24952 # Commands used to finish a libtool library installation in a directory.
24953 finish_cmds=$lt_finish_cmds
24955 # Same as above, but a single script fragment to be evaled but not shown.
24956 finish_eval=$lt_finish_eval
24958 # Take the output of nm and produce a listing of raw symbols and C names.
24959 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24961 # Transform the output of nm in a proper C declaration
24962 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24964 # Transform the output of nm in a C name address pair
24965 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24967 # This is the shared library runtime path variable.
24968 runpath_var=$runpath_var
24970 # This is the shared library path variable.
24971 shlibpath_var=$shlibpath_var
24973 # Is shlibpath searched before the hard-coded library search path?
24974 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24976 # How to hardcode a shared library path into an executable.
24977 hardcode_action=$hardcode_action_RC
24979 # Whether we should hardcode library paths into libraries.
24980 hardcode_into_libs=$hardcode_into_libs
24982 # Flag to hardcode \$libdir into a binary during linking.
24983 # This must work even if \$libdir does not exist.
24984 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24986 # If ld is used when linking, flag to hardcode \$libdir into
24987 # a binary during linking. This must work even if \$libdir does
24989 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24991 # Whether we need a single -rpath flag with a separated argument.
24992 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24994 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24995 # resulting binary.
24996 hardcode_direct=$hardcode_direct_RC
24998 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24999 # resulting binary.
25000 hardcode_minus_L=$hardcode_minus_L_RC
25002 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25003 # the resulting binary.
25004 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25006 # Set to yes if building a shared library automatically hardcodes DIR into the library
25007 # and all subsequent libraries and executables linked against it.
25008 hardcode_automatic=$hardcode_automatic_RC
25010 # Variables whose values should be saved in libtool wrapper scripts and
25011 # restored at relink time.
25012 variables_saved_for_relink="$variables_saved_for_relink"
25014 # Whether libtool must link a program against all its dependency libraries.
25015 link_all_deplibs=$link_all_deplibs_RC
25017 # Compile-time system search path for libraries
25018 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25020 # Run-time system search path for libraries
25021 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25023 # Fix the shell variable \$srcfile for the compiler.
25024 fix_srcfile_path="$fix_srcfile_path_RC"
25026 # Set to yes if exported symbols are required.
25027 always_export_symbols=$always_export_symbols_RC
25029 # The commands to list exported symbols.
25030 export_symbols_cmds=$lt_export_symbols_cmds_RC
25032 # The commands to extract the exported symbol list from a shared archive.
25033 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25035 # Symbols that should not be listed in the preloaded symbols.
25036 exclude_expsyms=$lt_exclude_expsyms_RC
25038 # Symbols that must always be exported.
25039 include_expsyms=$lt_include_expsyms_RC
25041 # ### END LIBTOOL TAG CONFIG: $tagname
25047 # If there is no Makefile yet, we rely on a make rule to execute
25048 # `config.status --recheck' to rerun these tests and create the
25049 # libtool script then.
25050 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25051 if test -f "$ltmain_in"; then
25052 test -f Makefile && make "$ltmain"
25058 ac_cpp='$CPP $CPPFLAGS'
25059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25068 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25069 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25070 { (exit 1); exit 1; }; }
25074 # Append the new tag name to the list of available tags.
25075 if test -n "$tagname" ; then
25076 available_tags="$available_tags $tagname"
25082 # Now substitute the updated list of available tags.
25083 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25084 mv "${ofile}T" "$ofile"
25088 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25089 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25090 { (exit 1); exit 1; }; }
25096 # This can be used to rebuild libtool when needed
25097 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25099 # Always use our own libtool.
25100 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
25102 # Prevent multiple expansion
25124 if test "$lt_cv_dlopen_self" = "yes" ; then
25126 cat >>confdefs.h <<\_ACEOF
25127 #define CAN_DLOPEN_SELF 1
25132 etags_version=`$ETAGS --version 2>&1`
25133 case "$etags_version" in
25134 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
25135 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
25136 *) ETAGSFLAGS="" ;;
25138 ETAGSFLAGS=$ETAGSFLAGS
25141 if test "$WITH_LLVMGCCDIR" = "default" ; then
25142 LLVMGCC="llvm-gcc${EXEEXT}"
25143 LLVMGXX="llvm-g++${EXEEXT}"
25144 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25145 set dummy $LLVMGCC; ac_word=$2
25146 echo "$as_me:$LINENO: checking for $ac_word" >&5
25147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25148 if test "${ac_cv_path_LLVMGCC+set}" = set; then
25149 echo $ECHO_N "(cached) $ECHO_C" >&6
25153 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25157 for as_dir in $PATH
25160 test -z "$as_dir" && as_dir=.
25161 for ac_exec_ext in '' $ac_executable_extensions; do
25162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25163 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25173 LLVMGCC=$ac_cv_path_LLVMGCC
25175 if test -n "$LLVMGCC"; then
25176 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25177 echo "${ECHO_T}$LLVMGCC" >&6
25179 echo "$as_me:$LINENO: result: no" >&5
25180 echo "${ECHO_T}no" >&6
25183 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25184 set dummy $LLVMGXX; ac_word=$2
25185 echo "$as_me:$LINENO: checking for $ac_word" >&5
25186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25187 if test "${ac_cv_path_LLVMGXX+set}" = set; then
25188 echo $ECHO_N "(cached) $ECHO_C" >&6
25192 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25196 for as_dir in $PATH
25199 test -z "$as_dir" && as_dir=.
25200 for ac_exec_ext in '' $ac_executable_extensions; do
25201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25202 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25212 LLVMGXX=$ac_cv_path_LLVMGXX
25214 if test -n "$LLVMGXX"; then
25215 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25216 echo "${ECHO_T}$LLVMGXX" >&6
25218 echo "$as_me:$LINENO: result: no" >&5
25219 echo "${ECHO_T}no" >&6
25223 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25224 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25231 echo "$as_me:$LINENO: checking tool compatibility" >&5
25232 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
25245 if test "$GCC" != "yes" && test "$ICC" != "yes"
25247 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25248 echo "$as_me: error: gcc|icc required but not found" >&2;}
25249 { (exit 1); exit 1; }; }
25252 if test "$GXX" != "yes" && test "$IXX" != "yes"
25254 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25255 echo "$as_me: error: g++|icc required but not found" >&2;}
25256 { (exit 1); exit 1; }; }
25259 if test "$GCC" = "yes"
25261 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
25262 if test "$gccmajor" -lt "3"
25264 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25265 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25266 { (exit 1); exit 1; }; }
25270 if test -z "$llvm_cv_gnu_make_command"
25272 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25273 echo "$as_me: error: GNU Make required but not found" >&2;}
25274 { (exit 1); exit 1; }; }
25277 echo "$as_me:$LINENO: result: ok" >&5
25278 echo "${ECHO_T}ok" >&6
25282 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25283 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25284 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25285 echo $ECHO_N "(cached) $ECHO_C" >&6
25287 ac_check_lib_save_LIBS=$LIBS
25289 cat >conftest.$ac_ext <<_ACEOF
25292 cat confdefs.h >>conftest.$ac_ext
25293 cat >>conftest.$ac_ext <<_ACEOF
25294 /* end confdefs.h. */
25296 /* Override any gcc2 internal prototype to avoid an error. */
25300 /* We use char because int might match the return type of a gcc2
25301 builtin and then its argument prototype would still apply. */
25311 rm -f conftest.$ac_objext conftest$ac_exeext
25312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25313 (eval $ac_link) 2>conftest.er1
25315 grep -v '^ *+' conftest.er1 >conftest.err
25317 cat conftest.err >&5
25318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319 (exit $ac_status); } &&
25320 { ac_try='test -z "$ac_c_werror_flag"
25321 || test ! -s conftest.err'
25322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25323 (eval $ac_try) 2>&5
25325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); }; } &&
25327 { ac_try='test -s conftest$ac_exeext'
25328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25329 (eval $ac_try) 2>&5
25331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); }; }; then
25333 ac_cv_lib_elf_elf_begin=yes
25335 echo "$as_me: failed program was:" >&5
25336 sed 's/^/| /' conftest.$ac_ext >&5
25338 ac_cv_lib_elf_elf_begin=no
25340 rm -f conftest.err conftest.$ac_objext \
25341 conftest$ac_exeext conftest.$ac_ext
25342 LIBS=$ac_check_lib_save_LIBS
25344 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25345 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25346 if test $ac_cv_lib_elf_elf_begin = yes; then
25347 cat >>confdefs.h <<_ACEOF
25348 #define HAVE_LIBELF 1
25356 echo "$as_me:$LINENO: checking for sin in -lm" >&5
25357 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25358 if test "${ac_cv_lib_m_sin+set}" = set; then
25359 echo $ECHO_N "(cached) $ECHO_C" >&6
25361 ac_check_lib_save_LIBS=$LIBS
25363 cat >conftest.$ac_ext <<_ACEOF
25366 cat confdefs.h >>conftest.$ac_ext
25367 cat >>conftest.$ac_ext <<_ACEOF
25368 /* end confdefs.h. */
25370 /* Override any gcc2 internal prototype to avoid an error. */
25374 /* We use char because int might match the return type of a gcc2
25375 builtin and then its argument prototype would still apply. */
25385 rm -f conftest.$ac_objext conftest$ac_exeext
25386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25387 (eval $ac_link) 2>conftest.er1
25389 grep -v '^ *+' conftest.er1 >conftest.err
25391 cat conftest.err >&5
25392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25393 (exit $ac_status); } &&
25394 { ac_try='test -z "$ac_c_werror_flag"
25395 || test ! -s conftest.err'
25396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25397 (eval $ac_try) 2>&5
25399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400 (exit $ac_status); }; } &&
25401 { ac_try='test -s conftest$ac_exeext'
25402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25403 (eval $ac_try) 2>&5
25405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406 (exit $ac_status); }; }; then
25407 ac_cv_lib_m_sin=yes
25409 echo "$as_me: failed program was:" >&5
25410 sed 's/^/| /' conftest.$ac_ext >&5
25414 rm -f conftest.err conftest.$ac_objext \
25415 conftest$ac_exeext conftest.$ac_ext
25416 LIBS=$ac_check_lib_save_LIBS
25418 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25419 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25420 if test $ac_cv_lib_m_sin = yes; then
25421 cat >>confdefs.h <<_ACEOF
25422 #define HAVE_LIBM 1
25429 if test "$llvm_cv_os_type" == "MingW" ; then
25431 echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25432 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6
25433 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25434 echo $ECHO_N "(cached) $ECHO_C" >&6
25436 ac_check_lib_save_LIBS=$LIBS
25437 LIBS="-limagehlp $LIBS"
25438 cat >conftest.$ac_ext <<_ACEOF
25441 cat confdefs.h >>conftest.$ac_ext
25442 cat >>conftest.$ac_ext <<_ACEOF
25443 /* end confdefs.h. */
25454 rm -f conftest.$ac_objext conftest$ac_exeext
25455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25456 (eval $ac_link) 2>conftest.er1
25458 grep -v '^ *+' conftest.er1 >conftest.err
25460 cat conftest.err >&5
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); } &&
25463 { ac_try='test -z "$ac_c_werror_flag"
25464 || test ! -s conftest.err'
25465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25466 (eval $ac_try) 2>&5
25468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); }; } &&
25470 { ac_try='test -s conftest$ac_exeext'
25471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25472 (eval $ac_try) 2>&5
25474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475 (exit $ac_status); }; }; then
25476 ac_cv_lib_imagehlp_main=yes
25478 echo "$as_me: failed program was:" >&5
25479 sed 's/^/| /' conftest.$ac_ext >&5
25481 ac_cv_lib_imagehlp_main=no
25483 rm -f conftest.err conftest.$ac_objext \
25484 conftest$ac_exeext conftest.$ac_ext
25485 LIBS=$ac_check_lib_save_LIBS
25487 echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25488 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6
25489 if test $ac_cv_lib_imagehlp_main = yes; then
25490 cat >>confdefs.h <<_ACEOF
25491 #define HAVE_LIBIMAGEHLP 1
25494 LIBS="-limagehlp $LIBS"
25499 echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25500 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6
25501 if test "${ac_cv_lib_psapi_main+set}" = set; then
25502 echo $ECHO_N "(cached) $ECHO_C" >&6
25504 ac_check_lib_save_LIBS=$LIBS
25505 LIBS="-lpsapi $LIBS"
25506 cat >conftest.$ac_ext <<_ACEOF
25509 cat confdefs.h >>conftest.$ac_ext
25510 cat >>conftest.$ac_ext <<_ACEOF
25511 /* end confdefs.h. */
25522 rm -f conftest.$ac_objext conftest$ac_exeext
25523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25524 (eval $ac_link) 2>conftest.er1
25526 grep -v '^ *+' conftest.er1 >conftest.err
25528 cat conftest.err >&5
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); } &&
25531 { ac_try='test -z "$ac_c_werror_flag"
25532 || test ! -s conftest.err'
25533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25534 (eval $ac_try) 2>&5
25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); }; } &&
25538 { ac_try='test -s conftest$ac_exeext'
25539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25540 (eval $ac_try) 2>&5
25542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 (exit $ac_status); }; }; then
25544 ac_cv_lib_psapi_main=yes
25546 echo "$as_me: failed program was:" >&5
25547 sed 's/^/| /' conftest.$ac_ext >&5
25549 ac_cv_lib_psapi_main=no
25551 rm -f conftest.err conftest.$ac_objext \
25552 conftest$ac_exeext conftest.$ac_ext
25553 LIBS=$ac_check_lib_save_LIBS
25555 echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25556 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6
25557 if test $ac_cv_lib_psapi_main = yes; then
25558 cat >>confdefs.h <<_ACEOF
25559 #define HAVE_LIBPSAPI 1
25562 LIBS="-lpsapi $LIBS"
25568 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25569 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25570 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25571 echo $ECHO_N "(cached) $ECHO_C" >&6
25573 ac_func_search_save_LIBS=$LIBS
25574 ac_cv_search_lt_dlopen=no
25575 cat >conftest.$ac_ext <<_ACEOF
25578 cat confdefs.h >>conftest.$ac_ext
25579 cat >>conftest.$ac_ext <<_ACEOF
25580 /* end confdefs.h. */
25582 /* Override any gcc2 internal prototype to avoid an error. */
25586 /* We use char because int might match the return type of a gcc2
25587 builtin and then its argument prototype would still apply. */
25597 rm -f conftest.$ac_objext conftest$ac_exeext
25598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25599 (eval $ac_link) 2>conftest.er1
25601 grep -v '^ *+' conftest.er1 >conftest.err
25603 cat conftest.err >&5
25604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605 (exit $ac_status); } &&
25606 { ac_try='test -z "$ac_c_werror_flag"
25607 || test ! -s conftest.err'
25608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25609 (eval $ac_try) 2>&5
25611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612 (exit $ac_status); }; } &&
25613 { ac_try='test -s conftest$ac_exeext'
25614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25615 (eval $ac_try) 2>&5
25617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618 (exit $ac_status); }; }; then
25619 ac_cv_search_lt_dlopen="none required"
25621 echo "$as_me: failed program was:" >&5
25622 sed 's/^/| /' conftest.$ac_ext >&5
25625 rm -f conftest.err conftest.$ac_objext \
25626 conftest$ac_exeext conftest.$ac_ext
25627 if test "$ac_cv_search_lt_dlopen" = no; then
25628 for ac_lib in ltdl; do
25629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25630 cat >conftest.$ac_ext <<_ACEOF
25633 cat confdefs.h >>conftest.$ac_ext
25634 cat >>conftest.$ac_ext <<_ACEOF
25635 /* end confdefs.h. */
25637 /* Override any gcc2 internal prototype to avoid an error. */
25641 /* We use char because int might match the return type of a gcc2
25642 builtin and then its argument prototype would still apply. */
25652 rm -f conftest.$ac_objext conftest$ac_exeext
25653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25654 (eval $ac_link) 2>conftest.er1
25656 grep -v '^ *+' conftest.er1 >conftest.err
25658 cat conftest.err >&5
25659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660 (exit $ac_status); } &&
25661 { ac_try='test -z "$ac_c_werror_flag"
25662 || test ! -s conftest.err'
25663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25664 (eval $ac_try) 2>&5
25666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667 (exit $ac_status); }; } &&
25668 { ac_try='test -s conftest$ac_exeext'
25669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25670 (eval $ac_try) 2>&5
25672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673 (exit $ac_status); }; }; then
25674 ac_cv_search_lt_dlopen="-l$ac_lib"
25677 echo "$as_me: failed program was:" >&5
25678 sed 's/^/| /' conftest.$ac_ext >&5
25681 rm -f conftest.err conftest.$ac_objext \
25682 conftest$ac_exeext conftest.$ac_ext
25685 LIBS=$ac_func_search_save_LIBS
25687 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25688 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25689 if test "$ac_cv_search_lt_dlopen" != no; then
25690 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25692 cat >>confdefs.h <<\_ACEOF
25693 #define HAVE_LT_DLOPEN 1
25697 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25698 not be available" >&5
25699 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25700 not be available" >&2;}
25704 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25705 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25706 if test "${ac_cv_search_dlopen+set}" = set; then
25707 echo $ECHO_N "(cached) $ECHO_C" >&6
25709 ac_func_search_save_LIBS=$LIBS
25710 ac_cv_search_dlopen=no
25711 cat >conftest.$ac_ext <<_ACEOF
25714 cat confdefs.h >>conftest.$ac_ext
25715 cat >>conftest.$ac_ext <<_ACEOF
25716 /* end confdefs.h. */
25718 /* Override any gcc2 internal prototype to avoid an error. */
25722 /* We use char because int might match the return type of a gcc2
25723 builtin and then its argument prototype would still apply. */
25733 rm -f conftest.$ac_objext conftest$ac_exeext
25734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25735 (eval $ac_link) 2>conftest.er1
25737 grep -v '^ *+' conftest.er1 >conftest.err
25739 cat conftest.err >&5
25740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25741 (exit $ac_status); } &&
25742 { ac_try='test -z "$ac_c_werror_flag"
25743 || test ! -s conftest.err'
25744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25745 (eval $ac_try) 2>&5
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); }; } &&
25749 { ac_try='test -s conftest$ac_exeext'
25750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25751 (eval $ac_try) 2>&5
25753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754 (exit $ac_status); }; }; then
25755 ac_cv_search_dlopen="none required"
25757 echo "$as_me: failed program was:" >&5
25758 sed 's/^/| /' conftest.$ac_ext >&5
25761 rm -f conftest.err conftest.$ac_objext \
25762 conftest$ac_exeext conftest.$ac_ext
25763 if test "$ac_cv_search_dlopen" = no; then
25764 for ac_lib in dl; do
25765 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25766 cat >conftest.$ac_ext <<_ACEOF
25769 cat confdefs.h >>conftest.$ac_ext
25770 cat >>conftest.$ac_ext <<_ACEOF
25771 /* end confdefs.h. */
25773 /* Override any gcc2 internal prototype to avoid an error. */
25777 /* We use char because int might match the return type of a gcc2
25778 builtin and then its argument prototype would still apply. */
25788 rm -f conftest.$ac_objext conftest$ac_exeext
25789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25790 (eval $ac_link) 2>conftest.er1
25792 grep -v '^ *+' conftest.er1 >conftest.err
25794 cat conftest.err >&5
25795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796 (exit $ac_status); } &&
25797 { ac_try='test -z "$ac_c_werror_flag"
25798 || test ! -s conftest.err'
25799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25800 (eval $ac_try) 2>&5
25802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803 (exit $ac_status); }; } &&
25804 { ac_try='test -s conftest$ac_exeext'
25805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25806 (eval $ac_try) 2>&5
25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809 (exit $ac_status); }; }; then
25810 ac_cv_search_dlopen="-l$ac_lib"
25813 echo "$as_me: failed program was:" >&5
25814 sed 's/^/| /' conftest.$ac_ext >&5
25817 rm -f conftest.err conftest.$ac_objext \
25818 conftest$ac_exeext conftest.$ac_ext
25821 LIBS=$ac_func_search_save_LIBS
25823 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25824 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25825 if test "$ac_cv_search_dlopen" != no; then
25826 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25828 cat >>confdefs.h <<\_ACEOF
25829 #define HAVE_DLOPEN 1
25833 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25834 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25838 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25839 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25840 if test "${ac_cv_search_mallinfo+set}" = set; then
25841 echo $ECHO_N "(cached) $ECHO_C" >&6
25843 ac_func_search_save_LIBS=$LIBS
25844 ac_cv_search_mallinfo=no
25845 cat >conftest.$ac_ext <<_ACEOF
25848 cat confdefs.h >>conftest.$ac_ext
25849 cat >>conftest.$ac_ext <<_ACEOF
25850 /* end confdefs.h. */
25852 /* Override any gcc2 internal prototype to avoid an error. */
25856 /* We use char because int might match the return type of a gcc2
25857 builtin and then its argument prototype would still apply. */
25867 rm -f conftest.$ac_objext conftest$ac_exeext
25868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25869 (eval $ac_link) 2>conftest.er1
25871 grep -v '^ *+' conftest.er1 >conftest.err
25873 cat conftest.err >&5
25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); } &&
25876 { ac_try='test -z "$ac_c_werror_flag"
25877 || test ! -s conftest.err'
25878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25879 (eval $ac_try) 2>&5
25881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); }; } &&
25883 { ac_try='test -s conftest$ac_exeext'
25884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25885 (eval $ac_try) 2>&5
25887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); }; }; then
25889 ac_cv_search_mallinfo="none required"
25891 echo "$as_me: failed program was:" >&5
25892 sed 's/^/| /' conftest.$ac_ext >&5
25895 rm -f conftest.err conftest.$ac_objext \
25896 conftest$ac_exeext conftest.$ac_ext
25897 if test "$ac_cv_search_mallinfo" = no; then
25898 for ac_lib in malloc; do
25899 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25900 cat >conftest.$ac_ext <<_ACEOF
25903 cat confdefs.h >>conftest.$ac_ext
25904 cat >>conftest.$ac_ext <<_ACEOF
25905 /* end confdefs.h. */
25907 /* Override any gcc2 internal prototype to avoid an error. */
25911 /* We use char because int might match the return type of a gcc2
25912 builtin and then its argument prototype would still apply. */
25922 rm -f conftest.$ac_objext conftest$ac_exeext
25923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25924 (eval $ac_link) 2>conftest.er1
25926 grep -v '^ *+' conftest.er1 >conftest.err
25928 cat conftest.err >&5
25929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930 (exit $ac_status); } &&
25931 { ac_try='test -z "$ac_c_werror_flag"
25932 || test ! -s conftest.err'
25933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25934 (eval $ac_try) 2>&5
25936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); }; } &&
25938 { ac_try='test -s conftest$ac_exeext'
25939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25940 (eval $ac_try) 2>&5
25942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943 (exit $ac_status); }; }; then
25944 ac_cv_search_mallinfo="-l$ac_lib"
25947 echo "$as_me: failed program was:" >&5
25948 sed 's/^/| /' conftest.$ac_ext >&5
25951 rm -f conftest.err conftest.$ac_objext \
25952 conftest$ac_exeext conftest.$ac_ext
25955 LIBS=$ac_func_search_save_LIBS
25957 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25958 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25959 if test "$ac_cv_search_mallinfo" != no; then
25960 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25962 cat >>confdefs.h <<\_ACEOF
25963 #define HAVE_MALLINFO 1
25969 if test "$ENABLE_THREADS" -eq 1 ; then
25971 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25972 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25973 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25974 echo $ECHO_N "(cached) $ECHO_C" >&6
25976 ac_check_lib_save_LIBS=$LIBS
25977 LIBS="-lpthread $LIBS"
25978 cat >conftest.$ac_ext <<_ACEOF
25981 cat confdefs.h >>conftest.$ac_ext
25982 cat >>conftest.$ac_ext <<_ACEOF
25983 /* end confdefs.h. */
25985 /* Override any gcc2 internal prototype to avoid an error. */
25989 /* We use char because int might match the return type of a gcc2
25990 builtin and then its argument prototype would still apply. */
25991 char pthread_mutex_init ();
25995 pthread_mutex_init ();
26000 rm -f conftest.$ac_objext conftest$ac_exeext
26001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26002 (eval $ac_link) 2>conftest.er1
26004 grep -v '^ *+' conftest.er1 >conftest.err
26006 cat conftest.err >&5
26007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008 (exit $ac_status); } &&
26009 { ac_try='test -z "$ac_c_werror_flag"
26010 || test ! -s conftest.err'
26011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26012 (eval $ac_try) 2>&5
26014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015 (exit $ac_status); }; } &&
26016 { ac_try='test -s conftest$ac_exeext'
26017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26018 (eval $ac_try) 2>&5
26020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021 (exit $ac_status); }; }; then
26022 ac_cv_lib_pthread_pthread_mutex_init=yes
26024 echo "$as_me: failed program was:" >&5
26025 sed 's/^/| /' conftest.$ac_ext >&5
26027 ac_cv_lib_pthread_pthread_mutex_init=no
26029 rm -f conftest.err conftest.$ac_objext \
26030 conftest$ac_exeext conftest.$ac_ext
26031 LIBS=$ac_check_lib_save_LIBS
26033 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26034 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
26035 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26036 cat >>confdefs.h <<_ACEOF
26037 #define HAVE_LIBPTHREAD 1
26040 LIBS="-lpthread $LIBS"
26044 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26045 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
26046 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26047 echo $ECHO_N "(cached) $ECHO_C" >&6
26049 ac_func_search_save_LIBS=$LIBS
26050 ac_cv_search_pthread_mutex_lock=no
26051 cat >conftest.$ac_ext <<_ACEOF
26054 cat confdefs.h >>conftest.$ac_ext
26055 cat >>conftest.$ac_ext <<_ACEOF
26056 /* end confdefs.h. */
26058 /* Override any gcc2 internal prototype to avoid an error. */
26062 /* We use char because int might match the return type of a gcc2
26063 builtin and then its argument prototype would still apply. */
26064 char pthread_mutex_lock ();
26068 pthread_mutex_lock ();
26073 rm -f conftest.$ac_objext conftest$ac_exeext
26074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26075 (eval $ac_link) 2>conftest.er1
26077 grep -v '^ *+' conftest.er1 >conftest.err
26079 cat conftest.err >&5
26080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081 (exit $ac_status); } &&
26082 { ac_try='test -z "$ac_c_werror_flag"
26083 || test ! -s conftest.err'
26084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26085 (eval $ac_try) 2>&5
26087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088 (exit $ac_status); }; } &&
26089 { ac_try='test -s conftest$ac_exeext'
26090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26091 (eval $ac_try) 2>&5
26093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094 (exit $ac_status); }; }; then
26095 ac_cv_search_pthread_mutex_lock="none required"
26097 echo "$as_me: failed program was:" >&5
26098 sed 's/^/| /' conftest.$ac_ext >&5
26101 rm -f conftest.err conftest.$ac_objext \
26102 conftest$ac_exeext conftest.$ac_ext
26103 if test "$ac_cv_search_pthread_mutex_lock" = no; then
26104 for ac_lib in pthread; do
26105 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26106 cat >conftest.$ac_ext <<_ACEOF
26109 cat confdefs.h >>conftest.$ac_ext
26110 cat >>conftest.$ac_ext <<_ACEOF
26111 /* end confdefs.h. */
26113 /* Override any gcc2 internal prototype to avoid an error. */
26117 /* We use char because int might match the return type of a gcc2
26118 builtin and then its argument prototype would still apply. */
26119 char pthread_mutex_lock ();
26123 pthread_mutex_lock ();
26128 rm -f conftest.$ac_objext conftest$ac_exeext
26129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26130 (eval $ac_link) 2>conftest.er1
26132 grep -v '^ *+' conftest.er1 >conftest.err
26134 cat conftest.err >&5
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); } &&
26137 { ac_try='test -z "$ac_c_werror_flag"
26138 || test ! -s conftest.err'
26139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26140 (eval $ac_try) 2>&5
26142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26143 (exit $ac_status); }; } &&
26144 { ac_try='test -s conftest$ac_exeext'
26145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26146 (eval $ac_try) 2>&5
26148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149 (exit $ac_status); }; }; then
26150 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
26153 echo "$as_me: failed program was:" >&5
26154 sed 's/^/| /' conftest.$ac_ext >&5
26157 rm -f conftest.err conftest.$ac_objext \
26158 conftest$ac_exeext conftest.$ac_ext
26161 LIBS=$ac_func_search_save_LIBS
26163 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26164 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
26165 if test "$ac_cv_search_pthread_mutex_lock" != no; then
26166 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
26168 cat >>confdefs.h <<\_ACEOF
26169 #define HAVE_PTHREAD_MUTEX_LOCK 1
26182 ac_header_dirent=no
26183 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26184 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26185 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26186 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
26187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26188 echo $ECHO_N "(cached) $ECHO_C" >&6
26190 cat >conftest.$ac_ext <<_ACEOF
26193 cat confdefs.h >>conftest.$ac_ext
26194 cat >>conftest.$ac_ext <<_ACEOF
26195 /* end confdefs.h. */
26196 #include <sys/types.h>
26208 rm -f conftest.$ac_objext
26209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26210 (eval $ac_compile) 2>conftest.er1
26212 grep -v '^ *+' conftest.er1 >conftest.err
26214 cat conftest.err >&5
26215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26216 (exit $ac_status); } &&
26217 { ac_try='test -z "$ac_c_werror_flag"
26218 || test ! -s conftest.err'
26219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26220 (eval $ac_try) 2>&5
26222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26223 (exit $ac_status); }; } &&
26224 { ac_try='test -s conftest.$ac_objext'
26225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26226 (eval $ac_try) 2>&5
26228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229 (exit $ac_status); }; }; then
26230 eval "$as_ac_Header=yes"
26232 echo "$as_me: failed program was:" >&5
26233 sed 's/^/| /' conftest.$ac_ext >&5
26235 eval "$as_ac_Header=no"
26237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26242 cat >>confdefs.h <<_ACEOF
26243 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26246 ac_header_dirent=$ac_hdr; break
26250 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26251 if test $ac_header_dirent = dirent.h; then
26252 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26253 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26254 if test "${ac_cv_search_opendir+set}" = set; then
26255 echo $ECHO_N "(cached) $ECHO_C" >&6
26257 ac_func_search_save_LIBS=$LIBS
26258 ac_cv_search_opendir=no
26259 cat >conftest.$ac_ext <<_ACEOF
26262 cat confdefs.h >>conftest.$ac_ext
26263 cat >>conftest.$ac_ext <<_ACEOF
26264 /* end confdefs.h. */
26266 /* Override any gcc2 internal prototype to avoid an error. */
26270 /* We use char because int might match the return type of a gcc2
26271 builtin and then its argument prototype would still apply. */
26281 rm -f conftest.$ac_objext conftest$ac_exeext
26282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26283 (eval $ac_link) 2>conftest.er1
26285 grep -v '^ *+' conftest.er1 >conftest.err
26287 cat conftest.err >&5
26288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289 (exit $ac_status); } &&
26290 { ac_try='test -z "$ac_c_werror_flag"
26291 || test ! -s conftest.err'
26292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26293 (eval $ac_try) 2>&5
26295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296 (exit $ac_status); }; } &&
26297 { ac_try='test -s conftest$ac_exeext'
26298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26299 (eval $ac_try) 2>&5
26301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302 (exit $ac_status); }; }; then
26303 ac_cv_search_opendir="none required"
26305 echo "$as_me: failed program was:" >&5
26306 sed 's/^/| /' conftest.$ac_ext >&5
26309 rm -f conftest.err conftest.$ac_objext \
26310 conftest$ac_exeext conftest.$ac_ext
26311 if test "$ac_cv_search_opendir" = no; then
26312 for ac_lib in dir; do
26313 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26314 cat >conftest.$ac_ext <<_ACEOF
26317 cat confdefs.h >>conftest.$ac_ext
26318 cat >>conftest.$ac_ext <<_ACEOF
26319 /* end confdefs.h. */
26321 /* Override any gcc2 internal prototype to avoid an error. */
26325 /* We use char because int might match the return type of a gcc2
26326 builtin and then its argument prototype would still apply. */
26336 rm -f conftest.$ac_objext conftest$ac_exeext
26337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26338 (eval $ac_link) 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_exeext'
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_search_opendir="-l$ac_lib"
26361 echo "$as_me: failed program was:" >&5
26362 sed 's/^/| /' conftest.$ac_ext >&5
26365 rm -f conftest.err conftest.$ac_objext \
26366 conftest$ac_exeext conftest.$ac_ext
26369 LIBS=$ac_func_search_save_LIBS
26371 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26372 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26373 if test "$ac_cv_search_opendir" != no; then
26374 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26379 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26380 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26381 if test "${ac_cv_search_opendir+set}" = set; then
26382 echo $ECHO_N "(cached) $ECHO_C" >&6
26384 ac_func_search_save_LIBS=$LIBS
26385 ac_cv_search_opendir=no
26386 cat >conftest.$ac_ext <<_ACEOF
26389 cat confdefs.h >>conftest.$ac_ext
26390 cat >>conftest.$ac_ext <<_ACEOF
26391 /* end confdefs.h. */
26393 /* Override any gcc2 internal prototype to avoid an error. */
26397 /* We use char because int might match the return type of a gcc2
26398 builtin and then its argument prototype would still apply. */
26408 rm -f conftest.$ac_objext conftest$ac_exeext
26409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26410 (eval $ac_link) 2>conftest.er1
26412 grep -v '^ *+' conftest.er1 >conftest.err
26414 cat conftest.err >&5
26415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26416 (exit $ac_status); } &&
26417 { ac_try='test -z "$ac_c_werror_flag"
26418 || test ! -s conftest.err'
26419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26420 (eval $ac_try) 2>&5
26422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 (exit $ac_status); }; } &&
26424 { ac_try='test -s conftest$ac_exeext'
26425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26426 (eval $ac_try) 2>&5
26428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26429 (exit $ac_status); }; }; then
26430 ac_cv_search_opendir="none required"
26432 echo "$as_me: failed program was:" >&5
26433 sed 's/^/| /' conftest.$ac_ext >&5
26436 rm -f conftest.err conftest.$ac_objext \
26437 conftest$ac_exeext conftest.$ac_ext
26438 if test "$ac_cv_search_opendir" = no; then
26439 for ac_lib in x; do
26440 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26441 cat >conftest.$ac_ext <<_ACEOF
26444 cat confdefs.h >>conftest.$ac_ext
26445 cat >>conftest.$ac_ext <<_ACEOF
26446 /* end confdefs.h. */
26448 /* Override any gcc2 internal prototype to avoid an error. */
26452 /* We use char because int might match the return type of a gcc2
26453 builtin and then its argument prototype would still apply. */
26463 rm -f conftest.$ac_objext conftest$ac_exeext
26464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26465 (eval $ac_link) 2>conftest.er1
26467 grep -v '^ *+' conftest.er1 >conftest.err
26469 cat conftest.err >&5
26470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471 (exit $ac_status); } &&
26472 { ac_try='test -z "$ac_c_werror_flag"
26473 || test ! -s conftest.err'
26474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475 (eval $ac_try) 2>&5
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); }; } &&
26479 { ac_try='test -s conftest$ac_exeext'
26480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481 (eval $ac_try) 2>&5
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); }; }; then
26485 ac_cv_search_opendir="-l$ac_lib"
26488 echo "$as_me: failed program was:" >&5
26489 sed 's/^/| /' conftest.$ac_ext >&5
26492 rm -f conftest.err conftest.$ac_objext \
26493 conftest$ac_exeext conftest.$ac_ext
26496 LIBS=$ac_func_search_save_LIBS
26498 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26499 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26500 if test "$ac_cv_search_opendir" != no; then
26501 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26507 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26508 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26509 if test "${ac_cv_header_mmap_anon+set}" = set; then
26510 echo $ECHO_N "(cached) $ECHO_C" >&6
26513 ac_cpp='$CPP $CPPFLAGS'
26514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26518 cat >conftest.$ac_ext <<_ACEOF
26521 cat confdefs.h >>conftest.$ac_ext
26522 cat >>conftest.$ac_ext <<_ACEOF
26523 /* end confdefs.h. */
26524 #include <sys/mman.h>
26525 #include <unistd.h>
26530 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26535 rm -f conftest.$ac_objext
26536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26537 (eval $ac_compile) 2>conftest.er1
26539 grep -v '^ *+' conftest.er1 >conftest.err
26541 cat conftest.err >&5
26542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543 (exit $ac_status); } &&
26544 { ac_try='test -z "$ac_c_werror_flag"
26545 || test ! -s conftest.err'
26546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26547 (eval $ac_try) 2>&5
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); }; } &&
26551 { ac_try='test -s conftest.$ac_objext'
26552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26553 (eval $ac_try) 2>&5
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); }; }; then
26557 ac_cv_header_mmap_anon=yes
26559 echo "$as_me: failed program was:" >&5
26560 sed 's/^/| /' conftest.$ac_ext >&5
26562 ac_cv_header_mmap_anon=no
26564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26566 ac_cpp='$CPP $CPPFLAGS'
26567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26573 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26574 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26575 if test "$ac_cv_header_mmap_anon" = yes; then
26577 cat >>confdefs.h <<\_ACEOF
26578 #define HAVE_MMAP_ANONYMOUS 1
26583 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26584 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26585 if test "${ac_cv_header_stat_broken+set}" = set; then
26586 echo $ECHO_N "(cached) $ECHO_C" >&6
26588 cat >conftest.$ac_ext <<_ACEOF
26591 cat confdefs.h >>conftest.$ac_ext
26592 cat >>conftest.$ac_ext <<_ACEOF
26593 /* end confdefs.h. */
26594 #include <sys/types.h>
26595 #include <sys/stat.h>
26597 #if defined(S_ISBLK) && defined(S_IFDIR)
26598 # if S_ISBLK (S_IFDIR)
26603 #if defined(S_ISBLK) && defined(S_IFCHR)
26604 # if S_ISBLK (S_IFCHR)
26609 #if defined(S_ISLNK) && defined(S_IFREG)
26610 # if S_ISLNK (S_IFREG)
26615 #if defined(S_ISSOCK) && defined(S_IFREG)
26616 # if S_ISSOCK (S_IFREG)
26622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26623 $EGREP "You lose" >/dev/null 2>&1; then
26624 ac_cv_header_stat_broken=yes
26626 ac_cv_header_stat_broken=no
26631 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26632 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26633 if test $ac_cv_header_stat_broken = yes; then
26635 cat >>confdefs.h <<\_ACEOF
26636 #define STAT_MACROS_BROKEN 1
26641 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26642 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26643 if test "${ac_cv_header_stdc+set}" = set; then
26644 echo $ECHO_N "(cached) $ECHO_C" >&6
26646 cat >conftest.$ac_ext <<_ACEOF
26649 cat confdefs.h >>conftest.$ac_ext
26650 cat >>conftest.$ac_ext <<_ACEOF
26651 /* end confdefs.h. */
26652 #include <stdlib.h>
26653 #include <stdarg.h>
26654 #include <string.h>
26665 rm -f conftest.$ac_objext
26666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26667 (eval $ac_compile) 2>conftest.er1
26669 grep -v '^ *+' conftest.er1 >conftest.err
26671 cat conftest.err >&5
26672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26673 (exit $ac_status); } &&
26674 { ac_try='test -z "$ac_c_werror_flag"
26675 || test ! -s conftest.err'
26676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26677 (eval $ac_try) 2>&5
26679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26680 (exit $ac_status); }; } &&
26681 { ac_try='test -s conftest.$ac_objext'
26682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26683 (eval $ac_try) 2>&5
26685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686 (exit $ac_status); }; }; then
26687 ac_cv_header_stdc=yes
26689 echo "$as_me: failed program was:" >&5
26690 sed 's/^/| /' conftest.$ac_ext >&5
26692 ac_cv_header_stdc=no
26694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26696 if test $ac_cv_header_stdc = yes; then
26697 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26698 cat >conftest.$ac_ext <<_ACEOF
26701 cat confdefs.h >>conftest.$ac_ext
26702 cat >>conftest.$ac_ext <<_ACEOF
26703 /* end confdefs.h. */
26704 #include <string.h>
26707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26708 $EGREP "memchr" >/dev/null 2>&1; then
26711 ac_cv_header_stdc=no
26717 if test $ac_cv_header_stdc = yes; then
26718 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26719 cat >conftest.$ac_ext <<_ACEOF
26722 cat confdefs.h >>conftest.$ac_ext
26723 cat >>conftest.$ac_ext <<_ACEOF
26724 /* end confdefs.h. */
26725 #include <stdlib.h>
26728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26729 $EGREP "free" >/dev/null 2>&1; then
26732 ac_cv_header_stdc=no
26738 if test $ac_cv_header_stdc = yes; then
26739 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26740 if test "$cross_compiling" = yes; then
26743 cat >conftest.$ac_ext <<_ACEOF
26746 cat confdefs.h >>conftest.$ac_ext
26747 cat >>conftest.$ac_ext <<_ACEOF
26748 /* end confdefs.h. */
26750 #if ((' ' & 0x0FF) == 0x020)
26751 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26752 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26754 # define ISLOWER(c) \
26755 (('a' <= (c) && (c) <= 'i') \
26756 || ('j' <= (c) && (c) <= 'r') \
26757 || ('s' <= (c) && (c) <= 'z'))
26758 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26761 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26766 for (i = 0; i < 256; i++)
26767 if (XOR (islower (i), ISLOWER (i))
26768 || toupper (i) != TOUPPER (i))
26773 rm -f conftest$ac_exeext
26774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26775 (eval $ac_link) 2>&5
26777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26780 (eval $ac_try) 2>&5
26782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783 (exit $ac_status); }; }; then
26786 echo "$as_me: program exited with status $ac_status" >&5
26787 echo "$as_me: failed program was:" >&5
26788 sed 's/^/| /' conftest.$ac_ext >&5
26790 ( exit $ac_status )
26791 ac_cv_header_stdc=no
26793 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26797 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26798 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26799 if test $ac_cv_header_stdc = yes; then
26801 cat >>confdefs.h <<\_ACEOF
26802 #define STDC_HEADERS 1
26807 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26808 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26809 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26810 echo $ECHO_N "(cached) $ECHO_C" >&6
26812 cat >conftest.$ac_ext <<_ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h. */
26818 #include <sys/types.h>
26819 #include <sys/wait.h>
26820 #ifndef WEXITSTATUS
26821 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26824 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26832 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26837 rm -f conftest.$ac_objext
26838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26839 (eval $ac_compile) 2>conftest.er1
26841 grep -v '^ *+' conftest.er1 >conftest.err
26843 cat conftest.err >&5
26844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845 (exit $ac_status); } &&
26846 { ac_try='test -z "$ac_c_werror_flag"
26847 || test ! -s conftest.err'
26848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26849 (eval $ac_try) 2>&5
26851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852 (exit $ac_status); }; } &&
26853 { ac_try='test -s conftest.$ac_objext'
26854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26855 (eval $ac_try) 2>&5
26857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858 (exit $ac_status); }; }; then
26859 ac_cv_header_sys_wait_h=yes
26861 echo "$as_me: failed program was:" >&5
26862 sed 's/^/| /' conftest.$ac_ext >&5
26864 ac_cv_header_sys_wait_h=no
26866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26868 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26869 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26870 if test $ac_cv_header_sys_wait_h = yes; then
26872 cat >>confdefs.h <<\_ACEOF
26873 #define HAVE_SYS_WAIT_H 1
26878 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26879 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26880 if test "${ac_cv_header_time+set}" = set; then
26881 echo $ECHO_N "(cached) $ECHO_C" >&6
26883 cat >conftest.$ac_ext <<_ACEOF
26886 cat confdefs.h >>conftest.$ac_ext
26887 cat >>conftest.$ac_ext <<_ACEOF
26888 /* end confdefs.h. */
26889 #include <sys/types.h>
26890 #include <sys/time.h>
26896 if ((struct tm *) 0)
26902 rm -f conftest.$ac_objext
26903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26904 (eval $ac_compile) 2>conftest.er1
26906 grep -v '^ *+' conftest.er1 >conftest.err
26908 cat conftest.err >&5
26909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26910 (exit $ac_status); } &&
26911 { ac_try='test -z "$ac_c_werror_flag"
26912 || test ! -s conftest.err'
26913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26914 (eval $ac_try) 2>&5
26916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917 (exit $ac_status); }; } &&
26918 { ac_try='test -s conftest.$ac_objext'
26919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26920 (eval $ac_try) 2>&5
26922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923 (exit $ac_status); }; }; then
26924 ac_cv_header_time=yes
26926 echo "$as_me: failed program was:" >&5
26927 sed 's/^/| /' conftest.$ac_ext >&5
26929 ac_cv_header_time=no
26931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26933 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26934 echo "${ECHO_T}$ac_cv_header_time" >&6
26935 if test $ac_cv_header_time = yes; then
26937 cat >>confdefs.h <<\_ACEOF
26938 #define TIME_WITH_SYS_TIME 1
26950 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26954 echo "$as_me:$LINENO: checking for $ac_header" >&5
26955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26957 echo $ECHO_N "(cached) $ECHO_C" >&6
26959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26962 # Is the header compilable?
26963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26965 cat >conftest.$ac_ext <<_ACEOF
26968 cat confdefs.h >>conftest.$ac_ext
26969 cat >>conftest.$ac_ext <<_ACEOF
26970 /* end confdefs.h. */
26971 $ac_includes_default
26972 #include <$ac_header>
26974 rm -f conftest.$ac_objext
26975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26976 (eval $ac_compile) 2>conftest.er1
26978 grep -v '^ *+' conftest.er1 >conftest.err
26980 cat conftest.err >&5
26981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982 (exit $ac_status); } &&
26983 { ac_try='test -z "$ac_c_werror_flag"
26984 || test ! -s conftest.err'
26985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26986 (eval $ac_try) 2>&5
26988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989 (exit $ac_status); }; } &&
26990 { ac_try='test -s conftest.$ac_objext'
26991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26992 (eval $ac_try) 2>&5
26994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26995 (exit $ac_status); }; }; then
26996 ac_header_compiler=yes
26998 echo "$as_me: failed program was:" >&5
26999 sed 's/^/| /' conftest.$ac_ext >&5
27001 ac_header_compiler=no
27003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27005 echo "${ECHO_T}$ac_header_compiler" >&6
27007 # Is the header present?
27008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27010 cat >conftest.$ac_ext <<_ACEOF
27013 cat confdefs.h >>conftest.$ac_ext
27014 cat >>conftest.$ac_ext <<_ACEOF
27015 /* end confdefs.h. */
27016 #include <$ac_header>
27018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27021 grep -v '^ *+' conftest.er1 >conftest.err
27023 cat conftest.err >&5
27024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 (exit $ac_status); } >/dev/null; then
27026 if test -s conftest.err; then
27027 ac_cpp_err=$ac_c_preproc_warn_flag
27028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27035 if test -z "$ac_cpp_err"; then
27036 ac_header_preproc=yes
27038 echo "$as_me: failed program was:" >&5
27039 sed 's/^/| /' conftest.$ac_ext >&5
27041 ac_header_preproc=no
27043 rm -f conftest.err conftest.$ac_ext
27044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27045 echo "${ECHO_T}$ac_header_preproc" >&6
27047 # So? What about this header?
27048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27054 ac_header_preproc=yes
27057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27071 ## ----------------------------------- ##
27072 ## Report this to llvmbugs@cs.uiuc.edu ##
27073 ## ----------------------------------- ##
27076 sed "s/^/$as_me: WARNING: /" >&2
27079 echo "$as_me:$LINENO: checking for $ac_header" >&5
27080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27082 echo $ECHO_N "(cached) $ECHO_C" >&6
27084 eval "$as_ac_Header=\$ac_header_preproc"
27086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27091 cat >>confdefs.h <<_ACEOF
27092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27105 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
27107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27109 echo "$as_me:$LINENO: checking for $ac_header" >&5
27110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27112 echo $ECHO_N "(cached) $ECHO_C" >&6
27114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27117 # Is the header compilable?
27118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27119 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
27127 #include <$ac_header>
27129 rm -f conftest.$ac_objext
27130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27131 (eval $ac_compile) 2>conftest.er1
27133 grep -v '^ *+' conftest.er1 >conftest.err
27135 cat conftest.err >&5
27136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137 (exit $ac_status); } &&
27138 { ac_try='test -z "$ac_c_werror_flag"
27139 || test ! -s conftest.err'
27140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27141 (eval $ac_try) 2>&5
27143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144 (exit $ac_status); }; } &&
27145 { ac_try='test -s conftest.$ac_objext'
27146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27147 (eval $ac_try) 2>&5
27149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); }; }; then
27151 ac_header_compiler=yes
27153 echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.$ac_ext >&5
27156 ac_header_compiler=no
27158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27159 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27160 echo "${ECHO_T}$ac_header_compiler" >&6
27162 # Is the header present?
27163 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27165 cat >conftest.$ac_ext <<_ACEOF
27168 cat confdefs.h >>conftest.$ac_ext
27169 cat >>conftest.$ac_ext <<_ACEOF
27170 /* end confdefs.h. */
27171 #include <$ac_header>
27173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27176 grep -v '^ *+' conftest.er1 >conftest.err
27178 cat conftest.err >&5
27179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180 (exit $ac_status); } >/dev/null; then
27181 if test -s conftest.err; then
27182 ac_cpp_err=$ac_c_preproc_warn_flag
27183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27190 if test -z "$ac_cpp_err"; then
27191 ac_header_preproc=yes
27193 echo "$as_me: failed program was:" >&5
27194 sed 's/^/| /' conftest.$ac_ext >&5
27196 ac_header_preproc=no
27198 rm -f conftest.err conftest.$ac_ext
27199 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27200 echo "${ECHO_T}$ac_header_preproc" >&6
27202 # So? What about this header?
27203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27209 ac_header_preproc=yes
27212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27226 ## ----------------------------------- ##
27227 ## Report this to llvmbugs@cs.uiuc.edu ##
27228 ## ----------------------------------- ##
27231 sed "s/^/$as_me: WARNING: /" >&2
27234 echo "$as_me:$LINENO: checking for $ac_header" >&5
27235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27237 echo $ECHO_N "(cached) $ECHO_C" >&6
27239 eval "$as_ac_Header=\$ac_header_preproc"
27241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27246 cat >>confdefs.h <<_ACEOF
27247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27259 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
27261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27263 echo "$as_me:$LINENO: checking for $ac_header" >&5
27264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27266 echo $ECHO_N "(cached) $ECHO_C" >&6
27268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27271 # Is the header compilable?
27272 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27274 cat >conftest.$ac_ext <<_ACEOF
27277 cat confdefs.h >>conftest.$ac_ext
27278 cat >>conftest.$ac_ext <<_ACEOF
27279 /* end confdefs.h. */
27280 $ac_includes_default
27281 #include <$ac_header>
27283 rm -f conftest.$ac_objext
27284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27285 (eval $ac_compile) 2>conftest.er1
27287 grep -v '^ *+' conftest.er1 >conftest.err
27289 cat conftest.err >&5
27290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291 (exit $ac_status); } &&
27292 { ac_try='test -z "$ac_c_werror_flag"
27293 || test ! -s conftest.err'
27294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27295 (eval $ac_try) 2>&5
27297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298 (exit $ac_status); }; } &&
27299 { ac_try='test -s conftest.$ac_objext'
27300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27301 (eval $ac_try) 2>&5
27303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304 (exit $ac_status); }; }; then
27305 ac_header_compiler=yes
27307 echo "$as_me: failed program was:" >&5
27308 sed 's/^/| /' conftest.$ac_ext >&5
27310 ac_header_compiler=no
27312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27314 echo "${ECHO_T}$ac_header_compiler" >&6
27316 # Is the header present?
27317 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27318 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27319 cat >conftest.$ac_ext <<_ACEOF
27322 cat confdefs.h >>conftest.$ac_ext
27323 cat >>conftest.$ac_ext <<_ACEOF
27324 /* end confdefs.h. */
27325 #include <$ac_header>
27327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27330 grep -v '^ *+' conftest.er1 >conftest.err
27332 cat conftest.err >&5
27333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334 (exit $ac_status); } >/dev/null; then
27335 if test -s conftest.err; then
27336 ac_cpp_err=$ac_c_preproc_warn_flag
27337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27344 if test -z "$ac_cpp_err"; then
27345 ac_header_preproc=yes
27347 echo "$as_me: failed program was:" >&5
27348 sed 's/^/| /' conftest.$ac_ext >&5
27350 ac_header_preproc=no
27352 rm -f conftest.err conftest.$ac_ext
27353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27354 echo "${ECHO_T}$ac_header_preproc" >&6
27356 # So? What about this header?
27357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27363 ac_header_preproc=yes
27366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27369 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27373 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27380 ## ----------------------------------- ##
27381 ## Report this to llvmbugs@cs.uiuc.edu ##
27382 ## ----------------------------------- ##
27385 sed "s/^/$as_me: WARNING: /" >&2
27388 echo "$as_me:$LINENO: checking for $ac_header" >&5
27389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27391 echo $ECHO_N "(cached) $ECHO_C" >&6
27393 eval "$as_ac_Header=\$ac_header_preproc"
27395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27400 cat >>confdefs.h <<_ACEOF
27401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27410 for ac_header in sys/types.h malloc/malloc.h
27412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27414 echo "$as_me:$LINENO: checking for $ac_header" >&5
27415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27417 echo $ECHO_N "(cached) $ECHO_C" >&6
27419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27422 # Is the header compilable?
27423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27425 cat >conftest.$ac_ext <<_ACEOF
27428 cat confdefs.h >>conftest.$ac_ext
27429 cat >>conftest.$ac_ext <<_ACEOF
27430 /* end confdefs.h. */
27431 $ac_includes_default
27432 #include <$ac_header>
27434 rm -f conftest.$ac_objext
27435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27436 (eval $ac_compile) 2>conftest.er1
27438 grep -v '^ *+' conftest.er1 >conftest.err
27440 cat conftest.err >&5
27441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442 (exit $ac_status); } &&
27443 { ac_try='test -z "$ac_c_werror_flag"
27444 || test ! -s conftest.err'
27445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27446 (eval $ac_try) 2>&5
27448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449 (exit $ac_status); }; } &&
27450 { ac_try='test -s conftest.$ac_objext'
27451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27452 (eval $ac_try) 2>&5
27454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455 (exit $ac_status); }; }; then
27456 ac_header_compiler=yes
27458 echo "$as_me: failed program was:" >&5
27459 sed 's/^/| /' conftest.$ac_ext >&5
27461 ac_header_compiler=no
27463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27465 echo "${ECHO_T}$ac_header_compiler" >&6
27467 # Is the header present?
27468 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27470 cat >conftest.$ac_ext <<_ACEOF
27473 cat confdefs.h >>conftest.$ac_ext
27474 cat >>conftest.$ac_ext <<_ACEOF
27475 /* end confdefs.h. */
27476 #include <$ac_header>
27478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27481 grep -v '^ *+' conftest.er1 >conftest.err
27483 cat conftest.err >&5
27484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27485 (exit $ac_status); } >/dev/null; then
27486 if test -s conftest.err; then
27487 ac_cpp_err=$ac_c_preproc_warn_flag
27488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27495 if test -z "$ac_cpp_err"; then
27496 ac_header_preproc=yes
27498 echo "$as_me: failed program was:" >&5
27499 sed 's/^/| /' conftest.$ac_ext >&5
27501 ac_header_preproc=no
27503 rm -f conftest.err conftest.$ac_ext
27504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27505 echo "${ECHO_T}$ac_header_preproc" >&6
27507 # So? What about this header?
27508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27514 ac_header_preproc=yes
27517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27531 ## ----------------------------------- ##
27532 ## Report this to llvmbugs@cs.uiuc.edu ##
27533 ## ----------------------------------- ##
27536 sed "s/^/$as_me: WARNING: /" >&2
27539 echo "$as_me:$LINENO: checking for $ac_header" >&5
27540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27542 echo $ECHO_N "(cached) $ECHO_C" >&6
27544 eval "$as_ac_Header=\$ac_header_preproc"
27546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27551 cat >>confdefs.h <<_ACEOF
27552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27559 if test "$ENABLE_THREADS" -eq 1 ; then
27561 for ac_header in pthread.h
27563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27565 echo "$as_me:$LINENO: checking for $ac_header" >&5
27566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27568 echo $ECHO_N "(cached) $ECHO_C" >&6
27570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27573 # Is the header compilable?
27574 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27575 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27576 cat >conftest.$ac_ext <<_ACEOF
27579 cat confdefs.h >>conftest.$ac_ext
27580 cat >>conftest.$ac_ext <<_ACEOF
27581 /* end confdefs.h. */
27582 $ac_includes_default
27583 #include <$ac_header>
27585 rm -f conftest.$ac_objext
27586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27587 (eval $ac_compile) 2>conftest.er1
27589 grep -v '^ *+' conftest.er1 >conftest.err
27591 cat conftest.err >&5
27592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593 (exit $ac_status); } &&
27594 { ac_try='test -z "$ac_c_werror_flag"
27595 || test ! -s conftest.err'
27596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27597 (eval $ac_try) 2>&5
27599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600 (exit $ac_status); }; } &&
27601 { ac_try='test -s conftest.$ac_objext'
27602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27603 (eval $ac_try) 2>&5
27605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606 (exit $ac_status); }; }; then
27607 ac_header_compiler=yes
27609 echo "$as_me: failed program was:" >&5
27610 sed 's/^/| /' conftest.$ac_ext >&5
27612 ac_header_compiler=no
27614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27615 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27616 echo "${ECHO_T}$ac_header_compiler" >&6
27618 # Is the header present?
27619 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27621 cat >conftest.$ac_ext <<_ACEOF
27624 cat confdefs.h >>conftest.$ac_ext
27625 cat >>conftest.$ac_ext <<_ACEOF
27626 /* end confdefs.h. */
27627 #include <$ac_header>
27629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27632 grep -v '^ *+' conftest.er1 >conftest.err
27634 cat conftest.err >&5
27635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636 (exit $ac_status); } >/dev/null; then
27637 if test -s conftest.err; then
27638 ac_cpp_err=$ac_c_preproc_warn_flag
27639 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27646 if test -z "$ac_cpp_err"; then
27647 ac_header_preproc=yes
27649 echo "$as_me: failed program was:" >&5
27650 sed 's/^/| /' conftest.$ac_ext >&5
27652 ac_header_preproc=no
27654 rm -f conftest.err conftest.$ac_ext
27655 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27656 echo "${ECHO_T}$ac_header_preproc" >&6
27658 # So? What about this header?
27659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27664 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27665 ac_header_preproc=yes
27668 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27670 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27671 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27672 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27673 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27674 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27675 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27678 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27679 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27682 ## ----------------------------------- ##
27683 ## Report this to llvmbugs@cs.uiuc.edu ##
27684 ## ----------------------------------- ##
27687 sed "s/^/$as_me: WARNING: /" >&2
27690 echo "$as_me:$LINENO: checking for $ac_header" >&5
27691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27693 echo $ECHO_N "(cached) $ECHO_C" >&6
27695 eval "$as_ac_Header=\$ac_header_preproc"
27697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27702 cat >>confdefs.h <<_ACEOF
27703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27713 echo "$as_me:$LINENO: checking for pid_t" >&5
27714 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27715 if test "${ac_cv_type_pid_t+set}" = set; then
27716 echo $ECHO_N "(cached) $ECHO_C" >&6
27718 cat >conftest.$ac_ext <<_ACEOF
27721 cat confdefs.h >>conftest.$ac_ext
27722 cat >>conftest.$ac_ext <<_ACEOF
27723 /* end confdefs.h. */
27724 $ac_includes_default
27730 if (sizeof (pid_t))
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_type_pid_t=yes
27760 echo "$as_me: failed program was:" >&5
27761 sed 's/^/| /' conftest.$ac_ext >&5
27763 ac_cv_type_pid_t=no
27765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27767 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27768 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27769 if test $ac_cv_type_pid_t = yes; then
27773 cat >>confdefs.h <<_ACEOF
27779 echo "$as_me:$LINENO: checking for size_t" >&5
27780 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27781 if test "${ac_cv_type_size_t+set}" = set; then
27782 echo $ECHO_N "(cached) $ECHO_C" >&6
27784 cat >conftest.$ac_ext <<_ACEOF
27787 cat confdefs.h >>conftest.$ac_ext
27788 cat >>conftest.$ac_ext <<_ACEOF
27789 /* end confdefs.h. */
27790 $ac_includes_default
27796 if (sizeof (size_t))
27802 rm -f conftest.$ac_objext
27803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27804 (eval $ac_compile) 2>conftest.er1
27806 grep -v '^ *+' conftest.er1 >conftest.err
27808 cat conftest.err >&5
27809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810 (exit $ac_status); } &&
27811 { ac_try='test -z "$ac_c_werror_flag"
27812 || test ! -s conftest.err'
27813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27814 (eval $ac_try) 2>&5
27816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817 (exit $ac_status); }; } &&
27818 { ac_try='test -s conftest.$ac_objext'
27819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27820 (eval $ac_try) 2>&5
27822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823 (exit $ac_status); }; }; then
27824 ac_cv_type_size_t=yes
27826 echo "$as_me: failed program was:" >&5
27827 sed 's/^/| /' conftest.$ac_ext >&5
27829 ac_cv_type_size_t=no
27831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27833 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27834 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27835 if test $ac_cv_type_size_t = yes; then
27839 cat >>confdefs.h <<_ACEOF
27840 #define size_t unsigned
27845 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27846 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27847 if test "${ac_cv_type_signal+set}" = set; then
27848 echo $ECHO_N "(cached) $ECHO_C" >&6
27850 cat >conftest.$ac_ext <<_ACEOF
27853 cat confdefs.h >>conftest.$ac_ext
27854 cat >>conftest.$ac_ext <<_ACEOF
27855 /* end confdefs.h. */
27856 #include <sys/types.h>
27857 #include <signal.h>
27862 extern "C" void (*signal (int, void (*)(int)))(int);
27864 void (*signal ()) ();
27875 rm -f conftest.$ac_objext
27876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27877 (eval $ac_compile) 2>conftest.er1
27879 grep -v '^ *+' conftest.er1 >conftest.err
27881 cat conftest.err >&5
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); } &&
27884 { ac_try='test -z "$ac_c_werror_flag"
27885 || test ! -s conftest.err'
27886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27887 (eval $ac_try) 2>&5
27889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890 (exit $ac_status); }; } &&
27891 { ac_try='test -s conftest.$ac_objext'
27892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27893 (eval $ac_try) 2>&5
27895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896 (exit $ac_status); }; }; then
27897 ac_cv_type_signal=void
27899 echo "$as_me: failed program was:" >&5
27900 sed 's/^/| /' conftest.$ac_ext >&5
27902 ac_cv_type_signal=int
27904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27906 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27907 echo "${ECHO_T}$ac_cv_type_signal" >&6
27909 cat >>confdefs.h <<_ACEOF
27910 #define RETSIGTYPE $ac_cv_type_signal
27914 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27915 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27916 if test "${ac_cv_struct_tm+set}" = set; then
27917 echo $ECHO_N "(cached) $ECHO_C" >&6
27919 cat >conftest.$ac_ext <<_ACEOF
27922 cat confdefs.h >>conftest.$ac_ext
27923 cat >>conftest.$ac_ext <<_ACEOF
27924 /* end confdefs.h. */
27925 #include <sys/types.h>
27931 struct tm *tp; tp->tm_sec;
27936 rm -f conftest.$ac_objext
27937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27938 (eval $ac_compile) 2>conftest.er1
27940 grep -v '^ *+' conftest.er1 >conftest.err
27942 cat conftest.err >&5
27943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944 (exit $ac_status); } &&
27945 { ac_try='test -z "$ac_c_werror_flag"
27946 || test ! -s conftest.err'
27947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27948 (eval $ac_try) 2>&5
27950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951 (exit $ac_status); }; } &&
27952 { ac_try='test -s conftest.$ac_objext'
27953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954 (eval $ac_try) 2>&5
27956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); }; }; then
27958 ac_cv_struct_tm=time.h
27960 echo "$as_me: failed program was:" >&5
27961 sed 's/^/| /' conftest.$ac_ext >&5
27963 ac_cv_struct_tm=sys/time.h
27965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27967 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27968 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27969 if test $ac_cv_struct_tm = sys/time.h; then
27971 cat >>confdefs.h <<\_ACEOF
27972 #define TM_IN_SYS_TIME 1
27977 echo "$as_me:$LINENO: checking for int64_t" >&5
27978 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27979 if test "${ac_cv_type_int64_t+set}" = set; then
27980 echo $ECHO_N "(cached) $ECHO_C" >&6
27982 cat >conftest.$ac_ext <<_ACEOF
27985 cat confdefs.h >>conftest.$ac_ext
27986 cat >>conftest.$ac_ext <<_ACEOF
27987 /* end confdefs.h. */
27988 $ac_includes_default
27994 if (sizeof (int64_t))
28000 rm -f conftest.$ac_objext
28001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28002 (eval $ac_compile) 2>conftest.er1
28004 grep -v '^ *+' conftest.er1 >conftest.err
28006 cat conftest.err >&5
28007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28008 (exit $ac_status); } &&
28009 { ac_try='test -z "$ac_c_werror_flag"
28010 || test ! -s conftest.err'
28011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28012 (eval $ac_try) 2>&5
28014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015 (exit $ac_status); }; } &&
28016 { ac_try='test -s conftest.$ac_objext'
28017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28018 (eval $ac_try) 2>&5
28020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021 (exit $ac_status); }; }; then
28022 ac_cv_type_int64_t=yes
28024 echo "$as_me: failed program was:" >&5
28025 sed 's/^/| /' conftest.$ac_ext >&5
28027 ac_cv_type_int64_t=no
28029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28031 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28032 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
28033 if test $ac_cv_type_int64_t = yes; then
28035 cat >>confdefs.h <<_ACEOF
28036 #define HAVE_INT64_T 1
28041 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28042 echo "$as_me: error: Type int64_t required but not found" >&2;}
28043 { (exit 1); exit 1; }; }
28046 echo "$as_me:$LINENO: checking for uint64_t" >&5
28047 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
28048 if test "${ac_cv_type_uint64_t+set}" = set; then
28049 echo $ECHO_N "(cached) $ECHO_C" >&6
28051 cat >conftest.$ac_ext <<_ACEOF
28054 cat confdefs.h >>conftest.$ac_ext
28055 cat >>conftest.$ac_ext <<_ACEOF
28056 /* end confdefs.h. */
28057 $ac_includes_default
28061 if ((uint64_t *) 0)
28063 if (sizeof (uint64_t))
28069 rm -f conftest.$ac_objext
28070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28071 (eval $ac_compile) 2>conftest.er1
28073 grep -v '^ *+' conftest.er1 >conftest.err
28075 cat conftest.err >&5
28076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077 (exit $ac_status); } &&
28078 { ac_try='test -z "$ac_c_werror_flag"
28079 || test ! -s conftest.err'
28080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28081 (eval $ac_try) 2>&5
28083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084 (exit $ac_status); }; } &&
28085 { ac_try='test -s conftest.$ac_objext'
28086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28087 (eval $ac_try) 2>&5
28089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090 (exit $ac_status); }; }; then
28091 ac_cv_type_uint64_t=yes
28093 echo "$as_me: failed program was:" >&5
28094 sed 's/^/| /' conftest.$ac_ext >&5
28096 ac_cv_type_uint64_t=no
28098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28100 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28101 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
28102 if test $ac_cv_type_uint64_t = yes; then
28104 cat >>confdefs.h <<_ACEOF
28105 #define HAVE_UINT64_T 1
28110 echo "$as_me:$LINENO: checking for u_int64_t" >&5
28111 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
28112 if test "${ac_cv_type_u_int64_t+set}" = set; then
28113 echo $ECHO_N "(cached) $ECHO_C" >&6
28115 cat >conftest.$ac_ext <<_ACEOF
28118 cat confdefs.h >>conftest.$ac_ext
28119 cat >>conftest.$ac_ext <<_ACEOF
28120 /* end confdefs.h. */
28121 $ac_includes_default
28125 if ((u_int64_t *) 0)
28127 if (sizeof (u_int64_t))
28133 rm -f conftest.$ac_objext
28134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28135 (eval $ac_compile) 2>conftest.er1
28137 grep -v '^ *+' conftest.er1 >conftest.err
28139 cat conftest.err >&5
28140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141 (exit $ac_status); } &&
28142 { ac_try='test -z "$ac_c_werror_flag"
28143 || test ! -s conftest.err'
28144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28145 (eval $ac_try) 2>&5
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); }; } &&
28149 { ac_try='test -s conftest.$ac_objext'
28150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28151 (eval $ac_try) 2>&5
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); }; }; then
28155 ac_cv_type_u_int64_t=yes
28157 echo "$as_me: failed program was:" >&5
28158 sed 's/^/| /' conftest.$ac_ext >&5
28160 ac_cv_type_u_int64_t=no
28162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28164 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28165 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
28166 if test $ac_cv_type_u_int64_t = yes; then
28168 cat >>confdefs.h <<_ACEOF
28169 #define HAVE_U_INT64_T 1
28174 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28175 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28176 { (exit 1); exit 1; }; }
28190 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28193 echo "$as_me:$LINENO: checking for $ac_func" >&5
28194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28195 if eval "test \"\${$as_ac_var+set}\" = set"; then
28196 echo $ECHO_N "(cached) $ECHO_C" >&6
28198 cat >conftest.$ac_ext <<_ACEOF
28201 cat confdefs.h >>conftest.$ac_ext
28202 cat >>conftest.$ac_ext <<_ACEOF
28203 /* end confdefs.h. */
28204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28206 #define $ac_func innocuous_$ac_func
28208 /* System header to define __stub macros and hopefully few prototypes,
28209 which can conflict with char $ac_func (); below.
28210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28211 <limits.h> exists even on freestanding compilers. */
28214 # include <limits.h>
28216 # include <assert.h>
28221 /* Override any gcc2 internal prototype to avoid an error. */
28226 /* We use char because int might match the return type of a gcc2
28227 builtin and then its argument prototype would still apply. */
28229 /* The GNU C library defines this for functions which it implements
28230 to always fail with ENOSYS. Some functions are actually named
28231 something starting with __ and the normal name is an alias. */
28232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28235 char (*f) () = $ac_func;
28244 return f != $ac_func;
28249 rm -f conftest.$ac_objext conftest$ac_exeext
28250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28251 (eval $ac_link) 2>conftest.er1
28253 grep -v '^ *+' conftest.er1 >conftest.err
28255 cat conftest.err >&5
28256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257 (exit $ac_status); } &&
28258 { ac_try='test -z "$ac_c_werror_flag"
28259 || test ! -s conftest.err'
28260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28261 (eval $ac_try) 2>&5
28263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264 (exit $ac_status); }; } &&
28265 { ac_try='test -s conftest$ac_exeext'
28266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28267 (eval $ac_try) 2>&5
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); }; }; then
28271 eval "$as_ac_var=yes"
28273 echo "$as_me: failed program was:" >&5
28274 sed 's/^/| /' conftest.$ac_ext >&5
28276 eval "$as_ac_var=no"
28278 rm -f conftest.err conftest.$ac_objext \
28279 conftest$ac_exeext conftest.$ac_ext
28281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28283 if test `eval echo '${'$as_ac_var'}'` = yes; then
28284 cat >>confdefs.h <<_ACEOF
28285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28297 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
28299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28300 echo "$as_me:$LINENO: checking for $ac_func" >&5
28301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28302 if eval "test \"\${$as_ac_var+set}\" = set"; then
28303 echo $ECHO_N "(cached) $ECHO_C" >&6
28305 cat >conftest.$ac_ext <<_ACEOF
28308 cat confdefs.h >>conftest.$ac_ext
28309 cat >>conftest.$ac_ext <<_ACEOF
28310 /* end confdefs.h. */
28311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28313 #define $ac_func innocuous_$ac_func
28315 /* System header to define __stub macros and hopefully few prototypes,
28316 which can conflict with char $ac_func (); below.
28317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28318 <limits.h> exists even on freestanding compilers. */
28321 # include <limits.h>
28323 # include <assert.h>
28328 /* Override any gcc2 internal prototype to avoid an error. */
28333 /* We use char because int might match the return type of a gcc2
28334 builtin and then its argument prototype would still apply. */
28336 /* The GNU C library defines this for functions which it implements
28337 to always fail with ENOSYS. Some functions are actually named
28338 something starting with __ and the normal name is an alias. */
28339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28342 char (*f) () = $ac_func;
28351 return f != $ac_func;
28356 rm -f conftest.$ac_objext conftest$ac_exeext
28357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28358 (eval $ac_link) 2>conftest.er1
28360 grep -v '^ *+' conftest.er1 >conftest.err
28362 cat conftest.err >&5
28363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364 (exit $ac_status); } &&
28365 { ac_try='test -z "$ac_c_werror_flag"
28366 || test ! -s conftest.err'
28367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28368 (eval $ac_try) 2>&5
28370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28371 (exit $ac_status); }; } &&
28372 { ac_try='test -s conftest$ac_exeext'
28373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28374 (eval $ac_try) 2>&5
28376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377 (exit $ac_status); }; }; then
28378 eval "$as_ac_var=yes"
28380 echo "$as_me: failed program was:" >&5
28381 sed 's/^/| /' conftest.$ac_ext >&5
28383 eval "$as_ac_var=no"
28385 rm -f conftest.err conftest.$ac_objext \
28386 conftest$ac_exeext conftest.$ac_ext
28388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28389 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28390 if test `eval echo '${'$as_ac_var'}'` = yes; then
28391 cat >>confdefs.h <<_ACEOF
28392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28405 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
28407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28408 echo "$as_me:$LINENO: checking for $ac_func" >&5
28409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28410 if eval "test \"\${$as_ac_var+set}\" = set"; then
28411 echo $ECHO_N "(cached) $ECHO_C" >&6
28413 cat >conftest.$ac_ext <<_ACEOF
28416 cat confdefs.h >>conftest.$ac_ext
28417 cat >>conftest.$ac_ext <<_ACEOF
28418 /* end confdefs.h. */
28419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28421 #define $ac_func innocuous_$ac_func
28423 /* System header to define __stub macros and hopefully few prototypes,
28424 which can conflict with char $ac_func (); below.
28425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28426 <limits.h> exists even on freestanding compilers. */
28429 # include <limits.h>
28431 # include <assert.h>
28436 /* Override any gcc2 internal prototype to avoid an error. */
28441 /* We use char because int might match the return type of a gcc2
28442 builtin and then its argument prototype would still apply. */
28444 /* The GNU C library defines this for functions which it implements
28445 to always fail with ENOSYS. Some functions are actually named
28446 something starting with __ and the normal name is an alias. */
28447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28450 char (*f) () = $ac_func;
28459 return f != $ac_func;
28464 rm -f conftest.$ac_objext conftest$ac_exeext
28465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28466 (eval $ac_link) 2>conftest.er1
28468 grep -v '^ *+' conftest.er1 >conftest.err
28470 cat conftest.err >&5
28471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472 (exit $ac_status); } &&
28473 { ac_try='test -z "$ac_c_werror_flag"
28474 || test ! -s conftest.err'
28475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28476 (eval $ac_try) 2>&5
28478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479 (exit $ac_status); }; } &&
28480 { ac_try='test -s conftest$ac_exeext'
28481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28482 (eval $ac_try) 2>&5
28484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485 (exit $ac_status); }; }; then
28486 eval "$as_ac_var=yes"
28488 echo "$as_me: failed program was:" >&5
28489 sed 's/^/| /' conftest.$ac_ext >&5
28491 eval "$as_ac_var=no"
28493 rm -f conftest.err conftest.$ac_objext \
28494 conftest$ac_exeext conftest.$ac_ext
28496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28497 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28498 if test `eval echo '${'$as_ac_var'}'` = yes; then
28499 cat >>confdefs.h <<_ACEOF
28500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28510 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28513 echo "$as_me:$LINENO: checking for $ac_func" >&5
28514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28515 if eval "test \"\${$as_ac_var+set}\" = set"; then
28516 echo $ECHO_N "(cached) $ECHO_C" >&6
28518 cat >conftest.$ac_ext <<_ACEOF
28521 cat confdefs.h >>conftest.$ac_ext
28522 cat >>conftest.$ac_ext <<_ACEOF
28523 /* end confdefs.h. */
28524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28526 #define $ac_func innocuous_$ac_func
28528 /* System header to define __stub macros and hopefully few prototypes,
28529 which can conflict with char $ac_func (); below.
28530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28531 <limits.h> exists even on freestanding compilers. */
28534 # include <limits.h>
28536 # include <assert.h>
28541 /* Override any gcc2 internal prototype to avoid an error. */
28546 /* We use char because int might match the return type of a gcc2
28547 builtin and then its argument prototype would still apply. */
28549 /* The GNU C library defines this for functions which it implements
28550 to always fail with ENOSYS. Some functions are actually named
28551 something starting with __ and the normal name is an alias. */
28552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28555 char (*f) () = $ac_func;
28564 return f != $ac_func;
28569 rm -f conftest.$ac_objext conftest$ac_exeext
28570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28571 (eval $ac_link) 2>conftest.er1
28573 grep -v '^ *+' conftest.er1 >conftest.err
28575 cat conftest.err >&5
28576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577 (exit $ac_status); } &&
28578 { ac_try='test -z "$ac_c_werror_flag"
28579 || test ! -s conftest.err'
28580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28581 (eval $ac_try) 2>&5
28583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584 (exit $ac_status); }; } &&
28585 { ac_try='test -s conftest$ac_exeext'
28586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28587 (eval $ac_try) 2>&5
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); }; }; then
28591 eval "$as_ac_var=yes"
28593 echo "$as_me: failed program was:" >&5
28594 sed 's/^/| /' conftest.$ac_ext >&5
28596 eval "$as_ac_var=no"
28598 rm -f conftest.err conftest.$ac_objext \
28599 conftest$ac_exeext conftest.$ac_ext
28601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28603 if test `eval echo '${'$as_ac_var'}'` = yes; then
28604 cat >>confdefs.h <<_ACEOF
28605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28617 for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
28619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28620 echo "$as_me:$LINENO: checking for $ac_func" >&5
28621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28622 if eval "test \"\${$as_ac_var+set}\" = set"; then
28623 echo $ECHO_N "(cached) $ECHO_C" >&6
28625 cat >conftest.$ac_ext <<_ACEOF
28628 cat confdefs.h >>conftest.$ac_ext
28629 cat >>conftest.$ac_ext <<_ACEOF
28630 /* end confdefs.h. */
28631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28633 #define $ac_func innocuous_$ac_func
28635 /* System header to define __stub macros and hopefully few prototypes,
28636 which can conflict with char $ac_func (); below.
28637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28638 <limits.h> exists even on freestanding compilers. */
28641 # include <limits.h>
28643 # include <assert.h>
28648 /* Override any gcc2 internal prototype to avoid an error. */
28653 /* We use char because int might match the return type of a gcc2
28654 builtin and then its argument prototype would still apply. */
28656 /* The GNU C library defines this for functions which it implements
28657 to always fail with ENOSYS. Some functions are actually named
28658 something starting with __ and the normal name is an alias. */
28659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28662 char (*f) () = $ac_func;
28671 return f != $ac_func;
28676 rm -f conftest.$ac_objext conftest$ac_exeext
28677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28678 (eval $ac_link) 2>conftest.er1
28680 grep -v '^ *+' conftest.er1 >conftest.err
28682 cat conftest.err >&5
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); } &&
28685 { ac_try='test -z "$ac_c_werror_flag"
28686 || test ! -s conftest.err'
28687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28688 (eval $ac_try) 2>&5
28690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691 (exit $ac_status); }; } &&
28692 { ac_try='test -s conftest$ac_exeext'
28693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28694 (eval $ac_try) 2>&5
28696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697 (exit $ac_status); }; }; then
28698 eval "$as_ac_var=yes"
28700 echo "$as_me: failed program was:" >&5
28701 sed 's/^/| /' conftest.$ac_ext >&5
28703 eval "$as_ac_var=no"
28705 rm -f conftest.err conftest.$ac_objext \
28706 conftest$ac_exeext conftest.$ac_ext
28708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28710 if test `eval echo '${'$as_ac_var'}'` = yes; then
28711 cat >>confdefs.h <<_ACEOF
28712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28718 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28719 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28720 if test "${llvm_cv_c_printf_a+set}" = set; then
28721 echo $ECHO_N "(cached) $ECHO_C" >&6
28724 ac_cpp='$CPP $CPPFLAGS'
28725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28729 if test "$cross_compiling" = yes; then
28730 llvmac_cv_c_printf_a=no
28732 cat >conftest.$ac_ext <<_ACEOF
28736 cat confdefs.h >>conftest.$ac_ext
28737 cat >>conftest.$ac_ext <<_ACEOF
28738 /* end confdefs.h. */
28741 #include <stdlib.h>
28747 volatile double A, B;
28751 sprintf(Buffer, "%a", A);
28755 if (A != 0x1.999999999999ap-4)
28762 rm -f conftest$ac_exeext
28763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28764 (eval $ac_link) 2>&5
28766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28769 (eval $ac_try) 2>&5
28771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772 (exit $ac_status); }; }; then
28773 llvm_cv_c_printf_a=yes
28775 echo "$as_me: program exited with status $ac_status" >&5
28776 echo "$as_me: failed program was:" >&5
28777 sed 's/^/| /' conftest.$ac_ext >&5
28779 ( exit $ac_status )
28780 llvmac_cv_c_printf_a=no
28782 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28785 ac_cpp='$CPP $CPPFLAGS'
28786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28791 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28792 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28793 if test "$llvm_cv_c_printf_a" = "yes"; then
28795 cat >>confdefs.h <<\_ACEOF
28796 #define HAVE_PRINTF_A 1
28801 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28802 # for constant arguments. Useless!
28803 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28804 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28805 if test "${ac_cv_working_alloca_h+set}" = set; then
28806 echo $ECHO_N "(cached) $ECHO_C" >&6
28808 cat >conftest.$ac_ext <<_ACEOF
28811 cat confdefs.h >>conftest.$ac_ext
28812 cat >>conftest.$ac_ext <<_ACEOF
28813 /* end confdefs.h. */
28814 #include <alloca.h>
28818 char *p = (char *) alloca (2 * sizeof (int));
28823 rm -f conftest.$ac_objext conftest$ac_exeext
28824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28825 (eval $ac_link) 2>conftest.er1
28827 grep -v '^ *+' conftest.er1 >conftest.err
28829 cat conftest.err >&5
28830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28831 (exit $ac_status); } &&
28832 { ac_try='test -z "$ac_c_werror_flag"
28833 || test ! -s conftest.err'
28834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28835 (eval $ac_try) 2>&5
28837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838 (exit $ac_status); }; } &&
28839 { ac_try='test -s conftest$ac_exeext'
28840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28841 (eval $ac_try) 2>&5
28843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844 (exit $ac_status); }; }; then
28845 ac_cv_working_alloca_h=yes
28847 echo "$as_me: failed program was:" >&5
28848 sed 's/^/| /' conftest.$ac_ext >&5
28850 ac_cv_working_alloca_h=no
28852 rm -f conftest.err conftest.$ac_objext \
28853 conftest$ac_exeext conftest.$ac_ext
28855 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28856 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28857 if test $ac_cv_working_alloca_h = yes; then
28859 cat >>confdefs.h <<\_ACEOF
28860 #define HAVE_ALLOCA_H 1
28865 echo "$as_me:$LINENO: checking for alloca" >&5
28866 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28867 if test "${ac_cv_func_alloca_works+set}" = set; then
28868 echo $ECHO_N "(cached) $ECHO_C" >&6
28870 cat >conftest.$ac_ext <<_ACEOF
28873 cat confdefs.h >>conftest.$ac_ext
28874 cat >>conftest.$ac_ext <<_ACEOF
28875 /* end confdefs.h. */
28877 # define alloca __builtin_alloca
28880 # include <malloc.h>
28881 # define alloca _alloca
28884 # include <alloca.h>
28889 # ifndef alloca /* predefined by HP cc +Olibcalls */
28900 char *p = (char *) alloca (1);
28905 rm -f conftest.$ac_objext conftest$ac_exeext
28906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28907 (eval $ac_link) 2>conftest.er1
28909 grep -v '^ *+' conftest.er1 >conftest.err
28911 cat conftest.err >&5
28912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913 (exit $ac_status); } &&
28914 { ac_try='test -z "$ac_c_werror_flag"
28915 || test ! -s conftest.err'
28916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28917 (eval $ac_try) 2>&5
28919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920 (exit $ac_status); }; } &&
28921 { ac_try='test -s conftest$ac_exeext'
28922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28923 (eval $ac_try) 2>&5
28925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926 (exit $ac_status); }; }; then
28927 ac_cv_func_alloca_works=yes
28929 echo "$as_me: failed program was:" >&5
28930 sed 's/^/| /' conftest.$ac_ext >&5
28932 ac_cv_func_alloca_works=no
28934 rm -f conftest.err conftest.$ac_objext \
28935 conftest$ac_exeext conftest.$ac_ext
28937 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28938 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28940 if test $ac_cv_func_alloca_works = yes; then
28942 cat >>confdefs.h <<\_ACEOF
28943 #define HAVE_ALLOCA 1
28947 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28948 # that cause trouble. Some versions do not even contain alloca or
28949 # contain a buggy version. If you still want to use their alloca,
28950 # use ar to extract alloca.o from them instead of compiling alloca.c.
28952 ALLOCA=alloca.$ac_objext
28954 cat >>confdefs.h <<\_ACEOF
28959 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28960 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28961 if test "${ac_cv_os_cray+set}" = set; then
28962 echo $ECHO_N "(cached) $ECHO_C" >&6
28964 cat >conftest.$ac_ext <<_ACEOF
28967 cat confdefs.h >>conftest.$ac_ext
28968 cat >>conftest.$ac_ext <<_ACEOF
28969 /* end confdefs.h. */
28970 #if defined(CRAY) && ! defined(CRAY2)
28977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28978 $EGREP "webecray" >/dev/null 2>&1; then
28986 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28987 echo "${ECHO_T}$ac_cv_os_cray" >&6
28988 if test $ac_cv_os_cray = yes; then
28989 for ac_func in _getb67 GETB67 getb67; do
28990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28991 echo "$as_me:$LINENO: checking for $ac_func" >&5
28992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28993 if eval "test \"\${$as_ac_var+set}\" = set"; then
28994 echo $ECHO_N "(cached) $ECHO_C" >&6
28996 cat >conftest.$ac_ext <<_ACEOF
28999 cat confdefs.h >>conftest.$ac_ext
29000 cat >>conftest.$ac_ext <<_ACEOF
29001 /* end confdefs.h. */
29002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29004 #define $ac_func innocuous_$ac_func
29006 /* System header to define __stub macros and hopefully few prototypes,
29007 which can conflict with char $ac_func (); below.
29008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29009 <limits.h> exists even on freestanding compilers. */
29012 # include <limits.h>
29014 # include <assert.h>
29019 /* Override any gcc2 internal prototype to avoid an error. */
29024 /* We use char because int might match the return type of a gcc2
29025 builtin and then its argument prototype would still apply. */
29027 /* The GNU C library defines this for functions which it implements
29028 to always fail with ENOSYS. Some functions are actually named
29029 something starting with __ and the normal name is an alias. */
29030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29033 char (*f) () = $ac_func;
29042 return f != $ac_func;
29047 rm -f conftest.$ac_objext conftest$ac_exeext
29048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29049 (eval $ac_link) 2>conftest.er1
29051 grep -v '^ *+' conftest.er1 >conftest.err
29053 cat conftest.err >&5
29054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055 (exit $ac_status); } &&
29056 { ac_try='test -z "$ac_c_werror_flag"
29057 || test ! -s conftest.err'
29058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29059 (eval $ac_try) 2>&5
29061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062 (exit $ac_status); }; } &&
29063 { ac_try='test -s conftest$ac_exeext'
29064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29065 (eval $ac_try) 2>&5
29067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068 (exit $ac_status); }; }; then
29069 eval "$as_ac_var=yes"
29071 echo "$as_me: failed program was:" >&5
29072 sed 's/^/| /' conftest.$ac_ext >&5
29074 eval "$as_ac_var=no"
29076 rm -f conftest.err conftest.$ac_objext \
29077 conftest$ac_exeext conftest.$ac_ext
29079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29081 if test `eval echo '${'$as_ac_var'}'` = yes; then
29083 cat >>confdefs.h <<_ACEOF
29084 #define CRAY_STACKSEG_END $ac_func
29093 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29094 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
29095 if test "${ac_cv_c_stack_direction+set}" = set; then
29096 echo $ECHO_N "(cached) $ECHO_C" >&6
29098 if test "$cross_compiling" = yes; then
29099 ac_cv_c_stack_direction=0
29101 cat >conftest.$ac_ext <<_ACEOF
29104 cat confdefs.h >>conftest.$ac_ext
29105 cat >>conftest.$ac_ext <<_ACEOF
29106 /* end confdefs.h. */
29108 find_stack_direction ()
29110 static char *addr = 0;
29115 return find_stack_direction ();
29118 return (&dummy > addr) ? 1 : -1;
29124 exit (find_stack_direction () < 0);
29127 rm -f conftest$ac_exeext
29128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29129 (eval $ac_link) 2>&5
29131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29134 (eval $ac_try) 2>&5
29136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137 (exit $ac_status); }; }; then
29138 ac_cv_c_stack_direction=1
29140 echo "$as_me: program exited with status $ac_status" >&5
29141 echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29144 ( exit $ac_status )
29145 ac_cv_c_stack_direction=-1
29147 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29150 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29151 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
29153 cat >>confdefs.h <<_ACEOF
29154 #define STACK_DIRECTION $ac_cv_c_stack_direction
29161 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29162 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
29163 if test "${ac_cv_func_rand48+set}" = set; then
29164 echo $ECHO_N "(cached) $ECHO_C" >&6
29167 ac_cpp='$CXXCPP $CPPFLAGS'
29168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29172 cat >conftest.$ac_ext <<_ACEOF
29175 cat confdefs.h >>conftest.$ac_ext
29176 cat >>conftest.$ac_ext <<_ACEOF
29177 /* end confdefs.h. */
29178 #include <stdlib.h>
29182 srand48(0);lrand48();drand48();
29187 rm -f conftest.$ac_objext
29188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29189 (eval $ac_compile) 2>conftest.er1
29191 grep -v '^ *+' conftest.er1 >conftest.err
29193 cat conftest.err >&5
29194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195 (exit $ac_status); } &&
29196 { ac_try='test -z "$ac_cxx_werror_flag"
29197 || test ! -s conftest.err'
29198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29199 (eval $ac_try) 2>&5
29201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202 (exit $ac_status); }; } &&
29203 { ac_try='test -s conftest.$ac_objext'
29204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29205 (eval $ac_try) 2>&5
29207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208 (exit $ac_status); }; }; then
29209 ac_cv_func_rand48=yes
29211 echo "$as_me: failed program was:" >&5
29212 sed 's/^/| /' conftest.$ac_ext >&5
29214 ac_cv_func_rand48=no
29216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29218 ac_cpp='$CPP $CPPFLAGS'
29219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29224 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29225 echo "${ECHO_T}$ac_cv_func_rand48" >&6
29227 if test "$ac_cv_func_rand48" = "yes" ; then
29229 cat >>confdefs.h <<\_ACEOF
29230 #define HAVE_RAND48 1
29236 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29237 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
29238 if test "${ac_cv_cxx_namespaces+set}" = set; then
29239 echo $ECHO_N "(cached) $ECHO_C" >&6
29242 ac_cpp='$CXXCPP $CPPFLAGS'
29243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29247 cat >conftest.$ac_ext <<_ACEOF
29250 cat confdefs.h >>conftest.$ac_ext
29251 cat >>conftest.$ac_ext <<_ACEOF
29252 /* end confdefs.h. */
29253 namespace Outer { namespace Inner { int i = 0; }}
29257 using namespace Outer::Inner; return i;
29262 rm -f conftest.$ac_objext
29263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29264 (eval $ac_compile) 2>conftest.er1
29266 grep -v '^ *+' conftest.er1 >conftest.err
29268 cat conftest.err >&5
29269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29270 (exit $ac_status); } &&
29271 { ac_try='test -z "$ac_cxx_werror_flag"
29272 || test ! -s conftest.err'
29273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29274 (eval $ac_try) 2>&5
29276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29277 (exit $ac_status); }; } &&
29278 { ac_try='test -s conftest.$ac_objext'
29279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29280 (eval $ac_try) 2>&5
29282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283 (exit $ac_status); }; }; then
29284 ac_cv_cxx_namespaces=yes
29286 echo "$as_me: failed program was:" >&5
29287 sed 's/^/| /' conftest.$ac_ext >&5
29289 ac_cv_cxx_namespaces=no
29291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29293 ac_cpp='$CPP $CPPFLAGS'
29294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29300 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29301 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
29302 if test "$ac_cv_cxx_namespaces" = yes; then
29304 cat >>confdefs.h <<\_ACEOF
29305 #define HAVE_NAMESPACES
29310 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29311 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
29312 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
29313 echo $ECHO_N "(cached) $ECHO_C" >&6
29317 ac_cpp='$CXXCPP $CPPFLAGS'
29318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29322 cat >conftest.$ac_ext <<_ACEOF
29325 cat confdefs.h >>conftest.$ac_ext
29326 cat >>conftest.$ac_ext <<_ACEOF
29327 /* end confdefs.h. */
29328 #include <ext/hash_map>
29329 #ifdef HAVE_NAMESPACES
29330 using namespace std;
29335 hash_map<int, int> t;
29340 rm -f conftest.$ac_objext
29341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29342 (eval $ac_compile) 2>conftest.er1
29344 grep -v '^ *+' conftest.er1 >conftest.err
29346 cat conftest.err >&5
29347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348 (exit $ac_status); } &&
29349 { ac_try='test -z "$ac_cxx_werror_flag"
29350 || test ! -s conftest.err'
29351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29352 (eval $ac_try) 2>&5
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); }; } &&
29356 { ac_try='test -s conftest.$ac_objext'
29357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29358 (eval $ac_try) 2>&5
29360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361 (exit $ac_status); }; }; then
29362 ac_cv_cxx_have_std_ext_hash_map=yes
29364 echo "$as_me: failed program was:" >&5
29365 sed 's/^/| /' conftest.$ac_ext >&5
29367 ac_cv_cxx_have_std_ext_hash_map=no
29369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29371 ac_cpp='$CPP $CPPFLAGS'
29372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29377 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29378 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
29379 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29382 cat >>confdefs.h <<\_ACEOF
29383 #define HAVE_STD_EXT_HASH_MAP 1
29388 cat >>confdefs.h <<\_ACEOF
29389 #define HAVE_STD_EXT_HASH_MAP 0
29394 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
29395 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
29396 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
29397 echo $ECHO_N "(cached) $ECHO_C" >&6
29401 ac_cpp='$CXXCPP $CPPFLAGS'
29402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29406 cat >conftest.$ac_ext <<_ACEOF
29409 cat confdefs.h >>conftest.$ac_ext
29410 cat >>conftest.$ac_ext <<_ACEOF
29411 /* end confdefs.h. */
29412 #include <ext/hash_map>
29413 #ifdef HAVE_NAMESPACES
29414 using namespace __gnu_cxx;
29419 hash_map<int,int> t;
29424 rm -f conftest.$ac_objext
29425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29426 (eval $ac_compile) 2>conftest.er1
29428 grep -v '^ *+' conftest.er1 >conftest.err
29430 cat conftest.err >&5
29431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432 (exit $ac_status); } &&
29433 { ac_try='test -z "$ac_cxx_werror_flag"
29434 || test ! -s conftest.err'
29435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29436 (eval $ac_try) 2>&5
29438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439 (exit $ac_status); }; } &&
29440 { ac_try='test -s conftest.$ac_objext'
29441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29442 (eval $ac_try) 2>&5
29444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445 (exit $ac_status); }; }; then
29446 ac_cv_cxx_have_gnu_ext_hash_map=yes
29448 echo "$as_me: failed program was:" >&5
29449 sed 's/^/| /' conftest.$ac_ext >&5
29451 ac_cv_cxx_have_gnu_ext_hash_map=no
29453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29455 ac_cpp='$CPP $CPPFLAGS'
29456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29461 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
29462 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
29463 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
29466 cat >>confdefs.h <<\_ACEOF
29467 #define HAVE_GNU_EXT_HASH_MAP 1
29472 cat >>confdefs.h <<\_ACEOF
29473 #define HAVE_GNU_EXT_HASH_MAP 0
29478 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29479 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29480 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
29481 echo $ECHO_N "(cached) $ECHO_C" >&6
29485 ac_cpp='$CXXCPP $CPPFLAGS'
29486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29490 cat >conftest.$ac_ext <<_ACEOF
29493 cat confdefs.h >>conftest.$ac_ext
29494 cat >>conftest.$ac_ext <<_ACEOF
29495 /* end confdefs.h. */
29496 #include <hash_map>
29500 hash_map<int,int> t;
29505 rm -f conftest.$ac_objext
29506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29507 (eval $ac_compile) 2>conftest.er1
29509 grep -v '^ *+' conftest.er1 >conftest.err
29511 cat conftest.err >&5
29512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29513 (exit $ac_status); } &&
29514 { ac_try='test -z "$ac_cxx_werror_flag"
29515 || test ! -s conftest.err'
29516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29517 (eval $ac_try) 2>&5
29519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29520 (exit $ac_status); }; } &&
29521 { ac_try='test -s conftest.$ac_objext'
29522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29523 (eval $ac_try) 2>&5
29525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526 (exit $ac_status); }; }; then
29527 ac_cv_cxx_have_global_hash_map=yes
29529 echo "$as_me: failed program was:" >&5
29530 sed 's/^/| /' conftest.$ac_ext >&5
29532 ac_cv_cxx_have_global_hash_map=no
29534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29536 ac_cpp='$CPP $CPPFLAGS'
29537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29542 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29543 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
29544 if test "$ac_cv_cxx_have_global_hash_map" = yes
29547 cat >>confdefs.h <<\_ACEOF
29548 #define HAVE_GLOBAL_HASH_MAP 1
29553 cat >>confdefs.h <<\_ACEOF
29554 #define HAVE_GLOBAL_HASH_MAP 0
29559 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29560 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29561 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29562 echo $ECHO_N "(cached) $ECHO_C" >&6
29566 ac_cpp='$CXXCPP $CPPFLAGS'
29567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29571 cat >conftest.$ac_ext <<_ACEOF
29574 cat confdefs.h >>conftest.$ac_ext
29575 cat >>conftest.$ac_ext <<_ACEOF
29576 /* end confdefs.h. */
29577 #include <ext/hash_set>
29578 #ifdef HAVE_NAMESPACES
29579 using namespace std;
29589 rm -f conftest.$ac_objext
29590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29591 (eval $ac_compile) 2>conftest.er1
29593 grep -v '^ *+' conftest.er1 >conftest.err
29595 cat conftest.err >&5
29596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597 (exit $ac_status); } &&
29598 { ac_try='test -z "$ac_cxx_werror_flag"
29599 || test ! -s conftest.err'
29600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29601 (eval $ac_try) 2>&5
29603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604 (exit $ac_status); }; } &&
29605 { ac_try='test -s conftest.$ac_objext'
29606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29607 (eval $ac_try) 2>&5
29609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610 (exit $ac_status); }; }; then
29611 ac_cv_cxx_have_std_ext_hash_set=yes
29613 echo "$as_me: failed program was:" >&5
29614 sed 's/^/| /' conftest.$ac_ext >&5
29616 ac_cv_cxx_have_std_ext_hash_set=no
29618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29620 ac_cpp='$CPP $CPPFLAGS'
29621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29626 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29627 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29628 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29631 cat >>confdefs.h <<\_ACEOF
29632 #define HAVE_STD_EXT_HASH_SET 1
29637 cat >>confdefs.h <<\_ACEOF
29638 #define HAVE_STD_EXT_HASH_SET 0
29643 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29644 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29645 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29646 echo $ECHO_N "(cached) $ECHO_C" >&6
29650 ac_cpp='$CXXCPP $CPPFLAGS'
29651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29655 cat >conftest.$ac_ext <<_ACEOF
29658 cat confdefs.h >>conftest.$ac_ext
29659 cat >>conftest.$ac_ext <<_ACEOF
29660 /* end confdefs.h. */
29661 #include <ext/hash_set>
29662 #ifdef HAVE_NAMESPACES
29663 using namespace __gnu_cxx;
29673 rm -f conftest.$ac_objext
29674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29675 (eval $ac_compile) 2>conftest.er1
29677 grep -v '^ *+' conftest.er1 >conftest.err
29679 cat conftest.err >&5
29680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681 (exit $ac_status); } &&
29682 { ac_try='test -z "$ac_cxx_werror_flag"
29683 || test ! -s conftest.err'
29684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29685 (eval $ac_try) 2>&5
29687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688 (exit $ac_status); }; } &&
29689 { ac_try='test -s conftest.$ac_objext'
29690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29691 (eval $ac_try) 2>&5
29693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694 (exit $ac_status); }; }; then
29695 ac_cv_cxx_have_gnu_ext_hash_set=yes
29697 echo "$as_me: failed program was:" >&5
29698 sed 's/^/| /' conftest.$ac_ext >&5
29700 ac_cv_cxx_have_gnu_ext_hash_set=no
29702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29704 ac_cpp='$CPP $CPPFLAGS'
29705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29710 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29711 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29712 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29715 cat >>confdefs.h <<\_ACEOF
29716 #define HAVE_GNU_EXT_HASH_SET 1
29721 cat >>confdefs.h <<\_ACEOF
29722 #define HAVE_GNU_EXT_HASH_SET 0
29727 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29728 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29729 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29730 echo $ECHO_N "(cached) $ECHO_C" >&6
29734 ac_cpp='$CXXCPP $CPPFLAGS'
29735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29739 cat >conftest.$ac_ext <<_ACEOF
29742 cat confdefs.h >>conftest.$ac_ext
29743 cat >>conftest.$ac_ext <<_ACEOF
29744 /* end confdefs.h. */
29745 #include <hash_set>
29749 hash_set<int> t; return 0;
29754 rm -f conftest.$ac_objext
29755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29756 (eval $ac_compile) 2>conftest.er1
29758 grep -v '^ *+' conftest.er1 >conftest.err
29760 cat conftest.err >&5
29761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762 (exit $ac_status); } &&
29763 { ac_try='test -z "$ac_cxx_werror_flag"
29764 || test ! -s conftest.err'
29765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29766 (eval $ac_try) 2>&5
29768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769 (exit $ac_status); }; } &&
29770 { ac_try='test -s conftest.$ac_objext'
29771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29772 (eval $ac_try) 2>&5
29774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775 (exit $ac_status); }; }; then
29776 ac_cv_cxx_have_global_hash_set=yes
29778 echo "$as_me: failed program was:" >&5
29779 sed 's/^/| /' conftest.$ac_ext >&5
29781 ac_cv_cxx_have_global_hash_set=no
29783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29785 ac_cpp='$CPP $CPPFLAGS'
29786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29791 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29792 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29793 if test "$ac_cv_cxx_have_global_hash_set" = yes
29796 cat >>confdefs.h <<\_ACEOF
29797 #define HAVE_GLOBAL_HASH_SET 1
29802 cat >>confdefs.h <<\_ACEOF
29803 #define HAVE_GLOBAL_HASH_SET 0
29808 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29809 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29810 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29811 echo $ECHO_N "(cached) $ECHO_C" >&6
29815 ac_cpp='$CXXCPP $CPPFLAGS'
29816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29820 cat >conftest.$ac_ext <<_ACEOF
29823 cat confdefs.h >>conftest.$ac_ext
29824 cat >>conftest.$ac_ext <<_ACEOF
29825 /* end confdefs.h. */
29826 #include <iterator>
29827 #ifdef HAVE_NAMESPACES
29828 using namespace std;
29833 iterator<int,int,int> t; return 0;
29838 rm -f conftest.$ac_objext
29839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29840 (eval $ac_compile) 2>conftest.er1
29842 grep -v '^ *+' conftest.er1 >conftest.err
29844 cat conftest.err >&5
29845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29846 (exit $ac_status); } &&
29847 { ac_try='test -z "$ac_cxx_werror_flag"
29848 || test ! -s conftest.err'
29849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29850 (eval $ac_try) 2>&5
29852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29853 (exit $ac_status); }; } &&
29854 { ac_try='test -s conftest.$ac_objext'
29855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29856 (eval $ac_try) 2>&5
29858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859 (exit $ac_status); }; }; then
29860 ac_cv_cxx_have_std_iterator=yes
29862 echo "$as_me: failed program was:" >&5
29863 sed 's/^/| /' conftest.$ac_ext >&5
29865 ac_cv_cxx_have_std_iterator=no
29867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29869 ac_cpp='$CPP $CPPFLAGS'
29870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29876 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29877 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29878 if test "$ac_cv_cxx_have_std_iterator" = yes
29881 cat >>confdefs.h <<\_ACEOF
29882 #define HAVE_STD_ITERATOR 1
29887 cat >>confdefs.h <<\_ACEOF
29888 #define HAVE_STD_ITERATOR 0
29893 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29894 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29895 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29896 echo $ECHO_N "(cached) $ECHO_C" >&6
29900 ac_cpp='$CXXCPP $CPPFLAGS'
29901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29905 cat >conftest.$ac_ext <<_ACEOF
29908 cat confdefs.h >>conftest.$ac_ext
29909 cat >>conftest.$ac_ext <<_ACEOF
29910 /* end confdefs.h. */
29911 #include <iterator>
29912 #ifdef HAVE_NAMESPACES
29913 using namespace std;
29918 bidirectional_iterator<int,int> t; return 0;
29923 rm -f conftest.$ac_objext
29924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29925 (eval $ac_compile) 2>conftest.er1
29927 grep -v '^ *+' conftest.er1 >conftest.err
29929 cat conftest.err >&5
29930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29931 (exit $ac_status); } &&
29932 { ac_try='test -z "$ac_cxx_werror_flag"
29933 || test ! -s conftest.err'
29934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29935 (eval $ac_try) 2>&5
29937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938 (exit $ac_status); }; } &&
29939 { ac_try='test -s conftest.$ac_objext'
29940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29941 (eval $ac_try) 2>&5
29943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944 (exit $ac_status); }; }; then
29945 ac_cv_cxx_have_bi_iterator=yes
29947 echo "$as_me: failed program was:" >&5
29948 sed 's/^/| /' conftest.$ac_ext >&5
29950 ac_cv_cxx_have_bi_iterator=no
29952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29954 ac_cpp='$CPP $CPPFLAGS'
29955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29961 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29962 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29963 if test "$ac_cv_cxx_have_bi_iterator" = yes
29966 cat >>confdefs.h <<\_ACEOF
29967 #define HAVE_BI_ITERATOR 1
29972 cat >>confdefs.h <<\_ACEOF
29973 #define HAVE_BI_ITERATOR 0
29978 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29979 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29980 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29981 echo $ECHO_N "(cached) $ECHO_C" >&6
29985 ac_cpp='$CXXCPP $CPPFLAGS'
29986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29990 cat >conftest.$ac_ext <<_ACEOF
29993 cat confdefs.h >>conftest.$ac_ext
29994 cat >>conftest.$ac_ext <<_ACEOF
29995 /* end confdefs.h. */
29996 #include <iterator>
29997 #ifdef HAVE_NAMESPACES
29998 using namespace std;
30003 forward_iterator<int,int> t; return 0;
30008 rm -f conftest.$ac_objext
30009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30010 (eval $ac_compile) 2>conftest.er1
30012 grep -v '^ *+' conftest.er1 >conftest.err
30014 cat conftest.err >&5
30015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016 (exit $ac_status); } &&
30017 { ac_try='test -z "$ac_cxx_werror_flag"
30018 || test ! -s conftest.err'
30019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30020 (eval $ac_try) 2>&5
30022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30023 (exit $ac_status); }; } &&
30024 { ac_try='test -s conftest.$ac_objext'
30025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30026 (eval $ac_try) 2>&5
30028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30029 (exit $ac_status); }; }; then
30030 ac_cv_cxx_have_fwd_iterator=yes
30032 echo "$as_me: failed program was:" >&5
30033 sed 's/^/| /' conftest.$ac_ext >&5
30035 ac_cv_cxx_have_fwd_iterator=no
30037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30039 ac_cpp='$CPP $CPPFLAGS'
30040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30046 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30047 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
30048 if test "$ac_cv_cxx_have_fwd_iterator" = yes
30051 cat >>confdefs.h <<\_ACEOF
30052 #define HAVE_FWD_ITERATOR 1
30057 cat >>confdefs.h <<\_ACEOF
30058 #define HAVE_FWD_ITERATOR 0
30064 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30065 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
30066 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30067 echo $ECHO_N "(cached) $ECHO_C" >&6
30070 ac_cpp='$CXXCPP $CPPFLAGS'
30071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30075 cat >conftest.$ac_ext <<_ACEOF
30078 cat confdefs.h >>conftest.$ac_ext
30079 cat >>conftest.$ac_ext <<_ACEOF
30080 /* end confdefs.h. */
30090 rm -f conftest.$ac_objext
30091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30092 (eval $ac_compile) 2>conftest.er1
30094 grep -v '^ *+' conftest.er1 >conftest.err
30096 cat conftest.err >&5
30097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30098 (exit $ac_status); } &&
30099 { ac_try='test -z "$ac_cxx_werror_flag"
30100 || test ! -s conftest.err'
30101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30102 (eval $ac_try) 2>&5
30104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30105 (exit $ac_status); }; } &&
30106 { ac_try='test -s conftest.$ac_objext'
30107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30108 (eval $ac_try) 2>&5
30110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111 (exit $ac_status); }; }; then
30112 ac_cv_func_isnan_in_math_h=yes
30114 echo "$as_me: failed program was:" >&5
30115 sed 's/^/| /' conftest.$ac_ext >&5
30117 ac_cv_func_isnan_in_math_h=no
30119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30121 ac_cpp='$CPP $CPPFLAGS'
30122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30127 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30128 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
30131 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
30133 cat >>confdefs.h <<\_ACEOF
30134 #define HAVE_ISNAN_IN_MATH_H 1
30139 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30140 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
30141 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30142 echo $ECHO_N "(cached) $ECHO_C" >&6
30145 ac_cpp='$CXXCPP $CPPFLAGS'
30146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30150 cat >conftest.$ac_ext <<_ACEOF
30153 cat confdefs.h >>conftest.$ac_ext
30154 cat >>conftest.$ac_ext <<_ACEOF
30155 /* end confdefs.h. */
30165 rm -f conftest.$ac_objext
30166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30167 (eval $ac_compile) 2>conftest.er1
30169 grep -v '^ *+' conftest.er1 >conftest.err
30171 cat conftest.err >&5
30172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173 (exit $ac_status); } &&
30174 { ac_try='test -z "$ac_cxx_werror_flag"
30175 || test ! -s conftest.err'
30176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30177 (eval $ac_try) 2>&5
30179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30180 (exit $ac_status); }; } &&
30181 { ac_try='test -s conftest.$ac_objext'
30182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30183 (eval $ac_try) 2>&5
30185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186 (exit $ac_status); }; }; then
30187 ac_cv_func_isnan_in_cmath=yes
30189 echo "$as_me: failed program was:" >&5
30190 sed 's/^/| /' conftest.$ac_ext >&5
30192 ac_cv_func_isnan_in_cmath=no
30194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30196 ac_cpp='$CPP $CPPFLAGS'
30197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30202 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30203 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
30205 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30207 cat >>confdefs.h <<\_ACEOF
30208 #define HAVE_ISNAN_IN_CMATH 1
30213 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30214 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
30215 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30216 echo $ECHO_N "(cached) $ECHO_C" >&6
30219 ac_cpp='$CXXCPP $CPPFLAGS'
30220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30224 cat >conftest.$ac_ext <<_ACEOF
30227 cat confdefs.h >>conftest.$ac_ext
30228 cat >>conftest.$ac_ext <<_ACEOF
30229 /* end confdefs.h. */
30234 float f; std::isnan(f);
30239 rm -f conftest.$ac_objext
30240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30241 (eval $ac_compile) 2>conftest.er1
30243 grep -v '^ *+' conftest.er1 >conftest.err
30245 cat conftest.err >&5
30246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30247 (exit $ac_status); } &&
30248 { ac_try='test -z "$ac_cxx_werror_flag"
30249 || test ! -s conftest.err'
30250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30251 (eval $ac_try) 2>&5
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); }; } &&
30255 { ac_try='test -s conftest.$ac_objext'
30256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30257 (eval $ac_try) 2>&5
30259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260 (exit $ac_status); }; }; then
30261 ac_cv_func_std_isnan_in_cmath=yes
30263 echo "$as_me: failed program was:" >&5
30264 sed 's/^/| /' conftest.$ac_ext >&5
30266 ac_cv_func_std_isnan_in_cmath=no
30268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30270 ac_cpp='$CPP $CPPFLAGS'
30271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30276 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30277 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
30279 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30281 cat >>confdefs.h <<\_ACEOF
30282 #define HAVE_STD_ISNAN_IN_CMATH 1
30288 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30289 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
30290 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30291 echo $ECHO_N "(cached) $ECHO_C" >&6
30294 ac_cpp='$CXXCPP $CPPFLAGS'
30295 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30296 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30297 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30299 cat >conftest.$ac_ext <<_ACEOF
30302 cat confdefs.h >>conftest.$ac_ext
30303 cat >>conftest.$ac_ext <<_ACEOF
30304 /* end confdefs.h. */
30314 rm -f conftest.$ac_objext
30315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30316 (eval $ac_compile) 2>conftest.er1
30318 grep -v '^ *+' conftest.er1 >conftest.err
30320 cat conftest.err >&5
30321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30322 (exit $ac_status); } &&
30323 { ac_try='test -z "$ac_cxx_werror_flag"
30324 || test ! -s conftest.err'
30325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30326 (eval $ac_try) 2>&5
30328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329 (exit $ac_status); }; } &&
30330 { ac_try='test -s conftest.$ac_objext'
30331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30332 (eval $ac_try) 2>&5
30334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335 (exit $ac_status); }; }; then
30336 ac_cv_func_isinf_in_math_h=yes
30338 echo "$as_me: failed program was:" >&5
30339 sed 's/^/| /' conftest.$ac_ext >&5
30341 ac_cv_func_isinf_in_math_h=no
30343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30345 ac_cpp='$CPP $CPPFLAGS'
30346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30351 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30352 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
30354 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30356 cat >>confdefs.h <<\_ACEOF
30357 #define HAVE_ISINF_IN_MATH_H 1
30362 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30363 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
30364 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30365 echo $ECHO_N "(cached) $ECHO_C" >&6
30368 ac_cpp='$CXXCPP $CPPFLAGS'
30369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30373 cat >conftest.$ac_ext <<_ACEOF
30376 cat confdefs.h >>conftest.$ac_ext
30377 cat >>conftest.$ac_ext <<_ACEOF
30378 /* end confdefs.h. */
30388 rm -f conftest.$ac_objext
30389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30390 (eval $ac_compile) 2>conftest.er1
30392 grep -v '^ *+' conftest.er1 >conftest.err
30394 cat conftest.err >&5
30395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30396 (exit $ac_status); } &&
30397 { ac_try='test -z "$ac_cxx_werror_flag"
30398 || test ! -s conftest.err'
30399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30400 (eval $ac_try) 2>&5
30402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30403 (exit $ac_status); }; } &&
30404 { ac_try='test -s conftest.$ac_objext'
30405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30406 (eval $ac_try) 2>&5
30408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30409 (exit $ac_status); }; }; then
30410 ac_cv_func_isinf_in_cmath=yes
30412 echo "$as_me: failed program was:" >&5
30413 sed 's/^/| /' conftest.$ac_ext >&5
30415 ac_cv_func_isinf_in_cmath=no
30417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30419 ac_cpp='$CPP $CPPFLAGS'
30420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30425 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30426 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
30428 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30430 cat >>confdefs.h <<\_ACEOF
30431 #define HAVE_ISINF_IN_CMATH 1
30436 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30437 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
30438 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30439 echo $ECHO_N "(cached) $ECHO_C" >&6
30442 ac_cpp='$CXXCPP $CPPFLAGS'
30443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30447 cat >conftest.$ac_ext <<_ACEOF
30450 cat confdefs.h >>conftest.$ac_ext
30451 cat >>conftest.$ac_ext <<_ACEOF
30452 /* end confdefs.h. */
30457 float f; std::isinf(f)}
30462 rm -f conftest.$ac_objext
30463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30464 (eval $ac_compile) 2>conftest.er1
30466 grep -v '^ *+' conftest.er1 >conftest.err
30468 cat conftest.err >&5
30469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470 (exit $ac_status); } &&
30471 { ac_try='test -z "$ac_cxx_werror_flag"
30472 || test ! -s conftest.err'
30473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30474 (eval $ac_try) 2>&5
30476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477 (exit $ac_status); }; } &&
30478 { ac_try='test -s conftest.$ac_objext'
30479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30480 (eval $ac_try) 2>&5
30482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30483 (exit $ac_status); }; }; then
30484 ac_cv_func_std_isinf_in_cmath=yes
30486 echo "$as_me: failed program was:" >&5
30487 sed 's/^/| /' conftest.$ac_ext >&5
30489 ac_cv_func_std_isinf_in_cmath=no
30491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30493 ac_cpp='$CPP $CPPFLAGS'
30494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30499 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30500 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
30502 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
30504 cat >>confdefs.h <<\_ACEOF
30505 #define HAVE_STD_ISINF_IN_CMATH 1
30510 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30511 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30512 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30513 echo $ECHO_N "(cached) $ECHO_C" >&6
30516 ac_cpp='$CXXCPP $CPPFLAGS'
30517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30521 cat >conftest.$ac_ext <<_ACEOF
30524 cat confdefs.h >>conftest.$ac_ext
30525 cat >>conftest.$ac_ext <<_ACEOF
30526 /* end confdefs.h. */
30527 #include <ieeefp.h>
30531 float f; finite(f);
30536 rm -f conftest.$ac_objext
30537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30538 (eval $ac_compile) 2>conftest.er1
30540 grep -v '^ *+' conftest.er1 >conftest.err
30542 cat conftest.err >&5
30543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30544 (exit $ac_status); } &&
30545 { ac_try='test -z "$ac_cxx_werror_flag"
30546 || test ! -s conftest.err'
30547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30548 (eval $ac_try) 2>&5
30550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30551 (exit $ac_status); }; } &&
30552 { ac_try='test -s conftest.$ac_objext'
30553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30554 (eval $ac_try) 2>&5
30556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557 (exit $ac_status); }; }; then
30558 ac_cv_func_finite_in_ieeefp_h=yes
30560 echo "$as_me: failed program was:" >&5
30561 sed 's/^/| /' conftest.$ac_ext >&5
30563 ac_cv_func_finite_in_ieeefp_h=no
30565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30567 ac_cpp='$CPP $CPPFLAGS'
30568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30573 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30574 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30576 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30578 cat >>confdefs.h <<\_ACEOF
30579 #define HAVE_FINITE_IN_IEEEFP_H 1
30588 for ac_header in stdlib.h unistd.h
30590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30592 echo "$as_me:$LINENO: checking for $ac_header" >&5
30593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30595 echo $ECHO_N "(cached) $ECHO_C" >&6
30597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30600 # Is the header compilable?
30601 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30603 cat >conftest.$ac_ext <<_ACEOF
30606 cat confdefs.h >>conftest.$ac_ext
30607 cat >>conftest.$ac_ext <<_ACEOF
30608 /* end confdefs.h. */
30609 $ac_includes_default
30610 #include <$ac_header>
30612 rm -f conftest.$ac_objext
30613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30614 (eval $ac_compile) 2>conftest.er1
30616 grep -v '^ *+' conftest.er1 >conftest.err
30618 cat conftest.err >&5
30619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30620 (exit $ac_status); } &&
30621 { ac_try='test -z "$ac_c_werror_flag"
30622 || test ! -s conftest.err'
30623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30624 (eval $ac_try) 2>&5
30626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627 (exit $ac_status); }; } &&
30628 { ac_try='test -s conftest.$ac_objext'
30629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30630 (eval $ac_try) 2>&5
30632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30633 (exit $ac_status); }; }; then
30634 ac_header_compiler=yes
30636 echo "$as_me: failed program was:" >&5
30637 sed 's/^/| /' conftest.$ac_ext >&5
30639 ac_header_compiler=no
30641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30643 echo "${ECHO_T}$ac_header_compiler" >&6
30645 # Is the header present?
30646 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30648 cat >conftest.$ac_ext <<_ACEOF
30651 cat confdefs.h >>conftest.$ac_ext
30652 cat >>conftest.$ac_ext <<_ACEOF
30653 /* end confdefs.h. */
30654 #include <$ac_header>
30656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30659 grep -v '^ *+' conftest.er1 >conftest.err
30661 cat conftest.err >&5
30662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30663 (exit $ac_status); } >/dev/null; then
30664 if test -s conftest.err; then
30665 ac_cpp_err=$ac_c_preproc_warn_flag
30666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30673 if test -z "$ac_cpp_err"; then
30674 ac_header_preproc=yes
30676 echo "$as_me: failed program was:" >&5
30677 sed 's/^/| /' conftest.$ac_ext >&5
30679 ac_header_preproc=no
30681 rm -f conftest.err conftest.$ac_ext
30682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30683 echo "${ECHO_T}$ac_header_preproc" >&6
30685 # So? What about this header?
30686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30692 ac_header_preproc=yes
30695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30709 ## ----------------------------------- ##
30710 ## Report this to llvmbugs@cs.uiuc.edu ##
30711 ## ----------------------------------- ##
30714 sed "s/^/$as_me: WARNING: /" >&2
30717 echo "$as_me:$LINENO: checking for $ac_header" >&5
30718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30720 echo $ECHO_N "(cached) $ECHO_C" >&6
30722 eval "$as_ac_Header=\$ac_header_preproc"
30724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30729 cat >>confdefs.h <<_ACEOF
30730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30738 for ac_func in getpagesize
30740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30741 echo "$as_me:$LINENO: checking for $ac_func" >&5
30742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30743 if eval "test \"\${$as_ac_var+set}\" = set"; then
30744 echo $ECHO_N "(cached) $ECHO_C" >&6
30746 cat >conftest.$ac_ext <<_ACEOF
30749 cat confdefs.h >>conftest.$ac_ext
30750 cat >>conftest.$ac_ext <<_ACEOF
30751 /* end confdefs.h. */
30752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30754 #define $ac_func innocuous_$ac_func
30756 /* System header to define __stub macros and hopefully few prototypes,
30757 which can conflict with char $ac_func (); below.
30758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30759 <limits.h> exists even on freestanding compilers. */
30762 # include <limits.h>
30764 # include <assert.h>
30769 /* Override any gcc2 internal prototype to avoid an error. */
30774 /* We use char because int might match the return type of a gcc2
30775 builtin and then its argument prototype would still apply. */
30777 /* The GNU C library defines this for functions which it implements
30778 to always fail with ENOSYS. Some functions are actually named
30779 something starting with __ and the normal name is an alias. */
30780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30783 char (*f) () = $ac_func;
30792 return f != $ac_func;
30797 rm -f conftest.$ac_objext conftest$ac_exeext
30798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30799 (eval $ac_link) 2>conftest.er1
30801 grep -v '^ *+' conftest.er1 >conftest.err
30803 cat conftest.err >&5
30804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30805 (exit $ac_status); } &&
30806 { ac_try='test -z "$ac_c_werror_flag"
30807 || test ! -s conftest.err'
30808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30809 (eval $ac_try) 2>&5
30811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812 (exit $ac_status); }; } &&
30813 { ac_try='test -s conftest$ac_exeext'
30814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30815 (eval $ac_try) 2>&5
30817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30818 (exit $ac_status); }; }; then
30819 eval "$as_ac_var=yes"
30821 echo "$as_me: failed program was:" >&5
30822 sed 's/^/| /' conftest.$ac_ext >&5
30824 eval "$as_ac_var=no"
30826 rm -f conftest.err conftest.$ac_objext \
30827 conftest$ac_exeext conftest.$ac_ext
30829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30831 if test `eval echo '${'$as_ac_var'}'` = yes; then
30832 cat >>confdefs.h <<_ACEOF
30833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30839 echo "$as_me:$LINENO: checking for working mmap" >&5
30840 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30841 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30842 echo $ECHO_N "(cached) $ECHO_C" >&6
30844 if test "$cross_compiling" = yes; then
30845 ac_cv_func_mmap_fixed_mapped=no
30847 cat >conftest.$ac_ext <<_ACEOF
30850 cat confdefs.h >>conftest.$ac_ext
30851 cat >>conftest.$ac_ext <<_ACEOF
30852 /* end confdefs.h. */
30853 $ac_includes_default
30854 /* malloc might have been renamed as rpl_malloc. */
30857 /* Thanks to Mike Haertel and Jim Avera for this test.
30858 Here is a matrix of mmap possibilities:
30859 mmap private not fixed
30860 mmap private fixed at somewhere currently unmapped
30861 mmap private fixed at somewhere already mapped
30862 mmap shared not fixed
30863 mmap shared fixed at somewhere currently unmapped
30864 mmap shared fixed at somewhere already mapped
30865 For private mappings, we should verify that changes cannot be read()
30866 back from the file, nor mmap's back from the file at a different
30867 address. (There have been systems where private was not correctly
30868 implemented like the infamous i386 svr4.0, and systems where the
30869 VM page cache was not coherent with the file system buffer cache
30870 like early versions of FreeBSD and possibly contemporary NetBSD.)
30871 For shared mappings, we should conversely verify that changes get
30872 propagated back to all the places they're supposed to be.
30874 Grep wants private fixed already mapped.
30875 The main things grep needs to know about mmap are:
30876 * does it exist and is it safe to write into the mmap'd area
30877 * how to use it (BSD variants) */
30880 #include <sys/mman.h>
30882 #if !STDC_HEADERS && !HAVE_STDLIB_H
30886 /* This mess was copied from the GNU getpagesize.h. */
30887 #if !HAVE_GETPAGESIZE
30888 /* Assume that all systems that can run configure have sys/param.h. */
30889 # if !HAVE_SYS_PARAM_H
30890 # define HAVE_SYS_PARAM_H 1
30893 # ifdef _SC_PAGESIZE
30894 # define getpagesize() sysconf(_SC_PAGESIZE)
30895 # else /* no _SC_PAGESIZE */
30896 # if HAVE_SYS_PARAM_H
30897 # include <sys/param.h>
30898 # ifdef EXEC_PAGESIZE
30899 # define getpagesize() EXEC_PAGESIZE
30900 # else /* no EXEC_PAGESIZE */
30902 # define getpagesize() NBPG * CLSIZE
30905 # endif /* no CLSIZE */
30906 # else /* no NBPG */
30908 # define getpagesize() NBPC
30909 # else /* no NBPC */
30911 # define getpagesize() PAGESIZE
30912 # endif /* PAGESIZE */
30913 # endif /* no NBPC */
30914 # endif /* no NBPG */
30915 # endif /* no EXEC_PAGESIZE */
30916 # else /* no HAVE_SYS_PARAM_H */
30917 # define getpagesize() 8192 /* punt totally */
30918 # endif /* no HAVE_SYS_PARAM_H */
30919 # endif /* no _SC_PAGESIZE */
30921 #endif /* no HAVE_GETPAGESIZE */
30926 char *data, *data2, *data3;
30930 pagesize = getpagesize ();
30932 /* First, make a file with some known garbage in it. */
30933 data = (char *) malloc (pagesize);
30936 for (i = 0; i < pagesize; ++i)
30937 *(data + i) = rand ();
30939 fd = creat ("conftest.mmap", 0600);
30942 if (write (fd, data, pagesize) != pagesize)
30946 /* Next, try to mmap the file at a fixed address which already has
30947 something else allocated at it. If we can, also make sure that
30948 we see the same garbage. */
30949 fd = open ("conftest.mmap", O_RDWR);
30952 data2 = (char *) malloc (2 * pagesize);
30955 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30956 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30957 MAP_PRIVATE | MAP_FIXED, fd, 0L))
30959 for (i = 0; i < pagesize; ++i)
30960 if (*(data + i) != *(data2 + i))
30963 /* Finally, make sure that changes to the mapped area do not
30964 percolate back to the file as seen by read(). (This is a bug on
30965 some variants of i386 svr4.0.) */
30966 for (i = 0; i < pagesize; ++i)
30967 *(data2 + i) = *(data2 + i) + 1;
30968 data3 = (char *) malloc (pagesize);
30971 if (read (fd, data3, pagesize) != pagesize)
30973 for (i = 0; i < pagesize; ++i)
30974 if (*(data + i) != *(data3 + i))
30980 rm -f conftest$ac_exeext
30981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30982 (eval $ac_link) 2>&5
30984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30987 (eval $ac_try) 2>&5
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); }; }; then
30991 ac_cv_func_mmap_fixed_mapped=yes
30993 echo "$as_me: program exited with status $ac_status" >&5
30994 echo "$as_me: failed program was:" >&5
30995 sed 's/^/| /' conftest.$ac_ext >&5
30997 ( exit $ac_status )
30998 ac_cv_func_mmap_fixed_mapped=no
31000 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31003 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31004 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
31005 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31007 cat >>confdefs.h <<\_ACEOF
31008 #define HAVE_MMAP 1
31012 rm -f conftest.mmap
31014 echo "$as_me:$LINENO: checking for mmap of files" >&5
31015 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
31016 if test "${ac_cv_func_mmap_file+set}" = set; then
31017 echo $ECHO_N "(cached) $ECHO_C" >&6
31020 ac_cpp='$CPP $CPPFLAGS'
31021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31025 if test "$cross_compiling" = yes; then
31026 ac_cv_func_mmap_file=no
31028 cat >conftest.$ac_ext <<_ACEOF
31032 cat confdefs.h >>conftest.$ac_ext
31033 cat >>conftest.$ac_ext <<_ACEOF
31034 /* end confdefs.h. */
31036 #include <sys/types.h>
31037 #include <sys/mman.h>
31045 fd = creat ("foo",0777);
31046 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31048 return (fd != (int) MAP_FAILED);
31053 rm -f conftest$ac_exeext
31054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31055 (eval $ac_link) 2>&5
31057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31060 (eval $ac_try) 2>&5
31062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063 (exit $ac_status); }; }; then
31064 ac_cv_func_mmap_file=yes
31066 echo "$as_me: program exited with status $ac_status" >&5
31067 echo "$as_me: failed program was:" >&5
31068 sed 's/^/| /' conftest.$ac_ext >&5
31070 ( exit $ac_status )
31071 ac_cv_func_mmap_file=no
31073 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31076 ac_cpp='$CPP $CPPFLAGS'
31077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31083 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31084 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
31085 if test "$ac_cv_func_mmap_file" = yes; then
31087 cat >>confdefs.h <<\_ACEOF
31088 #define HAVE_MMAP_FILE
31095 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
31096 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
31097 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31098 echo $ECHO_N "(cached) $ECHO_C" >&6
31100 if test "$llvm_cv_os_type" = "Interix" ; then
31101 ac_cv_need_dev_zero_for_mmap=yes
31103 ac_cv_need_dev_zero_for_mmap=no
31107 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31108 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
31109 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31111 cat >>confdefs.h <<\_ACEOF
31112 #define NEED_DEV_ZERO_FOR_MMAP 1
31116 echo "$as_me:$LINENO: checking for mprotect" >&5
31117 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
31118 if test "${ac_cv_func_mprotect+set}" = set; then
31119 echo $ECHO_N "(cached) $ECHO_C" >&6
31121 cat >conftest.$ac_ext <<_ACEOF
31124 cat confdefs.h >>conftest.$ac_ext
31125 cat >>conftest.$ac_ext <<_ACEOF
31126 /* end confdefs.h. */
31127 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
31128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31129 #define mprotect innocuous_mprotect
31131 /* System header to define __stub macros and hopefully few prototypes,
31132 which can conflict with char mprotect (); below.
31133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31134 <limits.h> exists even on freestanding compilers. */
31137 # include <limits.h>
31139 # include <assert.h>
31144 /* Override any gcc2 internal prototype to avoid an error. */
31149 /* We use char because int might match the return type of a gcc2
31150 builtin and then its argument prototype would still apply. */
31152 /* The GNU C library defines this for functions which it implements
31153 to always fail with ENOSYS. Some functions are actually named
31154 something starting with __ and the normal name is an alias. */
31155 #if defined (__stub_mprotect) || defined (__stub___mprotect)
31158 char (*f) () = mprotect;
31167 return f != mprotect;
31172 rm -f conftest.$ac_objext conftest$ac_exeext
31173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31174 (eval $ac_link) 2>conftest.er1
31176 grep -v '^ *+' conftest.er1 >conftest.err
31178 cat conftest.err >&5
31179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180 (exit $ac_status); } &&
31181 { ac_try='test -z "$ac_c_werror_flag"
31182 || test ! -s conftest.err'
31183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31184 (eval $ac_try) 2>&5
31186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31187 (exit $ac_status); }; } &&
31188 { ac_try='test -s conftest$ac_exeext'
31189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31190 (eval $ac_try) 2>&5
31192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193 (exit $ac_status); }; }; then
31194 ac_cv_func_mprotect=yes
31196 echo "$as_me: failed program was:" >&5
31197 sed 's/^/| /' conftest.$ac_ext >&5
31199 ac_cv_func_mprotect=no
31201 rm -f conftest.err conftest.$ac_objext \
31202 conftest$ac_exeext conftest.$ac_ext
31204 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
31205 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
31206 if test $ac_cv_func_mprotect = yes; then
31209 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
31210 echo "$as_me: error: Function mprotect() required but not found" >&2;}
31211 { (exit 1); exit 1; }; }
31215 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31217 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31218 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31220 if test "$ac_cv_func_mmap_file" = "no"
31222 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31223 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31227 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31228 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
31229 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31230 echo $ECHO_N "(cached) $ECHO_C" >&6
31232 llvm_cv_llvmgcc_sanity="no"
31233 if test -x "$LLVMGCC" ; then
31234 cp /dev/null conftest.c
31235 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
31236 if test $? -eq 0 ; then
31237 llvm_cv_llvmgcc_sanity="yes"
31242 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31243 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
31245 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31246 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31247 LLVMCC1=$llvmcc1path
31249 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31250 LLVMCC1PLUS=$llvmcc1pluspath
31252 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31253 LLVMGCCDIR=$llvmgccdir
31255 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31256 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31257 LLVMGCC_VERSION=$llvmgccversion
31259 LLVMGCC_MAJVERS=$llvmgccmajvers
31263 SHLIBEXT=$libltdl_cv_shlibext
31266 # Translate the various configuration directories and other basic
31267 # information into substitutions that will end up in Makefile.config.in
31268 # that these configured values can be used by the makefiles
31269 if test "${prefix}" == "NONE" ; then
31270 prefix="/usr/local"
31272 eval LLVM_PREFIX="${prefix}";
31273 eval LLVM_BINDIR="${prefix}/bin";
31274 eval LLVM_LIBDIR="${prefix}/lib";
31275 eval LLVM_DATADIR="${prefix}/share/llvm";
31276 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31277 eval LLVM_ETCDIR="${prefix}/etc/llvm";
31278 eval LLVM_INCLUDEDIR="${prefix}/include";
31279 eval LLVM_INFODIR="${prefix}/info";
31280 eval LLVM_MANDIR="${prefix}/man";
31281 LLVM_CONFIGTIME=`date`
31293 # Place the various directores into the config.h file as #defines so that we
31294 # can know about the installation paths within LLVM.
31296 cat >>confdefs.h <<_ACEOF
31297 #define LLVM_PREFIX "$LLVM_PREFIX"
31301 cat >>confdefs.h <<_ACEOF
31302 #define LLVM_BINDIR "$LLVM_BINDIR"
31306 cat >>confdefs.h <<_ACEOF
31307 #define LLVM_LIBDIR "$LLVM_LIBDIR"
31311 cat >>confdefs.h <<_ACEOF
31312 #define LLVM_DATADIR "$LLVM_DATADIR"
31316 cat >>confdefs.h <<_ACEOF
31317 #define LLVM_DATADIR "$LLVM_DOCSDIR"
31321 cat >>confdefs.h <<_ACEOF
31322 #define LLVM_ETCDIR "$LLVM_ETCDIR"
31326 cat >>confdefs.h <<_ACEOF
31327 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31331 cat >>confdefs.h <<_ACEOF
31332 #define LLVM_INFODIR "$LLVM_INFODIR"
31336 cat >>confdefs.h <<_ACEOF
31337 #define LLVM_MANDIR "$LLVM_MANDIR"
31341 cat >>confdefs.h <<_ACEOF
31342 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31347 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31349 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31351 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31353 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31355 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31358 ac_config_files="$ac_config_files Makefile.config"
31361 ac_config_files="$ac_config_files docs/doxygen.cfg"
31364 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
31367 ac_config_commands="$ac_config_commands setup"
31369 ac_config_commands="$ac_config_commands Makefile"
31372 ac_config_commands="$ac_config_commands Makefile.common"
31375 ac_config_commands="$ac_config_commands examples/Makefile"
31378 ac_config_commands="$ac_config_commands lib/Makefile"
31381 ac_config_commands="$ac_config_commands runtime/Makefile"
31384 ac_config_commands="$ac_config_commands test/Makefile"
31387 ac_config_commands="$ac_config_commands test/Makefile.tests"
31390 ac_config_commands="$ac_config_commands tools/Makefile"
31393 ac_config_commands="$ac_config_commands utils/Makefile"
31396 ac_config_commands="$ac_config_commands projects/Makefile"
31400 cat >confcache <<\_ACEOF
31401 # This file is a shell script that caches the results of configure
31402 # tests run on this system so they can be shared between configure
31403 # scripts and configure runs, see configure's option --config-cache.
31404 # It is not useful on other systems. If it contains results you don't
31405 # want to keep, you may remove or edit it.
31407 # config.status only pays attention to the cache file if you give it
31408 # the --recheck option to rerun configure.
31410 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31411 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31412 # following values.
31416 # The following way of writing the cache mishandles newlines in values,
31417 # but we know of no workaround that is simple, portable, and efficient.
31418 # So, don't put newlines in cache variables' values.
31419 # Ultrix sh set writes to stderr and can't be redirected directly,
31420 # and sets the high bit in the cache file unless we assign to the vars.
31423 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31425 # `set' does not quote correctly, so add quotes (double-quote
31426 # substitution turns \\\\ into \\, and sed turns \\ into \).
31429 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31432 # `set' quotes correctly as required by POSIX, so do not add quotes.
31434 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31441 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31443 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31445 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31446 if test -w $cache_file; then
31447 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31448 cat confcache >$cache_file
31450 echo "not updating unwritable cache $cache_file"
31455 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31456 # Let make expand exec_prefix.
31457 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31459 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31460 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31461 # trailing colons and then remove the whole line if VPATH becomes empty
31462 # (actually we leave an empty line to preserve line numbers).
31463 if test "x$srcdir" = x.; then
31464 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31465 s/:*\$(srcdir):*/:/;
31466 s/:*\${srcdir}:*/:/;
31468 s/^\([^=]*=[ ]*\):*/\1/;
31474 DEFS=-DHAVE_CONFIG_H
31478 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31479 # 1. Remove the extension, and $U if already installed.
31480 ac_i=`echo "$ac_i" |
31481 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31483 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31484 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31486 LIBOBJS=$ac_libobjs
31488 LTLIBOBJS=$ac_ltlibobjs
31491 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31492 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31493 Usually this means the macro was only invoked conditionally." >&5
31494 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31495 Usually this means the macro was only invoked conditionally." >&2;}
31496 { (exit 1); exit 1; }; }
31498 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31499 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31500 Usually this means the macro was only invoked conditionally." >&5
31501 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31502 Usually this means the macro was only invoked conditionally." >&2;}
31503 { (exit 1); exit 1; }; }
31506 : ${CONFIG_STATUS=./config.status}
31507 ac_clean_files_save=$ac_clean_files
31508 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31509 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31510 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31511 cat >$CONFIG_STATUS <<_ACEOF
31513 # Generated by $as_me.
31514 # Run this file to recreate the current configuration.
31515 # Compiler output produced by configure, useful for debugging
31516 # configure, is in config.log if it exists.
31519 ac_cs_recheck=false
31521 SHELL=\${CONFIG_SHELL-$SHELL}
31524 cat >>$CONFIG_STATUS <<\_ACEOF
31525 ## --------------------- ##
31526 ## M4sh Initialization. ##
31527 ## --------------------- ##
31529 # Be Bourne compatible
31530 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31533 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31534 # is contrary to our usage. Disable this feature.
31535 alias -g '${1+"$@"}'='"$@"'
31536 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31539 DUALCASE=1; export DUALCASE # for MKS sh
31541 # Support unset when possible.
31542 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31549 # Work around bugs in pre-3.0 UWIN ksh.
31550 $as_unset ENV MAIL MAILPATH
31557 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31558 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31559 LC_TELEPHONE LC_TIME
31561 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31562 eval $as_var=C; export $as_var
31568 # Required to use basename.
31569 if expr a : '\(a\)' >/dev/null 2>&1; then
31575 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31576 as_basename=basename
31582 # Name of the executable.
31583 as_me=`$as_basename "$0" ||
31584 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31585 X"$0" : 'X\(//\)$' \| \
31586 X"$0" : 'X\(/\)$' \| \
31587 . : '\(.\)' 2>/dev/null ||
31589 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31590 /^X\/\(\/\/\)$/{ s//\1/; q; }
31591 /^X\/\(\/\).*/{ s//\1/; q; }
31595 # PATH needs CR, and LINENO needs CR and PATH.
31596 # Avoid depending upon Character Ranges.
31597 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31598 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31599 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31600 as_cr_digits='0123456789'
31601 as_cr_alnum=$as_cr_Letters$as_cr_digits
31603 # The user is always right.
31604 if test "${PATH_SEPARATOR+set}" != set; then
31605 echo "#! /bin/sh" >conf$$.sh
31606 echo "exit 0" >>conf$$.sh
31608 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31617 as_lineno_1=$LINENO
31618 as_lineno_2=$LINENO
31619 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31620 test "x$as_lineno_1" != "x$as_lineno_2" &&
31621 test "x$as_lineno_3" = "x$as_lineno_2" || {
31622 # Find who we are. Look in the path if we contain no path at all
31625 *[\\/]* ) as_myself=$0 ;;
31626 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31627 for as_dir in $PATH
31630 test -z "$as_dir" && as_dir=.
31631 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31636 # We did not find ourselves, most probably we were run as `sh COMMAND'
31637 # in which case we are not to be found in the path.
31638 if test "x$as_myself" = x; then
31641 if test ! -f "$as_myself"; then
31642 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31643 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31644 { (exit 1); exit 1; }; }
31646 case $CONFIG_SHELL in
31648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31649 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31652 test -z "$as_dir" && as_dir=.
31653 for as_base in sh bash ksh sh5; do
31656 if ("$as_dir/$as_base" -c '
31657 as_lineno_1=$LINENO
31658 as_lineno_2=$LINENO
31659 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31660 test "x$as_lineno_1" != "x$as_lineno_2" &&
31661 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
31662 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31663 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31664 CONFIG_SHELL=$as_dir/$as_base
31665 export CONFIG_SHELL
31666 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31674 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31675 # uniformly replaced by the line number. The first 'sed' inserts a
31676 # line-number line before each line; the second 'sed' does the real
31677 # work. The second script uses 'N' to pair each line-number line
31678 # with the numbered line, and appends trailing '-' during
31679 # substitution so that $LINENO is not a special case at line end.
31680 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31681 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31682 sed '=' <$as_myself |
31687 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31690 s,^['$as_cr_digits']*\n,,
31691 ' >$as_me.lineno &&
31692 chmod +x $as_me.lineno ||
31693 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31694 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31695 { (exit 1); exit 1; }; }
31697 # Don't try to exec as it changes $[0], causing all sort of problems
31698 # (the dirname of $[0] is not the place where we might find the
31699 # original and so on. Autoconf is especially sensible to this).
31701 # Exit status is that of the last command.
31706 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31707 *c*,-n*) ECHO_N= ECHO_C='
31709 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31710 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31713 if expr a : '\(a\)' >/dev/null 2>&1; then
31719 rm -f conf$$ conf$$.exe conf$$.file
31721 if ln -s conf$$.file conf$$ 2>/dev/null; then
31722 # We could just check for DJGPP; but this test a) works b) is more generic
31723 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31724 if test -f conf$$.exe; then
31725 # Don't use ln at all; we don't have any links
31730 elif ln conf$$.file conf$$ 2>/dev/null; then
31735 rm -f conf$$ conf$$.exe conf$$.file
31737 if mkdir -p . 2>/dev/null; then
31740 test -d ./-p && rmdir ./-p
31744 as_executable_p="test -f"
31746 # Sed expression to map a string onto a valid CPP name.
31747 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31749 # Sed expression to map a string onto a valid variable name.
31750 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31754 # We need space, tab and new line, in precisely that order.
31764 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31765 # report actual input values of CONFIG_FILES etc. instead of their
31766 # values after options handling. Logging --version etc. is OK.
31770 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31771 ## Running $as_me. ##
31776 This file was extended by llvm $as_me 1.8cvs, which was
31777 generated by GNU Autoconf 2.59. Invocation command line was
31779 CONFIG_FILES = $CONFIG_FILES
31780 CONFIG_HEADERS = $CONFIG_HEADERS
31781 CONFIG_LINKS = $CONFIG_LINKS
31782 CONFIG_COMMANDS = $CONFIG_COMMANDS
31786 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31790 # Files that config.status was made for.
31791 if test -n "$ac_config_files"; then
31792 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31795 if test -n "$ac_config_headers"; then
31796 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31799 if test -n "$ac_config_links"; then
31800 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31803 if test -n "$ac_config_commands"; then
31804 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31807 cat >>$CONFIG_STATUS <<\_ACEOF
31810 \`$as_me' instantiates files from templates according to the
31811 current configuration.
31813 Usage: $0 [OPTIONS] [FILE]...
31815 -h, --help print this help, then exit
31816 -V, --version print version number, then exit
31817 -q, --quiet do not print progress messages
31818 -d, --debug don't remove temporary files
31819 --recheck update $as_me by reconfiguring in the same conditions
31820 --file=FILE[:TEMPLATE]
31821 instantiate the configuration file FILE
31822 --header=FILE[:TEMPLATE]
31823 instantiate the configuration header FILE
31825 Configuration files:
31828 Configuration headers:
31831 Configuration commands:
31834 Report bugs to <bug-autoconf@gnu.org>."
31837 cat >>$CONFIG_STATUS <<_ACEOF
31839 llvm config.status 1.8cvs
31840 configured by $0, generated by GNU Autoconf 2.59,
31841 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31843 Copyright (C) 2003 Free Software Foundation, Inc.
31844 This config.status script is free software; the Free Software Foundation
31845 gives unlimited permission to copy, distribute and modify it."
31850 cat >>$CONFIG_STATUS <<\_ACEOF
31851 # If no file are specified by the user, then we need to provide default
31852 # value. By we need to know if files were specified by the user.
31858 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31859 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31867 *) # This is not an option, so the user has probably given explicit
31870 ac_need_defaults=false;;
31874 # Handling of the options.
31876 cat >>$CONFIG_STATUS <<\_ACEOF
31877 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31879 --version | --vers* | -V )
31880 echo "$ac_cs_version"; exit 0 ;;
31882 # Conflict between --help and --header
31883 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31884 Try \`$0 --help' for more information." >&5
31885 echo "$as_me: error: ambiguous option: $1
31886 Try \`$0 --help' for more information." >&2;}
31887 { (exit 1); exit 1; }; };;
31888 --help | --hel | -h )
31889 echo "$ac_cs_usage"; exit 0 ;;
31890 --debug | --d* | -d )
31892 --file | --fil | --fi | --f )
31894 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31895 ac_need_defaults=false;;
31896 --header | --heade | --head | --hea )
31898 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31899 ac_need_defaults=false;;
31900 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31901 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31904 # This is an error.
31905 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31906 Try \`$0 --help' for more information." >&5
31907 echo "$as_me: error: unrecognized option: $1
31908 Try \`$0 --help' for more information." >&2;}
31909 { (exit 1); exit 1; }; } ;;
31911 *) ac_config_targets="$ac_config_targets $1" ;;
31917 ac_configure_extra_args=
31919 if $ac_cs_silent; then
31921 ac_configure_extra_args="$ac_configure_extra_args --silent"
31925 cat >>$CONFIG_STATUS <<_ACEOF
31926 if \$ac_cs_recheck; then
31927 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31928 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31933 cat >>$CONFIG_STATUS <<_ACEOF
31935 # INIT-COMMANDS section.
31938 llvm_src="${srcdir}"
31944 cat >>$CONFIG_STATUS <<\_ACEOF
31945 for ac_config_target in $ac_config_targets
31947 case "$ac_config_target" in
31948 # Handling of arguments.
31949 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31950 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31951 "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
31952 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31953 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31954 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31955 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31956 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31957 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31958 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31959 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31960 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31961 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31962 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31963 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31964 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31965 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31966 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31967 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31968 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31969 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31970 { (exit 1); exit 1; }; };;
31974 # If the user did not use the arguments to specify the items to instantiate,
31975 # then the envvar interface is used. Set only those that are not.
31976 # We use the long form for the default assignment because of an extremely
31977 # bizarre bug on SunOS 4.1.3.
31978 if $ac_need_defaults; then
31979 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31980 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31981 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31984 # Have a temporary directory for convenience. Make it in the build tree
31985 # simply because there is no reason to put it here, and in addition,
31986 # creating and moving files from /tmp can sometimes cause problems.
31987 # Create a temporary directory, and hook for its removal unless debugging.
31990 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31991 trap '{ (exit 1); exit 1; }' 1 2 13 15
31994 # Create a (secure) tmp directory for tmp files.
31997 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31998 test -n "$tmp" && test -d "$tmp"
32001 tmp=./confstat$$-$RANDOM
32002 (umask 077 && mkdir $tmp)
32005 echo "$me: cannot create a temporary directory in ." >&2
32006 { (exit 1); exit 1; }
32011 cat >>$CONFIG_STATUS <<_ACEOF
32014 # CONFIG_FILES section.
32017 # No need to generate the scripts if there are no CONFIG_FILES.
32018 # This happens for instance when ./config.status config.h
32019 if test -n "\$CONFIG_FILES"; then
32020 # Protect against being on the right side of a sed subst in config.status.
32021 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
32022 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
32023 s,@SHELL@,$SHELL,;t t
32024 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
32025 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
32026 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
32027 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
32028 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
32029 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
32030 s,@exec_prefix@,$exec_prefix,;t t
32031 s,@prefix@,$prefix,;t t
32032 s,@program_transform_name@,$program_transform_name,;t t
32033 s,@bindir@,$bindir,;t t
32034 s,@sbindir@,$sbindir,;t t
32035 s,@libexecdir@,$libexecdir,;t t
32036 s,@datadir@,$datadir,;t t
32037 s,@sysconfdir@,$sysconfdir,;t t
32038 s,@sharedstatedir@,$sharedstatedir,;t t
32039 s,@localstatedir@,$localstatedir,;t t
32040 s,@libdir@,$libdir,;t t
32041 s,@includedir@,$includedir,;t t
32042 s,@oldincludedir@,$oldincludedir,;t t
32043 s,@infodir@,$infodir,;t t
32044 s,@mandir@,$mandir,;t t
32045 s,@build_alias@,$build_alias,;t t
32046 s,@host_alias@,$host_alias,;t t
32047 s,@target_alias@,$target_alias,;t t
32048 s,@DEFS@,$DEFS,;t t
32049 s,@ECHO_C@,$ECHO_C,;t t
32050 s,@ECHO_N@,$ECHO_N,;t t
32051 s,@ECHO_T@,$ECHO_T,;t t
32052 s,@LIBS@,$LIBS,;t t
32053 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
32054 s,@subdirs@,$subdirs,;t t
32055 s,@build@,$build,;t t
32056 s,@build_cpu@,$build_cpu,;t t
32057 s,@build_vendor@,$build_vendor,;t t
32058 s,@build_os@,$build_os,;t t
32059 s,@host@,$host,;t t
32060 s,@host_cpu@,$host_cpu,;t t
32061 s,@host_vendor@,$host_vendor,;t t
32062 s,@host_os@,$host_os,;t t
32063 s,@target@,$target,;t t
32064 s,@target_cpu@,$target_cpu,;t t
32065 s,@target_vendor@,$target_vendor,;t t
32066 s,@target_os@,$target_os,;t t
32068 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
32069 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
32070 s,@ARCH@,$ARCH,;t t
32071 s,@ENDIAN@,$ENDIAN,;t t
32073 s,@CFLAGS@,$CFLAGS,;t t
32074 s,@LDFLAGS@,$LDFLAGS,;t t
32075 s,@CPPFLAGS@,$CPPFLAGS,;t t
32076 s,@ac_ct_CC@,$ac_ct_CC,;t t
32077 s,@EXEEXT@,$EXEEXT,;t t
32078 s,@OBJEXT@,$OBJEXT,;t t
32079 s,@LLVM_CROSS_COMPILING@,$LLVM_CROSS_COMPILING,;t t
32080 s,@BUILD_CC@,$BUILD_CC,;t t
32081 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
32082 s,@CVSBUILD@,$CVSBUILD,;t t
32083 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
32084 s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
32085 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
32087 s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
32088 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
32089 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
32090 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
32091 s,@EXTRA_OPTIONS@,$EXTRA_OPTIONS,;t t
32094 s,@CXXFLAGS@,$CXXFLAGS,;t t
32095 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
32097 s,@LEXLIB@,$LEXLIB,;t t
32098 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
32099 s,@FLEX@,$FLEX,;t t
32100 s,@YACC@,$YACC,;t t
32101 s,@BISON@,$BISON,;t t
32102 s,@ifGNUmake@,$ifGNUmake,;t t
32103 s,@LN_S@,$LN_S,;t t
32106 s,@DATE@,$DATE,;t t
32107 s,@FIND@,$FIND,;t t
32108 s,@GREP@,$GREP,;t t
32109 s,@MKDIR@,$MKDIR,;t t
32111 s,@RANLIB@,$RANLIB,;t t
32112 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
32116 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
32119 s,@DOTTY@,$DOTTY,;t t
32120 s,@PERL@,$PERL,;t t
32121 s,@HAVE_PERL@,$HAVE_PERL,;t t
32122 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
32123 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
32124 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
32125 s,@BZIP2@,$BZIP2,;t t
32126 s,@DOXYGEN@,$DOXYGEN,;t t
32127 s,@ETAGS@,$ETAGS,;t t
32128 s,@GROFF@,$GROFF,;t t
32129 s,@GZIP@,$GZIP,;t t
32130 s,@POD2HTML@,$POD2HTML,;t t
32131 s,@POD2MAN@,$POD2MAN,;t t
32132 s,@RUNTEST@,$RUNTEST,;t t
32133 s,@TCLSH@,$TCLSH,;t t
32135 s,@EGREP@,$EGREP,;t t
32136 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
32137 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
32138 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
32139 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
32140 s,@LIBADD_DL@,$LIBADD_DL,;t t
32141 s,@ECHO@,$ECHO,;t t
32143 s,@ac_ct_AR@,$ac_ct_AR,;t t
32144 s,@STRIP@,$STRIP,;t t
32145 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
32146 s,@CXXCPP@,$CXXCPP,;t t
32148 s,@FFLAGS@,$FFLAGS,;t t
32149 s,@ac_ct_F77@,$ac_ct_F77,;t t
32150 s,@LIBTOOL@,$LIBTOOL,;t t
32151 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
32152 s,@LLVMGCC@,$LLVMGCC,;t t
32153 s,@LLVMGXX@,$LLVMGXX,;t t
32154 s,@ALLOCA@,$ALLOCA,;t t
32155 s,@MMAP_FILE@,$MMAP_FILE,;t t
32156 s,@LLVMCC1@,$LLVMCC1,;t t
32157 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
32158 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
32159 s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
32160 s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
32161 s,@SHLIBEXT@,$SHLIBEXT,;t t
32162 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
32163 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
32164 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
32165 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
32166 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
32167 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
32168 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
32169 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
32170 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
32171 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
32172 s,@LIBOBJS@,$LIBOBJS,;t t
32173 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
32178 cat >>$CONFIG_STATUS <<\_ACEOF
32179 # Split the substitutions into bite-sized pieces for seds with
32180 # small command number limits, like on Digital OSF/1 and HP-UX.
32181 ac_max_sed_lines=48
32182 ac_sed_frag=1 # Number of current file.
32183 ac_beg=1 # First line for current file.
32184 ac_end=$ac_max_sed_lines # Line after last line for current file.
32187 while $ac_more_lines; do
32188 if test $ac_beg -gt 1; then
32189 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32191 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32193 if test ! -s $tmp/subs.frag; then
32194 ac_more_lines=false
32196 # The purpose of the label and of the branching condition is to
32197 # speed up the sed processing (if there are no `@' at all, there
32198 # is no need to browse any of the substitutions).
32199 # These are the two extra sed commands mentioned above.
32201 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
32202 if test -z "$ac_sed_cmds"; then
32203 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
32205 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
32207 ac_sed_frag=`expr $ac_sed_frag + 1`
32209 ac_end=`expr $ac_end + $ac_max_sed_lines`
32212 if test -z "$ac_sed_cmds"; then
32215 fi # test -n "$CONFIG_FILES"
32218 cat >>$CONFIG_STATUS <<\_ACEOF
32219 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
32220 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32222 - | *:- | *:-:* ) # input from stdin
32224 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32225 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32226 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32227 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32228 * ) ac_file_in=$ac_file.in ;;
32231 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32232 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32233 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32234 X"$ac_file" : 'X\(//\)[^/]' \| \
32235 X"$ac_file" : 'X\(//\)$' \| \
32236 X"$ac_file" : 'X\(/\)' \| \
32237 . : '\(.\)' 2>/dev/null ||
32239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32240 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32241 /^X\(\/\/\)$/{ s//\1/; q; }
32242 /^X\(\/\).*/{ s//\1/; q; }
32244 { if $as_mkdir_p; then
32249 while test ! -d "$as_dir"; do
32250 as_dirs="$as_dir $as_dirs"
32251 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32252 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32253 X"$as_dir" : 'X\(//\)[^/]' \| \
32254 X"$as_dir" : 'X\(//\)$' \| \
32255 X"$as_dir" : 'X\(/\)' \| \
32256 . : '\(.\)' 2>/dev/null ||
32258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32259 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32260 /^X\(\/\/\)$/{ s//\1/; q; }
32261 /^X\(\/\).*/{ s//\1/; q; }
32264 test ! -n "$as_dirs" || mkdir $as_dirs
32265 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32266 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32267 { (exit 1); exit 1; }; }; }
32271 if test "$ac_dir" != .; then
32272 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32273 # A "../" for each directory in $ac_dir_suffix.
32274 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32276 ac_dir_suffix= ac_top_builddir=
32280 .) # No --srcdir option. We are building in place.
32282 if test -z "$ac_top_builddir"; then
32285 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32287 [\\/]* | ?:[\\/]* ) # Absolute path.
32288 ac_srcdir=$srcdir$ac_dir_suffix;
32289 ac_top_srcdir=$srcdir ;;
32290 *) # Relative path.
32291 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32292 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32295 # Do not use `cd foo && pwd` to compute absolute paths, because
32296 # the directories may not exist.
32298 .) ac_abs_builddir="$ac_dir";;
32301 .) ac_abs_builddir=`pwd`;;
32302 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32303 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32306 case $ac_abs_builddir in
32307 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32309 case ${ac_top_builddir}. in
32310 .) ac_abs_top_builddir=$ac_abs_builddir;;
32311 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32312 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32315 case $ac_abs_builddir in
32316 .) ac_abs_srcdir=$ac_srcdir;;
32319 .) ac_abs_srcdir=$ac_abs_builddir;;
32320 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32321 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32324 case $ac_abs_builddir in
32325 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32327 case $ac_top_srcdir in
32328 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32329 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32330 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32336 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32337 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32340 if test x"$ac_file" != x-; then
32341 { echo "$as_me:$LINENO: creating $ac_file" >&5
32342 echo "$as_me: creating $ac_file" >&6;}
32345 # Let's still pretend it is `configure' which instantiates (i.e., don't
32346 # use $as_me), people would be surprised to read:
32347 # /* config.h. Generated by config.status. */
32348 if test x"$ac_file" = x-; then
32351 configure_input="$ac_file. "
32353 configure_input=$configure_input"Generated from `echo $ac_file_in |
32354 sed 's,.*/,,'` by configure."
32356 # First look for the input files in the build tree, otherwise in the
32358 ac_file_inputs=`IFS=:
32359 for f in $ac_file_in; do
32361 -) echo $tmp/stdin ;;
32363 # Absolute (can't be DOS-style, as IFS=:)
32364 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32365 echo "$as_me: error: cannot find input file: $f" >&2;}
32366 { (exit 1); exit 1; }; }
32369 if test -f "$f"; then
32372 elif test -f "$srcdir/$f"; then
32377 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32378 echo "$as_me: error: cannot find input file: $f" >&2;}
32379 { (exit 1); exit 1; }; }
32382 done` || { (exit 1); exit 1; }
32384 cat >>$CONFIG_STATUS <<_ACEOF
32388 cat >>$CONFIG_STATUS <<\_ACEOF
32390 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32391 s,@configure_input@,$configure_input,;t t
32392 s,@srcdir@,$ac_srcdir,;t t
32393 s,@abs_srcdir@,$ac_abs_srcdir,;t t
32394 s,@top_srcdir@,$ac_top_srcdir,;t t
32395 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32396 s,@builddir@,$ac_builddir,;t t
32397 s,@abs_builddir@,$ac_abs_builddir,;t t
32398 s,@top_builddir@,$ac_top_builddir,;t t
32399 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32400 s,@INSTALL@,$ac_INSTALL,;t t
32401 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32403 if test x"$ac_file" != x-; then
32404 mv $tmp/out $ac_file
32412 cat >>$CONFIG_STATUS <<\_ACEOF
32415 # CONFIG_HEADER section.
32418 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32419 # NAME is the cpp macro being defined and VALUE is the value it is being given.
32421 # ac_d sets the value in "#define NAME VALUE" lines.
32422 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
32423 ac_dB='[ ].*$,\1#\2'
32426 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32427 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
32428 ac_uB='$,\1#\2define\3'
32432 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32433 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32435 - | *:- | *:-:* ) # input from stdin
32437 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32438 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32439 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32440 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32441 * ) ac_file_in=$ac_file.in ;;
32444 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32445 echo "$as_me: creating $ac_file" >&6;}
32447 # First look for the input files in the build tree, otherwise in the
32449 ac_file_inputs=`IFS=:
32450 for f in $ac_file_in; do
32452 -) echo $tmp/stdin ;;
32454 # Absolute (can't be DOS-style, as IFS=:)
32455 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32456 echo "$as_me: error: cannot find input file: $f" >&2;}
32457 { (exit 1); exit 1; }; }
32458 # Do quote $f, to prevent DOS paths from being IFS'd.
32461 if test -f "$f"; then
32464 elif test -f "$srcdir/$f"; then
32469 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32470 echo "$as_me: error: cannot find input file: $f" >&2;}
32471 { (exit 1); exit 1; }; }
32474 done` || { (exit 1); exit 1; }
32475 # Remove the trailing spaces.
32476 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
32480 # Transform confdefs.h into two sed scripts, `conftest.defines' and
32481 # `conftest.undefs', that substitutes the proper values into
32482 # config.h.in to produce config.h. The first handles `#define'
32483 # templates, and the second `#undef' templates.
32484 # And first: Protect against being on the right side of a sed subst in
32485 # config.status. Protect against being in an unquoted here document
32486 # in config.status.
32487 rm -f conftest.defines conftest.undefs
32488 # Using a here document instead of a string reduces the quoting nightmare.
32489 # Putting comments in sed scripts is not portable.
32491 # `end' is used to avoid that the second main sed command (meant for
32492 # 0-ary CPP macros) applies to n-ary macro definitions.
32493 # See the Autoconf documentation for `clear'.
32494 cat >confdef2sed.sed <<\_ACEOF
32499 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32501 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32504 # If some macros were called several times there might be several times
32505 # the same #defines, which is useless. Nevertheless, we may not want to
32506 # sort them, since we want the *last* AC-DEFINE to be honored.
32507 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32508 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32509 rm -f confdef2sed.sed
32511 # This sed command replaces #undef with comments. This is necessary, for
32512 # example, in the case of _POSIX_SOURCE, which is predefined and required
32513 # on some systems where configure will not decide to define it.
32514 cat >>conftest.undefs <<\_ACEOF
32515 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32518 # Break up conftest.defines because some shells have a limit on the size
32519 # of here documents, and old seds have small limits too (100 cmds).
32520 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32521 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32522 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32523 echo ' :' >>$CONFIG_STATUS
32524 rm -f conftest.tail
32525 while grep . conftest.defines >/dev/null
32527 # Write a limited-size here document to $tmp/defines.sed.
32528 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32529 # Speed up: don't consider the non `#define' lines.
32530 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
32531 # Work around the forget-to-reset-the-flag bug.
32532 echo 't clr' >>$CONFIG_STATUS
32533 echo ': clr' >>$CONFIG_STATUS
32534 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32536 sed -f $tmp/defines.sed $tmp/in >$tmp/out
32538 mv $tmp/out $tmp/in
32540 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32541 rm -f conftest.defines
32542 mv conftest.tail conftest.defines
32544 rm -f conftest.defines
32545 echo ' fi # grep' >>$CONFIG_STATUS
32546 echo >>$CONFIG_STATUS
32548 # Break up conftest.undefs because some shells have a limit on the size
32549 # of here documents, and old seds have small limits too (100 cmds).
32550 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
32551 rm -f conftest.tail
32552 while grep . conftest.undefs >/dev/null
32554 # Write a limited-size here document to $tmp/undefs.sed.
32555 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32556 # Speed up: don't consider the non `#undef'
32557 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
32558 # Work around the forget-to-reset-the-flag bug.
32559 echo 't clr' >>$CONFIG_STATUS
32560 echo ': clr' >>$CONFIG_STATUS
32561 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32563 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32565 mv $tmp/out $tmp/in
32567 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32568 rm -f conftest.undefs
32569 mv conftest.tail conftest.undefs
32571 rm -f conftest.undefs
32573 cat >>$CONFIG_STATUS <<\_ACEOF
32574 # Let's still pretend it is `configure' which instantiates (i.e., don't
32575 # use $as_me), people would be surprised to read:
32576 # /* config.h. Generated by config.status. */
32577 if test x"$ac_file" = x-; then
32578 echo "/* Generated by configure. */" >$tmp/config.h
32580 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32582 cat $tmp/in >>$tmp/config.h
32584 if test x"$ac_file" != x-; then
32585 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32586 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32587 echo "$as_me: $ac_file is unchanged" >&6;}
32589 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32590 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32591 X"$ac_file" : 'X\(//\)[^/]' \| \
32592 X"$ac_file" : 'X\(//\)$' \| \
32593 X"$ac_file" : 'X\(/\)' \| \
32594 . : '\(.\)' 2>/dev/null ||
32596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32597 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32598 /^X\(\/\/\)$/{ s//\1/; q; }
32599 /^X\(\/\).*/{ s//\1/; q; }
32601 { if $as_mkdir_p; then
32606 while test ! -d "$as_dir"; do
32607 as_dirs="$as_dir $as_dirs"
32608 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32609 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32610 X"$as_dir" : 'X\(//\)[^/]' \| \
32611 X"$as_dir" : 'X\(//\)$' \| \
32612 X"$as_dir" : 'X\(/\)' \| \
32613 . : '\(.\)' 2>/dev/null ||
32615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32616 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32617 /^X\(\/\/\)$/{ s//\1/; q; }
32618 /^X\(\/\).*/{ s//\1/; q; }
32621 test ! -n "$as_dirs" || mkdir $as_dirs
32622 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32623 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32624 { (exit 1); exit 1; }; }; }
32627 mv $tmp/config.h $ac_file
32631 rm -f $tmp/config.h
32635 cat >>$CONFIG_STATUS <<\_ACEOF
32638 # CONFIG_COMMANDS section.
32640 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32641 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32642 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32643 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32644 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32645 X"$ac_dest" : 'X\(//\)[^/]' \| \
32646 X"$ac_dest" : 'X\(//\)$' \| \
32647 X"$ac_dest" : 'X\(/\)' \| \
32648 . : '\(.\)' 2>/dev/null ||
32650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32651 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32652 /^X\(\/\/\)$/{ s//\1/; q; }
32653 /^X\(\/\).*/{ s//\1/; q; }
32655 { if $as_mkdir_p; then
32660 while test ! -d "$as_dir"; do
32661 as_dirs="$as_dir $as_dirs"
32662 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32663 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32664 X"$as_dir" : 'X\(//\)[^/]' \| \
32665 X"$as_dir" : 'X\(//\)$' \| \
32666 X"$as_dir" : 'X\(/\)' \| \
32667 . : '\(.\)' 2>/dev/null ||
32669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32670 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32671 /^X\(\/\/\)$/{ s//\1/; q; }
32672 /^X\(\/\).*/{ s//\1/; q; }
32675 test ! -n "$as_dirs" || mkdir $as_dirs
32676 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32677 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32678 { (exit 1); exit 1; }; }; }
32682 if test "$ac_dir" != .; then
32683 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32684 # A "../" for each directory in $ac_dir_suffix.
32685 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32687 ac_dir_suffix= ac_top_builddir=
32691 .) # No --srcdir option. We are building in place.
32693 if test -z "$ac_top_builddir"; then
32696 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32698 [\\/]* | ?:[\\/]* ) # Absolute path.
32699 ac_srcdir=$srcdir$ac_dir_suffix;
32700 ac_top_srcdir=$srcdir ;;
32701 *) # Relative path.
32702 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32703 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32706 # Do not use `cd foo && pwd` to compute absolute paths, because
32707 # the directories may not exist.
32709 .) ac_abs_builddir="$ac_dir";;
32712 .) ac_abs_builddir=`pwd`;;
32713 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32714 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32717 case $ac_abs_builddir in
32718 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32720 case ${ac_top_builddir}. in
32721 .) ac_abs_top_builddir=$ac_abs_builddir;;
32722 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32723 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32726 case $ac_abs_builddir in
32727 .) ac_abs_srcdir=$ac_srcdir;;
32730 .) ac_abs_srcdir=$ac_abs_builddir;;
32731 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32732 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32735 case $ac_abs_builddir in
32736 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32738 case $ac_top_srcdir in
32739 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32740 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32741 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32746 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32747 echo "$as_me: executing $ac_dest commands" >&6;}
32749 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32750 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32751 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32752 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32753 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32754 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32755 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32756 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32757 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32758 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32759 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32760 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32761 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32762 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32763 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32764 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32765 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32766 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32767 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32768 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32773 cat >>$CONFIG_STATUS <<\_ACEOF
32775 { (exit 0); exit 0; }
32777 chmod +x $CONFIG_STATUS
32778 ac_clean_files=$ac_clean_files_save
32781 # configure is writing to config.log, and then calls config.status.
32782 # config.status does its own redirection, appending to config.log.
32783 # Unfortunately, on DOS this fails, as config.log is still kept open
32784 # by configure, so config.status won't be able to write to it; its
32785 # output is simply discarded. So we exec the FD to /dev/null,
32786 # effectively closing config.log, so it can be properly (re)opened and
32787 # appended to by config.status. When coming back to configure, we
32788 # need to make the FD available again.
32789 if test "$no_create" != yes; then
32791 ac_config_status_args=
32792 test "$silent" = yes &&
32793 ac_config_status_args="$ac_config_status_args --quiet"
32795 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32797 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32798 # would make configure fail if this is the last instruction.
32799 $ac_cs_success || { (exit 1); exit 1; }
32803 # CONFIG_SUBDIRS section.
32805 if test "$no_recursion" != yes; then
32807 # Remove --cache-file and --srcdir arguments so they do not pile up.
32808 ac_sub_configure_args=
32810 for ac_arg in $ac_configure_args; do
32811 if test -n "$ac_prev"; then
32816 -cache-file | --cache-file | --cache-fil | --cache-fi \
32817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32818 ac_prev=cache_file ;;
32819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32823 --config-cache | -C)
32825 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32827 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32829 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32831 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32833 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32837 # Always prepend --prefix to ensure using the same prefix
32838 # in subdir configurations.
32839 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32842 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32844 # Do not complain, so a configure script can configure whichever
32845 # parts of a large source tree are present.
32846 test -d $srcdir/$ac_dir || continue
32848 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32849 echo "$as_me: configuring in $ac_dir" >&6;}
32850 { if $as_mkdir_p; then
32855 while test ! -d "$as_dir"; do
32856 as_dirs="$as_dir $as_dirs"
32857 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32858 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32859 X"$as_dir" : 'X\(//\)[^/]' \| \
32860 X"$as_dir" : 'X\(//\)$' \| \
32861 X"$as_dir" : 'X\(/\)' \| \
32862 . : '\(.\)' 2>/dev/null ||
32864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32866 /^X\(\/\/\)$/{ s//\1/; q; }
32867 /^X\(\/\).*/{ s//\1/; q; }
32870 test ! -n "$as_dirs" || mkdir $as_dirs
32871 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32872 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32873 { (exit 1); exit 1; }; }; }
32877 if test "$ac_dir" != .; then
32878 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32879 # A "../" for each directory in $ac_dir_suffix.
32880 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32882 ac_dir_suffix= ac_top_builddir=
32886 .) # No --srcdir option. We are building in place.
32888 if test -z "$ac_top_builddir"; then
32891 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32893 [\\/]* | ?:[\\/]* ) # Absolute path.
32894 ac_srcdir=$srcdir$ac_dir_suffix;
32895 ac_top_srcdir=$srcdir ;;
32896 *) # Relative path.
32897 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32898 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32901 # Do not use `cd foo && pwd` to compute absolute paths, because
32902 # the directories may not exist.
32904 .) ac_abs_builddir="$ac_dir";;
32907 .) ac_abs_builddir=`pwd`;;
32908 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32909 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32912 case $ac_abs_builddir in
32913 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32915 case ${ac_top_builddir}. in
32916 .) ac_abs_top_builddir=$ac_abs_builddir;;
32917 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32918 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32921 case $ac_abs_builddir in
32922 .) ac_abs_srcdir=$ac_srcdir;;
32925 .) ac_abs_srcdir=$ac_abs_builddir;;
32926 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32927 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32930 case $ac_abs_builddir in
32931 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32933 case $ac_top_srcdir in
32934 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32935 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32936 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32943 # Check for guested configure; otherwise get Cygnus style configure.
32944 if test -f $ac_srcdir/configure.gnu; then
32945 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32946 elif test -f $ac_srcdir/configure; then
32947 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32948 elif test -f $ac_srcdir/configure.in; then
32949 ac_sub_configure=$ac_configure
32951 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32952 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32956 # The recursion is here.
32957 if test -n "$ac_sub_configure"; then
32958 # Make the cache file name correct relative to the subdirectory.
32959 case $cache_file in
32960 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32961 *) # Relative path.
32962 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32965 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32966 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32967 # The eval makes quoting arguments work.
32968 eval $ac_sub_configure $ac_sub_configure_args \
32969 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32970 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32971 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32972 { (exit 1); exit 1; }; }
32980 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32981 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32982 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32983 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32984 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32985 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32986 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32987 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32988 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32989 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32990 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}