2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.8cvs.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398 tagnames=${tagnames+${tagnames},}CXX
400 tagnames=${tagnames+${tagnames},}F77
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
418 SHELL=${CONFIG_SHELL-/bin/sh}
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete. It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
425 # Identity of this package.
427 PACKAGE_TARNAME='-llvm-'
428 PACKAGE_VERSION='1.8cvs'
429 PACKAGE_STRING='llvm 1.8cvs'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
441 ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
442 # Factoring default headers for most tests.
443 ac_includes_default="\
446 # include <sys/types.h>
449 # include <sys/stat.h>
460 # if !STDC_HEADERS && HAVE_MEMORY_H
466 # include <strings.h>
469 # include <inttypes.h>
479 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
482 # Initialize some variables set by options.
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
494 program_transform_name=s,x,x,
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
532 # Accept the important Cygnus configure options, so we can diagnose typos.
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
554 cache_file=config.cache ;;
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
560 datadir=$ac_optarg ;;
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "enable_$ac_feature='$ac_optarg'" ;;
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
597 -help | --help | --hel | --he | -h)
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
621 -libdir | --libdir | --libdi | --libd)
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
648 # Obsolete; use --without-fp.
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
712 sbindir=$ac_optarg ;;
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
723 sharedstatedir=$ac_optarg ;;
725 -site | --site | --sit)
727 -site=* | --site=* | --sit=*)
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
750 -version | --version | --versio | --versi | --vers | -V)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
764 eval "with_$ac_package='$ac_optarg'" ;;
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
776 # Obsolete; use --with-x.
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
819 if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838 localstatedir libdir includedir oldincludedir infodir mandir
840 eval ac_val=$`echo $ac_var`
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
869 test "$silent" = yes && exec 6>/dev/null
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
889 if test ! -r $srcdir/$ac_unique_file; then
893 ac_srcdir_defaulted=no
895 if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
962 # Report the --help message.
964 if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
968 \`configure' configures llvm 1.8cvs to adapt to many kinds of systems.
970 Usage: $0 [OPTION]... [VAR=VALUE]...
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE. See below for descriptions of some of the useful variables.
975 Defaults for the options are specified in brackets.
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
991 Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1002 For better control, use the options below.
1004 Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1028 if test -n "$ac_init_help"; then
1029 case $ac_init_help in
1030 short | recursive ) echo "Configuration of llvm 1.8cvs:";;
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1039 --enable-debug-runtime
1040 --enable-jit Enable Just In Time Compiling (default is YES)
1041 --enable-doxygen Build doxygen documentation (default is NO)
1042 --enable-threads Use threads if available (default is YES)
1043 --enable-target Build specific host targets:
1044 all,host-only,{target-name} (default=all)
1045 --enable-ltdl-install install libltdl
1046 --enable-shared[=PKGS]
1047 build shared libraries [default=yes]
1048 --enable-static[=PKGS]
1049 build static libraries [default=yes]
1050 --enable-fast-install[=PKGS]
1051 optimize for fast installation [default=yes]
1052 --disable-libtool-lock avoid locking (might break parallel builds)
1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1057 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1059 --with-tclinclude directory where tcl headers are
1060 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1061 --with-pic try to use only PIC/non-PIC objects [default=use
1064 include additional configurations [automatic]
1066 Some influential environment variables:
1067 CC C compiler command
1068 CFLAGS C compiler flags
1069 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1070 nonstandard directory <lib dir>
1071 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072 headers in a nonstandard directory <include dir>
1074 CXX C++ compiler command
1075 CXXFLAGS C++ compiler flags
1076 CXXCPP C++ preprocessor
1077 F77 Fortran 77 compiler command
1078 FFLAGS Fortran 77 compiler flags
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1083 Report bugs to <llvmbugs@cs.uiuc.edu>.
1087 if test "$ac_init_help" = "recursive"; then
1088 # If there are subdirs, report their specific --help.
1090 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091 test -d $ac_dir || continue
1094 if test "$ac_dir" != .; then
1095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096 # A "../" for each directory in $ac_dir_suffix.
1097 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1099 ac_dir_suffix= ac_top_builddir=
1103 .) # No --srcdir option. We are building in place.
1105 if test -z "$ac_top_builddir"; then
1108 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1110 [\\/]* | ?:[\\/]* ) # Absolute path.
1111 ac_srcdir=$srcdir$ac_dir_suffix;
1112 ac_top_srcdir=$srcdir ;;
1114 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118 # Do not use `cd foo && pwd` to compute absolute paths, because
1119 # the directories may not exist.
1121 .) ac_abs_builddir="$ac_dir";;
1124 .) ac_abs_builddir=`pwd`;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1132 case ${ac_top_builddir}. in
1133 .) ac_abs_top_builddir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138 case $ac_abs_builddir in
1139 .) ac_abs_srcdir=$ac_srcdir;;
1142 .) ac_abs_srcdir=$ac_abs_builddir;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147 case $ac_abs_builddir in
1148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1150 case $ac_top_srcdir in
1151 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1158 # Check for guested configure; otherwise get Cygnus style configure.
1159 if test -f $ac_srcdir/configure.gnu; then
1161 $SHELL $ac_srcdir/configure.gnu --help=recursive
1162 elif test -f $ac_srcdir/configure; then
1164 $SHELL $ac_srcdir/configure --help=recursive
1165 elif test -f $ac_srcdir/configure.ac ||
1166 test -f $ac_srcdir/configure.in; then
1168 $ac_configure --help
1170 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1176 test -n "$ac_init_help" && exit 0
1177 if $ac_init_version; then
1179 llvm configure 1.8cvs
1180 generated by GNU Autoconf 2.59
1182 Copyright (C) 2003 Free Software Foundation, Inc.
1183 This configure script is free software; the Free Software Foundation
1184 gives unlimited permission to copy, distribute and modify it.
1186 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1192 This file contains any messages produced by compilers while
1193 running configure, to aid debugging if configure makes a mistake.
1195 It was created by llvm $as_me 1.8cvs, which was
1196 generated by GNU Autoconf 2.59. Invocation command line was
1207 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1208 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1209 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1210 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1211 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1213 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1214 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1216 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1217 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1218 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1219 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1220 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1221 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1222 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1230 test -z "$as_dir" && as_dir=.
1231 echo "PATH: $as_dir"
1246 # Keep a trace of the command line.
1247 # Strip out --no-create and --no-recursion so they do not pile up.
1248 # Strip out --silent because we don't want to record it for future runs.
1249 # Also quote any args containing shell meta-characters.
1250 # Make two passes to allow for proper duplicate-argument suppression.
1255 ac_must_keep_next=false
1261 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263 | -silent | --silent | --silen | --sile | --sil)
1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1271 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1272 if test $ac_must_keep_next = true; then
1273 ac_must_keep_next=false # Got value, back to normal.
1276 *=* | --config-cache | -C | -disable-* | --disable-* \
1277 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1278 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1279 | -with-* | --with-* | -without-* | --without-* | --x)
1280 case "$ac_configure_args0 " in
1281 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1284 -* ) ac_must_keep_next=true ;;
1287 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1288 # Get rid of the leading space.
1294 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1295 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1297 # When interrupted or exit'd, cleanup temporary files, and complete
1298 # config.log. We remove comments because anyway the quotes in there
1299 # would cause problems or look ugly.
1300 # WARNING: Be sure not to use single quotes in there, as some shells,
1301 # such as our DU 5.0 friend, will then `close' the trap.
1302 trap 'exit_status=$?
1303 # Save into config.log some information that might help in debugging.
1308 ## ---------------- ##
1309 ## Cache variables. ##
1310 ## ---------------- ##
1313 # The following way of writing the cache mishandles newlines in values,
1316 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1319 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1331 ## ----------------- ##
1332 ## Output variables. ##
1333 ## ----------------- ##
1336 for ac_var in $ac_subst_vars
1338 eval ac_val=$`echo $ac_var`
1339 echo "$ac_var='"'"'$ac_val'"'"'"
1343 if test -n "$ac_subst_files"; then
1350 for ac_var in $ac_subst_files
1352 eval ac_val=$`echo $ac_var`
1353 echo "$ac_var='"'"'$ac_val'"'"'"
1358 if test -s confdefs.h; then
1365 sed "/^$/d" confdefs.h | sort
1368 test "$ac_signal" != 0 &&
1369 echo "$as_me: caught signal $ac_signal"
1370 echo "$as_me: exit $exit_status"
1372 rm -f core *.core &&
1373 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1376 for ac_signal in 1 2 13 15; do
1377 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1382 rm -rf conftest* confdefs.h
1383 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1386 # Predefined preprocessor variables.
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_NAME "$PACKAGE_NAME"
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_STRING "$PACKAGE_STRING"
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1413 # Let the site file select an alternate cache file if it wants to.
1414 # Prefer explicitly selected file to automatically selected ones.
1415 if test -z "$CONFIG_SITE"; then
1416 if test "x$prefix" != xNONE; then
1417 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1419 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1422 for ac_site_file in $CONFIG_SITE; do
1423 if test -r "$ac_site_file"; then
1424 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1425 echo "$as_me: loading site script $ac_site_file" >&6;}
1426 sed 's/^/| /' "$ac_site_file" >&5
1431 if test -r "$cache_file"; then
1432 # Some versions of bash will fail to source /dev/null (special
1433 # files actually), so we avoid doing that.
1434 if test -f "$cache_file"; then
1435 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1436 echo "$as_me: loading cache $cache_file" >&6;}
1438 [\\/]* | ?:[\\/]* ) . $cache_file;;
1439 *) . ./$cache_file;;
1443 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1444 echo "$as_me: creating cache $cache_file" >&6;}
1448 # Check that the precious variables saved in the cache have kept the same
1450 ac_cache_corrupted=false
1451 for ac_var in `(set) 2>&1 |
1452 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1453 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1454 eval ac_new_set=\$ac_env_${ac_var}_set
1455 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1456 eval ac_new_val="\$ac_env_${ac_var}_value"
1457 case $ac_old_set,$ac_new_set in
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1463 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1464 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1465 ac_cache_corrupted=: ;;
1468 if test "x$ac_old_val" != "x$ac_new_val"; then
1469 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1470 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1471 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1472 echo "$as_me: former value: $ac_old_val" >&2;}
1473 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1474 echo "$as_me: current value: $ac_new_val" >&2;}
1475 ac_cache_corrupted=:
1478 # Pass precious variables to config.status.
1479 if test "$ac_new_set" = set; then
1481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1482 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1483 *) ac_arg=$ac_var=$ac_new_val ;;
1485 case " $ac_configure_args " in
1486 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1487 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1491 if $ac_cache_corrupted; then
1492 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1493 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1494 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1495 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1496 { (exit 1); exit 1; }; }
1500 ac_cpp='$CPP $CPPFLAGS'
1501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1532 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1541 for ac_dir in autoconf $srcdir/autoconf; do
1542 if test -f $ac_dir/install-sh; then
1544 ac_install_sh="$ac_aux_dir/install-sh -c"
1546 elif test -f $ac_dir/install.sh; then
1548 ac_install_sh="$ac_aux_dir/install.sh -c"
1550 elif test -f $ac_dir/shtool; then
1552 ac_install_sh="$ac_aux_dir/shtool install -c"
1556 if test -z "$ac_aux_dir"; then
1557 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1558 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1559 { (exit 1); exit 1; }; }
1561 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1566 if test ${srcdir} != "." ; then
1567 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1568 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1569 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1570 { (exit 1); exit 1; }; }
1574 for i in `ls ${srcdir}/projects`
1576 if test -d ${srcdir}/projects/${i} ; then
1581 subdirs="$subdirs projects/sample"
1585 subdirs="$subdirs projects/Stacker"
1589 subdirs="$subdirs projects/llvm-test"
1593 subdirs="$subdirs projects/llvm-reopt"
1597 subdirs="$subdirs projects/llvm-gcc"
1601 subdirs="$subdirs projects/llvm-java"
1605 subdirs="$subdirs projects/llvm-tv"
1609 subdirs="$subdirs projects/llvm-poolalloc"
1613 subdirs="$subdirs projects/llvm-kernel"
1616 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1617 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1624 # Make sure we can run config.sub.
1625 $ac_config_sub sun4 >/dev/null 2>&1 ||
1626 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1627 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1628 { (exit 1); exit 1; }; }
1630 echo "$as_me:$LINENO: checking build system type" >&5
1631 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1632 if test "${ac_cv_build+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1635 ac_cv_build_alias=$build_alias
1636 test -z "$ac_cv_build_alias" &&
1637 ac_cv_build_alias=`$ac_config_guess`
1638 test -z "$ac_cv_build_alias" &&
1639 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1640 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1641 { (exit 1); exit 1; }; }
1642 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1643 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1644 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1645 { (exit 1); exit 1; }; }
1648 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1649 echo "${ECHO_T}$ac_cv_build" >&6
1651 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1652 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1653 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1656 echo "$as_me:$LINENO: checking host system type" >&5
1657 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1658 if test "${ac_cv_host+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 ac_cv_host_alias=$host_alias
1662 test -z "$ac_cv_host_alias" &&
1663 ac_cv_host_alias=$ac_cv_build_alias
1664 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1665 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1666 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1667 { (exit 1); exit 1; }; }
1670 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1671 echo "${ECHO_T}$ac_cv_host" >&6
1673 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1674 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1675 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1678 echo "$as_me:$LINENO: checking target system type" >&5
1679 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1680 if test "${ac_cv_target+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 ac_cv_target_alias=$target_alias
1684 test "x$ac_cv_target_alias" = "x" &&
1685 ac_cv_target_alias=$ac_cv_host_alias
1686 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1687 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1688 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1689 { (exit 1); exit 1; }; }
1692 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1693 echo "${ECHO_T}$ac_cv_target" >&6
1694 target=$ac_cv_target
1695 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1696 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1697 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1700 # The aliases save the names the user supplied, while $host etc.
1701 # will get canonicalized.
1702 test -n "$target_alias" &&
1703 test "$program_prefix$program_suffix$program_transform_name" = \
1705 program_prefix=${target_alias}-
1707 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1708 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1709 if test "${llvm_cv_os_type+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 llvm_cv_os_type="AIX"
1715 llvm_cv_platform_type="Unix" ;;
1717 llvm_cv_os_type="Cygwin"
1718 llvm_cv_platform_type="Unix" ;;
1720 llvm_cv_os_type="Darwin"
1721 llvm_cv_platform_type="Unix" ;;
1723 llvm_cv_os_type="FreeBSD"
1724 llvm_cv_platform_type="Unix" ;;
1726 llvm_cv_os_type="OpenBSD"
1727 llvm_cv_platform_type="Unix" ;;
1729 llvm_cv_os_type="HP-UX"
1730 llvm_cv_platform_type="Unix" ;;
1732 llvm_cv_os_type="Interix"
1733 llvm_cv_platform_type="Unix" ;;
1735 llvm_cv_os_type="Linux"
1736 llvm_cv_platform_type="Unix" ;;
1738 llvm_cv_os_type="SunOS"
1739 llvm_cv_platform_type="Unix" ;;
1741 llvm_cv_os_type="Win32"
1742 llvm_cv_platform_type="Win32" ;;
1744 llvm_cv_os_type="MingW"
1745 llvm_cv_platform_type="Win32" ;;
1747 llvm_cv_os_type="Unknown"
1748 llvm_cv_platform_type="Unknown" ;;
1751 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1752 echo "${ECHO_T}$llvm_cv_os_type" >&6
1754 if test "$llvm_cv_os_type" = "Unknown" ; then
1755 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1756 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1757 { (exit 1); exit 1; }; }
1763 case $llvm_cv_platform_type in
1766 cat >>confdefs.h <<\_ACEOF
1767 #define LLVM_ON_UNIX 1
1777 cat >>confdefs.h <<\_ACEOF
1778 #define LLVM_ON_WIN32 1
1788 echo "$as_me:$LINENO: checking target architecture" >&5
1789 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1790 if test "${llvm_cv_target_arch+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 i?86-*) llvm_cv_target_arch="x86" ;;
1795 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
1796 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1797 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1798 alpha*-*) llvm_cv_target_arch="Alpha" ;;
1799 ia64-*) llvm_cv_target_arch="IA64" ;;
1800 *) llvm_cv_target_arch="Unknown" ;;
1803 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1804 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1806 if test "$llvm_cv_target_arch" = "Unknown" ; then
1807 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1808 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1811 ARCH=$llvm_cv_target_arch
1815 ac_cpp='$CPP $CPPFLAGS'
1816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1819 if test -n "$ac_tool_prefix"; then
1820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1821 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_CC+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC="$CC" # Let the user override the test.
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 test -z "$as_dir" && as_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 if test -n "$CC"; then
1848 echo "$as_me:$LINENO: result: $CC" >&5
1849 echo "${ECHO_T}$CC" >&6
1851 echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1856 if test -z "$ac_cv_prog_CC"; then
1858 # Extract the first word of "gcc", so it can be a program name with args.
1859 set dummy gcc; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 if test -n "$ac_ct_CC"; then
1866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875 ac_cv_prog_ac_ct_CC="gcc"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885 if test -n "$ac_ct_CC"; then
1886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887 echo "${ECHO_T}$ac_ct_CC" >&6
1889 echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1898 if test -z "$CC"; then
1899 if test -n "$ac_tool_prefix"; then
1900 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1901 set dummy ${ac_tool_prefix}cc; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_CC+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 if test -n "$CC"; then
1908 ac_cv_prog_CC="$CC" # Let the user override the test.
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 test -z "$as_dir" && as_dir=.
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 ac_cv_prog_CC="${ac_tool_prefix}cc"
1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927 if test -n "$CC"; then
1928 echo "$as_me:$LINENO: result: $CC" >&5
1929 echo "${ECHO_T}$CC" >&6
1931 echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1936 if test -z "$ac_cv_prog_CC"; then
1938 # Extract the first word of "cc", so it can be a program name with args.
1939 set dummy cc; ac_word=$2
1940 echo "$as_me:$LINENO: checking for $ac_word" >&5
1941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1942 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 if test -n "$ac_ct_CC"; then
1946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 test -z "$as_dir" && as_dir=.
1953 for ac_exec_ext in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 ac_cv_prog_ac_ct_CC="cc"
1956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1965 if test -n "$ac_ct_CC"; then
1966 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1967 echo "${ECHO_T}$ac_ct_CC" >&6
1969 echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1979 if test -z "$CC"; then
1980 # Extract the first word of "cc", so it can be a program name with args.
1981 set dummy cc; ac_word=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_CC+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 if test -n "$CC"; then
1988 ac_cv_prog_CC="$CC" # Let the user override the test.
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1999 ac_prog_rejected=yes
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 if test $ac_prog_rejected = yes; then
2010 # We found a bogon in the path, so make sure we never use it.
2011 set dummy $ac_cv_prog_CC
2013 if test $# != 0; then
2014 # We chose a different compiler from the bogus one.
2015 # However, it has the same basename, so the bogon will be chosen
2016 # first if we set CC to just the basename; use the full file name.
2018 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2024 if test -n "$CC"; then
2025 echo "$as_me:$LINENO: result: $CC" >&5
2026 echo "${ECHO_T}$CC" >&6
2028 echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6
2033 if test -z "$CC"; then
2034 if test -n "$ac_tool_prefix"; then
2037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2038 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2039 echo "$as_me:$LINENO: checking for $ac_word" >&5
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041 if test "${ac_cv_prog_CC+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 if test -n "$CC"; then
2045 ac_cv_prog_CC="$CC" # Let the user override the test.
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 test -z "$as_dir" && as_dir=.
2052 for ac_exec_ext in '' $ac_executable_extensions; do
2053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064 if test -n "$CC"; then
2065 echo "$as_me:$LINENO: result: $CC" >&5
2066 echo "${ECHO_T}$CC" >&6
2068 echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6
2072 test -n "$CC" && break
2075 if test -z "$CC"; then
2079 # Extract the first word of "$ac_prog", so it can be a program name with args.
2080 set dummy $ac_prog; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 if test -n "$ac_ct_CC"; then
2087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_ac_ct_CC="$ac_prog"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106 if test -n "$ac_ct_CC"; then
2107 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108 echo "${ECHO_T}$ac_ct_CC" >&6
2110 echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2114 test -n "$ac_ct_CC" && break
2123 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2124 See \`config.log' for more details." >&5
2125 echo "$as_me: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&2;}
2127 { (exit 1); exit 1; }; }
2129 # Provide some information about the compiler.
2130 echo "$as_me:$LINENO:" \
2131 "checking for C compiler version" >&5
2132 ac_compiler=`set X $ac_compile; echo $2`
2133 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2134 (eval $ac_compiler --version </dev/null >&5) 2>&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }
2138 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2139 (eval $ac_compiler -v </dev/null >&5) 2>&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2143 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2144 (eval $ac_compiler -V </dev/null >&5) 2>&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }
2149 cat >conftest.$ac_ext <<_ACEOF
2152 cat confdefs.h >>conftest.$ac_ext
2153 cat >>conftest.$ac_ext <<_ACEOF
2154 /* end confdefs.h. */
2164 ac_clean_files_save=$ac_clean_files
2165 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2166 # Try to create an executable without -o first, disregard a.out.
2167 # It will help us diagnose broken compilers, and finding out an intuition
2169 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2170 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2171 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2172 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2173 (eval $ac_link_default) 2>&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; then
2177 # Find the output, starting from the most likely. This scheme is
2178 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2181 # Be careful to initialize this variable, since it used to be cached.
2182 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2184 # b.out is created by i960 compilers.
2185 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2187 test -f "$ac_file" || continue
2189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2192 # This is the source file.
2195 # We found the default executable, but exeext='' is most
2199 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200 # FIXME: I believe we export ac_cv_exeext for Libtool,
2201 # but it would be cool to find out if it's true. Does anybody
2202 # maintain Libtool? --akim.
2210 echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2213 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&5
2215 echo "$as_me: error: C compiler cannot create executables
2216 See \`config.log' for more details." >&2;}
2217 { (exit 77); exit 77; }; }
2220 ac_exeext=$ac_cv_exeext
2221 echo "$as_me:$LINENO: result: $ac_file" >&5
2222 echo "${ECHO_T}$ac_file" >&6
2224 # Check the compiler produces executables we can run. If not, either
2225 # the compiler is broken, or we cross compile.
2226 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2227 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2228 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2229 # If not cross compiling, check that we can run a simple program.
2230 if test "$cross_compiling" != yes; then
2231 if { ac_try='./$ac_file'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2239 if test "$cross_compiling" = maybe; then
2242 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2243 If you meant to cross compile, use \`--host'.
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&2;}
2248 { (exit 1); exit 1; }; }
2252 echo "$as_me:$LINENO: result: yes" >&5
2253 echo "${ECHO_T}yes" >&6
2255 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2256 ac_clean_files=$ac_clean_files_save
2257 # Check the compiler produces executables we can run. If not, either
2258 # the compiler is broken, or we cross compile.
2259 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2260 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2261 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2262 echo "${ECHO_T}$cross_compiling" >&6
2264 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2265 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2267 (eval $ac_link) 2>&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; then
2271 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2273 # work properly (i.e., refer to `conftest.exe'), while it won't with
2275 for ac_file in conftest.exe conftest conftest.*; do
2276 test -f "$ac_file" || continue
2278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2286 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }
2293 rm -f conftest$ac_cv_exeext
2294 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2295 echo "${ECHO_T}$ac_cv_exeext" >&6
2297 rm -f conftest.$ac_ext
2298 EXEEXT=$ac_cv_exeext
2300 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2301 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2302 if test "${ac_cv_objext+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 cat >conftest.$ac_ext <<_ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h. */
2320 rm -f conftest.o conftest.obj
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; then
2326 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2337 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&2;}
2341 { (exit 1); exit 1; }; }
2344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2346 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347 echo "${ECHO_T}$ac_cv_objext" >&6
2348 OBJEXT=$ac_cv_objext
2350 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2352 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 cat >conftest.$ac_ext <<_ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2373 rm -f conftest.$ac_objext
2374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375 (eval $ac_compile) 2>conftest.er1
2377 grep -v '^ *+' conftest.er1 >conftest.err
2379 cat conftest.err >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); } &&
2382 { ac_try='test -z "$ac_c_werror_flag"
2383 || test ! -s conftest.err'
2384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; } &&
2389 { ac_try='test -s conftest.$ac_objext'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; }; then
2397 echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2403 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2406 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2407 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2408 GCC=`test $ac_compiler_gnu = yes && echo yes`
2409 ac_test_CFLAGS=${CFLAGS+set}
2410 ac_save_CFLAGS=$CFLAGS
2412 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2413 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2414 if test "${ac_cv_prog_cc_g+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 cat >conftest.$ac_ext <<_ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h. */
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434 (eval $ac_compile) 2>conftest.er1
2436 grep -v '^ *+' conftest.er1 >conftest.err
2438 cat conftest.err >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try='test -z "$ac_c_werror_flag"
2442 || test ! -s conftest.err'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; } &&
2448 { ac_try='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2456 echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2463 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2464 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2465 if test "$ac_test_CFLAGS" = set; then
2466 CFLAGS=$ac_save_CFLAGS
2467 elif test $ac_cv_prog_cc_g = yes; then
2468 if test "$GCC" = yes; then
2474 if test "$GCC" = yes; then
2480 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2481 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2482 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 ac_cv_prog_cc_stdc=no
2487 cat >conftest.$ac_ext <<_ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2495 #include <sys/types.h>
2496 #include <sys/stat.h>
2497 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2498 struct buf { int x; };
2499 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2500 static char *e (p, i)
2506 static char *f (char * (*g) (char **, int), char **p, ...)
2511 s = g (p, va_arg (v,int));
2516 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2517 function prototypes and stuff, but not '\xHH' hex character constants.
2518 These don't provoke an error unfortunately, instead are silently treated
2519 as 'x'. The following induces an error, until -std1 is added to get
2520 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2521 array size at least. It's necessary to write '\x00'==0 to get something
2522 that's true only with -std1. */
2523 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2525 int test (int i, double x);
2526 struct s1 {int (*f) (int a);};
2527 struct s2 {int (*f) (double a);};
2528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2534 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2539 # Don't try gcc -ansi; that turns off useful extensions and
2540 # breaks some systems' header files.
2541 # AIX -qlanglvl=ansi
2542 # Ultrix and OSF/1 -std1
2543 # HP-UX 10.20 and later -Ae
2544 # HP-UX older versions -Aa -D_HPUX_SOURCE
2545 # SVR4 -Xc -D__EXTENSIONS__
2546 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2548 CC="$ac_save_CC $ac_arg"
2549 rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>conftest.er1
2553 grep -v '^ *+' conftest.er1 >conftest.err
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag"
2559 || test ! -s conftest.err'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; } &&
2565 { ac_try='test -s conftest.$ac_objext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2571 ac_cv_prog_cc_stdc=$ac_arg
2574 echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2578 rm -f conftest.err conftest.$ac_objext
2580 rm -f conftest.$ac_ext conftest.$ac_objext
2585 case "x$ac_cv_prog_cc_stdc" in
2587 echo "$as_me:$LINENO: result: none needed" >&5
2588 echo "${ECHO_T}none needed" >&6 ;;
2590 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2591 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2592 CC="$CC $ac_cv_prog_cc_stdc" ;;
2595 # Some people use a C++ compiler to compile C. Since we use `exit',
2596 # in C++ we need to declare it. In case someone uses the same compiler
2597 # for both compiling C and C++ we need to have the C++ compiler decide
2598 # the declaration of exit, since it's the most demanding environment.
2599 cat >conftest.$ac_ext <<_ACEOF
2604 rm -f conftest.$ac_objext
2605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606 (eval $ac_compile) 2>conftest.er1
2608 grep -v '^ *+' conftest.er1 >conftest.err
2610 cat conftest.err >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); } &&
2613 { ac_try='test -z "$ac_c_werror_flag"
2614 || test ! -s conftest.err'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; } &&
2620 { ac_try='test -s conftest.$ac_objext'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 for ac_declaration in \
2628 'extern "C" void std::exit (int) throw (); using std::exit;' \
2629 'extern "C" void std::exit (int); using std::exit;' \
2630 'extern "C" void exit (int) throw ();' \
2631 'extern "C" void exit (int);' \
2634 cat >conftest.$ac_ext <<_ACEOF
2637 cat confdefs.h >>conftest.$ac_ext
2638 cat >>conftest.$ac_ext <<_ACEOF
2639 /* end confdefs.h. */
2650 rm -f conftest.$ac_objext
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652 (eval $ac_compile) 2>conftest.er1
2654 grep -v '^ *+' conftest.er1 >conftest.err
2656 cat conftest.err >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); } &&
2659 { ac_try='test -z "$ac_c_werror_flag"
2660 || test ! -s conftest.err'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; } &&
2666 { ac_try='test -s conftest.$ac_objext'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680 cat >conftest.$ac_ext <<_ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>conftest.er1
2699 grep -v '^ *+' conftest.er1 >conftest.err
2701 cat conftest.err >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
2704 { ac_try='test -z "$ac_c_werror_flag"
2705 || test ! -s conftest.err'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726 if test -n "$ac_declaration"; then
2727 echo '#ifdef __cplusplus' >>confdefs.h
2728 echo $ac_declaration >>confdefs.h
2729 echo '#endif' >>confdefs.h
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2739 ac_cpp='$CPP $CPPFLAGS'
2740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2746 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2747 if test "${ac_cv_c_bigendian+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 # See if sys/param.h defines the BYTE_ORDER macro.
2751 cat >conftest.$ac_ext <<_ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h. */
2757 #include <sys/types.h>
2758 #include <sys/param.h>
2763 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2771 rm -f conftest.$ac_objext
2772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2773 (eval $ac_compile) 2>conftest.er1
2775 grep -v '^ *+' conftest.er1 >conftest.err
2777 cat conftest.err >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } &&
2780 { ac_try='test -z "$ac_c_werror_flag"
2781 || test ! -s conftest.err'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; } &&
2787 { ac_try='test -s conftest.$ac_objext'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2793 # It does; now see whether it defined to BIG_ENDIAN or not.
2794 cat >conftest.$ac_ext <<_ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2800 #include <sys/types.h>
2801 #include <sys/param.h>
2806 #if BYTE_ORDER != BIG_ENDIAN
2814 rm -f conftest.$ac_objext
2815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2816 (eval $ac_compile) 2>conftest.er1
2818 grep -v '^ *+' conftest.er1 >conftest.err
2820 cat conftest.err >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } &&
2823 { ac_try='test -z "$ac_c_werror_flag"
2824 || test ! -s conftest.err'
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; } &&
2830 { ac_try='test -s conftest.$ac_objext'
2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; }; then
2836 ac_cv_c_bigendian=yes
2838 echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2841 ac_cv_c_bigendian=no
2843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2845 echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2848 # It does not; compile a test program.
2849 if test "$cross_compiling" = yes; then
2850 # try to guess the endianness by grepping values into an object file
2851 ac_cv_c_bigendian=unknown
2852 cat >conftest.$ac_ext <<_ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2858 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2859 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2860 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2861 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2862 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2863 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2867 _ascii (); _ebcdic ();
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874 (eval $ac_compile) 2>conftest.er1
2876 grep -v '^ *+' conftest.er1 >conftest.err
2878 cat conftest.err >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try='test -z "$ac_c_werror_flag"
2882 || test ! -s conftest.err'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; } &&
2888 { ac_try='test -s conftest.$ac_objext'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2894 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2895 ac_cv_c_bigendian=yes
2897 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2898 if test "$ac_cv_c_bigendian" = unknown; then
2899 ac_cv_c_bigendian=no
2901 # finding both strings is unlikely to happen, but who knows?
2902 ac_cv_c_bigendian=unknown
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2912 cat >conftest.$ac_ext <<_ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2921 /* Are we little or big endian? From Harbison&Steele. */
2925 char c[sizeof (long)];
2928 exit (u.c[sizeof (long) - 1] == 1);
2931 rm -f conftest$ac_exeext
2932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2933 (eval $ac_link) 2>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2942 ac_cv_c_bigendian=no
2944 echo "$as_me: program exited with status $ac_status" >&5
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2949 ac_cv_c_bigendian=yes
2951 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2956 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2957 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2958 case $ac_cv_c_bigendian in
2966 { { echo "$as_me:$LINENO: error: unknown endianness
2967 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2968 echo "$as_me: error: unknown endianness
2969 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2970 { (exit 1); exit 1; }; } ;;
2974 if test -d "CVS" -o -d "${srcdir}/CVS"; then
2985 # Check whether --enable-optimized or --disable-optimized was given.
2986 if test "${enable_optimized+set}" = set; then
2987 enableval="$enable_optimized"
2992 if test ${enableval} = "no" ; then
2996 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
3000 # Check whether --enable-assertions or --disable-assertions was given.
3001 if test "${enable_assertions+set}" = set; then
3002 enableval="$enable_assertions"
3007 if test ${enableval} = "yes" ; then
3011 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
3015 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3016 if test "${enable_debug_runtime+set}" = set; then
3017 enableval="$enable_debug_runtime"
3022 if test ${enableval} = "no" ; then
3026 DEBUG_RUNTIME=DEBUG_RUNTIME=1
3030 # Check whether --enable-jit or --disable-jit was given.
3031 if test "${enable_jit+set}" = set; then
3032 enableval="$enable_jit"
3037 if test ${enableval} = "no"
3042 case "$llvm_cv_target_arch" in
3043 x86) TARGET_HAS_JIT=1
3045 Sparc) TARGET_HAS_JIT=1
3047 PowerPC) TARGET_HAS_JIT=1
3049 x86_64) TARGET_HAS_JIT=0
3051 Alpha) TARGET_HAS_JIT=1
3053 IA64) TARGET_HAS_JIT=0
3060 # Check whether --enable-doxygen or --disable-doxygen was given.
3061 if test "${enable_doxygen+set}" = set; then
3062 enableval="$enable_doxygen"
3067 case "$enableval" in
3068 yes) ENABLE_DOXYGEN=1
3070 no) ENABLE_DOXYGEN=0
3072 default) ENABLE_DOXYGEN=0
3074 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3075 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3076 { (exit 1); exit 1; }; } ;;
3079 # Check whether --enable-threads or --disable-threads was given.
3080 if test "${enable_threads+set}" = set; then
3081 enableval="$enable_threads"
3086 case "$enableval" in
3087 yes) ENABLE_THREADS=1
3089 no) ENABLE_THREADS=0
3091 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3092 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3093 { (exit 1); exit 1; }; } ;;
3096 cat >>confdefs.h <<_ACEOF
3097 #define ENABLE_THREADS $ENABLE_THREADS
3102 # Check whether --enable-targets or --disable-targets was given.
3103 if test "${enable_targets+set}" = set; then
3104 enableval="$enable_targets"
3109 case "$enableval" in
3110 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64" ;;
3112 case "$llvm_cv_target_arch" in
3113 x86) TARGETS_TO_BUILD="X86" ;;
3114 x86_64) TARGETS_TO_BUILD="X86" ;;
3115 Sparc) TARGETS_TO_BUILD="Sparc" ;;
3116 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3117 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3118 IA64) TARGETS_TO_BUILD="IA64" ;;
3119 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3120 echo "$as_me: error: Can not set target to build" >&2;}
3121 { (exit 1); exit 1; }; } ;;
3124 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3126 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3127 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3128 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
3129 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3130 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3131 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3132 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3133 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3134 { (exit 1); exit 1; }; } ;;
3139 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3140 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3144 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3145 if test "${with_llvmgccdir+set}" = set; then
3146 withval="$with_llvmgccdir"
3152 default) WITH_LLVMGCCDIR=default ;;
3153 /*) WITH_LLVMGCCDIR=$withval ;;
3154 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3155 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3156 { (exit 1); exit 1; }; } ;;
3162 ac_cpp='$CPP $CPPFLAGS'
3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3167 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3168 # On Suns, sometimes $CPP names a directory.
3169 if test -n "$CPP" && test -d "$CPP"; then
3172 if test -z "$CPP"; then
3173 if test "${ac_cv_prog_CPP+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 # Double quotes because CPP needs to be expanded
3177 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3180 for ac_c_preproc_warn_flag in '' yes
3182 # Use a header file that comes with gcc, so configuring glibc
3183 # with a fresh cross-compiler works.
3184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3185 # <limits.h> exists even on freestanding compilers.
3186 # On the NeXT, cc -E runs the code through the compiler's parser,
3187 # not just through cpp. "Syntax error" is here to catch this case.
3188 cat >conftest.$ac_ext <<_ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h. */
3195 # include <limits.h>
3197 # include <assert.h>
3201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3204 grep -v '^ *+' conftest.er1 >conftest.err
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } >/dev/null; then
3209 if test -s conftest.err; then
3210 ac_cpp_err=$ac_c_preproc_warn_flag
3211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3218 if test -z "$ac_cpp_err"; then
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3224 # Broken: fails on valid input.
3227 rm -f conftest.err conftest.$ac_ext
3229 # OK, works on sane cases. Now check whether non-existent headers
3230 # can be detected and how.
3231 cat >conftest.$ac_ext <<_ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3237 #include <ac_nonexistent.h>
3239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3242 grep -v '^ *+' conftest.er1 >conftest.err
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } >/dev/null; then
3247 if test -s conftest.err; then
3248 ac_cpp_err=$ac_c_preproc_warn_flag
3249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3256 if test -z "$ac_cpp_err"; then
3257 # Broken: success on invalid input.
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3263 # Passes both tests.
3267 rm -f conftest.err conftest.$ac_ext
3270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3271 rm -f conftest.err conftest.$ac_ext
3272 if $ac_preproc_ok; then
3284 echo "$as_me:$LINENO: result: $CPP" >&5
3285 echo "${ECHO_T}$CPP" >&6
3287 for ac_c_preproc_warn_flag in '' yes
3289 # Use a header file that comes with gcc, so configuring glibc
3290 # with a fresh cross-compiler works.
3291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3292 # <limits.h> exists even on freestanding compilers.
3293 # On the NeXT, cc -E runs the code through the compiler's parser,
3294 # not just through cpp. "Syntax error" is here to catch this case.
3295 cat >conftest.$ac_ext <<_ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3302 # include <limits.h>
3304 # include <assert.h>
3308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3311 grep -v '^ *+' conftest.er1 >conftest.err
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } >/dev/null; then
3316 if test -s conftest.err; then
3317 ac_cpp_err=$ac_c_preproc_warn_flag
3318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3325 if test -z "$ac_cpp_err"; then
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3331 # Broken: fails on valid input.
3334 rm -f conftest.err conftest.$ac_ext
3336 # OK, works on sane cases. Now check whether non-existent headers
3337 # can be detected and how.
3338 cat >conftest.$ac_ext <<_ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3344 #include <ac_nonexistent.h>
3346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3349 grep -v '^ *+' conftest.er1 >conftest.err
3351 cat conftest.err >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } >/dev/null; then
3354 if test -s conftest.err; then
3355 ac_cpp_err=$ac_c_preproc_warn_flag
3356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3363 if test -z "$ac_cpp_err"; then
3364 # Broken: success on invalid input.
3367 echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3370 # Passes both tests.
3374 rm -f conftest.err conftest.$ac_ext
3377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3378 rm -f conftest.err conftest.$ac_ext
3379 if $ac_preproc_ok; then
3382 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3383 See \`config.log' for more details." >&5
3384 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3385 See \`config.log' for more details." >&2;}
3386 { (exit 1); exit 1; }; }
3390 ac_cpp='$CPP $CPPFLAGS'
3391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396 ac_cpp='$CPP $CPPFLAGS'
3397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400 if test -n "$ac_tool_prefix"; then
3403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3405 echo "$as_me:$LINENO: checking for $ac_word" >&5
3406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3407 if test "${ac_cv_prog_CC+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 if test -n "$CC"; then
3411 ac_cv_prog_CC="$CC" # Let the user override the test.
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 if test -n "$CC"; then
3431 echo "$as_me:$LINENO: result: $CC" >&5
3432 echo "${ECHO_T}$CC" >&6
3434 echo "$as_me:$LINENO: result: no" >&5
3435 echo "${ECHO_T}no" >&6
3438 test -n "$CC" && break
3441 if test -z "$CC"; then
3445 # Extract the first word of "$ac_prog", so it can be a program name with args.
3446 set dummy $ac_prog; ac_word=$2
3447 echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 if test -n "$ac_ct_CC"; then
3453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 ac_cv_prog_ac_ct_CC="$ac_prog"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3472 if test -n "$ac_ct_CC"; then
3473 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3474 echo "${ECHO_T}$ac_ct_CC" >&6
3476 echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6
3480 test -n "$ac_ct_CC" && break
3487 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3488 See \`config.log' for more details." >&5
3489 echo "$as_me: error: no acceptable C compiler found in \$PATH
3490 See \`config.log' for more details." >&2;}
3491 { (exit 1); exit 1; }; }
3493 # Provide some information about the compiler.
3494 echo "$as_me:$LINENO:" \
3495 "checking for C compiler version" >&5
3496 ac_compiler=`set X $ac_compile; echo $2`
3497 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3498 (eval $ac_compiler --version </dev/null >&5) 2>&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }
3502 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3503 (eval $ac_compiler -v </dev/null >&5) 2>&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }
3507 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3508 (eval $ac_compiler -V </dev/null >&5) 2>&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }
3513 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3514 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3515 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 cat >conftest.$ac_ext <<_ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3536 rm -f conftest.$ac_objext
3537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3538 (eval $ac_compile) 2>conftest.er1
3540 grep -v '^ *+' conftest.er1 >conftest.err
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } &&
3545 { ac_try='test -z "$ac_c_werror_flag"
3546 || test ! -s conftest.err'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; } &&
3552 { ac_try='test -s conftest.$ac_objext'
3553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; }; then
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3569 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3570 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3571 GCC=`test $ac_compiler_gnu = yes && echo yes`
3572 ac_test_CFLAGS=${CFLAGS+set}
3573 ac_save_CFLAGS=$CFLAGS
3575 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3576 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3577 if test "${ac_cv_prog_cc_g+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 cat >conftest.$ac_ext <<_ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3595 rm -f conftest.$ac_objext
3596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597 (eval $ac_compile) 2>conftest.er1
3599 grep -v '^ *+' conftest.er1 >conftest.err
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } &&
3604 { ac_try='test -z "$ac_c_werror_flag"
3605 || test ! -s conftest.err'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; } &&
3611 { ac_try='test -s conftest.$ac_objext'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3626 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3627 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3628 if test "$ac_test_CFLAGS" = set; then
3629 CFLAGS=$ac_save_CFLAGS
3630 elif test $ac_cv_prog_cc_g = yes; then
3631 if test "$GCC" = yes; then
3637 if test "$GCC" = yes; then
3643 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3644 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3645 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 ac_cv_prog_cc_stdc=no
3650 cat >conftest.$ac_ext <<_ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3658 #include <sys/types.h>
3659 #include <sys/stat.h>
3660 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3661 struct buf { int x; };
3662 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3663 static char *e (p, i)
3669 static char *f (char * (*g) (char **, int), char **p, ...)
3674 s = g (p, va_arg (v,int));
3679 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3680 function prototypes and stuff, but not '\xHH' hex character constants.
3681 These don't provoke an error unfortunately, instead are silently treated
3682 as 'x'. The following induces an error, until -std1 is added to get
3683 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3684 array size at least. It's necessary to write '\x00'==0 to get something
3685 that's true only with -std1. */
3686 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3688 int test (int i, double x);
3689 struct s1 {int (*f) (int a);};
3690 struct s2 {int (*f) (double a);};
3691 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3697 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3702 # Don't try gcc -ansi; that turns off useful extensions and
3703 # breaks some systems' header files.
3704 # AIX -qlanglvl=ansi
3705 # Ultrix and OSF/1 -std1
3706 # HP-UX 10.20 and later -Ae
3707 # HP-UX older versions -Aa -D_HPUX_SOURCE
3708 # SVR4 -Xc -D__EXTENSIONS__
3709 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3711 CC="$ac_save_CC $ac_arg"
3712 rm -f conftest.$ac_objext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714 (eval $ac_compile) 2>conftest.er1
3716 grep -v '^ *+' conftest.er1 >conftest.err
3718 cat conftest.err >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } &&
3721 { ac_try='test -z "$ac_c_werror_flag"
3722 || test ! -s conftest.err'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; } &&
3728 { ac_try='test -s conftest.$ac_objext'
3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3734 ac_cv_prog_cc_stdc=$ac_arg
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3741 rm -f conftest.err conftest.$ac_objext
3743 rm -f conftest.$ac_ext conftest.$ac_objext
3748 case "x$ac_cv_prog_cc_stdc" in
3750 echo "$as_me:$LINENO: result: none needed" >&5
3751 echo "${ECHO_T}none needed" >&6 ;;
3753 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3754 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3755 CC="$CC $ac_cv_prog_cc_stdc" ;;
3758 # Some people use a C++ compiler to compile C. Since we use `exit',
3759 # in C++ we need to declare it. In case someone uses the same compiler
3760 # for both compiling C and C++ we need to have the C++ compiler decide
3761 # the declaration of exit, since it's the most demanding environment.
3762 cat >conftest.$ac_ext <<_ACEOF
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769 (eval $ac_compile) 2>conftest.er1
3771 grep -v '^ *+' conftest.er1 >conftest.err
3773 cat conftest.err >&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } &&
3776 { ac_try='test -z "$ac_c_werror_flag"
3777 || test ! -s conftest.err'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; } &&
3783 { ac_try='test -s conftest.$ac_objext'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 for ac_declaration in \
3791 'extern "C" void std::exit (int) throw (); using std::exit;' \
3792 'extern "C" void std::exit (int); using std::exit;' \
3793 'extern "C" void exit (int) throw ();' \
3794 'extern "C" void exit (int);' \
3797 cat >conftest.$ac_ext <<_ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3813 rm -f conftest.$ac_objext
3814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3815 (eval $ac_compile) 2>conftest.er1
3817 grep -v '^ *+' conftest.er1 >conftest.err
3819 cat conftest.err >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } &&
3822 { ac_try='test -z "$ac_c_werror_flag"
3823 || test ! -s conftest.err'
3824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; } &&
3829 { ac_try='test -s conftest.$ac_objext'
3830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; }; then
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3843 cat >conftest.$ac_ext <<_ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3858 rm -f conftest.$ac_objext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860 (eval $ac_compile) 2>conftest.er1
3862 grep -v '^ *+' conftest.er1 >conftest.err
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } &&
3867 { ac_try='test -z "$ac_c_werror_flag"
3868 || test ! -s conftest.err'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; } &&
3874 { ac_try='test -s conftest.$ac_objext'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3889 if test -n "$ac_declaration"; then
3890 echo '#ifdef __cplusplus' >>confdefs.h
3891 echo $ac_declaration >>confdefs.h
3892 echo '#endif' >>confdefs.h
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908 ac_cpp='$CXXCPP $CPPFLAGS'
3909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3912 if test -n "$ac_tool_prefix"; then
3913 for ac_prog in $CCC g++
3915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3917 echo "$as_me:$LINENO: checking for $ac_word" >&5
3918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919 if test "${ac_cv_prog_CXX+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 if test -n "$CXX"; then
3923 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 if test -n "$CXX"; then
3943 echo "$as_me:$LINENO: result: $CXX" >&5
3944 echo "${ECHO_T}$CXX" >&6
3946 echo "$as_me:$LINENO: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3950 test -n "$CXX" && break
3953 if test -z "$CXX"; then
3955 for ac_prog in $CCC g++
3957 # Extract the first word of "$ac_prog", so it can be a program name with args.
3958 set dummy $ac_prog; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 if test -n "$ac_ct_CXX"; then
3965 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_ac_ct_CXX="$ac_prog"
3975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3984 if test -n "$ac_ct_CXX"; then
3985 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3986 echo "${ECHO_T}$ac_ct_CXX" >&6
3988 echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3992 test -n "$ac_ct_CXX" && break
3994 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4000 # Provide some information about the compiler.
4001 echo "$as_me:$LINENO:" \
4002 "checking for C++ compiler version" >&5
4003 ac_compiler=`set X $ac_compile; echo $2`
4004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4005 (eval $ac_compiler --version </dev/null >&5) 2>&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }
4009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4010 (eval $ac_compiler -v </dev/null >&5) 2>&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }
4014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4015 (eval $ac_compiler -V </dev/null >&5) 2>&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }
4020 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4021 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4022 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 cat >conftest.$ac_ext <<_ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4043 rm -f conftest.$ac_objext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045 (eval $ac_compile) 2>conftest.er1
4047 grep -v '^ *+' conftest.er1 >conftest.err
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } &&
4052 { ac_try='test -z "$ac_cxx_werror_flag"
4053 || test ! -s conftest.err'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; } &&
4059 { ac_try='test -s conftest.$ac_objext'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4076 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4077 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4078 GXX=`test $ac_compiler_gnu = yes && echo yes`
4079 ac_test_CXXFLAGS=${CXXFLAGS+set}
4080 ac_save_CXXFLAGS=$CXXFLAGS
4082 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4083 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4084 if test "${ac_cv_prog_cxx_g+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 cat >conftest.$ac_ext <<_ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4102 rm -f conftest.$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>conftest.er1
4106 grep -v '^ *+' conftest.er1 >conftest.err
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_cxx_werror_flag"
4112 || test ! -s conftest.err'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 ac_cv_prog_cxx_g=yes
4126 echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4133 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4134 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4135 if test "$ac_test_CXXFLAGS" = set; then
4136 CXXFLAGS=$ac_save_CXXFLAGS
4137 elif test $ac_cv_prog_cxx_g = yes; then
4138 if test "$GXX" = yes; then
4144 if test "$GXX" = yes; then
4150 for ac_declaration in \
4152 'extern "C" void std::exit (int) throw (); using std::exit;' \
4153 'extern "C" void std::exit (int); using std::exit;' \
4154 'extern "C" void exit (int) throw ();' \
4155 'extern "C" void exit (int);' \
4158 cat >conftest.$ac_ext <<_ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4174 rm -f conftest.$ac_objext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176 (eval $ac_compile) 2>conftest.er1
4178 grep -v '^ *+' conftest.er1 >conftest.err
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -z "$ac_cxx_werror_flag"
4184 || test ! -s conftest.err'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4204 cat >conftest.$ac_ext <<_ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4219 rm -f conftest.$ac_objext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221 (eval $ac_compile) 2>conftest.er1
4223 grep -v '^ *+' conftest.er1 >conftest.err
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -z "$ac_cxx_werror_flag"
4229 || test ! -s conftest.err'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; } &&
4235 { ac_try='test -s conftest.$ac_objext'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4243 echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4250 if test -n "$ac_declaration"; then
4251 echo '#ifdef __cplusplus' >>confdefs.h
4252 echo $ac_declaration >>confdefs.h
4253 echo '#endif' >>confdefs.h
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262 echo "$as_me:$LINENO: checking " >&5
4263 echo $ECHO_N "checking ... $ECHO_C" >&6
4264 if test "${ac_cv_has_flex+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 for ac_prog in flex lex
4269 # Extract the first word of "$ac_prog", so it can be a program name with args.
4270 set dummy $ac_prog; ac_word=$2
4271 echo "$as_me:$LINENO: checking for $ac_word" >&5
4272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4273 if test "${ac_cv_prog_LEX+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 if test -n "$LEX"; then
4277 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286 ac_cv_prog_LEX="$ac_prog"
4287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 if test -n "$LEX"; then
4297 echo "$as_me:$LINENO: result: $LEX" >&5
4298 echo "${ECHO_T}$LEX" >&6
4300 echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4304 test -n "$LEX" && break
4306 test -n "$LEX" || LEX=":"
4308 if test -z "$LEXLIB"
4310 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4311 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4312 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4315 ac_check_lib_save_LIBS=$LIBS
4317 cat >conftest.$ac_ext <<_ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h. */
4324 /* Override any gcc2 internal prototype to avoid an error. */
4328 /* We use char because int might match the return type of a gcc2
4329 builtin and then its argument prototype would still apply. */
4339 rm -f conftest.$ac_objext conftest$ac_exeext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4341 (eval $ac_link) 2>conftest.er1
4343 grep -v '^ *+' conftest.er1 >conftest.err
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
4348 { ac_try='test -z "$ac_c_werror_flag"
4349 || test ! -s conftest.err'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; } &&
4355 { ac_try='test -s conftest$ac_exeext'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; }; then
4361 ac_cv_lib_fl_yywrap=yes
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4366 ac_cv_lib_fl_yywrap=no
4368 rm -f conftest.err conftest.$ac_objext \
4369 conftest$ac_exeext conftest.$ac_ext
4370 LIBS=$ac_check_lib_save_LIBS
4372 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4373 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4374 if test $ac_cv_lib_fl_yywrap = yes; then
4377 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4378 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4379 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 ac_check_lib_save_LIBS=$LIBS
4384 cat >conftest.$ac_ext <<_ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4391 /* Override any gcc2 internal prototype to avoid an error. */
4395 /* We use char because int might match the return type of a gcc2
4396 builtin and then its argument prototype would still apply. */
4406 rm -f conftest.$ac_objext conftest$ac_exeext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4408 (eval $ac_link) 2>conftest.er1
4410 grep -v '^ *+' conftest.er1 >conftest.err
4412 cat conftest.err >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } &&
4415 { ac_try='test -z "$ac_c_werror_flag"
4416 || test ! -s conftest.err'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; } &&
4422 { ac_try='test -s conftest$ac_exeext'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 ac_cv_lib_l_yywrap=yes
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4433 ac_cv_lib_l_yywrap=no
4435 rm -f conftest.err conftest.$ac_objext \
4436 conftest$ac_exeext conftest.$ac_ext
4437 LIBS=$ac_check_lib_save_LIBS
4439 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4440 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4441 if test $ac_cv_lib_l_yywrap = yes; then
4449 if test "x$LEX" != "x:"; then
4450 echo "$as_me:$LINENO: checking lex output file root" >&5
4451 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4452 if test "${ac_cv_prog_lex_root+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 # The minimal lex program is just a single line: %%. But some broken lexes
4456 # (Solaris, I think it was) want two %% lines, so accommodate them.
4457 cat >conftest.l <<_ACEOF
4461 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4462 (eval $LEX conftest.l) 2>&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }
4466 if test -f lex.yy.c; then
4467 ac_cv_prog_lex_root=lex.yy
4468 elif test -f lexyy.c; then
4469 ac_cv_prog_lex_root=lexyy
4471 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4472 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4473 { (exit 1); exit 1; }; }
4476 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4477 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4479 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4481 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4482 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4483 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 # POSIX says lex can declare yytext either as a pointer or an array; the
4487 # default is implementation-dependent. Figure out which it is, since
4488 # not all implementations provide the %pointer and %array declarations.
4489 ac_cv_prog_lex_yytext_pointer=no
4490 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4492 LIBS="$LIBS $LEXLIB"
4493 cat >conftest.$ac_ext <<_ACEOF
4494 `cat $LEX_OUTPUT_ROOT.c`
4496 rm -f conftest.$ac_objext conftest$ac_exeext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4498 (eval $ac_link) 2>conftest.er1
4500 grep -v '^ *+' conftest.er1 >conftest.err
4502 cat conftest.err >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } &&
4505 { ac_try='test -z "$ac_c_werror_flag"
4506 || test ! -s conftest.err'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; } &&
4512 { ac_try='test -s conftest$ac_exeext'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4518 ac_cv_prog_lex_yytext_pointer=yes
4520 echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4524 rm -f conftest.err conftest.$ac_objext \
4525 conftest$ac_exeext conftest.$ac_ext
4527 rm -f "${LEX_OUTPUT_ROOT}.c"
4530 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4531 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4532 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4534 cat >>confdefs.h <<\_ACEOF
4535 #define YYTEXT_POINTER 1
4543 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4544 echo "${ECHO_T}$ac_cv_has_flex" >&6
4545 if test "$LEX" != "flex"; then
4546 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4547 echo "$as_me: error: flex not found but required" >&2;}
4548 { (exit 1); exit 1; }; }
4554 echo "$as_me:$LINENO: checking " >&5
4555 echo $ECHO_N "checking ... $ECHO_C" >&6
4556 if test "${llvm_cv_has_bison+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 for ac_prog in 'bison -y' byacc
4561 # Extract the first word of "$ac_prog", so it can be a program name with args.
4562 set dummy $ac_prog; ac_word=$2
4563 echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565 if test "${ac_cv_prog_YACC+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 if test -n "$YACC"; then
4569 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578 ac_cv_prog_YACC="$ac_prog"
4579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 YACC=$ac_cv_prog_YACC
4588 if test -n "$YACC"; then
4589 echo "$as_me:$LINENO: result: $YACC" >&5
4590 echo "${ECHO_T}$YACC" >&6
4592 echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4596 test -n "$YACC" && break
4598 test -n "$YACC" || YACC="yacc"
4601 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4602 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4603 if test "$YACC" != "bison -y"; then
4604 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4605 echo "$as_me: error: bison not found but required" >&2;}
4606 { (exit 1); exit 1; }; }
4612 echo "$as_me:$LINENO: checking for GNU make" >&5
4613 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4614 if test "${llvm_cv_gnu_make_command+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 llvm_cv_gnu_make_command=''
4618 for a in "$MAKE" make gmake gnumake ; do
4619 if test -z "$a" ; then continue ; fi ;
4620 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4622 llvm_cv_gnu_make_command=$a ;
4627 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4628 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4629 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4633 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4634 echo "${ECHO_T}\"Not found\"" >&6;
4638 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4639 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4641 if test "$LN_S" = "ln -s"; then
4642 echo "$as_me:$LINENO: result: yes" >&5
4643 echo "${ECHO_T}yes" >&6
4645 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4646 echo "${ECHO_T}no, using $LN_S" >&6
4649 # Extract the first word of "cmp", so it can be a program name with args.
4650 set dummy cmp; ac_word=$2
4651 echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653 if test "${ac_cv_path_CMP+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4681 if test -n "$CMP"; then
4682 echo "$as_me:$LINENO: result: $CMP" >&5
4683 echo "${ECHO_T}$CMP" >&6
4685 echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6
4689 # Extract the first word of "cp", so it can be a program name with args.
4690 set dummy cp; ac_word=$2
4691 echo "$as_me:$LINENO: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4693 if test "${ac_cv_path_CP+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4721 if test -n "$CP"; then
4722 echo "$as_me:$LINENO: result: $CP" >&5
4723 echo "${ECHO_T}$CP" >&6
4725 echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6
4729 # Extract the first word of "date", so it can be a program name with args.
4730 set dummy date; ac_word=$2
4731 echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4733 if test "${ac_cv_path_DATE+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4759 DATE=$ac_cv_path_DATE
4761 if test -n "$DATE"; then
4762 echo "$as_me:$LINENO: result: $DATE" >&5
4763 echo "${ECHO_T}$DATE" >&6
4765 echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6
4769 # Extract the first word of "find", so it can be a program name with args.
4770 set dummy find; ac_word=$2
4771 echo "$as_me:$LINENO: checking for $ac_word" >&5
4772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4773 if test "${ac_cv_path_FIND+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4799 FIND=$ac_cv_path_FIND
4801 if test -n "$FIND"; then
4802 echo "$as_me:$LINENO: result: $FIND" >&5
4803 echo "${ECHO_T}$FIND" >&6
4805 echo "$as_me:$LINENO: result: no" >&5
4806 echo "${ECHO_T}no" >&6
4809 # Extract the first word of "grep", so it can be a program name with args.
4810 set dummy grep; ac_word=$2
4811 echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4813 if test "${ac_cv_path_GREP+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4839 GREP=$ac_cv_path_GREP
4841 if test -n "$GREP"; then
4842 echo "$as_me:$LINENO: result: $GREP" >&5
4843 echo "${ECHO_T}$GREP" >&6
4845 echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6
4849 # Extract the first word of "mkdir", so it can be a program name with args.
4850 set dummy mkdir; ac_word=$2
4851 echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853 if test "${ac_cv_path_MKDIR+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4879 MKDIR=$ac_cv_path_MKDIR
4881 if test -n "$MKDIR"; then
4882 echo "$as_me:$LINENO: result: $MKDIR" >&5
4883 echo "${ECHO_T}$MKDIR" >&6
4885 echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4889 # Extract the first word of "mv", so it can be a program name with args.
4890 set dummy mv; ac_word=$2
4891 echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893 if test "${ac_cv_path_MV+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4921 if test -n "$MV"; then
4922 echo "$as_me:$LINENO: result: $MV" >&5
4923 echo "${ECHO_T}$MV" >&6
4925 echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6
4929 if test -n "$ac_tool_prefix"; then
4930 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4931 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4932 echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4934 if test "${ac_cv_prog_RANLIB+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 if test -n "$RANLIB"; then
4938 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 RANLIB=$ac_cv_prog_RANLIB
4957 if test -n "$RANLIB"; then
4958 echo "$as_me:$LINENO: result: $RANLIB" >&5
4959 echo "${ECHO_T}$RANLIB" >&6
4961 echo "$as_me:$LINENO: result: no" >&5
4962 echo "${ECHO_T}no" >&6
4966 if test -z "$ac_cv_prog_RANLIB"; then
4967 ac_ct_RANLIB=$RANLIB
4968 # Extract the first word of "ranlib", so it can be a program name with args.
4969 set dummy ranlib; ac_word=$2
4970 echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4972 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 if test -n "$ac_ct_RANLIB"; then
4976 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985 ac_cv_prog_ac_ct_RANLIB="ranlib"
4986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4995 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4996 if test -n "$ac_ct_RANLIB"; then
4997 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4998 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5000 echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6
5004 RANLIB=$ac_ct_RANLIB
5006 RANLIB="$ac_cv_prog_RANLIB"
5009 # Extract the first word of "rm", so it can be a program name with args.
5010 set dummy rm; ac_word=$2
5011 echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013 if test "${ac_cv_path_RM+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5041 if test -n "$RM"; then
5042 echo "$as_me:$LINENO: result: $RM" >&5
5043 echo "${ECHO_T}$RM" >&6
5045 echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5049 # Extract the first word of "sed", so it can be a program name with args.
5050 set dummy sed; ac_word=$2
5051 echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5053 if test "${ac_cv_path_SED+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5081 if test -n "$SED"; then
5082 echo "$as_me:$LINENO: result: $SED" >&5
5083 echo "${ECHO_T}$SED" >&6
5085 echo "$as_me:$LINENO: result: no" >&5
5086 echo "${ECHO_T}no" >&6
5089 # Extract the first word of "tar", so it can be a program name with args.
5090 set dummy tar; ac_word=$2
5091 echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5093 if test "${ac_cv_path_TAR+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5121 if test -n "$TAR"; then
5122 echo "$as_me:$LINENO: result: $TAR" >&5
5123 echo "${ECHO_T}$TAR" >&6
5125 echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6
5129 # Extract the first word of "Graphviz", so it can be a program name with args.
5130 set dummy Graphviz; 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_path_GRAPHVIZ+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5159 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5161 if test -n "$GRAPHVIZ"; then
5162 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5163 echo "${ECHO_T}$GRAPHVIZ" >&6
5165 echo "$as_me:$LINENO: result: no" >&5
5166 echo "${ECHO_T}no" >&6
5169 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5171 cat >>confdefs.h <<\_ACEOF
5172 #define HAVE_GRAPHVIZ 1
5176 cat >>confdefs.h <<_ACEOF
5177 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5181 # Extract the first word of "gv", so it can be a program name with args.
5182 set dummy gv; ac_word=$2
5183 echo "$as_me:$LINENO: checking for $ac_word" >&5
5184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5185 if test "${ac_cv_path_GV+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5213 if test -n "$GV"; then
5214 echo "$as_me:$LINENO: result: $GV" >&5
5215 echo "${ECHO_T}$GV" >&6
5217 echo "$as_me:$LINENO: result: no" >&5
5218 echo "${ECHO_T}no" >&6
5221 if test "$GV" != "echo gv" ; then
5223 cat >>confdefs.h <<\_ACEOF
5228 cat >>confdefs.h <<_ACEOF
5229 #define LLVM_PATH_GV "$GV"
5235 # Extract the first word of "perl", so it can be a program name with args.
5236 set dummy perl; ac_word=$2
5237 echo "$as_me:$LINENO: checking for $ac_word" >&5
5238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5239 if test "${ac_cv_path_PERL+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5265 PERL=$ac_cv_path_PERL
5267 if test -n "$PERL"; then
5268 echo "$as_me:$LINENO: result: $PERL" >&5
5269 echo "${ECHO_T}$PERL" >&6
5271 echo "$as_me:$LINENO: result: no" >&5
5272 echo "${ECHO_T}no" >&6
5275 if test "$PERL" != "none"; then
5276 echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5277 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5278 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5279 echo "$as_me:$LINENO: result: yes" >&5
5280 echo "${ECHO_T}yes" >&6
5283 echo "$as_me:$LINENO: result: not found" >&5
5284 echo "${ECHO_T}not found" >&6
5289 if test x"$PERL" = xnone; then
5297 # Find a good install program. We prefer a C program (faster),
5298 # so one script is as good as another. But avoid the broken or
5299 # incompatible versions:
5300 # SysV /etc/install, /usr/sbin/install
5301 # SunOS /usr/etc/install
5302 # IRIX /sbin/install
5304 # AmigaOS /C/install, which installs bootblocks on floppy discs
5305 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5306 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5307 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5308 # OS/2's system install, which has a completely different semantic
5309 # ./install, which can be erroneously created by make from ./install.sh.
5310 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5311 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5312 if test -z "$INSTALL"; then
5313 if test "${ac_cv_path_install+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 test -z "$as_dir" && as_dir=.
5321 # Account for people who put trailing slashes in PATH elements.
5323 ./ | .// | /cC/* | \
5324 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5325 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5328 # OSF1 and SCO ODT 3.0 have their own names for install.
5329 # Don't use installbsd from OSF since it installs stuff as root
5331 for ac_prog in ginstall scoinst install; do
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5334 if test $ac_prog = install &&
5335 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5336 # AIX install. It has an incompatible calling convention.
5338 elif test $ac_prog = install &&
5339 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5340 # program-specific install script used by HP pwplus--don't use.
5343 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5355 if test "${ac_cv_path_install+set}" = set; then
5356 INSTALL=$ac_cv_path_install
5358 # As a last resort, use the slow shell script. We don't cache a
5359 # path for INSTALL within a source directory, because that will
5360 # break other packages using the cache if that directory is
5361 # removed, or if the path is relative.
5362 INSTALL=$ac_install_sh
5365 echo "$as_me:$LINENO: result: $INSTALL" >&5
5366 echo "${ECHO_T}$INSTALL" >&6
5368 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5369 # It thinks the first close brace ends the variable substitution.
5370 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5372 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5374 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5377 # Extract the first word of "bzip2", so it can be a program name with args.
5378 set dummy bzip2; ac_word=$2
5379 echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5381 if test "${ac_cv_path_BZIP2+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
5407 BZIP2=$ac_cv_path_BZIP2
5409 if test -n "$BZIP2"; then
5410 echo "$as_me:$LINENO: result: $BZIP2" >&5
5411 echo "${ECHO_T}$BZIP2" >&6
5413 echo "$as_me:$LINENO: result: no" >&5
5414 echo "${ECHO_T}no" >&6
5417 # Extract the first word of "dot", so it can be a program name with args.
5418 set dummy dot; ac_word=$2
5419 echo "$as_me:$LINENO: checking for $ac_word" >&5
5420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5421 if test "${ac_cv_path_DOT+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo "Skipped: dot not found""
5449 if test -n "$DOT"; then
5450 echo "$as_me:$LINENO: result: $DOT" >&5
5451 echo "${ECHO_T}$DOT" >&6
5453 echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6
5457 # Extract the first word of "doxygen", so it can be a program name with args.
5458 set dummy doxygen; ac_word=$2
5459 echo "$as_me:$LINENO: checking for $ac_word" >&5
5460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5461 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5483 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
5487 DOXYGEN=$ac_cv_path_DOXYGEN
5489 if test -n "$DOXYGEN"; then
5490 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5491 echo "${ECHO_T}$DOXYGEN" >&6
5493 echo "$as_me:$LINENO: result: no" >&5
5494 echo "${ECHO_T}no" >&6
5497 # Extract the first word of "etags", so it can be a program name with args.
5498 set dummy etags; ac_word=$2
5499 echo "$as_me:$LINENO: checking for $ac_word" >&5
5500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5501 if test "${ac_cv_path_ETAGS+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 test -z "$as_dir" && as_dir=.
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5516 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
5527 ETAGS=$ac_cv_path_ETAGS
5529 if test -n "$ETAGS"; then
5530 echo "$as_me:$LINENO: result: $ETAGS" >&5
5531 echo "${ECHO_T}$ETAGS" >&6
5533 echo "$as_me:$LINENO: result: no" >&5
5534 echo "${ECHO_T}no" >&6
5537 # Extract the first word of "groff", so it can be a program name with args.
5538 set dummy groff; ac_word=$2
5539 echo "$as_me:$LINENO: checking for $ac_word" >&5
5540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5541 if test "${ac_cv_path_GROFF+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5556 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
5567 GROFF=$ac_cv_path_GROFF
5569 if test -n "$GROFF"; then
5570 echo "$as_me:$LINENO: result: $GROFF" >&5
5571 echo "${ECHO_T}$GROFF" >&6
5573 echo "$as_me:$LINENO: result: no" >&5
5574 echo "${ECHO_T}no" >&6
5577 # Extract the first word of "gzip", so it can be a program name with args.
5578 set dummy gzip; ac_word=$2
5579 echo "$as_me:$LINENO: checking for $ac_word" >&5
5580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5581 if test "${ac_cv_path_GZIP+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5596 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5603 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
5607 GZIP=$ac_cv_path_GZIP
5609 if test -n "$GZIP"; then
5610 echo "$as_me:$LINENO: result: $GZIP" >&5
5611 echo "${ECHO_T}$GZIP" >&6
5613 echo "$as_me:$LINENO: result: no" >&5
5614 echo "${ECHO_T}no" >&6
5617 # Extract the first word of "pod2html", so it can be a program name with args.
5618 set dummy pod2html; ac_word=$2
5619 echo "$as_me:$LINENO: checking for $ac_word" >&5
5620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5621 if test "${ac_cv_path_POD2HTML+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5626 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 test -z "$as_dir" && as_dir=.
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5643 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
5647 POD2HTML=$ac_cv_path_POD2HTML
5649 if test -n "$POD2HTML"; then
5650 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5651 echo "${ECHO_T}$POD2HTML" >&6
5653 echo "$as_me:$LINENO: result: no" >&5
5654 echo "${ECHO_T}no" >&6
5657 # Extract the first word of "pod2man", so it can be a program name with args.
5658 set dummy pod2man; ac_word=$2
5659 echo "$as_me:$LINENO: checking for $ac_word" >&5
5660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5661 if test "${ac_cv_path_POD2MAN+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5676 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5683 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
5687 POD2MAN=$ac_cv_path_POD2MAN
5689 if test -n "$POD2MAN"; then
5690 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5691 echo "${ECHO_T}$POD2MAN" >&6
5693 echo "$as_me:$LINENO: result: no" >&5
5694 echo "${ECHO_T}no" >&6
5697 # Extract the first word of "runtest", so it can be a program name with args.
5698 set dummy runtest; ac_word=$2
5699 echo "$as_me:$LINENO: checking for $ac_word" >&5
5700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5701 if test "${ac_cv_path_RUNTEST+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 test -z "$as_dir" && as_dir=.
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5716 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
5727 RUNTEST=$ac_cv_path_RUNTEST
5729 if test -n "$RUNTEST"; then
5730 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5731 echo "${ECHO_T}$RUNTEST" >&6
5733 echo "$as_me:$LINENO: result: no" >&5
5734 echo "${ECHO_T}no" >&6
5739 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5740 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5742 # Check whether --with-tclinclude or --without-tclinclude was given.
5743 if test "${with_tclinclude+set}" = set; then
5744 withval="$with_tclinclude"
5745 with_tclinclude=${withval}
5749 if test "${ac_cv_path_tclsh+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 if test x"${with_tclinclude}" != x ; then
5754 if test -f ${with_tclinclude}/tclsh ; then
5755 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5756 elif test -f ${with_tclinclude}/src/tclsh ; then
5757 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5759 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5760 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5761 { (exit 1); exit 1; }; }
5765 if test x"${ac_cv_path_tclsh}" = x ; then
5766 echo "$as_me:$LINENO: result: none" >&5
5767 echo "${ECHO_T}none" >&6
5768 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
5770 # Extract the first word of "$ac_prog", so it can be a program name with args.
5771 set dummy $ac_prog; ac_word=$2
5772 echo "$as_me:$LINENO: checking for $ac_word" >&5
5773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5774 if test "${ac_cv_path_TCLSH+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 test -z "$as_dir" && as_dir=.
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5789 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 TCLSH=$ac_cv_path_TCLSH
5801 if test -n "$TCLSH"; then
5802 echo "$as_me:$LINENO: result: $TCLSH" >&5
5803 echo "${ECHO_T}$TCLSH" >&6
5805 echo "$as_me:$LINENO: result: no" >&5
5806 echo "${ECHO_T}no" >&6
5809 test -n "$TCLSH" && break
5812 if test x"${TCLSH}" = x ; then
5813 ac_cv_path_tclsh='';
5815 ac_cv_path_tclsh="${TCLSH}";
5818 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5819 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5820 TCLSH="${ac_cv_path_tclsh}"
5826 # Extract the first word of "zip", so it can be a program name with args.
5827 set dummy zip; ac_word=$2
5828 echo "$as_me:$LINENO: checking for $ac_word" >&5
5829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5830 if test "${ac_cv_path_ZIP+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 test -z "$as_dir" && as_dir=.
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5845 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
5858 if test -n "$ZIP"; then
5859 echo "$as_me:$LINENO: result: $ZIP" >&5
5860 echo "${ECHO_T}$ZIP" >&6
5862 echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6
5867 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5868 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5869 if test "${llvm_cv_link_use_r+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 ac_cpp='$CPP $CPPFLAGS'
5874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5879 CFLAGS="$CFLAGS -Wl,-R."
5880 cat >conftest.$ac_ext <<_ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5890 int main() { return 0; }
5895 rm -f conftest.$ac_objext conftest$ac_exeext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5897 (eval $ac_link) 2>conftest.er1
5899 grep -v '^ *+' conftest.er1 >conftest.err
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } &&
5904 { ac_try='test -z "$ac_c_werror_flag"
5905 || test ! -s conftest.err'
5906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; } &&
5911 { ac_try='test -s conftest$ac_exeext'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; }; then
5917 llvm_cv_link_use_r=yes
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5922 llvm_cv_link_use_r=no
5924 rm -f conftest.err conftest.$ac_objext \
5925 conftest$ac_exeext conftest.$ac_ext
5928 ac_cpp='$CPP $CPPFLAGS'
5929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5935 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5936 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5937 if test "$llvm_cv_link_use_r" = yes ; then
5939 cat >>confdefs.h <<\_ACEOF
5940 #define HAVE_LINK_R 1
5948 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5949 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5950 if test "${ac_cv_c_const+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 cat >conftest.$ac_ext <<_ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5963 /* FIXME: Include the comments suggested by Paul. */
5965 /* Ultrix mips cc rejects this. */
5966 typedef int charset[2];
5968 /* SunOS 4.1.1 cc rejects this. */
5969 char const *const *ccp;
5971 /* NEC SVR4.0.2 mips cc rejects this. */
5972 struct point {int x, y;};
5973 static struct point const zero = {0,0};
5974 /* AIX XL C 1.02.0.0 rejects this.
5975 It does not let you subtract one const X* pointer from another in
5976 an arm of an if-expression whose if-part is not a constant
5978 const char *g = "string";
5979 ccp = &g + (g ? g-g : 0);
5980 /* HPUX 7.0 cc rejects these. */
5983 ccp = (char const *const *) p;
5984 { /* SCO 3.2v4 cc rejects this. */
5986 char const *s = 0 ? (char *) 0 : (char const *) 0;
5990 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5992 const int *foo = &x[0];
5995 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5996 typedef const int *iptr;
6000 { /* AIX XL C 1.02.0.0 rejects this saying
6001 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6002 struct s { int j; const int *ap[3]; };
6003 struct s *b; b->j = 5;
6005 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6014 rm -f conftest.$ac_objext
6015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6016 (eval $ac_compile) 2>conftest.er1
6018 grep -v '^ *+' conftest.er1 >conftest.err
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -z "$ac_c_werror_flag"
6024 || test ! -s conftest.err'
6025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }; } &&
6030 { ac_try='test -s conftest.$ac_objext'
6031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; }; then
6038 echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6045 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6046 echo "${ECHO_T}$ac_cv_c_const" >&6
6047 if test $ac_cv_c_const = no; then
6049 cat >>confdefs.h <<\_ACEOF
6056 echo "$as_me:$LINENO: checking for egrep" >&5
6057 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6058 if test "${ac_cv_prog_egrep+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6062 then ac_cv_prog_egrep='grep -E'
6063 else ac_cv_prog_egrep='egrep'
6066 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6067 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6068 EGREP=$ac_cv_prog_egrep
6071 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6072 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6073 if test "${ac_cv_header_stdc+set}" = set; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6076 cat >conftest.$ac_ext <<_ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6095 rm -f conftest.$ac_objext
6096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6097 (eval $ac_compile) 2>conftest.er1
6099 grep -v '^ *+' conftest.er1 >conftest.err
6101 cat conftest.err >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } &&
6104 { ac_try='test -z "$ac_c_werror_flag"
6105 || test ! -s conftest.err'
6106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; } &&
6111 { ac_try='test -s conftest.$ac_objext'
6112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); }; }; then
6117 ac_cv_header_stdc=yes
6119 echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.$ac_ext >&5
6122 ac_cv_header_stdc=no
6124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6126 if test $ac_cv_header_stdc = yes; then
6127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6128 cat >conftest.$ac_ext <<_ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6138 $EGREP "memchr" >/dev/null 2>&1; then
6141 ac_cv_header_stdc=no
6147 if test $ac_cv_header_stdc = yes; then
6148 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6149 cat >conftest.$ac_ext <<_ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6159 $EGREP "free" >/dev/null 2>&1; then
6162 ac_cv_header_stdc=no
6168 if test $ac_cv_header_stdc = yes; then
6169 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6170 if test "$cross_compiling" = yes; then
6173 cat >conftest.$ac_ext <<_ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6180 #if ((' ' & 0x0FF) == 0x020)
6181 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6182 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6184 # define ISLOWER(c) \
6185 (('a' <= (c) && (c) <= 'i') \
6186 || ('j' <= (c) && (c) <= 'r') \
6187 || ('s' <= (c) && (c) <= 'z'))
6188 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6191 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6196 for (i = 0; i < 256; i++)
6197 if (XOR (islower (i), ISLOWER (i))
6198 || toupper (i) != TOUPPER (i))
6203 rm -f conftest$ac_exeext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6205 (eval $ac_link) 2>&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; }; then
6216 echo "$as_me: program exited with status $ac_status" >&5
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6221 ac_cv_header_stdc=no
6223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6227 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6228 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6229 if test $ac_cv_header_stdc = yes; then
6231 cat >>confdefs.h <<\_ACEOF
6232 #define STDC_HEADERS 1
6243 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6244 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6245 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6246 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 cat >conftest.$ac_ext <<_ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h. */
6256 #include <sys/types.h>
6268 rm -f conftest.$ac_objext
6269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6270 (eval $ac_compile) 2>conftest.er1
6272 grep -v '^ *+' conftest.er1 >conftest.err
6274 cat conftest.err >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } &&
6277 { ac_try='test -z "$ac_c_werror_flag"
6278 || test ! -s conftest.err'
6279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; } &&
6284 { ac_try='test -s conftest.$ac_objext'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
6290 eval "$as_ac_Header=yes"
6292 echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6295 eval "$as_ac_Header=no"
6297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6302 cat >>confdefs.h <<_ACEOF
6303 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6306 ac_header_dirent=$ac_hdr; break
6310 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6311 if test $ac_header_dirent = dirent.h; then
6312 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6313 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6314 if test "${ac_cv_search_opendir+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 ac_func_search_save_LIBS=$LIBS
6318 ac_cv_search_opendir=no
6319 cat >conftest.$ac_ext <<_ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6326 /* Override any gcc2 internal prototype to avoid an error. */
6330 /* We use char because int might match the return type of a gcc2
6331 builtin and then its argument prototype would still apply. */
6341 rm -f conftest.$ac_objext conftest$ac_exeext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6343 (eval $ac_link) 2>conftest.er1
6345 grep -v '^ *+' conftest.er1 >conftest.err
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try='test -z "$ac_c_werror_flag"
6351 || test ! -s conftest.err'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; } &&
6357 { ac_try='test -s conftest$ac_exeext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6363 ac_cv_search_opendir="none required"
6365 echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6369 rm -f conftest.err conftest.$ac_objext \
6370 conftest$ac_exeext conftest.$ac_ext
6371 if test "$ac_cv_search_opendir" = no; then
6372 for ac_lib in dir; do
6373 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6374 cat >conftest.$ac_ext <<_ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6381 /* Override any gcc2 internal prototype to avoid an error. */
6385 /* We use char because int might match the return type of a gcc2
6386 builtin and then its argument prototype would still apply. */
6396 rm -f conftest.$ac_objext conftest$ac_exeext
6397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6398 (eval $ac_link) 2>conftest.er1
6400 grep -v '^ *+' conftest.er1 >conftest.err
6402 cat conftest.err >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } &&
6405 { ac_try='test -z "$ac_c_werror_flag"
6406 || test ! -s conftest.err'
6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; } &&
6412 { ac_try='test -s conftest$ac_exeext'
6413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; }; then
6418 ac_cv_search_opendir="-l$ac_lib"
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6425 rm -f conftest.err conftest.$ac_objext \
6426 conftest$ac_exeext conftest.$ac_ext
6429 LIBS=$ac_func_search_save_LIBS
6431 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6432 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6433 if test "$ac_cv_search_opendir" != no; then
6434 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6439 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6440 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6441 if test "${ac_cv_search_opendir+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6444 ac_func_search_save_LIBS=$LIBS
6445 ac_cv_search_opendir=no
6446 cat >conftest.$ac_ext <<_ACEOF
6449 cat confdefs.h >>conftest.$ac_ext
6450 cat >>conftest.$ac_ext <<_ACEOF
6451 /* end confdefs.h. */
6453 /* Override any gcc2 internal prototype to avoid an error. */
6457 /* We use char because int might match the return type of a gcc2
6458 builtin and then its argument prototype would still apply. */
6468 rm -f conftest.$ac_objext conftest$ac_exeext
6469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6470 (eval $ac_link) 2>conftest.er1
6472 grep -v '^ *+' conftest.er1 >conftest.err
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try='test -z "$ac_c_werror_flag"
6478 || test ! -s conftest.err'
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; } &&
6484 { ac_try='test -s conftest$ac_exeext'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; }; then
6490 ac_cv_search_opendir="none required"
6492 echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6496 rm -f conftest.err conftest.$ac_objext \
6497 conftest$ac_exeext conftest.$ac_ext
6498 if test "$ac_cv_search_opendir" = no; then
6500 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6501 cat >conftest.$ac_ext <<_ACEOF
6504 cat confdefs.h >>conftest.$ac_ext
6505 cat >>conftest.$ac_ext <<_ACEOF
6506 /* end confdefs.h. */
6508 /* Override any gcc2 internal prototype to avoid an error. */
6512 /* We use char because int might match the return type of a gcc2
6513 builtin and then its argument prototype would still apply. */
6523 rm -f conftest.$ac_objext conftest$ac_exeext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6525 (eval $ac_link) 2>conftest.er1
6527 grep -v '^ *+' conftest.er1 >conftest.err
6529 cat conftest.err >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } &&
6532 { ac_try='test -z "$ac_c_werror_flag"
6533 || test ! -s conftest.err'
6534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; } &&
6539 { ac_try='test -s conftest$ac_exeext'
6540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; }; then
6545 ac_cv_search_opendir="-l$ac_lib"
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6552 rm -f conftest.err conftest.$ac_objext \
6553 conftest$ac_exeext conftest.$ac_ext
6556 LIBS=$ac_func_search_save_LIBS
6558 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6559 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6560 if test "$ac_cv_search_opendir" != no; then
6561 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6567 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6577 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6578 inttypes.h stdint.h unistd.h
6580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6581 echo "$as_me:$LINENO: checking for $ac_header" >&5
6582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 cat >conftest.$ac_ext <<_ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h. */
6592 $ac_includes_default
6594 #include <$ac_header>
6596 rm -f conftest.$ac_objext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6598 (eval $ac_compile) 2>conftest.er1
6600 grep -v '^ *+' conftest.er1 >conftest.err
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } &&
6605 { ac_try='test -z "$ac_c_werror_flag"
6606 || test ! -s conftest.err'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; } &&
6612 { ac_try='test -s conftest.$ac_objext'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
6618 eval "$as_ac_Header=yes"
6620 echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6623 eval "$as_ac_Header=no"
6625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6630 cat >>confdefs.h <<_ACEOF
6631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6640 for ac_header in dlfcn.h
6642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6644 echo "$as_me:$LINENO: checking for $ac_header" >&5
6645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6652 # Is the header compilable?
6653 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6655 cat >conftest.$ac_ext <<_ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h. */
6661 $ac_includes_default
6662 #include <$ac_header>
6664 rm -f conftest.$ac_objext
6665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6666 (eval $ac_compile) 2>conftest.er1
6668 grep -v '^ *+' conftest.er1 >conftest.err
6670 cat conftest.err >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } &&
6673 { ac_try='test -z "$ac_c_werror_flag"
6674 || test ! -s conftest.err'
6675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); }; } &&
6680 { ac_try='test -s conftest.$ac_objext'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; }; then
6686 ac_header_compiler=yes
6688 echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6691 ac_header_compiler=no
6693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6695 echo "${ECHO_T}$ac_header_compiler" >&6
6697 # Is the header present?
6698 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6700 cat >conftest.$ac_ext <<_ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h. */
6706 #include <$ac_header>
6708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6711 grep -v '^ *+' conftest.er1 >conftest.err
6713 cat conftest.err >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } >/dev/null; then
6716 if test -s conftest.err; then
6717 ac_cpp_err=$ac_c_preproc_warn_flag
6718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6725 if test -z "$ac_cpp_err"; then
6726 ac_header_preproc=yes
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6731 ac_header_preproc=no
6733 rm -f conftest.err conftest.$ac_ext
6734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6735 echo "${ECHO_T}$ac_header_preproc" >&6
6737 # So? What about this header?
6738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6744 ac_header_preproc=yes
6747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6761 ## ----------------------------------- ##
6762 ## Report this to llvmbugs@cs.uiuc.edu ##
6763 ## ----------------------------------- ##
6766 sed "s/^/$as_me: WARNING: /" >&2
6769 echo "$as_me:$LINENO: checking for $ac_header" >&5
6770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 eval "$as_ac_Header=\$ac_header_preproc"
6776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6781 cat >>confdefs.h <<_ACEOF
6782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6789 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6790 if test "${enable_ltdl_install+set}" = set; then
6791 enableval="$enable_ltdl_install"
6797 if test x"${enable_ltdl_install-no}" != xno; then
6799 INSTALL_LTDL_FALSE='#'
6801 INSTALL_LTDL_TRUE='#'
6807 if test x"${enable_ltdl_convenience-no}" != xno; then
6808 CONVENIENCE_LTDL_TRUE=
6809 CONVENIENCE_LTDL_FALSE='#'
6811 CONVENIENCE_LTDL_TRUE='#'
6812 CONVENIENCE_LTDL_FALSE=
6816 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6817 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6819 libname_spec='lib$name'
6827 shlibpath_overrides_runpath=unknown
6829 dynamic_linker="$host_os ld.so"
6830 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6831 if test "$GCC" = yes; then
6832 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6833 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6834 # if the path contains ";" then we assume it to be the separator
6835 # otherwise default to the standard path separator (i.e. ":") - it is
6836 # assumed that no part of a normal pathname contains ";" but that should
6837 # okay in the real world where ";" in dirpaths is itself problematic.
6838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6843 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6845 need_lib_prefix=unknown
6846 hardcode_into_libs=no
6848 # when you set need_version to no, make sure it does not cause -set_version
6849 # flags to be left without arguments
6850 need_version=unknown
6855 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6856 shlibpath_var=LIBPATH
6858 # AIX 3 has no versioning support, so we append a major version to the name.
6859 soname_spec='${libname}${release}${shared_ext}$major'
6866 hardcode_into_libs=yes
6867 if test "$host_cpu" = ia64; then
6868 # AIX 5 supports IA64
6869 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6870 shlibpath_var=LD_LIBRARY_PATH
6872 # With GCC up to 2.95.x, collect2 would create an import file
6873 # for dependence libraries. The import file would start with
6874 # the line `#! .'. This would cause the generated library to
6875 # depend on `.', always an invalid library. This was fixed in
6876 # development snapshots of GCC prior to 3.0.
6878 aix4 | aix4.[01] | aix4.[01].*)
6879 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6881 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6888 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6889 # soname into executable. Probably we can add versioning support to
6890 # collect2, so additional links can be useful in future.
6891 if test "$aix_use_runtimelinking" = yes; then
6892 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6893 # instead of lib<name>.a to let people know that these are not
6894 # typical AIX shared libraries.
6895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6897 # We preserve .a as extension for shared libraries through AIX4.2
6898 # and later when we are not doing run time linking.
6899 library_names_spec='${libname}${release}.a $libname.a'
6900 soname_spec='${libname}${release}${shared_ext}$major'
6902 shlibpath_var=LIBPATH
6907 library_names_spec='$libname.ixlibrary $libname.a'
6908 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6909 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'
6913 library_names_spec='${libname}${shared_ext}'
6914 dynamic_linker="$host_os ld.so"
6915 shlibpath_var=LIBRARY_PATH
6921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6922 soname_spec='${libname}${release}${shared_ext}$major'
6923 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6924 shlibpath_var=LD_LIBRARY_PATH
6925 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6926 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6927 # the default ld.so.conf also contains /usr/contrib/lib and
6928 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6929 # libtool to hard-code these into programs
6932 cygwin* | mingw* | pw32*)
6933 version_type=windows
6938 case $GCC,$host_os in
6939 yes,cygwin* | yes,mingw* | yes,pw32*)
6940 library_names_spec='$libname.dll.a'
6941 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6942 postinstall_cmds='base_file=`basename \${file}`~
6943 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6944 dldir=$destdir/`dirname \$dlpath`~
6945 test -d \$dldir || mkdir -p \$dldir~
6946 $install_prog $dir/$dlname \$dldir/$dlname'
6947 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6948 dlpath=$dir/\$dldll~
6950 shlibpath_overrides_runpath=yes
6954 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6955 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6956 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6959 # MinGW DLLs use traditional 'lib' prefix
6960 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6961 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6962 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6963 # It is most probably a Windows format PATH printed by
6964 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6965 # path with ; separators, and with drive letters. We can handle the
6966 # drive letters (cygwin fileutils understands them), so leave them,
6967 # especially as we might pass files found there to a mingw objdump,
6968 # which wouldn't understand a cygwinified path. Ahh.
6969 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6971 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6975 # pw32 DLLs use 'pw' prefix rather than 'lib'
6976 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6982 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6985 dynamic_linker='Win32 ld.exe'
6986 # FIXME: first we should search . and the directory the executable is in
6990 darwin* | rhapsody*)
6991 dynamic_linker="$host_os dyld"
6995 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6996 soname_spec='${libname}${release}${major}$shared_ext'
6997 shlibpath_overrides_runpath=yes
6998 shlibpath_var=DYLD_LIBRARY_PATH
6999 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7000 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7001 if test "$GCC" = yes; then
7002 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"`
7004 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7006 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7014 soname_spec='${libname}${release}${shared_ext}$major'
7015 shlibpath_var=LD_LIBRARY_PATH
7026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7027 soname_spec='${libname}${release}${shared_ext}$major'
7028 shlibpath_var=LD_LIBRARY_PATH
7029 shlibpath_overrides_runpath=no
7030 hardcode_into_libs=yes
7031 dynamic_linker='GNU ld.so'
7035 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7036 version_type=freebsd-$objformat
7037 case $version_type in
7039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7044 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7048 shlibpath_var=LD_LIBRARY_PATH
7051 shlibpath_overrides_runpath=yes
7053 freebsd3.01* | freebsdelf3.01*)
7054 shlibpath_overrides_runpath=yes
7055 hardcode_into_libs=yes
7058 shlibpath_overrides_runpath=no
7059 hardcode_into_libs=yes
7068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7069 soname_spec='${libname}${release}${shared_ext}$major'
7070 shlibpath_var=LD_LIBRARY_PATH
7071 hardcode_into_libs=yes
7074 hpux9* | hpux10* | hpux11*)
7075 # Give a soname corresponding to the major version so that dld.sl refuses to
7076 # link against other versions.
7083 hardcode_into_libs=yes
7084 dynamic_linker="$host_os dld.so"
7085 shlibpath_var=LD_LIBRARY_PATH
7086 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7088 soname_spec='${libname}${release}${shared_ext}$major'
7089 if test "X$HPUX_IA64_MODE" = X32; then
7090 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7092 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7094 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7098 hardcode_into_libs=yes
7099 dynamic_linker="$host_os dld.sl"
7100 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7103 soname_spec='${libname}${release}${shared_ext}$major'
7104 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7105 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7109 dynamic_linker="$host_os dld.sl"
7110 shlibpath_var=SHLIB_PATH
7111 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7113 soname_spec='${libname}${release}${shared_ext}$major'
7116 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7117 postinstall_cmds='chmod 555 $lib'
7120 irix5* | irix6* | nonstopux*)
7122 nonstopux*) version_type=nonstopux ;;
7124 if test "$lt_cv_prog_gnu_ld" = yes; then
7132 soname_spec='${libname}${release}${shared_ext}$major'
7133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7135 irix5* | nonstopux*)
7139 case $LD in # libtool.m4 will add one of these switches to LD
7140 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7141 libsuff= shlibsuff= libmagic=32-bit;;
7142 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7143 libsuff=32 shlibsuff=N32 libmagic=N32;;
7144 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7145 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7146 *) libsuff= shlibsuff= libmagic=never-match;;
7150 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7151 shlibpath_overrides_runpath=no
7152 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7153 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7154 hardcode_into_libs=yes
7157 # No shared lib support for Linux oldld, aout, or coff.
7158 linux*oldld* | linux*aout* | linux*coff*)
7162 # This must be Linux ELF.
7167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7168 soname_spec='${libname}${release}${shared_ext}$major'
7169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7170 shlibpath_var=LD_LIBRARY_PATH
7171 shlibpath_overrides_runpath=no
7172 # This implies no fast_install, which is unacceptable.
7173 # Some rework will be needed to allow for fast_install
7174 # before this can be enabled.
7175 hardcode_into_libs=yes
7177 # Append ld.so.conf contents to the search path
7178 if test -f /etc/ld.so.conf; then
7179 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7180 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7183 # We used to test for /lib/ld.so.1 and disable shared libraries on
7184 # powerpc, because MkLinux only supported shared libraries with the
7185 # GNU dynamic linker. Since this was broken with cross compilers,
7186 # most powerpc-linux boxes support dynamic linking these days and
7187 # people can always --disable-shared, the test was removed, and we
7188 # assume the GNU/Linux dynamic linker is in use.
7189 dynamic_linker='GNU/Linux ld.so'
7196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7197 soname_spec='${libname}${release}${shared_ext}$major'
7198 shlibpath_var=LD_LIBRARY_PATH
7199 shlibpath_overrides_runpath=no
7200 hardcode_into_libs=yes
7201 dynamic_linker='GNU ld.so'
7208 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7211 dynamic_linker='NetBSD (a.out) ld.so'
7213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7214 soname_spec='${libname}${release}${shared_ext}$major'
7215 dynamic_linker='NetBSD ld.elf_so'
7217 shlibpath_var=LD_LIBRARY_PATH
7218 shlibpath_overrides_runpath=yes
7219 hardcode_into_libs=yes
7224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7225 shlibpath_var=LD_LIBRARY_PATH
7226 shlibpath_overrides_runpath=yes
7233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7234 soname_spec='${libname}${release}${shared_ext}$major'
7235 shlibpath_var=LD_LIBRARY_PATH
7236 shlibpath_overrides_runpath=yes
7243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7245 shlibpath_var=LD_LIBRARY_PATH
7246 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7248 openbsd2.[89] | openbsd2.[89].*)
7249 shlibpath_overrides_runpath=no
7252 shlibpath_overrides_runpath=yes
7256 shlibpath_overrides_runpath=yes
7261 libname_spec='$name'
7264 library_names_spec='$libname${shared_ext} $libname.a'
7265 dynamic_linker='OS/2 ld.exe'
7266 shlibpath_var=LIBPATH
7269 osf3* | osf4* | osf5*)
7273 soname_spec='${libname}${release}${shared_ext}$major'
7274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7275 shlibpath_var=LD_LIBRARY_PATH
7276 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7277 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7282 soname_spec='${libname}${release}${shared_ext}$major'
7283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7284 shlibpath_var=LD_LIBRARY_PATH
7291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7292 soname_spec='${libname}${release}${shared_ext}$major'
7293 shlibpath_var=LD_LIBRARY_PATH
7294 shlibpath_overrides_runpath=yes
7295 hardcode_into_libs=yes
7296 # ldd complains unless libraries are executable
7297 postinstall_cmds='chmod +x $lib'
7302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7303 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7304 shlibpath_var=LD_LIBRARY_PATH
7305 shlibpath_overrides_runpath=yes
7306 if test "$with_gnu_ld" = yes; then
7312 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7315 soname_spec='${libname}${release}${shared_ext}$major'
7316 shlibpath_var=LD_LIBRARY_PATH
7317 case $host_vendor in
7319 shlibpath_overrides_runpath=no
7321 export_dynamic_flag_spec='${wl}-Blargedynsym'
7322 runpath_var=LD_RUN_PATH
7330 shlibpath_overrides_runpath=no
7331 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7337 if test -d /usr/nec ;then
7339 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7340 soname_spec='$libname${shared_ext}.$major'
7341 shlibpath_var=LD_LIBRARY_PATH
7347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7348 soname_spec='${libname}${release}${shared_ext}$major'
7349 shlibpath_var=LD_LIBRARY_PATH
7356 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7357 echo "${ECHO_T}$dynamic_linker" >&6
7358 test "$dynamic_linker" = no && can_build_shared=no
7361 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7362 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7363 if test "${libltdl_cv_shlibext+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 eval libltdl_cv_shlibext=$shrext_cmds
7371 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7372 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7373 if test -n "$libltdl_cv_shlibext"; then
7375 cat >>confdefs.h <<_ACEOF
7376 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7382 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7383 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7384 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 libltdl_cv_shlibpath_var="$shlibpath_var"
7389 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7390 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7391 if test -n "$libltdl_cv_shlibpath_var"; then
7393 cat >>confdefs.h <<_ACEOF
7394 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7400 echo "$as_me:$LINENO: checking for the default library search path" >&5
7401 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7402 if test "${libltdl_cv_sys_search_path+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7407 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7408 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7409 if test -n "$libltdl_cv_sys_search_path"; then
7411 for dir in $libltdl_cv_sys_search_path; do
7412 if test -z "$sys_search_path"; then
7413 sys_search_path="$dir"
7415 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7419 cat >>confdefs.h <<_ACEOF
7420 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7425 echo "$as_me:$LINENO: checking for objdir" >&5
7426 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7427 if test "${libltdl_cv_objdir+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 libltdl_cv_objdir="$objdir"
7431 if test -n "$objdir"; then
7434 rm -f .libs 2>/dev/null
7435 mkdir .libs 2>/dev/null
7436 if test -d .libs; then
7437 libltdl_cv_objdir=.libs
7439 # MS-DOS does not allow filenames that begin with a dot.
7440 libltdl_cv_objdir=_libs
7442 rmdir .libs 2>/dev/null
7446 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7447 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7449 cat >>confdefs.h <<_ACEOF
7450 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7454 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7455 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7456 if test "${lt_cv_path_NM+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 if test -n "$NM"; then
7460 # Let the user override the test.
7463 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7464 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7466 test -z "$ac_dir" && ac_dir=.
7467 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7468 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7469 # Check to see if the nm accepts a BSD-compat flag.
7470 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7471 # nm: unknown option "B" ignored
7472 # Tru64's nm complains that /dev/null is an invalid object file
7473 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7474 */dev/null* | *'Invalid file or object type'*)
7475 lt_cv_path_NM="$tmp_nm -B"
7479 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7481 lt_cv_path_NM="$tmp_nm -p"
7485 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7486 continue # so that we can try to find one that supports BSD flags
7493 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7496 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7497 echo "${ECHO_T}$lt_cv_path_NM" >&6
7504 # Check for command to grab the raw symbol name followed by C symbol from nm.
7505 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7506 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7507 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 # These are sane defaults that work on at least a few old systems.
7512 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7514 # Character class describing NM global symbol codes.
7515 symcode='[BCDEGRST]'
7517 # Regexp to match symbols that can be accessed directly from C.
7518 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7520 # Transform the above into a raw symbol and a C symbol.
7521 symxfrm='\1 \2\3 \3'
7523 # Transform an extracted symbol line into a proper C declaration
7524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7526 # Transform an extracted symbol line into symbol name and symbol address
7527 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'"
7529 # Define system-specific variables.
7534 cygwin* | mingw* | pw32*)
7535 symcode='[ABCDGISTW]'
7537 hpux*) # Its linker distinguishes data from code symbols
7538 if test "$host_cpu" = ia64; then
7539 symcode='[ABCDEGRST]'
7541 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7542 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'"
7545 if test "$host_cpu" = ia64; then
7546 symcode='[ABCDGIRSTW]'
7547 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7548 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'"
7552 symcode='[BCDEGRST]'
7555 symcode='[BCDEGQRST]'
7565 # Handle CRLF in mingw tool chain
7569 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7573 # If we're using GNU nm, then use its standard symbol codes.
7574 case `$NM -V 2>&1` in
7575 *GNU* | *'with BFD'*)
7576 symcode='[ABCDGIRSTW]' ;;
7579 # Try without a prefix undercore, then with it.
7580 for ac_symprfx in "" "_"; do
7582 # Write the raw and C identifiers.
7583 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7585 # Check to see that the pipe works correctly.
7589 cat > conftest.$ac_ext <<EOF
7594 void nm_test_func(){}
7598 int main(){nm_test_var='a';nm_test_func();return(0);}
7601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7602 (eval $ac_compile) 2>&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; then
7606 # Now try to grab the symbols.
7608 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7609 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } && test -s "$nlist"; then
7613 # Try sorting and uniquifying the output.
7614 if sort "$nlist" | uniq > "$nlist"T; then
7615 mv -f "$nlist"T "$nlist"
7620 # Make sure that we snagged all the symbols we need.
7621 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7622 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7623 cat <<EOF > conftest.$ac_ext
7629 # Now generate the symbol file.
7630 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7632 cat <<EOF >> conftest.$ac_ext
7633 #if defined (__STDC__) && __STDC__
7634 # define lt_ptr_t void *
7636 # define lt_ptr_t char *
7640 /* The mapping between symbol names and symbols. */
7645 lt_preloaded_symbols[] =
7648 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7649 cat <<\EOF >> conftest.$ac_ext
7657 # Now try linking the two files.
7658 mv conftest.$ac_objext conftstm.$ac_objext
7659 lt_save_LIBS="$LIBS"
7660 lt_save_CFLAGS="$CFLAGS"
7661 LIBS="conftstm.$ac_objext"
7662 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7664 (eval $ac_link) 2>&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7670 LIBS="$lt_save_LIBS"
7671 CFLAGS="$lt_save_CFLAGS"
7673 echo "cannot find nm_test_func in $nlist" >&5
7676 echo "cannot find nm_test_var in $nlist" >&5
7679 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7682 echo "$progname: failed program was:" >&5
7683 cat conftest.$ac_ext >&5
7685 rm -f conftest* conftst*
7687 # Do not use the global_symbol_pipe unless it works.
7688 if test "$pipe_works" = yes; then
7691 lt_cv_sys_global_symbol_pipe=
7697 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7698 lt_cv_sys_global_symbol_to_cdecl=
7700 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7701 echo "$as_me:$LINENO: result: failed" >&5
7702 echo "${ECHO_T}failed" >&6
7704 echo "$as_me:$LINENO: result: ok" >&5
7705 echo "${ECHO_T}ok" >&6
7709 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7710 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7711 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7715 libltdl_cv_preloaded_symbols=yes
7717 libltdl_cv_preloaded_symbols=no
7721 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7722 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7723 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7725 cat >>confdefs.h <<\_ACEOF
7726 #define HAVE_PRELOADED_SYMBOLS 1
7734 ac_cpp='$CPP $CPPFLAGS'
7735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7740 echo "$as_me:$LINENO: checking for shl_load" >&5
7741 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7742 if test "${ac_cv_func_shl_load+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 cat >conftest.$ac_ext <<_ACEOF
7748 cat confdefs.h >>conftest.$ac_ext
7749 cat >>conftest.$ac_ext <<_ACEOF
7750 /* end confdefs.h. */
7751 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7753 #define shl_load innocuous_shl_load
7755 /* System header to define __stub macros and hopefully few prototypes,
7756 which can conflict with char shl_load (); below.
7757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7758 <limits.h> exists even on freestanding compilers. */
7761 # include <limits.h>
7763 # include <assert.h>
7768 /* Override any gcc2 internal prototype to avoid an error. */
7773 /* We use char because int might match the return type of a gcc2
7774 builtin and then its argument prototype would still apply. */
7776 /* The GNU C library defines this for functions which it implements
7777 to always fail with ENOSYS. Some functions are actually named
7778 something starting with __ and the normal name is an alias. */
7779 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7782 char (*f) () = shl_load;
7791 return f != shl_load;
7796 rm -f conftest.$ac_objext conftest$ac_exeext
7797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7798 (eval $ac_link) 2>conftest.er1
7800 grep -v '^ *+' conftest.er1 >conftest.err
7802 cat conftest.err >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } &&
7805 { ac_try='test -z "$ac_c_werror_flag"
7806 || test ! -s conftest.err'
7807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); }; } &&
7812 { ac_try='test -s conftest$ac_exeext'
7813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); }; }; then
7818 ac_cv_func_shl_load=yes
7820 echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7823 ac_cv_func_shl_load=no
7825 rm -f conftest.err conftest.$ac_objext \
7826 conftest$ac_exeext conftest.$ac_ext
7828 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7829 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7830 if test $ac_cv_func_shl_load = yes; then
7832 cat >>confdefs.h <<\_ACEOF
7833 #define HAVE_SHL_LOAD 1
7837 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7838 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7839 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 ac_check_lib_save_LIBS=$LIBS
7844 cat >conftest.$ac_ext <<_ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7851 /* Override any gcc2 internal prototype to avoid an error. */
7855 /* We use char because int might match the return type of a gcc2
7856 builtin and then its argument prototype would still apply. */
7866 rm -f conftest.$ac_objext conftest$ac_exeext
7867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7868 (eval $ac_link) 2>conftest.er1
7870 grep -v '^ *+' conftest.er1 >conftest.err
7872 cat conftest.err >&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); } &&
7875 { ac_try='test -z "$ac_c_werror_flag"
7876 || test ! -s conftest.err'
7877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); }; } &&
7882 { ac_try='test -s conftest$ac_exeext'
7883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); }; }; then
7888 ac_cv_lib_dld_shl_load=yes
7890 echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7893 ac_cv_lib_dld_shl_load=no
7895 rm -f conftest.err conftest.$ac_objext \
7896 conftest$ac_exeext conftest.$ac_ext
7897 LIBS=$ac_check_lib_save_LIBS
7899 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7900 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7901 if test $ac_cv_lib_dld_shl_load = yes; then
7903 cat >>confdefs.h <<\_ACEOF
7904 #define HAVE_SHL_LOAD 1
7907 LIBADD_DL="$LIBADD_DL -ldld"
7909 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7910 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7911 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 ac_check_lib_save_LIBS=$LIBS
7916 cat >conftest.$ac_ext <<_ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7923 /* Override any gcc2 internal prototype to avoid an error. */
7927 /* We use char because int might match the return type of a gcc2
7928 builtin and then its argument prototype would still apply. */
7938 rm -f conftest.$ac_objext conftest$ac_exeext
7939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7940 (eval $ac_link) 2>conftest.er1
7942 grep -v '^ *+' conftest.er1 >conftest.err
7944 cat conftest.err >&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } &&
7947 { ac_try='test -z "$ac_c_werror_flag"
7948 || test ! -s conftest.err'
7949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; } &&
7954 { ac_try='test -s conftest$ac_exeext'
7955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; }; then
7960 ac_cv_lib_dl_dlopen=yes
7962 echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7965 ac_cv_lib_dl_dlopen=no
7967 rm -f conftest.err conftest.$ac_objext \
7968 conftest$ac_exeext conftest.$ac_ext
7969 LIBS=$ac_check_lib_save_LIBS
7971 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7972 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7973 if test $ac_cv_lib_dl_dlopen = yes; then
7975 cat >>confdefs.h <<\_ACEOF
7976 #define HAVE_LIBDL 1
7979 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7981 cat >conftest.$ac_ext <<_ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7999 rm -f conftest.$ac_objext conftest$ac_exeext
8000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8001 (eval $ac_link) 2>conftest.er1
8003 grep -v '^ *+' conftest.er1 >conftest.err
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } &&
8008 { ac_try='test -z "$ac_c_werror_flag"
8009 || test ! -s conftest.err'
8010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); }; } &&
8015 { ac_try='test -s conftest$ac_exeext'
8016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); }; }; then
8022 cat >>confdefs.h <<\_ACEOF
8023 #define HAVE_LIBDL 1
8025 libltdl_cv_func_dlopen="yes"
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8030 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8031 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8032 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8033 echo $ECHO_N "(cached) $ECHO_C" >&6
8035 ac_check_lib_save_LIBS=$LIBS
8037 cat >conftest.$ac_ext <<_ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8044 /* Override any gcc2 internal prototype to avoid an error. */
8048 /* We use char because int might match the return type of a gcc2
8049 builtin and then its argument prototype would still apply. */
8059 rm -f conftest.$ac_objext conftest$ac_exeext
8060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8061 (eval $ac_link) 2>conftest.er1
8063 grep -v '^ *+' conftest.er1 >conftest.err
8065 cat conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } &&
8068 { ac_try='test -z "$ac_c_werror_flag"
8069 || test ! -s conftest.err'
8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; } &&
8075 { ac_try='test -s conftest$ac_exeext'
8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; }; then
8081 ac_cv_lib_svld_dlopen=yes
8083 echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8086 ac_cv_lib_svld_dlopen=no
8088 rm -f conftest.err conftest.$ac_objext \
8089 conftest$ac_exeext conftest.$ac_ext
8090 LIBS=$ac_check_lib_save_LIBS
8092 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8093 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8094 if test $ac_cv_lib_svld_dlopen = yes; then
8096 cat >>confdefs.h <<\_ACEOF
8097 #define HAVE_LIBDL 1
8100 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8102 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8103 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8104 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 ac_check_lib_save_LIBS=$LIBS
8109 cat >conftest.$ac_ext <<_ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8116 /* Override any gcc2 internal prototype to avoid an error. */
8120 /* We use char because int might match the return type of a gcc2
8121 builtin and then its argument prototype would still apply. */
8131 rm -f conftest.$ac_objext conftest$ac_exeext
8132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8133 (eval $ac_link) 2>conftest.er1
8135 grep -v '^ *+' conftest.er1 >conftest.err
8137 cat conftest.err >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); } &&
8140 { ac_try='test -z "$ac_c_werror_flag"
8141 || test ! -s conftest.err'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; } &&
8147 { ac_try='test -s conftest$ac_exeext'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; }; then
8153 ac_cv_lib_dld_dld_link=yes
8155 echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8158 ac_cv_lib_dld_dld_link=no
8160 rm -f conftest.err conftest.$ac_objext \
8161 conftest$ac_exeext conftest.$ac_ext
8162 LIBS=$ac_check_lib_save_LIBS
8164 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8165 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8166 if test $ac_cv_lib_dld_dld_link = yes; then
8168 cat >>confdefs.h <<\_ACEOF
8172 LIBADD_DL="$LIBADD_DL -ldld"
8174 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8175 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8176 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
8179 cat >conftest.$ac_ext <<_ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h. */
8185 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8187 #define _dyld_func_lookup innocuous__dyld_func_lookup
8189 /* System header to define __stub macros and hopefully few prototypes,
8190 which can conflict with char _dyld_func_lookup (); below.
8191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8192 <limits.h> exists even on freestanding compilers. */
8195 # include <limits.h>
8197 # include <assert.h>
8200 #undef _dyld_func_lookup
8202 /* Override any gcc2 internal prototype to avoid an error. */
8207 /* We use char because int might match the return type of a gcc2
8208 builtin and then its argument prototype would still apply. */
8209 char _dyld_func_lookup ();
8210 /* The GNU C library defines this for functions which it implements
8211 to always fail with ENOSYS. Some functions are actually named
8212 something starting with __ and the normal name is an alias. */
8213 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8216 char (*f) () = _dyld_func_lookup;
8225 return f != _dyld_func_lookup;
8230 rm -f conftest.$ac_objext conftest$ac_exeext
8231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8232 (eval $ac_link) 2>conftest.er1
8234 grep -v '^ *+' conftest.er1 >conftest.err
8236 cat conftest.err >&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } &&
8239 { ac_try='test -z "$ac_c_werror_flag"
8240 || test ! -s conftest.err'
8241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; } &&
8246 { ac_try='test -s conftest$ac_exeext'
8247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); }; }; then
8252 ac_cv_func__dyld_func_lookup=yes
8254 echo "$as_me: failed program was:" >&5
8255 sed 's/^/| /' conftest.$ac_ext >&5
8257 ac_cv_func__dyld_func_lookup=no
8259 rm -f conftest.err conftest.$ac_objext \
8260 conftest$ac_exeext conftest.$ac_ext
8262 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8263 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8264 if test $ac_cv_func__dyld_func_lookup = yes; then
8266 cat >>confdefs.h <<\_ACEOF
8280 rm -f conftest.err conftest.$ac_objext \
8281 conftest$ac_exeext conftest.$ac_ext
8292 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8294 lt_save_LIBS="$LIBS"
8295 LIBS="$LIBS $LIBADD_DL"
8297 for ac_func in dlerror
8299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8300 echo "$as_me:$LINENO: checking for $ac_func" >&5
8301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8302 if eval "test \"\${$as_ac_var+set}\" = set"; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 cat >conftest.$ac_ext <<_ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8313 #define $ac_func innocuous_$ac_func
8315 /* System header to define __stub macros and hopefully few prototypes,
8316 which can conflict with char $ac_func (); below.
8317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8318 <limits.h> exists even on freestanding compilers. */
8321 # include <limits.h>
8323 # include <assert.h>
8328 /* Override any gcc2 internal prototype to avoid an error. */
8333 /* We use char because int might match the return type of a gcc2
8334 builtin and then its argument prototype would still apply. */
8336 /* The GNU C library defines this for functions which it implements
8337 to always fail with ENOSYS. Some functions are actually named
8338 something starting with __ and the normal name is an alias. */
8339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8342 char (*f) () = $ac_func;
8351 return f != $ac_func;
8356 rm -f conftest.$ac_objext conftest$ac_exeext
8357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8358 (eval $ac_link) 2>conftest.er1
8360 grep -v '^ *+' conftest.er1 >conftest.err
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
8365 { ac_try='test -z "$ac_c_werror_flag"
8366 || test ! -s conftest.err'
8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; } &&
8372 { ac_try='test -s conftest$ac_exeext'
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8378 eval "$as_ac_var=yes"
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8383 eval "$as_ac_var=no"
8385 rm -f conftest.err conftest.$ac_objext \
8386 conftest$ac_exeext conftest.$ac_ext
8388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8389 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8390 if test `eval echo '${'$as_ac_var'}'` = yes; then
8391 cat >>confdefs.h <<_ACEOF
8392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8398 LIBS="$lt_save_LIBS"
8401 ac_cpp='$CPP $CPPFLAGS'
8402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8408 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8409 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8410 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 ac_cv_sys_symbol_underscore=no
8414 cat > conftest.$ac_ext <<EOF
8415 void nm_test_func(){}
8416 int main(){nm_test_func;return 0;}
8418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8419 (eval $ac_compile) 2>&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; then
8423 # Now try to grab the symbols.
8424 ac_nlist=conftest.nm
8425 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8426 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } && test -s "$ac_nlist"; then
8430 # See whether the symbols have a leading underscore.
8431 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8432 ac_cv_sys_symbol_underscore=yes
8434 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8437 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8441 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8444 echo "configure: failed program was:" >&5
8450 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8451 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8454 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8455 if test x"$libltdl_cv_func_dlopen" = xyes ||
8456 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8457 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8458 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8459 if test "${libltdl_cv_need_uscore+set}" = set; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 libltdl_cv_need_uscore=unknown
8464 LIBS="$LIBS $LIBADD_DL"
8465 if test "$cross_compiling" = yes; then :
8466 libltdl_cv_need_uscore=cross
8468 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8469 lt_status=$lt_dlunknown
8470 cat > conftest.$ac_ext <<EOF
8471 #line 8471 "configure"
8472 #include "confdefs.h"
8481 # define LT_DLGLOBAL RTLD_GLOBAL
8484 # define LT_DLGLOBAL DL_GLOBAL
8486 # define LT_DLGLOBAL 0
8490 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8491 find out it does not work in some platform. */
8492 #ifndef LT_DLLAZY_OR_NOW
8494 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8497 # define LT_DLLAZY_OR_NOW DL_LAZY
8500 # define LT_DLLAZY_OR_NOW RTLD_NOW
8503 # define LT_DLLAZY_OR_NOW DL_NOW
8505 # define LT_DLLAZY_OR_NOW 0
8513 extern "C" void exit (int);
8516 void fnord() { int i=42;}
8519 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8520 int status = $lt_dlunknown;
8524 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8525 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8526 /* dlclose (self); */
8532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533 (eval $ac_link) 2>&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8537 (./conftest; exit; ) 2>/dev/null
8540 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8541 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8545 # compilation failed
8554 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8555 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8559 if test x"$libltdl_cv_need_uscore" = xyes; then
8561 cat >>confdefs.h <<\_ACEOF
8562 #define NEED_USCORE 1
8568 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8569 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8570 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8571 echo $ECHO_N "(cached) $ECHO_C" >&6
8573 # PORTME does your system automatically load deplibs for dlopen?
8574 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8575 # For now, we just catch OSes we know something about -- in the
8576 # future, we'll try test this programmatically.
8577 libltdl_cv_sys_dlopen_deplibs=unknown
8579 aix3*|aix4.1.*|aix4.2.*)
8580 # Unknown whether this is true for these versions of AIX, but
8581 # we want this `case' here to explicitly catch those versions.
8582 libltdl_cv_sys_dlopen_deplibs=unknown
8585 libltdl_cv_sys_dlopen_deplibs=yes
8588 # Assuming the user has installed a libdl from somewhere, this is true
8589 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8590 libltdl_cv_sys_dlopen_deplibs=yes
8592 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8593 # GNU and its variants, using gnu ld.so (Glibc)
8594 libltdl_cv_sys_dlopen_deplibs=yes
8597 libltdl_cv_sys_dlopen_deplibs=yes
8599 irix[12345]*|irix6.[01]*)
8600 # Catch all versions of IRIX before 6.2, and indicate that we don't
8601 # know how it worked for any of those versions.
8602 libltdl_cv_sys_dlopen_deplibs=unknown
8605 # The case above catches anything before 6.2, and it's known that
8606 # at 6.2 and later dlopen does load deplibs.
8607 libltdl_cv_sys_dlopen_deplibs=yes
8610 libltdl_cv_sys_dlopen_deplibs=yes
8613 libltdl_cv_sys_dlopen_deplibs=yes
8616 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8617 # it did *not* use an RPATH in a shared library to find objects the
8618 # library depends on, so we explictly say `no'.
8619 libltdl_cv_sys_dlopen_deplibs=no
8621 osf5.0|osf5.0a|osf5.1)
8622 # dlopen *does* load deplibs and with the right loader patch applied
8623 # it even uses RPATH in a shared library to search for shared objects
8624 # that the library depends on, but there's no easy way to know if that
8625 # patch is installed. Since this is the case, all we can really
8626 # say is unknown -- it depends on the patch being installed. If
8627 # it is, this changes to `yes'. Without it, it would be `no'.
8628 libltdl_cv_sys_dlopen_deplibs=unknown
8631 # the two cases above should catch all versions of osf <= 5.1. Read
8632 # the comments above for what we know about them.
8633 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8634 # is used to find them so we can finally say `yes'.
8635 libltdl_cv_sys_dlopen_deplibs=yes
8638 libltdl_cv_sys_dlopen_deplibs=yes
8643 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8644 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8645 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8647 cat >>confdefs.h <<\_ACEOF
8648 #define LTDL_DLOPEN_DEPLIBS 1
8654 for ac_header in argz.h
8656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8658 echo "$as_me:$LINENO: checking for $ac_header" >&5
8659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8666 # Is the header compilable?
8667 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8669 cat >conftest.$ac_ext <<_ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h. */
8675 $ac_includes_default
8676 #include <$ac_header>
8678 rm -f conftest.$ac_objext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8680 (eval $ac_compile) 2>conftest.er1
8682 grep -v '^ *+' conftest.er1 >conftest.err
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
8687 { ac_try='test -z "$ac_c_werror_flag"
8688 || test ! -s conftest.err'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } &&
8694 { ac_try='test -s conftest.$ac_objext'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
8700 ac_header_compiler=yes
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 ac_header_compiler=no
8707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8709 echo "${ECHO_T}$ac_header_compiler" >&6
8711 # Is the header present?
8712 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8714 cat >conftest.$ac_ext <<_ACEOF
8717 cat confdefs.h >>conftest.$ac_ext
8718 cat >>conftest.$ac_ext <<_ACEOF
8719 /* end confdefs.h. */
8720 #include <$ac_header>
8722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8725 grep -v '^ *+' conftest.er1 >conftest.err
8727 cat conftest.err >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } >/dev/null; then
8730 if test -s conftest.err; then
8731 ac_cpp_err=$ac_c_preproc_warn_flag
8732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8739 if test -z "$ac_cpp_err"; then
8740 ac_header_preproc=yes
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 ac_header_preproc=no
8747 rm -f conftest.err conftest.$ac_ext
8748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8749 echo "${ECHO_T}$ac_header_preproc" >&6
8751 # So? What about this header?
8752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8758 ac_header_preproc=yes
8761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8775 ## ----------------------------------- ##
8776 ## Report this to llvmbugs@cs.uiuc.edu ##
8777 ## ----------------------------------- ##
8780 sed "s/^/$as_me: WARNING: /" >&2
8783 echo "$as_me:$LINENO: checking for $ac_header" >&5
8784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8788 eval "$as_ac_Header=\$ac_header_preproc"
8790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8795 cat >>confdefs.h <<_ACEOF
8796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8804 echo "$as_me:$LINENO: checking for error_t" >&5
8805 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8806 if test "${ac_cv_type_error_t+set}" = set; then
8807 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 cat >conftest.$ac_ext <<_ACEOF
8812 cat confdefs.h >>conftest.$ac_ext
8813 cat >>conftest.$ac_ext <<_ACEOF
8814 /* end confdefs.h. */
8824 if (sizeof (error_t))
8830 rm -f conftest.$ac_objext
8831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8832 (eval $ac_compile) 2>conftest.er1
8834 grep -v '^ *+' conftest.er1 >conftest.err
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } &&
8839 { ac_try='test -z "$ac_c_werror_flag"
8840 || test ! -s conftest.err'
8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }; } &&
8846 { ac_try='test -s conftest.$ac_objext'
8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); }; }; then
8852 ac_cv_type_error_t=yes
8854 echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.$ac_ext >&5
8857 ac_cv_type_error_t=no
8859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8861 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8862 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8863 if test $ac_cv_type_error_t = yes; then
8865 cat >>confdefs.h <<_ACEOF
8866 #define HAVE_ERROR_T 1
8872 cat >>confdefs.h <<\_ACEOF
8884 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8887 echo "$as_me:$LINENO: checking for $ac_func" >&5
8888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8889 if eval "test \"\${$as_ac_var+set}\" = set"; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 cat >conftest.$ac_ext <<_ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8900 #define $ac_func innocuous_$ac_func
8902 /* System header to define __stub macros and hopefully few prototypes,
8903 which can conflict with char $ac_func (); below.
8904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8905 <limits.h> exists even on freestanding compilers. */
8908 # include <limits.h>
8910 # include <assert.h>
8915 /* Override any gcc2 internal prototype to avoid an error. */
8920 /* We use char because int might match the return type of a gcc2
8921 builtin and then its argument prototype would still apply. */
8923 /* The GNU C library defines this for functions which it implements
8924 to always fail with ENOSYS. Some functions are actually named
8925 something starting with __ and the normal name is an alias. */
8926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8929 char (*f) () = $ac_func;
8938 return f != $ac_func;
8943 rm -f conftest.$ac_objext conftest$ac_exeext
8944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8945 (eval $ac_link) 2>conftest.er1
8947 grep -v '^ *+' conftest.er1 >conftest.err
8949 cat conftest.err >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } &&
8952 { ac_try='test -z "$ac_c_werror_flag"
8953 || test ! -s conftest.err'
8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; } &&
8959 { ac_try='test -s conftest$ac_exeext'
8960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); }; }; then
8965 eval "$as_ac_var=yes"
8967 echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8970 eval "$as_ac_var=no"
8972 rm -f conftest.err conftest.$ac_objext \
8973 conftest$ac_exeext conftest.$ac_ext
8975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8977 if test `eval echo '${'$as_ac_var'}'` = yes; then
8978 cat >>confdefs.h <<_ACEOF
8979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9012 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9017 echo "$as_me:$LINENO: checking for $ac_header" >&5
9018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9025 # Is the header compilable?
9026 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9028 cat >conftest.$ac_ext <<_ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h. */
9034 $ac_includes_default
9035 #include <$ac_header>
9037 rm -f conftest.$ac_objext
9038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9039 (eval $ac_compile) 2>conftest.er1
9041 grep -v '^ *+' conftest.er1 >conftest.err
9043 cat conftest.err >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } &&
9046 { ac_try='test -z "$ac_c_werror_flag"
9047 || test ! -s conftest.err'
9048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; } &&
9053 { ac_try='test -s conftest.$ac_objext'
9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; }; then
9059 ac_header_compiler=yes
9061 echo "$as_me: failed program was:" >&5
9062 sed 's/^/| /' conftest.$ac_ext >&5
9064 ac_header_compiler=no
9066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9068 echo "${ECHO_T}$ac_header_compiler" >&6
9070 # Is the header present?
9071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9073 cat >conftest.$ac_ext <<_ACEOF
9076 cat confdefs.h >>conftest.$ac_ext
9077 cat >>conftest.$ac_ext <<_ACEOF
9078 /* end confdefs.h. */
9079 #include <$ac_header>
9081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9084 grep -v '^ *+' conftest.er1 >conftest.err
9086 cat conftest.err >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } >/dev/null; then
9089 if test -s conftest.err; then
9090 ac_cpp_err=$ac_c_preproc_warn_flag
9091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9098 if test -z "$ac_cpp_err"; then
9099 ac_header_preproc=yes
9101 echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9104 ac_header_preproc=no
9106 rm -f conftest.err conftest.$ac_ext
9107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9108 echo "${ECHO_T}$ac_header_preproc" >&6
9110 # So? What about this header?
9111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9117 ac_header_preproc=yes
9120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9124 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9126 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9127 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9130 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9134 ## ----------------------------------- ##
9135 ## Report this to llvmbugs@cs.uiuc.edu ##
9136 ## ----------------------------------- ##
9139 sed "s/^/$as_me: WARNING: /" >&2
9142 echo "$as_me:$LINENO: checking for $ac_header" >&5
9143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9147 eval "$as_ac_Header=\$ac_header_preproc"
9149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9154 cat >>confdefs.h <<_ACEOF
9155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9166 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9170 echo "$as_me:$LINENO: checking for $ac_header" >&5
9171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9178 # Is the header compilable?
9179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9181 cat >conftest.$ac_ext <<_ACEOF
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h. */
9187 $ac_includes_default
9188 #include <$ac_header>
9190 rm -f conftest.$ac_objext
9191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9192 (eval $ac_compile) 2>conftest.er1
9194 grep -v '^ *+' conftest.er1 >conftest.err
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } &&
9199 { ac_try='test -z "$ac_c_werror_flag"
9200 || test ! -s conftest.err'
9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; } &&
9206 { ac_try='test -s conftest.$ac_objext'
9207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }; }; then
9212 ac_header_compiler=yes
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9217 ac_header_compiler=no
9219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9221 echo "${ECHO_T}$ac_header_compiler" >&6
9223 # Is the header present?
9224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9226 cat >conftest.$ac_ext <<_ACEOF
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h. */
9232 #include <$ac_header>
9234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9237 grep -v '^ *+' conftest.er1 >conftest.err
9239 cat conftest.err >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } >/dev/null; then
9242 if test -s conftest.err; then
9243 ac_cpp_err=$ac_c_preproc_warn_flag
9244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9251 if test -z "$ac_cpp_err"; then
9252 ac_header_preproc=yes
9254 echo "$as_me: failed program was:" >&5
9255 sed 's/^/| /' conftest.$ac_ext >&5
9257 ac_header_preproc=no
9259 rm -f conftest.err conftest.$ac_ext
9260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9261 echo "${ECHO_T}$ac_header_preproc" >&6
9263 # So? What about this header?
9264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9270 ac_header_preproc=yes
9273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9287 ## ----------------------------------- ##
9288 ## Report this to llvmbugs@cs.uiuc.edu ##
9289 ## ----------------------------------- ##
9292 sed "s/^/$as_me: WARNING: /" >&2
9295 echo "$as_me:$LINENO: checking for $ac_header" >&5
9296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9298 echo $ECHO_N "(cached) $ECHO_C" >&6
9300 eval "$as_ac_Header=\$ac_header_preproc"
9302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9307 cat >>confdefs.h <<_ACEOF
9308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9317 for ac_header in string.h strings.h
9319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9321 echo "$as_me:$LINENO: checking for $ac_header" >&5
9322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9324 echo $ECHO_N "(cached) $ECHO_C" >&6
9326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9329 # Is the header compilable?
9330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9332 cat >conftest.$ac_ext <<_ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9338 $ac_includes_default
9339 #include <$ac_header>
9341 rm -f conftest.$ac_objext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9343 (eval $ac_compile) 2>conftest.er1
9345 grep -v '^ *+' conftest.er1 >conftest.err
9347 cat conftest.err >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } &&
9350 { ac_try='test -z "$ac_c_werror_flag"
9351 || test ! -s conftest.err'
9352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; } &&
9357 { ac_try='test -s conftest.$ac_objext'
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; }; then
9363 ac_header_compiler=yes
9365 echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9368 ac_header_compiler=no
9370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9372 echo "${ECHO_T}$ac_header_compiler" >&6
9374 # Is the header present?
9375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9377 cat >conftest.$ac_ext <<_ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9383 #include <$ac_header>
9385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9388 grep -v '^ *+' conftest.er1 >conftest.err
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } >/dev/null; then
9393 if test -s conftest.err; then
9394 ac_cpp_err=$ac_c_preproc_warn_flag
9395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9402 if test -z "$ac_cpp_err"; then
9403 ac_header_preproc=yes
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9408 ac_header_preproc=no
9410 rm -f conftest.err conftest.$ac_ext
9411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9412 echo "${ECHO_T}$ac_header_preproc" >&6
9414 # So? What about this header?
9415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9421 ac_header_preproc=yes
9424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9438 ## ----------------------------------- ##
9439 ## Report this to llvmbugs@cs.uiuc.edu ##
9440 ## ----------------------------------- ##
9443 sed "s/^/$as_me: WARNING: /" >&2
9446 echo "$as_me:$LINENO: checking for $ac_header" >&5
9447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
9451 eval "$as_ac_Header=\$ac_header_preproc"
9453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9458 cat >>confdefs.h <<_ACEOF
9459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9469 for ac_func in strchr index
9471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9472 echo "$as_me:$LINENO: checking for $ac_func" >&5
9473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9474 if eval "test \"\${$as_ac_var+set}\" = set"; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 cat >conftest.$ac_ext <<_ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h. */
9483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9485 #define $ac_func innocuous_$ac_func
9487 /* System header to define __stub macros and hopefully few prototypes,
9488 which can conflict with char $ac_func (); below.
9489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9490 <limits.h> exists even on freestanding compilers. */
9493 # include <limits.h>
9495 # include <assert.h>
9500 /* Override any gcc2 internal prototype to avoid an error. */
9505 /* We use char because int might match the return type of a gcc2
9506 builtin and then its argument prototype would still apply. */
9508 /* The GNU C library defines this for functions which it implements
9509 to always fail with ENOSYS. Some functions are actually named
9510 something starting with __ and the normal name is an alias. */
9511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9514 char (*f) () = $ac_func;
9523 return f != $ac_func;
9528 rm -f conftest.$ac_objext conftest$ac_exeext
9529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9530 (eval $ac_link) 2>conftest.er1
9532 grep -v '^ *+' conftest.er1 >conftest.err
9534 cat conftest.err >&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); } &&
9537 { ac_try='test -z "$ac_c_werror_flag"
9538 || test ! -s conftest.err'
9539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); }; } &&
9544 { ac_try='test -s conftest$ac_exeext'
9545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); }; }; then
9550 eval "$as_ac_var=yes"
9552 echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9555 eval "$as_ac_var=no"
9557 rm -f conftest.err conftest.$ac_objext \
9558 conftest$ac_exeext conftest.$ac_ext
9560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9562 if test `eval echo '${'$as_ac_var'}'` = yes; then
9563 cat >>confdefs.h <<_ACEOF
9564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9572 for ac_func in strrchr rindex
9574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9575 echo "$as_me:$LINENO: checking for $ac_func" >&5
9576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9577 if eval "test \"\${$as_ac_var+set}\" = set"; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 cat >conftest.$ac_ext <<_ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9588 #define $ac_func innocuous_$ac_func
9590 /* System header to define __stub macros and hopefully few prototypes,
9591 which can conflict with char $ac_func (); below.
9592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9593 <limits.h> exists even on freestanding compilers. */
9596 # include <limits.h>
9598 # include <assert.h>
9603 /* Override any gcc2 internal prototype to avoid an error. */
9608 /* We use char because int might match the return type of a gcc2
9609 builtin and then its argument prototype would still apply. */
9611 /* The GNU C library defines this for functions which it implements
9612 to always fail with ENOSYS. Some functions are actually named
9613 something starting with __ and the normal name is an alias. */
9614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9617 char (*f) () = $ac_func;
9626 return f != $ac_func;
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9633 (eval $ac_link) 2>conftest.er1
9635 grep -v '^ *+' conftest.er1 >conftest.err
9637 cat conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } &&
9640 { ac_try='test -z "$ac_c_werror_flag"
9641 || test ! -s conftest.err'
9642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; } &&
9647 { ac_try='test -s conftest$ac_exeext'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; }; then
9653 eval "$as_ac_var=yes"
9655 echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9658 eval "$as_ac_var=no"
9660 rm -f conftest.err conftest.$ac_objext \
9661 conftest$ac_exeext conftest.$ac_ext
9663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9665 if test `eval echo '${'$as_ac_var'}'` = yes; then
9666 cat >>confdefs.h <<_ACEOF
9667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9675 for ac_func in memcpy bcopy
9677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9678 echo "$as_me:$LINENO: checking for $ac_func" >&5
9679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9680 if eval "test \"\${$as_ac_var+set}\" = set"; then
9681 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 cat >conftest.$ac_ext <<_ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h. */
9689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9691 #define $ac_func innocuous_$ac_func
9693 /* System header to define __stub macros and hopefully few prototypes,
9694 which can conflict with char $ac_func (); below.
9695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9696 <limits.h> exists even on freestanding compilers. */
9699 # include <limits.h>
9701 # include <assert.h>
9706 /* Override any gcc2 internal prototype to avoid an error. */
9711 /* We use char because int might match the return type of a gcc2
9712 builtin and then its argument prototype would still apply. */
9714 /* The GNU C library defines this for functions which it implements
9715 to always fail with ENOSYS. Some functions are actually named
9716 something starting with __ and the normal name is an alias. */
9717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9720 char (*f) () = $ac_func;
9729 return f != $ac_func;
9734 rm -f conftest.$ac_objext conftest$ac_exeext
9735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9736 (eval $ac_link) 2>conftest.er1
9738 grep -v '^ *+' conftest.er1 >conftest.err
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } &&
9743 { ac_try='test -z "$ac_c_werror_flag"
9744 || test ! -s conftest.err'
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; } &&
9750 { ac_try='test -s conftest$ac_exeext'
9751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; }; then
9756 eval "$as_ac_var=yes"
9758 echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9761 eval "$as_ac_var=no"
9763 rm -f conftest.err conftest.$ac_objext \
9764 conftest$ac_exeext conftest.$ac_ext
9766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9768 if test `eval echo '${'$as_ac_var'}'` = yes; then
9769 cat >>confdefs.h <<_ACEOF
9770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9778 for ac_func in memmove strcmp
9780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9781 echo "$as_me:$LINENO: checking for $ac_func" >&5
9782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9783 if eval "test \"\${$as_ac_var+set}\" = set"; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9794 #define $ac_func innocuous_$ac_func
9796 /* System header to define __stub macros and hopefully few prototypes,
9797 which can conflict with char $ac_func (); below.
9798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9799 <limits.h> exists even on freestanding compilers. */
9802 # include <limits.h>
9804 # include <assert.h>
9809 /* Override any gcc2 internal prototype to avoid an error. */
9814 /* We use char because int might match the return type of a gcc2
9815 builtin and then its argument prototype would still apply. */
9817 /* The GNU C library defines this for functions which it implements
9818 to always fail with ENOSYS. Some functions are actually named
9819 something starting with __ and the normal name is an alias. */
9820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9823 char (*f) () = $ac_func;
9832 return f != $ac_func;
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839 (eval $ac_link) 2>conftest.er1
9841 grep -v '^ *+' conftest.er1 >conftest.err
9843 cat conftest.err >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } &&
9846 { ac_try='test -z "$ac_c_werror_flag"
9847 || test ! -s conftest.err'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; } &&
9853 { ac_try='test -s conftest$ac_exeext'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; }; then
9859 eval "$as_ac_var=yes"
9861 echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9864 eval "$as_ac_var=no"
9866 rm -f conftest.err conftest.$ac_objext \
9867 conftest$ac_exeext conftest.$ac_ext
9869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9871 if test `eval echo '${'$as_ac_var'}'` = yes; then
9872 cat >>confdefs.h <<_ACEOF
9873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9882 for ac_func in closedir opendir readdir
9884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9885 echo "$as_me:$LINENO: checking for $ac_func" >&5
9886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9887 if eval "test \"\${$as_ac_var+set}\" = set"; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 cat >conftest.$ac_ext <<_ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9898 #define $ac_func innocuous_$ac_func
9900 /* System header to define __stub macros and hopefully few prototypes,
9901 which can conflict with char $ac_func (); below.
9902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9903 <limits.h> exists even on freestanding compilers. */
9906 # include <limits.h>
9908 # include <assert.h>
9913 /* Override any gcc2 internal prototype to avoid an error. */
9918 /* We use char because int might match the return type of a gcc2
9919 builtin and then its argument prototype would still apply. */
9921 /* The GNU C library defines this for functions which it implements
9922 to always fail with ENOSYS. Some functions are actually named
9923 something starting with __ and the normal name is an alias. */
9924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9927 char (*f) () = $ac_func;
9936 return f != $ac_func;
9941 rm -f conftest.$ac_objext conftest$ac_exeext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9943 (eval $ac_link) 2>conftest.er1
9945 grep -v '^ *+' conftest.er1 >conftest.err
9947 cat conftest.err >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } &&
9950 { ac_try='test -z "$ac_c_werror_flag"
9951 || test ! -s conftest.err'
9952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); }; } &&
9957 { ac_try='test -s conftest$ac_exeext'
9958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); }; }; then
9963 eval "$as_ac_var=yes"
9965 echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9968 eval "$as_ac_var=no"
9970 rm -f conftest.err conftest.$ac_objext \
9971 conftest$ac_exeext conftest.$ac_ext
9973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9975 if test `eval echo '${'$as_ac_var'}'` = yes; then
9976 cat >>confdefs.h <<_ACEOF
9977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9984 # Check whether --enable-shared or --disable-shared was given.
9985 if test "${enable_shared+set}" = set; then
9986 enableval="$enable_shared"
9987 p=${PACKAGE-default}
9989 yes) enable_shared=yes ;;
9990 no) enable_shared=no ;;
9993 # Look at the argument we got. We use all the common list separators.
9994 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9995 for pkg in $enableval; do
9997 if test "X$pkg" = "X$p"; then
10008 # Check whether --enable-static or --disable-static was given.
10009 if test "${enable_static+set}" = set; then
10010 enableval="$enable_static"
10011 p=${PACKAGE-default}
10013 yes) enable_static=yes ;;
10014 no) enable_static=no ;;
10017 # Look at the argument we got. We use all the common list separators.
10018 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10019 for pkg in $enableval; do
10021 if test "X$pkg" = "X$p"; then
10032 # Check whether --enable-fast-install or --disable-fast-install was given.
10033 if test "${enable_fast_install+set}" = set; then
10034 enableval="$enable_fast_install"
10035 p=${PACKAGE-default}
10037 yes) enable_fast_install=yes ;;
10038 no) enable_fast_install=no ;;
10040 enable_fast_install=no
10041 # Look at the argument we got. We use all the common list separators.
10042 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10043 for pkg in $enableval; do
10045 if test "X$pkg" = "X$p"; then
10046 enable_fast_install=yes
10053 enable_fast_install=yes
10056 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10057 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10058 if test "${lt_cv_path_SED+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 # Loop through the user's path and test for sed and gsed.
10062 # Then use that list of sed's as ones to test for truncation.
10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10067 test -z "$as_dir" && as_dir=.
10068 for lt_ac_prog in sed gsed; do
10069 for ac_exec_ext in '' $ac_executable_extensions; do
10070 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10071 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10078 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10079 # along with /bin/sed that truncates output.
10080 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10081 test ! -f $lt_ac_sed && break
10082 cat /dev/null > conftest.in
10084 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10085 # Check for GNU sed and select it if it is found.
10086 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10087 lt_cv_path_SED=$lt_ac_sed
10091 cat conftest.in conftest.in >conftest.tmp
10092 mv conftest.tmp conftest.in
10093 cp conftest.in conftest.nl
10095 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10096 cmp -s conftest.out conftest.nl || break
10097 # 10000 chars as input seems more than enough
10098 test $lt_ac_count -gt 10 && break
10099 lt_ac_count=`expr $lt_ac_count + 1`
10100 if test $lt_ac_count -gt $lt_ac_max; then
10101 lt_ac_max=$lt_ac_count
10102 lt_cv_path_SED=$lt_ac_sed
10109 SED=$lt_cv_path_SED
10110 echo "$as_me:$LINENO: result: $SED" >&5
10111 echo "${ECHO_T}$SED" >&6
10114 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10115 if test "${with_gnu_ld+set}" = set; then
10116 withval="$with_gnu_ld"
10117 test "$withval" = no || with_gnu_ld=yes
10122 if test "$GCC" = yes; then
10123 # Check if gcc -print-prog-name=ld gives a path.
10124 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10125 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10128 # gcc leaves a trailing carriage return which upsets mingw
10129 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10131 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10134 # Accept absolute paths.
10136 re_direlt='/[^/][^/]*/\.\./'
10137 # Canonicalize the pathname of ld
10138 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10139 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10140 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10142 test -z "$LD" && LD="$ac_prog"
10145 # If it fails, then pretend we aren't using GCC.
10149 # If it is relative, then search for the first ld in PATH.
10150 with_gnu_ld=unknown
10153 elif test "$with_gnu_ld" = yes; then
10154 echo "$as_me:$LINENO: checking for GNU ld" >&5
10155 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10157 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10158 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10160 if test "${lt_cv_path_LD+set}" = set; then
10161 echo $ECHO_N "(cached) $ECHO_C" >&6
10163 if test -z "$LD"; then
10164 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10165 for ac_dir in $PATH; do
10167 test -z "$ac_dir" && ac_dir=.
10168 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10169 lt_cv_path_LD="$ac_dir/$ac_prog"
10170 # Check to see if the program is GNU ld. I'd rather use --version,
10171 # but apparently some GNU ld's only accept -v.
10172 # Break only if it was the GNU/non-GNU ld that we prefer.
10173 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10174 *GNU* | *'with BFD'*)
10175 test "$with_gnu_ld" != no && break
10178 test "$with_gnu_ld" != yes && break
10185 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10189 LD="$lt_cv_path_LD"
10190 if test -n "$LD"; then
10191 echo "$as_me:$LINENO: result: $LD" >&5
10192 echo "${ECHO_T}$LD" >&6
10194 echo "$as_me:$LINENO: result: no" >&5
10195 echo "${ECHO_T}no" >&6
10197 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10198 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10199 { (exit 1); exit 1; }; }
10200 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10201 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10202 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10206 case `$LD -v 2>&1 </dev/null` in
10207 *GNU* | *'with BFD'*)
10208 lt_cv_prog_gnu_ld=yes
10211 lt_cv_prog_gnu_ld=no
10215 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10216 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10217 with_gnu_ld=$lt_cv_prog_gnu_ld
10220 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10221 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10222 if test "${lt_cv_ld_reload_flag+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10225 lt_cv_ld_reload_flag='-r'
10227 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10228 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10229 reload_flag=$lt_cv_ld_reload_flag
10230 case $reload_flag in
10232 *) reload_flag=" $reload_flag" ;;
10234 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10237 if test "$GCC" = yes; then
10238 reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
10240 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10245 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10246 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10247 if test "${lt_cv_deplibs_check_method+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10250 lt_cv_file_magic_cmd='$MAGIC_CMD'
10251 lt_cv_file_magic_test_file=
10252 lt_cv_deplibs_check_method='unknown'
10253 # Need to set the preceding variable on all platforms that support
10254 # interlibrary dependencies.
10255 # 'none' -- dependencies not supported.
10256 # `unknown' -- same as none, but documents that we really don't know.
10257 # 'pass_all' -- all dependencies passed with no checks.
10258 # 'test_compile' -- check by making test program.
10259 # 'file_magic [[regex]]' -- check by looking for files in library path
10260 # which responds to the $file_magic_cmd with a given extended regex.
10261 # If you have `file' or equivalent on your system and you're not sure
10262 # whether `pass_all' will *always* work, you probably want this one.
10266 lt_cv_deplibs_check_method=pass_all
10270 lt_cv_deplibs_check_method=pass_all
10274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10275 lt_cv_file_magic_cmd='/usr/bin/file -L'
10276 lt_cv_file_magic_test_file=/shlib/libc.so
10280 # func_win32_libid is a shell function defined in ltmain.sh
10281 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10282 lt_cv_file_magic_cmd='func_win32_libid'
10286 # Base MSYS/MinGW do not provide the 'file' command needed by
10287 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10288 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10289 lt_cv_file_magic_cmd='$OBJDUMP -f'
10292 darwin* | rhapsody*)
10293 lt_cv_deplibs_check_method=pass_all
10296 freebsd* | kfreebsd*-gnu)
10297 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10300 # Not sure whether the presence of OpenBSD here was a mistake.
10301 # Let's accept both of them until this is cleared up.
10302 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10303 lt_cv_file_magic_cmd=/usr/bin/file
10304 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10308 lt_cv_deplibs_check_method=pass_all
10313 lt_cv_deplibs_check_method=pass_all
10316 hpux10.20* | hpux11*)
10317 lt_cv_file_magic_cmd=/usr/bin/file
10318 case "$host_cpu" in
10320 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10321 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10324 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]'
10325 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10328 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10329 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10334 irix5* | irix6* | nonstopux*)
10336 *-32|*"-32 ") libmagic=32-bit;;
10337 *-n32|*"-n32 ") libmagic=N32;;
10338 *-64|*"-64 ") libmagic=64-bit;;
10339 *) libmagic=never-match;;
10341 lt_cv_deplibs_check_method=pass_all
10344 # This must be Linux ELF.
10346 lt_cv_deplibs_check_method=pass_all
10350 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10351 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10358 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10359 lt_cv_file_magic_cmd=/usr/bin/file
10360 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10364 lt_cv_deplibs_check_method=unknown
10368 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10375 osf3* | osf4* | osf5*)
10376 lt_cv_deplibs_check_method=pass_all
10380 lt_cv_deplibs_check_method=pass_all
10384 lt_cv_deplibs_check_method=pass_all
10387 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10388 case $host_vendor in
10390 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]'
10391 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10394 lt_cv_deplibs_check_method=pass_all
10397 lt_cv_file_magic_cmd='/bin/file'
10398 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10401 lt_cv_file_magic_cmd='/bin/file'
10402 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10403 lt_cv_file_magic_test_file=/lib/libc.so
10406 lt_cv_deplibs_check_method=pass_all
10411 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10412 lt_cv_deplibs_check_method=pass_all
10417 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10418 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10419 file_magic_cmd=$lt_cv_file_magic_cmd
10420 deplibs_check_method=$lt_cv_deplibs_check_method
10421 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10425 # If no C compiler was specified, use CC.
10428 # Allow CC to be a program name with arguments.
10431 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10432 if test "${enable_libtool_lock+set}" = set; then
10433 enableval="$enable_libtool_lock"
10436 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10438 # Some flags need to be propagated to the compiler or linker for good
10442 # Find out which ABI we are using.
10443 echo 'int i;' > conftest.$ac_ext
10444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10445 (eval $ac_compile) 2>&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; then
10449 case `/usr/bin/file conftest.$ac_objext` in
10451 HPUX_IA64_MODE="32"
10454 HPUX_IA64_MODE="64"
10461 # Find out which ABI we are using.
10462 echo '#line 10462 "configure"' > conftest.$ac_ext
10463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10464 (eval $ac_compile) 2>&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; then
10468 if test "$lt_cv_prog_gnu_ld" = yes; then
10469 case `/usr/bin/file conftest.$ac_objext` in
10471 LD="${LD-ld} -melf32bsmip"
10474 LD="${LD-ld} -melf32bmipn32"
10477 LD="${LD-ld} -melf64bmip"
10481 case `/usr/bin/file conftest.$ac_objext` in
10497 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10498 # Find out which ABI we are using.
10499 echo 'int i;' > conftest.$ac_ext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10501 (eval $ac_compile) 2>&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; then
10505 case "`/usr/bin/file conftest.o`" in
10509 LD="${LD-ld} -m elf_i386"
10511 ppc64-*linux*|powerpc64-*linux*)
10512 LD="${LD-ld} -m elf32ppclinux"
10515 LD="${LD-ld} -m elf_s390"
10518 LD="${LD-ld} -m elf32_sparc"
10525 LD="${LD-ld} -m elf_x86_64"
10527 ppc*-*linux*|powerpc*-*linux*)
10528 LD="${LD-ld} -m elf64ppc"
10531 LD="${LD-ld} -m elf64_s390"
10534 LD="${LD-ld} -m elf64_sparc"
10544 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10545 SAVE_CFLAGS="$CFLAGS"
10546 CFLAGS="$CFLAGS -belf"
10547 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10548 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10549 if test "${lt_cv_cc_needs_belf+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 ac_cpp='$CPP $CPPFLAGS'
10554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10558 cat >conftest.$ac_ext <<_ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10566 rm -f conftest.$ac_objext conftest$ac_exeext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10568 (eval $ac_link) 2>conftest.er1
10570 grep -v '^ *+' conftest.er1 >conftest.err
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try='test -z "$ac_c_werror_flag"
10576 || test ! -s conftest.err'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; } &&
10582 { ac_try='test -s conftest$ac_exeext'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588 lt_cv_cc_needs_belf=yes
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10593 lt_cv_cc_needs_belf=no
10595 rm -f conftest.err conftest.$ac_objext \
10596 conftest$ac_exeext conftest.$ac_ext
10598 ac_cpp='$CPP $CPPFLAGS'
10599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10604 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10605 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10606 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10607 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10608 CFLAGS="$SAVE_CFLAGS"
10614 need_locks="$enable_libtool_lock"
10619 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10620 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10621 (test "X$CXX" != "Xg++"))) ; then
10623 ac_cpp='$CXXCPP $CPPFLAGS'
10624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10627 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10628 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10629 if test -z "$CXXCPP"; then
10630 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10633 # Double quotes because CXXCPP needs to be expanded
10634 for CXXCPP in "$CXX -E" "/lib/cpp"
10636 ac_preproc_ok=false
10637 for ac_cxx_preproc_warn_flag in '' yes
10639 # Use a header file that comes with gcc, so configuring glibc
10640 # with a fresh cross-compiler works.
10641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10642 # <limits.h> exists even on freestanding compilers.
10643 # On the NeXT, cc -E runs the code through the compiler's parser,
10644 # not just through cpp. "Syntax error" is here to catch this case.
10645 cat >conftest.$ac_ext <<_ACEOF
10648 cat confdefs.h >>conftest.$ac_ext
10649 cat >>conftest.$ac_ext <<_ACEOF
10650 /* end confdefs.h. */
10652 # include <limits.h>
10654 # include <assert.h>
10658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10661 grep -v '^ *+' conftest.er1 >conftest.err
10663 cat conftest.err >&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } >/dev/null; then
10666 if test -s conftest.err; then
10667 ac_cpp_err=$ac_cxx_preproc_warn_flag
10668 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10675 if test -z "$ac_cpp_err"; then
10678 echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10681 # Broken: fails on valid input.
10684 rm -f conftest.err conftest.$ac_ext
10686 # OK, works on sane cases. Now check whether non-existent headers
10687 # can be detected and how.
10688 cat >conftest.$ac_ext <<_ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10694 #include <ac_nonexistent.h>
10696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10699 grep -v '^ *+' conftest.er1 >conftest.err
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } >/dev/null; then
10704 if test -s conftest.err; then
10705 ac_cpp_err=$ac_cxx_preproc_warn_flag
10706 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10713 if test -z "$ac_cpp_err"; then
10714 # Broken: success on invalid input.
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10720 # Passes both tests.
10724 rm -f conftest.err conftest.$ac_ext
10727 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10728 rm -f conftest.err conftest.$ac_ext
10729 if $ac_preproc_ok; then
10734 ac_cv_prog_CXXCPP=$CXXCPP
10737 CXXCPP=$ac_cv_prog_CXXCPP
10739 ac_cv_prog_CXXCPP=$CXXCPP
10741 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10742 echo "${ECHO_T}$CXXCPP" >&6
10743 ac_preproc_ok=false
10744 for ac_cxx_preproc_warn_flag in '' yes
10746 # Use a header file that comes with gcc, so configuring glibc
10747 # with a fresh cross-compiler works.
10748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10749 # <limits.h> exists even on freestanding compilers.
10750 # On the NeXT, cc -E runs the code through the compiler's parser,
10751 # not just through cpp. "Syntax error" is here to catch this case.
10752 cat >conftest.$ac_ext <<_ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h. */
10759 # include <limits.h>
10761 # include <assert.h>
10765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10768 grep -v '^ *+' conftest.er1 >conftest.err
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } >/dev/null; then
10773 if test -s conftest.err; then
10774 ac_cpp_err=$ac_cxx_preproc_warn_flag
10775 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10782 if test -z "$ac_cpp_err"; then
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10788 # Broken: fails on valid input.
10791 rm -f conftest.err conftest.$ac_ext
10793 # OK, works on sane cases. Now check whether non-existent headers
10794 # can be detected and how.
10795 cat >conftest.$ac_ext <<_ACEOF
10798 cat confdefs.h >>conftest.$ac_ext
10799 cat >>conftest.$ac_ext <<_ACEOF
10800 /* end confdefs.h. */
10801 #include <ac_nonexistent.h>
10803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10806 grep -v '^ *+' conftest.er1 >conftest.err
10808 cat conftest.err >&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } >/dev/null; then
10811 if test -s conftest.err; then
10812 ac_cpp_err=$ac_cxx_preproc_warn_flag
10813 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10820 if test -z "$ac_cpp_err"; then
10821 # Broken: success on invalid input.
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10827 # Passes both tests.
10831 rm -f conftest.err conftest.$ac_ext
10834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10835 rm -f conftest.err conftest.$ac_ext
10836 if $ac_preproc_ok; then
10839 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10840 See \`config.log' for more details." >&5
10841 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10842 See \`config.log' for more details." >&2;}
10843 { (exit 1); exit 1; }; }
10847 ac_cpp='$CXXCPP $CPPFLAGS'
10848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10856 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10857 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10858 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10859 if test -n "$ac_tool_prefix"; then
10860 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10864 echo "$as_me:$LINENO: checking for $ac_word" >&5
10865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10866 if test "${ac_cv_prog_F77+set}" = set; then
10867 echo $ECHO_N "(cached) $ECHO_C" >&6
10869 if test -n "$F77"; then
10870 ac_cv_prog_F77="$F77" # Let the user override the test.
10872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873 for as_dir in $PATH
10876 test -z "$as_dir" && as_dir=.
10877 for ac_exec_ext in '' $ac_executable_extensions; do
10878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10879 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10888 F77=$ac_cv_prog_F77
10889 if test -n "$F77"; then
10890 echo "$as_me:$LINENO: result: $F77" >&5
10891 echo "${ECHO_T}$F77" >&6
10893 echo "$as_me:$LINENO: result: no" >&5
10894 echo "${ECHO_T}no" >&6
10897 test -n "$F77" && break
10900 if test -z "$F77"; then
10902 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10904 # Extract the first word of "$ac_prog", so it can be a program name with args.
10905 set dummy $ac_prog; ac_word=$2
10906 echo "$as_me:$LINENO: checking for $ac_word" >&5
10907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10908 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10909 echo $ECHO_N "(cached) $ECHO_C" >&6
10911 if test -n "$ac_ct_F77"; then
10912 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10915 for as_dir in $PATH
10918 test -z "$as_dir" && as_dir=.
10919 for ac_exec_ext in '' $ac_executable_extensions; do
10920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10921 ac_cv_prog_ac_ct_F77="$ac_prog"
10922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10930 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10931 if test -n "$ac_ct_F77"; then
10932 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10933 echo "${ECHO_T}$ac_ct_F77" >&6
10935 echo "$as_me:$LINENO: result: no" >&5
10936 echo "${ECHO_T}no" >&6
10939 test -n "$ac_ct_F77" && break
10946 # Provide some information about the compiler.
10947 echo "$as_me:10947:" \
10948 "checking for Fortran 77 compiler version" >&5
10949 ac_compiler=`set X $ac_compile; echo $2`
10950 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10951 (eval $ac_compiler --version </dev/null >&5) 2>&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }
10955 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10956 (eval $ac_compiler -v </dev/null >&5) 2>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }
10960 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10961 (eval $ac_compiler -V </dev/null >&5) 2>&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); }
10967 # If we don't use `.F' as extension, the preprocessor is not run on the
10968 # input file. (Note that this only needs to work for GNU compilers.)
10969 ac_save_ext=$ac_ext
10971 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10972 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10973 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 cat >conftest.$ac_ext <<_ACEOF
10984 rm -f conftest.$ac_objext
10985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10986 (eval $ac_compile) 2>conftest.er1
10988 grep -v '^ *+' conftest.er1 >conftest.err
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } &&
10993 { ac_try='test -z "$ac_f77_werror_flag"
10994 || test ! -s conftest.err'
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; } &&
11000 { ac_try='test -s conftest.$ac_objext'
11001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002 (eval $ac_try) 2>&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; }; then
11006 ac_compiler_gnu=yes
11008 echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11014 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11017 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11018 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11019 ac_ext=$ac_save_ext
11020 ac_test_FFLAGS=${FFLAGS+set}
11021 ac_save_FFLAGS=$FFLAGS
11023 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11024 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11025 if test "${ac_cv_prog_f77_g+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11029 cat >conftest.$ac_ext <<_ACEOF
11034 rm -f conftest.$ac_objext
11035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11036 (eval $ac_compile) 2>conftest.er1
11038 grep -v '^ *+' conftest.er1 >conftest.err
11040 cat conftest.err >&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } &&
11043 { ac_try='test -z "$ac_f77_werror_flag"
11044 || test ! -s conftest.err'
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; } &&
11050 { ac_try='test -s conftest.$ac_objext'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; }; then
11056 ac_cv_prog_f77_g=yes
11058 echo "$as_me: failed program was:" >&5
11059 sed 's/^/| /' conftest.$ac_ext >&5
11061 ac_cv_prog_f77_g=no
11063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11066 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11067 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11068 if test "$ac_test_FFLAGS" = set; then
11069 FFLAGS=$ac_save_FFLAGS
11070 elif test $ac_cv_prog_f77_g = yes; then
11071 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11077 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11084 G77=`test $ac_compiler_gnu = yes && echo yes`
11086 ac_cpp='$CPP $CPPFLAGS'
11087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11093 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11095 # find the maximum length of command line arguments
11096 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11097 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11098 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11106 # On DJGPP, this test can blow up pretty badly due to problems in libc
11107 # (any single argument exceeding 2000 bytes causes a buffer overrun
11108 # during glob expansion). Even if it were fixed, the result of this
11109 # check would be larger than it should be.
11110 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11114 # Under GNU Hurd, this test is not required because there is
11115 # no limit to the length of command line arguments.
11116 # Libtool will interpret -1 as no limit whatsoever
11117 lt_cv_sys_max_cmd_len=-1;
11121 # On Win9x/ME, this test blows up -- it succeeds, but takes
11122 # about 5 minutes as the teststring grows exponentially.
11123 # Worse, since 9x/ME are not pre-emptively multitasking,
11124 # you end up with a "frozen" computer, even though with patience
11125 # the test eventually succeeds (with a max line length of 256k).
11126 # Instead, let's just punt: use the minimum linelength reported by
11127 # all of the supported platforms: 8192 (on NT/2K/XP).
11128 lt_cv_sys_max_cmd_len=8192;
11132 # On AmigaOS with pdksh, this test takes hours, literally.
11133 # So we just punt and use a minimum line length of 8192.
11134 lt_cv_sys_max_cmd_len=8192;
11137 netbsd* | freebsd* | openbsd* | darwin* )
11138 # This has been around since 386BSD, at least. Likely further.
11139 if test -x /sbin/sysctl; then
11140 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11141 elif test -x /usr/sbin/sysctl; then
11142 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11144 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11146 # And add a safety zone
11147 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11151 # If test is not a shell built-in, we'll probably end up computing a
11152 # maximum length that is only half of the actual maximum length, but
11154 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11155 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11156 = "XX$teststring") >/dev/null 2>&1 &&
11157 new_result=`expr "X$teststring" : ".*" 2>&1` &&
11158 lt_cv_sys_max_cmd_len=$new_result &&
11159 test $i != 17 # 1/2 MB should be enough
11162 teststring=$teststring$teststring
11165 # Add a significant safety factor because C++ compilers can tack on massive
11166 # amounts of additional arguments before passing them to the linker.
11167 # It appears as though 1/2 is a usable value.
11168 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11174 if test -n $lt_cv_sys_max_cmd_len ; then
11175 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11176 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11178 echo "$as_me:$LINENO: result: none" >&5
11179 echo "${ECHO_T}none" >&6
11185 # Check for command to grab the raw symbol name followed by C symbol from nm.
11186 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11187 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11188 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 # These are sane defaults that work on at least a few old systems.
11193 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11195 # Character class describing NM global symbol codes.
11196 symcode='[BCDEGRST]'
11198 # Regexp to match symbols that can be accessed directly from C.
11199 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11201 # Transform the above into a raw symbol and a C symbol.
11202 symxfrm='\1 \2\3 \3'
11204 # Transform an extracted symbol line into a proper C declaration
11205 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11207 # Transform an extracted symbol line into symbol name and symbol address
11208 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'"
11210 # Define system-specific variables.
11215 cygwin* | mingw* | pw32*)
11216 symcode='[ABCDGISTW]'
11218 hpux*) # Its linker distinguishes data from code symbols
11219 if test "$host_cpu" = ia64; then
11220 symcode='[ABCDEGRST]'
11222 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11223 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'"
11226 if test "$host_cpu" = ia64; then
11227 symcode='[ABCDGIRSTW]'
11228 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11229 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'"
11232 irix* | nonstopux*)
11233 symcode='[BCDEGRST]'
11236 symcode='[BCDEGQRST]'
11246 # Handle CRLF in mingw tool chain
11250 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11254 # If we're using GNU nm, then use its standard symbol codes.
11255 case `$NM -V 2>&1` in
11256 *GNU* | *'with BFD'*)
11257 symcode='[ABCDGIRSTW]' ;;
11260 # Try without a prefix undercore, then with it.
11261 for ac_symprfx in "" "_"; do
11263 # Write the raw and C identifiers.
11264 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11266 # Check to see that the pipe works correctly.
11270 cat > conftest.$ac_ext <<EOF
11275 void nm_test_func(){}
11279 int main(){nm_test_var='a';nm_test_func();return(0);}
11282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11283 (eval $ac_compile) 2>&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; then
11287 # Now try to grab the symbols.
11289 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11290 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } && test -s "$nlist"; then
11294 # Try sorting and uniquifying the output.
11295 if sort "$nlist" | uniq > "$nlist"T; then
11296 mv -f "$nlist"T "$nlist"
11301 # Make sure that we snagged all the symbols we need.
11302 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11303 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11304 cat <<EOF > conftest.$ac_ext
11310 # Now generate the symbol file.
11311 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11313 cat <<EOF >> conftest.$ac_ext
11314 #if defined (__STDC__) && __STDC__
11315 # define lt_ptr_t void *
11317 # define lt_ptr_t char *
11321 /* The mapping between symbol names and symbols. */
11326 lt_preloaded_symbols[] =
11329 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11330 cat <<\EOF >> conftest.$ac_ext
11338 # Now try linking the two files.
11339 mv conftest.$ac_objext conftstm.$ac_objext
11340 lt_save_LIBS="$LIBS"
11341 lt_save_CFLAGS="$CFLAGS"
11342 LIBS="conftstm.$ac_objext"
11343 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11345 (eval $ac_link) 2>&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11351 LIBS="$lt_save_LIBS"
11352 CFLAGS="$lt_save_CFLAGS"
11354 echo "cannot find nm_test_func in $nlist" >&5
11357 echo "cannot find nm_test_var in $nlist" >&5
11360 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11363 echo "$progname: failed program was:" >&5
11364 cat conftest.$ac_ext >&5
11366 rm -f conftest* conftst*
11368 # Do not use the global_symbol_pipe unless it works.
11369 if test "$pipe_works" = yes; then
11372 lt_cv_sys_global_symbol_pipe=
11378 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11379 lt_cv_sys_global_symbol_to_cdecl=
11381 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11382 echo "$as_me:$LINENO: result: failed" >&5
11383 echo "${ECHO_T}failed" >&6
11385 echo "$as_me:$LINENO: result: ok" >&5
11386 echo "${ECHO_T}ok" >&6
11389 echo "$as_me:$LINENO: checking for objdir" >&5
11390 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11391 if test "${lt_cv_objdir+set}" = set; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
11394 rm -f .libs 2>/dev/null
11395 mkdir .libs 2>/dev/null
11396 if test -d .libs; then
11399 # MS-DOS does not allow filenames that begin with a dot.
11402 rmdir .libs 2>/dev/null
11404 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11405 echo "${ECHO_T}$lt_cv_objdir" >&6
11406 objdir=$lt_cv_objdir
11414 # AIX sometimes has problems with the GCC collect2 program. For some
11415 # reason, if we set the COLLECT_NAMES environment variable, the problems
11416 # vanish in a puff of smoke.
11417 if test "X${COLLECT_NAMES+set}" != Xset; then
11419 export COLLECT_NAMES
11424 # Sed substitution that helps us do robust quoting. It backslashifies
11425 # metacharacters that are still active within double-quoted strings.
11426 Xsed='sed -e s/^X//'
11427 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11429 # Same as above, but do not quote variable references.
11430 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11432 # Sed substitution to delay expansion of an escaped shell variable in a
11433 # double_quote_subst'ed string.
11434 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11436 # Sed substitution to avoid accidental globbing in evaled expressions
11437 no_glob_subst='s/\*/\\\*/g'
11442 # Global variables:
11443 default_ofile=mklib
11444 can_build_shared=yes
11446 # All known linkers require a `.a' archive for static linking (except M$VC,
11447 # which needs '.lib').
11449 ltmain="$ac_aux_dir/ltmain.sh"
11450 ofile="$default_ofile"
11451 with_gnu_ld="$lt_cv_prog_gnu_ld"
11453 if test -n "$ac_tool_prefix"; then
11454 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11455 set dummy ${ac_tool_prefix}ar; ac_word=$2
11456 echo "$as_me:$LINENO: checking for $ac_word" >&5
11457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11458 if test "${ac_cv_prog_AR+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 if test -n "$AR"; then
11462 ac_cv_prog_AR="$AR" # Let the user override the test.
11464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465 for as_dir in $PATH
11468 test -z "$as_dir" && as_dir=.
11469 for ac_exec_ext in '' $ac_executable_extensions; do
11470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11471 ac_cv_prog_AR="${ac_tool_prefix}ar"
11472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11481 if test -n "$AR"; then
11482 echo "$as_me:$LINENO: result: $AR" >&5
11483 echo "${ECHO_T}$AR" >&6
11485 echo "$as_me:$LINENO: result: no" >&5
11486 echo "${ECHO_T}no" >&6
11490 if test -z "$ac_cv_prog_AR"; then
11492 # Extract the first word of "ar", so it can be a program name with args.
11493 set dummy ar; ac_word=$2
11494 echo "$as_me:$LINENO: checking for $ac_word" >&5
11495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11496 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
11499 if test -n "$ac_ct_AR"; then
11500 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11503 for as_dir in $PATH
11506 test -z "$as_dir" && as_dir=.
11507 for ac_exec_ext in '' $ac_executable_extensions; do
11508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11509 ac_cv_prog_ac_ct_AR="ar"
11510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11516 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11519 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11520 if test -n "$ac_ct_AR"; then
11521 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11522 echo "${ECHO_T}$ac_ct_AR" >&6
11524 echo "$as_me:$LINENO: result: no" >&5
11525 echo "${ECHO_T}no" >&6
11530 AR="$ac_cv_prog_AR"
11533 if test -n "$ac_tool_prefix"; then
11534 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11535 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11536 echo "$as_me:$LINENO: checking for $ac_word" >&5
11537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11538 if test "${ac_cv_prog_RANLIB+set}" = set; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11541 if test -n "$RANLIB"; then
11542 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11545 for as_dir in $PATH
11548 test -z "$as_dir" && as_dir=.
11549 for ac_exec_ext in '' $ac_executable_extensions; do
11550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11551 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11560 RANLIB=$ac_cv_prog_RANLIB
11561 if test -n "$RANLIB"; then
11562 echo "$as_me:$LINENO: result: $RANLIB" >&5
11563 echo "${ECHO_T}$RANLIB" >&6
11565 echo "$as_me:$LINENO: result: no" >&5
11566 echo "${ECHO_T}no" >&6
11570 if test -z "$ac_cv_prog_RANLIB"; then
11571 ac_ct_RANLIB=$RANLIB
11572 # Extract the first word of "ranlib", so it can be a program name with args.
11573 set dummy ranlib; ac_word=$2
11574 echo "$as_me:$LINENO: checking for $ac_word" >&5
11575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11576 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11579 if test -n "$ac_ct_RANLIB"; then
11580 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583 for as_dir in $PATH
11586 test -z "$as_dir" && as_dir=.
11587 for ac_exec_ext in '' $ac_executable_extensions; do
11588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11589 ac_cv_prog_ac_ct_RANLIB="ranlib"
11590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11596 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11599 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11600 if test -n "$ac_ct_RANLIB"; then
11601 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11602 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11604 echo "$as_me:$LINENO: result: no" >&5
11605 echo "${ECHO_T}no" >&6
11608 RANLIB=$ac_ct_RANLIB
11610 RANLIB="$ac_cv_prog_RANLIB"
11613 if test -n "$ac_tool_prefix"; then
11614 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11615 set dummy ${ac_tool_prefix}strip; ac_word=$2
11616 echo "$as_me:$LINENO: checking for $ac_word" >&5
11617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11618 if test "${ac_cv_prog_STRIP+set}" = set; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11621 if test -n "$STRIP"; then
11622 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625 for as_dir in $PATH
11628 test -z "$as_dir" && as_dir=.
11629 for ac_exec_ext in '' $ac_executable_extensions; do
11630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11631 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11640 STRIP=$ac_cv_prog_STRIP
11641 if test -n "$STRIP"; then
11642 echo "$as_me:$LINENO: result: $STRIP" >&5
11643 echo "${ECHO_T}$STRIP" >&6
11645 echo "$as_me:$LINENO: result: no" >&5
11646 echo "${ECHO_T}no" >&6
11650 if test -z "$ac_cv_prog_STRIP"; then
11652 # Extract the first word of "strip", so it can be a program name with args.
11653 set dummy strip; ac_word=$2
11654 echo "$as_me:$LINENO: checking for $ac_word" >&5
11655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11656 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 if test -n "$ac_ct_STRIP"; then
11660 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663 for as_dir in $PATH
11666 test -z "$as_dir" && as_dir=.
11667 for ac_exec_ext in '' $ac_executable_extensions; do
11668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11669 ac_cv_prog_ac_ct_STRIP="strip"
11670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11676 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11679 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11680 if test -n "$ac_ct_STRIP"; then
11681 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11682 echo "${ECHO_T}$ac_ct_STRIP" >&6
11684 echo "$as_me:$LINENO: result: no" >&5
11685 echo "${ECHO_T}no" >&6
11690 STRIP="$ac_cv_prog_STRIP"
11695 old_CFLAGS="$CFLAGS"
11697 # Set sane defaults for various variables
11698 test -z "$AR" && AR=ar
11699 test -z "$AR_FLAGS" && AR_FLAGS=cru
11700 test -z "$AS" && AS=as
11701 test -z "$CC" && CC=cc
11702 test -z "$LTCC" && LTCC=$CC
11703 test -z "$DLLTOOL" && DLLTOOL=dlltool
11704 test -z "$LD" && LD=ld
11705 test -z "$LN_S" && LN_S="ln -s"
11706 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11707 test -z "$NM" && NM=nm
11708 test -z "$SED" && SED=sed
11709 test -z "$OBJDUMP" && OBJDUMP=objdump
11710 test -z "$RANLIB" && RANLIB=:
11711 test -z "$STRIP" && STRIP=:
11712 test -z "$ac_objext" && ac_objext=o
11714 # Determine commands to create old-style static archives.
11715 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11716 old_postinstall_cmds='chmod 644 $oldlib'
11717 old_postuninstall_cmds=
11719 if test -n "$RANLIB"; then
11722 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11725 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11728 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11731 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11733 # Only perform the check for file, if the check method requires it
11734 case $deplibs_check_method in
11736 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11737 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11738 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11739 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11747 lt_save_MAGIC_CMD="$MAGIC_CMD"
11748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11749 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11750 for ac_dir in $ac_dummy; do
11752 test -z "$ac_dir" && ac_dir=.
11753 if test -f $ac_dir/${ac_tool_prefix}file; then
11754 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11755 if test -n "$file_magic_test_file"; then
11756 case $deplibs_check_method in
11758 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11760 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11761 $EGREP "$file_magic_regex" > /dev/null; then
11766 *** Warning: the command libtool uses to detect shared libraries,
11767 *** $file_magic_cmd, produces output that libtool cannot recognize.
11768 *** The result is that libtool may fail to recognize shared libraries
11769 *** as such. This will affect the creation of libtool libraries that
11770 *** depend on shared libraries, but programs linked with such libtool
11771 *** libraries will work regardless of this problem. Nevertheless, you
11772 *** may want to report the problem to your system manager and/or to
11773 *** bug-libtool@gnu.org
11783 MAGIC_CMD="$lt_save_MAGIC_CMD"
11788 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11789 if test -n "$MAGIC_CMD"; then
11790 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11791 echo "${ECHO_T}$MAGIC_CMD" >&6
11793 echo "$as_me:$LINENO: result: no" >&5
11794 echo "${ECHO_T}no" >&6
11797 if test -z "$lt_cv_path_MAGIC_CMD"; then
11798 if test -n "$ac_tool_prefix"; then
11799 echo "$as_me:$LINENO: checking for file" >&5
11800 echo $ECHO_N "checking for file... $ECHO_C" >&6
11801 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11802 echo $ECHO_N "(cached) $ECHO_C" >&6
11806 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11809 lt_save_MAGIC_CMD="$MAGIC_CMD"
11810 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11811 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11812 for ac_dir in $ac_dummy; do
11814 test -z "$ac_dir" && ac_dir=.
11815 if test -f $ac_dir/file; then
11816 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11817 if test -n "$file_magic_test_file"; then
11818 case $deplibs_check_method in
11820 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11822 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11823 $EGREP "$file_magic_regex" > /dev/null; then
11828 *** Warning: the command libtool uses to detect shared libraries,
11829 *** $file_magic_cmd, produces output that libtool cannot recognize.
11830 *** The result is that libtool may fail to recognize shared libraries
11831 *** as such. This will affect the creation of libtool libraries that
11832 *** depend on shared libraries, but programs linked with such libtool
11833 *** libraries will work regardless of this problem. Nevertheless, you
11834 *** may want to report the problem to your system manager and/or to
11835 *** bug-libtool@gnu.org
11845 MAGIC_CMD="$lt_save_MAGIC_CMD"
11850 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11851 if test -n "$MAGIC_CMD"; then
11852 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11853 echo "${ECHO_T}$MAGIC_CMD" >&6
11855 echo "$as_me:$LINENO: result: no" >&5
11856 echo "${ECHO_T}no" >&6
11869 enable_win32_dll=no
11871 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11872 if test "${enable_libtool_lock+set}" = set; then
11873 enableval="$enable_libtool_lock"
11876 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11879 # Check whether --with-pic or --without-pic was given.
11880 if test "${with_pic+set}" = set; then
11881 withval="$with_pic"
11882 pic_mode="$withval"
11886 test -z "$pic_mode" && pic_mode=default
11888 # Use C for the default configuration in the libtool script
11892 ac_cpp='$CPP $CPPFLAGS'
11893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11898 # Source file extension for C test sources.
11901 # Object file extension for compiled C test sources.
11905 # Code to be used in simple compile tests
11906 lt_simple_compile_test_code="int some_variable = 0;\n"
11908 # Code to be used in simple link tests
11909 lt_simple_link_test_code='int main(){return(0);}\n'
11912 # If no C compiler was specified, use CC.
11915 # Allow CC to be a program name with arguments.
11920 # Check for any special shared library compilation flags.
11923 if test "$GCC" = no; then
11926 lt_prog_cc_shlib='-belf'
11930 if test -n "$lt_prog_cc_shlib"; then
11931 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11932 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11933 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11935 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11936 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11937 lt_cv_prog_cc_can_build_shared=no
11943 # Check to make sure the static flag actually works.
11945 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11946 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11947 if test "${lt_prog_compiler_static_works+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 lt_prog_compiler_static_works=no
11951 save_LDFLAGS="$LDFLAGS"
11952 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11953 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11954 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11955 # The compiler can only warn and ignore the option if not recognized
11956 # So say no if there are warnings
11957 if test -s conftest.err; then
11958 # Append any errors to the config.log.
11959 cat conftest.err 1>&5
11961 lt_prog_compiler_static_works=yes
11965 LDFLAGS="$save_LDFLAGS"
11968 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11969 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11971 if test x"$lt_prog_compiler_static_works" = xyes; then
11974 lt_prog_compiler_static=
11980 lt_prog_compiler_no_builtin_flag=
11982 if test "$GCC" = yes; then
11983 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11986 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11987 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11988 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11989 echo $ECHO_N "(cached) $ECHO_C" >&6
11991 lt_cv_prog_compiler_rtti_exceptions=no
11992 ac_outfile=conftest.$ac_objext
11993 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11994 lt_compiler_flag="-fno-rtti -fno-exceptions"
11995 # Insert the option either (1) after the last *FLAGS variable, or
11996 # (2) before a word containing "conftest.", or (3) at the end.
11997 # Note that $ac_compile itself does not contain backslashes and begins
11998 # with a dollar sign (not a hyphen), so the echo should work correctly.
11999 # The option is referenced via a variable to avoid confusing sed.
12000 lt_compile=`echo "$ac_compile" | $SED \
12001 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12003 -e 's:$: $lt_compiler_flag:'`
12004 (eval echo "\"\$as_me:12004: $lt_compile\"" >&5)
12005 (eval "$lt_compile" 2>conftest.err)
12007 cat conftest.err >&5
12008 echo "$as_me:12008: \$? = $ac_status" >&5
12009 if (exit $ac_status) && test -s "$ac_outfile"; then
12010 # The compiler can only warn and ignore the option if not recognized
12011 # So say no if there are warnings
12012 if test ! -s conftest.err; then
12013 lt_cv_prog_compiler_rtti_exceptions=yes
12019 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12020 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12022 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12023 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12030 lt_prog_compiler_wl=
12031 lt_prog_compiler_pic=
12032 lt_prog_compiler_static=
12034 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12035 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12037 if test "$GCC" = yes; then
12038 lt_prog_compiler_wl='-Wl,'
12039 lt_prog_compiler_static='-static'
12043 # All AIX code is PIC.
12044 if test "$host_cpu" = ia64; then
12045 # AIX 5 now supports IA64 processor
12046 lt_prog_compiler_static='-Bstatic'
12051 # FIXME: we need at least 68020 code to build shared libraries, but
12052 # adding the `-m68020' flag to GCC prevents building anything better,
12054 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12057 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12058 # PIC is the default for these OSes.
12061 mingw* | pw32* | os2*)
12062 # This hack is so that the source file can tell whether it is being
12063 # built for inclusion in a dll (and should export symbols for example).
12064 lt_prog_compiler_pic='-DDLL_EXPORT'
12067 darwin* | rhapsody*)
12068 # PIC is the default on this platform
12069 # Common symbols not allowed in MH_DYLIB files
12070 lt_prog_compiler_pic='-fno-common'
12074 # Just because we use GCC doesn't mean we suddenly get shared libraries
12075 # on systems that don't support them.
12076 lt_prog_compiler_can_build_shared=no
12081 if test -d /usr/nec; then
12082 lt_prog_compiler_pic=-Kconform_pic
12087 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12088 # not for PA HP-UX.
12089 case "$host_cpu" in
12094 lt_prog_compiler_pic='-fPIC'
12100 lt_prog_compiler_pic='-fPIC'
12104 # PORTME Check for flag to pass linker flags through the system compiler.
12107 lt_prog_compiler_wl='-Wl,'
12108 if test "$host_cpu" = ia64; then
12109 # AIX 5 now supports IA64 processor
12110 lt_prog_compiler_static='-Bstatic'
12112 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12116 # PIC is the default on this platform
12117 # Common symbols not allowed in MH_DYLIB files
12118 case "$cc_basename" in
12120 lt_prog_compiler_pic='-qnocommon'
12121 lt_prog_compiler_wl='-Wl,'
12126 mingw* | pw32* | os2*)
12127 # This hack is so that the source file can tell whether it is being
12128 # built for inclusion in a dll (and should export symbols for example).
12129 lt_prog_compiler_pic='-DDLL_EXPORT'
12132 hpux9* | hpux10* | hpux11*)
12133 lt_prog_compiler_wl='-Wl,'
12134 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12135 # not for PA HP-UX.
12136 case "$host_cpu" in
12141 lt_prog_compiler_pic='+Z'
12144 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12145 lt_prog_compiler_static='${wl}-a ${wl}archive'
12148 irix5* | irix6* | nonstopux*)
12149 lt_prog_compiler_wl='-Wl,'
12150 # PIC (with -KPIC) is the default.
12151 lt_prog_compiler_static='-non_shared'
12155 lt_prog_compiler_pic='-KPIC'
12156 lt_prog_compiler_static='-Bstatic'
12162 lt_prog_compiler_wl='-Wl,'
12163 lt_prog_compiler_pic='-KPIC'
12164 lt_prog_compiler_static='-static'
12167 lt_prog_compiler_wl='-Wl,'
12168 # All Alpha code is PIC.
12169 lt_prog_compiler_static='-non_shared'
12174 osf3* | osf4* | osf5*)
12175 lt_prog_compiler_wl='-Wl,'
12176 # All OSF/1 code is PIC.
12177 lt_prog_compiler_static='-non_shared'
12181 lt_prog_compiler_pic='-Kpic'
12182 lt_prog_compiler_static='-dn'
12186 lt_prog_compiler_wl='-Wl,'
12187 lt_prog_compiler_pic='-KPIC'
12188 lt_prog_compiler_static='-Bstatic'
12192 lt_prog_compiler_wl='-Qoption ld '
12193 lt_prog_compiler_pic='-PIC'
12194 lt_prog_compiler_static='-Bstatic'
12197 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12198 lt_prog_compiler_wl='-Wl,'
12199 lt_prog_compiler_pic='-KPIC'
12200 lt_prog_compiler_static='-Bstatic'
12204 if test -d /usr/nec ;then
12205 lt_prog_compiler_pic='-Kconform_pic'
12206 lt_prog_compiler_static='-Bstatic'
12211 lt_prog_compiler_pic='-pic'
12212 lt_prog_compiler_static='-Bstatic'
12216 lt_prog_compiler_can_build_shared=no
12221 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12222 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12225 # Check to make sure the PIC flag actually works.
12227 if test -n "$lt_prog_compiler_pic"; then
12229 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12230 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12231 if test "${lt_prog_compiler_pic_works+set}" = set; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12234 lt_prog_compiler_pic_works=no
12235 ac_outfile=conftest.$ac_objext
12236 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12237 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12238 # Insert the option either (1) after the last *FLAGS variable, or
12239 # (2) before a word containing "conftest.", or (3) at the end.
12240 # Note that $ac_compile itself does not contain backslashes and begins
12241 # with a dollar sign (not a hyphen), so the echo should work correctly.
12242 # The option is referenced via a variable to avoid confusing sed.
12243 lt_compile=`echo "$ac_compile" | $SED \
12244 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12246 -e 's:$: $lt_compiler_flag:'`
12247 (eval echo "\"\$as_me:12247: $lt_compile\"" >&5)
12248 (eval "$lt_compile" 2>conftest.err)
12250 cat conftest.err >&5
12251 echo "$as_me:12251: \$? = $ac_status" >&5
12252 if (exit $ac_status) && test -s "$ac_outfile"; then
12253 # The compiler can only warn and ignore the option if not recognized
12254 # So say no if there are warnings
12255 if test ! -s conftest.err; then
12256 lt_prog_compiler_pic_works=yes
12262 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12263 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12265 if test x"$lt_prog_compiler_pic_works" = xyes; then
12266 case $lt_prog_compiler_pic in
12268 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12271 lt_prog_compiler_pic=
12272 lt_prog_compiler_can_build_shared=no
12277 # For platforms which do not support PIC, -DPIC is meaningless:
12279 lt_prog_compiler_pic=
12282 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12286 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12287 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12288 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12291 lt_cv_prog_compiler_c_o=no
12292 $rm -r conftest 2>/dev/null
12296 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12298 lt_compiler_flag="-o out/conftest2.$ac_objext"
12299 # Insert the option either (1) after the last *FLAGS variable, or
12300 # (2) before a word containing "conftest.", or (3) at the end.
12301 # Note that $ac_compile itself does not contain backslashes and begins
12302 # with a dollar sign (not a hyphen), so the echo should work correctly.
12303 lt_compile=`echo "$ac_compile" | $SED \
12304 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12306 -e 's:$: $lt_compiler_flag:'`
12307 (eval echo "\"\$as_me:12307: $lt_compile\"" >&5)
12308 (eval "$lt_compile" 2>out/conftest.err)
12310 cat out/conftest.err >&5
12311 echo "$as_me:12311: \$? = $ac_status" >&5
12312 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12314 # The compiler can only warn and ignore the option if not recognized
12315 # So say no if there are warnings
12316 if test ! -s out/conftest.err; then
12317 lt_cv_prog_compiler_c_o=yes
12322 # SGI C++ compiler will create directory out/ii_files/ for
12323 # template instantiation
12324 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12325 $rm out/* && rmdir out
12331 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12332 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12335 hard_links="nottested"
12336 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12337 # do not overwrite the value of need_locks provided by the user
12338 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12339 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12342 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12344 ln conftest.a conftest.b 2>&5 || hard_links=no
12345 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12346 echo "$as_me:$LINENO: result: $hard_links" >&5
12347 echo "${ECHO_T}$hard_links" >&6
12348 if test "$hard_links" = no; then
12349 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12350 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12357 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12358 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12361 allow_undefined_flag=
12362 enable_shared_with_static_runtimes=no
12364 archive_expsym_cmds=
12365 old_archive_From_new_cmds=
12366 old_archive_from_expsyms_cmds=
12367 export_dynamic_flag_spec=
12368 whole_archive_flag_spec=
12369 thread_safe_flag_spec=
12370 hardcode_libdir_flag_spec=
12371 hardcode_libdir_flag_spec_ld=
12372 hardcode_libdir_separator=
12374 hardcode_minus_L=no
12375 hardcode_shlibpath_var=unsupported
12376 link_all_deplibs=unknown
12377 hardcode_automatic=no
12379 module_expsym_cmds=
12380 always_export_symbols=no
12381 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12382 # include_expsyms should be a list of space-separated symbols to be *always*
12383 # included in the symbol list
12385 # exclude_expsyms can be an extended regexp of symbols to exclude
12386 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12387 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12388 # as well as any symbol that contains `d'.
12389 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12390 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12391 # platforms (ab)use it in PIC code, but their linkers get confused if
12392 # the symbol is explicitly referenced. Since portable code cannot
12393 # rely on this symbol name, it's probably fine to never include it in
12394 # preloaded symbol tables.
12395 extract_expsyms_cmds=
12398 cygwin* | mingw* | pw32*)
12399 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12400 # When not using gcc, we currently assume that we are using
12401 # Microsoft Visual C++.
12402 if test "$GCC" != yes; then
12412 if test "$with_gnu_ld" = yes; then
12413 # If archive_cmds runs LD, not CC, wlarc should be empty
12416 # See if GNU ld supports shared libraries.
12418 aix3* | aix4* | aix5*)
12419 # On AIX/PPC, the GNU linker is very broken
12420 if test "$host_cpu" != ia64; then
12424 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12425 *** to be unable to reliably create shared libraries on AIX.
12426 *** Therefore, libtool is disabling shared libraries support. If you
12427 *** really care for shared libraries, you may want to modify your PATH
12428 *** so that a non-GNU linker is found, and then restart.
12435 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)'
12436 hardcode_libdir_flag_spec='-L$libdir'
12437 hardcode_minus_L=yes
12439 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12440 # that the semantics of dynamic libraries on AmigaOS, at least up
12441 # to version 4, is to share data among multiple programs linked
12442 # with the same dynamic library. Since this doesn't match the
12443 # behavior of shared libraries on other platforms, we can't use
12449 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12450 allow_undefined_flag=unsupported
12451 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12452 # support --undefined. This deserves some investigation. FIXME
12453 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12459 cygwin* | mingw* | pw32*)
12460 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12461 # as there is no search path for DLLs.
12462 hardcode_libdir_flag_spec='-L$libdir'
12463 allow_undefined_flag=unsupported
12464 always_export_symbols=no
12465 enable_shared_with_static_runtimes=yes
12466 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12468 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12470 # If the export-symbols file already is a .def file (1st line
12471 # is EXPORTS), use it as is; otherwise, prepend...
12472 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12473 cp $export_symbols $output_objdir/$soname.def;
12475 echo EXPORTS > $output_objdir/$soname.def;
12476 cat $export_symbols >> $output_objdir/$soname.def;
12478 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12485 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12486 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12489 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12490 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12495 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12499 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12500 *** create shared libraries on Solaris systems. Therefore, libtool
12501 *** is disabling shared libraries support. We urge you to upgrade GNU
12502 *** binutils to release 2.9.1 or newer. Another option is to modify
12503 *** your PATH or compiler configuration so that the native linker is
12504 *** used, and then restart.
12507 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12509 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12516 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12518 hardcode_direct=yes
12519 hardcode_shlibpath_var=no
12523 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12524 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12525 archive_cmds="$tmp_archive_cmds"
12526 supports_anon_versioning=no
12527 case `$LD -v 2>/dev/null` in
12528 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12529 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12530 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12531 *\ 2.11.*) ;; # other 2.11 versions
12532 *) supports_anon_versioning=yes ;;
12534 if test $supports_anon_versioning = yes; then
12535 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12536 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12537 $echo "local: *; };" >> $output_objdir/$libname.ver~
12538 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12540 archive_expsym_cmds="$tmp_archive_cmds"
12548 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12550 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12557 if test "$ld_shlibs" = yes; then
12558 runpath_var=LD_RUN_PATH
12559 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12560 export_dynamic_flag_spec='${wl}--export-dynamic'
12561 # ancient GNU ld didn't support --whole-archive et. al.
12562 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12563 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12565 whole_archive_flag_spec=
12569 # PORTME fill in a description of your system's linker (not GNU ld)
12572 allow_undefined_flag=unsupported
12573 always_export_symbols=yes
12574 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'
12575 # Note: this linker hardcodes the directories in LIBPATH if there
12576 # are no directories specified by -L.
12577 hardcode_minus_L=yes
12578 if test "$GCC" = yes && test -z "$link_static_flag"; then
12579 # Neither direct hardcoding nor static linking is supported with a
12581 hardcode_direct=unsupported
12586 if test "$host_cpu" = ia64; then
12587 # On IA64, the linker does run time linking by default, so we don't
12588 # have to do anything special.
12589 aix_use_runtimelinking=no
12590 exp_sym_flag='-Bexport'
12593 # If we're using GNU nm, then we don't want the "-C" option.
12594 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12595 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12596 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'
12598 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'
12600 aix_use_runtimelinking=no
12602 # Test if we are trying to use run time linking or normal
12603 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12604 # need to do runtime linking.
12605 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12606 for ld_flag in $LDFLAGS; do
12607 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12608 aix_use_runtimelinking=yes
12614 exp_sym_flag='-bexport'
12615 no_entry_flag='-bnoentry'
12618 # When large executables or shared objects are built, AIX ld can
12619 # have problems creating the table of contents. If linking a library
12620 # or program results in "error TOC overflow" add -mminimal-toc to
12621 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12622 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12625 hardcode_direct=yes
12626 hardcode_libdir_separator=':'
12627 link_all_deplibs=yes
12629 if test "$GCC" = yes; then
12630 case $host_os in aix4.012|aix4.012.*)
12631 # We only want to do this on AIX 4.2 and lower, the check
12632 # below for broken collect2 doesn't work under 4.3+
12633 collect2name=`${CC} -print-prog-name=collect2`
12634 if test -f "$collect2name" && \
12635 strings "$collect2name" | grep resolve_lib_name >/dev/null
12637 # We have reworked collect2
12638 hardcode_direct=yes
12640 # We have old collect2
12641 hardcode_direct=unsupported
12642 # It fails to find uninstalled libraries when the uninstalled
12643 # path is not listed in the libpath. Setting hardcode_minus_L
12644 # to unsupported forces relinking
12645 hardcode_minus_L=yes
12646 hardcode_libdir_flag_spec='-L$libdir'
12647 hardcode_libdir_separator=
12650 shared_flag='-shared'
12653 if test "$host_cpu" = ia64; then
12654 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12655 # chokes on -Wl,-G. The following line is correct:
12658 if test "$aix_use_runtimelinking" = yes; then
12659 shared_flag='${wl}-G'
12661 shared_flag='${wl}-bM:SRE'
12666 # It seems that -bexpall does not export symbols beginning with
12667 # underscore (_), so it is better to generate a list of symbols to export.
12668 always_export_symbols=yes
12669 if test "$aix_use_runtimelinking" = yes; then
12670 # Warning - without using the other runtime loading flags (-brtl),
12671 # -berok will link without error, but may produce a broken library.
12672 allow_undefined_flag='-berok'
12673 # Determine the default libpath from the value encoded in an empty executable.
12674 cat >conftest.$ac_ext <<_ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h. */
12689 rm -f conftest.$ac_objext conftest$ac_exeext
12690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12691 (eval $ac_link) 2>conftest.er1
12693 grep -v '^ *+' conftest.er1 >conftest.err
12695 cat conftest.err >&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); } &&
12698 { ac_try='test -z "$ac_c_werror_flag"
12699 || test ! -s conftest.err'
12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701 (eval $ac_try) 2>&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; } &&
12705 { ac_try='test -s conftest$ac_exeext'
12706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707 (eval $ac_try) 2>&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; }; then
12712 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12714 # Check for a 64-bit object if we didn't find anything.
12715 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; }
12718 echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12722 rm -f conftest.err conftest.$ac_objext \
12723 conftest$ac_exeext conftest.$ac_ext
12724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12726 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12727 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"
12729 if test "$host_cpu" = ia64; then
12730 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12731 allow_undefined_flag="-z nodefs"
12732 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"
12734 # Determine the default libpath from the value encoded in an empty executable.
12735 cat >conftest.$ac_ext <<_ACEOF
12738 cat confdefs.h >>conftest.$ac_ext
12739 cat >>conftest.$ac_ext <<_ACEOF
12740 /* end confdefs.h. */
12750 rm -f conftest.$ac_objext conftest$ac_exeext
12751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12752 (eval $ac_link) 2>conftest.er1
12754 grep -v '^ *+' conftest.er1 >conftest.err
12756 cat conftest.err >&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } &&
12759 { ac_try='test -z "$ac_c_werror_flag"
12760 || test ! -s conftest.err'
12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; } &&
12766 { ac_try='test -s conftest$ac_exeext'
12767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768 (eval $ac_try) 2>&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; }; then
12773 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12775 # Check for a 64-bit object if we didn't find anything.
12776 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; }
12779 echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.$ac_ext >&5
12783 rm -f conftest.err conftest.$ac_objext \
12784 conftest$ac_exeext conftest.$ac_ext
12785 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12787 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12788 # Warning - without using the other run time loading flags,
12789 # -berok will link without error, but may produce a broken library.
12790 no_undefined_flag=' ${wl}-bernotok'
12791 allow_undefined_flag=' ${wl}-berok'
12792 # -bexpall does not export symbols beginning with underscore (_)
12793 always_export_symbols=yes
12794 # Exported symbols can be pulled into shared objects from archives
12795 whole_archive_flag_spec=' '
12796 archive_cmds_need_lc=yes
12797 # This is similar to how AIX traditionally builds it's shared libraries.
12798 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'
12804 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)'
12805 hardcode_libdir_flag_spec='-L$libdir'
12806 hardcode_minus_L=yes
12807 # see comment about different semantics on the GNU ld section
12812 export_dynamic_flag_spec=-rdynamic
12815 cygwin* | mingw* | pw32*)
12816 # When not using gcc, we currently assume that we are using
12817 # Microsoft Visual C++.
12818 # hardcode_libdir_flag_spec is actually meaningless, as there is
12819 # no search path for DLLs.
12820 hardcode_libdir_flag_spec=' '
12821 allow_undefined_flag=unsupported
12822 # Tell ltmain to make .lib files, not .a files.
12824 # Tell ltmain to make .dll files, not .so files.
12826 # FIXME: Setting linknames here is a bad hack.
12827 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12828 # The linker will automatically build a .lib file if we build a DLL.
12829 old_archive_From_new_cmds='true'
12830 # FIXME: Should let the user specify the lib program.
12831 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12832 fix_srcfile_path='`cygpath -w "$srcfile"`'
12833 enable_shared_with_static_runtimes=yes
12836 darwin* | rhapsody*)
12838 rhapsody* | darwin1.[012])
12839 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12842 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12843 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12845 case ${MACOSX_DEPLOYMENT_TARGET} in
12847 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12850 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12856 archive_cmds_need_lc=no
12858 hardcode_automatic=yes
12859 hardcode_shlibpath_var=unsupported
12860 whole_archive_flag_spec=''
12861 link_all_deplibs=yes
12862 if test "$GCC" = yes ; then
12863 output_verbose_link_cmd='echo'
12864 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12865 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12866 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12867 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}'
12868 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}'
12870 case "$cc_basename" in
12872 output_verbose_link_cmd='echo'
12873 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12874 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12875 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12876 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}'
12877 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}'
12887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12888 hardcode_libdir_flag_spec='-L$libdir'
12889 hardcode_shlibpath_var=no
12896 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12897 # support. Future versions do this automatically, but an explicit c++rt0.o
12898 # does not break anything, and helps significantly (at the cost of a little
12901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12902 hardcode_libdir_flag_spec='-R$libdir'
12903 hardcode_direct=yes
12904 hardcode_shlibpath_var=no
12907 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12909 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12910 hardcode_direct=yes
12911 hardcode_minus_L=yes
12912 hardcode_shlibpath_var=no
12915 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12916 freebsd* | kfreebsd*-gnu)
12917 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12918 hardcode_libdir_flag_spec='-R$libdir'
12919 hardcode_direct=yes
12920 hardcode_shlibpath_var=no
12924 if test "$GCC" = yes; then
12925 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'
12927 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'
12929 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12930 hardcode_libdir_separator=:
12931 hardcode_direct=yes
12933 # hardcode_minus_L: Not really in the search PATH,
12934 # but as the default location of the library.
12935 hardcode_minus_L=yes
12936 export_dynamic_flag_spec='${wl}-E'
12940 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12941 case "$host_cpu" in
12943 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12946 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12950 case "$host_cpu" in
12952 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12955 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12959 if test "$with_gnu_ld" = no; then
12960 case "$host_cpu" in
12962 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12963 hardcode_libdir_flag_spec_ld='+b $libdir'
12964 hardcode_libdir_separator=:
12966 hardcode_shlibpath_var=no
12969 hardcode_libdir_flag_spec='-L$libdir'
12971 hardcode_shlibpath_var=no
12973 # hardcode_minus_L: Not really in the search PATH,
12974 # but as the default location of the library.
12975 hardcode_minus_L=yes
12978 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12979 hardcode_libdir_separator=:
12980 hardcode_direct=yes
12981 export_dynamic_flag_spec='${wl}-E'
12983 # hardcode_minus_L: Not really in the search PATH,
12984 # but as the default location of the library.
12985 hardcode_minus_L=yes
12991 irix5* | irix6* | nonstopux*)
12992 if test "$GCC" = yes; then
12993 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'
12995 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'
12996 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12998 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12999 hardcode_libdir_separator=:
13000 link_all_deplibs=yes
13004 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13007 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13009 hardcode_libdir_flag_spec='-R$libdir'
13010 hardcode_direct=yes
13011 hardcode_shlibpath_var=no
13015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13016 hardcode_direct=yes
13017 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13018 hardcode_libdir_separator=:
13019 hardcode_shlibpath_var=no
13023 hardcode_direct=yes
13024 hardcode_shlibpath_var=no
13025 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13026 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13027 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13028 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13029 export_dynamic_flag_spec='${wl}-E'
13032 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13033 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13034 hardcode_libdir_flag_spec='-R$libdir'
13037 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13038 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13045 hardcode_libdir_flag_spec='-L$libdir'
13046 hardcode_minus_L=yes
13047 allow_undefined_flag=unsupported
13048 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'
13049 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13053 if test "$GCC" = yes; then
13054 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13055 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'
13057 allow_undefined_flag=' -expect_unresolved \*'
13058 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'
13060 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13061 hardcode_libdir_separator=:
13064 osf4* | osf5*) # as osf3* with the addition of -msym flag
13065 if test "$GCC" = yes; then
13066 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13067 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'
13068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13070 allow_undefined_flag=' -expect_unresolved \*'
13071 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'
13072 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13073 $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'
13075 # Both c and cxx compiler support -rpath directly
13076 hardcode_libdir_flag_spec='-rpath $libdir'
13078 hardcode_libdir_separator=:
13082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13083 hardcode_shlibpath_var=no
13084 export_dynamic_flag_spec='${wl}-Bexport'
13085 runpath_var=LD_RUN_PATH
13086 hardcode_runpath_var=yes
13090 no_undefined_flag=' -z text'
13091 if test "$GCC" = yes; then
13092 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13093 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13094 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13096 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13097 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13098 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13100 hardcode_libdir_flag_spec='-R$libdir'
13101 hardcode_shlibpath_var=no
13103 solaris2.[0-5] | solaris2.[0-5].*) ;;
13104 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13105 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13107 link_all_deplibs=yes
13111 if test "x$host_vendor" = xsequent; then
13112 # Use $CC to link under sequent, because it throws in some extra .o
13113 # files that make .init and .fini sections work.
13114 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13116 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13118 hardcode_libdir_flag_spec='-L$libdir'
13119 hardcode_direct=yes
13120 hardcode_minus_L=yes
13121 hardcode_shlibpath_var=no
13125 case $host_vendor in
13127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13128 hardcode_direct=yes # is this really true???
13131 ## LD is ld it makes a PLAMLIB
13132 ## CC just makes a GrossModule.
13133 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13134 reload_cmds='$CC -r -o $output$reload_objs'
13138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13139 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13142 runpath_var='LD_RUN_PATH'
13143 hardcode_shlibpath_var=no
13147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13148 hardcode_shlibpath_var=no
13149 export_dynamic_flag_spec='-Bexport'
13153 if test -d /usr/nec; then
13154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13155 hardcode_shlibpath_var=no
13156 runpath_var=LD_RUN_PATH
13157 hardcode_runpath_var=yes
13163 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13164 hardcode_direct=yes
13165 hardcode_minus_L=no
13166 hardcode_shlibpath_var=no
13167 hardcode_runpath_var=yes
13168 runpath_var=LD_RUN_PATH
13171 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13172 no_undefined_flag='${wl}-z ${wl}text'
13173 if test "$GCC" = yes; then
13174 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13176 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13178 runpath_var='LD_RUN_PATH'
13179 hardcode_shlibpath_var=no
13183 no_undefined_flag=' -z text'
13184 # $CC -shared without GNU ld will not create a library from C++
13185 # object files and a static libstdc++, better avoid it by now
13186 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13187 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13188 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13189 hardcode_libdir_flag_spec=
13190 hardcode_shlibpath_var=no
13191 runpath_var='LD_RUN_PATH'
13195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13196 hardcode_libdir_flag_spec='-L$libdir'
13197 hardcode_shlibpath_var=no
13206 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13207 echo "${ECHO_T}$ld_shlibs" >&6
13208 test "$ld_shlibs" = no && can_build_shared=no
13210 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13211 if test "$GCC" = yes; then
13212 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13216 # Do we need to explicitly link libc?
13218 case "x$archive_cmds_need_lc" in
13220 # Assume -lc should be added
13221 archive_cmds_need_lc=yes
13223 if test "$enable_shared" = yes && test "$GCC" = yes; then
13224 case $archive_cmds in
13226 # FIXME: we may have to deal with multi-command sequences.
13229 # Test whether the compiler implicitly links with -lc since on some
13230 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13231 # to ld, don't add -lc before -lgcc.
13232 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13233 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13235 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238 (eval $ac_compile) 2>&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } 2>conftest.err; then
13244 libobjs=conftest.$ac_objext
13246 wl=$lt_prog_compiler_wl
13252 lt_save_allow_undefined_flag=$allow_undefined_flag
13253 allow_undefined_flag=
13254 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13255 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }
13260 archive_cmds_need_lc=no
13262 archive_cmds_need_lc=yes
13264 allow_undefined_flag=$lt_save_allow_undefined_flag
13266 cat conftest.err 1>&5
13269 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13270 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13277 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13278 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13279 library_names_spec=
13280 libname_spec='lib$name'
13284 postuninstall_cmds=
13288 shlibpath_overrides_runpath=unknown
13290 dynamic_linker="$host_os ld.so"
13291 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13292 if test "$GCC" = yes; then
13293 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13294 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13295 # if the path contains ";" then we assume it to be the separator
13296 # otherwise default to the standard path separator (i.e. ":") - it is
13297 # assumed that no part of a normal pathname contains ";" but that should
13298 # okay in the real world where ";" in dirpaths is itself problematic.
13299 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13304 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13306 need_lib_prefix=unknown
13307 hardcode_into_libs=no
13309 # when you set need_version to no, make sure it does not cause -set_version
13310 # flags to be left without arguments
13311 need_version=unknown
13316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13317 shlibpath_var=LIBPATH
13319 # AIX 3 has no versioning support, so we append a major version to the name.
13320 soname_spec='${libname}${release}${shared_ext}$major'
13327 hardcode_into_libs=yes
13328 if test "$host_cpu" = ia64; then
13329 # AIX 5 supports IA64
13330 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13331 shlibpath_var=LD_LIBRARY_PATH
13333 # With GCC up to 2.95.x, collect2 would create an import file
13334 # for dependence libraries. The import file would start with
13335 # the line `#! .'. This would cause the generated library to
13336 # depend on `.', always an invalid library. This was fixed in
13337 # development snapshots of GCC prior to 3.0.
13339 aix4 | aix4.[01] | aix4.[01].*)
13340 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13342 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13345 can_build_shared=no
13349 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13350 # soname into executable. Probably we can add versioning support to
13351 # collect2, so additional links can be useful in future.
13352 if test "$aix_use_runtimelinking" = yes; then
13353 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13354 # instead of lib<name>.a to let people know that these are not
13355 # typical AIX shared libraries.
13356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13358 # We preserve .a as extension for shared libraries through AIX4.2
13359 # and later when we are not doing run time linking.
13360 library_names_spec='${libname}${release}.a $libname.a'
13361 soname_spec='${libname}${release}${shared_ext}$major'
13363 shlibpath_var=LIBPATH
13368 library_names_spec='$libname.ixlibrary $libname.a'
13369 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13370 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'
13374 library_names_spec='${libname}${shared_ext}'
13375 dynamic_linker="$host_os ld.so"
13376 shlibpath_var=LIBRARY_PATH
13382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13383 soname_spec='${libname}${release}${shared_ext}$major'
13384 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13385 shlibpath_var=LD_LIBRARY_PATH
13386 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13387 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13388 # the default ld.so.conf also contains /usr/contrib/lib and
13389 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13390 # libtool to hard-code these into programs
13393 cygwin* | mingw* | pw32*)
13394 version_type=windows
13399 case $GCC,$host_os in
13400 yes,cygwin* | yes,mingw* | yes,pw32*)
13401 library_names_spec='$libname.dll.a'
13402 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13403 postinstall_cmds='base_file=`basename \${file}`~
13404 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13405 dldir=$destdir/`dirname \$dlpath`~
13406 test -d \$dldir || mkdir -p \$dldir~
13407 $install_prog $dir/$dlname \$dldir/$dlname'
13408 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13409 dlpath=$dir/\$dldll~
13411 shlibpath_overrides_runpath=yes
13415 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13416 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13417 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13420 # MinGW DLLs use traditional 'lib' prefix
13421 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13422 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13423 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13424 # It is most probably a Windows format PATH printed by
13425 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13426 # path with ; separators, and with drive letters. We can handle the
13427 # drive letters (cygwin fileutils understands them), so leave them,
13428 # especially as we might pass files found there to a mingw objdump,
13429 # which wouldn't understand a cygwinified path. Ahh.
13430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13436 # pw32 DLLs use 'pw' prefix rather than 'lib'
13437 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13443 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13446 dynamic_linker='Win32 ld.exe'
13447 # FIXME: first we should search . and the directory the executable is in
13451 darwin* | rhapsody*)
13452 dynamic_linker="$host_os dyld"
13453 version_type=darwin
13456 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13457 soname_spec='${libname}${release}${major}$shared_ext'
13458 shlibpath_overrides_runpath=yes
13459 shlibpath_var=DYLD_LIBRARY_PATH
13460 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13461 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13462 if test "$GCC" = yes; then
13463 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"`
13465 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13467 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13475 soname_spec='${libname}${release}${shared_ext}$major'
13476 shlibpath_var=LD_LIBRARY_PATH
13487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13488 soname_spec='${libname}${release}${shared_ext}$major'
13489 shlibpath_var=LD_LIBRARY_PATH
13490 shlibpath_overrides_runpath=no
13491 hardcode_into_libs=yes
13492 dynamic_linker='GNU ld.so'
13496 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13497 version_type=freebsd-$objformat
13498 case $version_type in
13500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13505 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13509 shlibpath_var=LD_LIBRARY_PATH
13512 shlibpath_overrides_runpath=yes
13514 freebsd3.01* | freebsdelf3.01*)
13515 shlibpath_overrides_runpath=yes
13516 hardcode_into_libs=yes
13519 shlibpath_overrides_runpath=no
13520 hardcode_into_libs=yes
13529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13530 soname_spec='${libname}${release}${shared_ext}$major'
13531 shlibpath_var=LD_LIBRARY_PATH
13532 hardcode_into_libs=yes
13535 hpux9* | hpux10* | hpux11*)
13536 # Give a soname corresponding to the major version so that dld.sl refuses to
13537 # link against other versions.
13541 case "$host_cpu" in
13544 hardcode_into_libs=yes
13545 dynamic_linker="$host_os dld.so"
13546 shlibpath_var=LD_LIBRARY_PATH
13547 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13549 soname_spec='${libname}${release}${shared_ext}$major'
13550 if test "X$HPUX_IA64_MODE" = X32; then
13551 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13553 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13555 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13559 hardcode_into_libs=yes
13560 dynamic_linker="$host_os dld.sl"
13561 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13564 soname_spec='${libname}${release}${shared_ext}$major'
13565 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13570 dynamic_linker="$host_os dld.sl"
13571 shlibpath_var=SHLIB_PATH
13572 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13574 soname_spec='${libname}${release}${shared_ext}$major'
13577 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13578 postinstall_cmds='chmod 555 $lib'
13581 irix5* | irix6* | nonstopux*)
13583 nonstopux*) version_type=nonstopux ;;
13585 if test "$lt_cv_prog_gnu_ld" = yes; then
13593 soname_spec='${libname}${release}${shared_ext}$major'
13594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13596 irix5* | nonstopux*)
13597 libsuff= shlibsuff=
13600 case $LD in # libtool.m4 will add one of these switches to LD
13601 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13602 libsuff= shlibsuff= libmagic=32-bit;;
13603 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13604 libsuff=32 shlibsuff=N32 libmagic=N32;;
13605 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13606 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13607 *) libsuff= shlibsuff= libmagic=never-match;;
13611 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13612 shlibpath_overrides_runpath=no
13613 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13614 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13615 hardcode_into_libs=yes
13618 # No shared lib support for Linux oldld, aout, or coff.
13619 linux*oldld* | linux*aout* | linux*coff*)
13623 # This must be Linux ELF.
13628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13629 soname_spec='${libname}${release}${shared_ext}$major'
13630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13631 shlibpath_var=LD_LIBRARY_PATH
13632 shlibpath_overrides_runpath=no
13633 # This implies no fast_install, which is unacceptable.
13634 # Some rework will be needed to allow for fast_install
13635 # before this can be enabled.
13636 hardcode_into_libs=yes
13638 # Append ld.so.conf contents to the search path
13639 if test -f /etc/ld.so.conf; then
13640 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13641 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13644 # We used to test for /lib/ld.so.1 and disable shared libraries on
13645 # powerpc, because MkLinux only supported shared libraries with the
13646 # GNU dynamic linker. Since this was broken with cross compilers,
13647 # most powerpc-linux boxes support dynamic linking these days and
13648 # people can always --disable-shared, the test was removed, and we
13649 # assume the GNU/Linux dynamic linker is in use.
13650 dynamic_linker='GNU/Linux ld.so'
13657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13658 soname_spec='${libname}${release}${shared_ext}$major'
13659 shlibpath_var=LD_LIBRARY_PATH
13660 shlibpath_overrides_runpath=no
13661 hardcode_into_libs=yes
13662 dynamic_linker='GNU ld.so'
13669 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13672 dynamic_linker='NetBSD (a.out) ld.so'
13674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13675 soname_spec='${libname}${release}${shared_ext}$major'
13676 dynamic_linker='NetBSD ld.elf_so'
13678 shlibpath_var=LD_LIBRARY_PATH
13679 shlibpath_overrides_runpath=yes
13680 hardcode_into_libs=yes
13685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13686 shlibpath_var=LD_LIBRARY_PATH
13687 shlibpath_overrides_runpath=yes
13694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13695 soname_spec='${libname}${release}${shared_ext}$major'
13696 shlibpath_var=LD_LIBRARY_PATH
13697 shlibpath_overrides_runpath=yes
13704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13706 shlibpath_var=LD_LIBRARY_PATH
13707 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13709 openbsd2.[89] | openbsd2.[89].*)
13710 shlibpath_overrides_runpath=no
13713 shlibpath_overrides_runpath=yes
13717 shlibpath_overrides_runpath=yes
13722 libname_spec='$name'
13725 library_names_spec='$libname${shared_ext} $libname.a'
13726 dynamic_linker='OS/2 ld.exe'
13727 shlibpath_var=LIBPATH
13730 osf3* | osf4* | osf5*)
13734 soname_spec='${libname}${release}${shared_ext}$major'
13735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13736 shlibpath_var=LD_LIBRARY_PATH
13737 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13738 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13743 soname_spec='${libname}${release}${shared_ext}$major'
13744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13745 shlibpath_var=LD_LIBRARY_PATH
13752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13753 soname_spec='${libname}${release}${shared_ext}$major'
13754 shlibpath_var=LD_LIBRARY_PATH
13755 shlibpath_overrides_runpath=yes
13756 hardcode_into_libs=yes
13757 # ldd complains unless libraries are executable
13758 postinstall_cmds='chmod +x $lib'
13763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13764 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13765 shlibpath_var=LD_LIBRARY_PATH
13766 shlibpath_overrides_runpath=yes
13767 if test "$with_gnu_ld" = yes; then
13773 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13776 soname_spec='${libname}${release}${shared_ext}$major'
13777 shlibpath_var=LD_LIBRARY_PATH
13778 case $host_vendor in
13780 shlibpath_overrides_runpath=no
13782 export_dynamic_flag_spec='${wl}-Blargedynsym'
13783 runpath_var=LD_RUN_PATH
13791 shlibpath_overrides_runpath=no
13792 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13798 if test -d /usr/nec ;then
13800 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13801 soname_spec='$libname${shared_ext}.$major'
13802 shlibpath_var=LD_LIBRARY_PATH
13808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13809 soname_spec='${libname}${release}${shared_ext}$major'
13810 shlibpath_var=LD_LIBRARY_PATH
13817 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13818 echo "${ECHO_T}$dynamic_linker" >&6
13819 test "$dynamic_linker" = no && can_build_shared=no
13821 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13822 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13824 if test -n "$hardcode_libdir_flag_spec" || \
13825 test -n "$runpath_var" || \
13826 test "X$hardcode_automatic" = "Xyes" ; then
13828 # We can hardcode non-existant directories.
13829 if test "$hardcode_direct" != no &&
13830 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13831 # have to relink, otherwise we might link with an installed library
13832 # when we should be linking with a yet-to-be-installed one
13833 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13834 test "$hardcode_minus_L" != no; then
13835 # Linking always hardcodes the temporary library directory.
13836 hardcode_action=relink
13838 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13839 hardcode_action=immediate
13842 # We cannot hardcode anything, or else we can only hardcode existing
13844 hardcode_action=unsupported
13846 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13847 echo "${ECHO_T}$hardcode_action" >&6
13849 if test "$hardcode_action" = relink; then
13850 # Fast installation is not supported
13851 enable_fast_install=no
13852 elif test "$shlibpath_overrides_runpath" = yes ||
13853 test "$enable_shared" = no; then
13854 # Fast installation is not necessary
13855 enable_fast_install=needless
13860 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13861 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13862 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13863 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13864 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13865 echo "$as_me:$LINENO: result: yes" >&5
13866 echo "${ECHO_T}yes" >&6
13868 # FIXME - insert some real tests, host_os isn't really good enough
13871 if test -n "$STRIP" ; then
13872 striplib="$STRIP -x"
13873 echo "$as_me:$LINENO: result: yes" >&5
13874 echo "${ECHO_T}yes" >&6
13876 echo "$as_me:$LINENO: result: no" >&5
13877 echo "${ECHO_T}no" >&6
13881 echo "$as_me:$LINENO: result: no" >&5
13882 echo "${ECHO_T}no" >&6
13887 if test "x$enable_dlopen" != xyes; then
13888 enable_dlopen=unknown
13889 enable_dlopen_self=unknown
13890 enable_dlopen_self_static=unknown
13897 lt_cv_dlopen="load_add_on"
13899 lt_cv_dlopen_self=yes
13903 lt_cv_dlopen="LoadLibrary"
13908 lt_cv_dlopen="dlopen"
13913 # if libdl is installed we need to link against it
13914 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13915 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13916 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13919 ac_check_lib_save_LIBS=$LIBS
13921 cat >conftest.$ac_ext <<_ACEOF
13924 cat confdefs.h >>conftest.$ac_ext
13925 cat >>conftest.$ac_ext <<_ACEOF
13926 /* end confdefs.h. */
13928 /* Override any gcc2 internal prototype to avoid an error. */
13932 /* We use char because int might match the return type of a gcc2
13933 builtin and then its argument prototype would still apply. */
13943 rm -f conftest.$ac_objext conftest$ac_exeext
13944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13945 (eval $ac_link) 2>conftest.er1
13947 grep -v '^ *+' conftest.er1 >conftest.err
13949 cat conftest.err >&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); } &&
13952 { ac_try='test -z "$ac_c_werror_flag"
13953 || test ! -s conftest.err'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; } &&
13959 { ac_try='test -s conftest$ac_exeext'
13960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961 (eval $ac_try) 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; }; then
13965 ac_cv_lib_dl_dlopen=yes
13967 echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13970 ac_cv_lib_dl_dlopen=no
13972 rm -f conftest.err conftest.$ac_objext \
13973 conftest$ac_exeext conftest.$ac_ext
13974 LIBS=$ac_check_lib_save_LIBS
13976 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13977 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13978 if test $ac_cv_lib_dl_dlopen = yes; then
13979 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13982 lt_cv_dlopen="dyld"
13984 lt_cv_dlopen_self=yes
13991 echo "$as_me:$LINENO: checking for shl_load" >&5
13992 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13993 if test "${ac_cv_func_shl_load+set}" = set; then
13994 echo $ECHO_N "(cached) $ECHO_C" >&6
13996 cat >conftest.$ac_ext <<_ACEOF
13999 cat confdefs.h >>conftest.$ac_ext
14000 cat >>conftest.$ac_ext <<_ACEOF
14001 /* end confdefs.h. */
14002 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14004 #define shl_load innocuous_shl_load
14006 /* System header to define __stub macros and hopefully few prototypes,
14007 which can conflict with char shl_load (); below.
14008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14009 <limits.h> exists even on freestanding compilers. */
14012 # include <limits.h>
14014 # include <assert.h>
14019 /* Override any gcc2 internal prototype to avoid an error. */
14024 /* We use char because int might match the return type of a gcc2
14025 builtin and then its argument prototype would still apply. */
14027 /* The GNU C library defines this for functions which it implements
14028 to always fail with ENOSYS. Some functions are actually named
14029 something starting with __ and the normal name is an alias. */
14030 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14033 char (*f) () = shl_load;
14042 return f != shl_load;
14047 rm -f conftest.$ac_objext conftest$ac_exeext
14048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14049 (eval $ac_link) 2>conftest.er1
14051 grep -v '^ *+' conftest.er1 >conftest.err
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } &&
14056 { ac_try='test -z "$ac_c_werror_flag"
14057 || test ! -s conftest.err'
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; } &&
14063 { ac_try='test -s conftest$ac_exeext'
14064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14065 (eval $ac_try) 2>&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; }; then
14069 ac_cv_func_shl_load=yes
14071 echo "$as_me: failed program was:" >&5
14072 sed 's/^/| /' conftest.$ac_ext >&5
14074 ac_cv_func_shl_load=no
14076 rm -f conftest.err conftest.$ac_objext \
14077 conftest$ac_exeext conftest.$ac_ext
14079 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14080 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14081 if test $ac_cv_func_shl_load = yes; then
14082 lt_cv_dlopen="shl_load"
14084 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14085 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14086 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14087 echo $ECHO_N "(cached) $ECHO_C" >&6
14089 ac_check_lib_save_LIBS=$LIBS
14091 cat >conftest.$ac_ext <<_ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h. */
14098 /* Override any gcc2 internal prototype to avoid an error. */
14102 /* We use char because int might match the return type of a gcc2
14103 builtin and then its argument prototype would still apply. */
14113 rm -f conftest.$ac_objext conftest$ac_exeext
14114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14115 (eval $ac_link) 2>conftest.er1
14117 grep -v '^ *+' conftest.er1 >conftest.err
14119 cat conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } &&
14122 { ac_try='test -z "$ac_c_werror_flag"
14123 || test ! -s conftest.err'
14124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125 (eval $ac_try) 2>&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); }; } &&
14129 { ac_try='test -s conftest$ac_exeext'
14130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131 (eval $ac_try) 2>&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; }; then
14135 ac_cv_lib_dld_shl_load=yes
14137 echo "$as_me: failed program was:" >&5
14138 sed 's/^/| /' conftest.$ac_ext >&5
14140 ac_cv_lib_dld_shl_load=no
14142 rm -f conftest.err conftest.$ac_objext \
14143 conftest$ac_exeext conftest.$ac_ext
14144 LIBS=$ac_check_lib_save_LIBS
14146 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14147 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14148 if test $ac_cv_lib_dld_shl_load = yes; then
14149 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14151 echo "$as_me:$LINENO: checking for dlopen" >&5
14152 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14153 if test "${ac_cv_func_dlopen+set}" = set; then
14154 echo $ECHO_N "(cached) $ECHO_C" >&6
14156 cat >conftest.$ac_ext <<_ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h. */
14162 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14164 #define dlopen innocuous_dlopen
14166 /* System header to define __stub macros and hopefully few prototypes,
14167 which can conflict with char dlopen (); below.
14168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14169 <limits.h> exists even on freestanding compilers. */
14172 # include <limits.h>
14174 # include <assert.h>
14179 /* Override any gcc2 internal prototype to avoid an error. */
14184 /* We use char because int might match the return type of a gcc2
14185 builtin and then its argument prototype would still apply. */
14187 /* The GNU C library defines this for functions which it implements
14188 to always fail with ENOSYS. Some functions are actually named
14189 something starting with __ and the normal name is an alias. */
14190 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14193 char (*f) () = dlopen;
14202 return f != dlopen;
14207 rm -f conftest.$ac_objext conftest$ac_exeext
14208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14209 (eval $ac_link) 2>conftest.er1
14211 grep -v '^ *+' conftest.er1 >conftest.err
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } &&
14216 { ac_try='test -z "$ac_c_werror_flag"
14217 || test ! -s conftest.err'
14218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219 (eval $ac_try) 2>&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; } &&
14223 { ac_try='test -s conftest$ac_exeext'
14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225 (eval $ac_try) 2>&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; }; then
14229 ac_cv_func_dlopen=yes
14231 echo "$as_me: failed program was:" >&5
14232 sed 's/^/| /' conftest.$ac_ext >&5
14234 ac_cv_func_dlopen=no
14236 rm -f conftest.err conftest.$ac_objext \
14237 conftest$ac_exeext conftest.$ac_ext
14239 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14240 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14241 if test $ac_cv_func_dlopen = yes; then
14242 lt_cv_dlopen="dlopen"
14244 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14245 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14246 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14247 echo $ECHO_N "(cached) $ECHO_C" >&6
14249 ac_check_lib_save_LIBS=$LIBS
14251 cat >conftest.$ac_ext <<_ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h. */
14258 /* Override any gcc2 internal prototype to avoid an error. */
14262 /* We use char because int might match the return type of a gcc2
14263 builtin and then its argument prototype would still apply. */
14273 rm -f conftest.$ac_objext conftest$ac_exeext
14274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14275 (eval $ac_link) 2>conftest.er1
14277 grep -v '^ *+' conftest.er1 >conftest.err
14279 cat conftest.err >&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } &&
14282 { ac_try='test -z "$ac_c_werror_flag"
14283 || test ! -s conftest.err'
14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 (eval $ac_try) 2>&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; } &&
14289 { ac_try='test -s conftest$ac_exeext'
14290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291 (eval $ac_try) 2>&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); }; }; then
14295 ac_cv_lib_dl_dlopen=yes
14297 echo "$as_me: failed program was:" >&5
14298 sed 's/^/| /' conftest.$ac_ext >&5
14300 ac_cv_lib_dl_dlopen=no
14302 rm -f conftest.err conftest.$ac_objext \
14303 conftest$ac_exeext conftest.$ac_ext
14304 LIBS=$ac_check_lib_save_LIBS
14306 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14307 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14308 if test $ac_cv_lib_dl_dlopen = yes; then
14309 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14311 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14312 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14313 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14314 echo $ECHO_N "(cached) $ECHO_C" >&6
14316 ac_check_lib_save_LIBS=$LIBS
14317 LIBS="-lsvld $LIBS"
14318 cat >conftest.$ac_ext <<_ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h. */
14325 /* Override any gcc2 internal prototype to avoid an error. */
14329 /* We use char because int might match the return type of a gcc2
14330 builtin and then its argument prototype would still apply. */
14340 rm -f conftest.$ac_objext conftest$ac_exeext
14341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14342 (eval $ac_link) 2>conftest.er1
14344 grep -v '^ *+' conftest.er1 >conftest.err
14346 cat conftest.err >&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } &&
14349 { ac_try='test -z "$ac_c_werror_flag"
14350 || test ! -s conftest.err'
14351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14352 (eval $ac_try) 2>&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); }; } &&
14356 { ac_try='test -s conftest$ac_exeext'
14357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; }; then
14362 ac_cv_lib_svld_dlopen=yes
14364 echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14367 ac_cv_lib_svld_dlopen=no
14369 rm -f conftest.err conftest.$ac_objext \
14370 conftest$ac_exeext conftest.$ac_ext
14371 LIBS=$ac_check_lib_save_LIBS
14373 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14374 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14375 if test $ac_cv_lib_svld_dlopen = yes; then
14376 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14378 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14379 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14380 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14381 echo $ECHO_N "(cached) $ECHO_C" >&6
14383 ac_check_lib_save_LIBS=$LIBS
14385 cat >conftest.$ac_ext <<_ACEOF
14388 cat confdefs.h >>conftest.$ac_ext
14389 cat >>conftest.$ac_ext <<_ACEOF
14390 /* end confdefs.h. */
14392 /* Override any gcc2 internal prototype to avoid an error. */
14396 /* We use char because int might match the return type of a gcc2
14397 builtin and then its argument prototype would still apply. */
14407 rm -f conftest.$ac_objext conftest$ac_exeext
14408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14409 (eval $ac_link) 2>conftest.er1
14411 grep -v '^ *+' conftest.er1 >conftest.err
14413 cat conftest.err >&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); } &&
14416 { ac_try='test -z "$ac_c_werror_flag"
14417 || test ! -s conftest.err'
14418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419 (eval $ac_try) 2>&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); }; } &&
14423 { ac_try='test -s conftest$ac_exeext'
14424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425 (eval $ac_try) 2>&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; }; then
14429 ac_cv_lib_dld_dld_link=yes
14431 echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14434 ac_cv_lib_dld_dld_link=no
14436 rm -f conftest.err conftest.$ac_objext \
14437 conftest$ac_exeext conftest.$ac_ext
14438 LIBS=$ac_check_lib_save_LIBS
14440 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14441 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14442 if test $ac_cv_lib_dld_dld_link = yes; then
14443 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14464 if test "x$lt_cv_dlopen" != xno; then
14470 case $lt_cv_dlopen in
14472 save_CPPFLAGS="$CPPFLAGS"
14473 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14475 save_LDFLAGS="$LDFLAGS"
14476 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14479 LIBS="$lt_cv_dlopen_libs $LIBS"
14481 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14482 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14483 if test "${lt_cv_dlopen_self+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14486 if test "$cross_compiling" = yes; then :
14487 lt_cv_dlopen_self=cross
14489 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14490 lt_status=$lt_dlunknown
14491 cat > conftest.$ac_ext <<EOF
14492 #line 14492 "configure"
14493 #include "confdefs.h"
14502 # define LT_DLGLOBAL RTLD_GLOBAL
14505 # define LT_DLGLOBAL DL_GLOBAL
14507 # define LT_DLGLOBAL 0
14511 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14512 find out it does not work in some platform. */
14513 #ifndef LT_DLLAZY_OR_NOW
14515 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14518 # define LT_DLLAZY_OR_NOW DL_LAZY
14521 # define LT_DLLAZY_OR_NOW RTLD_NOW
14524 # define LT_DLLAZY_OR_NOW DL_NOW
14526 # define LT_DLLAZY_OR_NOW 0
14534 extern "C" void exit (int);
14537 void fnord() { int i=42;}
14540 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14541 int status = $lt_dlunknown;
14545 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14546 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14547 /* dlclose (self); */
14553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14554 (eval $ac_link) 2>&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14558 (./conftest; exit; ) 2>/dev/null
14560 case x$lt_status in
14561 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14562 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14563 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14566 # compilation failed
14567 lt_cv_dlopen_self=no
14574 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14575 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14577 if test "x$lt_cv_dlopen_self" = xyes; then
14578 LDFLAGS="$LDFLAGS $link_static_flag"
14579 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14580 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14581 if test "${lt_cv_dlopen_self_static+set}" = set; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14584 if test "$cross_compiling" = yes; then :
14585 lt_cv_dlopen_self_static=cross
14587 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14588 lt_status=$lt_dlunknown
14589 cat > conftest.$ac_ext <<EOF
14590 #line 14590 "configure"
14591 #include "confdefs.h"
14600 # define LT_DLGLOBAL RTLD_GLOBAL
14603 # define LT_DLGLOBAL DL_GLOBAL
14605 # define LT_DLGLOBAL 0
14609 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14610 find out it does not work in some platform. */
14611 #ifndef LT_DLLAZY_OR_NOW
14613 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14616 # define LT_DLLAZY_OR_NOW DL_LAZY
14619 # define LT_DLLAZY_OR_NOW RTLD_NOW
14622 # define LT_DLLAZY_OR_NOW DL_NOW
14624 # define LT_DLLAZY_OR_NOW 0
14632 extern "C" void exit (int);
14635 void fnord() { int i=42;}
14638 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14639 int status = $lt_dlunknown;
14643 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14644 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14645 /* dlclose (self); */
14651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14652 (eval $ac_link) 2>&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14656 (./conftest; exit; ) 2>/dev/null
14658 case x$lt_status in
14659 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14660 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14661 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14664 # compilation failed
14665 lt_cv_dlopen_self_static=no
14672 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14673 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14676 CPPFLAGS="$save_CPPFLAGS"
14677 LDFLAGS="$save_LDFLAGS"
14682 case $lt_cv_dlopen_self in
14683 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14684 *) enable_dlopen_self=unknown ;;
14687 case $lt_cv_dlopen_self_static in
14688 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14689 *) enable_dlopen_self_static=unknown ;;
14694 # Report which librarie types wil actually be built
14695 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14696 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14697 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14698 echo "${ECHO_T}$can_build_shared" >&6
14700 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14701 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14702 test "$can_build_shared" = "no" && enable_shared=no
14704 # On AIX, shared libraries and static libraries use the same namespace, and
14705 # are all built from PIC.
14708 test "$enable_shared" = yes && enable_static=no
14709 if test -n "$RANLIB"; then
14710 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14711 postinstall_cmds='$RANLIB $lib'
14716 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14717 test "$enable_shared" = yes && enable_static=no
14721 echo "$as_me:$LINENO: result: $enable_shared" >&5
14722 echo "${ECHO_T}$enable_shared" >&6
14724 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14725 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14726 # Make sure either enable_shared or enable_static is yes.
14727 test "$enable_shared" = yes || enable_static=yes
14728 echo "$as_me:$LINENO: result: $enable_static" >&5
14729 echo "${ECHO_T}$enable_static" >&6
14731 # The else clause should only fire when bootstrapping the
14732 # libtool distribution, otherwise you forgot to ship ltmain.sh
14733 # with your package, and you will get complaints that there are
14734 # no rules to generate ltmain.sh.
14735 if test -f "$ltmain"; then
14736 # See if we are running on zsh, and set the options which allow our commands through
14737 # without removal of \ escapes.
14738 if test -n "${ZSH_VERSION+set}" ; then
14739 setopt NO_GLOB_SUBST
14741 # Now quote all the things that may contain metacharacters while being
14742 # careful not to overquote the AC_SUBSTed values. We take copies of the
14743 # variables and quote the copies for generation of the libtool script.
14744 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14746 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14747 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14748 deplibs_check_method reload_flag reload_cmds need_locks \
14749 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14750 lt_cv_sys_global_symbol_to_c_name_address \
14751 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14752 old_postinstall_cmds old_postuninstall_cmds \
14756 lt_prog_compiler_wl \
14757 lt_prog_compiler_pic \
14758 lt_prog_compiler_static \
14759 lt_prog_compiler_no_builtin_flag \
14760 export_dynamic_flag_spec \
14761 thread_safe_flag_spec \
14762 whole_archive_flag_spec \
14763 enable_shared_with_static_runtimes \
14765 old_archive_from_new_cmds \
14770 compiler_lib_search_path \
14772 archive_expsym_cmds \
14774 postuninstall_cmds \
14775 old_archive_from_expsyms_cmds \
14776 allow_undefined_flag \
14777 no_undefined_flag \
14778 export_symbols_cmds \
14779 hardcode_libdir_flag_spec \
14780 hardcode_libdir_flag_spec_ld \
14781 hardcode_libdir_separator \
14782 hardcode_automatic \
14784 module_expsym_cmds \
14785 lt_cv_prog_compiler_c_o \
14787 include_expsyms; do
14790 old_archive_cmds | \
14791 old_archive_from_new_cmds | \
14793 archive_expsym_cmds | \
14795 module_expsym_cmds | \
14796 old_archive_from_expsyms_cmds | \
14797 export_symbols_cmds | \
14798 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14799 postinstall_cmds | postuninstall_cmds | \
14800 old_postinstall_cmds | old_postuninstall_cmds | \
14801 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14802 # Double-quote double-evaled strings.
14803 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14806 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14812 *'\$0 --fallback-echo"')
14813 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14817 cfgfile="${ofile}T"
14818 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14820 { echo "$as_me:$LINENO: creating $ofile" >&5
14821 echo "$as_me: creating $ofile" >&6;}
14823 cat <<__EOF__ >> "$cfgfile"
14826 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14827 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14828 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14830 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14831 # Free Software Foundation, Inc.
14833 # This file is part of GNU Libtool:
14834 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14836 # This program is free software; you can redistribute it and/or modify
14837 # it under the terms of the GNU General Public License as published by
14838 # the Free Software Foundation; either version 2 of the License, or
14839 # (at your option) any later version.
14841 # This program is distributed in the hope that it will be useful, but
14842 # WITHOUT ANY WARRANTY; without even the implied warranty of
14843 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14844 # General Public License for more details.
14846 # You should have received a copy of the GNU General Public License
14847 # along with this program; if not, write to the Free Software
14848 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14850 # As a special exception to the GNU General Public License, if you
14851 # distribute this file as part of a program that contains a
14852 # configuration script generated by Autoconf, you may include it under
14853 # the same distribution terms that you use for the rest of that program.
14855 # A sed program that does not truncate output.
14858 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14859 Xsed="$SED -e s/^X//"
14861 # The HP-UX ksh and POSIX shell print the target directory to stdout
14862 # if CDPATH is set.
14863 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14865 # The names of the tagged configurations supported by this script.
14868 # ### BEGIN LIBTOOL CONFIG
14870 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14872 # Shell to use when invoking shell scripts.
14875 # Whether or not to build shared libraries.
14876 build_libtool_libs=$enable_shared
14878 # Whether or not to build static libraries.
14879 build_old_libs=$enable_static
14881 # Whether or not to add -lc for building shared libraries.
14882 build_libtool_need_lc=$archive_cmds_need_lc
14884 # Whether or not to disallow shared libs when runtime libs are static
14885 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14887 # Whether or not to optimize for fast installation.
14888 fast_install=$enable_fast_install
14891 host_alias=$host_alias
14894 # An echo program that does not interpret backslashes.
14899 AR_FLAGS=$lt_AR_FLAGS
14904 # A language-specific compiler.
14907 # Is the compiler the GNU C compiler?
14913 # The linker used to build libraries.
14916 # Whether we need hard or soft links.
14919 # A BSD-compatible nm program.
14922 # A symbol stripping program
14925 # Used to examine libraries when file_magic_cmd begins "file"
14926 MAGIC_CMD=$MAGIC_CMD
14928 # Used on cygwin: DLL creation program.
14931 # Used on cygwin: object dumper.
14934 # Used on cygwin: assembler.
14937 # The name of the directory that contains temporary libtool files.
14940 # How to create reloadable object files.
14941 reload_flag=$lt_reload_flag
14942 reload_cmds=$lt_reload_cmds
14944 # How to pass a linker flag through the compiler.
14945 wl=$lt_lt_prog_compiler_wl
14947 # Object file suffix (normally "o").
14948 objext="$ac_objext"
14950 # Old archive suffix (normally "a").
14953 # Shared library suffix (normally ".so").
14954 shrext_cmds='$shrext_cmds'
14956 # Executable file suffix (normally "").
14959 # Additional compiler flags for building library objects.
14960 pic_flag=$lt_lt_prog_compiler_pic
14963 # What is the maximum length of a command?
14964 max_cmd_len=$lt_cv_sys_max_cmd_len
14966 # Does compiler simultaneously support -c and -o options?
14967 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14969 # Must we lock files when doing compilation ?
14970 need_locks=$lt_need_locks
14972 # Do we need the lib prefix for modules?
14973 need_lib_prefix=$need_lib_prefix
14975 # Do we need a version for libraries?
14976 need_version=$need_version
14978 # Whether dlopen is supported.
14979 dlopen_support=$enable_dlopen
14981 # Whether dlopen of programs is supported.
14982 dlopen_self=$enable_dlopen_self
14984 # Whether dlopen of statically linked programs is supported.
14985 dlopen_self_static=$enable_dlopen_self_static
14987 # Compiler flag to prevent dynamic linking.
14988 link_static_flag=$lt_lt_prog_compiler_static
14990 # Compiler flag to turn off builtin functions.
14991 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14993 # Compiler flag to allow reflexive dlopens.
14994 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14996 # Compiler flag to generate shared objects directly from archives.
14997 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14999 # Compiler flag to generate thread-safe objects.
15000 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15002 # Library versioning type.
15003 version_type=$version_type
15005 # Format of library name prefix.
15006 libname_spec=$lt_libname_spec
15008 # List of archive names. First name is the real one, the rest are links.
15009 # The last name is the one that the linker finds with -lNAME.
15010 library_names_spec=$lt_library_names_spec
15012 # The coded name of the library, if different from the real name.
15013 soname_spec=$lt_soname_spec
15015 # Commands used to build and install an old-style archive.
15017 old_archive_cmds=$lt_old_archive_cmds
15018 old_postinstall_cmds=$lt_old_postinstall_cmds
15019 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15021 # Create an old-style archive from a shared archive.
15022 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15024 # Create a temporary old-style archive to link instead of a shared archive.
15025 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15027 # Commands used to build and install a shared archive.
15028 archive_cmds=$lt_archive_cmds
15029 archive_expsym_cmds=$lt_archive_expsym_cmds
15030 postinstall_cmds=$lt_postinstall_cmds
15031 postuninstall_cmds=$lt_postuninstall_cmds
15033 # Commands used to build a loadable module (assumed same as above if empty)
15034 module_cmds=$lt_module_cmds
15035 module_expsym_cmds=$lt_module_expsym_cmds
15037 # Commands to strip libraries.
15038 old_striplib=$lt_old_striplib
15039 striplib=$lt_striplib
15041 # Dependencies to place before the objects being linked to create a
15043 predep_objects=$lt_predep_objects
15045 # Dependencies to place after the objects being linked to create a
15047 postdep_objects=$lt_postdep_objects
15049 # Dependencies to place before the objects being linked to create a
15051 predeps=$lt_predeps
15053 # Dependencies to place after the objects being linked to create a
15055 postdeps=$lt_postdeps
15057 # The library search path used internally by the compiler when linking
15058 # a shared library.
15059 compiler_lib_search_path=$lt_compiler_lib_search_path
15061 # Method to check whether dependent libraries are shared objects.
15062 deplibs_check_method=$lt_deplibs_check_method
15064 # Command to use when deplibs_check_method == file_magic.
15065 file_magic_cmd=$lt_file_magic_cmd
15067 # Flag that allows shared libraries with undefined symbols to be built.
15068 allow_undefined_flag=$lt_allow_undefined_flag
15070 # Flag that forces no undefined symbols.
15071 no_undefined_flag=$lt_no_undefined_flag
15073 # Commands used to finish a libtool library installation in a directory.
15074 finish_cmds=$lt_finish_cmds
15076 # Same as above, but a single script fragment to be evaled but not shown.
15077 finish_eval=$lt_finish_eval
15079 # Take the output of nm and produce a listing of raw symbols and C names.
15080 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15082 # Transform the output of nm in a proper C declaration
15083 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15085 # Transform the output of nm in a C name address pair
15086 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15088 # This is the shared library runtime path variable.
15089 runpath_var=$runpath_var
15091 # This is the shared library path variable.
15092 shlibpath_var=$shlibpath_var
15094 # Is shlibpath searched before the hard-coded library search path?
15095 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15097 # How to hardcode a shared library path into an executable.
15098 hardcode_action=$hardcode_action
15100 # Whether we should hardcode library paths into libraries.
15101 hardcode_into_libs=$hardcode_into_libs
15103 # Flag to hardcode \$libdir into a binary during linking.
15104 # This must work even if \$libdir does not exist.
15105 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15107 # If ld is used when linking, flag to hardcode \$libdir into
15108 # a binary during linking. This must work even if \$libdir does
15110 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15112 # Whether we need a single -rpath flag with a separated argument.
15113 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15115 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15116 # resulting binary.
15117 hardcode_direct=$hardcode_direct
15119 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15120 # resulting binary.
15121 hardcode_minus_L=$hardcode_minus_L
15123 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15124 # the resulting binary.
15125 hardcode_shlibpath_var=$hardcode_shlibpath_var
15127 # Set to yes if building a shared library automatically hardcodes DIR into the library
15128 # and all subsequent libraries and executables linked against it.
15129 hardcode_automatic=$hardcode_automatic
15131 # Variables whose values should be saved in libtool wrapper scripts and
15132 # restored at relink time.
15133 variables_saved_for_relink="$variables_saved_for_relink"
15135 # Whether libtool must link a program against all its dependency libraries.
15136 link_all_deplibs=$link_all_deplibs
15138 # Compile-time system search path for libraries
15139 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15141 # Run-time system search path for libraries
15142 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15144 # Fix the shell variable \$srcfile for the compiler.
15145 fix_srcfile_path="$fix_srcfile_path"
15147 # Set to yes if exported symbols are required.
15148 always_export_symbols=$always_export_symbols
15150 # The commands to list exported symbols.
15151 export_symbols_cmds=$lt_export_symbols_cmds
15153 # The commands to extract the exported symbol list from a shared archive.
15154 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15156 # Symbols that should not be listed in the preloaded symbols.
15157 exclude_expsyms=$lt_exclude_expsyms
15159 # Symbols that must always be exported.
15160 include_expsyms=$lt_include_expsyms
15162 # ### END LIBTOOL CONFIG
15169 cat <<\EOF >> "$cfgfile"
15171 # AIX sometimes has problems with the GCC collect2 program. For some
15172 # reason, if we set the COLLECT_NAMES environment variable, the problems
15173 # vanish in a puff of smoke.
15174 if test "X${COLLECT_NAMES+set}" != Xset; then
15176 export COLLECT_NAMES
15182 # We use sed instead of cat because bash on DJGPP gets confused if
15183 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15184 # text mode, it properly converts lines to CR/LF. This bash problem
15185 # is reportedly fixed, but why not run on old versions too?
15186 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15188 mv -f "$cfgfile" "$ofile" || \
15189 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15193 # If there is no Makefile yet, we rely on a make rule to execute
15194 # `config.status --recheck' to rerun these tests and create the
15195 # libtool script then.
15196 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15197 if test -f "$ltmain_in"; then
15198 test -f Makefile && make "$ltmain"
15204 ac_cpp='$CPP $CPPFLAGS'
15205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15212 # Check whether --with-tags or --without-tags was given.
15213 if test "${with_tags+set}" = set; then
15214 withval="$with_tags"
15215 tagnames="$withval"
15218 if test -f "$ltmain" && test -n "$tagnames"; then
15219 if test ! -f "${ofile}"; then
15220 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15221 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15224 if test -z "$LTCC"; then
15225 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15226 if test -z "$LTCC"; then
15227 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15228 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15230 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15231 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15235 # Extract list of available tagged configurations in $ofile.
15236 # Note that this assumes the entire list is on one line.
15237 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15239 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15240 for tagname in $tagnames; do
15242 # Check whether tagname contains only valid characters
15243 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15245 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15246 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15247 { (exit 1); exit 1; }; }
15251 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15253 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15254 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15255 { (exit 1); exit 1; }; }
15258 # Update the list of available tags.
15259 if test -n "$tagname"; then
15260 echo appending configuration tag "$tagname" to $ofile
15264 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15265 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15266 (test "X$CXX" != "Xg++"))) ; then
15268 ac_cpp='$CXXCPP $CPPFLAGS'
15269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15276 archive_cmds_need_lc_CXX=no
15277 allow_undefined_flag_CXX=
15278 always_export_symbols_CXX=no
15279 archive_expsym_cmds_CXX=
15280 export_dynamic_flag_spec_CXX=
15281 hardcode_direct_CXX=no
15282 hardcode_libdir_flag_spec_CXX=
15283 hardcode_libdir_flag_spec_ld_CXX=
15284 hardcode_libdir_separator_CXX=
15285 hardcode_minus_L_CXX=no
15286 hardcode_automatic_CXX=no
15288 module_expsym_cmds_CXX=
15289 link_all_deplibs_CXX=unknown
15290 old_archive_cmds_CXX=$old_archive_cmds
15291 no_undefined_flag_CXX=
15292 whole_archive_flag_spec_CXX=
15293 enable_shared_with_static_runtimes_CXX=no
15295 # Dependencies to place before and after the object being linked:
15296 predep_objects_CXX=
15297 postdep_objects_CXX=
15300 compiler_lib_search_path_CXX=
15302 # Source file extension for C++ test sources.
15305 # Object file extension for compiled C++ test sources.
15309 # Code to be used in simple compile tests
15310 lt_simple_compile_test_code="int some_variable = 0;\n"
15312 # Code to be used in simple link tests
15313 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15315 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15317 # If no C compiler was specified, use CC.
15320 # Allow CC to be a program name with arguments.
15324 # Allow CC to be a program name with arguments.
15329 lt_save_with_gnu_ld=$with_gnu_ld
15330 lt_save_path_LD=$lt_cv_path_LD
15331 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15332 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15334 unset lt_cv_prog_gnu_ld
15336 if test -n "${lt_cv_path_LDCXX+set}"; then
15337 lt_cv_path_LD=$lt_cv_path_LDCXX
15339 unset lt_cv_path_LD
15341 test -z "${LDCXX+set}" || LD=$LDCXX
15345 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15347 # We don't want -fno-exception wen compiling C++ code, so set the
15348 # no_builtin_flag separately
15349 if test "$GXX" = yes; then
15350 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15352 lt_prog_compiler_no_builtin_flag_CXX=
15355 if test "$GXX" = yes; then
15356 # Set up default GNU C++ configuration
15359 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15360 if test "${with_gnu_ld+set}" = set; then
15361 withval="$with_gnu_ld"
15362 test "$withval" = no || with_gnu_ld=yes
15367 if test "$GCC" = yes; then
15368 # Check if gcc -print-prog-name=ld gives a path.
15369 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15370 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15373 # gcc leaves a trailing carriage return which upsets mingw
15374 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15376 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15379 # Accept absolute paths.
15381 re_direlt='/[^/][^/]*/\.\./'
15382 # Canonicalize the pathname of ld
15383 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15384 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15385 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15387 test -z "$LD" && LD="$ac_prog"
15390 # If it fails, then pretend we aren't using GCC.
15394 # If it is relative, then search for the first ld in PATH.
15395 with_gnu_ld=unknown
15398 elif test "$with_gnu_ld" = yes; then
15399 echo "$as_me:$LINENO: checking for GNU ld" >&5
15400 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15402 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15403 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15405 if test "${lt_cv_path_LD+set}" = set; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 if test -z "$LD"; then
15409 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15410 for ac_dir in $PATH; do
15412 test -z "$ac_dir" && ac_dir=.
15413 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15414 lt_cv_path_LD="$ac_dir/$ac_prog"
15415 # Check to see if the program is GNU ld. I'd rather use --version,
15416 # but apparently some GNU ld's only accept -v.
15417 # Break only if it was the GNU/non-GNU ld that we prefer.
15418 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15419 *GNU* | *'with BFD'*)
15420 test "$with_gnu_ld" != no && break
15423 test "$with_gnu_ld" != yes && break
15430 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15434 LD="$lt_cv_path_LD"
15435 if test -n "$LD"; then
15436 echo "$as_me:$LINENO: result: $LD" >&5
15437 echo "${ECHO_T}$LD" >&6
15439 echo "$as_me:$LINENO: result: no" >&5
15440 echo "${ECHO_T}no" >&6
15442 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15443 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15444 { (exit 1); exit 1; }; }
15445 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15446 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15447 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15450 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15451 case `$LD -v 2>&1 </dev/null` in
15452 *GNU* | *'with BFD'*)
15453 lt_cv_prog_gnu_ld=yes
15456 lt_cv_prog_gnu_ld=no
15460 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15461 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15462 with_gnu_ld=$lt_cv_prog_gnu_ld
15466 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15467 # archiving commands below assume that GNU ld is being used.
15468 if test "$with_gnu_ld" = yes; then
15469 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15470 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'
15472 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15473 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15475 # If archive_cmds runs LD, not CC, wlarc should be empty
15476 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15477 # investigate it a little bit more. (MM)
15480 # ancient GNU ld didn't support --whole-archive et. al.
15481 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15482 grep 'no-whole-archive' > /dev/null; then
15483 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15485 whole_archive_flag_spec_CXX=
15491 # A generic and very simple default shared library creation
15492 # command for GNU C++ for the case where it uses the native
15493 # linker, instead of GNU ld. If possible, this setting should
15494 # overridden to take advantage of the native linker features on
15495 # the platform it is being used on.
15496 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15499 # Commands to make compiler produce verbose output that lists
15500 # what "hidden" libraries, object files and flags are used when
15501 # linking a shared library.
15502 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15510 # PORTME: fill in a description of your system's C++ link characteristics
15511 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15512 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15516 # FIXME: insert proper C++ library support
15520 if test "$host_cpu" = ia64; then
15521 # On IA64, the linker does run time linking by default, so we don't
15522 # have to do anything special.
15523 aix_use_runtimelinking=no
15524 exp_sym_flag='-Bexport'
15527 aix_use_runtimelinking=no
15529 # Test if we are trying to use run time linking or normal
15530 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15531 # need to do runtime linking.
15532 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15533 for ld_flag in $LDFLAGS; do
15536 aix_use_runtimelinking=yes
15543 exp_sym_flag='-bexport'
15544 no_entry_flag='-bnoentry'
15547 # When large executables or shared objects are built, AIX ld can
15548 # have problems creating the table of contents. If linking a library
15549 # or program results in "error TOC overflow" add -mminimal-toc to
15550 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15551 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15553 archive_cmds_CXX=''
15554 hardcode_direct_CXX=yes
15555 hardcode_libdir_separator_CXX=':'
15556 link_all_deplibs_CXX=yes
15558 if test "$GXX" = yes; then
15559 case $host_os in aix4.012|aix4.012.*)
15560 # We only want to do this on AIX 4.2 and lower, the check
15561 # below for broken collect2 doesn't work under 4.3+
15562 collect2name=`${CC} -print-prog-name=collect2`
15563 if test -f "$collect2name" && \
15564 strings "$collect2name" | grep resolve_lib_name >/dev/null
15566 # We have reworked collect2
15567 hardcode_direct_CXX=yes
15569 # We have old collect2
15570 hardcode_direct_CXX=unsupported
15571 # It fails to find uninstalled libraries when the uninstalled
15572 # path is not listed in the libpath. Setting hardcode_minus_L
15573 # to unsupported forces relinking
15574 hardcode_minus_L_CXX=yes
15575 hardcode_libdir_flag_spec_CXX='-L$libdir'
15576 hardcode_libdir_separator_CXX=
15579 shared_flag='-shared'
15582 if test "$host_cpu" = ia64; then
15583 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15584 # chokes on -Wl,-G. The following line is correct:
15587 if test "$aix_use_runtimelinking" = yes; then
15588 shared_flag='${wl}-G'
15590 shared_flag='${wl}-bM:SRE'
15595 # It seems that -bexpall does not export symbols beginning with
15596 # underscore (_), so it is better to generate a list of symbols to export.
15597 always_export_symbols_CXX=yes
15598 if test "$aix_use_runtimelinking" = yes; then
15599 # Warning - without using the other runtime loading flags (-brtl),
15600 # -berok will link without error, but may produce a broken library.
15601 allow_undefined_flag_CXX='-berok'
15602 # Determine the default libpath from the value encoded in an empty executable.
15603 cat >conftest.$ac_ext <<_ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15618 rm -f conftest.$ac_objext conftest$ac_exeext
15619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15620 (eval $ac_link) 2>conftest.er1
15622 grep -v '^ *+' conftest.er1 >conftest.err
15624 cat conftest.err >&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } &&
15627 { ac_try='test -z "$ac_cxx_werror_flag"
15628 || test ! -s conftest.err'
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; } &&
15634 { ac_try='test -s conftest$ac_exeext'
15635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636 (eval $ac_try) 2>&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; }; then
15641 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15643 # Check for a 64-bit object if we didn't find anything.
15644 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; }
15647 echo "$as_me: failed program was:" >&5
15648 sed 's/^/| /' conftest.$ac_ext >&5
15651 rm -f conftest.err conftest.$ac_objext \
15652 conftest$ac_exeext conftest.$ac_ext
15653 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15655 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15657 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"
15659 if test "$host_cpu" = ia64; then
15660 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15661 allow_undefined_flag_CXX="-z nodefs"
15662 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"
15664 # Determine the default libpath from the value encoded in an empty executable.
15665 cat >conftest.$ac_ext <<_ACEOF
15668 cat confdefs.h >>conftest.$ac_ext
15669 cat >>conftest.$ac_ext <<_ACEOF
15670 /* end confdefs.h. */
15680 rm -f conftest.$ac_objext conftest$ac_exeext
15681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15682 (eval $ac_link) 2>conftest.er1
15684 grep -v '^ *+' conftest.er1 >conftest.err
15686 cat conftest.err >&5
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); } &&
15689 { ac_try='test -z "$ac_cxx_werror_flag"
15690 || test ! -s conftest.err'
15691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692 (eval $ac_try) 2>&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); }; } &&
15696 { ac_try='test -s conftest$ac_exeext'
15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; }; then
15703 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15705 # Check for a 64-bit object if we didn't find anything.
15706 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; }
15709 echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15713 rm -f conftest.err conftest.$ac_objext \
15714 conftest$ac_exeext conftest.$ac_ext
15715 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15717 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15718 # Warning - without using the other run time loading flags,
15719 # -berok will link without error, but may produce a broken library.
15720 no_undefined_flag_CXX=' ${wl}-bernotok'
15721 allow_undefined_flag_CXX=' ${wl}-berok'
15722 # -bexpall does not export symbols beginning with underscore (_)
15723 always_export_symbols_CXX=yes
15724 # Exported symbols can be pulled into shared objects from archives
15725 whole_archive_flag_spec_CXX=' '
15726 archive_cmds_need_lc_CXX=yes
15727 # This is similar to how AIX traditionally builds it's shared libraries.
15728 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'
15733 case $cc_basename in
15735 # FIXME: insert proper C++ library support
15742 cygwin* | mingw* | pw32*)
15743 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15744 # as there is no search path for DLLs.
15745 hardcode_libdir_flag_spec_CXX='-L$libdir'
15746 allow_undefined_flag_CXX=unsupported
15747 always_export_symbols_CXX=no
15748 enable_shared_with_static_runtimes_CXX=yes
15750 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15751 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'
15752 # If the export-symbols file already is a .def file (1st line
15753 # is EXPORTS), use it as is; otherwise, prepend...
15754 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15755 cp $export_symbols $output_objdir/$soname.def;
15757 echo EXPORTS > $output_objdir/$soname.def;
15758 cat $export_symbols >> $output_objdir/$soname.def;
15760 $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'
15765 darwin* | rhapsody*)
15767 rhapsody* | darwin1.[012])
15768 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15771 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15772 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15774 case ${MACOSX_DEPLOYMENT_TARGET} in
15776 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15779 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15785 archive_cmds_need_lc_CXX=no
15786 hardcode_direct_CXX=no
15787 hardcode_automatic_CXX=yes
15788 hardcode_shlibpath_var_CXX=unsupported
15789 whole_archive_flag_spec_CXX=''
15790 link_all_deplibs_CXX=yes
15792 if test "$GXX" = yes ; then
15793 lt_int_apple_cc_single_mod=no
15794 output_verbose_link_cmd='echo'
15795 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15796 lt_int_apple_cc_single_mod=yes
15798 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15799 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15801 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'
15803 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15804 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15805 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15806 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}'
15808 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}'
15810 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}'
15812 case "$cc_basename" in
15814 output_verbose_link_cmd='echo'
15815 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'
15816 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15817 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15818 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}'
15819 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}'
15829 case $cc_basename in
15831 # FIXME: insert proper C++ library support
15835 # Green Hills C++ Compiler
15836 # FIXME: insert proper C++ library support
15840 # FIXME: insert proper C++ library support
15846 # C++ shared libraries reported to be fairly broken before switch to ELF
15850 archive_cmds_need_lc_CXX=no
15852 freebsd* | kfreebsd*-gnu)
15853 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15860 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15861 hardcode_libdir_separator_CXX=:
15862 export_dynamic_flag_spec_CXX='${wl}-E'
15863 hardcode_direct_CXX=yes
15864 hardcode_minus_L_CXX=yes # Not in the search PATH,
15865 # but as the default
15866 # location of the library.
15868 case $cc_basename in
15870 # FIXME: insert proper C++ library support
15874 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'
15875 # Commands to make compiler produce verbose output that lists
15876 # what "hidden" libraries, object files and flags are used when
15877 # linking a shared library.
15879 # There doesn't appear to be a way to prevent this compiler from
15880 # explicitly linking system object files so we need to strip them
15881 # from the output so that they don't get included in the library
15883 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'
15886 if test "$GXX" = yes; then
15887 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'
15889 # FIXME: insert proper C++ library support
15896 if test $with_gnu_ld = no; then
15897 case "$host_cpu" in
15899 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15900 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15901 hardcode_libdir_separator_CXX=:
15904 hardcode_libdir_flag_spec_CXX='-L$libdir'
15907 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15908 hardcode_libdir_separator_CXX=:
15909 export_dynamic_flag_spec_CXX='${wl}-E'
15913 case "$host_cpu" in
15915 hardcode_direct_CXX=no
15916 hardcode_shlibpath_var_CXX=no
15919 hardcode_direct_CXX=no
15920 hardcode_shlibpath_var_CXX=no
15921 hardcode_minus_L_CXX=yes # Not in the search PATH,
15922 # but as the default
15923 # location of the library.
15926 hardcode_direct_CXX=yes
15927 hardcode_minus_L_CXX=yes # Not in the search PATH,
15928 # but as the default
15929 # location of the library.
15933 case $cc_basename in
15935 # FIXME: insert proper C++ library support
15939 case "$host_cpu" in
15941 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15944 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15947 # Commands to make compiler produce verbose output that lists
15948 # what "hidden" libraries, object files and flags are used when
15949 # linking a shared library.
15951 # There doesn't appear to be a way to prevent this compiler from
15952 # explicitly linking system object files so we need to strip them
15953 # from the output so that they don't get included in the library
15955 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'
15958 if test "$GXX" = yes; then
15959 if test $with_gnu_ld = no; then
15960 case "$host_cpu" in
15962 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15965 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'
15970 # FIXME: insert proper C++ library support
15977 case $cc_basename in
15980 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'
15982 # Archives containing C++ object files must be created using
15983 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15984 # necessary to make sure instantiated templates are included
15986 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15989 if test "$GXX" = yes; then
15990 if test "$with_gnu_ld" = no; then
15991 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'
15993 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'
15996 link_all_deplibs_CXX=yes
15999 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16000 hardcode_libdir_separator_CXX=:
16003 case $cc_basename in
16005 # Kuck and Associates, Inc. (KAI) C++ Compiler
16007 # KCC will only create a shared library if the output file
16008 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16009 # to its proper name (with version) after linking.
16010 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'
16011 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'
16012 # Commands to make compiler produce verbose output that lists
16013 # what "hidden" libraries, object files and flags are used when
16014 # linking a shared library.
16016 # There doesn't appear to be a way to prevent this compiler from
16017 # explicitly linking system object files so we need to strip them
16018 # from the output so that they don't get included in the library
16020 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'
16022 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16023 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16025 # Archives containing C++ object files must be created using
16026 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16027 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16032 # version 8.0 and above of icpc choke on multiply defined symbols
16033 # if we add $predep_objects and $postdep_objects, however 7.1 and
16034 # earlier do not add the objects themselves.
16035 case `$CC -V 2>&1` in
16037 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16038 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'
16040 *) # Version 8.0 or newer
16041 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16042 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16045 archive_cmds_need_lc_CXX=no
16046 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16047 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16048 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16052 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16053 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'
16055 runpath_var=LD_RUN_PATH
16056 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16057 hardcode_libdir_separator_CXX=:
16059 # Commands to make compiler produce verbose output that lists
16060 # what "hidden" libraries, object files and flags are used when
16061 # linking a shared library.
16063 # There doesn't appear to be a way to prevent this compiler from
16064 # explicitly linking system object files so we need to strip them
16065 # from the output so that they don't get included in the library
16067 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'
16072 # FIXME: insert proper C++ library support
16076 # FIXME: insert proper C++ library support
16080 case $cc_basename in
16082 # FIXME: insert proper C++ library support
16086 # FIXME: insert proper C++ library support
16092 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16093 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16095 hardcode_libdir_flag_spec_CXX='-R$libdir'
16096 hardcode_direct_CXX=yes
16097 hardcode_shlibpath_var_CXX=no
16099 # Workaround some broken pre-1.5 toolchains
16100 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16103 # C++ shared libraries are fairly broken
16107 hardcode_direct_CXX=yes
16108 hardcode_shlibpath_var_CXX=no
16109 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16110 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16112 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16113 export_dynamic_flag_spec_CXX='${wl}-E'
16114 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16116 output_verbose_link_cmd='echo'
16119 case $cc_basename in
16121 # Kuck and Associates, Inc. (KAI) C++ Compiler
16123 # KCC will only create a shared library if the output file
16124 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16125 # to its proper name (with version) after linking.
16126 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'
16128 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16129 hardcode_libdir_separator_CXX=:
16131 # Archives containing C++ object files must be created using
16132 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16133 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16137 # Rational C++ 2.4.1
16138 # FIXME: insert proper C++ library support
16142 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16143 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'
16145 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16146 hardcode_libdir_separator_CXX=:
16148 # Commands to make compiler produce verbose output that lists
16149 # what "hidden" libraries, object files and flags are used when
16150 # linking a shared library.
16152 # There doesn't appear to be a way to prevent this compiler from
16153 # explicitly linking system object files so we need to strip them
16154 # from the output so that they don't get included in the library
16156 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'
16159 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16160 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16161 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'
16163 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16164 hardcode_libdir_separator_CXX=:
16166 # Commands to make compiler produce verbose output that lists
16167 # what "hidden" libraries, object files and flags are used when
16168 # linking a shared library.
16169 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16172 # FIXME: insert proper C++ library support
16179 case $cc_basename in
16181 # Kuck and Associates, Inc. (KAI) C++ Compiler
16183 # KCC will only create a shared library if the output file
16184 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16185 # to its proper name (with version) after linking.
16186 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'
16188 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16189 hardcode_libdir_separator_CXX=:
16191 # Archives containing C++ object files must be created using
16192 # the KAI C++ compiler.
16193 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16196 # Rational C++ 2.4.1
16197 # FIXME: insert proper C++ library support
16201 allow_undefined_flag_CXX=' -expect_unresolved \*'
16202 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'
16203 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16204 echo "-hidden">> $lib.exp~
16205 $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~
16208 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16209 hardcode_libdir_separator_CXX=:
16211 # Commands to make compiler produce verbose output that lists
16212 # what "hidden" libraries, object files and flags are used when
16213 # linking a shared library.
16215 # There doesn't appear to be a way to prevent this compiler from
16216 # explicitly linking system object files so we need to strip them
16217 # from the output so that they don't get included in the library
16219 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'
16222 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16223 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16224 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'
16226 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16227 hardcode_libdir_separator_CXX=:
16229 # Commands to make compiler produce verbose output that lists
16230 # what "hidden" libraries, object files and flags are used when
16231 # linking a shared library.
16232 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16235 # FIXME: insert proper C++ library support
16242 # FIXME: insert proper C++ library support
16246 archive_cmds_need_lc_CXX=no
16247 case $cc_basename in
16249 # FIXME: insert proper C++ library support
16253 # FIXME: insert proper C++ library support
16259 case $cc_basename in
16262 # FIXME: insert proper C++ library support
16267 # FIXME: insert proper C++ library support
16271 # FIXME: insert proper C++ library support
16277 case $cc_basename in
16279 # Sun C++ 4.2, 5.x and Centerline C++
16280 no_undefined_flag_CXX=' -zdefs'
16281 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16282 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16283 $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'
16285 hardcode_libdir_flag_spec_CXX='-R$libdir'
16286 hardcode_shlibpath_var_CXX=no
16288 solaris2.0-5 | solaris2.0-5.*) ;;
16290 # The C++ compiler is used as linker so we must use $wl
16291 # flag to pass the commands to the underlying system
16293 # Supported since Solaris 2.6 (maybe 2.5.1?)
16294 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16297 link_all_deplibs_CXX=yes
16299 # Commands to make compiler produce verbose output that lists
16300 # what "hidden" libraries, object files and flags are used when
16301 # linking a shared library.
16303 # There doesn't appear to be a way to prevent this compiler from
16304 # explicitly linking system object files so we need to strip them
16305 # from the output so that they don't get included in the library
16307 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'
16309 # Archives containing C++ object files must be created using
16310 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16311 # necessary to make sure instantiated templates are included
16313 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16316 # Green Hills C++ Compiler
16317 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16319 # The C++ compiler must be used to create the archive.
16320 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16323 # GNU C++ compiler with Solaris linker
16324 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16325 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16326 if $CC --version | grep -v '^2\.7' > /dev/null; then
16327 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16328 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16329 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16331 # Commands to make compiler produce verbose output that lists
16332 # what "hidden" libraries, object files and flags are used when
16333 # linking a shared library.
16334 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16336 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16338 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16339 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16340 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16342 # Commands to make compiler produce verbose output that lists
16343 # what "hidden" libraries, object files and flags are used when
16344 # linking a shared library.
16345 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16348 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16353 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16354 archive_cmds_need_lc_CXX=no
16357 case $cc_basename in
16359 # NonStop-UX NCC 3.20
16360 # FIXME: insert proper C++ library support
16364 # FIXME: insert proper C++ library support
16370 # FIXME: insert proper C++ library support
16374 # FIXME: insert proper C++ library support
16378 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16379 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16380 test "$ld_shlibs_CXX" = no && can_build_shared=no
16386 cat > conftest.$ac_ext <<EOF
16390 Foo (void) { a = 0; }
16396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16397 (eval $ac_compile) 2>&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); }; then
16401 # Parse the compiler output and extract the necessary
16402 # objects, libraries and library flags.
16404 # Sentinel used to keep track of whether or not we are before
16405 # the conftest object file.
16406 pre_test_object_deps_done=no
16408 # The `*' in the case matches for architectures that use `case' in
16409 # $output_verbose_cmd can trigger glob expansion during the loop
16410 # eval without this substitution.
16411 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16413 for p in `eval $output_verbose_link_cmd`; do
16417 # Some compilers place space between "-{L,R}" and the path.
16418 # Remove the space.
16419 if test $p = "-L" \
16420 || test $p = "-R"; then
16427 if test "$pre_test_object_deps_done" = no; then
16430 # Internal compiler library paths should come after those
16431 # provided the user. The postdeps already come after the
16432 # user supplied libs so there is no need to process them.
16433 if test -z "$compiler_lib_search_path_CXX"; then
16434 compiler_lib_search_path_CXX="${prev}${p}"
16436 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16439 # The "-l" case would never come before the object being
16440 # linked, so don't bother handling this case.
16443 if test -z "$postdeps_CXX"; then
16444 postdeps_CXX="${prev}${p}"
16446 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16452 # This assumes that the test object file only shows up
16453 # once in the compiler output.
16454 if test "$p" = "conftest.$objext"; then
16455 pre_test_object_deps_done=yes
16459 if test "$pre_test_object_deps_done" = no; then
16460 if test -z "$predep_objects_CXX"; then
16461 predep_objects_CXX="$p"
16463 predep_objects_CXX="$predep_objects_CXX $p"
16466 if test -z "$postdep_objects_CXX"; then
16467 postdep_objects_CXX="$p"
16469 postdep_objects_CXX="$postdep_objects_CXX $p"
16474 *) ;; # Ignore the rest.
16482 echo "libtool.m4: error: problem compiling CXX test program"
16485 $rm -f confest.$objext
16487 case " $postdeps_CXX " in
16488 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16491 lt_prog_compiler_wl_CXX=
16492 lt_prog_compiler_pic_CXX=
16493 lt_prog_compiler_static_CXX=
16495 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16496 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16498 # C++ specific cases for pic, static, wl, etc.
16499 if test "$GXX" = yes; then
16500 lt_prog_compiler_wl_CXX='-Wl,'
16501 lt_prog_compiler_static_CXX='-static'
16505 # All AIX code is PIC.
16506 if test "$host_cpu" = ia64; then
16507 # AIX 5 now supports IA64 processor
16508 lt_prog_compiler_static_CXX='-Bstatic'
16512 # FIXME: we need at least 68020 code to build shared libraries, but
16513 # adding the `-m68020' flag to GCC prevents building anything better,
16515 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16517 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16518 # PIC is the default for these OSes.
16520 mingw* | os2* | pw32*)
16521 # This hack is so that the source file can tell whether it is being
16522 # built for inclusion in a dll (and should export symbols for example).
16523 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16525 darwin* | rhapsody*)
16526 # PIC is the default on this platform
16527 # Common symbols not allowed in MH_DYLIB files
16528 lt_prog_compiler_pic_CXX='-fno-common'
16531 # DJGPP does not support shared libraries at all
16532 lt_prog_compiler_pic_CXX=
16535 if test -d /usr/nec; then
16536 lt_prog_compiler_pic_CXX=-Kconform_pic
16540 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16541 # not for PA HP-UX.
16542 case "$host_cpu" in
16546 lt_prog_compiler_pic_CXX='-fPIC'
16551 lt_prog_compiler_pic_CXX='-fPIC'
16557 # All AIX code is PIC.
16558 if test "$host_cpu" = ia64; then
16559 # AIX 5 now supports IA64 processor
16560 lt_prog_compiler_static_CXX='-Bstatic'
16562 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16566 case $cc_basename in
16568 # Green Hills C++ Compiler
16569 # _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"
16574 # PIC is the default on this platform
16575 # Common symbols not allowed in MH_DYLIB files
16576 case "$cc_basename" in
16578 lt_prog_compiler_pic_CXX='-qnocommon'
16579 lt_prog_compiler_wl_CXX='-Wl,'
16584 case $cc_basename in
16586 lt_prog_compiler_pic_CXX='-KPIC'
16589 # Green Hills C++ Compiler
16590 lt_prog_compiler_pic_CXX='-pic'
16596 freebsd* | kfreebsd*-gnu)
16597 # FreeBSD uses GNU C++
16599 hpux9* | hpux10* | hpux11*)
16600 case $cc_basename in
16602 lt_prog_compiler_wl_CXX='-Wl,'
16603 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16604 if test "$host_cpu" != ia64; then
16605 lt_prog_compiler_pic_CXX='+Z'
16609 lt_prog_compiler_wl_CXX='-Wl,'
16610 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16611 case "$host_cpu" in
16616 lt_prog_compiler_pic_CXX='+Z'
16624 irix5* | irix6* | nonstopux*)
16625 case $cc_basename in
16627 lt_prog_compiler_wl_CXX='-Wl,'
16628 lt_prog_compiler_static_CXX='-non_shared'
16629 # CC pic flag -KPIC is the default.
16636 case $cc_basename in
16639 lt_prog_compiler_wl_CXX='--backend -Wl,'
16640 lt_prog_compiler_pic_CXX='-fPIC'
16644 lt_prog_compiler_wl_CXX='-Wl,'
16645 lt_prog_compiler_pic_CXX='-KPIC'
16646 lt_prog_compiler_static_CXX='-static'
16650 # Make sure the PIC flag is empty. It appears that all Alpha
16651 # Linux and Compaq Tru64 Unix objects are PIC.
16652 lt_prog_compiler_pic_CXX=
16653 lt_prog_compiler_static_CXX='-non_shared'
16664 case $cc_basename in
16666 lt_prog_compiler_pic_CXX='-W c,exportall'
16674 osf3* | osf4* | osf5*)
16675 case $cc_basename in
16677 lt_prog_compiler_wl_CXX='--backend -Wl,'
16680 # Rational C++ 2.4.1
16681 lt_prog_compiler_pic_CXX='-pic'
16684 # Digital/Compaq C++
16685 lt_prog_compiler_wl_CXX='-Wl,'
16686 # Make sure the PIC flag is empty. It appears that all Alpha
16687 # Linux and Compaq Tru64 Unix objects are PIC.
16688 lt_prog_compiler_pic_CXX=
16689 lt_prog_compiler_static_CXX='-non_shared'
16698 case $cc_basename in
16700 lt_prog_compiler_pic_CXX='-fPIC'
16707 case $cc_basename in
16709 # Sun C++ 4.2, 5.x and Centerline C++
16710 lt_prog_compiler_pic_CXX='-KPIC'
16711 lt_prog_compiler_static_CXX='-Bstatic'
16712 lt_prog_compiler_wl_CXX='-Qoption ld '
16715 # Green Hills C++ Compiler
16716 lt_prog_compiler_pic_CXX='-PIC'
16723 case $cc_basename in
16726 lt_prog_compiler_pic_CXX='-pic'
16727 lt_prog_compiler_static_CXX='-Bstatic'
16731 lt_prog_compiler_pic_CXX='-pic'
16738 case $cc_basename in
16740 # NonStop-UX NCC 3.20
16741 lt_prog_compiler_pic_CXX='-KPIC'
16752 lt_prog_compiler_can_build_shared_CXX=no
16757 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16758 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16761 # Check to make sure the PIC flag actually works.
16763 if test -n "$lt_prog_compiler_pic_CXX"; then
16765 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16766 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16767 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 lt_prog_compiler_pic_works_CXX=no
16771 ac_outfile=conftest.$ac_objext
16772 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16773 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16774 # Insert the option either (1) after the last *FLAGS variable, or
16775 # (2) before a word containing "conftest.", or (3) at the end.
16776 # Note that $ac_compile itself does not contain backslashes and begins
16777 # with a dollar sign (not a hyphen), so the echo should work correctly.
16778 # The option is referenced via a variable to avoid confusing sed.
16779 lt_compile=`echo "$ac_compile" | $SED \
16780 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16782 -e 's:$: $lt_compiler_flag:'`
16783 (eval echo "\"\$as_me:16783: $lt_compile\"" >&5)
16784 (eval "$lt_compile" 2>conftest.err)
16786 cat conftest.err >&5
16787 echo "$as_me:16787: \$? = $ac_status" >&5
16788 if (exit $ac_status) && test -s "$ac_outfile"; then
16789 # The compiler can only warn and ignore the option if not recognized
16790 # So say no if there are warnings
16791 if test ! -s conftest.err; then
16792 lt_prog_compiler_pic_works_CXX=yes
16798 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16799 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16801 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16802 case $lt_prog_compiler_pic_CXX in
16804 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16807 lt_prog_compiler_pic_CXX=
16808 lt_prog_compiler_can_build_shared_CXX=no
16813 # For platforms which do not support PIC, -DPIC is meaningless:
16815 lt_prog_compiler_pic_CXX=
16818 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16822 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16823 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16824 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16825 echo $ECHO_N "(cached) $ECHO_C" >&6
16827 lt_cv_prog_compiler_c_o_CXX=no
16828 $rm -r conftest 2>/dev/null
16832 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16834 lt_compiler_flag="-o out/conftest2.$ac_objext"
16835 # Insert the option either (1) after the last *FLAGS variable, or
16836 # (2) before a word containing "conftest.", or (3) at the end.
16837 # Note that $ac_compile itself does not contain backslashes and begins
16838 # with a dollar sign (not a hyphen), so the echo should work correctly.
16839 lt_compile=`echo "$ac_compile" | $SED \
16840 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16842 -e 's:$: $lt_compiler_flag:'`
16843 (eval echo "\"\$as_me:16843: $lt_compile\"" >&5)
16844 (eval "$lt_compile" 2>out/conftest.err)
16846 cat out/conftest.err >&5
16847 echo "$as_me:16847: \$? = $ac_status" >&5
16848 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16850 # The compiler can only warn and ignore the option if not recognized
16851 # So say no if there are warnings
16852 if test ! -s out/conftest.err; then
16853 lt_cv_prog_compiler_c_o_CXX=yes
16858 # SGI C++ compiler will create directory out/ii_files/ for
16859 # template instantiation
16860 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16861 $rm out/* && rmdir out
16867 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16868 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16871 hard_links="nottested"
16872 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16873 # do not overwrite the value of need_locks provided by the user
16874 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16875 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16880 ln conftest.a conftest.b 2>&5 || hard_links=no
16881 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16882 echo "$as_me:$LINENO: result: $hard_links" >&5
16883 echo "${ECHO_T}$hard_links" >&6
16884 if test "$hard_links" = no; then
16885 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16886 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16893 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16894 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16896 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16899 # If we're using GNU nm, then we don't want the "-C" option.
16900 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16901 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16902 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'
16904 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'
16908 export_symbols_cmds_CXX="$ltdll_cmds"
16911 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16914 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16918 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16919 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16920 test "$ld_shlibs_CXX" = no && can_build_shared=no
16922 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16923 if test "$GCC" = yes; then
16924 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16928 # Do we need to explicitly link libc?
16930 case "x$archive_cmds_need_lc_CXX" in
16932 # Assume -lc should be added
16933 archive_cmds_need_lc_CXX=yes
16935 if test "$enable_shared" = yes && test "$GCC" = yes; then
16936 case $archive_cmds_CXX in
16938 # FIXME: we may have to deal with multi-command sequences.
16941 # Test whether the compiler implicitly links with -lc since on some
16942 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16943 # to ld, don't add -lc before -lgcc.
16944 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16945 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16947 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16950 (eval $ac_compile) 2>&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } 2>conftest.err; then
16956 libobjs=conftest.$ac_objext
16958 wl=$lt_prog_compiler_wl_CXX
16964 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16965 allow_undefined_flag_CXX=
16966 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16967 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); }
16972 archive_cmds_need_lc_CXX=no
16974 archive_cmds_need_lc_CXX=yes
16976 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16978 cat conftest.err 1>&5
16981 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16982 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16989 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16990 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16991 library_names_spec=
16992 libname_spec='lib$name'
16996 postuninstall_cmds=
17000 shlibpath_overrides_runpath=unknown
17002 dynamic_linker="$host_os ld.so"
17003 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17004 if test "$GCC" = yes; then
17005 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17006 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17007 # if the path contains ";" then we assume it to be the separator
17008 # otherwise default to the standard path separator (i.e. ":") - it is
17009 # assumed that no part of a normal pathname contains ";" but that should
17010 # okay in the real world where ";" in dirpaths is itself problematic.
17011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17016 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17018 need_lib_prefix=unknown
17019 hardcode_into_libs=no
17021 # when you set need_version to no, make sure it does not cause -set_version
17022 # flags to be left without arguments
17023 need_version=unknown
17028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17029 shlibpath_var=LIBPATH
17031 # AIX 3 has no versioning support, so we append a major version to the name.
17032 soname_spec='${libname}${release}${shared_ext}$major'
17039 hardcode_into_libs=yes
17040 if test "$host_cpu" = ia64; then
17041 # AIX 5 supports IA64
17042 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17043 shlibpath_var=LD_LIBRARY_PATH
17045 # With GCC up to 2.95.x, collect2 would create an import file
17046 # for dependence libraries. The import file would start with
17047 # the line `#! .'. This would cause the generated library to
17048 # depend on `.', always an invalid library. This was fixed in
17049 # development snapshots of GCC prior to 3.0.
17051 aix4 | aix4.[01] | aix4.[01].*)
17052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17054 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17057 can_build_shared=no
17061 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17062 # soname into executable. Probably we can add versioning support to
17063 # collect2, so additional links can be useful in future.
17064 if test "$aix_use_runtimelinking" = yes; then
17065 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17066 # instead of lib<name>.a to let people know that these are not
17067 # typical AIX shared libraries.
17068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17070 # We preserve .a as extension for shared libraries through AIX4.2
17071 # and later when we are not doing run time linking.
17072 library_names_spec='${libname}${release}.a $libname.a'
17073 soname_spec='${libname}${release}${shared_ext}$major'
17075 shlibpath_var=LIBPATH
17080 library_names_spec='$libname.ixlibrary $libname.a'
17081 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17082 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'
17086 library_names_spec='${libname}${shared_ext}'
17087 dynamic_linker="$host_os ld.so"
17088 shlibpath_var=LIBRARY_PATH
17094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17095 soname_spec='${libname}${release}${shared_ext}$major'
17096 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17097 shlibpath_var=LD_LIBRARY_PATH
17098 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17099 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17100 # the default ld.so.conf also contains /usr/contrib/lib and
17101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17102 # libtool to hard-code these into programs
17105 cygwin* | mingw* | pw32*)
17106 version_type=windows
17111 case $GCC,$host_os in
17112 yes,cygwin* | yes,mingw* | yes,pw32*)
17113 library_names_spec='$libname.dll.a'
17114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17115 postinstall_cmds='base_file=`basename \${file}`~
17116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17117 dldir=$destdir/`dirname \$dlpath`~
17118 test -d \$dldir || mkdir -p \$dldir~
17119 $install_prog $dir/$dlname \$dldir/$dlname'
17120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17121 dlpath=$dir/\$dldll~
17123 shlibpath_overrides_runpath=yes
17127 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17128 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17129 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17132 # MinGW DLLs use traditional 'lib' prefix
17133 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17134 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17135 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17136 # It is most probably a Windows format PATH printed by
17137 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17138 # path with ; separators, and with drive letters. We can handle the
17139 # drive letters (cygwin fileutils understands them), so leave them,
17140 # especially as we might pass files found there to a mingw objdump,
17141 # which wouldn't understand a cygwinified path. Ahh.
17142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17148 # pw32 DLLs use 'pw' prefix rather than 'lib'
17149 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17155 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17158 dynamic_linker='Win32 ld.exe'
17159 # FIXME: first we should search . and the directory the executable is in
17163 darwin* | rhapsody*)
17164 dynamic_linker="$host_os dyld"
17165 version_type=darwin
17168 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17169 soname_spec='${libname}${release}${major}$shared_ext'
17170 shlibpath_overrides_runpath=yes
17171 shlibpath_var=DYLD_LIBRARY_PATH
17172 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17173 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17174 if test "$GCC" = yes; then
17175 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"`
17177 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17179 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17187 soname_spec='${libname}${release}${shared_ext}$major'
17188 shlibpath_var=LD_LIBRARY_PATH
17199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17200 soname_spec='${libname}${release}${shared_ext}$major'
17201 shlibpath_var=LD_LIBRARY_PATH
17202 shlibpath_overrides_runpath=no
17203 hardcode_into_libs=yes
17204 dynamic_linker='GNU ld.so'
17208 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17209 version_type=freebsd-$objformat
17210 case $version_type in
17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17221 shlibpath_var=LD_LIBRARY_PATH
17224 shlibpath_overrides_runpath=yes
17226 freebsd3.01* | freebsdelf3.01*)
17227 shlibpath_overrides_runpath=yes
17228 hardcode_into_libs=yes
17231 shlibpath_overrides_runpath=no
17232 hardcode_into_libs=yes
17241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17242 soname_spec='${libname}${release}${shared_ext}$major'
17243 shlibpath_var=LD_LIBRARY_PATH
17244 hardcode_into_libs=yes
17247 hpux9* | hpux10* | hpux11*)
17248 # Give a soname corresponding to the major version so that dld.sl refuses to
17249 # link against other versions.
17253 case "$host_cpu" in
17256 hardcode_into_libs=yes
17257 dynamic_linker="$host_os dld.so"
17258 shlibpath_var=LD_LIBRARY_PATH
17259 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17261 soname_spec='${libname}${release}${shared_ext}$major'
17262 if test "X$HPUX_IA64_MODE" = X32; then
17263 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17265 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17267 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17271 hardcode_into_libs=yes
17272 dynamic_linker="$host_os dld.sl"
17273 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17276 soname_spec='${libname}${release}${shared_ext}$major'
17277 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17278 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17282 dynamic_linker="$host_os dld.sl"
17283 shlibpath_var=SHLIB_PATH
17284 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17286 soname_spec='${libname}${release}${shared_ext}$major'
17289 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17290 postinstall_cmds='chmod 555 $lib'
17293 irix5* | irix6* | nonstopux*)
17295 nonstopux*) version_type=nonstopux ;;
17297 if test "$lt_cv_prog_gnu_ld" = yes; then
17305 soname_spec='${libname}${release}${shared_ext}$major'
17306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17308 irix5* | nonstopux*)
17309 libsuff= shlibsuff=
17312 case $LD in # libtool.m4 will add one of these switches to LD
17313 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17314 libsuff= shlibsuff= libmagic=32-bit;;
17315 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17316 libsuff=32 shlibsuff=N32 libmagic=N32;;
17317 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17318 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17319 *) libsuff= shlibsuff= libmagic=never-match;;
17323 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17324 shlibpath_overrides_runpath=no
17325 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17326 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17327 hardcode_into_libs=yes
17330 # No shared lib support for Linux oldld, aout, or coff.
17331 linux*oldld* | linux*aout* | linux*coff*)
17335 # This must be Linux ELF.
17340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17341 soname_spec='${libname}${release}${shared_ext}$major'
17342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17343 shlibpath_var=LD_LIBRARY_PATH
17344 shlibpath_overrides_runpath=no
17345 # This implies no fast_install, which is unacceptable.
17346 # Some rework will be needed to allow for fast_install
17347 # before this can be enabled.
17348 hardcode_into_libs=yes
17350 # Append ld.so.conf contents to the search path
17351 if test -f /etc/ld.so.conf; then
17352 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17353 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17356 # We used to test for /lib/ld.so.1 and disable shared libraries on
17357 # powerpc, because MkLinux only supported shared libraries with the
17358 # GNU dynamic linker. Since this was broken with cross compilers,
17359 # most powerpc-linux boxes support dynamic linking these days and
17360 # people can always --disable-shared, the test was removed, and we
17361 # assume the GNU/Linux dynamic linker is in use.
17362 dynamic_linker='GNU/Linux ld.so'
17369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17370 soname_spec='${libname}${release}${shared_ext}$major'
17371 shlibpath_var=LD_LIBRARY_PATH
17372 shlibpath_overrides_runpath=no
17373 hardcode_into_libs=yes
17374 dynamic_linker='GNU ld.so'
17381 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17384 dynamic_linker='NetBSD (a.out) ld.so'
17386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17387 soname_spec='${libname}${release}${shared_ext}$major'
17388 dynamic_linker='NetBSD ld.elf_so'
17390 shlibpath_var=LD_LIBRARY_PATH
17391 shlibpath_overrides_runpath=yes
17392 hardcode_into_libs=yes
17397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17398 shlibpath_var=LD_LIBRARY_PATH
17399 shlibpath_overrides_runpath=yes
17406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17407 soname_spec='${libname}${release}${shared_ext}$major'
17408 shlibpath_var=LD_LIBRARY_PATH
17409 shlibpath_overrides_runpath=yes
17416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17418 shlibpath_var=LD_LIBRARY_PATH
17419 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17421 openbsd2.[89] | openbsd2.[89].*)
17422 shlibpath_overrides_runpath=no
17425 shlibpath_overrides_runpath=yes
17429 shlibpath_overrides_runpath=yes
17434 libname_spec='$name'
17437 library_names_spec='$libname${shared_ext} $libname.a'
17438 dynamic_linker='OS/2 ld.exe'
17439 shlibpath_var=LIBPATH
17442 osf3* | osf4* | osf5*)
17446 soname_spec='${libname}${release}${shared_ext}$major'
17447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17448 shlibpath_var=LD_LIBRARY_PATH
17449 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17450 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17455 soname_spec='${libname}${release}${shared_ext}$major'
17456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17457 shlibpath_var=LD_LIBRARY_PATH
17464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17465 soname_spec='${libname}${release}${shared_ext}$major'
17466 shlibpath_var=LD_LIBRARY_PATH
17467 shlibpath_overrides_runpath=yes
17468 hardcode_into_libs=yes
17469 # ldd complains unless libraries are executable
17470 postinstall_cmds='chmod +x $lib'
17475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17476 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17477 shlibpath_var=LD_LIBRARY_PATH
17478 shlibpath_overrides_runpath=yes
17479 if test "$with_gnu_ld" = yes; then
17485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17488 soname_spec='${libname}${release}${shared_ext}$major'
17489 shlibpath_var=LD_LIBRARY_PATH
17490 case $host_vendor in
17492 shlibpath_overrides_runpath=no
17494 export_dynamic_flag_spec='${wl}-Blargedynsym'
17495 runpath_var=LD_RUN_PATH
17503 shlibpath_overrides_runpath=no
17504 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17510 if test -d /usr/nec ;then
17512 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17513 soname_spec='$libname${shared_ext}.$major'
17514 shlibpath_var=LD_LIBRARY_PATH
17520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17521 soname_spec='${libname}${release}${shared_ext}$major'
17522 shlibpath_var=LD_LIBRARY_PATH
17529 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17530 echo "${ECHO_T}$dynamic_linker" >&6
17531 test "$dynamic_linker" = no && can_build_shared=no
17533 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17534 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17535 hardcode_action_CXX=
17536 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17537 test -n "$runpath_var_CXX" || \
17538 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17540 # We can hardcode non-existant directories.
17541 if test "$hardcode_direct_CXX" != no &&
17542 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17543 # have to relink, otherwise we might link with an installed library
17544 # when we should be linking with a yet-to-be-installed one
17545 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17546 test "$hardcode_minus_L_CXX" != no; then
17547 # Linking always hardcodes the temporary library directory.
17548 hardcode_action_CXX=relink
17550 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17551 hardcode_action_CXX=immediate
17554 # We cannot hardcode anything, or else we can only hardcode existing
17556 hardcode_action_CXX=unsupported
17558 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17559 echo "${ECHO_T}$hardcode_action_CXX" >&6
17561 if test "$hardcode_action_CXX" = relink; then
17562 # Fast installation is not supported
17563 enable_fast_install=no
17564 elif test "$shlibpath_overrides_runpath" = yes ||
17565 test "$enable_shared" = no; then
17566 # Fast installation is not necessary
17567 enable_fast_install=needless
17572 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17573 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17574 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17575 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17576 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17577 echo "$as_me:$LINENO: result: yes" >&5
17578 echo "${ECHO_T}yes" >&6
17580 # FIXME - insert some real tests, host_os isn't really good enough
17583 if test -n "$STRIP" ; then
17584 striplib="$STRIP -x"
17585 echo "$as_me:$LINENO: result: yes" >&5
17586 echo "${ECHO_T}yes" >&6
17588 echo "$as_me:$LINENO: result: no" >&5
17589 echo "${ECHO_T}no" >&6
17593 echo "$as_me:$LINENO: result: no" >&5
17594 echo "${ECHO_T}no" >&6
17599 if test "x$enable_dlopen" != xyes; then
17600 enable_dlopen=unknown
17601 enable_dlopen_self=unknown
17602 enable_dlopen_self_static=unknown
17609 lt_cv_dlopen="load_add_on"
17611 lt_cv_dlopen_self=yes
17615 lt_cv_dlopen="LoadLibrary"
17620 lt_cv_dlopen="dlopen"
17625 # if libdl is installed we need to link against it
17626 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17627 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17629 echo $ECHO_N "(cached) $ECHO_C" >&6
17631 ac_check_lib_save_LIBS=$LIBS
17633 cat >conftest.$ac_ext <<_ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h. */
17640 /* Override any gcc2 internal prototype to avoid an error. */
17644 /* We use char because int might match the return type of a gcc2
17645 builtin and then its argument prototype would still apply. */
17655 rm -f conftest.$ac_objext conftest$ac_exeext
17656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17657 (eval $ac_link) 2>conftest.er1
17659 grep -v '^ *+' conftest.er1 >conftest.err
17661 cat conftest.err >&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); } &&
17664 { ac_try='test -z "$ac_cxx_werror_flag"
17665 || test ! -s conftest.err'
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; } &&
17671 { ac_try='test -s conftest$ac_exeext'
17672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17673 (eval $ac_try) 2>&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; }; then
17677 ac_cv_lib_dl_dlopen=yes
17679 echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17682 ac_cv_lib_dl_dlopen=no
17684 rm -f conftest.err conftest.$ac_objext \
17685 conftest$ac_exeext conftest.$ac_ext
17686 LIBS=$ac_check_lib_save_LIBS
17688 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17689 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17690 if test $ac_cv_lib_dl_dlopen = yes; then
17691 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17694 lt_cv_dlopen="dyld"
17696 lt_cv_dlopen_self=yes
17703 echo "$as_me:$LINENO: checking for shl_load" >&5
17704 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17705 if test "${ac_cv_func_shl_load+set}" = set; then
17706 echo $ECHO_N "(cached) $ECHO_C" >&6
17708 cat >conftest.$ac_ext <<_ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h. */
17714 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17716 #define shl_load innocuous_shl_load
17718 /* System header to define __stub macros and hopefully few prototypes,
17719 which can conflict with char shl_load (); below.
17720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17721 <limits.h> exists even on freestanding compilers. */
17724 # include <limits.h>
17726 # include <assert.h>
17731 /* Override any gcc2 internal prototype to avoid an error. */
17736 /* We use char because int might match the return type of a gcc2
17737 builtin and then its argument prototype would still apply. */
17739 /* The GNU C library defines this for functions which it implements
17740 to always fail with ENOSYS. Some functions are actually named
17741 something starting with __ and the normal name is an alias. */
17742 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17745 char (*f) () = shl_load;
17754 return f != shl_load;
17759 rm -f conftest.$ac_objext conftest$ac_exeext
17760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17761 (eval $ac_link) 2>conftest.er1
17763 grep -v '^ *+' conftest.er1 >conftest.err
17765 cat conftest.err >&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } &&
17768 { ac_try='test -z "$ac_cxx_werror_flag"
17769 || test ! -s conftest.err'
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; } &&
17775 { ac_try='test -s conftest$ac_exeext'
17776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777 (eval $ac_try) 2>&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); }; }; then
17781 ac_cv_func_shl_load=yes
17783 echo "$as_me: failed program was:" >&5
17784 sed 's/^/| /' conftest.$ac_ext >&5
17786 ac_cv_func_shl_load=no
17788 rm -f conftest.err conftest.$ac_objext \
17789 conftest$ac_exeext conftest.$ac_ext
17791 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17792 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17793 if test $ac_cv_func_shl_load = yes; then
17794 lt_cv_dlopen="shl_load"
17796 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17797 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17798 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17799 echo $ECHO_N "(cached) $ECHO_C" >&6
17801 ac_check_lib_save_LIBS=$LIBS
17803 cat >conftest.$ac_ext <<_ACEOF
17806 cat confdefs.h >>conftest.$ac_ext
17807 cat >>conftest.$ac_ext <<_ACEOF
17808 /* end confdefs.h. */
17810 /* Override any gcc2 internal prototype to avoid an error. */
17814 /* We use char because int might match the return type of a gcc2
17815 builtin and then its argument prototype would still apply. */
17825 rm -f conftest.$ac_objext conftest$ac_exeext
17826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17827 (eval $ac_link) 2>conftest.er1
17829 grep -v '^ *+' conftest.er1 >conftest.err
17831 cat conftest.err >&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); } &&
17834 { ac_try='test -z "$ac_cxx_werror_flag"
17835 || test ! -s conftest.err'
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; } &&
17841 { ac_try='test -s conftest$ac_exeext'
17842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843 (eval $ac_try) 2>&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; }; then
17847 ac_cv_lib_dld_shl_load=yes
17849 echo "$as_me: failed program was:" >&5
17850 sed 's/^/| /' conftest.$ac_ext >&5
17852 ac_cv_lib_dld_shl_load=no
17854 rm -f conftest.err conftest.$ac_objext \
17855 conftest$ac_exeext conftest.$ac_ext
17856 LIBS=$ac_check_lib_save_LIBS
17858 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17859 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17860 if test $ac_cv_lib_dld_shl_load = yes; then
17861 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17863 echo "$as_me:$LINENO: checking for dlopen" >&5
17864 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17865 if test "${ac_cv_func_dlopen+set}" = set; then
17866 echo $ECHO_N "(cached) $ECHO_C" >&6
17868 cat >conftest.$ac_ext <<_ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h. */
17874 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17876 #define dlopen innocuous_dlopen
17878 /* System header to define __stub macros and hopefully few prototypes,
17879 which can conflict with char dlopen (); below.
17880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17881 <limits.h> exists even on freestanding compilers. */
17884 # include <limits.h>
17886 # include <assert.h>
17891 /* Override any gcc2 internal prototype to avoid an error. */
17896 /* We use char because int might match the return type of a gcc2
17897 builtin and then its argument prototype would still apply. */
17899 /* The GNU C library defines this for functions which it implements
17900 to always fail with ENOSYS. Some functions are actually named
17901 something starting with __ and the normal name is an alias. */
17902 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17905 char (*f) () = dlopen;
17914 return f != dlopen;
17919 rm -f conftest.$ac_objext conftest$ac_exeext
17920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17921 (eval $ac_link) 2>conftest.er1
17923 grep -v '^ *+' conftest.er1 >conftest.err
17925 cat conftest.err >&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
17928 { ac_try='test -z "$ac_cxx_werror_flag"
17929 || test ! -s conftest.err'
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; } &&
17935 { ac_try='test -s conftest$ac_exeext'
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; }; then
17941 ac_cv_func_dlopen=yes
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17946 ac_cv_func_dlopen=no
17948 rm -f conftest.err conftest.$ac_objext \
17949 conftest$ac_exeext conftest.$ac_ext
17951 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17952 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17953 if test $ac_cv_func_dlopen = yes; then
17954 lt_cv_dlopen="dlopen"
17956 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17957 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17958 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17959 echo $ECHO_N "(cached) $ECHO_C" >&6
17961 ac_check_lib_save_LIBS=$LIBS
17963 cat >conftest.$ac_ext <<_ACEOF
17966 cat confdefs.h >>conftest.$ac_ext
17967 cat >>conftest.$ac_ext <<_ACEOF
17968 /* end confdefs.h. */
17970 /* Override any gcc2 internal prototype to avoid an error. */
17974 /* We use char because int might match the return type of a gcc2
17975 builtin and then its argument prototype would still apply. */
17985 rm -f conftest.$ac_objext conftest$ac_exeext
17986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17987 (eval $ac_link) 2>conftest.er1
17989 grep -v '^ *+' conftest.er1 >conftest.err
17991 cat conftest.err >&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); } &&
17994 { ac_try='test -z "$ac_cxx_werror_flag"
17995 || test ! -s conftest.err'
17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; } &&
18001 { ac_try='test -s conftest$ac_exeext'
18002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003 (eval $ac_try) 2>&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; }; then
18007 ac_cv_lib_dl_dlopen=yes
18009 echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18012 ac_cv_lib_dl_dlopen=no
18014 rm -f conftest.err conftest.$ac_objext \
18015 conftest$ac_exeext conftest.$ac_ext
18016 LIBS=$ac_check_lib_save_LIBS
18018 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18019 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18020 if test $ac_cv_lib_dl_dlopen = yes; then
18021 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18023 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18024 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18025 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18026 echo $ECHO_N "(cached) $ECHO_C" >&6
18028 ac_check_lib_save_LIBS=$LIBS
18029 LIBS="-lsvld $LIBS"
18030 cat >conftest.$ac_ext <<_ACEOF
18033 cat confdefs.h >>conftest.$ac_ext
18034 cat >>conftest.$ac_ext <<_ACEOF
18035 /* end confdefs.h. */
18037 /* Override any gcc2 internal prototype to avoid an error. */
18041 /* We use char because int might match the return type of a gcc2
18042 builtin and then its argument prototype would still apply. */
18052 rm -f conftest.$ac_objext conftest$ac_exeext
18053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18054 (eval $ac_link) 2>conftest.er1
18056 grep -v '^ *+' conftest.er1 >conftest.err
18058 cat conftest.err >&5
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); } &&
18061 { ac_try='test -z "$ac_cxx_werror_flag"
18062 || test ! -s conftest.err'
18063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064 (eval $ac_try) 2>&5
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); }; } &&
18068 { ac_try='test -s conftest$ac_exeext'
18069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070 (eval $ac_try) 2>&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }; }; then
18074 ac_cv_lib_svld_dlopen=yes
18076 echo "$as_me: failed program was:" >&5
18077 sed 's/^/| /' conftest.$ac_ext >&5
18079 ac_cv_lib_svld_dlopen=no
18081 rm -f conftest.err conftest.$ac_objext \
18082 conftest$ac_exeext conftest.$ac_ext
18083 LIBS=$ac_check_lib_save_LIBS
18085 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18086 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18087 if test $ac_cv_lib_svld_dlopen = yes; then
18088 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18090 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18091 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18092 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18093 echo $ECHO_N "(cached) $ECHO_C" >&6
18095 ac_check_lib_save_LIBS=$LIBS
18097 cat >conftest.$ac_ext <<_ACEOF
18100 cat confdefs.h >>conftest.$ac_ext
18101 cat >>conftest.$ac_ext <<_ACEOF
18102 /* end confdefs.h. */
18104 /* Override any gcc2 internal prototype to avoid an error. */
18108 /* We use char because int might match the return type of a gcc2
18109 builtin and then its argument prototype would still apply. */
18119 rm -f conftest.$ac_objext conftest$ac_exeext
18120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18121 (eval $ac_link) 2>conftest.er1
18123 grep -v '^ *+' conftest.er1 >conftest.err
18125 cat conftest.err >&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); } &&
18128 { ac_try='test -z "$ac_cxx_werror_flag"
18129 || test ! -s conftest.err'
18130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131 (eval $ac_try) 2>&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; } &&
18135 { ac_try='test -s conftest$ac_exeext'
18136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18137 (eval $ac_try) 2>&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); }; }; then
18141 ac_cv_lib_dld_dld_link=yes
18143 echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18146 ac_cv_lib_dld_dld_link=no
18148 rm -f conftest.err conftest.$ac_objext \
18149 conftest$ac_exeext conftest.$ac_ext
18150 LIBS=$ac_check_lib_save_LIBS
18152 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18153 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18154 if test $ac_cv_lib_dld_dld_link = yes; then
18155 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18176 if test "x$lt_cv_dlopen" != xno; then
18182 case $lt_cv_dlopen in
18184 save_CPPFLAGS="$CPPFLAGS"
18185 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18187 save_LDFLAGS="$LDFLAGS"
18188 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18191 LIBS="$lt_cv_dlopen_libs $LIBS"
18193 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18194 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18195 if test "${lt_cv_dlopen_self+set}" = set; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18198 if test "$cross_compiling" = yes; then :
18199 lt_cv_dlopen_self=cross
18201 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18202 lt_status=$lt_dlunknown
18203 cat > conftest.$ac_ext <<EOF
18204 #line 18204 "configure"
18205 #include "confdefs.h"
18214 # define LT_DLGLOBAL RTLD_GLOBAL
18217 # define LT_DLGLOBAL DL_GLOBAL
18219 # define LT_DLGLOBAL 0
18223 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18224 find out it does not work in some platform. */
18225 #ifndef LT_DLLAZY_OR_NOW
18227 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18230 # define LT_DLLAZY_OR_NOW DL_LAZY
18233 # define LT_DLLAZY_OR_NOW RTLD_NOW
18236 # define LT_DLLAZY_OR_NOW DL_NOW
18238 # define LT_DLLAZY_OR_NOW 0
18246 extern "C" void exit (int);
18249 void fnord() { int i=42;}
18252 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18253 int status = $lt_dlunknown;
18257 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18258 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18259 /* dlclose (self); */
18265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18266 (eval $ac_link) 2>&5
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18270 (./conftest; exit; ) 2>/dev/null
18272 case x$lt_status in
18273 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18274 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18275 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18278 # compilation failed
18279 lt_cv_dlopen_self=no
18286 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18287 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18289 if test "x$lt_cv_dlopen_self" = xyes; then
18290 LDFLAGS="$LDFLAGS $link_static_flag"
18291 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18292 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18293 if test "${lt_cv_dlopen_self_static+set}" = set; then
18294 echo $ECHO_N "(cached) $ECHO_C" >&6
18296 if test "$cross_compiling" = yes; then :
18297 lt_cv_dlopen_self_static=cross
18299 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18300 lt_status=$lt_dlunknown
18301 cat > conftest.$ac_ext <<EOF
18302 #line 18302 "configure"
18303 #include "confdefs.h"
18312 # define LT_DLGLOBAL RTLD_GLOBAL
18315 # define LT_DLGLOBAL DL_GLOBAL
18317 # define LT_DLGLOBAL 0
18321 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18322 find out it does not work in some platform. */
18323 #ifndef LT_DLLAZY_OR_NOW
18325 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18328 # define LT_DLLAZY_OR_NOW DL_LAZY
18331 # define LT_DLLAZY_OR_NOW RTLD_NOW
18334 # define LT_DLLAZY_OR_NOW DL_NOW
18336 # define LT_DLLAZY_OR_NOW 0
18344 extern "C" void exit (int);
18347 void fnord() { int i=42;}
18350 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18351 int status = $lt_dlunknown;
18355 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18356 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18357 /* dlclose (self); */
18363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18364 (eval $ac_link) 2>&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18368 (./conftest; exit; ) 2>/dev/null
18370 case x$lt_status in
18371 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18372 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18373 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18376 # compilation failed
18377 lt_cv_dlopen_self_static=no
18384 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18385 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18388 CPPFLAGS="$save_CPPFLAGS"
18389 LDFLAGS="$save_LDFLAGS"
18394 case $lt_cv_dlopen_self in
18395 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18396 *) enable_dlopen_self=unknown ;;
18399 case $lt_cv_dlopen_self_static in
18400 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18401 *) enable_dlopen_self_static=unknown ;;
18406 # The else clause should only fire when bootstrapping the
18407 # libtool distribution, otherwise you forgot to ship ltmain.sh
18408 # with your package, and you will get complaints that there are
18409 # no rules to generate ltmain.sh.
18410 if test -f "$ltmain"; then
18411 # See if we are running on zsh, and set the options which allow our commands through
18412 # without removal of \ escapes.
18413 if test -n "${ZSH_VERSION+set}" ; then
18414 setopt NO_GLOB_SUBST
18416 # Now quote all the things that may contain metacharacters while being
18417 # careful not to overquote the AC_SUBSTed values. We take copies of the
18418 # variables and quote the copies for generation of the libtool script.
18419 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18421 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18422 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18423 deplibs_check_method reload_flag reload_cmds need_locks \
18424 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18425 lt_cv_sys_global_symbol_to_c_name_address \
18426 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18427 old_postinstall_cmds old_postuninstall_cmds \
18431 lt_prog_compiler_wl_CXX \
18432 lt_prog_compiler_pic_CXX \
18433 lt_prog_compiler_static_CXX \
18434 lt_prog_compiler_no_builtin_flag_CXX \
18435 export_dynamic_flag_spec_CXX \
18436 thread_safe_flag_spec_CXX \
18437 whole_archive_flag_spec_CXX \
18438 enable_shared_with_static_runtimes_CXX \
18439 old_archive_cmds_CXX \
18440 old_archive_from_new_cmds_CXX \
18441 predep_objects_CXX \
18442 postdep_objects_CXX \
18445 compiler_lib_search_path_CXX \
18447 archive_expsym_cmds_CXX \
18448 postinstall_cmds_CXX \
18449 postuninstall_cmds_CXX \
18450 old_archive_from_expsyms_cmds_CXX \
18451 allow_undefined_flag_CXX \
18452 no_undefined_flag_CXX \
18453 export_symbols_cmds_CXX \
18454 hardcode_libdir_flag_spec_CXX \
18455 hardcode_libdir_flag_spec_ld_CXX \
18456 hardcode_libdir_separator_CXX \
18457 hardcode_automatic_CXX \
18459 module_expsym_cmds_CXX \
18460 lt_cv_prog_compiler_c_o_CXX \
18461 exclude_expsyms_CXX \
18462 include_expsyms_CXX; do
18465 old_archive_cmds_CXX | \
18466 old_archive_from_new_cmds_CXX | \
18467 archive_cmds_CXX | \
18468 archive_expsym_cmds_CXX | \
18469 module_cmds_CXX | \
18470 module_expsym_cmds_CXX | \
18471 old_archive_from_expsyms_cmds_CXX | \
18472 export_symbols_cmds_CXX | \
18473 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18474 postinstall_cmds | postuninstall_cmds | \
18475 old_postinstall_cmds | old_postuninstall_cmds | \
18476 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18477 # Double-quote double-evaled strings.
18478 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18481 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18487 *'\$0 --fallback-echo"')
18488 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18494 cat <<__EOF__ >> "$cfgfile"
18495 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18497 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18499 # Shell to use when invoking shell scripts.
18502 # Whether or not to build shared libraries.
18503 build_libtool_libs=$enable_shared
18505 # Whether or not to build static libraries.
18506 build_old_libs=$enable_static
18508 # Whether or not to add -lc for building shared libraries.
18509 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18511 # Whether or not to disallow shared libs when runtime libs are static
18512 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18514 # Whether or not to optimize for fast installation.
18515 fast_install=$enable_fast_install
18518 host_alias=$host_alias
18521 # An echo program that does not interpret backslashes.
18526 AR_FLAGS=$lt_AR_FLAGS
18531 # A language-specific compiler.
18532 CC=$lt_compiler_CXX
18534 # Is the compiler the GNU C compiler?
18540 # The linker used to build libraries.
18543 # Whether we need hard or soft links.
18546 # A BSD-compatible nm program.
18549 # A symbol stripping program
18552 # Used to examine libraries when file_magic_cmd begins "file"
18553 MAGIC_CMD=$MAGIC_CMD
18555 # Used on cygwin: DLL creation program.
18558 # Used on cygwin: object dumper.
18561 # Used on cygwin: assembler.
18564 # The name of the directory that contains temporary libtool files.
18567 # How to create reloadable object files.
18568 reload_flag=$lt_reload_flag
18569 reload_cmds=$lt_reload_cmds
18571 # How to pass a linker flag through the compiler.
18572 wl=$lt_lt_prog_compiler_wl_CXX
18574 # Object file suffix (normally "o").
18575 objext="$ac_objext"
18577 # Old archive suffix (normally "a").
18580 # Shared library suffix (normally ".so").
18581 shrext_cmds='$shrext_cmds'
18583 # Executable file suffix (normally "").
18586 # Additional compiler flags for building library objects.
18587 pic_flag=$lt_lt_prog_compiler_pic_CXX
18590 # What is the maximum length of a command?
18591 max_cmd_len=$lt_cv_sys_max_cmd_len
18593 # Does compiler simultaneously support -c and -o options?
18594 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18596 # Must we lock files when doing compilation ?
18597 need_locks=$lt_need_locks
18599 # Do we need the lib prefix for modules?
18600 need_lib_prefix=$need_lib_prefix
18602 # Do we need a version for libraries?
18603 need_version=$need_version
18605 # Whether dlopen is supported.
18606 dlopen_support=$enable_dlopen
18608 # Whether dlopen of programs is supported.
18609 dlopen_self=$enable_dlopen_self
18611 # Whether dlopen of statically linked programs is supported.
18612 dlopen_self_static=$enable_dlopen_self_static
18614 # Compiler flag to prevent dynamic linking.
18615 link_static_flag=$lt_lt_prog_compiler_static_CXX
18617 # Compiler flag to turn off builtin functions.
18618 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18620 # Compiler flag to allow reflexive dlopens.
18621 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18623 # Compiler flag to generate shared objects directly from archives.
18624 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18626 # Compiler flag to generate thread-safe objects.
18627 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18629 # Library versioning type.
18630 version_type=$version_type
18632 # Format of library name prefix.
18633 libname_spec=$lt_libname_spec
18635 # List of archive names. First name is the real one, the rest are links.
18636 # The last name is the one that the linker finds with -lNAME.
18637 library_names_spec=$lt_library_names_spec
18639 # The coded name of the library, if different from the real name.
18640 soname_spec=$lt_soname_spec
18642 # Commands used to build and install an old-style archive.
18644 old_archive_cmds=$lt_old_archive_cmds_CXX
18645 old_postinstall_cmds=$lt_old_postinstall_cmds
18646 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18648 # Create an old-style archive from a shared archive.
18649 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18651 # Create a temporary old-style archive to link instead of a shared archive.
18652 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18654 # Commands used to build and install a shared archive.
18655 archive_cmds=$lt_archive_cmds_CXX
18656 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18657 postinstall_cmds=$lt_postinstall_cmds
18658 postuninstall_cmds=$lt_postuninstall_cmds
18660 # Commands used to build a loadable module (assumed same as above if empty)
18661 module_cmds=$lt_module_cmds_CXX
18662 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18664 # Commands to strip libraries.
18665 old_striplib=$lt_old_striplib
18666 striplib=$lt_striplib
18668 # Dependencies to place before the objects being linked to create a
18670 predep_objects=$lt_predep_objects_CXX
18672 # Dependencies to place after the objects being linked to create a
18674 postdep_objects=$lt_postdep_objects_CXX
18676 # Dependencies to place before the objects being linked to create a
18678 predeps=$lt_predeps_CXX
18680 # Dependencies to place after the objects being linked to create a
18682 postdeps=$lt_postdeps_CXX
18684 # The library search path used internally by the compiler when linking
18685 # a shared library.
18686 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18688 # Method to check whether dependent libraries are shared objects.
18689 deplibs_check_method=$lt_deplibs_check_method
18691 # Command to use when deplibs_check_method == file_magic.
18692 file_magic_cmd=$lt_file_magic_cmd
18694 # Flag that allows shared libraries with undefined symbols to be built.
18695 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18697 # Flag that forces no undefined symbols.
18698 no_undefined_flag=$lt_no_undefined_flag_CXX
18700 # Commands used to finish a libtool library installation in a directory.
18701 finish_cmds=$lt_finish_cmds
18703 # Same as above, but a single script fragment to be evaled but not shown.
18704 finish_eval=$lt_finish_eval
18706 # Take the output of nm and produce a listing of raw symbols and C names.
18707 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18709 # Transform the output of nm in a proper C declaration
18710 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18712 # Transform the output of nm in a C name address pair
18713 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18715 # This is the shared library runtime path variable.
18716 runpath_var=$runpath_var
18718 # This is the shared library path variable.
18719 shlibpath_var=$shlibpath_var
18721 # Is shlibpath searched before the hard-coded library search path?
18722 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18724 # How to hardcode a shared library path into an executable.
18725 hardcode_action=$hardcode_action_CXX
18727 # Whether we should hardcode library paths into libraries.
18728 hardcode_into_libs=$hardcode_into_libs
18730 # Flag to hardcode \$libdir into a binary during linking.
18731 # This must work even if \$libdir does not exist.
18732 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18734 # If ld is used when linking, flag to hardcode \$libdir into
18735 # a binary during linking. This must work even if \$libdir does
18737 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18739 # Whether we need a single -rpath flag with a separated argument.
18740 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18742 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18743 # resulting binary.
18744 hardcode_direct=$hardcode_direct_CXX
18746 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18747 # resulting binary.
18748 hardcode_minus_L=$hardcode_minus_L_CXX
18750 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18751 # the resulting binary.
18752 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18754 # Set to yes if building a shared library automatically hardcodes DIR into the library
18755 # and all subsequent libraries and executables linked against it.
18756 hardcode_automatic=$hardcode_automatic_CXX
18758 # Variables whose values should be saved in libtool wrapper scripts and
18759 # restored at relink time.
18760 variables_saved_for_relink="$variables_saved_for_relink"
18762 # Whether libtool must link a program against all its dependency libraries.
18763 link_all_deplibs=$link_all_deplibs_CXX
18765 # Compile-time system search path for libraries
18766 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18768 # Run-time system search path for libraries
18769 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18771 # Fix the shell variable \$srcfile for the compiler.
18772 fix_srcfile_path="$fix_srcfile_path_CXX"
18774 # Set to yes if exported symbols are required.
18775 always_export_symbols=$always_export_symbols_CXX
18777 # The commands to list exported symbols.
18778 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18780 # The commands to extract the exported symbol list from a shared archive.
18781 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18783 # Symbols that should not be listed in the preloaded symbols.
18784 exclude_expsyms=$lt_exclude_expsyms_CXX
18786 # Symbols that must always be exported.
18787 include_expsyms=$lt_include_expsyms_CXX
18789 # ### END LIBTOOL TAG CONFIG: $tagname
18795 # If there is no Makefile yet, we rely on a make rule to execute
18796 # `config.status --recheck' to rerun these tests and create the
18797 # libtool script then.
18798 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18799 if test -f "$ltmain_in"; then
18800 test -f Makefile && make "$ltmain"
18806 ac_cpp='$CPP $CPPFLAGS'
18807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18815 with_gnu_ldcxx=$with_gnu_ld
18816 with_gnu_ld=$lt_save_with_gnu_ld
18817 lt_cv_path_LDCXX=$lt_cv_path_LD
18818 lt_cv_path_LD=$lt_save_path_LD
18819 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18820 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18828 if test -n "$F77" && test "X$F77" != "Xno"; then
18831 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18832 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18833 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18836 archive_cmds_need_lc_F77=no
18837 allow_undefined_flag_F77=
18838 always_export_symbols_F77=no
18839 archive_expsym_cmds_F77=
18840 export_dynamic_flag_spec_F77=
18841 hardcode_direct_F77=no
18842 hardcode_libdir_flag_spec_F77=
18843 hardcode_libdir_flag_spec_ld_F77=
18844 hardcode_libdir_separator_F77=
18845 hardcode_minus_L_F77=no
18846 hardcode_automatic_F77=no
18848 module_expsym_cmds_F77=
18849 link_all_deplibs_F77=unknown
18850 old_archive_cmds_F77=$old_archive_cmds
18851 no_undefined_flag_F77=
18852 whole_archive_flag_spec_F77=
18853 enable_shared_with_static_runtimes_F77=no
18855 # Source file extension for f77 test sources.
18858 # Object file extension for compiled f77 test sources.
18862 # Code to be used in simple compile tests
18863 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18865 # Code to be used in simple link tests
18866 lt_simple_link_test_code=" program t\n end\n"
18868 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18870 # If no C compiler was specified, use CC.
18873 # Allow CC to be a program name with arguments.
18877 # Allow CC to be a program name with arguments.
18882 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18884 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18885 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18886 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18887 echo "${ECHO_T}$can_build_shared" >&6
18889 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18890 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18891 test "$can_build_shared" = "no" && enable_shared=no
18893 # On AIX, shared libraries and static libraries use the same namespace, and
18894 # are all built from PIC.
18897 test "$enable_shared" = yes && enable_static=no
18898 if test -n "$RANLIB"; then
18899 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18900 postinstall_cmds='$RANLIB $lib'
18904 test "$enable_shared" = yes && enable_static=no
18907 echo "$as_me:$LINENO: result: $enable_shared" >&5
18908 echo "${ECHO_T}$enable_shared" >&6
18910 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18911 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18912 # Make sure either enable_shared or enable_static is yes.
18913 test "$enable_shared" = yes || enable_static=yes
18914 echo "$as_me:$LINENO: result: $enable_static" >&5
18915 echo "${ECHO_T}$enable_static" >&6
18917 test "$ld_shlibs_F77" = no && can_build_shared=no
18922 lt_prog_compiler_wl_F77=
18923 lt_prog_compiler_pic_F77=
18924 lt_prog_compiler_static_F77=
18926 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18927 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18929 if test "$GCC" = yes; then
18930 lt_prog_compiler_wl_F77='-Wl,'
18931 lt_prog_compiler_static_F77='-static'
18935 # All AIX code is PIC.
18936 if test "$host_cpu" = ia64; then
18937 # AIX 5 now supports IA64 processor
18938 lt_prog_compiler_static_F77='-Bstatic'
18943 # FIXME: we need at least 68020 code to build shared libraries, but
18944 # adding the `-m68020' flag to GCC prevents building anything better,
18946 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18949 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18950 # PIC is the default for these OSes.
18953 mingw* | pw32* | os2*)
18954 # This hack is so that the source file can tell whether it is being
18955 # built for inclusion in a dll (and should export symbols for example).
18956 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18959 darwin* | rhapsody*)
18960 # PIC is the default on this platform
18961 # Common symbols not allowed in MH_DYLIB files
18962 lt_prog_compiler_pic_F77='-fno-common'
18966 # Just because we use GCC doesn't mean we suddenly get shared libraries
18967 # on systems that don't support them.
18968 lt_prog_compiler_can_build_shared_F77=no
18973 if test -d /usr/nec; then
18974 lt_prog_compiler_pic_F77=-Kconform_pic
18979 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18980 # not for PA HP-UX.
18981 case "$host_cpu" in
18986 lt_prog_compiler_pic_F77='-fPIC'
18992 lt_prog_compiler_pic_F77='-fPIC'
18996 # PORTME Check for flag to pass linker flags through the system compiler.
18999 lt_prog_compiler_wl_F77='-Wl,'
19000 if test "$host_cpu" = ia64; then
19001 # AIX 5 now supports IA64 processor
19002 lt_prog_compiler_static_F77='-Bstatic'
19004 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19008 # PIC is the default on this platform
19009 # Common symbols not allowed in MH_DYLIB files
19010 case "$cc_basename" in
19012 lt_prog_compiler_pic_F77='-qnocommon'
19013 lt_prog_compiler_wl_F77='-Wl,'
19018 mingw* | pw32* | os2*)
19019 # This hack is so that the source file can tell whether it is being
19020 # built for inclusion in a dll (and should export symbols for example).
19021 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19024 hpux9* | hpux10* | hpux11*)
19025 lt_prog_compiler_wl_F77='-Wl,'
19026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19027 # not for PA HP-UX.
19028 case "$host_cpu" in
19033 lt_prog_compiler_pic_F77='+Z'
19036 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19037 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19040 irix5* | irix6* | nonstopux*)
19041 lt_prog_compiler_wl_F77='-Wl,'
19042 # PIC (with -KPIC) is the default.
19043 lt_prog_compiler_static_F77='-non_shared'
19047 lt_prog_compiler_pic_F77='-KPIC'
19048 lt_prog_compiler_static_F77='-Bstatic'
19054 lt_prog_compiler_wl_F77='-Wl,'
19055 lt_prog_compiler_pic_F77='-KPIC'
19056 lt_prog_compiler_static_F77='-static'
19059 lt_prog_compiler_wl_F77='-Wl,'
19060 # All Alpha code is PIC.
19061 lt_prog_compiler_static_F77='-non_shared'
19066 osf3* | osf4* | osf5*)
19067 lt_prog_compiler_wl_F77='-Wl,'
19068 # All OSF/1 code is PIC.
19069 lt_prog_compiler_static_F77='-non_shared'
19073 lt_prog_compiler_pic_F77='-Kpic'
19074 lt_prog_compiler_static_F77='-dn'
19078 lt_prog_compiler_wl_F77='-Wl,'
19079 lt_prog_compiler_pic_F77='-KPIC'
19080 lt_prog_compiler_static_F77='-Bstatic'
19084 lt_prog_compiler_wl_F77='-Qoption ld '
19085 lt_prog_compiler_pic_F77='-PIC'
19086 lt_prog_compiler_static_F77='-Bstatic'
19089 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19090 lt_prog_compiler_wl_F77='-Wl,'
19091 lt_prog_compiler_pic_F77='-KPIC'
19092 lt_prog_compiler_static_F77='-Bstatic'
19096 if test -d /usr/nec ;then
19097 lt_prog_compiler_pic_F77='-Kconform_pic'
19098 lt_prog_compiler_static_F77='-Bstatic'
19103 lt_prog_compiler_pic_F77='-pic'
19104 lt_prog_compiler_static_F77='-Bstatic'
19108 lt_prog_compiler_can_build_shared_F77=no
19113 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19114 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19117 # Check to make sure the PIC flag actually works.
19119 if test -n "$lt_prog_compiler_pic_F77"; then
19121 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19122 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19123 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19124 echo $ECHO_N "(cached) $ECHO_C" >&6
19126 lt_prog_compiler_pic_works_F77=no
19127 ac_outfile=conftest.$ac_objext
19128 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19129 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19130 # Insert the option either (1) after the last *FLAGS variable, or
19131 # (2) before a word containing "conftest.", or (3) at the end.
19132 # Note that $ac_compile itself does not contain backslashes and begins
19133 # with a dollar sign (not a hyphen), so the echo should work correctly.
19134 # The option is referenced via a variable to avoid confusing sed.
19135 lt_compile=`echo "$ac_compile" | $SED \
19136 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19138 -e 's:$: $lt_compiler_flag:'`
19139 (eval echo "\"\$as_me:19139: $lt_compile\"" >&5)
19140 (eval "$lt_compile" 2>conftest.err)
19142 cat conftest.err >&5
19143 echo "$as_me:19143: \$? = $ac_status" >&5
19144 if (exit $ac_status) && test -s "$ac_outfile"; then
19145 # The compiler can only warn and ignore the option if not recognized
19146 # So say no if there are warnings
19147 if test ! -s conftest.err; then
19148 lt_prog_compiler_pic_works_F77=yes
19154 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19155 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19157 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19158 case $lt_prog_compiler_pic_F77 in
19160 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19163 lt_prog_compiler_pic_F77=
19164 lt_prog_compiler_can_build_shared_F77=no
19169 # For platforms which do not support PIC, -DPIC is meaningless:
19171 lt_prog_compiler_pic_F77=
19174 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19178 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19179 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19180 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19181 echo $ECHO_N "(cached) $ECHO_C" >&6
19183 lt_cv_prog_compiler_c_o_F77=no
19184 $rm -r conftest 2>/dev/null
19188 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19190 lt_compiler_flag="-o out/conftest2.$ac_objext"
19191 # Insert the option either (1) after the last *FLAGS variable, or
19192 # (2) before a word containing "conftest.", or (3) at the end.
19193 # Note that $ac_compile itself does not contain backslashes and begins
19194 # with a dollar sign (not a hyphen), so the echo should work correctly.
19195 lt_compile=`echo "$ac_compile" | $SED \
19196 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19197 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19198 -e 's:$: $lt_compiler_flag:'`
19199 (eval echo "\"\$as_me:19199: $lt_compile\"" >&5)
19200 (eval "$lt_compile" 2>out/conftest.err)
19202 cat out/conftest.err >&5
19203 echo "$as_me:19203: \$? = $ac_status" >&5
19204 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19206 # The compiler can only warn and ignore the option if not recognized
19207 # So say no if there are warnings
19208 if test ! -s out/conftest.err; then
19209 lt_cv_prog_compiler_c_o_F77=yes
19214 # SGI C++ compiler will create directory out/ii_files/ for
19215 # template instantiation
19216 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19217 $rm out/* && rmdir out
19223 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19224 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19227 hard_links="nottested"
19228 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19229 # do not overwrite the value of need_locks provided by the user
19230 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19231 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19234 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19236 ln conftest.a conftest.b 2>&5 || hard_links=no
19237 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19238 echo "$as_me:$LINENO: result: $hard_links" >&5
19239 echo "${ECHO_T}$hard_links" >&6
19240 if test "$hard_links" = no; then
19241 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19242 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19249 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19250 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19253 allow_undefined_flag_F77=
19254 enable_shared_with_static_runtimes_F77=no
19256 archive_expsym_cmds_F77=
19257 old_archive_From_new_cmds_F77=
19258 old_archive_from_expsyms_cmds_F77=
19259 export_dynamic_flag_spec_F77=
19260 whole_archive_flag_spec_F77=
19261 thread_safe_flag_spec_F77=
19262 hardcode_libdir_flag_spec_F77=
19263 hardcode_libdir_flag_spec_ld_F77=
19264 hardcode_libdir_separator_F77=
19265 hardcode_direct_F77=no
19266 hardcode_minus_L_F77=no
19267 hardcode_shlibpath_var_F77=unsupported
19268 link_all_deplibs_F77=unknown
19269 hardcode_automatic_F77=no
19271 module_expsym_cmds_F77=
19272 always_export_symbols_F77=no
19273 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19274 # include_expsyms should be a list of space-separated symbols to be *always*
19275 # included in the symbol list
19276 include_expsyms_F77=
19277 # exclude_expsyms can be an extended regexp of symbols to exclude
19278 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19279 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19280 # as well as any symbol that contains `d'.
19281 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19282 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19283 # platforms (ab)use it in PIC code, but their linkers get confused if
19284 # the symbol is explicitly referenced. Since portable code cannot
19285 # rely on this symbol name, it's probably fine to never include it in
19286 # preloaded symbol tables.
19287 extract_expsyms_cmds=
19290 cygwin* | mingw* | pw32*)
19291 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19292 # When not using gcc, we currently assume that we are using
19293 # Microsoft Visual C++.
19294 if test "$GCC" != yes; then
19304 if test "$with_gnu_ld" = yes; then
19305 # If archive_cmds runs LD, not CC, wlarc should be empty
19308 # See if GNU ld supports shared libraries.
19310 aix3* | aix4* | aix5*)
19311 # On AIX/PPC, the GNU linker is very broken
19312 if test "$host_cpu" != ia64; then
19316 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19317 *** to be unable to reliably create shared libraries on AIX.
19318 *** Therefore, libtool is disabling shared libraries support. If you
19319 *** really care for shared libraries, you may want to modify your PATH
19320 *** so that a non-GNU linker is found, and then restart.
19327 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)'
19328 hardcode_libdir_flag_spec_F77='-L$libdir'
19329 hardcode_minus_L_F77=yes
19331 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19332 # that the semantics of dynamic libraries on AmigaOS, at least up
19333 # to version 4, is to share data among multiple programs linked
19334 # with the same dynamic library. Since this doesn't match the
19335 # behavior of shared libraries on other platforms, we can't use
19341 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19342 allow_undefined_flag_F77=unsupported
19343 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19344 # support --undefined. This deserves some investigation. FIXME
19345 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19351 cygwin* | mingw* | pw32*)
19352 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19353 # as there is no search path for DLLs.
19354 hardcode_libdir_flag_spec_F77='-L$libdir'
19355 allow_undefined_flag_F77=unsupported
19356 always_export_symbols_F77=no
19357 enable_shared_with_static_runtimes_F77=yes
19358 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19360 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19361 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19362 # If the export-symbols file already is a .def file (1st line
19363 # is EXPORTS), use it as is; otherwise, prepend...
19364 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19365 cp $export_symbols $output_objdir/$soname.def;
19367 echo EXPORTS > $output_objdir/$soname.def;
19368 cat $export_symbols >> $output_objdir/$soname.def;
19370 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19377 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19378 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19381 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19382 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19387 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19391 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19392 *** create shared libraries on Solaris systems. Therefore, libtool
19393 *** is disabling shared libraries support. We urge you to upgrade GNU
19394 *** binutils to release 2.9.1 or newer. Another option is to modify
19395 *** your PATH or compiler configuration so that the native linker is
19396 *** used, and then restart.
19399 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19400 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19401 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19408 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19410 hardcode_direct_F77=yes
19411 hardcode_shlibpath_var_F77=no
19415 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19416 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19417 archive_cmds_F77="$tmp_archive_cmds"
19418 supports_anon_versioning=no
19419 case `$LD -v 2>/dev/null` in
19420 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19421 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19422 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19423 *\ 2.11.*) ;; # other 2.11 versions
19424 *) supports_anon_versioning=yes ;;
19426 if test $supports_anon_versioning = yes; then
19427 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19428 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19429 $echo "local: *; };" >> $output_objdir/$libname.ver~
19430 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19432 archive_expsym_cmds_F77="$tmp_archive_cmds"
19440 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19441 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19442 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19449 if test "$ld_shlibs_F77" = yes; then
19450 runpath_var=LD_RUN_PATH
19451 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19452 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19453 # ancient GNU ld didn't support --whole-archive et. al.
19454 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19455 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19457 whole_archive_flag_spec_F77=
19461 # PORTME fill in a description of your system's linker (not GNU ld)
19464 allow_undefined_flag_F77=unsupported
19465 always_export_symbols_F77=yes
19466 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'
19467 # Note: this linker hardcodes the directories in LIBPATH if there
19468 # are no directories specified by -L.
19469 hardcode_minus_L_F77=yes
19470 if test "$GCC" = yes && test -z "$link_static_flag"; then
19471 # Neither direct hardcoding nor static linking is supported with a
19473 hardcode_direct_F77=unsupported
19478 if test "$host_cpu" = ia64; then
19479 # On IA64, the linker does run time linking by default, so we don't
19480 # have to do anything special.
19481 aix_use_runtimelinking=no
19482 exp_sym_flag='-Bexport'
19485 # If we're using GNU nm, then we don't want the "-C" option.
19486 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19487 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19488 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'
19490 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'
19492 aix_use_runtimelinking=no
19494 # Test if we are trying to use run time linking or normal
19495 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19496 # need to do runtime linking.
19497 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19498 for ld_flag in $LDFLAGS; do
19499 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19500 aix_use_runtimelinking=yes
19506 exp_sym_flag='-bexport'
19507 no_entry_flag='-bnoentry'
19510 # When large executables or shared objects are built, AIX ld can
19511 # have problems creating the table of contents. If linking a library
19512 # or program results in "error TOC overflow" add -mminimal-toc to
19513 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19514 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19516 archive_cmds_F77=''
19517 hardcode_direct_F77=yes
19518 hardcode_libdir_separator_F77=':'
19519 link_all_deplibs_F77=yes
19521 if test "$GCC" = yes; then
19522 case $host_os in aix4.012|aix4.012.*)
19523 # We only want to do this on AIX 4.2 and lower, the check
19524 # below for broken collect2 doesn't work under 4.3+
19525 collect2name=`${CC} -print-prog-name=collect2`
19526 if test -f "$collect2name" && \
19527 strings "$collect2name" | grep resolve_lib_name >/dev/null
19529 # We have reworked collect2
19530 hardcode_direct_F77=yes
19532 # We have old collect2
19533 hardcode_direct_F77=unsupported
19534 # It fails to find uninstalled libraries when the uninstalled
19535 # path is not listed in the libpath. Setting hardcode_minus_L
19536 # to unsupported forces relinking
19537 hardcode_minus_L_F77=yes
19538 hardcode_libdir_flag_spec_F77='-L$libdir'
19539 hardcode_libdir_separator_F77=
19542 shared_flag='-shared'
19545 if test "$host_cpu" = ia64; then
19546 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19547 # chokes on -Wl,-G. The following line is correct:
19550 if test "$aix_use_runtimelinking" = yes; then
19551 shared_flag='${wl}-G'
19553 shared_flag='${wl}-bM:SRE'
19558 # It seems that -bexpall does not export symbols beginning with
19559 # underscore (_), so it is better to generate a list of symbols to export.
19560 always_export_symbols_F77=yes
19561 if test "$aix_use_runtimelinking" = yes; then
19562 # Warning - without using the other runtime loading flags (-brtl),
19563 # -berok will link without error, but may produce a broken library.
19564 allow_undefined_flag_F77='-berok'
19565 # Determine the default libpath from the value encoded in an empty executable.
19566 cat >conftest.$ac_ext <<_ACEOF
19571 rm -f conftest.$ac_objext conftest$ac_exeext
19572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19573 (eval $ac_link) 2>conftest.er1
19575 grep -v '^ *+' conftest.er1 >conftest.err
19577 cat conftest.err >&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); } &&
19580 { ac_try='test -z "$ac_f77_werror_flag"
19581 || test ! -s conftest.err'
19582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583 (eval $ac_try) 2>&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); }; } &&
19587 { ac_try='test -s conftest$ac_exeext'
19588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589 (eval $ac_try) 2>&5
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); }; }; then
19594 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19596 # Check for a 64-bit object if we didn't find anything.
19597 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; }
19600 echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19604 rm -f conftest.err conftest.$ac_objext \
19605 conftest$ac_exeext conftest.$ac_ext
19606 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19608 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19609 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"
19611 if test "$host_cpu" = ia64; then
19612 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19613 allow_undefined_flag_F77="-z nodefs"
19614 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"
19616 # Determine the default libpath from the value encoded in an empty executable.
19617 cat >conftest.$ac_ext <<_ACEOF
19622 rm -f conftest.$ac_objext conftest$ac_exeext
19623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19624 (eval $ac_link) 2>conftest.er1
19626 grep -v '^ *+' conftest.er1 >conftest.err
19628 cat conftest.err >&5
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); } &&
19631 { ac_try='test -z "$ac_f77_werror_flag"
19632 || test ! -s conftest.err'
19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 (eval $ac_try) 2>&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; } &&
19638 { ac_try='test -s conftest$ac_exeext'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
19645 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19647 # Check for a 64-bit object if we didn't find anything.
19648 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; }
19651 echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19655 rm -f conftest.err conftest.$ac_objext \
19656 conftest$ac_exeext conftest.$ac_ext
19657 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19659 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19660 # Warning - without using the other run time loading flags,
19661 # -berok will link without error, but may produce a broken library.
19662 no_undefined_flag_F77=' ${wl}-bernotok'
19663 allow_undefined_flag_F77=' ${wl}-berok'
19664 # -bexpall does not export symbols beginning with underscore (_)
19665 always_export_symbols_F77=yes
19666 # Exported symbols can be pulled into shared objects from archives
19667 whole_archive_flag_spec_F77=' '
19668 archive_cmds_need_lc_F77=yes
19669 # This is similar to how AIX traditionally builds it's shared libraries.
19670 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'
19676 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)'
19677 hardcode_libdir_flag_spec_F77='-L$libdir'
19678 hardcode_minus_L_F77=yes
19679 # see comment about different semantics on the GNU ld section
19684 export_dynamic_flag_spec_F77=-rdynamic
19687 cygwin* | mingw* | pw32*)
19688 # When not using gcc, we currently assume that we are using
19689 # Microsoft Visual C++.
19690 # hardcode_libdir_flag_spec is actually meaningless, as there is
19691 # no search path for DLLs.
19692 hardcode_libdir_flag_spec_F77=' '
19693 allow_undefined_flag_F77=unsupported
19694 # Tell ltmain to make .lib files, not .a files.
19696 # Tell ltmain to make .dll files, not .so files.
19698 # FIXME: Setting linknames here is a bad hack.
19699 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19700 # The linker will automatically build a .lib file if we build a DLL.
19701 old_archive_From_new_cmds_F77='true'
19702 # FIXME: Should let the user specify the lib program.
19703 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19704 fix_srcfile_path='`cygpath -w "$srcfile"`'
19705 enable_shared_with_static_runtimes_F77=yes
19708 darwin* | rhapsody*)
19710 rhapsody* | darwin1.[012])
19711 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19714 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19715 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19717 case ${MACOSX_DEPLOYMENT_TARGET} in
19719 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19722 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19728 archive_cmds_need_lc_F77=no
19729 hardcode_direct_F77=no
19730 hardcode_automatic_F77=yes
19731 hardcode_shlibpath_var_F77=unsupported
19732 whole_archive_flag_spec_F77=''
19733 link_all_deplibs_F77=yes
19734 if test "$GCC" = yes ; then
19735 output_verbose_link_cmd='echo'
19736 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19737 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19738 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19739 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}'
19740 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}'
19742 case "$cc_basename" in
19744 output_verbose_link_cmd='echo'
19745 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19746 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19747 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19748 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}'
19749 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}'
19759 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19760 hardcode_libdir_flag_spec_F77='-L$libdir'
19761 hardcode_shlibpath_var_F77=no
19768 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19769 # support. Future versions do this automatically, but an explicit c++rt0.o
19770 # does not break anything, and helps significantly (at the cost of a little
19773 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19774 hardcode_libdir_flag_spec_F77='-R$libdir'
19775 hardcode_direct_F77=yes
19776 hardcode_shlibpath_var_F77=no
19779 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19781 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19782 hardcode_direct_F77=yes
19783 hardcode_minus_L_F77=yes
19784 hardcode_shlibpath_var_F77=no
19787 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19788 freebsd* | kfreebsd*-gnu)
19789 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19790 hardcode_libdir_flag_spec_F77='-R$libdir'
19791 hardcode_direct_F77=yes
19792 hardcode_shlibpath_var_F77=no
19796 if test "$GCC" = yes; then
19797 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'
19799 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'
19801 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19802 hardcode_libdir_separator_F77=:
19803 hardcode_direct_F77=yes
19805 # hardcode_minus_L: Not really in the search PATH,
19806 # but as the default location of the library.
19807 hardcode_minus_L_F77=yes
19808 export_dynamic_flag_spec_F77='${wl}-E'
19812 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19813 case "$host_cpu" in
19815 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19818 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19822 case "$host_cpu" in
19824 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19827 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19831 if test "$with_gnu_ld" = no; then
19832 case "$host_cpu" in
19834 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19835 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19836 hardcode_libdir_separator_F77=:
19837 hardcode_direct_F77=no
19838 hardcode_shlibpath_var_F77=no
19841 hardcode_libdir_flag_spec_F77='-L$libdir'
19842 hardcode_direct_F77=no
19843 hardcode_shlibpath_var_F77=no
19845 # hardcode_minus_L: Not really in the search PATH,
19846 # but as the default location of the library.
19847 hardcode_minus_L_F77=yes
19850 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19851 hardcode_libdir_separator_F77=:
19852 hardcode_direct_F77=yes
19853 export_dynamic_flag_spec_F77='${wl}-E'
19855 # hardcode_minus_L: Not really in the search PATH,
19856 # but as the default location of the library.
19857 hardcode_minus_L_F77=yes
19863 irix5* | irix6* | nonstopux*)
19864 if test "$GCC" = yes; then
19865 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'
19867 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'
19868 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19870 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19871 hardcode_libdir_separator_F77=:
19872 link_all_deplibs_F77=yes
19876 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19877 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19879 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19881 hardcode_libdir_flag_spec_F77='-R$libdir'
19882 hardcode_direct_F77=yes
19883 hardcode_shlibpath_var_F77=no
19887 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19888 hardcode_direct_F77=yes
19889 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19890 hardcode_libdir_separator_F77=:
19891 hardcode_shlibpath_var_F77=no
19895 hardcode_direct_F77=yes
19896 hardcode_shlibpath_var_F77=no
19897 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19898 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19899 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19900 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19901 export_dynamic_flag_spec_F77='${wl}-E'
19904 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19905 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19906 hardcode_libdir_flag_spec_F77='-R$libdir'
19909 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19910 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19917 hardcode_libdir_flag_spec_F77='-L$libdir'
19918 hardcode_minus_L_F77=yes
19919 allow_undefined_flag_F77=unsupported
19920 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'
19921 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19925 if test "$GCC" = yes; then
19926 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19927 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'
19929 allow_undefined_flag_F77=' -expect_unresolved \*'
19930 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'
19932 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19933 hardcode_libdir_separator_F77=:
19936 osf4* | osf5*) # as osf3* with the addition of -msym flag
19937 if test "$GCC" = yes; then
19938 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19939 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'
19940 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19942 allow_undefined_flag_F77=' -expect_unresolved \*'
19943 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'
19944 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~
19945 $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'
19947 # Both c and cxx compiler support -rpath directly
19948 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19950 hardcode_libdir_separator_F77=:
19954 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19955 hardcode_shlibpath_var_F77=no
19956 export_dynamic_flag_spec_F77='${wl}-Bexport'
19957 runpath_var=LD_RUN_PATH
19958 hardcode_runpath_var=yes
19962 no_undefined_flag_F77=' -z text'
19963 if test "$GCC" = yes; then
19964 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19965 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19966 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19968 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19969 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19970 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19972 hardcode_libdir_flag_spec_F77='-R$libdir'
19973 hardcode_shlibpath_var_F77=no
19975 solaris2.[0-5] | solaris2.[0-5].*) ;;
19976 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19977 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19979 link_all_deplibs_F77=yes
19983 if test "x$host_vendor" = xsequent; then
19984 # Use $CC to link under sequent, because it throws in some extra .o
19985 # files that make .init and .fini sections work.
19986 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19988 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19990 hardcode_libdir_flag_spec_F77='-L$libdir'
19991 hardcode_direct_F77=yes
19992 hardcode_minus_L_F77=yes
19993 hardcode_shlibpath_var_F77=no
19997 case $host_vendor in
19999 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20000 hardcode_direct_F77=yes # is this really true???
20003 ## LD is ld it makes a PLAMLIB
20004 ## CC just makes a GrossModule.
20005 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20006 reload_cmds_F77='$CC -r -o $output$reload_objs'
20007 hardcode_direct_F77=no
20010 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20011 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20014 runpath_var='LD_RUN_PATH'
20015 hardcode_shlibpath_var_F77=no
20019 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20020 hardcode_shlibpath_var_F77=no
20021 export_dynamic_flag_spec_F77='-Bexport'
20025 if test -d /usr/nec; then
20026 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20027 hardcode_shlibpath_var_F77=no
20028 runpath_var=LD_RUN_PATH
20029 hardcode_runpath_var=yes
20035 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20036 hardcode_direct_F77=yes
20037 hardcode_minus_L_F77=no
20038 hardcode_shlibpath_var_F77=no
20039 hardcode_runpath_var=yes
20040 runpath_var=LD_RUN_PATH
20043 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20044 no_undefined_flag_F77='${wl}-z ${wl}text'
20045 if test "$GCC" = yes; then
20046 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20048 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20050 runpath_var='LD_RUN_PATH'
20051 hardcode_shlibpath_var_F77=no
20055 no_undefined_flag_F77=' -z text'
20056 # $CC -shared without GNU ld will not create a library from C++
20057 # object files and a static libstdc++, better avoid it by now
20058 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20059 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20060 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20061 hardcode_libdir_flag_spec_F77=
20062 hardcode_shlibpath_var_F77=no
20063 runpath_var='LD_RUN_PATH'
20067 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20068 hardcode_libdir_flag_spec_F77='-L$libdir'
20069 hardcode_shlibpath_var_F77=no
20078 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20079 echo "${ECHO_T}$ld_shlibs_F77" >&6
20080 test "$ld_shlibs_F77" = no && can_build_shared=no
20082 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20083 if test "$GCC" = yes; then
20084 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20088 # Do we need to explicitly link libc?
20090 case "x$archive_cmds_need_lc_F77" in
20092 # Assume -lc should be added
20093 archive_cmds_need_lc_F77=yes
20095 if test "$enable_shared" = yes && test "$GCC" = yes; then
20096 case $archive_cmds_F77 in
20098 # FIXME: we may have to deal with multi-command sequences.
20101 # Test whether the compiler implicitly links with -lc since on some
20102 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20103 # to ld, don't add -lc before -lgcc.
20104 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20105 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20107 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20110 (eval $ac_compile) 2>&5
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); } 2>conftest.err; then
20116 libobjs=conftest.$ac_objext
20118 wl=$lt_prog_compiler_wl_F77
20124 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20125 allow_undefined_flag_F77=
20126 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20127 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); }
20132 archive_cmds_need_lc_F77=no
20134 archive_cmds_need_lc_F77=yes
20136 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20138 cat conftest.err 1>&5
20141 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20142 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20149 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20150 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20151 library_names_spec=
20152 libname_spec='lib$name'
20156 postuninstall_cmds=
20160 shlibpath_overrides_runpath=unknown
20162 dynamic_linker="$host_os ld.so"
20163 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20164 if test "$GCC" = yes; then
20165 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20166 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20167 # if the path contains ";" then we assume it to be the separator
20168 # otherwise default to the standard path separator (i.e. ":") - it is
20169 # assumed that no part of a normal pathname contains ";" but that should
20170 # okay in the real world where ";" in dirpaths is itself problematic.
20171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20173 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20176 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20178 need_lib_prefix=unknown
20179 hardcode_into_libs=no
20181 # when you set need_version to no, make sure it does not cause -set_version
20182 # flags to be left without arguments
20183 need_version=unknown
20188 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20189 shlibpath_var=LIBPATH
20191 # AIX 3 has no versioning support, so we append a major version to the name.
20192 soname_spec='${libname}${release}${shared_ext}$major'
20199 hardcode_into_libs=yes
20200 if test "$host_cpu" = ia64; then
20201 # AIX 5 supports IA64
20202 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20203 shlibpath_var=LD_LIBRARY_PATH
20205 # With GCC up to 2.95.x, collect2 would create an import file
20206 # for dependence libraries. The import file would start with
20207 # the line `#! .'. This would cause the generated library to
20208 # depend on `.', always an invalid library. This was fixed in
20209 # development snapshots of GCC prior to 3.0.
20211 aix4 | aix4.[01] | aix4.[01].*)
20212 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20214 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20217 can_build_shared=no
20221 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20222 # soname into executable. Probably we can add versioning support to
20223 # collect2, so additional links can be useful in future.
20224 if test "$aix_use_runtimelinking" = yes; then
20225 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20226 # instead of lib<name>.a to let people know that these are not
20227 # typical AIX shared libraries.
20228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20230 # We preserve .a as extension for shared libraries through AIX4.2
20231 # and later when we are not doing run time linking.
20232 library_names_spec='${libname}${release}.a $libname.a'
20233 soname_spec='${libname}${release}${shared_ext}$major'
20235 shlibpath_var=LIBPATH
20240 library_names_spec='$libname.ixlibrary $libname.a'
20241 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20242 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'
20246 library_names_spec='${libname}${shared_ext}'
20247 dynamic_linker="$host_os ld.so"
20248 shlibpath_var=LIBRARY_PATH
20254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20255 soname_spec='${libname}${release}${shared_ext}$major'
20256 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20257 shlibpath_var=LD_LIBRARY_PATH
20258 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20259 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20260 # the default ld.so.conf also contains /usr/contrib/lib and
20261 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20262 # libtool to hard-code these into programs
20265 cygwin* | mingw* | pw32*)
20266 version_type=windows
20271 case $GCC,$host_os in
20272 yes,cygwin* | yes,mingw* | yes,pw32*)
20273 library_names_spec='$libname.dll.a'
20274 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20275 postinstall_cmds='base_file=`basename \${file}`~
20276 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20277 dldir=$destdir/`dirname \$dlpath`~
20278 test -d \$dldir || mkdir -p \$dldir~
20279 $install_prog $dir/$dlname \$dldir/$dlname'
20280 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20281 dlpath=$dir/\$dldll~
20283 shlibpath_overrides_runpath=yes
20287 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20288 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20289 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20292 # MinGW DLLs use traditional 'lib' prefix
20293 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20294 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20295 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20296 # It is most probably a Windows format PATH printed by
20297 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20298 # path with ; separators, and with drive letters. We can handle the
20299 # drive letters (cygwin fileutils understands them), so leave them,
20300 # especially as we might pass files found there to a mingw objdump,
20301 # which wouldn't understand a cygwinified path. Ahh.
20302 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20304 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20308 # pw32 DLLs use 'pw' prefix rather than 'lib'
20309 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20315 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20318 dynamic_linker='Win32 ld.exe'
20319 # FIXME: first we should search . and the directory the executable is in
20323 darwin* | rhapsody*)
20324 dynamic_linker="$host_os dyld"
20325 version_type=darwin
20328 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20329 soname_spec='${libname}${release}${major}$shared_ext'
20330 shlibpath_overrides_runpath=yes
20331 shlibpath_var=DYLD_LIBRARY_PATH
20332 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20333 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20334 if test "$GCC" = yes; then
20335 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"`
20337 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20339 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20347 soname_spec='${libname}${release}${shared_ext}$major'
20348 shlibpath_var=LD_LIBRARY_PATH
20359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20360 soname_spec='${libname}${release}${shared_ext}$major'
20361 shlibpath_var=LD_LIBRARY_PATH
20362 shlibpath_overrides_runpath=no
20363 hardcode_into_libs=yes
20364 dynamic_linker='GNU ld.so'
20368 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20369 version_type=freebsd-$objformat
20370 case $version_type in
20372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20377 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20381 shlibpath_var=LD_LIBRARY_PATH
20384 shlibpath_overrides_runpath=yes
20386 freebsd3.01* | freebsdelf3.01*)
20387 shlibpath_overrides_runpath=yes
20388 hardcode_into_libs=yes
20391 shlibpath_overrides_runpath=no
20392 hardcode_into_libs=yes
20401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20402 soname_spec='${libname}${release}${shared_ext}$major'
20403 shlibpath_var=LD_LIBRARY_PATH
20404 hardcode_into_libs=yes
20407 hpux9* | hpux10* | hpux11*)
20408 # Give a soname corresponding to the major version so that dld.sl refuses to
20409 # link against other versions.
20413 case "$host_cpu" in
20416 hardcode_into_libs=yes
20417 dynamic_linker="$host_os dld.so"
20418 shlibpath_var=LD_LIBRARY_PATH
20419 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20421 soname_spec='${libname}${release}${shared_ext}$major'
20422 if test "X$HPUX_IA64_MODE" = X32; then
20423 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20425 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20427 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20431 hardcode_into_libs=yes
20432 dynamic_linker="$host_os dld.sl"
20433 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20434 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20436 soname_spec='${libname}${release}${shared_ext}$major'
20437 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20438 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20442 dynamic_linker="$host_os dld.sl"
20443 shlibpath_var=SHLIB_PATH
20444 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20446 soname_spec='${libname}${release}${shared_ext}$major'
20449 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20450 postinstall_cmds='chmod 555 $lib'
20453 irix5* | irix6* | nonstopux*)
20455 nonstopux*) version_type=nonstopux ;;
20457 if test "$lt_cv_prog_gnu_ld" = yes; then
20465 soname_spec='${libname}${release}${shared_ext}$major'
20466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20468 irix5* | nonstopux*)
20469 libsuff= shlibsuff=
20472 case $LD in # libtool.m4 will add one of these switches to LD
20473 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20474 libsuff= shlibsuff= libmagic=32-bit;;
20475 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20476 libsuff=32 shlibsuff=N32 libmagic=N32;;
20477 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20478 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20479 *) libsuff= shlibsuff= libmagic=never-match;;
20483 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20484 shlibpath_overrides_runpath=no
20485 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20486 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20487 hardcode_into_libs=yes
20490 # No shared lib support for Linux oldld, aout, or coff.
20491 linux*oldld* | linux*aout* | linux*coff*)
20495 # This must be Linux ELF.
20500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20501 soname_spec='${libname}${release}${shared_ext}$major'
20502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20503 shlibpath_var=LD_LIBRARY_PATH
20504 shlibpath_overrides_runpath=no
20505 # This implies no fast_install, which is unacceptable.
20506 # Some rework will be needed to allow for fast_install
20507 # before this can be enabled.
20508 hardcode_into_libs=yes
20510 # Append ld.so.conf contents to the search path
20511 if test -f /etc/ld.so.conf; then
20512 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20513 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20516 # We used to test for /lib/ld.so.1 and disable shared libraries on
20517 # powerpc, because MkLinux only supported shared libraries with the
20518 # GNU dynamic linker. Since this was broken with cross compilers,
20519 # most powerpc-linux boxes support dynamic linking these days and
20520 # people can always --disable-shared, the test was removed, and we
20521 # assume the GNU/Linux dynamic linker is in use.
20522 dynamic_linker='GNU/Linux ld.so'
20529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20530 soname_spec='${libname}${release}${shared_ext}$major'
20531 shlibpath_var=LD_LIBRARY_PATH
20532 shlibpath_overrides_runpath=no
20533 hardcode_into_libs=yes
20534 dynamic_linker='GNU ld.so'
20541 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20544 dynamic_linker='NetBSD (a.out) ld.so'
20546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20547 soname_spec='${libname}${release}${shared_ext}$major'
20548 dynamic_linker='NetBSD ld.elf_so'
20550 shlibpath_var=LD_LIBRARY_PATH
20551 shlibpath_overrides_runpath=yes
20552 hardcode_into_libs=yes
20557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20558 shlibpath_var=LD_LIBRARY_PATH
20559 shlibpath_overrides_runpath=yes
20566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20567 soname_spec='${libname}${release}${shared_ext}$major'
20568 shlibpath_var=LD_LIBRARY_PATH
20569 shlibpath_overrides_runpath=yes
20576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20578 shlibpath_var=LD_LIBRARY_PATH
20579 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20581 openbsd2.[89] | openbsd2.[89].*)
20582 shlibpath_overrides_runpath=no
20585 shlibpath_overrides_runpath=yes
20589 shlibpath_overrides_runpath=yes
20594 libname_spec='$name'
20597 library_names_spec='$libname${shared_ext} $libname.a'
20598 dynamic_linker='OS/2 ld.exe'
20599 shlibpath_var=LIBPATH
20602 osf3* | osf4* | osf5*)
20606 soname_spec='${libname}${release}${shared_ext}$major'
20607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20608 shlibpath_var=LD_LIBRARY_PATH
20609 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20610 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20615 soname_spec='${libname}${release}${shared_ext}$major'
20616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20617 shlibpath_var=LD_LIBRARY_PATH
20624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20625 soname_spec='${libname}${release}${shared_ext}$major'
20626 shlibpath_var=LD_LIBRARY_PATH
20627 shlibpath_overrides_runpath=yes
20628 hardcode_into_libs=yes
20629 # ldd complains unless libraries are executable
20630 postinstall_cmds='chmod +x $lib'
20635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20636 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20637 shlibpath_var=LD_LIBRARY_PATH
20638 shlibpath_overrides_runpath=yes
20639 if test "$with_gnu_ld" = yes; then
20645 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20648 soname_spec='${libname}${release}${shared_ext}$major'
20649 shlibpath_var=LD_LIBRARY_PATH
20650 case $host_vendor in
20652 shlibpath_overrides_runpath=no
20654 export_dynamic_flag_spec='${wl}-Blargedynsym'
20655 runpath_var=LD_RUN_PATH
20663 shlibpath_overrides_runpath=no
20664 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20670 if test -d /usr/nec ;then
20672 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20673 soname_spec='$libname${shared_ext}.$major'
20674 shlibpath_var=LD_LIBRARY_PATH
20680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20681 soname_spec='${libname}${release}${shared_ext}$major'
20682 shlibpath_var=LD_LIBRARY_PATH
20689 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20690 echo "${ECHO_T}$dynamic_linker" >&6
20691 test "$dynamic_linker" = no && can_build_shared=no
20693 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20694 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20695 hardcode_action_F77=
20696 if test -n "$hardcode_libdir_flag_spec_F77" || \
20697 test -n "$runpath_var_F77" || \
20698 test "X$hardcode_automatic_F77" = "Xyes" ; then
20700 # We can hardcode non-existant directories.
20701 if test "$hardcode_direct_F77" != no &&
20702 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20703 # have to relink, otherwise we might link with an installed library
20704 # when we should be linking with a yet-to-be-installed one
20705 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20706 test "$hardcode_minus_L_F77" != no; then
20707 # Linking always hardcodes the temporary library directory.
20708 hardcode_action_F77=relink
20710 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20711 hardcode_action_F77=immediate
20714 # We cannot hardcode anything, or else we can only hardcode existing
20716 hardcode_action_F77=unsupported
20718 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20719 echo "${ECHO_T}$hardcode_action_F77" >&6
20721 if test "$hardcode_action_F77" = relink; then
20722 # Fast installation is not supported
20723 enable_fast_install=no
20724 elif test "$shlibpath_overrides_runpath" = yes ||
20725 test "$enable_shared" = no; then
20726 # Fast installation is not necessary
20727 enable_fast_install=needless
20732 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20733 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20734 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20735 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20736 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20737 echo "$as_me:$LINENO: result: yes" >&5
20738 echo "${ECHO_T}yes" >&6
20740 # FIXME - insert some real tests, host_os isn't really good enough
20743 if test -n "$STRIP" ; then
20744 striplib="$STRIP -x"
20745 echo "$as_me:$LINENO: result: yes" >&5
20746 echo "${ECHO_T}yes" >&6
20748 echo "$as_me:$LINENO: result: no" >&5
20749 echo "${ECHO_T}no" >&6
20753 echo "$as_me:$LINENO: result: no" >&5
20754 echo "${ECHO_T}no" >&6
20761 # The else clause should only fire when bootstrapping the
20762 # libtool distribution, otherwise you forgot to ship ltmain.sh
20763 # with your package, and you will get complaints that there are
20764 # no rules to generate ltmain.sh.
20765 if test -f "$ltmain"; then
20766 # See if we are running on zsh, and set the options which allow our commands through
20767 # without removal of \ escapes.
20768 if test -n "${ZSH_VERSION+set}" ; then
20769 setopt NO_GLOB_SUBST
20771 # Now quote all the things that may contain metacharacters while being
20772 # careful not to overquote the AC_SUBSTed values. We take copies of the
20773 # variables and quote the copies for generation of the libtool script.
20774 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20776 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20777 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20778 deplibs_check_method reload_flag reload_cmds need_locks \
20779 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20780 lt_cv_sys_global_symbol_to_c_name_address \
20781 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20782 old_postinstall_cmds old_postuninstall_cmds \
20786 lt_prog_compiler_wl_F77 \
20787 lt_prog_compiler_pic_F77 \
20788 lt_prog_compiler_static_F77 \
20789 lt_prog_compiler_no_builtin_flag_F77 \
20790 export_dynamic_flag_spec_F77 \
20791 thread_safe_flag_spec_F77 \
20792 whole_archive_flag_spec_F77 \
20793 enable_shared_with_static_runtimes_F77 \
20794 old_archive_cmds_F77 \
20795 old_archive_from_new_cmds_F77 \
20796 predep_objects_F77 \
20797 postdep_objects_F77 \
20800 compiler_lib_search_path_F77 \
20802 archive_expsym_cmds_F77 \
20803 postinstall_cmds_F77 \
20804 postuninstall_cmds_F77 \
20805 old_archive_from_expsyms_cmds_F77 \
20806 allow_undefined_flag_F77 \
20807 no_undefined_flag_F77 \
20808 export_symbols_cmds_F77 \
20809 hardcode_libdir_flag_spec_F77 \
20810 hardcode_libdir_flag_spec_ld_F77 \
20811 hardcode_libdir_separator_F77 \
20812 hardcode_automatic_F77 \
20814 module_expsym_cmds_F77 \
20815 lt_cv_prog_compiler_c_o_F77 \
20816 exclude_expsyms_F77 \
20817 include_expsyms_F77; do
20820 old_archive_cmds_F77 | \
20821 old_archive_from_new_cmds_F77 | \
20822 archive_cmds_F77 | \
20823 archive_expsym_cmds_F77 | \
20824 module_cmds_F77 | \
20825 module_expsym_cmds_F77 | \
20826 old_archive_from_expsyms_cmds_F77 | \
20827 export_symbols_cmds_F77 | \
20828 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20829 postinstall_cmds | postuninstall_cmds | \
20830 old_postinstall_cmds | old_postuninstall_cmds | \
20831 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20832 # Double-quote double-evaled strings.
20833 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20836 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20842 *'\$0 --fallback-echo"')
20843 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20849 cat <<__EOF__ >> "$cfgfile"
20850 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20852 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20854 # Shell to use when invoking shell scripts.
20857 # Whether or not to build shared libraries.
20858 build_libtool_libs=$enable_shared
20860 # Whether or not to build static libraries.
20861 build_old_libs=$enable_static
20863 # Whether or not to add -lc for building shared libraries.
20864 build_libtool_need_lc=$archive_cmds_need_lc_F77
20866 # Whether or not to disallow shared libs when runtime libs are static
20867 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20869 # Whether or not to optimize for fast installation.
20870 fast_install=$enable_fast_install
20873 host_alias=$host_alias
20876 # An echo program that does not interpret backslashes.
20881 AR_FLAGS=$lt_AR_FLAGS
20886 # A language-specific compiler.
20887 CC=$lt_compiler_F77
20889 # Is the compiler the GNU C compiler?
20895 # The linker used to build libraries.
20898 # Whether we need hard or soft links.
20901 # A BSD-compatible nm program.
20904 # A symbol stripping program
20907 # Used to examine libraries when file_magic_cmd begins "file"
20908 MAGIC_CMD=$MAGIC_CMD
20910 # Used on cygwin: DLL creation program.
20913 # Used on cygwin: object dumper.
20916 # Used on cygwin: assembler.
20919 # The name of the directory that contains temporary libtool files.
20922 # How to create reloadable object files.
20923 reload_flag=$lt_reload_flag
20924 reload_cmds=$lt_reload_cmds
20926 # How to pass a linker flag through the compiler.
20927 wl=$lt_lt_prog_compiler_wl_F77
20929 # Object file suffix (normally "o").
20930 objext="$ac_objext"
20932 # Old archive suffix (normally "a").
20935 # Shared library suffix (normally ".so").
20936 shrext_cmds='$shrext_cmds'
20938 # Executable file suffix (normally "").
20941 # Additional compiler flags for building library objects.
20942 pic_flag=$lt_lt_prog_compiler_pic_F77
20945 # What is the maximum length of a command?
20946 max_cmd_len=$lt_cv_sys_max_cmd_len
20948 # Does compiler simultaneously support -c and -o options?
20949 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20951 # Must we lock files when doing compilation ?
20952 need_locks=$lt_need_locks
20954 # Do we need the lib prefix for modules?
20955 need_lib_prefix=$need_lib_prefix
20957 # Do we need a version for libraries?
20958 need_version=$need_version
20960 # Whether dlopen is supported.
20961 dlopen_support=$enable_dlopen
20963 # Whether dlopen of programs is supported.
20964 dlopen_self=$enable_dlopen_self
20966 # Whether dlopen of statically linked programs is supported.
20967 dlopen_self_static=$enable_dlopen_self_static
20969 # Compiler flag to prevent dynamic linking.
20970 link_static_flag=$lt_lt_prog_compiler_static_F77
20972 # Compiler flag to turn off builtin functions.
20973 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20975 # Compiler flag to allow reflexive dlopens.
20976 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20978 # Compiler flag to generate shared objects directly from archives.
20979 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20981 # Compiler flag to generate thread-safe objects.
20982 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20984 # Library versioning type.
20985 version_type=$version_type
20987 # Format of library name prefix.
20988 libname_spec=$lt_libname_spec
20990 # List of archive names. First name is the real one, the rest are links.
20991 # The last name is the one that the linker finds with -lNAME.
20992 library_names_spec=$lt_library_names_spec
20994 # The coded name of the library, if different from the real name.
20995 soname_spec=$lt_soname_spec
20997 # Commands used to build and install an old-style archive.
20999 old_archive_cmds=$lt_old_archive_cmds_F77
21000 old_postinstall_cmds=$lt_old_postinstall_cmds
21001 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21003 # Create an old-style archive from a shared archive.
21004 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21006 # Create a temporary old-style archive to link instead of a shared archive.
21007 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21009 # Commands used to build and install a shared archive.
21010 archive_cmds=$lt_archive_cmds_F77
21011 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21012 postinstall_cmds=$lt_postinstall_cmds
21013 postuninstall_cmds=$lt_postuninstall_cmds
21015 # Commands used to build a loadable module (assumed same as above if empty)
21016 module_cmds=$lt_module_cmds_F77
21017 module_expsym_cmds=$lt_module_expsym_cmds_F77
21019 # Commands to strip libraries.
21020 old_striplib=$lt_old_striplib
21021 striplib=$lt_striplib
21023 # Dependencies to place before the objects being linked to create a
21025 predep_objects=$lt_predep_objects_F77
21027 # Dependencies to place after the objects being linked to create a
21029 postdep_objects=$lt_postdep_objects_F77
21031 # Dependencies to place before the objects being linked to create a
21033 predeps=$lt_predeps_F77
21035 # Dependencies to place after the objects being linked to create a
21037 postdeps=$lt_postdeps_F77
21039 # The library search path used internally by the compiler when linking
21040 # a shared library.
21041 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21043 # Method to check whether dependent libraries are shared objects.
21044 deplibs_check_method=$lt_deplibs_check_method
21046 # Command to use when deplibs_check_method == file_magic.
21047 file_magic_cmd=$lt_file_magic_cmd
21049 # Flag that allows shared libraries with undefined symbols to be built.
21050 allow_undefined_flag=$lt_allow_undefined_flag_F77
21052 # Flag that forces no undefined symbols.
21053 no_undefined_flag=$lt_no_undefined_flag_F77
21055 # Commands used to finish a libtool library installation in a directory.
21056 finish_cmds=$lt_finish_cmds
21058 # Same as above, but a single script fragment to be evaled but not shown.
21059 finish_eval=$lt_finish_eval
21061 # Take the output of nm and produce a listing of raw symbols and C names.
21062 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21064 # Transform the output of nm in a proper C declaration
21065 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21067 # Transform the output of nm in a C name address pair
21068 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21070 # This is the shared library runtime path variable.
21071 runpath_var=$runpath_var
21073 # This is the shared library path variable.
21074 shlibpath_var=$shlibpath_var
21076 # Is shlibpath searched before the hard-coded library search path?
21077 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21079 # How to hardcode a shared library path into an executable.
21080 hardcode_action=$hardcode_action_F77
21082 # Whether we should hardcode library paths into libraries.
21083 hardcode_into_libs=$hardcode_into_libs
21085 # Flag to hardcode \$libdir into a binary during linking.
21086 # This must work even if \$libdir does not exist.
21087 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21089 # If ld is used when linking, flag to hardcode \$libdir into
21090 # a binary during linking. This must work even if \$libdir does
21092 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21094 # Whether we need a single -rpath flag with a separated argument.
21095 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21097 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21098 # resulting binary.
21099 hardcode_direct=$hardcode_direct_F77
21101 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21102 # resulting binary.
21103 hardcode_minus_L=$hardcode_minus_L_F77
21105 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21106 # the resulting binary.
21107 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21109 # Set to yes if building a shared library automatically hardcodes DIR into the library
21110 # and all subsequent libraries and executables linked against it.
21111 hardcode_automatic=$hardcode_automatic_F77
21113 # Variables whose values should be saved in libtool wrapper scripts and
21114 # restored at relink time.
21115 variables_saved_for_relink="$variables_saved_for_relink"
21117 # Whether libtool must link a program against all its dependency libraries.
21118 link_all_deplibs=$link_all_deplibs_F77
21120 # Compile-time system search path for libraries
21121 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21123 # Run-time system search path for libraries
21124 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21126 # Fix the shell variable \$srcfile for the compiler.
21127 fix_srcfile_path="$fix_srcfile_path_F77"
21129 # Set to yes if exported symbols are required.
21130 always_export_symbols=$always_export_symbols_F77
21132 # The commands to list exported symbols.
21133 export_symbols_cmds=$lt_export_symbols_cmds_F77
21135 # The commands to extract the exported symbol list from a shared archive.
21136 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21138 # Symbols that should not be listed in the preloaded symbols.
21139 exclude_expsyms=$lt_exclude_expsyms_F77
21141 # Symbols that must always be exported.
21142 include_expsyms=$lt_include_expsyms_F77
21144 # ### END LIBTOOL TAG CONFIG: $tagname
21150 # If there is no Makefile yet, we rely on a make rule to execute
21151 # `config.status --recheck' to rerun these tests and create the
21152 # libtool script then.
21153 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21154 if test -f "$ltmain_in"; then
21155 test -f Makefile && make "$ltmain"
21161 ac_cpp='$CPP $CPPFLAGS'
21162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21174 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21176 ac_cpp='$CPP $CPPFLAGS'
21177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21182 # Source file extension for Java test sources.
21185 # Object file extension for compiled Java test sources.
21189 # Code to be used in simple compile tests
21190 lt_simple_compile_test_code="class foo {}\n"
21192 # Code to be used in simple link tests
21193 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21195 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21197 # If no C compiler was specified, use CC.
21200 # Allow CC to be a program name with arguments.
21204 # Allow CC to be a program name with arguments.
21210 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21211 archive_cmds_need_lc_GCJ=no
21214 lt_prog_compiler_no_builtin_flag_GCJ=
21216 if test "$GCC" = yes; then
21217 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21220 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21221 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21222 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21223 echo $ECHO_N "(cached) $ECHO_C" >&6
21225 lt_cv_prog_compiler_rtti_exceptions=no
21226 ac_outfile=conftest.$ac_objext
21227 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21228 lt_compiler_flag="-fno-rtti -fno-exceptions"
21229 # Insert the option either (1) after the last *FLAGS variable, or
21230 # (2) before a word containing "conftest.", or (3) at the end.
21231 # Note that $ac_compile itself does not contain backslashes and begins
21232 # with a dollar sign (not a hyphen), so the echo should work correctly.
21233 # The option is referenced via a variable to avoid confusing sed.
21234 lt_compile=`echo "$ac_compile" | $SED \
21235 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21237 -e 's:$: $lt_compiler_flag:'`
21238 (eval echo "\"\$as_me:21238: $lt_compile\"" >&5)
21239 (eval "$lt_compile" 2>conftest.err)
21241 cat conftest.err >&5
21242 echo "$as_me:21242: \$? = $ac_status" >&5
21243 if (exit $ac_status) && test -s "$ac_outfile"; then
21244 # The compiler can only warn and ignore the option if not recognized
21245 # So say no if there are warnings
21246 if test ! -s conftest.err; then
21247 lt_cv_prog_compiler_rtti_exceptions=yes
21253 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21254 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21256 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21257 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21264 lt_prog_compiler_wl_GCJ=
21265 lt_prog_compiler_pic_GCJ=
21266 lt_prog_compiler_static_GCJ=
21268 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21269 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21271 if test "$GCC" = yes; then
21272 lt_prog_compiler_wl_GCJ='-Wl,'
21273 lt_prog_compiler_static_GCJ='-static'
21277 # All AIX code is PIC.
21278 if test "$host_cpu" = ia64; then
21279 # AIX 5 now supports IA64 processor
21280 lt_prog_compiler_static_GCJ='-Bstatic'
21285 # FIXME: we need at least 68020 code to build shared libraries, but
21286 # adding the `-m68020' flag to GCC prevents building anything better,
21288 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21291 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21292 # PIC is the default for these OSes.
21295 mingw* | pw32* | os2*)
21296 # This hack is so that the source file can tell whether it is being
21297 # built for inclusion in a dll (and should export symbols for example).
21298 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21301 darwin* | rhapsody*)
21302 # PIC is the default on this platform
21303 # Common symbols not allowed in MH_DYLIB files
21304 lt_prog_compiler_pic_GCJ='-fno-common'
21308 # Just because we use GCC doesn't mean we suddenly get shared libraries
21309 # on systems that don't support them.
21310 lt_prog_compiler_can_build_shared_GCJ=no
21315 if test -d /usr/nec; then
21316 lt_prog_compiler_pic_GCJ=-Kconform_pic
21321 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21322 # not for PA HP-UX.
21323 case "$host_cpu" in
21328 lt_prog_compiler_pic_GCJ='-fPIC'
21334 lt_prog_compiler_pic_GCJ='-fPIC'
21338 # PORTME Check for flag to pass linker flags through the system compiler.
21341 lt_prog_compiler_wl_GCJ='-Wl,'
21342 if test "$host_cpu" = ia64; then
21343 # AIX 5 now supports IA64 processor
21344 lt_prog_compiler_static_GCJ='-Bstatic'
21346 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21350 # PIC is the default on this platform
21351 # Common symbols not allowed in MH_DYLIB files
21352 case "$cc_basename" in
21354 lt_prog_compiler_pic_GCJ='-qnocommon'
21355 lt_prog_compiler_wl_GCJ='-Wl,'
21360 mingw* | pw32* | os2*)
21361 # This hack is so that the source file can tell whether it is being
21362 # built for inclusion in a dll (and should export symbols for example).
21363 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21366 hpux9* | hpux10* | hpux11*)
21367 lt_prog_compiler_wl_GCJ='-Wl,'
21368 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21369 # not for PA HP-UX.
21370 case "$host_cpu" in
21375 lt_prog_compiler_pic_GCJ='+Z'
21378 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21379 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21382 irix5* | irix6* | nonstopux*)
21383 lt_prog_compiler_wl_GCJ='-Wl,'
21384 # PIC (with -KPIC) is the default.
21385 lt_prog_compiler_static_GCJ='-non_shared'
21389 lt_prog_compiler_pic_GCJ='-KPIC'
21390 lt_prog_compiler_static_GCJ='-Bstatic'
21396 lt_prog_compiler_wl_GCJ='-Wl,'
21397 lt_prog_compiler_pic_GCJ='-KPIC'
21398 lt_prog_compiler_static_GCJ='-static'
21401 lt_prog_compiler_wl_GCJ='-Wl,'
21402 # All Alpha code is PIC.
21403 lt_prog_compiler_static_GCJ='-non_shared'
21408 osf3* | osf4* | osf5*)
21409 lt_prog_compiler_wl_GCJ='-Wl,'
21410 # All OSF/1 code is PIC.
21411 lt_prog_compiler_static_GCJ='-non_shared'
21415 lt_prog_compiler_pic_GCJ='-Kpic'
21416 lt_prog_compiler_static_GCJ='-dn'
21420 lt_prog_compiler_wl_GCJ='-Wl,'
21421 lt_prog_compiler_pic_GCJ='-KPIC'
21422 lt_prog_compiler_static_GCJ='-Bstatic'
21426 lt_prog_compiler_wl_GCJ='-Qoption ld '
21427 lt_prog_compiler_pic_GCJ='-PIC'
21428 lt_prog_compiler_static_GCJ='-Bstatic'
21431 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21432 lt_prog_compiler_wl_GCJ='-Wl,'
21433 lt_prog_compiler_pic_GCJ='-KPIC'
21434 lt_prog_compiler_static_GCJ='-Bstatic'
21438 if test -d /usr/nec ;then
21439 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21440 lt_prog_compiler_static_GCJ='-Bstatic'
21445 lt_prog_compiler_pic_GCJ='-pic'
21446 lt_prog_compiler_static_GCJ='-Bstatic'
21450 lt_prog_compiler_can_build_shared_GCJ=no
21455 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21456 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21459 # Check to make sure the PIC flag actually works.
21461 if test -n "$lt_prog_compiler_pic_GCJ"; then
21463 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21464 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21465 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21466 echo $ECHO_N "(cached) $ECHO_C" >&6
21468 lt_prog_compiler_pic_works_GCJ=no
21469 ac_outfile=conftest.$ac_objext
21470 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21471 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21472 # Insert the option either (1) after the last *FLAGS variable, or
21473 # (2) before a word containing "conftest.", or (3) at the end.
21474 # Note that $ac_compile itself does not contain backslashes and begins
21475 # with a dollar sign (not a hyphen), so the echo should work correctly.
21476 # The option is referenced via a variable to avoid confusing sed.
21477 lt_compile=`echo "$ac_compile" | $SED \
21478 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21480 -e 's:$: $lt_compiler_flag:'`
21481 (eval echo "\"\$as_me:21481: $lt_compile\"" >&5)
21482 (eval "$lt_compile" 2>conftest.err)
21484 cat conftest.err >&5
21485 echo "$as_me:21485: \$? = $ac_status" >&5
21486 if (exit $ac_status) && test -s "$ac_outfile"; then
21487 # The compiler can only warn and ignore the option if not recognized
21488 # So say no if there are warnings
21489 if test ! -s conftest.err; then
21490 lt_prog_compiler_pic_works_GCJ=yes
21496 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21497 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21499 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21500 case $lt_prog_compiler_pic_GCJ in
21502 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21505 lt_prog_compiler_pic_GCJ=
21506 lt_prog_compiler_can_build_shared_GCJ=no
21511 # For platforms which do not support PIC, -DPIC is meaningless:
21513 lt_prog_compiler_pic_GCJ=
21516 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21520 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21521 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21522 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21523 echo $ECHO_N "(cached) $ECHO_C" >&6
21525 lt_cv_prog_compiler_c_o_GCJ=no
21526 $rm -r conftest 2>/dev/null
21530 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21532 lt_compiler_flag="-o out/conftest2.$ac_objext"
21533 # Insert the option either (1) after the last *FLAGS variable, or
21534 # (2) before a word containing "conftest.", or (3) at the end.
21535 # Note that $ac_compile itself does not contain backslashes and begins
21536 # with a dollar sign (not a hyphen), so the echo should work correctly.
21537 lt_compile=`echo "$ac_compile" | $SED \
21538 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21540 -e 's:$: $lt_compiler_flag:'`
21541 (eval echo "\"\$as_me:21541: $lt_compile\"" >&5)
21542 (eval "$lt_compile" 2>out/conftest.err)
21544 cat out/conftest.err >&5
21545 echo "$as_me:21545: \$? = $ac_status" >&5
21546 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21548 # The compiler can only warn and ignore the option if not recognized
21549 # So say no if there are warnings
21550 if test ! -s out/conftest.err; then
21551 lt_cv_prog_compiler_c_o_GCJ=yes
21556 # SGI C++ compiler will create directory out/ii_files/ for
21557 # template instantiation
21558 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21559 $rm out/* && rmdir out
21565 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21566 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21569 hard_links="nottested"
21570 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21571 # do not overwrite the value of need_locks provided by the user
21572 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21573 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21578 ln conftest.a conftest.b 2>&5 || hard_links=no
21579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21580 echo "$as_me:$LINENO: result: $hard_links" >&5
21581 echo "${ECHO_T}$hard_links" >&6
21582 if test "$hard_links" = no; then
21583 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21584 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21591 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21592 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21595 allow_undefined_flag_GCJ=
21596 enable_shared_with_static_runtimes_GCJ=no
21598 archive_expsym_cmds_GCJ=
21599 old_archive_From_new_cmds_GCJ=
21600 old_archive_from_expsyms_cmds_GCJ=
21601 export_dynamic_flag_spec_GCJ=
21602 whole_archive_flag_spec_GCJ=
21603 thread_safe_flag_spec_GCJ=
21604 hardcode_libdir_flag_spec_GCJ=
21605 hardcode_libdir_flag_spec_ld_GCJ=
21606 hardcode_libdir_separator_GCJ=
21607 hardcode_direct_GCJ=no
21608 hardcode_minus_L_GCJ=no
21609 hardcode_shlibpath_var_GCJ=unsupported
21610 link_all_deplibs_GCJ=unknown
21611 hardcode_automatic_GCJ=no
21613 module_expsym_cmds_GCJ=
21614 always_export_symbols_GCJ=no
21615 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21616 # include_expsyms should be a list of space-separated symbols to be *always*
21617 # included in the symbol list
21618 include_expsyms_GCJ=
21619 # exclude_expsyms can be an extended regexp of symbols to exclude
21620 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21621 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21622 # as well as any symbol that contains `d'.
21623 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21624 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21625 # platforms (ab)use it in PIC code, but their linkers get confused if
21626 # the symbol is explicitly referenced. Since portable code cannot
21627 # rely on this symbol name, it's probably fine to never include it in
21628 # preloaded symbol tables.
21629 extract_expsyms_cmds=
21632 cygwin* | mingw* | pw32*)
21633 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21634 # When not using gcc, we currently assume that we are using
21635 # Microsoft Visual C++.
21636 if test "$GCC" != yes; then
21646 if test "$with_gnu_ld" = yes; then
21647 # If archive_cmds runs LD, not CC, wlarc should be empty
21650 # See if GNU ld supports shared libraries.
21652 aix3* | aix4* | aix5*)
21653 # On AIX/PPC, the GNU linker is very broken
21654 if test "$host_cpu" != ia64; then
21658 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21659 *** to be unable to reliably create shared libraries on AIX.
21660 *** Therefore, libtool is disabling shared libraries support. If you
21661 *** really care for shared libraries, you may want to modify your PATH
21662 *** so that a non-GNU linker is found, and then restart.
21669 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)'
21670 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21671 hardcode_minus_L_GCJ=yes
21673 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21674 # that the semantics of dynamic libraries on AmigaOS, at least up
21675 # to version 4, is to share data among multiple programs linked
21676 # with the same dynamic library. Since this doesn't match the
21677 # behavior of shared libraries on other platforms, we can't use
21683 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21684 allow_undefined_flag_GCJ=unsupported
21685 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21686 # support --undefined. This deserves some investigation. FIXME
21687 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21693 cygwin* | mingw* | pw32*)
21694 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21695 # as there is no search path for DLLs.
21696 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21697 allow_undefined_flag_GCJ=unsupported
21698 always_export_symbols_GCJ=no
21699 enable_shared_with_static_runtimes_GCJ=yes
21700 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21702 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21703 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21704 # If the export-symbols file already is a .def file (1st line
21705 # is EXPORTS), use it as is; otherwise, prepend...
21706 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21707 cp $export_symbols $output_objdir/$soname.def;
21709 echo EXPORTS > $output_objdir/$soname.def;
21710 cat $export_symbols >> $output_objdir/$soname.def;
21712 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21719 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21720 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21723 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21724 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21729 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21733 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21734 *** create shared libraries on Solaris systems. Therefore, libtool
21735 *** is disabling shared libraries support. We urge you to upgrade GNU
21736 *** binutils to release 2.9.1 or newer. Another option is to modify
21737 *** your PATH or compiler configuration so that the native linker is
21738 *** used, and then restart.
21741 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21742 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21743 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21750 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21752 hardcode_direct_GCJ=yes
21753 hardcode_shlibpath_var_GCJ=no
21757 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21758 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21759 archive_cmds_GCJ="$tmp_archive_cmds"
21760 supports_anon_versioning=no
21761 case `$LD -v 2>/dev/null` in
21762 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21763 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21764 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21765 *\ 2.11.*) ;; # other 2.11 versions
21766 *) supports_anon_versioning=yes ;;
21768 if test $supports_anon_versioning = yes; then
21769 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21770 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21771 $echo "local: *; };" >> $output_objdir/$libname.ver~
21772 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21774 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21782 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21783 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21784 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21791 if test "$ld_shlibs_GCJ" = yes; then
21792 runpath_var=LD_RUN_PATH
21793 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21794 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21795 # ancient GNU ld didn't support --whole-archive et. al.
21796 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21797 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21799 whole_archive_flag_spec_GCJ=
21803 # PORTME fill in a description of your system's linker (not GNU ld)
21806 allow_undefined_flag_GCJ=unsupported
21807 always_export_symbols_GCJ=yes
21808 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'
21809 # Note: this linker hardcodes the directories in LIBPATH if there
21810 # are no directories specified by -L.
21811 hardcode_minus_L_GCJ=yes
21812 if test "$GCC" = yes && test -z "$link_static_flag"; then
21813 # Neither direct hardcoding nor static linking is supported with a
21815 hardcode_direct_GCJ=unsupported
21820 if test "$host_cpu" = ia64; then
21821 # On IA64, the linker does run time linking by default, so we don't
21822 # have to do anything special.
21823 aix_use_runtimelinking=no
21824 exp_sym_flag='-Bexport'
21827 # If we're using GNU nm, then we don't want the "-C" option.
21828 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21829 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21830 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'
21832 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'
21834 aix_use_runtimelinking=no
21836 # Test if we are trying to use run time linking or normal
21837 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21838 # need to do runtime linking.
21839 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21840 for ld_flag in $LDFLAGS; do
21841 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21842 aix_use_runtimelinking=yes
21848 exp_sym_flag='-bexport'
21849 no_entry_flag='-bnoentry'
21852 # When large executables or shared objects are built, AIX ld can
21853 # have problems creating the table of contents. If linking a library
21854 # or program results in "error TOC overflow" add -mminimal-toc to
21855 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21856 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21858 archive_cmds_GCJ=''
21859 hardcode_direct_GCJ=yes
21860 hardcode_libdir_separator_GCJ=':'
21861 link_all_deplibs_GCJ=yes
21863 if test "$GCC" = yes; then
21864 case $host_os in aix4.012|aix4.012.*)
21865 # We only want to do this on AIX 4.2 and lower, the check
21866 # below for broken collect2 doesn't work under 4.3+
21867 collect2name=`${CC} -print-prog-name=collect2`
21868 if test -f "$collect2name" && \
21869 strings "$collect2name" | grep resolve_lib_name >/dev/null
21871 # We have reworked collect2
21872 hardcode_direct_GCJ=yes
21874 # We have old collect2
21875 hardcode_direct_GCJ=unsupported
21876 # It fails to find uninstalled libraries when the uninstalled
21877 # path is not listed in the libpath. Setting hardcode_minus_L
21878 # to unsupported forces relinking
21879 hardcode_minus_L_GCJ=yes
21880 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21881 hardcode_libdir_separator_GCJ=
21884 shared_flag='-shared'
21887 if test "$host_cpu" = ia64; then
21888 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21889 # chokes on -Wl,-G. The following line is correct:
21892 if test "$aix_use_runtimelinking" = yes; then
21893 shared_flag='${wl}-G'
21895 shared_flag='${wl}-bM:SRE'
21900 # It seems that -bexpall does not export symbols beginning with
21901 # underscore (_), so it is better to generate a list of symbols to export.
21902 always_export_symbols_GCJ=yes
21903 if test "$aix_use_runtimelinking" = yes; then
21904 # Warning - without using the other runtime loading flags (-brtl),
21905 # -berok will link without error, but may produce a broken library.
21906 allow_undefined_flag_GCJ='-berok'
21907 # Determine the default libpath from the value encoded in an empty executable.
21908 cat >conftest.$ac_ext <<_ACEOF
21911 cat confdefs.h >>conftest.$ac_ext
21912 cat >>conftest.$ac_ext <<_ACEOF
21913 /* end confdefs.h. */
21923 rm -f conftest.$ac_objext conftest$ac_exeext
21924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21925 (eval $ac_link) 2>conftest.er1
21927 grep -v '^ *+' conftest.er1 >conftest.err
21929 cat conftest.err >&5
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); } &&
21932 { ac_try='test -z "$ac_c_werror_flag"
21933 || test ! -s conftest.err'
21934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21935 (eval $ac_try) 2>&5
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); }; } &&
21939 { ac_try='test -s conftest$ac_exeext'
21940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21941 (eval $ac_try) 2>&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); }; }; then
21946 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21948 # Check for a 64-bit object if we didn't find anything.
21949 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; }
21952 echo "$as_me: failed program was:" >&5
21953 sed 's/^/| /' conftest.$ac_ext >&5
21956 rm -f conftest.err conftest.$ac_objext \
21957 conftest$ac_exeext conftest.$ac_ext
21958 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21960 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21961 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"
21963 if test "$host_cpu" = ia64; then
21964 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21965 allow_undefined_flag_GCJ="-z nodefs"
21966 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"
21968 # Determine the default libpath from the value encoded in an empty executable.
21969 cat >conftest.$ac_ext <<_ACEOF
21972 cat confdefs.h >>conftest.$ac_ext
21973 cat >>conftest.$ac_ext <<_ACEOF
21974 /* end confdefs.h. */
21984 rm -f conftest.$ac_objext conftest$ac_exeext
21985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21986 (eval $ac_link) 2>conftest.er1
21988 grep -v '^ *+' conftest.er1 >conftest.err
21990 cat conftest.err >&5
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); } &&
21993 { ac_try='test -z "$ac_c_werror_flag"
21994 || test ! -s conftest.err'
21995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21996 (eval $ac_try) 2>&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); }; } &&
22000 { ac_try='test -s conftest$ac_exeext'
22001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22002 (eval $ac_try) 2>&5
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); }; }; then
22007 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22009 # Check for a 64-bit object if we didn't find anything.
22010 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; }
22013 echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22017 rm -f conftest.err conftest.$ac_objext \
22018 conftest$ac_exeext conftest.$ac_ext
22019 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22021 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22022 # Warning - without using the other run time loading flags,
22023 # -berok will link without error, but may produce a broken library.
22024 no_undefined_flag_GCJ=' ${wl}-bernotok'
22025 allow_undefined_flag_GCJ=' ${wl}-berok'
22026 # -bexpall does not export symbols beginning with underscore (_)
22027 always_export_symbols_GCJ=yes
22028 # Exported symbols can be pulled into shared objects from archives
22029 whole_archive_flag_spec_GCJ=' '
22030 archive_cmds_need_lc_GCJ=yes
22031 # This is similar to how AIX traditionally builds it's shared libraries.
22032 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'
22038 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)'
22039 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22040 hardcode_minus_L_GCJ=yes
22041 # see comment about different semantics on the GNU ld section
22046 export_dynamic_flag_spec_GCJ=-rdynamic
22049 cygwin* | mingw* | pw32*)
22050 # When not using gcc, we currently assume that we are using
22051 # Microsoft Visual C++.
22052 # hardcode_libdir_flag_spec is actually meaningless, as there is
22053 # no search path for DLLs.
22054 hardcode_libdir_flag_spec_GCJ=' '
22055 allow_undefined_flag_GCJ=unsupported
22056 # Tell ltmain to make .lib files, not .a files.
22058 # Tell ltmain to make .dll files, not .so files.
22060 # FIXME: Setting linknames here is a bad hack.
22061 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22062 # The linker will automatically build a .lib file if we build a DLL.
22063 old_archive_From_new_cmds_GCJ='true'
22064 # FIXME: Should let the user specify the lib program.
22065 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22066 fix_srcfile_path='`cygpath -w "$srcfile"`'
22067 enable_shared_with_static_runtimes_GCJ=yes
22070 darwin* | rhapsody*)
22072 rhapsody* | darwin1.[012])
22073 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22076 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22077 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22079 case ${MACOSX_DEPLOYMENT_TARGET} in
22081 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22084 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22090 archive_cmds_need_lc_GCJ=no
22091 hardcode_direct_GCJ=no
22092 hardcode_automatic_GCJ=yes
22093 hardcode_shlibpath_var_GCJ=unsupported
22094 whole_archive_flag_spec_GCJ=''
22095 link_all_deplibs_GCJ=yes
22096 if test "$GCC" = yes ; then
22097 output_verbose_link_cmd='echo'
22098 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22099 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22100 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22101 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}'
22102 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}'
22104 case "$cc_basename" in
22106 output_verbose_link_cmd='echo'
22107 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22108 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22109 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22110 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}'
22111 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}'
22121 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22122 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22123 hardcode_shlibpath_var_GCJ=no
22130 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22131 # support. Future versions do this automatically, but an explicit c++rt0.o
22132 # does not break anything, and helps significantly (at the cost of a little
22135 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22136 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22137 hardcode_direct_GCJ=yes
22138 hardcode_shlibpath_var_GCJ=no
22141 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22143 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22144 hardcode_direct_GCJ=yes
22145 hardcode_minus_L_GCJ=yes
22146 hardcode_shlibpath_var_GCJ=no
22149 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22150 freebsd* | kfreebsd*-gnu)
22151 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22152 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22153 hardcode_direct_GCJ=yes
22154 hardcode_shlibpath_var_GCJ=no
22158 if test "$GCC" = yes; then
22159 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'
22161 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'
22163 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22164 hardcode_libdir_separator_GCJ=:
22165 hardcode_direct_GCJ=yes
22167 # hardcode_minus_L: Not really in the search PATH,
22168 # but as the default location of the library.
22169 hardcode_minus_L_GCJ=yes
22170 export_dynamic_flag_spec_GCJ='${wl}-E'
22174 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22175 case "$host_cpu" in
22177 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22180 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22184 case "$host_cpu" in
22186 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22189 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22193 if test "$with_gnu_ld" = no; then
22194 case "$host_cpu" in
22196 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22197 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22198 hardcode_libdir_separator_GCJ=:
22199 hardcode_direct_GCJ=no
22200 hardcode_shlibpath_var_GCJ=no
22203 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22204 hardcode_direct_GCJ=no
22205 hardcode_shlibpath_var_GCJ=no
22207 # hardcode_minus_L: Not really in the search PATH,
22208 # but as the default location of the library.
22209 hardcode_minus_L_GCJ=yes
22212 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22213 hardcode_libdir_separator_GCJ=:
22214 hardcode_direct_GCJ=yes
22215 export_dynamic_flag_spec_GCJ='${wl}-E'
22217 # hardcode_minus_L: Not really in the search PATH,
22218 # but as the default location of the library.
22219 hardcode_minus_L_GCJ=yes
22225 irix5* | irix6* | nonstopux*)
22226 if test "$GCC" = yes; then
22227 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'
22229 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'
22230 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22232 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22233 hardcode_libdir_separator_GCJ=:
22234 link_all_deplibs_GCJ=yes
22238 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22239 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22241 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22243 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22244 hardcode_direct_GCJ=yes
22245 hardcode_shlibpath_var_GCJ=no
22249 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22250 hardcode_direct_GCJ=yes
22251 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22252 hardcode_libdir_separator_GCJ=:
22253 hardcode_shlibpath_var_GCJ=no
22257 hardcode_direct_GCJ=yes
22258 hardcode_shlibpath_var_GCJ=no
22259 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22260 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22261 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22262 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22263 export_dynamic_flag_spec_GCJ='${wl}-E'
22266 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22267 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22268 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22271 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22272 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22279 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22280 hardcode_minus_L_GCJ=yes
22281 allow_undefined_flag_GCJ=unsupported
22282 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'
22283 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22287 if test "$GCC" = yes; then
22288 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22289 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'
22291 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22292 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'
22294 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22295 hardcode_libdir_separator_GCJ=:
22298 osf4* | osf5*) # as osf3* with the addition of -msym flag
22299 if test "$GCC" = yes; then
22300 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22301 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'
22302 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22304 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22305 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'
22306 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~
22307 $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'
22309 # Both c and cxx compiler support -rpath directly
22310 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22312 hardcode_libdir_separator_GCJ=:
22316 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22317 hardcode_shlibpath_var_GCJ=no
22318 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22319 runpath_var=LD_RUN_PATH
22320 hardcode_runpath_var=yes
22324 no_undefined_flag_GCJ=' -z text'
22325 if test "$GCC" = yes; then
22326 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22327 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22328 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22330 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22331 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22332 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22334 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22335 hardcode_shlibpath_var_GCJ=no
22337 solaris2.[0-5] | solaris2.[0-5].*) ;;
22338 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22339 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22341 link_all_deplibs_GCJ=yes
22345 if test "x$host_vendor" = xsequent; then
22346 # Use $CC to link under sequent, because it throws in some extra .o
22347 # files that make .init and .fini sections work.
22348 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22350 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22352 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22353 hardcode_direct_GCJ=yes
22354 hardcode_minus_L_GCJ=yes
22355 hardcode_shlibpath_var_GCJ=no
22359 case $host_vendor in
22361 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22362 hardcode_direct_GCJ=yes # is this really true???
22365 ## LD is ld it makes a PLAMLIB
22366 ## CC just makes a GrossModule.
22367 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22368 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22369 hardcode_direct_GCJ=no
22372 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22373 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22376 runpath_var='LD_RUN_PATH'
22377 hardcode_shlibpath_var_GCJ=no
22381 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22382 hardcode_shlibpath_var_GCJ=no
22383 export_dynamic_flag_spec_GCJ='-Bexport'
22387 if test -d /usr/nec; then
22388 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22389 hardcode_shlibpath_var_GCJ=no
22390 runpath_var=LD_RUN_PATH
22391 hardcode_runpath_var=yes
22397 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22398 hardcode_direct_GCJ=yes
22399 hardcode_minus_L_GCJ=no
22400 hardcode_shlibpath_var_GCJ=no
22401 hardcode_runpath_var=yes
22402 runpath_var=LD_RUN_PATH
22405 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22406 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22407 if test "$GCC" = yes; then
22408 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22410 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22412 runpath_var='LD_RUN_PATH'
22413 hardcode_shlibpath_var_GCJ=no
22417 no_undefined_flag_GCJ=' -z text'
22418 # $CC -shared without GNU ld will not create a library from C++
22419 # object files and a static libstdc++, better avoid it by now
22420 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22421 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22422 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22423 hardcode_libdir_flag_spec_GCJ=
22424 hardcode_shlibpath_var_GCJ=no
22425 runpath_var='LD_RUN_PATH'
22429 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22430 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22431 hardcode_shlibpath_var_GCJ=no
22440 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22441 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22442 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22444 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22445 if test "$GCC" = yes; then
22446 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22450 # Do we need to explicitly link libc?
22452 case "x$archive_cmds_need_lc_GCJ" in
22454 # Assume -lc should be added
22455 archive_cmds_need_lc_GCJ=yes
22457 if test "$enable_shared" = yes && test "$GCC" = yes; then
22458 case $archive_cmds_GCJ in
22460 # FIXME: we may have to deal with multi-command sequences.
22463 # Test whether the compiler implicitly links with -lc since on some
22464 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22465 # to ld, don't add -lc before -lgcc.
22466 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22467 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22469 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22472 (eval $ac_compile) 2>&5
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); } 2>conftest.err; then
22478 libobjs=conftest.$ac_objext
22480 wl=$lt_prog_compiler_wl_GCJ
22486 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22487 allow_undefined_flag_GCJ=
22488 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22489 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); }
22494 archive_cmds_need_lc_GCJ=no
22496 archive_cmds_need_lc_GCJ=yes
22498 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22500 cat conftest.err 1>&5
22503 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22504 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22511 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22512 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22513 library_names_spec=
22514 libname_spec='lib$name'
22518 postuninstall_cmds=
22522 shlibpath_overrides_runpath=unknown
22524 dynamic_linker="$host_os ld.so"
22525 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22526 if test "$GCC" = yes; then
22527 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22528 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22529 # if the path contains ";" then we assume it to be the separator
22530 # otherwise default to the standard path separator (i.e. ":") - it is
22531 # assumed that no part of a normal pathname contains ";" but that should
22532 # okay in the real world where ";" in dirpaths is itself problematic.
22533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22538 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22540 need_lib_prefix=unknown
22541 hardcode_into_libs=no
22543 # when you set need_version to no, make sure it does not cause -set_version
22544 # flags to be left without arguments
22545 need_version=unknown
22550 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22551 shlibpath_var=LIBPATH
22553 # AIX 3 has no versioning support, so we append a major version to the name.
22554 soname_spec='${libname}${release}${shared_ext}$major'
22561 hardcode_into_libs=yes
22562 if test "$host_cpu" = ia64; then
22563 # AIX 5 supports IA64
22564 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22565 shlibpath_var=LD_LIBRARY_PATH
22567 # With GCC up to 2.95.x, collect2 would create an import file
22568 # for dependence libraries. The import file would start with
22569 # the line `#! .'. This would cause the generated library to
22570 # depend on `.', always an invalid library. This was fixed in
22571 # development snapshots of GCC prior to 3.0.
22573 aix4 | aix4.[01] | aix4.[01].*)
22574 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22576 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22579 can_build_shared=no
22583 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22584 # soname into executable. Probably we can add versioning support to
22585 # collect2, so additional links can be useful in future.
22586 if test "$aix_use_runtimelinking" = yes; then
22587 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22588 # instead of lib<name>.a to let people know that these are not
22589 # typical AIX shared libraries.
22590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22592 # We preserve .a as extension for shared libraries through AIX4.2
22593 # and later when we are not doing run time linking.
22594 library_names_spec='${libname}${release}.a $libname.a'
22595 soname_spec='${libname}${release}${shared_ext}$major'
22597 shlibpath_var=LIBPATH
22602 library_names_spec='$libname.ixlibrary $libname.a'
22603 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22604 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'
22608 library_names_spec='${libname}${shared_ext}'
22609 dynamic_linker="$host_os ld.so"
22610 shlibpath_var=LIBRARY_PATH
22616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22617 soname_spec='${libname}${release}${shared_ext}$major'
22618 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22619 shlibpath_var=LD_LIBRARY_PATH
22620 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22621 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22622 # the default ld.so.conf also contains /usr/contrib/lib and
22623 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22624 # libtool to hard-code these into programs
22627 cygwin* | mingw* | pw32*)
22628 version_type=windows
22633 case $GCC,$host_os in
22634 yes,cygwin* | yes,mingw* | yes,pw32*)
22635 library_names_spec='$libname.dll.a'
22636 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22637 postinstall_cmds='base_file=`basename \${file}`~
22638 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22639 dldir=$destdir/`dirname \$dlpath`~
22640 test -d \$dldir || mkdir -p \$dldir~
22641 $install_prog $dir/$dlname \$dldir/$dlname'
22642 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22643 dlpath=$dir/\$dldll~
22645 shlibpath_overrides_runpath=yes
22649 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22650 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22651 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22654 # MinGW DLLs use traditional 'lib' prefix
22655 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22656 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22657 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22658 # It is most probably a Windows format PATH printed by
22659 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22660 # path with ; separators, and with drive letters. We can handle the
22661 # drive letters (cygwin fileutils understands them), so leave them,
22662 # especially as we might pass files found there to a mingw objdump,
22663 # which wouldn't understand a cygwinified path. Ahh.
22664 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22666 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22670 # pw32 DLLs use 'pw' prefix rather than 'lib'
22671 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22677 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22680 dynamic_linker='Win32 ld.exe'
22681 # FIXME: first we should search . and the directory the executable is in
22685 darwin* | rhapsody*)
22686 dynamic_linker="$host_os dyld"
22687 version_type=darwin
22690 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22691 soname_spec='${libname}${release}${major}$shared_ext'
22692 shlibpath_overrides_runpath=yes
22693 shlibpath_var=DYLD_LIBRARY_PATH
22694 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22695 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22696 if test "$GCC" = yes; then
22697 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"`
22699 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22701 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22709 soname_spec='${libname}${release}${shared_ext}$major'
22710 shlibpath_var=LD_LIBRARY_PATH
22721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22722 soname_spec='${libname}${release}${shared_ext}$major'
22723 shlibpath_var=LD_LIBRARY_PATH
22724 shlibpath_overrides_runpath=no
22725 hardcode_into_libs=yes
22726 dynamic_linker='GNU ld.so'
22730 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22731 version_type=freebsd-$objformat
22732 case $version_type in
22734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22739 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22743 shlibpath_var=LD_LIBRARY_PATH
22746 shlibpath_overrides_runpath=yes
22748 freebsd3.01* | freebsdelf3.01*)
22749 shlibpath_overrides_runpath=yes
22750 hardcode_into_libs=yes
22753 shlibpath_overrides_runpath=no
22754 hardcode_into_libs=yes
22763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22764 soname_spec='${libname}${release}${shared_ext}$major'
22765 shlibpath_var=LD_LIBRARY_PATH
22766 hardcode_into_libs=yes
22769 hpux9* | hpux10* | hpux11*)
22770 # Give a soname corresponding to the major version so that dld.sl refuses to
22771 # link against other versions.
22775 case "$host_cpu" in
22778 hardcode_into_libs=yes
22779 dynamic_linker="$host_os dld.so"
22780 shlibpath_var=LD_LIBRARY_PATH
22781 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22783 soname_spec='${libname}${release}${shared_ext}$major'
22784 if test "X$HPUX_IA64_MODE" = X32; then
22785 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22787 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22789 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22793 hardcode_into_libs=yes
22794 dynamic_linker="$host_os dld.sl"
22795 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22796 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22798 soname_spec='${libname}${release}${shared_ext}$major'
22799 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22804 dynamic_linker="$host_os dld.sl"
22805 shlibpath_var=SHLIB_PATH
22806 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22808 soname_spec='${libname}${release}${shared_ext}$major'
22811 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22812 postinstall_cmds='chmod 555 $lib'
22815 irix5* | irix6* | nonstopux*)
22817 nonstopux*) version_type=nonstopux ;;
22819 if test "$lt_cv_prog_gnu_ld" = yes; then
22827 soname_spec='${libname}${release}${shared_ext}$major'
22828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22830 irix5* | nonstopux*)
22831 libsuff= shlibsuff=
22834 case $LD in # libtool.m4 will add one of these switches to LD
22835 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22836 libsuff= shlibsuff= libmagic=32-bit;;
22837 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22838 libsuff=32 shlibsuff=N32 libmagic=N32;;
22839 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22840 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22841 *) libsuff= shlibsuff= libmagic=never-match;;
22845 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22846 shlibpath_overrides_runpath=no
22847 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22848 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22849 hardcode_into_libs=yes
22852 # No shared lib support for Linux oldld, aout, or coff.
22853 linux*oldld* | linux*aout* | linux*coff*)
22857 # This must be Linux ELF.
22862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22863 soname_spec='${libname}${release}${shared_ext}$major'
22864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22865 shlibpath_var=LD_LIBRARY_PATH
22866 shlibpath_overrides_runpath=no
22867 # This implies no fast_install, which is unacceptable.
22868 # Some rework will be needed to allow for fast_install
22869 # before this can be enabled.
22870 hardcode_into_libs=yes
22872 # Append ld.so.conf contents to the search path
22873 if test -f /etc/ld.so.conf; then
22874 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22875 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22878 # We used to test for /lib/ld.so.1 and disable shared libraries on
22879 # powerpc, because MkLinux only supported shared libraries with the
22880 # GNU dynamic linker. Since this was broken with cross compilers,
22881 # most powerpc-linux boxes support dynamic linking these days and
22882 # people can always --disable-shared, the test was removed, and we
22883 # assume the GNU/Linux dynamic linker is in use.
22884 dynamic_linker='GNU/Linux ld.so'
22891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22892 soname_spec='${libname}${release}${shared_ext}$major'
22893 shlibpath_var=LD_LIBRARY_PATH
22894 shlibpath_overrides_runpath=no
22895 hardcode_into_libs=yes
22896 dynamic_linker='GNU ld.so'
22903 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22906 dynamic_linker='NetBSD (a.out) ld.so'
22908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22909 soname_spec='${libname}${release}${shared_ext}$major'
22910 dynamic_linker='NetBSD ld.elf_so'
22912 shlibpath_var=LD_LIBRARY_PATH
22913 shlibpath_overrides_runpath=yes
22914 hardcode_into_libs=yes
22919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22920 shlibpath_var=LD_LIBRARY_PATH
22921 shlibpath_overrides_runpath=yes
22928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22929 soname_spec='${libname}${release}${shared_ext}$major'
22930 shlibpath_var=LD_LIBRARY_PATH
22931 shlibpath_overrides_runpath=yes
22938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22940 shlibpath_var=LD_LIBRARY_PATH
22941 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22943 openbsd2.[89] | openbsd2.[89].*)
22944 shlibpath_overrides_runpath=no
22947 shlibpath_overrides_runpath=yes
22951 shlibpath_overrides_runpath=yes
22956 libname_spec='$name'
22959 library_names_spec='$libname${shared_ext} $libname.a'
22960 dynamic_linker='OS/2 ld.exe'
22961 shlibpath_var=LIBPATH
22964 osf3* | osf4* | osf5*)
22968 soname_spec='${libname}${release}${shared_ext}$major'
22969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22970 shlibpath_var=LD_LIBRARY_PATH
22971 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22972 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22977 soname_spec='${libname}${release}${shared_ext}$major'
22978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22979 shlibpath_var=LD_LIBRARY_PATH
22986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22987 soname_spec='${libname}${release}${shared_ext}$major'
22988 shlibpath_var=LD_LIBRARY_PATH
22989 shlibpath_overrides_runpath=yes
22990 hardcode_into_libs=yes
22991 # ldd complains unless libraries are executable
22992 postinstall_cmds='chmod +x $lib'
22997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22998 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22999 shlibpath_var=LD_LIBRARY_PATH
23000 shlibpath_overrides_runpath=yes
23001 if test "$with_gnu_ld" = yes; then
23007 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23010 soname_spec='${libname}${release}${shared_ext}$major'
23011 shlibpath_var=LD_LIBRARY_PATH
23012 case $host_vendor in
23014 shlibpath_overrides_runpath=no
23016 export_dynamic_flag_spec='${wl}-Blargedynsym'
23017 runpath_var=LD_RUN_PATH
23025 shlibpath_overrides_runpath=no
23026 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23032 if test -d /usr/nec ;then
23034 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23035 soname_spec='$libname${shared_ext}.$major'
23036 shlibpath_var=LD_LIBRARY_PATH
23042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23043 soname_spec='${libname}${release}${shared_ext}$major'
23044 shlibpath_var=LD_LIBRARY_PATH
23051 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23052 echo "${ECHO_T}$dynamic_linker" >&6
23053 test "$dynamic_linker" = no && can_build_shared=no
23055 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23056 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23057 hardcode_action_GCJ=
23058 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23059 test -n "$runpath_var_GCJ" || \
23060 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23062 # We can hardcode non-existant directories.
23063 if test "$hardcode_direct_GCJ" != no &&
23064 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23065 # have to relink, otherwise we might link with an installed library
23066 # when we should be linking with a yet-to-be-installed one
23067 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23068 test "$hardcode_minus_L_GCJ" != no; then
23069 # Linking always hardcodes the temporary library directory.
23070 hardcode_action_GCJ=relink
23072 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23073 hardcode_action_GCJ=immediate
23076 # We cannot hardcode anything, or else we can only hardcode existing
23078 hardcode_action_GCJ=unsupported
23080 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23081 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23083 if test "$hardcode_action_GCJ" = relink; then
23084 # Fast installation is not supported
23085 enable_fast_install=no
23086 elif test "$shlibpath_overrides_runpath" = yes ||
23087 test "$enable_shared" = no; then
23088 # Fast installation is not necessary
23089 enable_fast_install=needless
23094 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23095 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23096 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23097 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23098 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23099 echo "$as_me:$LINENO: result: yes" >&5
23100 echo "${ECHO_T}yes" >&6
23102 # FIXME - insert some real tests, host_os isn't really good enough
23105 if test -n "$STRIP" ; then
23106 striplib="$STRIP -x"
23107 echo "$as_me:$LINENO: result: yes" >&5
23108 echo "${ECHO_T}yes" >&6
23110 echo "$as_me:$LINENO: result: no" >&5
23111 echo "${ECHO_T}no" >&6
23115 echo "$as_me:$LINENO: result: no" >&5
23116 echo "${ECHO_T}no" >&6
23121 if test "x$enable_dlopen" != xyes; then
23122 enable_dlopen=unknown
23123 enable_dlopen_self=unknown
23124 enable_dlopen_self_static=unknown
23131 lt_cv_dlopen="load_add_on"
23133 lt_cv_dlopen_self=yes
23137 lt_cv_dlopen="LoadLibrary"
23142 lt_cv_dlopen="dlopen"
23147 # if libdl is installed we need to link against it
23148 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23149 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23150 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23151 echo $ECHO_N "(cached) $ECHO_C" >&6
23153 ac_check_lib_save_LIBS=$LIBS
23155 cat >conftest.$ac_ext <<_ACEOF
23158 cat confdefs.h >>conftest.$ac_ext
23159 cat >>conftest.$ac_ext <<_ACEOF
23160 /* end confdefs.h. */
23162 /* Override any gcc2 internal prototype to avoid an error. */
23166 /* We use char because int might match the return type of a gcc2
23167 builtin and then its argument prototype would still apply. */
23177 rm -f conftest.$ac_objext conftest$ac_exeext
23178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23179 (eval $ac_link) 2>conftest.er1
23181 grep -v '^ *+' conftest.er1 >conftest.err
23183 cat conftest.err >&5
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); } &&
23186 { ac_try='test -z "$ac_c_werror_flag"
23187 || test ! -s conftest.err'
23188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189 (eval $ac_try) 2>&5
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); }; } &&
23193 { ac_try='test -s conftest$ac_exeext'
23194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23195 (eval $ac_try) 2>&5
23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); }; }; then
23199 ac_cv_lib_dl_dlopen=yes
23201 echo "$as_me: failed program was:" >&5
23202 sed 's/^/| /' conftest.$ac_ext >&5
23204 ac_cv_lib_dl_dlopen=no
23206 rm -f conftest.err conftest.$ac_objext \
23207 conftest$ac_exeext conftest.$ac_ext
23208 LIBS=$ac_check_lib_save_LIBS
23210 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23211 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23212 if test $ac_cv_lib_dl_dlopen = yes; then
23213 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23216 lt_cv_dlopen="dyld"
23218 lt_cv_dlopen_self=yes
23225 echo "$as_me:$LINENO: checking for shl_load" >&5
23226 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23227 if test "${ac_cv_func_shl_load+set}" = set; then
23228 echo $ECHO_N "(cached) $ECHO_C" >&6
23230 cat >conftest.$ac_ext <<_ACEOF
23233 cat confdefs.h >>conftest.$ac_ext
23234 cat >>conftest.$ac_ext <<_ACEOF
23235 /* end confdefs.h. */
23236 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23238 #define shl_load innocuous_shl_load
23240 /* System header to define __stub macros and hopefully few prototypes,
23241 which can conflict with char shl_load (); below.
23242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23243 <limits.h> exists even on freestanding compilers. */
23246 # include <limits.h>
23248 # include <assert.h>
23253 /* Override any gcc2 internal prototype to avoid an error. */
23258 /* We use char because int might match the return type of a gcc2
23259 builtin and then its argument prototype would still apply. */
23261 /* The GNU C library defines this for functions which it implements
23262 to always fail with ENOSYS. Some functions are actually named
23263 something starting with __ and the normal name is an alias. */
23264 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23267 char (*f) () = shl_load;
23276 return f != shl_load;
23281 rm -f conftest.$ac_objext conftest$ac_exeext
23282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23283 (eval $ac_link) 2>conftest.er1
23285 grep -v '^ *+' conftest.er1 >conftest.err
23287 cat conftest.err >&5
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); } &&
23290 { ac_try='test -z "$ac_c_werror_flag"
23291 || test ! -s conftest.err'
23292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23293 (eval $ac_try) 2>&5
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); }; } &&
23297 { ac_try='test -s conftest$ac_exeext'
23298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23299 (eval $ac_try) 2>&5
23301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302 (exit $ac_status); }; }; then
23303 ac_cv_func_shl_load=yes
23305 echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23308 ac_cv_func_shl_load=no
23310 rm -f conftest.err conftest.$ac_objext \
23311 conftest$ac_exeext conftest.$ac_ext
23313 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23314 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23315 if test $ac_cv_func_shl_load = yes; then
23316 lt_cv_dlopen="shl_load"
23318 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23319 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23320 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23321 echo $ECHO_N "(cached) $ECHO_C" >&6
23323 ac_check_lib_save_LIBS=$LIBS
23325 cat >conftest.$ac_ext <<_ACEOF
23328 cat confdefs.h >>conftest.$ac_ext
23329 cat >>conftest.$ac_ext <<_ACEOF
23330 /* end confdefs.h. */
23332 /* Override any gcc2 internal prototype to avoid an error. */
23336 /* We use char because int might match the return type of a gcc2
23337 builtin and then its argument prototype would still apply. */
23347 rm -f conftest.$ac_objext conftest$ac_exeext
23348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23349 (eval $ac_link) 2>conftest.er1
23351 grep -v '^ *+' conftest.er1 >conftest.err
23353 cat conftest.err >&5
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); } &&
23356 { ac_try='test -z "$ac_c_werror_flag"
23357 || test ! -s conftest.err'
23358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359 (eval $ac_try) 2>&5
23361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362 (exit $ac_status); }; } &&
23363 { ac_try='test -s conftest$ac_exeext'
23364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23365 (eval $ac_try) 2>&5
23367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368 (exit $ac_status); }; }; then
23369 ac_cv_lib_dld_shl_load=yes
23371 echo "$as_me: failed program was:" >&5
23372 sed 's/^/| /' conftest.$ac_ext >&5
23374 ac_cv_lib_dld_shl_load=no
23376 rm -f conftest.err conftest.$ac_objext \
23377 conftest$ac_exeext conftest.$ac_ext
23378 LIBS=$ac_check_lib_save_LIBS
23380 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23381 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23382 if test $ac_cv_lib_dld_shl_load = yes; then
23383 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23385 echo "$as_me:$LINENO: checking for dlopen" >&5
23386 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23387 if test "${ac_cv_func_dlopen+set}" = set; then
23388 echo $ECHO_N "(cached) $ECHO_C" >&6
23390 cat >conftest.$ac_ext <<_ACEOF
23393 cat confdefs.h >>conftest.$ac_ext
23394 cat >>conftest.$ac_ext <<_ACEOF
23395 /* end confdefs.h. */
23396 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23398 #define dlopen innocuous_dlopen
23400 /* System header to define __stub macros and hopefully few prototypes,
23401 which can conflict with char dlopen (); below.
23402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23403 <limits.h> exists even on freestanding compilers. */
23406 # include <limits.h>
23408 # include <assert.h>
23413 /* Override any gcc2 internal prototype to avoid an error. */
23418 /* We use char because int might match the return type of a gcc2
23419 builtin and then its argument prototype would still apply. */
23421 /* The GNU C library defines this for functions which it implements
23422 to always fail with ENOSYS. Some functions are actually named
23423 something starting with __ and the normal name is an alias. */
23424 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23427 char (*f) () = dlopen;
23436 return f != dlopen;
23441 rm -f conftest.$ac_objext conftest$ac_exeext
23442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23443 (eval $ac_link) 2>conftest.er1
23445 grep -v '^ *+' conftest.er1 >conftest.err
23447 cat conftest.err >&5
23448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449 (exit $ac_status); } &&
23450 { ac_try='test -z "$ac_c_werror_flag"
23451 || test ! -s conftest.err'
23452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23453 (eval $ac_try) 2>&5
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); }; } &&
23457 { ac_try='test -s conftest$ac_exeext'
23458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23459 (eval $ac_try) 2>&5
23461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); }; }; then
23463 ac_cv_func_dlopen=yes
23465 echo "$as_me: failed program was:" >&5
23466 sed 's/^/| /' conftest.$ac_ext >&5
23468 ac_cv_func_dlopen=no
23470 rm -f conftest.err conftest.$ac_objext \
23471 conftest$ac_exeext conftest.$ac_ext
23473 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23474 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23475 if test $ac_cv_func_dlopen = yes; then
23476 lt_cv_dlopen="dlopen"
23478 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23479 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23480 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23481 echo $ECHO_N "(cached) $ECHO_C" >&6
23483 ac_check_lib_save_LIBS=$LIBS
23485 cat >conftest.$ac_ext <<_ACEOF
23488 cat confdefs.h >>conftest.$ac_ext
23489 cat >>conftest.$ac_ext <<_ACEOF
23490 /* end confdefs.h. */
23492 /* Override any gcc2 internal prototype to avoid an error. */
23496 /* We use char because int might match the return type of a gcc2
23497 builtin and then its argument prototype would still apply. */
23507 rm -f conftest.$ac_objext conftest$ac_exeext
23508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23509 (eval $ac_link) 2>conftest.er1
23511 grep -v '^ *+' conftest.er1 >conftest.err
23513 cat conftest.err >&5
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); } &&
23516 { ac_try='test -z "$ac_c_werror_flag"
23517 || test ! -s conftest.err'
23518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23519 (eval $ac_try) 2>&5
23521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522 (exit $ac_status); }; } &&
23523 { ac_try='test -s conftest$ac_exeext'
23524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23525 (eval $ac_try) 2>&5
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); }; }; then
23529 ac_cv_lib_dl_dlopen=yes
23531 echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23534 ac_cv_lib_dl_dlopen=no
23536 rm -f conftest.err conftest.$ac_objext \
23537 conftest$ac_exeext conftest.$ac_ext
23538 LIBS=$ac_check_lib_save_LIBS
23540 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23541 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23542 if test $ac_cv_lib_dl_dlopen = yes; then
23543 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23545 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23546 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23547 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23548 echo $ECHO_N "(cached) $ECHO_C" >&6
23550 ac_check_lib_save_LIBS=$LIBS
23551 LIBS="-lsvld $LIBS"
23552 cat >conftest.$ac_ext <<_ACEOF
23555 cat confdefs.h >>conftest.$ac_ext
23556 cat >>conftest.$ac_ext <<_ACEOF
23557 /* end confdefs.h. */
23559 /* Override any gcc2 internal prototype to avoid an error. */
23563 /* We use char because int might match the return type of a gcc2
23564 builtin and then its argument prototype would still apply. */
23574 rm -f conftest.$ac_objext conftest$ac_exeext
23575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23576 (eval $ac_link) 2>conftest.er1
23578 grep -v '^ *+' conftest.er1 >conftest.err
23580 cat conftest.err >&5
23581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582 (exit $ac_status); } &&
23583 { ac_try='test -z "$ac_c_werror_flag"
23584 || test ! -s conftest.err'
23585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23586 (eval $ac_try) 2>&5
23588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 (exit $ac_status); }; } &&
23590 { ac_try='test -s conftest$ac_exeext'
23591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23592 (eval $ac_try) 2>&5
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); }; }; then
23596 ac_cv_lib_svld_dlopen=yes
23598 echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23601 ac_cv_lib_svld_dlopen=no
23603 rm -f conftest.err conftest.$ac_objext \
23604 conftest$ac_exeext conftest.$ac_ext
23605 LIBS=$ac_check_lib_save_LIBS
23607 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23608 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23609 if test $ac_cv_lib_svld_dlopen = yes; then
23610 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23612 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23613 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23614 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23615 echo $ECHO_N "(cached) $ECHO_C" >&6
23617 ac_check_lib_save_LIBS=$LIBS
23619 cat >conftest.$ac_ext <<_ACEOF
23622 cat confdefs.h >>conftest.$ac_ext
23623 cat >>conftest.$ac_ext <<_ACEOF
23624 /* end confdefs.h. */
23626 /* Override any gcc2 internal prototype to avoid an error. */
23630 /* We use char because int might match the return type of a gcc2
23631 builtin and then its argument prototype would still apply. */
23641 rm -f conftest.$ac_objext conftest$ac_exeext
23642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23643 (eval $ac_link) 2>conftest.er1
23645 grep -v '^ *+' conftest.er1 >conftest.err
23647 cat conftest.err >&5
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } &&
23650 { ac_try='test -z "$ac_c_werror_flag"
23651 || test ! -s conftest.err'
23652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23653 (eval $ac_try) 2>&5
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); }; } &&
23657 { ac_try='test -s conftest$ac_exeext'
23658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23659 (eval $ac_try) 2>&5
23661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662 (exit $ac_status); }; }; then
23663 ac_cv_lib_dld_dld_link=yes
23665 echo "$as_me: failed program was:" >&5
23666 sed 's/^/| /' conftest.$ac_ext >&5
23668 ac_cv_lib_dld_dld_link=no
23670 rm -f conftest.err conftest.$ac_objext \
23671 conftest$ac_exeext conftest.$ac_ext
23672 LIBS=$ac_check_lib_save_LIBS
23674 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23675 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23676 if test $ac_cv_lib_dld_dld_link = yes; then
23677 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23698 if test "x$lt_cv_dlopen" != xno; then
23704 case $lt_cv_dlopen in
23706 save_CPPFLAGS="$CPPFLAGS"
23707 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23709 save_LDFLAGS="$LDFLAGS"
23710 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23713 LIBS="$lt_cv_dlopen_libs $LIBS"
23715 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23716 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23717 if test "${lt_cv_dlopen_self+set}" = set; then
23718 echo $ECHO_N "(cached) $ECHO_C" >&6
23720 if test "$cross_compiling" = yes; then :
23721 lt_cv_dlopen_self=cross
23723 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23724 lt_status=$lt_dlunknown
23725 cat > conftest.$ac_ext <<EOF
23726 #line 23726 "configure"
23727 #include "confdefs.h"
23736 # define LT_DLGLOBAL RTLD_GLOBAL
23739 # define LT_DLGLOBAL DL_GLOBAL
23741 # define LT_DLGLOBAL 0
23745 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23746 find out it does not work in some platform. */
23747 #ifndef LT_DLLAZY_OR_NOW
23749 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23752 # define LT_DLLAZY_OR_NOW DL_LAZY
23755 # define LT_DLLAZY_OR_NOW RTLD_NOW
23758 # define LT_DLLAZY_OR_NOW DL_NOW
23760 # define LT_DLLAZY_OR_NOW 0
23768 extern "C" void exit (int);
23771 void fnord() { int i=42;}
23774 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23775 int status = $lt_dlunknown;
23779 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23780 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23781 /* dlclose (self); */
23787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23788 (eval $ac_link) 2>&5
23790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23792 (./conftest; exit; ) 2>/dev/null
23794 case x$lt_status in
23795 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23796 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23797 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23800 # compilation failed
23801 lt_cv_dlopen_self=no
23808 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23809 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23811 if test "x$lt_cv_dlopen_self" = xyes; then
23812 LDFLAGS="$LDFLAGS $link_static_flag"
23813 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23814 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23815 if test "${lt_cv_dlopen_self_static+set}" = set; then
23816 echo $ECHO_N "(cached) $ECHO_C" >&6
23818 if test "$cross_compiling" = yes; then :
23819 lt_cv_dlopen_self_static=cross
23821 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23822 lt_status=$lt_dlunknown
23823 cat > conftest.$ac_ext <<EOF
23824 #line 23824 "configure"
23825 #include "confdefs.h"
23834 # define LT_DLGLOBAL RTLD_GLOBAL
23837 # define LT_DLGLOBAL DL_GLOBAL
23839 # define LT_DLGLOBAL 0
23843 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23844 find out it does not work in some platform. */
23845 #ifndef LT_DLLAZY_OR_NOW
23847 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23850 # define LT_DLLAZY_OR_NOW DL_LAZY
23853 # define LT_DLLAZY_OR_NOW RTLD_NOW
23856 # define LT_DLLAZY_OR_NOW DL_NOW
23858 # define LT_DLLAZY_OR_NOW 0
23866 extern "C" void exit (int);
23869 void fnord() { int i=42;}
23872 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23873 int status = $lt_dlunknown;
23877 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23878 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23879 /* dlclose (self); */
23885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23886 (eval $ac_link) 2>&5
23888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23890 (./conftest; exit; ) 2>/dev/null
23892 case x$lt_status in
23893 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23894 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23895 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23898 # compilation failed
23899 lt_cv_dlopen_self_static=no
23906 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23907 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23910 CPPFLAGS="$save_CPPFLAGS"
23911 LDFLAGS="$save_LDFLAGS"
23916 case $lt_cv_dlopen_self in
23917 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23918 *) enable_dlopen_self=unknown ;;
23921 case $lt_cv_dlopen_self_static in
23922 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23923 *) enable_dlopen_self_static=unknown ;;
23928 # The else clause should only fire when bootstrapping the
23929 # libtool distribution, otherwise you forgot to ship ltmain.sh
23930 # with your package, and you will get complaints that there are
23931 # no rules to generate ltmain.sh.
23932 if test -f "$ltmain"; then
23933 # See if we are running on zsh, and set the options which allow our commands through
23934 # without removal of \ escapes.
23935 if test -n "${ZSH_VERSION+set}" ; then
23936 setopt NO_GLOB_SUBST
23938 # Now quote all the things that may contain metacharacters while being
23939 # careful not to overquote the AC_SUBSTed values. We take copies of the
23940 # variables and quote the copies for generation of the libtool script.
23941 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23943 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23944 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23945 deplibs_check_method reload_flag reload_cmds need_locks \
23946 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23947 lt_cv_sys_global_symbol_to_c_name_address \
23948 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23949 old_postinstall_cmds old_postuninstall_cmds \
23953 lt_prog_compiler_wl_GCJ \
23954 lt_prog_compiler_pic_GCJ \
23955 lt_prog_compiler_static_GCJ \
23956 lt_prog_compiler_no_builtin_flag_GCJ \
23957 export_dynamic_flag_spec_GCJ \
23958 thread_safe_flag_spec_GCJ \
23959 whole_archive_flag_spec_GCJ \
23960 enable_shared_with_static_runtimes_GCJ \
23961 old_archive_cmds_GCJ \
23962 old_archive_from_new_cmds_GCJ \
23963 predep_objects_GCJ \
23964 postdep_objects_GCJ \
23967 compiler_lib_search_path_GCJ \
23969 archive_expsym_cmds_GCJ \
23970 postinstall_cmds_GCJ \
23971 postuninstall_cmds_GCJ \
23972 old_archive_from_expsyms_cmds_GCJ \
23973 allow_undefined_flag_GCJ \
23974 no_undefined_flag_GCJ \
23975 export_symbols_cmds_GCJ \
23976 hardcode_libdir_flag_spec_GCJ \
23977 hardcode_libdir_flag_spec_ld_GCJ \
23978 hardcode_libdir_separator_GCJ \
23979 hardcode_automatic_GCJ \
23981 module_expsym_cmds_GCJ \
23982 lt_cv_prog_compiler_c_o_GCJ \
23983 exclude_expsyms_GCJ \
23984 include_expsyms_GCJ; do
23987 old_archive_cmds_GCJ | \
23988 old_archive_from_new_cmds_GCJ | \
23989 archive_cmds_GCJ | \
23990 archive_expsym_cmds_GCJ | \
23991 module_cmds_GCJ | \
23992 module_expsym_cmds_GCJ | \
23993 old_archive_from_expsyms_cmds_GCJ | \
23994 export_symbols_cmds_GCJ | \
23995 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23996 postinstall_cmds | postuninstall_cmds | \
23997 old_postinstall_cmds | old_postuninstall_cmds | \
23998 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23999 # Double-quote double-evaled strings.
24000 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24003 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24009 *'\$0 --fallback-echo"')
24010 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24016 cat <<__EOF__ >> "$cfgfile"
24017 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24019 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24021 # Shell to use when invoking shell scripts.
24024 # Whether or not to build shared libraries.
24025 build_libtool_libs=$enable_shared
24027 # Whether or not to build static libraries.
24028 build_old_libs=$enable_static
24030 # Whether or not to add -lc for building shared libraries.
24031 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24033 # Whether or not to disallow shared libs when runtime libs are static
24034 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24036 # Whether or not to optimize for fast installation.
24037 fast_install=$enable_fast_install
24040 host_alias=$host_alias
24043 # An echo program that does not interpret backslashes.
24048 AR_FLAGS=$lt_AR_FLAGS
24053 # A language-specific compiler.
24054 CC=$lt_compiler_GCJ
24056 # Is the compiler the GNU C compiler?
24062 # The linker used to build libraries.
24065 # Whether we need hard or soft links.
24068 # A BSD-compatible nm program.
24071 # A symbol stripping program
24074 # Used to examine libraries when file_magic_cmd begins "file"
24075 MAGIC_CMD=$MAGIC_CMD
24077 # Used on cygwin: DLL creation program.
24080 # Used on cygwin: object dumper.
24083 # Used on cygwin: assembler.
24086 # The name of the directory that contains temporary libtool files.
24089 # How to create reloadable object files.
24090 reload_flag=$lt_reload_flag
24091 reload_cmds=$lt_reload_cmds
24093 # How to pass a linker flag through the compiler.
24094 wl=$lt_lt_prog_compiler_wl_GCJ
24096 # Object file suffix (normally "o").
24097 objext="$ac_objext"
24099 # Old archive suffix (normally "a").
24102 # Shared library suffix (normally ".so").
24103 shrext_cmds='$shrext_cmds'
24105 # Executable file suffix (normally "").
24108 # Additional compiler flags for building library objects.
24109 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24112 # What is the maximum length of a command?
24113 max_cmd_len=$lt_cv_sys_max_cmd_len
24115 # Does compiler simultaneously support -c and -o options?
24116 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24118 # Must we lock files when doing compilation ?
24119 need_locks=$lt_need_locks
24121 # Do we need the lib prefix for modules?
24122 need_lib_prefix=$need_lib_prefix
24124 # Do we need a version for libraries?
24125 need_version=$need_version
24127 # Whether dlopen is supported.
24128 dlopen_support=$enable_dlopen
24130 # Whether dlopen of programs is supported.
24131 dlopen_self=$enable_dlopen_self
24133 # Whether dlopen of statically linked programs is supported.
24134 dlopen_self_static=$enable_dlopen_self_static
24136 # Compiler flag to prevent dynamic linking.
24137 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24139 # Compiler flag to turn off builtin functions.
24140 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24142 # Compiler flag to allow reflexive dlopens.
24143 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24145 # Compiler flag to generate shared objects directly from archives.
24146 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24148 # Compiler flag to generate thread-safe objects.
24149 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24151 # Library versioning type.
24152 version_type=$version_type
24154 # Format of library name prefix.
24155 libname_spec=$lt_libname_spec
24157 # List of archive names. First name is the real one, the rest are links.
24158 # The last name is the one that the linker finds with -lNAME.
24159 library_names_spec=$lt_library_names_spec
24161 # The coded name of the library, if different from the real name.
24162 soname_spec=$lt_soname_spec
24164 # Commands used to build and install an old-style archive.
24166 old_archive_cmds=$lt_old_archive_cmds_GCJ
24167 old_postinstall_cmds=$lt_old_postinstall_cmds
24168 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24170 # Create an old-style archive from a shared archive.
24171 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24173 # Create a temporary old-style archive to link instead of a shared archive.
24174 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24176 # Commands used to build and install a shared archive.
24177 archive_cmds=$lt_archive_cmds_GCJ
24178 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24179 postinstall_cmds=$lt_postinstall_cmds
24180 postuninstall_cmds=$lt_postuninstall_cmds
24182 # Commands used to build a loadable module (assumed same as above if empty)
24183 module_cmds=$lt_module_cmds_GCJ
24184 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24186 # Commands to strip libraries.
24187 old_striplib=$lt_old_striplib
24188 striplib=$lt_striplib
24190 # Dependencies to place before the objects being linked to create a
24192 predep_objects=$lt_predep_objects_GCJ
24194 # Dependencies to place after the objects being linked to create a
24196 postdep_objects=$lt_postdep_objects_GCJ
24198 # Dependencies to place before the objects being linked to create a
24200 predeps=$lt_predeps_GCJ
24202 # Dependencies to place after the objects being linked to create a
24204 postdeps=$lt_postdeps_GCJ
24206 # The library search path used internally by the compiler when linking
24207 # a shared library.
24208 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24210 # Method to check whether dependent libraries are shared objects.
24211 deplibs_check_method=$lt_deplibs_check_method
24213 # Command to use when deplibs_check_method == file_magic.
24214 file_magic_cmd=$lt_file_magic_cmd
24216 # Flag that allows shared libraries with undefined symbols to be built.
24217 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24219 # Flag that forces no undefined symbols.
24220 no_undefined_flag=$lt_no_undefined_flag_GCJ
24222 # Commands used to finish a libtool library installation in a directory.
24223 finish_cmds=$lt_finish_cmds
24225 # Same as above, but a single script fragment to be evaled but not shown.
24226 finish_eval=$lt_finish_eval
24228 # Take the output of nm and produce a listing of raw symbols and C names.
24229 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24231 # Transform the output of nm in a proper C declaration
24232 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24234 # Transform the output of nm in a C name address pair
24235 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24237 # This is the shared library runtime path variable.
24238 runpath_var=$runpath_var
24240 # This is the shared library path variable.
24241 shlibpath_var=$shlibpath_var
24243 # Is shlibpath searched before the hard-coded library search path?
24244 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24246 # How to hardcode a shared library path into an executable.
24247 hardcode_action=$hardcode_action_GCJ
24249 # Whether we should hardcode library paths into libraries.
24250 hardcode_into_libs=$hardcode_into_libs
24252 # Flag to hardcode \$libdir into a binary during linking.
24253 # This must work even if \$libdir does not exist.
24254 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24256 # If ld is used when linking, flag to hardcode \$libdir into
24257 # a binary during linking. This must work even if \$libdir does
24259 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24261 # Whether we need a single -rpath flag with a separated argument.
24262 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24264 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24265 # resulting binary.
24266 hardcode_direct=$hardcode_direct_GCJ
24268 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24269 # resulting binary.
24270 hardcode_minus_L=$hardcode_minus_L_GCJ
24272 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24273 # the resulting binary.
24274 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24276 # Set to yes if building a shared library automatically hardcodes DIR into the library
24277 # and all subsequent libraries and executables linked against it.
24278 hardcode_automatic=$hardcode_automatic_GCJ
24280 # Variables whose values should be saved in libtool wrapper scripts and
24281 # restored at relink time.
24282 variables_saved_for_relink="$variables_saved_for_relink"
24284 # Whether libtool must link a program against all its dependency libraries.
24285 link_all_deplibs=$link_all_deplibs_GCJ
24287 # Compile-time system search path for libraries
24288 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24290 # Run-time system search path for libraries
24291 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24293 # Fix the shell variable \$srcfile for the compiler.
24294 fix_srcfile_path="$fix_srcfile_path_GCJ"
24296 # Set to yes if exported symbols are required.
24297 always_export_symbols=$always_export_symbols_GCJ
24299 # The commands to list exported symbols.
24300 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24302 # The commands to extract the exported symbol list from a shared archive.
24303 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24305 # Symbols that should not be listed in the preloaded symbols.
24306 exclude_expsyms=$lt_exclude_expsyms_GCJ
24308 # Symbols that must always be exported.
24309 include_expsyms=$lt_include_expsyms_GCJ
24311 # ### END LIBTOOL TAG CONFIG: $tagname
24317 # If there is no Makefile yet, we rely on a make rule to execute
24318 # `config.status --recheck' to rerun these tests and create the
24319 # libtool script then.
24320 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24321 if test -f "$ltmain_in"; then
24322 test -f Makefile && make "$ltmain"
24328 ac_cpp='$CPP $CPPFLAGS'
24329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24342 ac_cpp='$CPP $CPPFLAGS'
24343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24348 # Source file extension for RC test sources.
24351 # Object file extension for compiled RC test sources.
24355 # Code to be used in simple compile tests
24356 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24358 # Code to be used in simple link tests
24359 lt_simple_link_test_code="$lt_simple_compile_test_code"
24361 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24363 # If no C compiler was specified, use CC.
24366 # Allow CC to be a program name with arguments.
24370 # Allow CC to be a program name with arguments.
24375 lt_cv_prog_compiler_c_o_RC=yes
24377 # The else clause should only fire when bootstrapping the
24378 # libtool distribution, otherwise you forgot to ship ltmain.sh
24379 # with your package, and you will get complaints that there are
24380 # no rules to generate ltmain.sh.
24381 if test -f "$ltmain"; then
24382 # See if we are running on zsh, and set the options which allow our commands through
24383 # without removal of \ escapes.
24384 if test -n "${ZSH_VERSION+set}" ; then
24385 setopt NO_GLOB_SUBST
24387 # Now quote all the things that may contain metacharacters while being
24388 # careful not to overquote the AC_SUBSTed values. We take copies of the
24389 # variables and quote the copies for generation of the libtool script.
24390 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24392 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24393 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24394 deplibs_check_method reload_flag reload_cmds need_locks \
24395 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24396 lt_cv_sys_global_symbol_to_c_name_address \
24397 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24398 old_postinstall_cmds old_postuninstall_cmds \
24402 lt_prog_compiler_wl_RC \
24403 lt_prog_compiler_pic_RC \
24404 lt_prog_compiler_static_RC \
24405 lt_prog_compiler_no_builtin_flag_RC \
24406 export_dynamic_flag_spec_RC \
24407 thread_safe_flag_spec_RC \
24408 whole_archive_flag_spec_RC \
24409 enable_shared_with_static_runtimes_RC \
24410 old_archive_cmds_RC \
24411 old_archive_from_new_cmds_RC \
24412 predep_objects_RC \
24413 postdep_objects_RC \
24416 compiler_lib_search_path_RC \
24418 archive_expsym_cmds_RC \
24419 postinstall_cmds_RC \
24420 postuninstall_cmds_RC \
24421 old_archive_from_expsyms_cmds_RC \
24422 allow_undefined_flag_RC \
24423 no_undefined_flag_RC \
24424 export_symbols_cmds_RC \
24425 hardcode_libdir_flag_spec_RC \
24426 hardcode_libdir_flag_spec_ld_RC \
24427 hardcode_libdir_separator_RC \
24428 hardcode_automatic_RC \
24430 module_expsym_cmds_RC \
24431 lt_cv_prog_compiler_c_o_RC \
24432 exclude_expsyms_RC \
24433 include_expsyms_RC; do
24436 old_archive_cmds_RC | \
24437 old_archive_from_new_cmds_RC | \
24438 archive_cmds_RC | \
24439 archive_expsym_cmds_RC | \
24441 module_expsym_cmds_RC | \
24442 old_archive_from_expsyms_cmds_RC | \
24443 export_symbols_cmds_RC | \
24444 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24445 postinstall_cmds | postuninstall_cmds | \
24446 old_postinstall_cmds | old_postuninstall_cmds | \
24447 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24448 # Double-quote double-evaled strings.
24449 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24452 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24458 *'\$0 --fallback-echo"')
24459 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24465 cat <<__EOF__ >> "$cfgfile"
24466 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24468 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24470 # Shell to use when invoking shell scripts.
24473 # Whether or not to build shared libraries.
24474 build_libtool_libs=$enable_shared
24476 # Whether or not to build static libraries.
24477 build_old_libs=$enable_static
24479 # Whether or not to add -lc for building shared libraries.
24480 build_libtool_need_lc=$archive_cmds_need_lc_RC
24482 # Whether or not to disallow shared libs when runtime libs are static
24483 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24485 # Whether or not to optimize for fast installation.
24486 fast_install=$enable_fast_install
24489 host_alias=$host_alias
24492 # An echo program that does not interpret backslashes.
24497 AR_FLAGS=$lt_AR_FLAGS
24502 # A language-specific compiler.
24505 # Is the compiler the GNU C compiler?
24511 # The linker used to build libraries.
24514 # Whether we need hard or soft links.
24517 # A BSD-compatible nm program.
24520 # A symbol stripping program
24523 # Used to examine libraries when file_magic_cmd begins "file"
24524 MAGIC_CMD=$MAGIC_CMD
24526 # Used on cygwin: DLL creation program.
24529 # Used on cygwin: object dumper.
24532 # Used on cygwin: assembler.
24535 # The name of the directory that contains temporary libtool files.
24538 # How to create reloadable object files.
24539 reload_flag=$lt_reload_flag
24540 reload_cmds=$lt_reload_cmds
24542 # How to pass a linker flag through the compiler.
24543 wl=$lt_lt_prog_compiler_wl_RC
24545 # Object file suffix (normally "o").
24546 objext="$ac_objext"
24548 # Old archive suffix (normally "a").
24551 # Shared library suffix (normally ".so").
24552 shrext_cmds='$shrext_cmds'
24554 # Executable file suffix (normally "").
24557 # Additional compiler flags for building library objects.
24558 pic_flag=$lt_lt_prog_compiler_pic_RC
24561 # What is the maximum length of a command?
24562 max_cmd_len=$lt_cv_sys_max_cmd_len
24564 # Does compiler simultaneously support -c and -o options?
24565 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24567 # Must we lock files when doing compilation ?
24568 need_locks=$lt_need_locks
24570 # Do we need the lib prefix for modules?
24571 need_lib_prefix=$need_lib_prefix
24573 # Do we need a version for libraries?
24574 need_version=$need_version
24576 # Whether dlopen is supported.
24577 dlopen_support=$enable_dlopen
24579 # Whether dlopen of programs is supported.
24580 dlopen_self=$enable_dlopen_self
24582 # Whether dlopen of statically linked programs is supported.
24583 dlopen_self_static=$enable_dlopen_self_static
24585 # Compiler flag to prevent dynamic linking.
24586 link_static_flag=$lt_lt_prog_compiler_static_RC
24588 # Compiler flag to turn off builtin functions.
24589 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24591 # Compiler flag to allow reflexive dlopens.
24592 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24594 # Compiler flag to generate shared objects directly from archives.
24595 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24597 # Compiler flag to generate thread-safe objects.
24598 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24600 # Library versioning type.
24601 version_type=$version_type
24603 # Format of library name prefix.
24604 libname_spec=$lt_libname_spec
24606 # List of archive names. First name is the real one, the rest are links.
24607 # The last name is the one that the linker finds with -lNAME.
24608 library_names_spec=$lt_library_names_spec
24610 # The coded name of the library, if different from the real name.
24611 soname_spec=$lt_soname_spec
24613 # Commands used to build and install an old-style archive.
24615 old_archive_cmds=$lt_old_archive_cmds_RC
24616 old_postinstall_cmds=$lt_old_postinstall_cmds
24617 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24619 # Create an old-style archive from a shared archive.
24620 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24622 # Create a temporary old-style archive to link instead of a shared archive.
24623 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24625 # Commands used to build and install a shared archive.
24626 archive_cmds=$lt_archive_cmds_RC
24627 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24628 postinstall_cmds=$lt_postinstall_cmds
24629 postuninstall_cmds=$lt_postuninstall_cmds
24631 # Commands used to build a loadable module (assumed same as above if empty)
24632 module_cmds=$lt_module_cmds_RC
24633 module_expsym_cmds=$lt_module_expsym_cmds_RC
24635 # Commands to strip libraries.
24636 old_striplib=$lt_old_striplib
24637 striplib=$lt_striplib
24639 # Dependencies to place before the objects being linked to create a
24641 predep_objects=$lt_predep_objects_RC
24643 # Dependencies to place after the objects being linked to create a
24645 postdep_objects=$lt_postdep_objects_RC
24647 # Dependencies to place before the objects being linked to create a
24649 predeps=$lt_predeps_RC
24651 # Dependencies to place after the objects being linked to create a
24653 postdeps=$lt_postdeps_RC
24655 # The library search path used internally by the compiler when linking
24656 # a shared library.
24657 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24659 # Method to check whether dependent libraries are shared objects.
24660 deplibs_check_method=$lt_deplibs_check_method
24662 # Command to use when deplibs_check_method == file_magic.
24663 file_magic_cmd=$lt_file_magic_cmd
24665 # Flag that allows shared libraries with undefined symbols to be built.
24666 allow_undefined_flag=$lt_allow_undefined_flag_RC
24668 # Flag that forces no undefined symbols.
24669 no_undefined_flag=$lt_no_undefined_flag_RC
24671 # Commands used to finish a libtool library installation in a directory.
24672 finish_cmds=$lt_finish_cmds
24674 # Same as above, but a single script fragment to be evaled but not shown.
24675 finish_eval=$lt_finish_eval
24677 # Take the output of nm and produce a listing of raw symbols and C names.
24678 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24680 # Transform the output of nm in a proper C declaration
24681 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24683 # Transform the output of nm in a C name address pair
24684 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24686 # This is the shared library runtime path variable.
24687 runpath_var=$runpath_var
24689 # This is the shared library path variable.
24690 shlibpath_var=$shlibpath_var
24692 # Is shlibpath searched before the hard-coded library search path?
24693 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24695 # How to hardcode a shared library path into an executable.
24696 hardcode_action=$hardcode_action_RC
24698 # Whether we should hardcode library paths into libraries.
24699 hardcode_into_libs=$hardcode_into_libs
24701 # Flag to hardcode \$libdir into a binary during linking.
24702 # This must work even if \$libdir does not exist.
24703 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24705 # If ld is used when linking, flag to hardcode \$libdir into
24706 # a binary during linking. This must work even if \$libdir does
24708 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24710 # Whether we need a single -rpath flag with a separated argument.
24711 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24713 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24714 # resulting binary.
24715 hardcode_direct=$hardcode_direct_RC
24717 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24718 # resulting binary.
24719 hardcode_minus_L=$hardcode_minus_L_RC
24721 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24722 # the resulting binary.
24723 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24725 # Set to yes if building a shared library automatically hardcodes DIR into the library
24726 # and all subsequent libraries and executables linked against it.
24727 hardcode_automatic=$hardcode_automatic_RC
24729 # Variables whose values should be saved in libtool wrapper scripts and
24730 # restored at relink time.
24731 variables_saved_for_relink="$variables_saved_for_relink"
24733 # Whether libtool must link a program against all its dependency libraries.
24734 link_all_deplibs=$link_all_deplibs_RC
24736 # Compile-time system search path for libraries
24737 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24739 # Run-time system search path for libraries
24740 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24742 # Fix the shell variable \$srcfile for the compiler.
24743 fix_srcfile_path="$fix_srcfile_path_RC"
24745 # Set to yes if exported symbols are required.
24746 always_export_symbols=$always_export_symbols_RC
24748 # The commands to list exported symbols.
24749 export_symbols_cmds=$lt_export_symbols_cmds_RC
24751 # The commands to extract the exported symbol list from a shared archive.
24752 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24754 # Symbols that should not be listed in the preloaded symbols.
24755 exclude_expsyms=$lt_exclude_expsyms_RC
24757 # Symbols that must always be exported.
24758 include_expsyms=$lt_include_expsyms_RC
24760 # ### END LIBTOOL TAG CONFIG: $tagname
24766 # If there is no Makefile yet, we rely on a make rule to execute
24767 # `config.status --recheck' to rerun these tests and create the
24768 # libtool script then.
24769 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24770 if test -f "$ltmain_in"; then
24771 test -f Makefile && make "$ltmain"
24777 ac_cpp='$CPP $CPPFLAGS'
24778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24787 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24788 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24789 { (exit 1); exit 1; }; }
24793 # Append the new tag name to the list of available tags.
24794 if test -n "$tagname" ; then
24795 available_tags="$available_tags $tagname"
24801 # Now substitute the updated list of available tags.
24802 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24803 mv "${ofile}T" "$ofile"
24807 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24808 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24809 { (exit 1); exit 1; }; }
24815 # This can be used to rebuild libtool when needed
24816 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24818 # Always use our own libtool.
24819 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24821 # Prevent multiple expansion
24843 if test "$lt_cv_dlopen_self" = "yes" ; then
24845 cat >>confdefs.h <<\_ACEOF
24846 #define CAN_DLOPEN_SELF 1
24851 etags_version=`$ETAGS --version 2>&1`
24852 case "$etags_version" in
24853 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24854 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24855 *) ETAGSFLAGS="" ;;
24857 ETAGSFLAGS=$ETAGSFLAGS
24860 if test "$WITH_LLVMGCCDIR" = "default" ; then
24861 LLVMGCC="llvm-gcc${EXEEXT}"
24862 LLVMGXX="llvm-g++${EXEEXT}"
24863 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24864 set dummy $LLVMGCC; ac_word=$2
24865 echo "$as_me:$LINENO: checking for $ac_word" >&5
24866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24867 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24868 echo $ECHO_N "(cached) $ECHO_C" >&6
24872 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24876 for as_dir in $PATH
24879 test -z "$as_dir" && as_dir=.
24880 for ac_exec_ext in '' $ac_executable_extensions; do
24881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24882 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24892 LLVMGCC=$ac_cv_path_LLVMGCC
24894 if test -n "$LLVMGCC"; then
24895 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24896 echo "${ECHO_T}$LLVMGCC" >&6
24898 echo "$as_me:$LINENO: result: no" >&5
24899 echo "${ECHO_T}no" >&6
24902 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24903 set dummy $LLVMGXX; ac_word=$2
24904 echo "$as_me:$LINENO: checking for $ac_word" >&5
24905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24906 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24907 echo $ECHO_N "(cached) $ECHO_C" >&6
24911 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24915 for as_dir in $PATH
24918 test -z "$as_dir" && as_dir=.
24919 for ac_exec_ext in '' $ac_executable_extensions; do
24920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24921 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24931 LLVMGXX=$ac_cv_path_LLVMGXX
24933 if test -n "$LLVMGXX"; then
24934 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24935 echo "${ECHO_T}$LLVMGXX" >&6
24937 echo "$as_me:$LINENO: result: no" >&5
24938 echo "${ECHO_T}no" >&6
24942 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24943 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24950 echo "$as_me:$LINENO: checking tool compatibility" >&5
24951 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24964 if test "$GCC" != "yes" && test "$ICC" != "yes"
24966 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24967 echo "$as_me: error: gcc|icc required but not found" >&2;}
24968 { (exit 1); exit 1; }; }
24971 if test "$GXX" != "yes" && test "$IXX" != "yes"
24973 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24974 echo "$as_me: error: g++|icc required but not found" >&2;}
24975 { (exit 1); exit 1; }; }
24978 if test "$GCC" = "yes"
24980 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
24981 if test "$gccmajor" -lt "3"
24983 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24984 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24985 { (exit 1); exit 1; }; }
24989 if test -z "$llvm_cv_gnu_make_command"
24991 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24992 echo "$as_me: error: GNU Make required but not found" >&2;}
24993 { (exit 1); exit 1; }; }
24996 echo "$as_me:$LINENO: result: ok" >&5
24997 echo "${ECHO_T}ok" >&6
25001 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25002 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25003 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25004 echo $ECHO_N "(cached) $ECHO_C" >&6
25006 ac_check_lib_save_LIBS=$LIBS
25008 cat >conftest.$ac_ext <<_ACEOF
25011 cat confdefs.h >>conftest.$ac_ext
25012 cat >>conftest.$ac_ext <<_ACEOF
25013 /* end confdefs.h. */
25015 /* Override any gcc2 internal prototype to avoid an error. */
25019 /* We use char because int might match the return type of a gcc2
25020 builtin and then its argument prototype would still apply. */
25030 rm -f conftest.$ac_objext conftest$ac_exeext
25031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25032 (eval $ac_link) 2>conftest.er1
25034 grep -v '^ *+' conftest.er1 >conftest.err
25036 cat conftest.err >&5
25037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); } &&
25039 { ac_try='test -z "$ac_c_werror_flag"
25040 || test ! -s conftest.err'
25041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25042 (eval $ac_try) 2>&5
25044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045 (exit $ac_status); }; } &&
25046 { ac_try='test -s conftest$ac_exeext'
25047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25048 (eval $ac_try) 2>&5
25050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051 (exit $ac_status); }; }; then
25052 ac_cv_lib_elf_elf_begin=yes
25054 echo "$as_me: failed program was:" >&5
25055 sed 's/^/| /' conftest.$ac_ext >&5
25057 ac_cv_lib_elf_elf_begin=no
25059 rm -f conftest.err conftest.$ac_objext \
25060 conftest$ac_exeext conftest.$ac_ext
25061 LIBS=$ac_check_lib_save_LIBS
25063 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25064 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25065 if test $ac_cv_lib_elf_elf_begin = yes; then
25066 cat >>confdefs.h <<_ACEOF
25067 #define HAVE_LIBELF 1
25075 echo "$as_me:$LINENO: checking for sin in -lm" >&5
25076 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25077 if test "${ac_cv_lib_m_sin+set}" = set; then
25078 echo $ECHO_N "(cached) $ECHO_C" >&6
25080 ac_check_lib_save_LIBS=$LIBS
25082 cat >conftest.$ac_ext <<_ACEOF
25085 cat confdefs.h >>conftest.$ac_ext
25086 cat >>conftest.$ac_ext <<_ACEOF
25087 /* end confdefs.h. */
25089 /* Override any gcc2 internal prototype to avoid an error. */
25093 /* We use char because int might match the return type of a gcc2
25094 builtin and then its argument prototype would still apply. */
25104 rm -f conftest.$ac_objext conftest$ac_exeext
25105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25106 (eval $ac_link) 2>conftest.er1
25108 grep -v '^ *+' conftest.er1 >conftest.err
25110 cat conftest.err >&5
25111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); } &&
25113 { ac_try='test -z "$ac_c_werror_flag"
25114 || test ! -s conftest.err'
25115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25116 (eval $ac_try) 2>&5
25118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); }; } &&
25120 { ac_try='test -s conftest$ac_exeext'
25121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25122 (eval $ac_try) 2>&5
25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 (exit $ac_status); }; }; then
25126 ac_cv_lib_m_sin=yes
25128 echo "$as_me: failed program was:" >&5
25129 sed 's/^/| /' conftest.$ac_ext >&5
25133 rm -f conftest.err conftest.$ac_objext \
25134 conftest$ac_exeext conftest.$ac_ext
25135 LIBS=$ac_check_lib_save_LIBS
25137 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25138 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25139 if test $ac_cv_lib_m_sin = yes; then
25140 cat >>confdefs.h <<_ACEOF
25141 #define HAVE_LIBM 1
25149 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25150 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25151 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25152 echo $ECHO_N "(cached) $ECHO_C" >&6
25154 ac_func_search_save_LIBS=$LIBS
25155 ac_cv_search_lt_dlopen=no
25156 cat >conftest.$ac_ext <<_ACEOF
25159 cat confdefs.h >>conftest.$ac_ext
25160 cat >>conftest.$ac_ext <<_ACEOF
25161 /* end confdefs.h. */
25163 /* Override any gcc2 internal prototype to avoid an error. */
25167 /* We use char because int might match the return type of a gcc2
25168 builtin and then its argument prototype would still apply. */
25178 rm -f conftest.$ac_objext conftest$ac_exeext
25179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25180 (eval $ac_link) 2>conftest.er1
25182 grep -v '^ *+' conftest.er1 >conftest.err
25184 cat conftest.err >&5
25185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25186 (exit $ac_status); } &&
25187 { ac_try='test -z "$ac_c_werror_flag"
25188 || test ! -s conftest.err'
25189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25190 (eval $ac_try) 2>&5
25192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193 (exit $ac_status); }; } &&
25194 { ac_try='test -s conftest$ac_exeext'
25195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25196 (eval $ac_try) 2>&5
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); }; }; then
25200 ac_cv_search_lt_dlopen="none required"
25202 echo "$as_me: failed program was:" >&5
25203 sed 's/^/| /' conftest.$ac_ext >&5
25206 rm -f conftest.err conftest.$ac_objext \
25207 conftest$ac_exeext conftest.$ac_ext
25208 if test "$ac_cv_search_lt_dlopen" = no; then
25209 for ac_lib in ltdl; do
25210 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25211 cat >conftest.$ac_ext <<_ACEOF
25214 cat confdefs.h >>conftest.$ac_ext
25215 cat >>conftest.$ac_ext <<_ACEOF
25216 /* end confdefs.h. */
25218 /* Override any gcc2 internal prototype to avoid an error. */
25222 /* We use char because int might match the return type of a gcc2
25223 builtin and then its argument prototype would still apply. */
25233 rm -f conftest.$ac_objext conftest$ac_exeext
25234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25235 (eval $ac_link) 2>conftest.er1
25237 grep -v '^ *+' conftest.er1 >conftest.err
25239 cat conftest.err >&5
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); } &&
25242 { ac_try='test -z "$ac_c_werror_flag"
25243 || test ! -s conftest.err'
25244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25245 (eval $ac_try) 2>&5
25247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248 (exit $ac_status); }; } &&
25249 { ac_try='test -s conftest$ac_exeext'
25250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25251 (eval $ac_try) 2>&5
25253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254 (exit $ac_status); }; }; then
25255 ac_cv_search_lt_dlopen="-l$ac_lib"
25258 echo "$as_me: failed program was:" >&5
25259 sed 's/^/| /' conftest.$ac_ext >&5
25262 rm -f conftest.err conftest.$ac_objext \
25263 conftest$ac_exeext conftest.$ac_ext
25266 LIBS=$ac_func_search_save_LIBS
25268 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25269 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25270 if test "$ac_cv_search_lt_dlopen" != no; then
25271 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25273 cat >>confdefs.h <<\_ACEOF
25274 #define HAVE_LT_DLOPEN 1
25278 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25279 not be available" >&5
25280 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25281 not be available" >&2;}
25285 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25286 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25287 if test "${ac_cv_search_dlopen+set}" = set; then
25288 echo $ECHO_N "(cached) $ECHO_C" >&6
25290 ac_func_search_save_LIBS=$LIBS
25291 ac_cv_search_dlopen=no
25292 cat >conftest.$ac_ext <<_ACEOF
25295 cat confdefs.h >>conftest.$ac_ext
25296 cat >>conftest.$ac_ext <<_ACEOF
25297 /* end confdefs.h. */
25299 /* Override any gcc2 internal prototype to avoid an error. */
25303 /* We use char because int might match the return type of a gcc2
25304 builtin and then its argument prototype would still apply. */
25314 rm -f conftest.$ac_objext conftest$ac_exeext
25315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25316 (eval $ac_link) 2>conftest.er1
25318 grep -v '^ *+' conftest.er1 >conftest.err
25320 cat conftest.err >&5
25321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322 (exit $ac_status); } &&
25323 { ac_try='test -z "$ac_c_werror_flag"
25324 || test ! -s conftest.err'
25325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25326 (eval $ac_try) 2>&5
25328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329 (exit $ac_status); }; } &&
25330 { ac_try='test -s conftest$ac_exeext'
25331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25332 (eval $ac_try) 2>&5
25334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335 (exit $ac_status); }; }; then
25336 ac_cv_search_dlopen="none required"
25338 echo "$as_me: failed program was:" >&5
25339 sed 's/^/| /' conftest.$ac_ext >&5
25342 rm -f conftest.err conftest.$ac_objext \
25343 conftest$ac_exeext conftest.$ac_ext
25344 if test "$ac_cv_search_dlopen" = no; then
25345 for ac_lib in dl; do
25346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25347 cat >conftest.$ac_ext <<_ACEOF
25350 cat confdefs.h >>conftest.$ac_ext
25351 cat >>conftest.$ac_ext <<_ACEOF
25352 /* end confdefs.h. */
25354 /* Override any gcc2 internal prototype to avoid an error. */
25358 /* We use char because int might match the return type of a gcc2
25359 builtin and then its argument prototype would still apply. */
25369 rm -f conftest.$ac_objext conftest$ac_exeext
25370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25371 (eval $ac_link) 2>conftest.er1
25373 grep -v '^ *+' conftest.er1 >conftest.err
25375 cat conftest.err >&5
25376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377 (exit $ac_status); } &&
25378 { ac_try='test -z "$ac_c_werror_flag"
25379 || test ! -s conftest.err'
25380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25381 (eval $ac_try) 2>&5
25383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384 (exit $ac_status); }; } &&
25385 { ac_try='test -s conftest$ac_exeext'
25386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25387 (eval $ac_try) 2>&5
25389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390 (exit $ac_status); }; }; then
25391 ac_cv_search_dlopen="-l$ac_lib"
25394 echo "$as_me: failed program was:" >&5
25395 sed 's/^/| /' conftest.$ac_ext >&5
25398 rm -f conftest.err conftest.$ac_objext \
25399 conftest$ac_exeext conftest.$ac_ext
25402 LIBS=$ac_func_search_save_LIBS
25404 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25405 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25406 if test "$ac_cv_search_dlopen" != no; then
25407 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25409 cat >>confdefs.h <<\_ACEOF
25410 #define HAVE_DLOPEN 1
25414 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25415 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25419 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25420 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25421 if test "${ac_cv_search_mallinfo+set}" = set; then
25422 echo $ECHO_N "(cached) $ECHO_C" >&6
25424 ac_func_search_save_LIBS=$LIBS
25425 ac_cv_search_mallinfo=no
25426 cat >conftest.$ac_ext <<_ACEOF
25429 cat confdefs.h >>conftest.$ac_ext
25430 cat >>conftest.$ac_ext <<_ACEOF
25431 /* end confdefs.h. */
25433 /* Override any gcc2 internal prototype to avoid an error. */
25437 /* We use char because int might match the return type of a gcc2
25438 builtin and then its argument prototype would still apply. */
25448 rm -f conftest.$ac_objext conftest$ac_exeext
25449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25450 (eval $ac_link) 2>conftest.er1
25452 grep -v '^ *+' conftest.er1 >conftest.err
25454 cat conftest.err >&5
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); } &&
25457 { ac_try='test -z "$ac_c_werror_flag"
25458 || test ! -s conftest.err'
25459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25460 (eval $ac_try) 2>&5
25462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463 (exit $ac_status); }; } &&
25464 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
25470 ac_cv_search_mallinfo="none required"
25472 echo "$as_me: failed program was:" >&5
25473 sed 's/^/| /' conftest.$ac_ext >&5
25476 rm -f conftest.err conftest.$ac_objext \
25477 conftest$ac_exeext conftest.$ac_ext
25478 if test "$ac_cv_search_mallinfo" = no; then
25479 for ac_lib in malloc; do
25480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25481 cat >conftest.$ac_ext <<_ACEOF
25484 cat confdefs.h >>conftest.$ac_ext
25485 cat >>conftest.$ac_ext <<_ACEOF
25486 /* end confdefs.h. */
25488 /* Override any gcc2 internal prototype to avoid an error. */
25492 /* We use char because int might match the return type of a gcc2
25493 builtin and then its argument prototype would still apply. */
25503 rm -f conftest.$ac_objext conftest$ac_exeext
25504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25505 (eval $ac_link) 2>conftest.er1
25507 grep -v '^ *+' conftest.er1 >conftest.err
25509 cat conftest.err >&5
25510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511 (exit $ac_status); } &&
25512 { ac_try='test -z "$ac_c_werror_flag"
25513 || test ! -s conftest.err'
25514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25515 (eval $ac_try) 2>&5
25517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); }; } &&
25519 { ac_try='test -s conftest$ac_exeext'
25520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25521 (eval $ac_try) 2>&5
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); }; }; then
25525 ac_cv_search_mallinfo="-l$ac_lib"
25528 echo "$as_me: failed program was:" >&5
25529 sed 's/^/| /' conftest.$ac_ext >&5
25532 rm -f conftest.err conftest.$ac_objext \
25533 conftest$ac_exeext conftest.$ac_ext
25536 LIBS=$ac_func_search_save_LIBS
25538 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25539 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25540 if test "$ac_cv_search_mallinfo" != no; then
25541 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25543 cat >>confdefs.h <<\_ACEOF
25544 #define HAVE_MALLINFO 1
25550 if test "$ENABLE_THREADS" -eq 1 ; then
25552 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25553 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25554 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25555 echo $ECHO_N "(cached) $ECHO_C" >&6
25557 ac_check_lib_save_LIBS=$LIBS
25558 LIBS="-lpthread $LIBS"
25559 cat >conftest.$ac_ext <<_ACEOF
25562 cat confdefs.h >>conftest.$ac_ext
25563 cat >>conftest.$ac_ext <<_ACEOF
25564 /* end confdefs.h. */
25566 /* Override any gcc2 internal prototype to avoid an error. */
25570 /* We use char because int might match the return type of a gcc2
25571 builtin and then its argument prototype would still apply. */
25572 char pthread_mutex_init ();
25576 pthread_mutex_init ();
25581 rm -f conftest.$ac_objext conftest$ac_exeext
25582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25583 (eval $ac_link) 2>conftest.er1
25585 grep -v '^ *+' conftest.er1 >conftest.err
25587 cat conftest.err >&5
25588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589 (exit $ac_status); } &&
25590 { ac_try='test -z "$ac_c_werror_flag"
25591 || test ! -s conftest.err'
25592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25593 (eval $ac_try) 2>&5
25595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596 (exit $ac_status); }; } &&
25597 { ac_try='test -s conftest$ac_exeext'
25598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25599 (eval $ac_try) 2>&5
25601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602 (exit $ac_status); }; }; then
25603 ac_cv_lib_pthread_pthread_mutex_init=yes
25605 echo "$as_me: failed program was:" >&5
25606 sed 's/^/| /' conftest.$ac_ext >&5
25608 ac_cv_lib_pthread_pthread_mutex_init=no
25610 rm -f conftest.err conftest.$ac_objext \
25611 conftest$ac_exeext conftest.$ac_ext
25612 LIBS=$ac_check_lib_save_LIBS
25614 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25615 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25616 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25617 cat >>confdefs.h <<_ACEOF
25618 #define HAVE_LIBPTHREAD 1
25621 LIBS="-lpthread $LIBS"
25625 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25626 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25627 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25628 echo $ECHO_N "(cached) $ECHO_C" >&6
25630 ac_func_search_save_LIBS=$LIBS
25631 ac_cv_search_pthread_mutex_lock=no
25632 cat >conftest.$ac_ext <<_ACEOF
25635 cat confdefs.h >>conftest.$ac_ext
25636 cat >>conftest.$ac_ext <<_ACEOF
25637 /* end confdefs.h. */
25639 /* Override any gcc2 internal prototype to avoid an error. */
25643 /* We use char because int might match the return type of a gcc2
25644 builtin and then its argument prototype would still apply. */
25645 char pthread_mutex_lock ();
25649 pthread_mutex_lock ();
25654 rm -f conftest.$ac_objext conftest$ac_exeext
25655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25656 (eval $ac_link) 2>conftest.er1
25658 grep -v '^ *+' conftest.er1 >conftest.err
25660 cat conftest.err >&5
25661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); } &&
25663 { ac_try='test -z "$ac_c_werror_flag"
25664 || test ! -s conftest.err'
25665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25666 (eval $ac_try) 2>&5
25668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); }; } &&
25670 { ac_try='test -s conftest$ac_exeext'
25671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25672 (eval $ac_try) 2>&5
25674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); }; }; then
25676 ac_cv_search_pthread_mutex_lock="none required"
25678 echo "$as_me: failed program was:" >&5
25679 sed 's/^/| /' conftest.$ac_ext >&5
25682 rm -f conftest.err conftest.$ac_objext \
25683 conftest$ac_exeext conftest.$ac_ext
25684 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25685 for ac_lib in pthread; do
25686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25687 cat >conftest.$ac_ext <<_ACEOF
25690 cat confdefs.h >>conftest.$ac_ext
25691 cat >>conftest.$ac_ext <<_ACEOF
25692 /* end confdefs.h. */
25694 /* Override any gcc2 internal prototype to avoid an error. */
25698 /* We use char because int might match the return type of a gcc2
25699 builtin and then its argument prototype would still apply. */
25700 char pthread_mutex_lock ();
25704 pthread_mutex_lock ();
25709 rm -f conftest.$ac_objext conftest$ac_exeext
25710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25711 (eval $ac_link) 2>conftest.er1
25713 grep -v '^ *+' conftest.er1 >conftest.err
25715 cat conftest.err >&5
25716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717 (exit $ac_status); } &&
25718 { ac_try='test -z "$ac_c_werror_flag"
25719 || test ! -s conftest.err'
25720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25721 (eval $ac_try) 2>&5
25723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25724 (exit $ac_status); }; } &&
25725 { ac_try='test -s conftest$ac_exeext'
25726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25727 (eval $ac_try) 2>&5
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); }; }; then
25731 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25734 echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25738 rm -f conftest.err conftest.$ac_objext \
25739 conftest$ac_exeext conftest.$ac_ext
25742 LIBS=$ac_func_search_save_LIBS
25744 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25745 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25746 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25747 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25749 cat >>confdefs.h <<\_ACEOF
25750 #define HAVE_PTHREAD_MUTEX_LOCK 1
25763 ac_header_dirent=no
25764 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25765 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25766 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25767 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25769 echo $ECHO_N "(cached) $ECHO_C" >&6
25771 cat >conftest.$ac_ext <<_ACEOF
25774 cat confdefs.h >>conftest.$ac_ext
25775 cat >>conftest.$ac_ext <<_ACEOF
25776 /* end confdefs.h. */
25777 #include <sys/types.h>
25789 rm -f conftest.$ac_objext
25790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25791 (eval $ac_compile) 2>conftest.er1
25793 grep -v '^ *+' conftest.er1 >conftest.err
25795 cat conftest.err >&5
25796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797 (exit $ac_status); } &&
25798 { ac_try='test -z "$ac_c_werror_flag"
25799 || test ! -s conftest.err'
25800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25801 (eval $ac_try) 2>&5
25803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804 (exit $ac_status); }; } &&
25805 { ac_try='test -s conftest.$ac_objext'
25806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25807 (eval $ac_try) 2>&5
25809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810 (exit $ac_status); }; }; then
25811 eval "$as_ac_Header=yes"
25813 echo "$as_me: failed program was:" >&5
25814 sed 's/^/| /' conftest.$ac_ext >&5
25816 eval "$as_ac_Header=no"
25818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25823 cat >>confdefs.h <<_ACEOF
25824 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25827 ac_header_dirent=$ac_hdr; break
25831 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25832 if test $ac_header_dirent = dirent.h; then
25833 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25834 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25835 if test "${ac_cv_search_opendir+set}" = set; then
25836 echo $ECHO_N "(cached) $ECHO_C" >&6
25838 ac_func_search_save_LIBS=$LIBS
25839 ac_cv_search_opendir=no
25840 cat >conftest.$ac_ext <<_ACEOF
25843 cat confdefs.h >>conftest.$ac_ext
25844 cat >>conftest.$ac_ext <<_ACEOF
25845 /* end confdefs.h. */
25847 /* Override any gcc2 internal prototype to avoid an error. */
25851 /* We use char because int might match the return type of a gcc2
25852 builtin and then its argument prototype would still apply. */
25862 rm -f conftest.$ac_objext conftest$ac_exeext
25863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25864 (eval $ac_link) 2>conftest.er1
25866 grep -v '^ *+' conftest.er1 >conftest.err
25868 cat conftest.err >&5
25869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25870 (exit $ac_status); } &&
25871 { ac_try='test -z "$ac_c_werror_flag"
25872 || test ! -s conftest.err'
25873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25874 (eval $ac_try) 2>&5
25876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877 (exit $ac_status); }; } &&
25878 { ac_try='test -s conftest$ac_exeext'
25879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25880 (eval $ac_try) 2>&5
25882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25883 (exit $ac_status); }; }; then
25884 ac_cv_search_opendir="none required"
25886 echo "$as_me: failed program was:" >&5
25887 sed 's/^/| /' conftest.$ac_ext >&5
25890 rm -f conftest.err conftest.$ac_objext \
25891 conftest$ac_exeext conftest.$ac_ext
25892 if test "$ac_cv_search_opendir" = no; then
25893 for ac_lib in dir; do
25894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25895 cat >conftest.$ac_ext <<_ACEOF
25898 cat confdefs.h >>conftest.$ac_ext
25899 cat >>conftest.$ac_ext <<_ACEOF
25900 /* end confdefs.h. */
25902 /* Override any gcc2 internal prototype to avoid an error. */
25906 /* We use char because int might match the return type of a gcc2
25907 builtin and then its argument prototype would still apply. */
25917 rm -f conftest.$ac_objext conftest$ac_exeext
25918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25919 (eval $ac_link) 2>conftest.er1
25921 grep -v '^ *+' conftest.er1 >conftest.err
25923 cat conftest.err >&5
25924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25925 (exit $ac_status); } &&
25926 { ac_try='test -z "$ac_c_werror_flag"
25927 || test ! -s conftest.err'
25928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25929 (eval $ac_try) 2>&5
25931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25932 (exit $ac_status); }; } &&
25933 { ac_try='test -s conftest$ac_exeext'
25934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25935 (eval $ac_try) 2>&5
25937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938 (exit $ac_status); }; }; then
25939 ac_cv_search_opendir="-l$ac_lib"
25942 echo "$as_me: failed program was:" >&5
25943 sed 's/^/| /' conftest.$ac_ext >&5
25946 rm -f conftest.err conftest.$ac_objext \
25947 conftest$ac_exeext conftest.$ac_ext
25950 LIBS=$ac_func_search_save_LIBS
25952 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25953 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25954 if test "$ac_cv_search_opendir" != no; then
25955 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25960 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25961 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25962 if test "${ac_cv_search_opendir+set}" = set; then
25963 echo $ECHO_N "(cached) $ECHO_C" >&6
25965 ac_func_search_save_LIBS=$LIBS
25966 ac_cv_search_opendir=no
25967 cat >conftest.$ac_ext <<_ACEOF
25970 cat confdefs.h >>conftest.$ac_ext
25971 cat >>conftest.$ac_ext <<_ACEOF
25972 /* end confdefs.h. */
25974 /* Override any gcc2 internal prototype to avoid an error. */
25978 /* We use char because int might match the return type of a gcc2
25979 builtin and then its argument prototype would still apply. */
25989 rm -f conftest.$ac_objext conftest$ac_exeext
25990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25991 (eval $ac_link) 2>conftest.er1
25993 grep -v '^ *+' conftest.er1 >conftest.err
25995 cat conftest.err >&5
25996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25997 (exit $ac_status); } &&
25998 { ac_try='test -z "$ac_c_werror_flag"
25999 || test ! -s conftest.err'
26000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26001 (eval $ac_try) 2>&5
26003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26004 (exit $ac_status); }; } &&
26005 { ac_try='test -s conftest$ac_exeext'
26006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26007 (eval $ac_try) 2>&5
26009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010 (exit $ac_status); }; }; then
26011 ac_cv_search_opendir="none required"
26013 echo "$as_me: failed program was:" >&5
26014 sed 's/^/| /' conftest.$ac_ext >&5
26017 rm -f conftest.err conftest.$ac_objext \
26018 conftest$ac_exeext conftest.$ac_ext
26019 if test "$ac_cv_search_opendir" = no; then
26020 for ac_lib in x; do
26021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26022 cat >conftest.$ac_ext <<_ACEOF
26025 cat confdefs.h >>conftest.$ac_ext
26026 cat >>conftest.$ac_ext <<_ACEOF
26027 /* end confdefs.h. */
26029 /* Override any gcc2 internal prototype to avoid an error. */
26033 /* We use char because int might match the return type of a gcc2
26034 builtin and then its argument prototype would still apply. */
26044 rm -f conftest.$ac_objext conftest$ac_exeext
26045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26046 (eval $ac_link) 2>conftest.er1
26048 grep -v '^ *+' conftest.er1 >conftest.err
26050 cat conftest.err >&5
26051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052 (exit $ac_status); } &&
26053 { ac_try='test -z "$ac_c_werror_flag"
26054 || test ! -s conftest.err'
26055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26056 (eval $ac_try) 2>&5
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); }; } &&
26060 { ac_try='test -s conftest$ac_exeext'
26061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26062 (eval $ac_try) 2>&5
26064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065 (exit $ac_status); }; }; then
26066 ac_cv_search_opendir="-l$ac_lib"
26069 echo "$as_me: failed program was:" >&5
26070 sed 's/^/| /' conftest.$ac_ext >&5
26073 rm -f conftest.err conftest.$ac_objext \
26074 conftest$ac_exeext conftest.$ac_ext
26077 LIBS=$ac_func_search_save_LIBS
26079 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26080 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26081 if test "$ac_cv_search_opendir" != no; then
26082 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26088 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26089 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26090 if test "${ac_cv_header_mmap_anon+set}" = set; then
26091 echo $ECHO_N "(cached) $ECHO_C" >&6
26094 ac_cpp='$CPP $CPPFLAGS'
26095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26099 cat >conftest.$ac_ext <<_ACEOF
26102 cat confdefs.h >>conftest.$ac_ext
26103 cat >>conftest.$ac_ext <<_ACEOF
26104 /* end confdefs.h. */
26105 #include <sys/mman.h>
26106 #include <unistd.h>
26111 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26116 rm -f conftest.$ac_objext
26117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26118 (eval $ac_compile) 2>conftest.er1
26120 grep -v '^ *+' conftest.er1 >conftest.err
26122 cat conftest.err >&5
26123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124 (exit $ac_status); } &&
26125 { ac_try='test -z "$ac_c_werror_flag"
26126 || test ! -s conftest.err'
26127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26128 (eval $ac_try) 2>&5
26130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131 (exit $ac_status); }; } &&
26132 { ac_try='test -s conftest.$ac_objext'
26133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26134 (eval $ac_try) 2>&5
26136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137 (exit $ac_status); }; }; then
26138 ac_cv_header_mmap_anon=yes
26140 echo "$as_me: failed program was:" >&5
26141 sed 's/^/| /' conftest.$ac_ext >&5
26143 ac_cv_header_mmap_anon=no
26145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26147 ac_cpp='$CPP $CPPFLAGS'
26148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26154 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26155 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26156 if test "$ac_cv_header_mmap_anon" = yes; then
26158 cat >>confdefs.h <<\_ACEOF
26159 #define HAVE_MMAP_ANONYMOUS 1
26164 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26165 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26166 if test "${ac_cv_header_stat_broken+set}" = set; then
26167 echo $ECHO_N "(cached) $ECHO_C" >&6
26169 cat >conftest.$ac_ext <<_ACEOF
26172 cat confdefs.h >>conftest.$ac_ext
26173 cat >>conftest.$ac_ext <<_ACEOF
26174 /* end confdefs.h. */
26175 #include <sys/types.h>
26176 #include <sys/stat.h>
26178 #if defined(S_ISBLK) && defined(S_IFDIR)
26179 # if S_ISBLK (S_IFDIR)
26184 #if defined(S_ISBLK) && defined(S_IFCHR)
26185 # if S_ISBLK (S_IFCHR)
26190 #if defined(S_ISLNK) && defined(S_IFREG)
26191 # if S_ISLNK (S_IFREG)
26196 #if defined(S_ISSOCK) && defined(S_IFREG)
26197 # if S_ISSOCK (S_IFREG)
26203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26204 $EGREP "You lose" >/dev/null 2>&1; then
26205 ac_cv_header_stat_broken=yes
26207 ac_cv_header_stat_broken=no
26212 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26213 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26214 if test $ac_cv_header_stat_broken = yes; then
26216 cat >>confdefs.h <<\_ACEOF
26217 #define STAT_MACROS_BROKEN 1
26222 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26223 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26224 if test "${ac_cv_header_stdc+set}" = set; then
26225 echo $ECHO_N "(cached) $ECHO_C" >&6
26227 cat >conftest.$ac_ext <<_ACEOF
26230 cat confdefs.h >>conftest.$ac_ext
26231 cat >>conftest.$ac_ext <<_ACEOF
26232 /* end confdefs.h. */
26233 #include <stdlib.h>
26234 #include <stdarg.h>
26235 #include <string.h>
26246 rm -f conftest.$ac_objext
26247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26248 (eval $ac_compile) 2>conftest.er1
26250 grep -v '^ *+' conftest.er1 >conftest.err
26252 cat conftest.err >&5
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); } &&
26255 { ac_try='test -z "$ac_c_werror_flag"
26256 || test ! -s conftest.err'
26257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26258 (eval $ac_try) 2>&5
26260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26261 (exit $ac_status); }; } &&
26262 { ac_try='test -s conftest.$ac_objext'
26263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26264 (eval $ac_try) 2>&5
26266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26267 (exit $ac_status); }; }; then
26268 ac_cv_header_stdc=yes
26270 echo "$as_me: failed program was:" >&5
26271 sed 's/^/| /' conftest.$ac_ext >&5
26273 ac_cv_header_stdc=no
26275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26277 if test $ac_cv_header_stdc = yes; then
26278 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26279 cat >conftest.$ac_ext <<_ACEOF
26282 cat confdefs.h >>conftest.$ac_ext
26283 cat >>conftest.$ac_ext <<_ACEOF
26284 /* end confdefs.h. */
26285 #include <string.h>
26288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26289 $EGREP "memchr" >/dev/null 2>&1; then
26292 ac_cv_header_stdc=no
26298 if test $ac_cv_header_stdc = yes; then
26299 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26300 cat >conftest.$ac_ext <<_ACEOF
26303 cat confdefs.h >>conftest.$ac_ext
26304 cat >>conftest.$ac_ext <<_ACEOF
26305 /* end confdefs.h. */
26306 #include <stdlib.h>
26309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26310 $EGREP "free" >/dev/null 2>&1; then
26313 ac_cv_header_stdc=no
26319 if test $ac_cv_header_stdc = yes; then
26320 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26321 if test "$cross_compiling" = yes; then
26324 cat >conftest.$ac_ext <<_ACEOF
26327 cat confdefs.h >>conftest.$ac_ext
26328 cat >>conftest.$ac_ext <<_ACEOF
26329 /* end confdefs.h. */
26331 #if ((' ' & 0x0FF) == 0x020)
26332 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26333 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26335 # define ISLOWER(c) \
26336 (('a' <= (c) && (c) <= 'i') \
26337 || ('j' <= (c) && (c) <= 'r') \
26338 || ('s' <= (c) && (c) <= 'z'))
26339 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26342 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26347 for (i = 0; i < 256; i++)
26348 if (XOR (islower (i), ISLOWER (i))
26349 || toupper (i) != TOUPPER (i))
26354 rm -f conftest$ac_exeext
26355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26356 (eval $ac_link) 2>&5
26358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26361 (eval $ac_try) 2>&5
26363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364 (exit $ac_status); }; }; then
26367 echo "$as_me: program exited with status $ac_status" >&5
26368 echo "$as_me: failed program was:" >&5
26369 sed 's/^/| /' conftest.$ac_ext >&5
26371 ( exit $ac_status )
26372 ac_cv_header_stdc=no
26374 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26378 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26379 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26380 if test $ac_cv_header_stdc = yes; then
26382 cat >>confdefs.h <<\_ACEOF
26383 #define STDC_HEADERS 1
26388 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26389 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26390 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26391 echo $ECHO_N "(cached) $ECHO_C" >&6
26393 cat >conftest.$ac_ext <<_ACEOF
26396 cat confdefs.h >>conftest.$ac_ext
26397 cat >>conftest.$ac_ext <<_ACEOF
26398 /* end confdefs.h. */
26399 #include <sys/types.h>
26400 #include <sys/wait.h>
26401 #ifndef WEXITSTATUS
26402 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26405 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26413 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26418 rm -f conftest.$ac_objext
26419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26420 (eval $ac_compile) 2>conftest.er1
26422 grep -v '^ *+' conftest.er1 >conftest.err
26424 cat conftest.err >&5
26425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426 (exit $ac_status); } &&
26427 { ac_try='test -z "$ac_c_werror_flag"
26428 || test ! -s conftest.err'
26429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26430 (eval $ac_try) 2>&5
26432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433 (exit $ac_status); }; } &&
26434 { ac_try='test -s conftest.$ac_objext'
26435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26436 (eval $ac_try) 2>&5
26438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26439 (exit $ac_status); }; }; then
26440 ac_cv_header_sys_wait_h=yes
26442 echo "$as_me: failed program was:" >&5
26443 sed 's/^/| /' conftest.$ac_ext >&5
26445 ac_cv_header_sys_wait_h=no
26447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26449 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26450 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26451 if test $ac_cv_header_sys_wait_h = yes; then
26453 cat >>confdefs.h <<\_ACEOF
26454 #define HAVE_SYS_WAIT_H 1
26459 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26460 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26461 if test "${ac_cv_header_time+set}" = set; then
26462 echo $ECHO_N "(cached) $ECHO_C" >&6
26464 cat >conftest.$ac_ext <<_ACEOF
26467 cat confdefs.h >>conftest.$ac_ext
26468 cat >>conftest.$ac_ext <<_ACEOF
26469 /* end confdefs.h. */
26470 #include <sys/types.h>
26471 #include <sys/time.h>
26477 if ((struct tm *) 0)
26483 rm -f conftest.$ac_objext
26484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26485 (eval $ac_compile) 2>conftest.er1
26487 grep -v '^ *+' conftest.er1 >conftest.err
26489 cat conftest.err >&5
26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); } &&
26492 { ac_try='test -z "$ac_c_werror_flag"
26493 || test ! -s conftest.err'
26494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26495 (eval $ac_try) 2>&5
26497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498 (exit $ac_status); }; } &&
26499 { ac_try='test -s conftest.$ac_objext'
26500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26501 (eval $ac_try) 2>&5
26503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504 (exit $ac_status); }; }; then
26505 ac_cv_header_time=yes
26507 echo "$as_me: failed program was:" >&5
26508 sed 's/^/| /' conftest.$ac_ext >&5
26510 ac_cv_header_time=no
26512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26514 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26515 echo "${ECHO_T}$ac_cv_header_time" >&6
26516 if test $ac_cv_header_time = yes; then
26518 cat >>confdefs.h <<\_ACEOF
26519 #define TIME_WITH_SYS_TIME 1
26531 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26535 echo "$as_me:$LINENO: checking for $ac_header" >&5
26536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26538 echo $ECHO_N "(cached) $ECHO_C" >&6
26540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26543 # Is the header compilable?
26544 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26546 cat >conftest.$ac_ext <<_ACEOF
26549 cat confdefs.h >>conftest.$ac_ext
26550 cat >>conftest.$ac_ext <<_ACEOF
26551 /* end confdefs.h. */
26552 $ac_includes_default
26553 #include <$ac_header>
26555 rm -f conftest.$ac_objext
26556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26557 (eval $ac_compile) 2>conftest.er1
26559 grep -v '^ *+' conftest.er1 >conftest.err
26561 cat conftest.err >&5
26562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563 (exit $ac_status); } &&
26564 { ac_try='test -z "$ac_c_werror_flag"
26565 || test ! -s conftest.err'
26566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26567 (eval $ac_try) 2>&5
26569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26570 (exit $ac_status); }; } &&
26571 { ac_try='test -s conftest.$ac_objext'
26572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26573 (eval $ac_try) 2>&5
26575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576 (exit $ac_status); }; }; then
26577 ac_header_compiler=yes
26579 echo "$as_me: failed program was:" >&5
26580 sed 's/^/| /' conftest.$ac_ext >&5
26582 ac_header_compiler=no
26584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26586 echo "${ECHO_T}$ac_header_compiler" >&6
26588 # Is the header present?
26589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26591 cat >conftest.$ac_ext <<_ACEOF
26594 cat confdefs.h >>conftest.$ac_ext
26595 cat >>conftest.$ac_ext <<_ACEOF
26596 /* end confdefs.h. */
26597 #include <$ac_header>
26599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26602 grep -v '^ *+' conftest.er1 >conftest.err
26604 cat conftest.err >&5
26605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606 (exit $ac_status); } >/dev/null; then
26607 if test -s conftest.err; then
26608 ac_cpp_err=$ac_c_preproc_warn_flag
26609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26616 if test -z "$ac_cpp_err"; then
26617 ac_header_preproc=yes
26619 echo "$as_me: failed program was:" >&5
26620 sed 's/^/| /' conftest.$ac_ext >&5
26622 ac_header_preproc=no
26624 rm -f conftest.err conftest.$ac_ext
26625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26626 echo "${ECHO_T}$ac_header_preproc" >&6
26628 # So? What about this header?
26629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26635 ac_header_preproc=yes
26638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26652 ## ----------------------------------- ##
26653 ## Report this to llvmbugs@cs.uiuc.edu ##
26654 ## ----------------------------------- ##
26657 sed "s/^/$as_me: WARNING: /" >&2
26660 echo "$as_me:$LINENO: checking for $ac_header" >&5
26661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26663 echo $ECHO_N "(cached) $ECHO_C" >&6
26665 eval "$as_ac_Header=\$ac_header_preproc"
26667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26672 cat >>confdefs.h <<_ACEOF
26673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26686 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26690 echo "$as_me:$LINENO: checking for $ac_header" >&5
26691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26693 echo $ECHO_N "(cached) $ECHO_C" >&6
26695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26698 # Is the header compilable?
26699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26701 cat >conftest.$ac_ext <<_ACEOF
26704 cat confdefs.h >>conftest.$ac_ext
26705 cat >>conftest.$ac_ext <<_ACEOF
26706 /* end confdefs.h. */
26707 $ac_includes_default
26708 #include <$ac_header>
26710 rm -f conftest.$ac_objext
26711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26712 (eval $ac_compile) 2>conftest.er1
26714 grep -v '^ *+' conftest.er1 >conftest.err
26716 cat conftest.err >&5
26717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718 (exit $ac_status); } &&
26719 { ac_try='test -z "$ac_c_werror_flag"
26720 || test ! -s conftest.err'
26721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26722 (eval $ac_try) 2>&5
26724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725 (exit $ac_status); }; } &&
26726 { ac_try='test -s conftest.$ac_objext'
26727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26728 (eval $ac_try) 2>&5
26730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731 (exit $ac_status); }; }; then
26732 ac_header_compiler=yes
26734 echo "$as_me: failed program was:" >&5
26735 sed 's/^/| /' conftest.$ac_ext >&5
26737 ac_header_compiler=no
26739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26741 echo "${ECHO_T}$ac_header_compiler" >&6
26743 # Is the header present?
26744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26746 cat >conftest.$ac_ext <<_ACEOF
26749 cat confdefs.h >>conftest.$ac_ext
26750 cat >>conftest.$ac_ext <<_ACEOF
26751 /* end confdefs.h. */
26752 #include <$ac_header>
26754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26757 grep -v '^ *+' conftest.er1 >conftest.err
26759 cat conftest.err >&5
26760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761 (exit $ac_status); } >/dev/null; then
26762 if test -s conftest.err; then
26763 ac_cpp_err=$ac_c_preproc_warn_flag
26764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26771 if test -z "$ac_cpp_err"; then
26772 ac_header_preproc=yes
26774 echo "$as_me: failed program was:" >&5
26775 sed 's/^/| /' conftest.$ac_ext >&5
26777 ac_header_preproc=no
26779 rm -f conftest.err conftest.$ac_ext
26780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26781 echo "${ECHO_T}$ac_header_preproc" >&6
26783 # So? What about this header?
26784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26790 ac_header_preproc=yes
26793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26807 ## ----------------------------------- ##
26808 ## Report this to llvmbugs@cs.uiuc.edu ##
26809 ## ----------------------------------- ##
26812 sed "s/^/$as_me: WARNING: /" >&2
26815 echo "$as_me:$LINENO: checking for $ac_header" >&5
26816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26818 echo $ECHO_N "(cached) $ECHO_C" >&6
26820 eval "$as_ac_Header=\$ac_header_preproc"
26822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26827 cat >>confdefs.h <<_ACEOF
26828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26840 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26844 echo "$as_me:$LINENO: checking for $ac_header" >&5
26845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26847 echo $ECHO_N "(cached) $ECHO_C" >&6
26849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26852 # Is the header compilable?
26853 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26855 cat >conftest.$ac_ext <<_ACEOF
26858 cat confdefs.h >>conftest.$ac_ext
26859 cat >>conftest.$ac_ext <<_ACEOF
26860 /* end confdefs.h. */
26861 $ac_includes_default
26862 #include <$ac_header>
26864 rm -f conftest.$ac_objext
26865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26866 (eval $ac_compile) 2>conftest.er1
26868 grep -v '^ *+' conftest.er1 >conftest.err
26870 cat conftest.err >&5
26871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872 (exit $ac_status); } &&
26873 { ac_try='test -z "$ac_c_werror_flag"
26874 || test ! -s conftest.err'
26875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26876 (eval $ac_try) 2>&5
26878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879 (exit $ac_status); }; } &&
26880 { ac_try='test -s conftest.$ac_objext'
26881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882 (eval $ac_try) 2>&5
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); }; }; then
26886 ac_header_compiler=yes
26888 echo "$as_me: failed program was:" >&5
26889 sed 's/^/| /' conftest.$ac_ext >&5
26891 ac_header_compiler=no
26893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26894 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26895 echo "${ECHO_T}$ac_header_compiler" >&6
26897 # Is the header present?
26898 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26900 cat >conftest.$ac_ext <<_ACEOF
26903 cat confdefs.h >>conftest.$ac_ext
26904 cat >>conftest.$ac_ext <<_ACEOF
26905 /* end confdefs.h. */
26906 #include <$ac_header>
26908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26911 grep -v '^ *+' conftest.er1 >conftest.err
26913 cat conftest.err >&5
26914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915 (exit $ac_status); } >/dev/null; then
26916 if test -s conftest.err; then
26917 ac_cpp_err=$ac_c_preproc_warn_flag
26918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26925 if test -z "$ac_cpp_err"; then
26926 ac_header_preproc=yes
26928 echo "$as_me: failed program was:" >&5
26929 sed 's/^/| /' conftest.$ac_ext >&5
26931 ac_header_preproc=no
26933 rm -f conftest.err conftest.$ac_ext
26934 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26935 echo "${ECHO_T}$ac_header_preproc" >&6
26937 # So? What about this header?
26938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26940 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26941 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26943 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26944 ac_header_preproc=yes
26947 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26948 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26949 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26950 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26951 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26952 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26953 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26954 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26957 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26958 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26961 ## ----------------------------------- ##
26962 ## Report this to llvmbugs@cs.uiuc.edu ##
26963 ## ----------------------------------- ##
26966 sed "s/^/$as_me: WARNING: /" >&2
26969 echo "$as_me:$LINENO: checking for $ac_header" >&5
26970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26972 echo $ECHO_N "(cached) $ECHO_C" >&6
26974 eval "$as_ac_Header=\$ac_header_preproc"
26976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26981 cat >>confdefs.h <<_ACEOF
26982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26990 for ac_header in malloc/malloc.h
26992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26994 echo "$as_me:$LINENO: checking for $ac_header" >&5
26995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26997 echo $ECHO_N "(cached) $ECHO_C" >&6
26999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27002 # Is the header compilable?
27003 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27005 cat >conftest.$ac_ext <<_ACEOF
27008 cat confdefs.h >>conftest.$ac_ext
27009 cat >>conftest.$ac_ext <<_ACEOF
27010 /* end confdefs.h. */
27011 $ac_includes_default
27012 #include <$ac_header>
27014 rm -f conftest.$ac_objext
27015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27016 (eval $ac_compile) 2>conftest.er1
27018 grep -v '^ *+' conftest.er1 >conftest.err
27020 cat conftest.err >&5
27021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022 (exit $ac_status); } &&
27023 { ac_try='test -z "$ac_c_werror_flag"
27024 || test ! -s conftest.err'
27025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27026 (eval $ac_try) 2>&5
27028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029 (exit $ac_status); }; } &&
27030 { ac_try='test -s conftest.$ac_objext'
27031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27032 (eval $ac_try) 2>&5
27034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035 (exit $ac_status); }; }; then
27036 ac_header_compiler=yes
27038 echo "$as_me: failed program was:" >&5
27039 sed 's/^/| /' conftest.$ac_ext >&5
27041 ac_header_compiler=no
27043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27045 echo "${ECHO_T}$ac_header_compiler" >&6
27047 # Is the header present?
27048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27050 cat >conftest.$ac_ext <<_ACEOF
27053 cat confdefs.h >>conftest.$ac_ext
27054 cat >>conftest.$ac_ext <<_ACEOF
27055 /* end confdefs.h. */
27056 #include <$ac_header>
27058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27061 grep -v '^ *+' conftest.er1 >conftest.err
27063 cat conftest.err >&5
27064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065 (exit $ac_status); } >/dev/null; then
27066 if test -s conftest.err; then
27067 ac_cpp_err=$ac_c_preproc_warn_flag
27068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27075 if test -z "$ac_cpp_err"; then
27076 ac_header_preproc=yes
27078 echo "$as_me: failed program was:" >&5
27079 sed 's/^/| /' conftest.$ac_ext >&5
27081 ac_header_preproc=no
27083 rm -f conftest.err conftest.$ac_ext
27084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27085 echo "${ECHO_T}$ac_header_preproc" >&6
27087 # So? What about this header?
27088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27094 ac_header_preproc=yes
27097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27100 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27104 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27111 ## ----------------------------------- ##
27112 ## Report this to llvmbugs@cs.uiuc.edu ##
27113 ## ----------------------------------- ##
27116 sed "s/^/$as_me: WARNING: /" >&2
27119 echo "$as_me:$LINENO: checking for $ac_header" >&5
27120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27122 echo $ECHO_N "(cached) $ECHO_C" >&6
27124 eval "$as_ac_Header=\$ac_header_preproc"
27126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27131 cat >>confdefs.h <<_ACEOF
27132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27139 if test "$ENABLE_THREADS" -eq 1 ; then
27141 for ac_header in pthread.h
27143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27145 echo "$as_me:$LINENO: checking for $ac_header" >&5
27146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27148 echo $ECHO_N "(cached) $ECHO_C" >&6
27150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27153 # Is the header compilable?
27154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27156 cat >conftest.$ac_ext <<_ACEOF
27159 cat confdefs.h >>conftest.$ac_ext
27160 cat >>conftest.$ac_ext <<_ACEOF
27161 /* end confdefs.h. */
27162 $ac_includes_default
27163 #include <$ac_header>
27165 rm -f conftest.$ac_objext
27166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27167 (eval $ac_compile) 2>conftest.er1
27169 grep -v '^ *+' conftest.er1 >conftest.err
27171 cat conftest.err >&5
27172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173 (exit $ac_status); } &&
27174 { ac_try='test -z "$ac_c_werror_flag"
27175 || test ! -s conftest.err'
27176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27177 (eval $ac_try) 2>&5
27179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180 (exit $ac_status); }; } &&
27181 { ac_try='test -s conftest.$ac_objext'
27182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27183 (eval $ac_try) 2>&5
27185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186 (exit $ac_status); }; }; then
27187 ac_header_compiler=yes
27189 echo "$as_me: failed program was:" >&5
27190 sed 's/^/| /' conftest.$ac_ext >&5
27192 ac_header_compiler=no
27194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27195 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27196 echo "${ECHO_T}$ac_header_compiler" >&6
27198 # Is the header present?
27199 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27201 cat >conftest.$ac_ext <<_ACEOF
27204 cat confdefs.h >>conftest.$ac_ext
27205 cat >>conftest.$ac_ext <<_ACEOF
27206 /* end confdefs.h. */
27207 #include <$ac_header>
27209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27212 grep -v '^ *+' conftest.er1 >conftest.err
27214 cat conftest.err >&5
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216 (exit $ac_status); } >/dev/null; then
27217 if test -s conftest.err; then
27218 ac_cpp_err=$ac_c_preproc_warn_flag
27219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27226 if test -z "$ac_cpp_err"; then
27227 ac_header_preproc=yes
27229 echo "$as_me: failed program was:" >&5
27230 sed 's/^/| /' conftest.$ac_ext >&5
27232 ac_header_preproc=no
27234 rm -f conftest.err conftest.$ac_ext
27235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27236 echo "${ECHO_T}$ac_header_preproc" >&6
27238 # So? What about this header?
27239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27245 ac_header_preproc=yes
27248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27262 ## ----------------------------------- ##
27263 ## Report this to llvmbugs@cs.uiuc.edu ##
27264 ## ----------------------------------- ##
27267 sed "s/^/$as_me: WARNING: /" >&2
27270 echo "$as_me:$LINENO: checking for $ac_header" >&5
27271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27273 echo $ECHO_N "(cached) $ECHO_C" >&6
27275 eval "$as_ac_Header=\$ac_header_preproc"
27277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27282 cat >>confdefs.h <<_ACEOF
27283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27293 echo "$as_me:$LINENO: checking for pid_t" >&5
27294 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27295 if test "${ac_cv_type_pid_t+set}" = set; then
27296 echo $ECHO_N "(cached) $ECHO_C" >&6
27298 cat >conftest.$ac_ext <<_ACEOF
27301 cat confdefs.h >>conftest.$ac_ext
27302 cat >>conftest.$ac_ext <<_ACEOF
27303 /* end confdefs.h. */
27304 $ac_includes_default
27310 if (sizeof (pid_t))
27316 rm -f conftest.$ac_objext
27317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27318 (eval $ac_compile) 2>conftest.er1
27320 grep -v '^ *+' conftest.er1 >conftest.err
27322 cat conftest.err >&5
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); } &&
27325 { ac_try='test -z "$ac_c_werror_flag"
27326 || test ! -s conftest.err'
27327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27328 (eval $ac_try) 2>&5
27330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331 (exit $ac_status); }; } &&
27332 { ac_try='test -s conftest.$ac_objext'
27333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27334 (eval $ac_try) 2>&5
27336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337 (exit $ac_status); }; }; then
27338 ac_cv_type_pid_t=yes
27340 echo "$as_me: failed program was:" >&5
27341 sed 's/^/| /' conftest.$ac_ext >&5
27343 ac_cv_type_pid_t=no
27345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27347 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27348 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27349 if test $ac_cv_type_pid_t = yes; then
27353 cat >>confdefs.h <<_ACEOF
27359 echo "$as_me:$LINENO: checking for size_t" >&5
27360 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27361 if test "${ac_cv_type_size_t+set}" = set; then
27362 echo $ECHO_N "(cached) $ECHO_C" >&6
27364 cat >conftest.$ac_ext <<_ACEOF
27367 cat confdefs.h >>conftest.$ac_ext
27368 cat >>conftest.$ac_ext <<_ACEOF
27369 /* end confdefs.h. */
27370 $ac_includes_default
27376 if (sizeof (size_t))
27382 rm -f conftest.$ac_objext
27383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27384 (eval $ac_compile) 2>conftest.er1
27386 grep -v '^ *+' conftest.er1 >conftest.err
27388 cat conftest.err >&5
27389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390 (exit $ac_status); } &&
27391 { ac_try='test -z "$ac_c_werror_flag"
27392 || test ! -s conftest.err'
27393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27394 (eval $ac_try) 2>&5
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); }; } &&
27398 { ac_try='test -s conftest.$ac_objext'
27399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27400 (eval $ac_try) 2>&5
27402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403 (exit $ac_status); }; }; then
27404 ac_cv_type_size_t=yes
27406 echo "$as_me: failed program was:" >&5
27407 sed 's/^/| /' conftest.$ac_ext >&5
27409 ac_cv_type_size_t=no
27411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27413 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27414 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27415 if test $ac_cv_type_size_t = yes; then
27419 cat >>confdefs.h <<_ACEOF
27420 #define size_t unsigned
27425 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27426 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27427 if test "${ac_cv_type_signal+set}" = set; then
27428 echo $ECHO_N "(cached) $ECHO_C" >&6
27430 cat >conftest.$ac_ext <<_ACEOF
27433 cat confdefs.h >>conftest.$ac_ext
27434 cat >>conftest.$ac_ext <<_ACEOF
27435 /* end confdefs.h. */
27436 #include <sys/types.h>
27437 #include <signal.h>
27442 extern "C" void (*signal (int, void (*)(int)))(int);
27444 void (*signal ()) ();
27455 rm -f conftest.$ac_objext
27456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27457 (eval $ac_compile) 2>conftest.er1
27459 grep -v '^ *+' conftest.er1 >conftest.err
27461 cat conftest.err >&5
27462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463 (exit $ac_status); } &&
27464 { ac_try='test -z "$ac_c_werror_flag"
27465 || test ! -s conftest.err'
27466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27467 (eval $ac_try) 2>&5
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); }; } &&
27471 { ac_try='test -s conftest.$ac_objext'
27472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27473 (eval $ac_try) 2>&5
27475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476 (exit $ac_status); }; }; then
27477 ac_cv_type_signal=void
27479 echo "$as_me: failed program was:" >&5
27480 sed 's/^/| /' conftest.$ac_ext >&5
27482 ac_cv_type_signal=int
27484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27486 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27487 echo "${ECHO_T}$ac_cv_type_signal" >&6
27489 cat >>confdefs.h <<_ACEOF
27490 #define RETSIGTYPE $ac_cv_type_signal
27494 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27495 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27496 if test "${ac_cv_struct_tm+set}" = set; then
27497 echo $ECHO_N "(cached) $ECHO_C" >&6
27499 cat >conftest.$ac_ext <<_ACEOF
27502 cat confdefs.h >>conftest.$ac_ext
27503 cat >>conftest.$ac_ext <<_ACEOF
27504 /* end confdefs.h. */
27505 #include <sys/types.h>
27511 struct tm *tp; tp->tm_sec;
27516 rm -f conftest.$ac_objext
27517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27518 (eval $ac_compile) 2>conftest.er1
27520 grep -v '^ *+' conftest.er1 >conftest.err
27522 cat conftest.err >&5
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); } &&
27525 { ac_try='test -z "$ac_c_werror_flag"
27526 || test ! -s conftest.err'
27527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27528 (eval $ac_try) 2>&5
27530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531 (exit $ac_status); }; } &&
27532 { ac_try='test -s conftest.$ac_objext'
27533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27534 (eval $ac_try) 2>&5
27536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537 (exit $ac_status); }; }; then
27538 ac_cv_struct_tm=time.h
27540 echo "$as_me: failed program was:" >&5
27541 sed 's/^/| /' conftest.$ac_ext >&5
27543 ac_cv_struct_tm=sys/time.h
27545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27547 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27548 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27549 if test $ac_cv_struct_tm = sys/time.h; then
27551 cat >>confdefs.h <<\_ACEOF
27552 #define TM_IN_SYS_TIME 1
27557 echo "$as_me:$LINENO: checking for int64_t" >&5
27558 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27559 if test "${ac_cv_type_int64_t+set}" = set; then
27560 echo $ECHO_N "(cached) $ECHO_C" >&6
27562 cat >conftest.$ac_ext <<_ACEOF
27565 cat confdefs.h >>conftest.$ac_ext
27566 cat >>conftest.$ac_ext <<_ACEOF
27567 /* end confdefs.h. */
27568 $ac_includes_default
27574 if (sizeof (int64_t))
27580 rm -f conftest.$ac_objext
27581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27582 (eval $ac_compile) 2>conftest.er1
27584 grep -v '^ *+' conftest.er1 >conftest.err
27586 cat conftest.err >&5
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588 (exit $ac_status); } &&
27589 { ac_try='test -z "$ac_c_werror_flag"
27590 || test ! -s conftest.err'
27591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27592 (eval $ac_try) 2>&5
27594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); }; } &&
27596 { ac_try='test -s conftest.$ac_objext'
27597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27598 (eval $ac_try) 2>&5
27600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601 (exit $ac_status); }; }; then
27602 ac_cv_type_int64_t=yes
27604 echo "$as_me: failed program was:" >&5
27605 sed 's/^/| /' conftest.$ac_ext >&5
27607 ac_cv_type_int64_t=no
27609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27611 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27612 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27613 if test $ac_cv_type_int64_t = yes; then
27615 cat >>confdefs.h <<_ACEOF
27616 #define HAVE_INT64_T 1
27621 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27622 echo "$as_me: error: Type int64_t required but not found" >&2;}
27623 { (exit 1); exit 1; }; }
27626 echo "$as_me:$LINENO: checking for uint64_t" >&5
27627 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27628 if test "${ac_cv_type_uint64_t+set}" = set; then
27629 echo $ECHO_N "(cached) $ECHO_C" >&6
27631 cat >conftest.$ac_ext <<_ACEOF
27634 cat confdefs.h >>conftest.$ac_ext
27635 cat >>conftest.$ac_ext <<_ACEOF
27636 /* end confdefs.h. */
27637 $ac_includes_default
27641 if ((uint64_t *) 0)
27643 if (sizeof (uint64_t))
27649 rm -f conftest.$ac_objext
27650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27651 (eval $ac_compile) 2>conftest.er1
27653 grep -v '^ *+' conftest.er1 >conftest.err
27655 cat conftest.err >&5
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); } &&
27658 { ac_try='test -z "$ac_c_werror_flag"
27659 || test ! -s conftest.err'
27660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27661 (eval $ac_try) 2>&5
27663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664 (exit $ac_status); }; } &&
27665 { ac_try='test -s conftest.$ac_objext'
27666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27667 (eval $ac_try) 2>&5
27669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670 (exit $ac_status); }; }; then
27671 ac_cv_type_uint64_t=yes
27673 echo "$as_me: failed program was:" >&5
27674 sed 's/^/| /' conftest.$ac_ext >&5
27676 ac_cv_type_uint64_t=no
27678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27680 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27681 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27682 if test $ac_cv_type_uint64_t = yes; then
27684 cat >>confdefs.h <<_ACEOF
27685 #define HAVE_UINT64_T 1
27690 echo "$as_me:$LINENO: checking for u_int64_t" >&5
27691 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27692 if test "${ac_cv_type_u_int64_t+set}" = set; then
27693 echo $ECHO_N "(cached) $ECHO_C" >&6
27695 cat >conftest.$ac_ext <<_ACEOF
27698 cat confdefs.h >>conftest.$ac_ext
27699 cat >>conftest.$ac_ext <<_ACEOF
27700 /* end confdefs.h. */
27701 $ac_includes_default
27705 if ((u_int64_t *) 0)
27707 if (sizeof (u_int64_t))
27713 rm -f conftest.$ac_objext
27714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27715 (eval $ac_compile) 2>conftest.er1
27717 grep -v '^ *+' conftest.er1 >conftest.err
27719 cat conftest.err >&5
27720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721 (exit $ac_status); } &&
27722 { ac_try='test -z "$ac_c_werror_flag"
27723 || test ! -s conftest.err'
27724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27725 (eval $ac_try) 2>&5
27727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); }; } &&
27729 { ac_try='test -s conftest.$ac_objext'
27730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27731 (eval $ac_try) 2>&5
27733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734 (exit $ac_status); }; }; then
27735 ac_cv_type_u_int64_t=yes
27737 echo "$as_me: failed program was:" >&5
27738 sed 's/^/| /' conftest.$ac_ext >&5
27740 ac_cv_type_u_int64_t=no
27742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27744 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27745 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27746 if test $ac_cv_type_u_int64_t = yes; then
27748 cat >>confdefs.h <<_ACEOF
27749 #define HAVE_U_INT64_T 1
27754 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27755 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27756 { (exit 1); exit 1; }; }
27770 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
27772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27773 echo "$as_me:$LINENO: checking for $ac_func" >&5
27774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27775 if eval "test \"\${$as_ac_var+set}\" = set"; then
27776 echo $ECHO_N "(cached) $ECHO_C" >&6
27778 cat >conftest.$ac_ext <<_ACEOF
27781 cat confdefs.h >>conftest.$ac_ext
27782 cat >>conftest.$ac_ext <<_ACEOF
27783 /* end confdefs.h. */
27784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27786 #define $ac_func innocuous_$ac_func
27788 /* System header to define __stub macros and hopefully few prototypes,
27789 which can conflict with char $ac_func (); below.
27790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27791 <limits.h> exists even on freestanding compilers. */
27794 # include <limits.h>
27796 # include <assert.h>
27801 /* Override any gcc2 internal prototype to avoid an error. */
27806 /* We use char because int might match the return type of a gcc2
27807 builtin and then its argument prototype would still apply. */
27809 /* The GNU C library defines this for functions which it implements
27810 to always fail with ENOSYS. Some functions are actually named
27811 something starting with __ and the normal name is an alias. */
27812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27815 char (*f) () = $ac_func;
27824 return f != $ac_func;
27829 rm -f conftest.$ac_objext conftest$ac_exeext
27830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27831 (eval $ac_link) 2>conftest.er1
27833 grep -v '^ *+' conftest.er1 >conftest.err
27835 cat conftest.err >&5
27836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837 (exit $ac_status); } &&
27838 { ac_try='test -z "$ac_c_werror_flag"
27839 || test ! -s conftest.err'
27840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27841 (eval $ac_try) 2>&5
27843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844 (exit $ac_status); }; } &&
27845 { ac_try='test -s conftest$ac_exeext'
27846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27847 (eval $ac_try) 2>&5
27849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850 (exit $ac_status); }; }; then
27851 eval "$as_ac_var=yes"
27853 echo "$as_me: failed program was:" >&5
27854 sed 's/^/| /' conftest.$ac_ext >&5
27856 eval "$as_ac_var=no"
27858 rm -f conftest.err conftest.$ac_objext \
27859 conftest$ac_exeext conftest.$ac_ext
27861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27863 if test `eval echo '${'$as_ac_var'}'` = yes; then
27864 cat >>confdefs.h <<_ACEOF
27865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27877 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
27879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27880 echo "$as_me:$LINENO: checking for $ac_func" >&5
27881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27882 if eval "test \"\${$as_ac_var+set}\" = set"; then
27883 echo $ECHO_N "(cached) $ECHO_C" >&6
27885 cat >conftest.$ac_ext <<_ACEOF
27888 cat confdefs.h >>conftest.$ac_ext
27889 cat >>conftest.$ac_ext <<_ACEOF
27890 /* end confdefs.h. */
27891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27893 #define $ac_func innocuous_$ac_func
27895 /* System header to define __stub macros and hopefully few prototypes,
27896 which can conflict with char $ac_func (); below.
27897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27898 <limits.h> exists even on freestanding compilers. */
27901 # include <limits.h>
27903 # include <assert.h>
27908 /* Override any gcc2 internal prototype to avoid an error. */
27913 /* We use char because int might match the return type of a gcc2
27914 builtin and then its argument prototype would still apply. */
27916 /* The GNU C library defines this for functions which it implements
27917 to always fail with ENOSYS. Some functions are actually named
27918 something starting with __ and the normal name is an alias. */
27919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27922 char (*f) () = $ac_func;
27931 return f != $ac_func;
27936 rm -f conftest.$ac_objext conftest$ac_exeext
27937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27938 (eval $ac_link) 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_exeext'
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 eval "$as_ac_var=yes"
27960 echo "$as_me: failed program was:" >&5
27961 sed 's/^/| /' conftest.$ac_ext >&5
27963 eval "$as_ac_var=no"
27965 rm -f conftest.err conftest.$ac_objext \
27966 conftest$ac_exeext conftest.$ac_ext
27968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27969 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27970 if test `eval echo '${'$as_ac_var'}'` = yes; then
27971 cat >>confdefs.h <<_ACEOF
27972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27985 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
27987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27988 echo "$as_me:$LINENO: checking for $ac_func" >&5
27989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27990 if eval "test \"\${$as_ac_var+set}\" = set"; then
27991 echo $ECHO_N "(cached) $ECHO_C" >&6
27993 cat >conftest.$ac_ext <<_ACEOF
27996 cat confdefs.h >>conftest.$ac_ext
27997 cat >>conftest.$ac_ext <<_ACEOF
27998 /* end confdefs.h. */
27999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28001 #define $ac_func innocuous_$ac_func
28003 /* System header to define __stub macros and hopefully few prototypes,
28004 which can conflict with char $ac_func (); below.
28005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28006 <limits.h> exists even on freestanding compilers. */
28009 # include <limits.h>
28011 # include <assert.h>
28016 /* Override any gcc2 internal prototype to avoid an error. */
28021 /* We use char because int might match the return type of a gcc2
28022 builtin and then its argument prototype would still apply. */
28024 /* The GNU C library defines this for functions which it implements
28025 to always fail with ENOSYS. Some functions are actually named
28026 something starting with __ and the normal name is an alias. */
28027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28030 char (*f) () = $ac_func;
28039 return f != $ac_func;
28044 rm -f conftest.$ac_objext conftest$ac_exeext
28045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28046 (eval $ac_link) 2>conftest.er1
28048 grep -v '^ *+' conftest.er1 >conftest.err
28050 cat conftest.err >&5
28051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052 (exit $ac_status); } &&
28053 { ac_try='test -z "$ac_c_werror_flag"
28054 || test ! -s conftest.err'
28055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28056 (eval $ac_try) 2>&5
28058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059 (exit $ac_status); }; } &&
28060 { ac_try='test -s conftest$ac_exeext'
28061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28062 (eval $ac_try) 2>&5
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); }; }; then
28066 eval "$as_ac_var=yes"
28068 echo "$as_me: failed program was:" >&5
28069 sed 's/^/| /' conftest.$ac_ext >&5
28071 eval "$as_ac_var=no"
28073 rm -f conftest.err conftest.$ac_objext \
28074 conftest$ac_exeext conftest.$ac_ext
28076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28078 if test `eval echo '${'$as_ac_var'}'` = yes; then
28079 cat >>confdefs.h <<_ACEOF
28080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28090 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28093 echo "$as_me:$LINENO: checking for $ac_func" >&5
28094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28095 if eval "test \"\${$as_ac_var+set}\" = set"; then
28096 echo $ECHO_N "(cached) $ECHO_C" >&6
28098 cat >conftest.$ac_ext <<_ACEOF
28101 cat confdefs.h >>conftest.$ac_ext
28102 cat >>conftest.$ac_ext <<_ACEOF
28103 /* end confdefs.h. */
28104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28106 #define $ac_func innocuous_$ac_func
28108 /* System header to define __stub macros and hopefully few prototypes,
28109 which can conflict with char $ac_func (); below.
28110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28111 <limits.h> exists even on freestanding compilers. */
28114 # include <limits.h>
28116 # include <assert.h>
28121 /* Override any gcc2 internal prototype to avoid an error. */
28126 /* We use char because int might match the return type of a gcc2
28127 builtin and then its argument prototype would still apply. */
28129 /* The GNU C library defines this for functions which it implements
28130 to always fail with ENOSYS. Some functions are actually named
28131 something starting with __ and the normal name is an alias. */
28132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28135 char (*f) () = $ac_func;
28144 return f != $ac_func;
28149 rm -f conftest.$ac_objext conftest$ac_exeext
28150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28151 (eval $ac_link) 2>conftest.er1
28153 grep -v '^ *+' conftest.er1 >conftest.err
28155 cat conftest.err >&5
28156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157 (exit $ac_status); } &&
28158 { ac_try='test -z "$ac_c_werror_flag"
28159 || test ! -s conftest.err'
28160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28161 (eval $ac_try) 2>&5
28163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164 (exit $ac_status); }; } &&
28165 { ac_try='test -s conftest$ac_exeext'
28166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28167 (eval $ac_try) 2>&5
28169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170 (exit $ac_status); }; }; then
28171 eval "$as_ac_var=yes"
28173 echo "$as_me: failed program was:" >&5
28174 sed 's/^/| /' conftest.$ac_ext >&5
28176 eval "$as_ac_var=no"
28178 rm -f conftest.err conftest.$ac_objext \
28179 conftest$ac_exeext conftest.$ac_ext
28181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28183 if test `eval echo '${'$as_ac_var'}'` = yes; then
28184 cat >>confdefs.h <<_ACEOF
28185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28191 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28192 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28193 if test "${llvm_cv_c_printf_a+set}" = set; then
28194 echo $ECHO_N "(cached) $ECHO_C" >&6
28197 ac_cpp='$CPP $CPPFLAGS'
28198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28202 if test "$cross_compiling" = yes; then
28203 llvmac_cv_c_printf_a=no
28205 cat >conftest.$ac_ext <<_ACEOF
28209 cat confdefs.h >>conftest.$ac_ext
28210 cat >>conftest.$ac_ext <<_ACEOF
28211 /* end confdefs.h. */
28214 #include <stdlib.h>
28220 volatile double A, B;
28224 sprintf(Buffer, "%a", A);
28228 if (A != 0x1.999999999999ap-4)
28235 rm -f conftest$ac_exeext
28236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28237 (eval $ac_link) 2>&5
28239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28242 (eval $ac_try) 2>&5
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); }; }; then
28246 llvm_cv_c_printf_a=yes
28248 echo "$as_me: program exited with status $ac_status" >&5
28249 echo "$as_me: failed program was:" >&5
28250 sed 's/^/| /' conftest.$ac_ext >&5
28252 ( exit $ac_status )
28253 llvmac_cv_c_printf_a=no
28255 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28258 ac_cpp='$CPP $CPPFLAGS'
28259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28264 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28265 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28266 if test "$llvm_cv_c_printf_a" = "yes"; then
28268 cat >>confdefs.h <<\_ACEOF
28269 #define HAVE_PRINTF_A 1
28274 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28275 # for constant arguments. Useless!
28276 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28277 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28278 if test "${ac_cv_working_alloca_h+set}" = set; then
28279 echo $ECHO_N "(cached) $ECHO_C" >&6
28281 cat >conftest.$ac_ext <<_ACEOF
28284 cat confdefs.h >>conftest.$ac_ext
28285 cat >>conftest.$ac_ext <<_ACEOF
28286 /* end confdefs.h. */
28287 #include <alloca.h>
28291 char *p = (char *) alloca (2 * sizeof (int));
28296 rm -f conftest.$ac_objext conftest$ac_exeext
28297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28298 (eval $ac_link) 2>conftest.er1
28300 grep -v '^ *+' conftest.er1 >conftest.err
28302 cat conftest.err >&5
28303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304 (exit $ac_status); } &&
28305 { ac_try='test -z "$ac_c_werror_flag"
28306 || test ! -s conftest.err'
28307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28308 (eval $ac_try) 2>&5
28310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); }; } &&
28312 { ac_try='test -s conftest$ac_exeext'
28313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28314 (eval $ac_try) 2>&5
28316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28317 (exit $ac_status); }; }; then
28318 ac_cv_working_alloca_h=yes
28320 echo "$as_me: failed program was:" >&5
28321 sed 's/^/| /' conftest.$ac_ext >&5
28323 ac_cv_working_alloca_h=no
28325 rm -f conftest.err conftest.$ac_objext \
28326 conftest$ac_exeext conftest.$ac_ext
28328 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28329 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28330 if test $ac_cv_working_alloca_h = yes; then
28332 cat >>confdefs.h <<\_ACEOF
28333 #define HAVE_ALLOCA_H 1
28338 echo "$as_me:$LINENO: checking for alloca" >&5
28339 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28340 if test "${ac_cv_func_alloca_works+set}" = set; then
28341 echo $ECHO_N "(cached) $ECHO_C" >&6
28343 cat >conftest.$ac_ext <<_ACEOF
28346 cat confdefs.h >>conftest.$ac_ext
28347 cat >>conftest.$ac_ext <<_ACEOF
28348 /* end confdefs.h. */
28350 # define alloca __builtin_alloca
28353 # include <malloc.h>
28354 # define alloca _alloca
28357 # include <alloca.h>
28362 # ifndef alloca /* predefined by HP cc +Olibcalls */
28373 char *p = (char *) alloca (1);
28378 rm -f conftest.$ac_objext conftest$ac_exeext
28379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28380 (eval $ac_link) 2>conftest.er1
28382 grep -v '^ *+' conftest.er1 >conftest.err
28384 cat conftest.err >&5
28385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386 (exit $ac_status); } &&
28387 { ac_try='test -z "$ac_c_werror_flag"
28388 || test ! -s conftest.err'
28389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28390 (eval $ac_try) 2>&5
28392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393 (exit $ac_status); }; } &&
28394 { ac_try='test -s conftest$ac_exeext'
28395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28396 (eval $ac_try) 2>&5
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); }; }; then
28400 ac_cv_func_alloca_works=yes
28402 echo "$as_me: failed program was:" >&5
28403 sed 's/^/| /' conftest.$ac_ext >&5
28405 ac_cv_func_alloca_works=no
28407 rm -f conftest.err conftest.$ac_objext \
28408 conftest$ac_exeext conftest.$ac_ext
28410 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28411 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28413 if test $ac_cv_func_alloca_works = yes; then
28415 cat >>confdefs.h <<\_ACEOF
28416 #define HAVE_ALLOCA 1
28420 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28421 # that cause trouble. Some versions do not even contain alloca or
28422 # contain a buggy version. If you still want to use their alloca,
28423 # use ar to extract alloca.o from them instead of compiling alloca.c.
28425 ALLOCA=alloca.$ac_objext
28427 cat >>confdefs.h <<\_ACEOF
28432 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28433 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28434 if test "${ac_cv_os_cray+set}" = set; then
28435 echo $ECHO_N "(cached) $ECHO_C" >&6
28437 cat >conftest.$ac_ext <<_ACEOF
28440 cat confdefs.h >>conftest.$ac_ext
28441 cat >>conftest.$ac_ext <<_ACEOF
28442 /* end confdefs.h. */
28443 #if defined(CRAY) && ! defined(CRAY2)
28450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28451 $EGREP "webecray" >/dev/null 2>&1; then
28459 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28460 echo "${ECHO_T}$ac_cv_os_cray" >&6
28461 if test $ac_cv_os_cray = yes; then
28462 for ac_func in _getb67 GETB67 getb67; do
28463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28464 echo "$as_me:$LINENO: checking for $ac_func" >&5
28465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28466 if eval "test \"\${$as_ac_var+set}\" = set"; then
28467 echo $ECHO_N "(cached) $ECHO_C" >&6
28469 cat >conftest.$ac_ext <<_ACEOF
28472 cat confdefs.h >>conftest.$ac_ext
28473 cat >>conftest.$ac_ext <<_ACEOF
28474 /* end confdefs.h. */
28475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28477 #define $ac_func innocuous_$ac_func
28479 /* System header to define __stub macros and hopefully few prototypes,
28480 which can conflict with char $ac_func (); below.
28481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28482 <limits.h> exists even on freestanding compilers. */
28485 # include <limits.h>
28487 # include <assert.h>
28492 /* Override any gcc2 internal prototype to avoid an error. */
28497 /* We use char because int might match the return type of a gcc2
28498 builtin and then its argument prototype would still apply. */
28500 /* The GNU C library defines this for functions which it implements
28501 to always fail with ENOSYS. Some functions are actually named
28502 something starting with __ and the normal name is an alias. */
28503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28506 char (*f) () = $ac_func;
28515 return f != $ac_func;
28520 rm -f conftest.$ac_objext conftest$ac_exeext
28521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28522 (eval $ac_link) 2>conftest.er1
28524 grep -v '^ *+' conftest.er1 >conftest.err
28526 cat conftest.err >&5
28527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528 (exit $ac_status); } &&
28529 { ac_try='test -z "$ac_c_werror_flag"
28530 || test ! -s conftest.err'
28531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28532 (eval $ac_try) 2>&5
28534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28535 (exit $ac_status); }; } &&
28536 { ac_try='test -s conftest$ac_exeext'
28537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28538 (eval $ac_try) 2>&5
28540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541 (exit $ac_status); }; }; then
28542 eval "$as_ac_var=yes"
28544 echo "$as_me: failed program was:" >&5
28545 sed 's/^/| /' conftest.$ac_ext >&5
28547 eval "$as_ac_var=no"
28549 rm -f conftest.err conftest.$ac_objext \
28550 conftest$ac_exeext conftest.$ac_ext
28552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28553 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28554 if test `eval echo '${'$as_ac_var'}'` = yes; then
28556 cat >>confdefs.h <<_ACEOF
28557 #define CRAY_STACKSEG_END $ac_func
28566 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28567 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28568 if test "${ac_cv_c_stack_direction+set}" = set; then
28569 echo $ECHO_N "(cached) $ECHO_C" >&6
28571 if test "$cross_compiling" = yes; then
28572 ac_cv_c_stack_direction=0
28574 cat >conftest.$ac_ext <<_ACEOF
28577 cat confdefs.h >>conftest.$ac_ext
28578 cat >>conftest.$ac_ext <<_ACEOF
28579 /* end confdefs.h. */
28581 find_stack_direction ()
28583 static char *addr = 0;
28588 return find_stack_direction ();
28591 return (&dummy > addr) ? 1 : -1;
28597 exit (find_stack_direction () < 0);
28600 rm -f conftest$ac_exeext
28601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28602 (eval $ac_link) 2>&5
28604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28607 (eval $ac_try) 2>&5
28609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610 (exit $ac_status); }; }; then
28611 ac_cv_c_stack_direction=1
28613 echo "$as_me: program exited with status $ac_status" >&5
28614 echo "$as_me: failed program was:" >&5
28615 sed 's/^/| /' conftest.$ac_ext >&5
28617 ( exit $ac_status )
28618 ac_cv_c_stack_direction=-1
28620 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28623 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28624 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28626 cat >>confdefs.h <<_ACEOF
28627 #define STACK_DIRECTION $ac_cv_c_stack_direction
28634 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28635 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28636 if test "${ac_cv_func_rand48+set}" = set; then
28637 echo $ECHO_N "(cached) $ECHO_C" >&6
28640 ac_cpp='$CXXCPP $CPPFLAGS'
28641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28645 cat >conftest.$ac_ext <<_ACEOF
28648 cat confdefs.h >>conftest.$ac_ext
28649 cat >>conftest.$ac_ext <<_ACEOF
28650 /* end confdefs.h. */
28651 #include <stdlib.h>
28655 srand48(0);lrand48();drand48();
28660 rm -f conftest.$ac_objext
28661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28662 (eval $ac_compile) 2>conftest.er1
28664 grep -v '^ *+' conftest.er1 >conftest.err
28666 cat conftest.err >&5
28667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668 (exit $ac_status); } &&
28669 { ac_try='test -z "$ac_cxx_werror_flag"
28670 || test ! -s conftest.err'
28671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672 (eval $ac_try) 2>&5
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); }; } &&
28676 { ac_try='test -s conftest.$ac_objext'
28677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28678 (eval $ac_try) 2>&5
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); }; }; then
28682 ac_cv_func_rand48=yes
28684 echo "$as_me: failed program was:" >&5
28685 sed 's/^/| /' conftest.$ac_ext >&5
28687 ac_cv_func_rand48=no
28689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28691 ac_cpp='$CPP $CPPFLAGS'
28692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28697 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28698 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28700 if test "$ac_cv_func_rand48" = "yes" ; then
28702 cat >>confdefs.h <<\_ACEOF
28703 #define HAVE_RAND48 1
28709 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28710 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28711 if test "${ac_cv_cxx_namespaces+set}" = set; then
28712 echo $ECHO_N "(cached) $ECHO_C" >&6
28715 ac_cpp='$CXXCPP $CPPFLAGS'
28716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28720 cat >conftest.$ac_ext <<_ACEOF
28723 cat confdefs.h >>conftest.$ac_ext
28724 cat >>conftest.$ac_ext <<_ACEOF
28725 /* end confdefs.h. */
28726 namespace Outer { namespace Inner { int i = 0; }}
28730 using namespace Outer::Inner; return i;
28735 rm -f conftest.$ac_objext
28736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28737 (eval $ac_compile) 2>conftest.er1
28739 grep -v '^ *+' conftest.er1 >conftest.err
28741 cat conftest.err >&5
28742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743 (exit $ac_status); } &&
28744 { ac_try='test -z "$ac_cxx_werror_flag"
28745 || test ! -s conftest.err'
28746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28747 (eval $ac_try) 2>&5
28749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750 (exit $ac_status); }; } &&
28751 { ac_try='test -s conftest.$ac_objext'
28752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28753 (eval $ac_try) 2>&5
28755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756 (exit $ac_status); }; }; then
28757 ac_cv_cxx_namespaces=yes
28759 echo "$as_me: failed program was:" >&5
28760 sed 's/^/| /' conftest.$ac_ext >&5
28762 ac_cv_cxx_namespaces=no
28764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28766 ac_cpp='$CPP $CPPFLAGS'
28767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28773 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28774 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28775 if test "$ac_cv_cxx_namespaces" = yes; then
28777 cat >>confdefs.h <<\_ACEOF
28778 #define HAVE_NAMESPACES
28783 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28784 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28785 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28786 echo $ECHO_N "(cached) $ECHO_C" >&6
28790 ac_cpp='$CXXCPP $CPPFLAGS'
28791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28795 cat >conftest.$ac_ext <<_ACEOF
28798 cat confdefs.h >>conftest.$ac_ext
28799 cat >>conftest.$ac_ext <<_ACEOF
28800 /* end confdefs.h. */
28801 #include <ext/hash_map>
28802 #ifdef HAVE_NAMESPACES
28803 using namespace std;
28808 hash_map<int, int> t;
28813 rm -f conftest.$ac_objext
28814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28815 (eval $ac_compile) 2>conftest.er1
28817 grep -v '^ *+' conftest.er1 >conftest.err
28819 cat conftest.err >&5
28820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821 (exit $ac_status); } &&
28822 { ac_try='test -z "$ac_cxx_werror_flag"
28823 || test ! -s conftest.err'
28824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28825 (eval $ac_try) 2>&5
28827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828 (exit $ac_status); }; } &&
28829 { ac_try='test -s conftest.$ac_objext'
28830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28831 (eval $ac_try) 2>&5
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); }; }; then
28835 ac_cv_cxx_have_std_ext_hash_map=yes
28837 echo "$as_me: failed program was:" >&5
28838 sed 's/^/| /' conftest.$ac_ext >&5
28840 ac_cv_cxx_have_std_ext_hash_map=no
28842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28844 ac_cpp='$CPP $CPPFLAGS'
28845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28850 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28851 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28852 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28855 cat >>confdefs.h <<\_ACEOF
28856 #define HAVE_STD_EXT_HASH_MAP 1
28861 cat >>confdefs.h <<\_ACEOF
28862 #define HAVE_STD_EXT_HASH_MAP 0
28867 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28868 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28869 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28870 echo $ECHO_N "(cached) $ECHO_C" >&6
28874 ac_cpp='$CXXCPP $CPPFLAGS'
28875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28879 cat >conftest.$ac_ext <<_ACEOF
28882 cat confdefs.h >>conftest.$ac_ext
28883 cat >>conftest.$ac_ext <<_ACEOF
28884 /* end confdefs.h. */
28885 #include <ext/hash_map>
28886 #ifdef HAVE_NAMESPACES
28887 using namespace __gnu_cxx;
28892 hash_map<int,int> t;
28897 rm -f conftest.$ac_objext
28898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28899 (eval $ac_compile) 2>conftest.er1
28901 grep -v '^ *+' conftest.er1 >conftest.err
28903 cat conftest.err >&5
28904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905 (exit $ac_status); } &&
28906 { ac_try='test -z "$ac_cxx_werror_flag"
28907 || test ! -s conftest.err'
28908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28909 (eval $ac_try) 2>&5
28911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912 (exit $ac_status); }; } &&
28913 { ac_try='test -s conftest.$ac_objext'
28914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28915 (eval $ac_try) 2>&5
28917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918 (exit $ac_status); }; }; then
28919 ac_cv_cxx_have_gnu_ext_hash_map=yes
28921 echo "$as_me: failed program was:" >&5
28922 sed 's/^/| /' conftest.$ac_ext >&5
28924 ac_cv_cxx_have_gnu_ext_hash_map=no
28926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28928 ac_cpp='$CPP $CPPFLAGS'
28929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28934 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28935 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28936 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28939 cat >>confdefs.h <<\_ACEOF
28940 #define HAVE_GNU_EXT_HASH_MAP 1
28945 cat >>confdefs.h <<\_ACEOF
28946 #define HAVE_GNU_EXT_HASH_MAP 0
28951 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28952 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28953 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28954 echo $ECHO_N "(cached) $ECHO_C" >&6
28958 ac_cpp='$CXXCPP $CPPFLAGS'
28959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28963 cat >conftest.$ac_ext <<_ACEOF
28966 cat confdefs.h >>conftest.$ac_ext
28967 cat >>conftest.$ac_ext <<_ACEOF
28968 /* end confdefs.h. */
28969 #include <hash_map>
28973 hash_map<int,int> t;
28978 rm -f conftest.$ac_objext
28979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28980 (eval $ac_compile) 2>conftest.er1
28982 grep -v '^ *+' conftest.er1 >conftest.err
28984 cat conftest.err >&5
28985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986 (exit $ac_status); } &&
28987 { ac_try='test -z "$ac_cxx_werror_flag"
28988 || test ! -s conftest.err'
28989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28990 (eval $ac_try) 2>&5
28992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28993 (exit $ac_status); }; } &&
28994 { ac_try='test -s conftest.$ac_objext'
28995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28996 (eval $ac_try) 2>&5
28998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999 (exit $ac_status); }; }; then
29000 ac_cv_cxx_have_global_hash_map=yes
29002 echo "$as_me: failed program was:" >&5
29003 sed 's/^/| /' conftest.$ac_ext >&5
29005 ac_cv_cxx_have_global_hash_map=no
29007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29009 ac_cpp='$CPP $CPPFLAGS'
29010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29015 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29016 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
29017 if test "$ac_cv_cxx_have_global_hash_map" = yes
29020 cat >>confdefs.h <<\_ACEOF
29021 #define HAVE_GLOBAL_HASH_MAP 1
29026 cat >>confdefs.h <<\_ACEOF
29027 #define HAVE_GLOBAL_HASH_MAP 0
29032 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29033 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29034 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29035 echo $ECHO_N "(cached) $ECHO_C" >&6
29039 ac_cpp='$CXXCPP $CPPFLAGS'
29040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29044 cat >conftest.$ac_ext <<_ACEOF
29047 cat confdefs.h >>conftest.$ac_ext
29048 cat >>conftest.$ac_ext <<_ACEOF
29049 /* end confdefs.h. */
29050 #include <ext/hash_set>
29051 #ifdef HAVE_NAMESPACES
29052 using namespace std;
29062 rm -f conftest.$ac_objext
29063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29064 (eval $ac_compile) 2>conftest.er1
29066 grep -v '^ *+' conftest.er1 >conftest.err
29068 cat conftest.err >&5
29069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070 (exit $ac_status); } &&
29071 { ac_try='test -z "$ac_cxx_werror_flag"
29072 || test ! -s conftest.err'
29073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29074 (eval $ac_try) 2>&5
29076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29077 (exit $ac_status); }; } &&
29078 { ac_try='test -s conftest.$ac_objext'
29079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29080 (eval $ac_try) 2>&5
29082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083 (exit $ac_status); }; }; then
29084 ac_cv_cxx_have_std_ext_hash_set=yes
29086 echo "$as_me: failed program was:" >&5
29087 sed 's/^/| /' conftest.$ac_ext >&5
29089 ac_cv_cxx_have_std_ext_hash_set=no
29091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29093 ac_cpp='$CPP $CPPFLAGS'
29094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29099 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29100 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29101 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29104 cat >>confdefs.h <<\_ACEOF
29105 #define HAVE_STD_EXT_HASH_SET 1
29110 cat >>confdefs.h <<\_ACEOF
29111 #define HAVE_STD_EXT_HASH_SET 0
29116 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29117 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29118 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29119 echo $ECHO_N "(cached) $ECHO_C" >&6
29123 ac_cpp='$CXXCPP $CPPFLAGS'
29124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29128 cat >conftest.$ac_ext <<_ACEOF
29131 cat confdefs.h >>conftest.$ac_ext
29132 cat >>conftest.$ac_ext <<_ACEOF
29133 /* end confdefs.h. */
29134 #include <ext/hash_set>
29135 #ifdef HAVE_NAMESPACES
29136 using namespace __gnu_cxx;
29146 rm -f conftest.$ac_objext
29147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29148 (eval $ac_compile) 2>conftest.er1
29150 grep -v '^ *+' conftest.er1 >conftest.err
29152 cat conftest.err >&5
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); } &&
29155 { ac_try='test -z "$ac_cxx_werror_flag"
29156 || test ! -s conftest.err'
29157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29158 (eval $ac_try) 2>&5
29160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161 (exit $ac_status); }; } &&
29162 { ac_try='test -s conftest.$ac_objext'
29163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29164 (eval $ac_try) 2>&5
29166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167 (exit $ac_status); }; }; then
29168 ac_cv_cxx_have_gnu_ext_hash_set=yes
29170 echo "$as_me: failed program was:" >&5
29171 sed 's/^/| /' conftest.$ac_ext >&5
29173 ac_cv_cxx_have_gnu_ext_hash_set=no
29175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29177 ac_cpp='$CPP $CPPFLAGS'
29178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29183 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29184 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29185 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29188 cat >>confdefs.h <<\_ACEOF
29189 #define HAVE_GNU_EXT_HASH_SET 1
29194 cat >>confdefs.h <<\_ACEOF
29195 #define HAVE_GNU_EXT_HASH_SET 0
29200 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29201 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29202 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29203 echo $ECHO_N "(cached) $ECHO_C" >&6
29207 ac_cpp='$CXXCPP $CPPFLAGS'
29208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29212 cat >conftest.$ac_ext <<_ACEOF
29215 cat confdefs.h >>conftest.$ac_ext
29216 cat >>conftest.$ac_ext <<_ACEOF
29217 /* end confdefs.h. */
29218 #include <hash_set>
29222 hash_set<int> t; return 0;
29227 rm -f conftest.$ac_objext
29228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29229 (eval $ac_compile) 2>conftest.er1
29231 grep -v '^ *+' conftest.er1 >conftest.err
29233 cat conftest.err >&5
29234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235 (exit $ac_status); } &&
29236 { ac_try='test -z "$ac_cxx_werror_flag"
29237 || test ! -s conftest.err'
29238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29239 (eval $ac_try) 2>&5
29241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242 (exit $ac_status); }; } &&
29243 { ac_try='test -s conftest.$ac_objext'
29244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29245 (eval $ac_try) 2>&5
29247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248 (exit $ac_status); }; }; then
29249 ac_cv_cxx_have_global_hash_set=yes
29251 echo "$as_me: failed program was:" >&5
29252 sed 's/^/| /' conftest.$ac_ext >&5
29254 ac_cv_cxx_have_global_hash_set=no
29256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29258 ac_cpp='$CPP $CPPFLAGS'
29259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29264 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29265 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29266 if test "$ac_cv_cxx_have_global_hash_set" = yes
29269 cat >>confdefs.h <<\_ACEOF
29270 #define HAVE_GLOBAL_HASH_SET 1
29275 cat >>confdefs.h <<\_ACEOF
29276 #define HAVE_GLOBAL_HASH_SET 0
29281 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29282 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29283 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29284 echo $ECHO_N "(cached) $ECHO_C" >&6
29288 ac_cpp='$CXXCPP $CPPFLAGS'
29289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29293 cat >conftest.$ac_ext <<_ACEOF
29296 cat confdefs.h >>conftest.$ac_ext
29297 cat >>conftest.$ac_ext <<_ACEOF
29298 /* end confdefs.h. */
29299 #include <iterator>
29300 #ifdef HAVE_NAMESPACES
29301 using namespace std;
29306 iterator<int,int,int> t; return 0;
29311 rm -f conftest.$ac_objext
29312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29313 (eval $ac_compile) 2>conftest.er1
29315 grep -v '^ *+' conftest.er1 >conftest.err
29317 cat conftest.err >&5
29318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); } &&
29320 { ac_try='test -z "$ac_cxx_werror_flag"
29321 || test ! -s conftest.err'
29322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29323 (eval $ac_try) 2>&5
29325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326 (exit $ac_status); }; } &&
29327 { ac_try='test -s conftest.$ac_objext'
29328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329 (eval $ac_try) 2>&5
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); }; }; then
29333 ac_cv_cxx_have_std_iterator=yes
29335 echo "$as_me: failed program was:" >&5
29336 sed 's/^/| /' conftest.$ac_ext >&5
29338 ac_cv_cxx_have_std_iterator=no
29340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29342 ac_cpp='$CPP $CPPFLAGS'
29343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29349 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29350 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29351 if test "$ac_cv_cxx_have_std_iterator" = yes
29354 cat >>confdefs.h <<\_ACEOF
29355 #define HAVE_STD_ITERATOR 1
29360 cat >>confdefs.h <<\_ACEOF
29361 #define HAVE_STD_ITERATOR 0
29366 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29367 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29368 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29369 echo $ECHO_N "(cached) $ECHO_C" >&6
29373 ac_cpp='$CXXCPP $CPPFLAGS'
29374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29378 cat >conftest.$ac_ext <<_ACEOF
29381 cat confdefs.h >>conftest.$ac_ext
29382 cat >>conftest.$ac_ext <<_ACEOF
29383 /* end confdefs.h. */
29384 #include <iterator>
29385 #ifdef HAVE_NAMESPACES
29386 using namespace std;
29391 bidirectional_iterator<int,int> t; return 0;
29396 rm -f conftest.$ac_objext
29397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29398 (eval $ac_compile) 2>conftest.er1
29400 grep -v '^ *+' conftest.er1 >conftest.err
29402 cat conftest.err >&5
29403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404 (exit $ac_status); } &&
29405 { ac_try='test -z "$ac_cxx_werror_flag"
29406 || test ! -s conftest.err'
29407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29408 (eval $ac_try) 2>&5
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); }; } &&
29412 { ac_try='test -s conftest.$ac_objext'
29413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29414 (eval $ac_try) 2>&5
29416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417 (exit $ac_status); }; }; then
29418 ac_cv_cxx_have_bi_iterator=yes
29420 echo "$as_me: failed program was:" >&5
29421 sed 's/^/| /' conftest.$ac_ext >&5
29423 ac_cv_cxx_have_bi_iterator=no
29425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29427 ac_cpp='$CPP $CPPFLAGS'
29428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29434 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29435 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29436 if test "$ac_cv_cxx_have_bi_iterator" = yes
29439 cat >>confdefs.h <<\_ACEOF
29440 #define HAVE_BI_ITERATOR 1
29445 cat >>confdefs.h <<\_ACEOF
29446 #define HAVE_BI_ITERATOR 0
29451 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29452 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29453 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29454 echo $ECHO_N "(cached) $ECHO_C" >&6
29458 ac_cpp='$CXXCPP $CPPFLAGS'
29459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29463 cat >conftest.$ac_ext <<_ACEOF
29466 cat confdefs.h >>conftest.$ac_ext
29467 cat >>conftest.$ac_ext <<_ACEOF
29468 /* end confdefs.h. */
29469 #include <iterator>
29470 #ifdef HAVE_NAMESPACES
29471 using namespace std;
29476 forward_iterator<int,int> t; return 0;
29481 rm -f conftest.$ac_objext
29482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29483 (eval $ac_compile) 2>conftest.er1
29485 grep -v '^ *+' conftest.er1 >conftest.err
29487 cat conftest.err >&5
29488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489 (exit $ac_status); } &&
29490 { ac_try='test -z "$ac_cxx_werror_flag"
29491 || test ! -s conftest.err'
29492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29493 (eval $ac_try) 2>&5
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); }; } &&
29497 { ac_try='test -s conftest.$ac_objext'
29498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29499 (eval $ac_try) 2>&5
29501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502 (exit $ac_status); }; }; then
29503 ac_cv_cxx_have_fwd_iterator=yes
29505 echo "$as_me: failed program was:" >&5
29506 sed 's/^/| /' conftest.$ac_ext >&5
29508 ac_cv_cxx_have_fwd_iterator=no
29510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29512 ac_cpp='$CPP $CPPFLAGS'
29513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29519 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29520 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29521 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29524 cat >>confdefs.h <<\_ACEOF
29525 #define HAVE_FWD_ITERATOR 1
29530 cat >>confdefs.h <<\_ACEOF
29531 #define HAVE_FWD_ITERATOR 0
29537 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29538 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29539 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29540 echo $ECHO_N "(cached) $ECHO_C" >&6
29543 ac_cpp='$CXXCPP $CPPFLAGS'
29544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29548 cat >conftest.$ac_ext <<_ACEOF
29551 cat confdefs.h >>conftest.$ac_ext
29552 cat >>conftest.$ac_ext <<_ACEOF
29553 /* end confdefs.h. */
29563 rm -f conftest.$ac_objext
29564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29565 (eval $ac_compile) 2>conftest.er1
29567 grep -v '^ *+' conftest.er1 >conftest.err
29569 cat conftest.err >&5
29570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29571 (exit $ac_status); } &&
29572 { ac_try='test -z "$ac_cxx_werror_flag"
29573 || test ! -s conftest.err'
29574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29575 (eval $ac_try) 2>&5
29577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578 (exit $ac_status); }; } &&
29579 { ac_try='test -s conftest.$ac_objext'
29580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29581 (eval $ac_try) 2>&5
29583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584 (exit $ac_status); }; }; then
29585 ac_cv_func_isnan_in_math_h=yes
29587 echo "$as_me: failed program was:" >&5
29588 sed 's/^/| /' conftest.$ac_ext >&5
29590 ac_cv_func_isnan_in_math_h=no
29592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29594 ac_cpp='$CPP $CPPFLAGS'
29595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29600 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29601 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29604 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29606 cat >>confdefs.h <<\_ACEOF
29607 #define HAVE_ISNAN_IN_MATH_H 1
29612 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29613 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29614 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29615 echo $ECHO_N "(cached) $ECHO_C" >&6
29618 ac_cpp='$CXXCPP $CPPFLAGS'
29619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29623 cat >conftest.$ac_ext <<_ACEOF
29626 cat confdefs.h >>conftest.$ac_ext
29627 cat >>conftest.$ac_ext <<_ACEOF
29628 /* end confdefs.h. */
29638 rm -f conftest.$ac_objext
29639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29640 (eval $ac_compile) 2>conftest.er1
29642 grep -v '^ *+' conftest.er1 >conftest.err
29644 cat conftest.err >&5
29645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29646 (exit $ac_status); } &&
29647 { ac_try='test -z "$ac_cxx_werror_flag"
29648 || test ! -s conftest.err'
29649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29650 (eval $ac_try) 2>&5
29652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653 (exit $ac_status); }; } &&
29654 { ac_try='test -s conftest.$ac_objext'
29655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29656 (eval $ac_try) 2>&5
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); }; }; then
29660 ac_cv_func_isnan_in_cmath=yes
29662 echo "$as_me: failed program was:" >&5
29663 sed 's/^/| /' conftest.$ac_ext >&5
29665 ac_cv_func_isnan_in_cmath=no
29667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29669 ac_cpp='$CPP $CPPFLAGS'
29670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29675 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29676 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29678 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29680 cat >>confdefs.h <<\_ACEOF
29681 #define HAVE_ISNAN_IN_CMATH 1
29686 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29687 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29688 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29689 echo $ECHO_N "(cached) $ECHO_C" >&6
29692 ac_cpp='$CXXCPP $CPPFLAGS'
29693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29697 cat >conftest.$ac_ext <<_ACEOF
29700 cat confdefs.h >>conftest.$ac_ext
29701 cat >>conftest.$ac_ext <<_ACEOF
29702 /* end confdefs.h. */
29707 float f; std::isnan(f);
29712 rm -f conftest.$ac_objext
29713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29714 (eval $ac_compile) 2>conftest.er1
29716 grep -v '^ *+' conftest.er1 >conftest.err
29718 cat conftest.err >&5
29719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29720 (exit $ac_status); } &&
29721 { ac_try='test -z "$ac_cxx_werror_flag"
29722 || test ! -s conftest.err'
29723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29724 (eval $ac_try) 2>&5
29726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727 (exit $ac_status); }; } &&
29728 { ac_try='test -s conftest.$ac_objext'
29729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29730 (eval $ac_try) 2>&5
29732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733 (exit $ac_status); }; }; then
29734 ac_cv_func_std_isnan_in_cmath=yes
29736 echo "$as_me: failed program was:" >&5
29737 sed 's/^/| /' conftest.$ac_ext >&5
29739 ac_cv_func_std_isnan_in_cmath=no
29741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29743 ac_cpp='$CPP $CPPFLAGS'
29744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29749 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29750 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29752 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29754 cat >>confdefs.h <<\_ACEOF
29755 #define HAVE_STD_ISNAN_IN_CMATH 1
29761 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29762 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29763 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29764 echo $ECHO_N "(cached) $ECHO_C" >&6
29767 ac_cpp='$CXXCPP $CPPFLAGS'
29768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29772 cat >conftest.$ac_ext <<_ACEOF
29775 cat confdefs.h >>conftest.$ac_ext
29776 cat >>conftest.$ac_ext <<_ACEOF
29777 /* end confdefs.h. */
29787 rm -f conftest.$ac_objext
29788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29789 (eval $ac_compile) 2>conftest.er1
29791 grep -v '^ *+' conftest.er1 >conftest.err
29793 cat conftest.err >&5
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); } &&
29796 { ac_try='test -z "$ac_cxx_werror_flag"
29797 || test ! -s conftest.err'
29798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29799 (eval $ac_try) 2>&5
29801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802 (exit $ac_status); }; } &&
29803 { ac_try='test -s conftest.$ac_objext'
29804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29805 (eval $ac_try) 2>&5
29807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808 (exit $ac_status); }; }; then
29809 ac_cv_func_isinf_in_math_h=yes
29811 echo "$as_me: failed program was:" >&5
29812 sed 's/^/| /' conftest.$ac_ext >&5
29814 ac_cv_func_isinf_in_math_h=no
29816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29818 ac_cpp='$CPP $CPPFLAGS'
29819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29824 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29825 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29827 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29829 cat >>confdefs.h <<\_ACEOF
29830 #define HAVE_ISINF_IN_MATH_H 1
29835 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29836 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29837 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29838 echo $ECHO_N "(cached) $ECHO_C" >&6
29841 ac_cpp='$CXXCPP $CPPFLAGS'
29842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29846 cat >conftest.$ac_ext <<_ACEOF
29849 cat confdefs.h >>conftest.$ac_ext
29850 cat >>conftest.$ac_ext <<_ACEOF
29851 /* end confdefs.h. */
29861 rm -f conftest.$ac_objext
29862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29863 (eval $ac_compile) 2>conftest.er1
29865 grep -v '^ *+' conftest.er1 >conftest.err
29867 cat conftest.err >&5
29868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869 (exit $ac_status); } &&
29870 { ac_try='test -z "$ac_cxx_werror_flag"
29871 || test ! -s conftest.err'
29872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29873 (eval $ac_try) 2>&5
29875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29876 (exit $ac_status); }; } &&
29877 { ac_try='test -s conftest.$ac_objext'
29878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29879 (eval $ac_try) 2>&5
29881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882 (exit $ac_status); }; }; then
29883 ac_cv_func_isinf_in_cmath=yes
29885 echo "$as_me: failed program was:" >&5
29886 sed 's/^/| /' conftest.$ac_ext >&5
29888 ac_cv_func_isinf_in_cmath=no
29890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29892 ac_cpp='$CPP $CPPFLAGS'
29893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29898 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29899 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29901 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29903 cat >>confdefs.h <<\_ACEOF
29904 #define HAVE_ISINF_IN_CMATH 1
29909 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29910 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29911 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29912 echo $ECHO_N "(cached) $ECHO_C" >&6
29915 ac_cpp='$CXXCPP $CPPFLAGS'
29916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29920 cat >conftest.$ac_ext <<_ACEOF
29923 cat confdefs.h >>conftest.$ac_ext
29924 cat >>conftest.$ac_ext <<_ACEOF
29925 /* end confdefs.h. */
29930 float f; std::isinf(f)}
29935 rm -f conftest.$ac_objext
29936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29937 (eval $ac_compile) 2>conftest.er1
29939 grep -v '^ *+' conftest.er1 >conftest.err
29941 cat conftest.err >&5
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); } &&
29944 { ac_try='test -z "$ac_cxx_werror_flag"
29945 || test ! -s conftest.err'
29946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29947 (eval $ac_try) 2>&5
29949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950 (exit $ac_status); }; } &&
29951 { ac_try='test -s conftest.$ac_objext'
29952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29953 (eval $ac_try) 2>&5
29955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956 (exit $ac_status); }; }; then
29957 ac_cv_func_std_isinf_in_cmath=yes
29959 echo "$as_me: failed program was:" >&5
29960 sed 's/^/| /' conftest.$ac_ext >&5
29962 ac_cv_func_std_isinf_in_cmath=no
29964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29966 ac_cpp='$CPP $CPPFLAGS'
29967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29972 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29973 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29975 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29977 cat >>confdefs.h <<\_ACEOF
29978 #define HAVE_STD_ISINF_IN_CMATH 1
29983 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29984 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29985 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29986 echo $ECHO_N "(cached) $ECHO_C" >&6
29989 ac_cpp='$CXXCPP $CPPFLAGS'
29990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29994 cat >conftest.$ac_ext <<_ACEOF
29997 cat confdefs.h >>conftest.$ac_ext
29998 cat >>conftest.$ac_ext <<_ACEOF
29999 /* end confdefs.h. */
30000 #include <ieeefp.h>
30004 float f; finite(f);
30009 rm -f conftest.$ac_objext
30010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30011 (eval $ac_compile) 2>conftest.er1
30013 grep -v '^ *+' conftest.er1 >conftest.err
30015 cat conftest.err >&5
30016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30017 (exit $ac_status); } &&
30018 { ac_try='test -z "$ac_cxx_werror_flag"
30019 || test ! -s conftest.err'
30020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30021 (eval $ac_try) 2>&5
30023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30024 (exit $ac_status); }; } &&
30025 { ac_try='test -s conftest.$ac_objext'
30026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30027 (eval $ac_try) 2>&5
30029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30030 (exit $ac_status); }; }; then
30031 ac_cv_func_finite_in_ieeefp_h=yes
30033 echo "$as_me: failed program was:" >&5
30034 sed 's/^/| /' conftest.$ac_ext >&5
30036 ac_cv_func_finite_in_ieeefp_h=no
30038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30040 ac_cpp='$CPP $CPPFLAGS'
30041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30046 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30047 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30049 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30051 cat >>confdefs.h <<\_ACEOF
30052 #define HAVE_FINITE_IN_IEEEFP_H 1
30061 for ac_header in stdlib.h unistd.h
30063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30065 echo "$as_me:$LINENO: checking for $ac_header" >&5
30066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30068 echo $ECHO_N "(cached) $ECHO_C" >&6
30070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30073 # Is the header compilable?
30074 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30076 cat >conftest.$ac_ext <<_ACEOF
30079 cat confdefs.h >>conftest.$ac_ext
30080 cat >>conftest.$ac_ext <<_ACEOF
30081 /* end confdefs.h. */
30082 $ac_includes_default
30083 #include <$ac_header>
30085 rm -f conftest.$ac_objext
30086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30087 (eval $ac_compile) 2>conftest.er1
30089 grep -v '^ *+' conftest.er1 >conftest.err
30091 cat conftest.err >&5
30092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093 (exit $ac_status); } &&
30094 { ac_try='test -z "$ac_c_werror_flag"
30095 || test ! -s conftest.err'
30096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30097 (eval $ac_try) 2>&5
30099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30100 (exit $ac_status); }; } &&
30101 { ac_try='test -s conftest.$ac_objext'
30102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30103 (eval $ac_try) 2>&5
30105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106 (exit $ac_status); }; }; then
30107 ac_header_compiler=yes
30109 echo "$as_me: failed program was:" >&5
30110 sed 's/^/| /' conftest.$ac_ext >&5
30112 ac_header_compiler=no
30114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30116 echo "${ECHO_T}$ac_header_compiler" >&6
30118 # Is the header present?
30119 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30121 cat >conftest.$ac_ext <<_ACEOF
30124 cat confdefs.h >>conftest.$ac_ext
30125 cat >>conftest.$ac_ext <<_ACEOF
30126 /* end confdefs.h. */
30127 #include <$ac_header>
30129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30132 grep -v '^ *+' conftest.er1 >conftest.err
30134 cat conftest.err >&5
30135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136 (exit $ac_status); } >/dev/null; then
30137 if test -s conftest.err; then
30138 ac_cpp_err=$ac_c_preproc_warn_flag
30139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30146 if test -z "$ac_cpp_err"; then
30147 ac_header_preproc=yes
30149 echo "$as_me: failed program was:" >&5
30150 sed 's/^/| /' conftest.$ac_ext >&5
30152 ac_header_preproc=no
30154 rm -f conftest.err conftest.$ac_ext
30155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30156 echo "${ECHO_T}$ac_header_preproc" >&6
30158 # So? What about this header?
30159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30165 ac_header_preproc=yes
30168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30175 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30182 ## ----------------------------------- ##
30183 ## Report this to llvmbugs@cs.uiuc.edu ##
30184 ## ----------------------------------- ##
30187 sed "s/^/$as_me: WARNING: /" >&2
30190 echo "$as_me:$LINENO: checking for $ac_header" >&5
30191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30193 echo $ECHO_N "(cached) $ECHO_C" >&6
30195 eval "$as_ac_Header=\$ac_header_preproc"
30197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30202 cat >>confdefs.h <<_ACEOF
30203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30211 for ac_func in getpagesize
30213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30214 echo "$as_me:$LINENO: checking for $ac_func" >&5
30215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30216 if eval "test \"\${$as_ac_var+set}\" = set"; then
30217 echo $ECHO_N "(cached) $ECHO_C" >&6
30219 cat >conftest.$ac_ext <<_ACEOF
30222 cat confdefs.h >>conftest.$ac_ext
30223 cat >>conftest.$ac_ext <<_ACEOF
30224 /* end confdefs.h. */
30225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30227 #define $ac_func innocuous_$ac_func
30229 /* System header to define __stub macros and hopefully few prototypes,
30230 which can conflict with char $ac_func (); below.
30231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30232 <limits.h> exists even on freestanding compilers. */
30235 # include <limits.h>
30237 # include <assert.h>
30242 /* Override any gcc2 internal prototype to avoid an error. */
30247 /* We use char because int might match the return type of a gcc2
30248 builtin and then its argument prototype would still apply. */
30250 /* The GNU C library defines this for functions which it implements
30251 to always fail with ENOSYS. Some functions are actually named
30252 something starting with __ and the normal name is an alias. */
30253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30256 char (*f) () = $ac_func;
30265 return f != $ac_func;
30270 rm -f conftest.$ac_objext conftest$ac_exeext
30271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30272 (eval $ac_link) 2>conftest.er1
30274 grep -v '^ *+' conftest.er1 >conftest.err
30276 cat conftest.err >&5
30277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278 (exit $ac_status); } &&
30279 { ac_try='test -z "$ac_c_werror_flag"
30280 || test ! -s conftest.err'
30281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30282 (eval $ac_try) 2>&5
30284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30285 (exit $ac_status); }; } &&
30286 { ac_try='test -s conftest$ac_exeext'
30287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30288 (eval $ac_try) 2>&5
30290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291 (exit $ac_status); }; }; then
30292 eval "$as_ac_var=yes"
30294 echo "$as_me: failed program was:" >&5
30295 sed 's/^/| /' conftest.$ac_ext >&5
30297 eval "$as_ac_var=no"
30299 rm -f conftest.err conftest.$ac_objext \
30300 conftest$ac_exeext conftest.$ac_ext
30302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30304 if test `eval echo '${'$as_ac_var'}'` = yes; then
30305 cat >>confdefs.h <<_ACEOF
30306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30312 echo "$as_me:$LINENO: checking for working mmap" >&5
30313 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30314 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30315 echo $ECHO_N "(cached) $ECHO_C" >&6
30317 if test "$cross_compiling" = yes; then
30318 ac_cv_func_mmap_fixed_mapped=no
30320 cat >conftest.$ac_ext <<_ACEOF
30323 cat confdefs.h >>conftest.$ac_ext
30324 cat >>conftest.$ac_ext <<_ACEOF
30325 /* end confdefs.h. */
30326 $ac_includes_default
30327 /* malloc might have been renamed as rpl_malloc. */
30330 /* Thanks to Mike Haertel and Jim Avera for this test.
30331 Here is a matrix of mmap possibilities:
30332 mmap private not fixed
30333 mmap private fixed at somewhere currently unmapped
30334 mmap private fixed at somewhere already mapped
30335 mmap shared not fixed
30336 mmap shared fixed at somewhere currently unmapped
30337 mmap shared fixed at somewhere already mapped
30338 For private mappings, we should verify that changes cannot be read()
30339 back from the file, nor mmap's back from the file at a different
30340 address. (There have been systems where private was not correctly
30341 implemented like the infamous i386 svr4.0, and systems where the
30342 VM page cache was not coherent with the file system buffer cache
30343 like early versions of FreeBSD and possibly contemporary NetBSD.)
30344 For shared mappings, we should conversely verify that changes get
30345 propagated back to all the places they're supposed to be.
30347 Grep wants private fixed already mapped.
30348 The main things grep needs to know about mmap are:
30349 * does it exist and is it safe to write into the mmap'd area
30350 * how to use it (BSD variants) */
30353 #include <sys/mman.h>
30355 #if !STDC_HEADERS && !HAVE_STDLIB_H
30359 /* This mess was copied from the GNU getpagesize.h. */
30360 #if !HAVE_GETPAGESIZE
30361 /* Assume that all systems that can run configure have sys/param.h. */
30362 # if !HAVE_SYS_PARAM_H
30363 # define HAVE_SYS_PARAM_H 1
30366 # ifdef _SC_PAGESIZE
30367 # define getpagesize() sysconf(_SC_PAGESIZE)
30368 # else /* no _SC_PAGESIZE */
30369 # if HAVE_SYS_PARAM_H
30370 # include <sys/param.h>
30371 # ifdef EXEC_PAGESIZE
30372 # define getpagesize() EXEC_PAGESIZE
30373 # else /* no EXEC_PAGESIZE */
30375 # define getpagesize() NBPG * CLSIZE
30378 # endif /* no CLSIZE */
30379 # else /* no NBPG */
30381 # define getpagesize() NBPC
30382 # else /* no NBPC */
30384 # define getpagesize() PAGESIZE
30385 # endif /* PAGESIZE */
30386 # endif /* no NBPC */
30387 # endif /* no NBPG */
30388 # endif /* no EXEC_PAGESIZE */
30389 # else /* no HAVE_SYS_PARAM_H */
30390 # define getpagesize() 8192 /* punt totally */
30391 # endif /* no HAVE_SYS_PARAM_H */
30392 # endif /* no _SC_PAGESIZE */
30394 #endif /* no HAVE_GETPAGESIZE */
30399 char *data, *data2, *data3;
30403 pagesize = getpagesize ();
30405 /* First, make a file with some known garbage in it. */
30406 data = (char *) malloc (pagesize);
30409 for (i = 0; i < pagesize; ++i)
30410 *(data + i) = rand ();
30412 fd = creat ("conftest.mmap", 0600);
30415 if (write (fd, data, pagesize) != pagesize)
30419 /* Next, try to mmap the file at a fixed address which already has
30420 something else allocated at it. If we can, also make sure that
30421 we see the same garbage. */
30422 fd = open ("conftest.mmap", O_RDWR);
30425 data2 = (char *) malloc (2 * pagesize);
30428 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30429 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30430 MAP_PRIVATE | MAP_FIXED, fd, 0L))
30432 for (i = 0; i < pagesize; ++i)
30433 if (*(data + i) != *(data2 + i))
30436 /* Finally, make sure that changes to the mapped area do not
30437 percolate back to the file as seen by read(). (This is a bug on
30438 some variants of i386 svr4.0.) */
30439 for (i = 0; i < pagesize; ++i)
30440 *(data2 + i) = *(data2 + i) + 1;
30441 data3 = (char *) malloc (pagesize);
30444 if (read (fd, data3, pagesize) != pagesize)
30446 for (i = 0; i < pagesize; ++i)
30447 if (*(data + i) != *(data3 + i))
30453 rm -f conftest$ac_exeext
30454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30455 (eval $ac_link) 2>&5
30457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30460 (eval $ac_try) 2>&5
30462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30463 (exit $ac_status); }; }; then
30464 ac_cv_func_mmap_fixed_mapped=yes
30466 echo "$as_me: program exited with status $ac_status" >&5
30467 echo "$as_me: failed program was:" >&5
30468 sed 's/^/| /' conftest.$ac_ext >&5
30470 ( exit $ac_status )
30471 ac_cv_func_mmap_fixed_mapped=no
30473 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30476 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30477 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30478 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30480 cat >>confdefs.h <<\_ACEOF
30481 #define HAVE_MMAP 1
30485 rm -f conftest.mmap
30487 echo "$as_me:$LINENO: checking for mmap of files" >&5
30488 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30489 if test "${ac_cv_func_mmap_file+set}" = set; then
30490 echo $ECHO_N "(cached) $ECHO_C" >&6
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
30498 if test "$cross_compiling" = yes; then
30499 ac_cv_func_mmap_file=no
30501 cat >conftest.$ac_ext <<_ACEOF
30505 cat confdefs.h >>conftest.$ac_ext
30506 cat >>conftest.$ac_ext <<_ACEOF
30507 /* end confdefs.h. */
30509 #include <sys/types.h>
30510 #include <sys/mman.h>
30518 fd = creat ("foo",0777);
30519 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30521 return (fd != (int) MAP_FAILED);
30526 rm -f conftest$ac_exeext
30527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30528 (eval $ac_link) 2>&5
30530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30533 (eval $ac_try) 2>&5
30535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536 (exit $ac_status); }; }; then
30537 ac_cv_func_mmap_file=yes
30539 echo "$as_me: program exited with status $ac_status" >&5
30540 echo "$as_me: failed program was:" >&5
30541 sed 's/^/| /' conftest.$ac_ext >&5
30543 ( exit $ac_status )
30544 ac_cv_func_mmap_file=no
30546 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30549 ac_cpp='$CPP $CPPFLAGS'
30550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30556 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30557 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30558 if test "$ac_cv_func_mmap_file" = yes; then
30560 cat >>confdefs.h <<\_ACEOF
30561 #define HAVE_MMAP_FILE
30568 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30569 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30570 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30571 echo $ECHO_N "(cached) $ECHO_C" >&6
30573 if test "$llvm_cv_os_type" = "Interix" ; then
30574 ac_cv_need_dev_zero_for_mmap=yes
30576 ac_cv_need_dev_zero_for_mmap=no
30580 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30581 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30582 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30584 cat >>confdefs.h <<\_ACEOF
30585 #define NEED_DEV_ZERO_FOR_MMAP 1
30589 echo "$as_me:$LINENO: checking for mprotect" >&5
30590 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30591 if test "${ac_cv_func_mprotect+set}" = set; then
30592 echo $ECHO_N "(cached) $ECHO_C" >&6
30594 cat >conftest.$ac_ext <<_ACEOF
30597 cat confdefs.h >>conftest.$ac_ext
30598 cat >>conftest.$ac_ext <<_ACEOF
30599 /* end confdefs.h. */
30600 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30602 #define mprotect innocuous_mprotect
30604 /* System header to define __stub macros and hopefully few prototypes,
30605 which can conflict with char mprotect (); below.
30606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30607 <limits.h> exists even on freestanding compilers. */
30610 # include <limits.h>
30612 # include <assert.h>
30617 /* Override any gcc2 internal prototype to avoid an error. */
30622 /* We use char because int might match the return type of a gcc2
30623 builtin and then its argument prototype would still apply. */
30625 /* The GNU C library defines this for functions which it implements
30626 to always fail with ENOSYS. Some functions are actually named
30627 something starting with __ and the normal name is an alias. */
30628 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30631 char (*f) () = mprotect;
30640 return f != mprotect;
30645 rm -f conftest.$ac_objext conftest$ac_exeext
30646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30647 (eval $ac_link) 2>conftest.er1
30649 grep -v '^ *+' conftest.er1 >conftest.err
30651 cat conftest.err >&5
30652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653 (exit $ac_status); } &&
30654 { ac_try='test -z "$ac_c_werror_flag"
30655 || test ! -s conftest.err'
30656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30657 (eval $ac_try) 2>&5
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); }; } &&
30661 { ac_try='test -s conftest$ac_exeext'
30662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30663 (eval $ac_try) 2>&5
30665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30666 (exit $ac_status); }; }; then
30667 ac_cv_func_mprotect=yes
30669 echo "$as_me: failed program was:" >&5
30670 sed 's/^/| /' conftest.$ac_ext >&5
30672 ac_cv_func_mprotect=no
30674 rm -f conftest.err conftest.$ac_objext \
30675 conftest$ac_exeext conftest.$ac_ext
30677 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30678 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30679 if test $ac_cv_func_mprotect = yes; then
30682 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30683 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30684 { (exit 1); exit 1; }; }
30688 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30690 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30691 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30693 if test "$ac_cv_func_mmap_file" = "no"
30695 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30696 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30700 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30701 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30702 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30703 echo $ECHO_N "(cached) $ECHO_C" >&6
30705 llvm_cv_llvmgcc_sanity="no"
30706 if test -x "$LLVMGCC" ; then
30707 cp /dev/null conftest.c
30708 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
30709 if test $? -eq 0 ; then
30710 llvm_cv_llvmgcc_sanity="yes"
30715 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30716 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30718 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30719 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30720 LLVMCC1=$llvmcc1path
30722 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30723 LLVMCC1PLUS=$llvmcc1pluspath
30725 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30726 LLVMGCCDIR=$llvmgccdir
30728 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
30729 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
30730 LLVMGCC_VERSION=$llvmgccversion
30732 LLVMGCC_MAJVERS=$llvmgccmajvers
30736 SHLIBEXT=$libltdl_cv_shlibext
30739 # Translate the various configuration directories and other basic
30740 # information into substitutions that will end up in Makefile.config.in
30741 # that these configured values can be used by the makefiles
30742 eval LLVM_PREFIX="${prefix}";
30743 eval LLVM_BINDIR="${prefix}/bin";
30744 eval LLVM_LIBDIR="${prefix}/lib";
30745 eval LLVM_DATADIR="${prefix}/share/llvm";
30746 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30747 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30748 eval LLVM_INCLUDEDIR="${prefix}/include";
30749 eval LLVM_INFODIR="${prefix}/info";
30750 eval LLVM_MANDIR="${prefix}/man";
30751 LLVM_CONFIGTIME=`date`
30763 # Place the various directores into the config.h file as #defines so that we
30764 # can know about the installation paths within LLVM.
30766 cat >>confdefs.h <<_ACEOF
30767 #define LLVM_PREFIX "$LLVM_PREFIX"
30771 cat >>confdefs.h <<_ACEOF
30772 #define LLVM_BINDIR "$LLVM_BINDIR"
30776 cat >>confdefs.h <<_ACEOF
30777 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30781 cat >>confdefs.h <<_ACEOF
30782 #define LLVM_DATADIR "$LLVM_DATADIR"
30786 cat >>confdefs.h <<_ACEOF
30787 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30791 cat >>confdefs.h <<_ACEOF
30792 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30796 cat >>confdefs.h <<_ACEOF
30797 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30801 cat >>confdefs.h <<_ACEOF
30802 #define LLVM_INFODIR "$LLVM_INFODIR"
30806 cat >>confdefs.h <<_ACEOF
30807 #define LLVM_MANDIR "$LLVM_MANDIR"
30811 cat >>confdefs.h <<_ACEOF
30812 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30817 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30819 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30821 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30823 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30825 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30828 ac_config_files="$ac_config_files Makefile.config"
30831 ac_config_files="$ac_config_files docs/doxygen.cfg"
30834 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
30837 ac_config_commands="$ac_config_commands setup"
30839 ac_config_commands="$ac_config_commands Makefile"
30842 ac_config_commands="$ac_config_commands Makefile.common"
30845 ac_config_commands="$ac_config_commands examples/Makefile"
30848 ac_config_commands="$ac_config_commands lib/Makefile"
30851 ac_config_commands="$ac_config_commands runtime/Makefile"
30854 ac_config_commands="$ac_config_commands test/Makefile"
30857 ac_config_commands="$ac_config_commands test/Makefile.tests"
30860 ac_config_commands="$ac_config_commands tools/Makefile"
30863 ac_config_commands="$ac_config_commands utils/Makefile"
30866 ac_config_commands="$ac_config_commands projects/Makefile"
30870 cat >confcache <<\_ACEOF
30871 # This file is a shell script that caches the results of configure
30872 # tests run on this system so they can be shared between configure
30873 # scripts and configure runs, see configure's option --config-cache.
30874 # It is not useful on other systems. If it contains results you don't
30875 # want to keep, you may remove or edit it.
30877 # config.status only pays attention to the cache file if you give it
30878 # the --recheck option to rerun configure.
30880 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30881 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30882 # following values.
30886 # The following way of writing the cache mishandles newlines in values,
30887 # but we know of no workaround that is simple, portable, and efficient.
30888 # So, don't put newlines in cache variables' values.
30889 # Ultrix sh set writes to stderr and can't be redirected directly,
30890 # and sets the high bit in the cache file unless we assign to the vars.
30893 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30895 # `set' does not quote correctly, so add quotes (double-quote
30896 # substitution turns \\\\ into \\, and sed turns \\ into \).
30899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30902 # `set' quotes correctly as required by POSIX, so do not add quotes.
30904 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30911 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30913 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30915 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30916 if test -w $cache_file; then
30917 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30918 cat confcache >$cache_file
30920 echo "not updating unwritable cache $cache_file"
30925 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30926 # Let make expand exec_prefix.
30927 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30929 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30930 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30931 # trailing colons and then remove the whole line if VPATH becomes empty
30932 # (actually we leave an empty line to preserve line numbers).
30933 if test "x$srcdir" = x.; then
30934 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30935 s/:*\$(srcdir):*/:/;
30936 s/:*\${srcdir}:*/:/;
30938 s/^\([^=]*=[ ]*\):*/\1/;
30944 DEFS=-DHAVE_CONFIG_H
30948 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30949 # 1. Remove the extension, and $U if already installed.
30950 ac_i=`echo "$ac_i" |
30951 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30953 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30954 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30956 LIBOBJS=$ac_libobjs
30958 LTLIBOBJS=$ac_ltlibobjs
30961 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30962 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30963 Usually this means the macro was only invoked conditionally." >&5
30964 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30965 Usually this means the macro was only invoked conditionally." >&2;}
30966 { (exit 1); exit 1; }; }
30968 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30969 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30970 Usually this means the macro was only invoked conditionally." >&5
30971 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30972 Usually this means the macro was only invoked conditionally." >&2;}
30973 { (exit 1); exit 1; }; }
30976 : ${CONFIG_STATUS=./config.status}
30977 ac_clean_files_save=$ac_clean_files
30978 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30979 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30980 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30981 cat >$CONFIG_STATUS <<_ACEOF
30983 # Generated by $as_me.
30984 # Run this file to recreate the current configuration.
30985 # Compiler output produced by configure, useful for debugging
30986 # configure, is in config.log if it exists.
30989 ac_cs_recheck=false
30991 SHELL=\${CONFIG_SHELL-$SHELL}
30994 cat >>$CONFIG_STATUS <<\_ACEOF
30995 ## --------------------- ##
30996 ## M4sh Initialization. ##
30997 ## --------------------- ##
30999 # Be Bourne compatible
31000 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31003 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31004 # is contrary to our usage. Disable this feature.
31005 alias -g '${1+"$@"}'='"$@"'
31006 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31009 DUALCASE=1; export DUALCASE # for MKS sh
31011 # Support unset when possible.
31012 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31019 # Work around bugs in pre-3.0 UWIN ksh.
31020 $as_unset ENV MAIL MAILPATH
31027 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31028 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31029 LC_TELEPHONE LC_TIME
31031 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31032 eval $as_var=C; export $as_var
31038 # Required to use basename.
31039 if expr a : '\(a\)' >/dev/null 2>&1; then
31045 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31046 as_basename=basename
31052 # Name of the executable.
31053 as_me=`$as_basename "$0" ||
31054 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31055 X"$0" : 'X\(//\)$' \| \
31056 X"$0" : 'X\(/\)$' \| \
31057 . : '\(.\)' 2>/dev/null ||
31059 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31060 /^X\/\(\/\/\)$/{ s//\1/; q; }
31061 /^X\/\(\/\).*/{ s//\1/; q; }
31065 # PATH needs CR, and LINENO needs CR and PATH.
31066 # Avoid depending upon Character Ranges.
31067 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31068 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31069 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31070 as_cr_digits='0123456789'
31071 as_cr_alnum=$as_cr_Letters$as_cr_digits
31073 # The user is always right.
31074 if test "${PATH_SEPARATOR+set}" != set; then
31075 echo "#! /bin/sh" >conf$$.sh
31076 echo "exit 0" >>conf$$.sh
31078 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31087 as_lineno_1=$LINENO
31088 as_lineno_2=$LINENO
31089 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31090 test "x$as_lineno_1" != "x$as_lineno_2" &&
31091 test "x$as_lineno_3" = "x$as_lineno_2" || {
31092 # Find who we are. Look in the path if we contain no path at all
31095 *[\\/]* ) as_myself=$0 ;;
31096 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31097 for as_dir in $PATH
31100 test -z "$as_dir" && as_dir=.
31101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31106 # We did not find ourselves, most probably we were run as `sh COMMAND'
31107 # in which case we are not to be found in the path.
31108 if test "x$as_myself" = x; then
31111 if test ! -f "$as_myself"; then
31112 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31113 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31114 { (exit 1); exit 1; }; }
31116 case $CONFIG_SHELL in
31118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31119 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31122 test -z "$as_dir" && as_dir=.
31123 for as_base in sh bash ksh sh5; do
31126 if ("$as_dir/$as_base" -c '
31127 as_lineno_1=$LINENO
31128 as_lineno_2=$LINENO
31129 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31130 test "x$as_lineno_1" != "x$as_lineno_2" &&
31131 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
31132 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31133 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31134 CONFIG_SHELL=$as_dir/$as_base
31135 export CONFIG_SHELL
31136 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31144 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31145 # uniformly replaced by the line number. The first 'sed' inserts a
31146 # line-number line before each line; the second 'sed' does the real
31147 # work. The second script uses 'N' to pair each line-number line
31148 # with the numbered line, and appends trailing '-' during
31149 # substitution so that $LINENO is not a special case at line end.
31150 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31151 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31152 sed '=' <$as_myself |
31157 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31160 s,^['$as_cr_digits']*\n,,
31161 ' >$as_me.lineno &&
31162 chmod +x $as_me.lineno ||
31163 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31164 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31165 { (exit 1); exit 1; }; }
31167 # Don't try to exec as it changes $[0], causing all sort of problems
31168 # (the dirname of $[0] is not the place where we might find the
31169 # original and so on. Autoconf is especially sensible to this).
31171 # Exit status is that of the last command.
31176 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31177 *c*,-n*) ECHO_N= ECHO_C='
31179 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31180 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31183 if expr a : '\(a\)' >/dev/null 2>&1; then
31189 rm -f conf$$ conf$$.exe conf$$.file
31191 if ln -s conf$$.file conf$$ 2>/dev/null; then
31192 # We could just check for DJGPP; but this test a) works b) is more generic
31193 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31194 if test -f conf$$.exe; then
31195 # Don't use ln at all; we don't have any links
31200 elif ln conf$$.file conf$$ 2>/dev/null; then
31205 rm -f conf$$ conf$$.exe conf$$.file
31207 if mkdir -p . 2>/dev/null; then
31210 test -d ./-p && rmdir ./-p
31214 as_executable_p="test -f"
31216 # Sed expression to map a string onto a valid CPP name.
31217 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31219 # Sed expression to map a string onto a valid variable name.
31220 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31224 # We need space, tab and new line, in precisely that order.
31234 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31235 # report actual input values of CONFIG_FILES etc. instead of their
31236 # values after options handling. Logging --version etc. is OK.
31240 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31241 ## Running $as_me. ##
31246 This file was extended by llvm $as_me 1.8cvs, which was
31247 generated by GNU Autoconf 2.59. Invocation command line was
31249 CONFIG_FILES = $CONFIG_FILES
31250 CONFIG_HEADERS = $CONFIG_HEADERS
31251 CONFIG_LINKS = $CONFIG_LINKS
31252 CONFIG_COMMANDS = $CONFIG_COMMANDS
31256 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31260 # Files that config.status was made for.
31261 if test -n "$ac_config_files"; then
31262 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31265 if test -n "$ac_config_headers"; then
31266 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31269 if test -n "$ac_config_links"; then
31270 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31273 if test -n "$ac_config_commands"; then
31274 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31277 cat >>$CONFIG_STATUS <<\_ACEOF
31280 \`$as_me' instantiates files from templates according to the
31281 current configuration.
31283 Usage: $0 [OPTIONS] [FILE]...
31285 -h, --help print this help, then exit
31286 -V, --version print version number, then exit
31287 -q, --quiet do not print progress messages
31288 -d, --debug don't remove temporary files
31289 --recheck update $as_me by reconfiguring in the same conditions
31290 --file=FILE[:TEMPLATE]
31291 instantiate the configuration file FILE
31292 --header=FILE[:TEMPLATE]
31293 instantiate the configuration header FILE
31295 Configuration files:
31298 Configuration headers:
31301 Configuration commands:
31304 Report bugs to <bug-autoconf@gnu.org>."
31307 cat >>$CONFIG_STATUS <<_ACEOF
31309 llvm config.status 1.8cvs
31310 configured by $0, generated by GNU Autoconf 2.59,
31311 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31313 Copyright (C) 2003 Free Software Foundation, Inc.
31314 This config.status script is free software; the Free Software Foundation
31315 gives unlimited permission to copy, distribute and modify it."
31320 cat >>$CONFIG_STATUS <<\_ACEOF
31321 # If no file are specified by the user, then we need to provide default
31322 # value. By we need to know if files were specified by the user.
31328 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31329 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31337 *) # This is not an option, so the user has probably given explicit
31340 ac_need_defaults=false;;
31344 # Handling of the options.
31346 cat >>$CONFIG_STATUS <<\_ACEOF
31347 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31349 --version | --vers* | -V )
31350 echo "$ac_cs_version"; exit 0 ;;
31352 # Conflict between --help and --header
31353 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31354 Try \`$0 --help' for more information." >&5
31355 echo "$as_me: error: ambiguous option: $1
31356 Try \`$0 --help' for more information." >&2;}
31357 { (exit 1); exit 1; }; };;
31358 --help | --hel | -h )
31359 echo "$ac_cs_usage"; exit 0 ;;
31360 --debug | --d* | -d )
31362 --file | --fil | --fi | --f )
31364 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31365 ac_need_defaults=false;;
31366 --header | --heade | --head | --hea )
31368 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31369 ac_need_defaults=false;;
31370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31371 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31374 # This is an error.
31375 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31376 Try \`$0 --help' for more information." >&5
31377 echo "$as_me: error: unrecognized option: $1
31378 Try \`$0 --help' for more information." >&2;}
31379 { (exit 1); exit 1; }; } ;;
31381 *) ac_config_targets="$ac_config_targets $1" ;;
31387 ac_configure_extra_args=
31389 if $ac_cs_silent; then
31391 ac_configure_extra_args="$ac_configure_extra_args --silent"
31395 cat >>$CONFIG_STATUS <<_ACEOF
31396 if \$ac_cs_recheck; then
31397 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31398 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31403 cat >>$CONFIG_STATUS <<_ACEOF
31405 # INIT-COMMANDS section.
31408 llvm_src="${srcdir}"
31414 cat >>$CONFIG_STATUS <<\_ACEOF
31415 for ac_config_target in $ac_config_targets
31417 case "$ac_config_target" in
31418 # Handling of arguments.
31419 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31420 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31421 "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
31422 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31423 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31424 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31425 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31426 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31427 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31428 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31429 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31430 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31431 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31432 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31433 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31434 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31435 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31436 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31437 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31438 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31439 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31440 { (exit 1); exit 1; }; };;
31444 # If the user did not use the arguments to specify the items to instantiate,
31445 # then the envvar interface is used. Set only those that are not.
31446 # We use the long form for the default assignment because of an extremely
31447 # bizarre bug on SunOS 4.1.3.
31448 if $ac_need_defaults; then
31449 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31450 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31451 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31454 # Have a temporary directory for convenience. Make it in the build tree
31455 # simply because there is no reason to put it here, and in addition,
31456 # creating and moving files from /tmp can sometimes cause problems.
31457 # Create a temporary directory, and hook for its removal unless debugging.
31460 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31461 trap '{ (exit 1); exit 1; }' 1 2 13 15
31464 # Create a (secure) tmp directory for tmp files.
31467 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31468 test -n "$tmp" && test -d "$tmp"
31471 tmp=./confstat$$-$RANDOM
31472 (umask 077 && mkdir $tmp)
31475 echo "$me: cannot create a temporary directory in ." >&2
31476 { (exit 1); exit 1; }
31481 cat >>$CONFIG_STATUS <<_ACEOF
31484 # CONFIG_FILES section.
31487 # No need to generate the scripts if there are no CONFIG_FILES.
31488 # This happens for instance when ./config.status config.h
31489 if test -n "\$CONFIG_FILES"; then
31490 # Protect against being on the right side of a sed subst in config.status.
31491 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31492 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31493 s,@SHELL@,$SHELL,;t t
31494 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31495 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31496 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31497 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31498 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31499 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31500 s,@exec_prefix@,$exec_prefix,;t t
31501 s,@prefix@,$prefix,;t t
31502 s,@program_transform_name@,$program_transform_name,;t t
31503 s,@bindir@,$bindir,;t t
31504 s,@sbindir@,$sbindir,;t t
31505 s,@libexecdir@,$libexecdir,;t t
31506 s,@datadir@,$datadir,;t t
31507 s,@sysconfdir@,$sysconfdir,;t t
31508 s,@sharedstatedir@,$sharedstatedir,;t t
31509 s,@localstatedir@,$localstatedir,;t t
31510 s,@libdir@,$libdir,;t t
31511 s,@includedir@,$includedir,;t t
31512 s,@oldincludedir@,$oldincludedir,;t t
31513 s,@infodir@,$infodir,;t t
31514 s,@mandir@,$mandir,;t t
31515 s,@build_alias@,$build_alias,;t t
31516 s,@host_alias@,$host_alias,;t t
31517 s,@target_alias@,$target_alias,;t t
31518 s,@DEFS@,$DEFS,;t t
31519 s,@ECHO_C@,$ECHO_C,;t t
31520 s,@ECHO_N@,$ECHO_N,;t t
31521 s,@ECHO_T@,$ECHO_T,;t t
31522 s,@LIBS@,$LIBS,;t t
31523 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31524 s,@subdirs@,$subdirs,;t t
31525 s,@build@,$build,;t t
31526 s,@build_cpu@,$build_cpu,;t t
31527 s,@build_vendor@,$build_vendor,;t t
31528 s,@build_os@,$build_os,;t t
31529 s,@host@,$host,;t t
31530 s,@host_cpu@,$host_cpu,;t t
31531 s,@host_vendor@,$host_vendor,;t t
31532 s,@host_os@,$host_os,;t t
31533 s,@target@,$target,;t t
31534 s,@target_cpu@,$target_cpu,;t t
31535 s,@target_vendor@,$target_vendor,;t t
31536 s,@target_os@,$target_os,;t t
31538 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31539 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31540 s,@ARCH@,$ARCH,;t t
31541 s,@ENDIAN@,$ENDIAN,;t t
31543 s,@CFLAGS@,$CFLAGS,;t t
31544 s,@LDFLAGS@,$LDFLAGS,;t t
31545 s,@CPPFLAGS@,$CPPFLAGS,;t t
31546 s,@ac_ct_CC@,$ac_ct_CC,;t t
31547 s,@EXEEXT@,$EXEEXT,;t t
31548 s,@OBJEXT@,$OBJEXT,;t t
31549 s,@CVSBUILD@,$CVSBUILD,;t t
31550 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31551 s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
31552 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31554 s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
31555 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31556 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31557 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31560 s,@CXXFLAGS@,$CXXFLAGS,;t t
31561 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31563 s,@LEXLIB@,$LEXLIB,;t t
31564 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31565 s,@FLEX@,$FLEX,;t t
31566 s,@YACC@,$YACC,;t t
31567 s,@BISON@,$BISON,;t t
31568 s,@ifGNUmake@,$ifGNUmake,;t t
31569 s,@LN_S@,$LN_S,;t t
31572 s,@DATE@,$DATE,;t t
31573 s,@FIND@,$FIND,;t t
31574 s,@GREP@,$GREP,;t t
31575 s,@MKDIR@,$MKDIR,;t t
31577 s,@RANLIB@,$RANLIB,;t t
31578 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31582 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31584 s,@PERL@,$PERL,;t t
31585 s,@HAVE_PERL@,$HAVE_PERL,;t t
31586 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31587 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31588 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31589 s,@BZIP2@,$BZIP2,;t t
31591 s,@DOXYGEN@,$DOXYGEN,;t t
31592 s,@ETAGS@,$ETAGS,;t t
31593 s,@GROFF@,$GROFF,;t t
31594 s,@GZIP@,$GZIP,;t t
31595 s,@POD2HTML@,$POD2HTML,;t t
31596 s,@POD2MAN@,$POD2MAN,;t t
31597 s,@RUNTEST@,$RUNTEST,;t t
31598 s,@TCLSH@,$TCLSH,;t t
31600 s,@EGREP@,$EGREP,;t t
31601 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31602 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31603 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31604 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31605 s,@LIBADD_DL@,$LIBADD_DL,;t t
31606 s,@ECHO@,$ECHO,;t t
31608 s,@ac_ct_AR@,$ac_ct_AR,;t t
31609 s,@STRIP@,$STRIP,;t t
31610 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31611 s,@CXXCPP@,$CXXCPP,;t t
31613 s,@FFLAGS@,$FFLAGS,;t t
31614 s,@ac_ct_F77@,$ac_ct_F77,;t t
31615 s,@LIBTOOL@,$LIBTOOL,;t t
31616 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31617 s,@LLVMGCC@,$LLVMGCC,;t t
31618 s,@LLVMGXX@,$LLVMGXX,;t t
31619 s,@ALLOCA@,$ALLOCA,;t t
31620 s,@MMAP_FILE@,$MMAP_FILE,;t t
31621 s,@LLVMCC1@,$LLVMCC1,;t t
31622 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31623 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31624 s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
31625 s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
31626 s,@SHLIBEXT@,$SHLIBEXT,;t t
31627 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31628 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31629 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31630 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31631 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31632 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31633 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31634 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31635 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31636 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31637 s,@LIBOBJS@,$LIBOBJS,;t t
31638 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31643 cat >>$CONFIG_STATUS <<\_ACEOF
31644 # Split the substitutions into bite-sized pieces for seds with
31645 # small command number limits, like on Digital OSF/1 and HP-UX.
31646 ac_max_sed_lines=48
31647 ac_sed_frag=1 # Number of current file.
31648 ac_beg=1 # First line for current file.
31649 ac_end=$ac_max_sed_lines # Line after last line for current file.
31652 while $ac_more_lines; do
31653 if test $ac_beg -gt 1; then
31654 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31656 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31658 if test ! -s $tmp/subs.frag; then
31659 ac_more_lines=false
31661 # The purpose of the label and of the branching condition is to
31662 # speed up the sed processing (if there are no `@' at all, there
31663 # is no need to browse any of the substitutions).
31664 # These are the two extra sed commands mentioned above.
31666 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31667 if test -z "$ac_sed_cmds"; then
31668 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31670 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31672 ac_sed_frag=`expr $ac_sed_frag + 1`
31674 ac_end=`expr $ac_end + $ac_max_sed_lines`
31677 if test -z "$ac_sed_cmds"; then
31680 fi # test -n "$CONFIG_FILES"
31683 cat >>$CONFIG_STATUS <<\_ACEOF
31684 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31685 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31687 - | *:- | *:-:* ) # input from stdin
31689 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31690 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31691 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31692 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31693 * ) ac_file_in=$ac_file.in ;;
31696 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31697 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31698 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31699 X"$ac_file" : 'X\(//\)[^/]' \| \
31700 X"$ac_file" : 'X\(//\)$' \| \
31701 X"$ac_file" : 'X\(/\)' \| \
31702 . : '\(.\)' 2>/dev/null ||
31704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31705 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31706 /^X\(\/\/\)$/{ s//\1/; q; }
31707 /^X\(\/\).*/{ s//\1/; q; }
31709 { if $as_mkdir_p; then
31714 while test ! -d "$as_dir"; do
31715 as_dirs="$as_dir $as_dirs"
31716 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31717 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31718 X"$as_dir" : 'X\(//\)[^/]' \| \
31719 X"$as_dir" : 'X\(//\)$' \| \
31720 X"$as_dir" : 'X\(/\)' \| \
31721 . : '\(.\)' 2>/dev/null ||
31723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31724 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31725 /^X\(\/\/\)$/{ s//\1/; q; }
31726 /^X\(\/\).*/{ s//\1/; q; }
31729 test ! -n "$as_dirs" || mkdir $as_dirs
31730 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31731 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31732 { (exit 1); exit 1; }; }; }
31736 if test "$ac_dir" != .; then
31737 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31738 # A "../" for each directory in $ac_dir_suffix.
31739 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31741 ac_dir_suffix= ac_top_builddir=
31745 .) # No --srcdir option. We are building in place.
31747 if test -z "$ac_top_builddir"; then
31750 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31752 [\\/]* | ?:[\\/]* ) # Absolute path.
31753 ac_srcdir=$srcdir$ac_dir_suffix;
31754 ac_top_srcdir=$srcdir ;;
31755 *) # Relative path.
31756 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31757 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31760 # Do not use `cd foo && pwd` to compute absolute paths, because
31761 # the directories may not exist.
31763 .) ac_abs_builddir="$ac_dir";;
31766 .) ac_abs_builddir=`pwd`;;
31767 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31768 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31771 case $ac_abs_builddir in
31772 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31774 case ${ac_top_builddir}. in
31775 .) ac_abs_top_builddir=$ac_abs_builddir;;
31776 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31777 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31780 case $ac_abs_builddir in
31781 .) ac_abs_srcdir=$ac_srcdir;;
31784 .) ac_abs_srcdir=$ac_abs_builddir;;
31785 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31786 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31789 case $ac_abs_builddir in
31790 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31792 case $ac_top_srcdir in
31793 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31794 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31795 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31801 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31802 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31805 if test x"$ac_file" != x-; then
31806 { echo "$as_me:$LINENO: creating $ac_file" >&5
31807 echo "$as_me: creating $ac_file" >&6;}
31810 # Let's still pretend it is `configure' which instantiates (i.e., don't
31811 # use $as_me), people would be surprised to read:
31812 # /* config.h. Generated by config.status. */
31813 if test x"$ac_file" = x-; then
31816 configure_input="$ac_file. "
31818 configure_input=$configure_input"Generated from `echo $ac_file_in |
31819 sed 's,.*/,,'` by configure."
31821 # First look for the input files in the build tree, otherwise in the
31823 ac_file_inputs=`IFS=:
31824 for f in $ac_file_in; do
31826 -) echo $tmp/stdin ;;
31828 # Absolute (can't be DOS-style, as IFS=:)
31829 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31830 echo "$as_me: error: cannot find input file: $f" >&2;}
31831 { (exit 1); exit 1; }; }
31834 if test -f "$f"; then
31837 elif test -f "$srcdir/$f"; then
31842 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31843 echo "$as_me: error: cannot find input file: $f" >&2;}
31844 { (exit 1); exit 1; }; }
31847 done` || { (exit 1); exit 1; }
31849 cat >>$CONFIG_STATUS <<_ACEOF
31853 cat >>$CONFIG_STATUS <<\_ACEOF
31855 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31856 s,@configure_input@,$configure_input,;t t
31857 s,@srcdir@,$ac_srcdir,;t t
31858 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31859 s,@top_srcdir@,$ac_top_srcdir,;t t
31860 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31861 s,@builddir@,$ac_builddir,;t t
31862 s,@abs_builddir@,$ac_abs_builddir,;t t
31863 s,@top_builddir@,$ac_top_builddir,;t t
31864 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31865 s,@INSTALL@,$ac_INSTALL,;t t
31866 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31868 if test x"$ac_file" != x-; then
31869 mv $tmp/out $ac_file
31877 cat >>$CONFIG_STATUS <<\_ACEOF
31880 # CONFIG_HEADER section.
31883 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31884 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31886 # ac_d sets the value in "#define NAME VALUE" lines.
31887 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31888 ac_dB='[ ].*$,\1#\2'
31891 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31892 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31893 ac_uB='$,\1#\2define\3'
31897 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31898 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31900 - | *:- | *:-:* ) # input from stdin
31902 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31903 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31904 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31905 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31906 * ) ac_file_in=$ac_file.in ;;
31909 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31910 echo "$as_me: creating $ac_file" >&6;}
31912 # First look for the input files in the build tree, otherwise in the
31914 ac_file_inputs=`IFS=:
31915 for f in $ac_file_in; do
31917 -) echo $tmp/stdin ;;
31919 # Absolute (can't be DOS-style, as IFS=:)
31920 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31921 echo "$as_me: error: cannot find input file: $f" >&2;}
31922 { (exit 1); exit 1; }; }
31923 # Do quote $f, to prevent DOS paths from being IFS'd.
31926 if test -f "$f"; then
31929 elif test -f "$srcdir/$f"; then
31934 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31935 echo "$as_me: error: cannot find input file: $f" >&2;}
31936 { (exit 1); exit 1; }; }
31939 done` || { (exit 1); exit 1; }
31940 # Remove the trailing spaces.
31941 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31945 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31946 # `conftest.undefs', that substitutes the proper values into
31947 # config.h.in to produce config.h. The first handles `#define'
31948 # templates, and the second `#undef' templates.
31949 # And first: Protect against being on the right side of a sed subst in
31950 # config.status. Protect against being in an unquoted here document
31951 # in config.status.
31952 rm -f conftest.defines conftest.undefs
31953 # Using a here document instead of a string reduces the quoting nightmare.
31954 # Putting comments in sed scripts is not portable.
31956 # `end' is used to avoid that the second main sed command (meant for
31957 # 0-ary CPP macros) applies to n-ary macro definitions.
31958 # See the Autoconf documentation for `clear'.
31959 cat >confdef2sed.sed <<\_ACEOF
31964 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31966 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31969 # If some macros were called several times there might be several times
31970 # the same #defines, which is useless. Nevertheless, we may not want to
31971 # sort them, since we want the *last* AC-DEFINE to be honored.
31972 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31973 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31974 rm -f confdef2sed.sed
31976 # This sed command replaces #undef with comments. This is necessary, for
31977 # example, in the case of _POSIX_SOURCE, which is predefined and required
31978 # on some systems where configure will not decide to define it.
31979 cat >>conftest.undefs <<\_ACEOF
31980 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31983 # Break up conftest.defines because some shells have a limit on the size
31984 # of here documents, and old seds have small limits too (100 cmds).
31985 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31986 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31987 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31988 echo ' :' >>$CONFIG_STATUS
31989 rm -f conftest.tail
31990 while grep . conftest.defines >/dev/null
31992 # Write a limited-size here document to $tmp/defines.sed.
31993 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31994 # Speed up: don't consider the non `#define' lines.
31995 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31996 # Work around the forget-to-reset-the-flag bug.
31997 echo 't clr' >>$CONFIG_STATUS
31998 echo ': clr' >>$CONFIG_STATUS
31999 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32001 sed -f $tmp/defines.sed $tmp/in >$tmp/out
32003 mv $tmp/out $tmp/in
32005 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32006 rm -f conftest.defines
32007 mv conftest.tail conftest.defines
32009 rm -f conftest.defines
32010 echo ' fi # grep' >>$CONFIG_STATUS
32011 echo >>$CONFIG_STATUS
32013 # Break up conftest.undefs because some shells have a limit on the size
32014 # of here documents, and old seds have small limits too (100 cmds).
32015 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
32016 rm -f conftest.tail
32017 while grep . conftest.undefs >/dev/null
32019 # Write a limited-size here document to $tmp/undefs.sed.
32020 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32021 # Speed up: don't consider the non `#undef'
32022 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
32023 # Work around the forget-to-reset-the-flag bug.
32024 echo 't clr' >>$CONFIG_STATUS
32025 echo ': clr' >>$CONFIG_STATUS
32026 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32028 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32030 mv $tmp/out $tmp/in
32032 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32033 rm -f conftest.undefs
32034 mv conftest.tail conftest.undefs
32036 rm -f conftest.undefs
32038 cat >>$CONFIG_STATUS <<\_ACEOF
32039 # Let's still pretend it is `configure' which instantiates (i.e., don't
32040 # use $as_me), people would be surprised to read:
32041 # /* config.h. Generated by config.status. */
32042 if test x"$ac_file" = x-; then
32043 echo "/* Generated by configure. */" >$tmp/config.h
32045 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32047 cat $tmp/in >>$tmp/config.h
32049 if test x"$ac_file" != x-; then
32050 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32051 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32052 echo "$as_me: $ac_file is unchanged" >&6;}
32054 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32055 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32056 X"$ac_file" : 'X\(//\)[^/]' \| \
32057 X"$ac_file" : 'X\(//\)$' \| \
32058 X"$ac_file" : 'X\(/\)' \| \
32059 . : '\(.\)' 2>/dev/null ||
32061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32062 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32063 /^X\(\/\/\)$/{ s//\1/; q; }
32064 /^X\(\/\).*/{ s//\1/; q; }
32066 { if $as_mkdir_p; then
32071 while test ! -d "$as_dir"; do
32072 as_dirs="$as_dir $as_dirs"
32073 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32074 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32075 X"$as_dir" : 'X\(//\)[^/]' \| \
32076 X"$as_dir" : 'X\(//\)$' \| \
32077 X"$as_dir" : 'X\(/\)' \| \
32078 . : '\(.\)' 2>/dev/null ||
32080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32081 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32082 /^X\(\/\/\)$/{ s//\1/; q; }
32083 /^X\(\/\).*/{ s//\1/; q; }
32086 test ! -n "$as_dirs" || mkdir $as_dirs
32087 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32088 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32089 { (exit 1); exit 1; }; }; }
32092 mv $tmp/config.h $ac_file
32096 rm -f $tmp/config.h
32100 cat >>$CONFIG_STATUS <<\_ACEOF
32103 # CONFIG_COMMANDS section.
32105 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32106 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32107 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32108 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32109 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32110 X"$ac_dest" : 'X\(//\)[^/]' \| \
32111 X"$ac_dest" : 'X\(//\)$' \| \
32112 X"$ac_dest" : 'X\(/\)' \| \
32113 . : '\(.\)' 2>/dev/null ||
32115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32116 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32117 /^X\(\/\/\)$/{ s//\1/; q; }
32118 /^X\(\/\).*/{ s//\1/; q; }
32120 { if $as_mkdir_p; then
32125 while test ! -d "$as_dir"; do
32126 as_dirs="$as_dir $as_dirs"
32127 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32129 X"$as_dir" : 'X\(//\)[^/]' \| \
32130 X"$as_dir" : 'X\(//\)$' \| \
32131 X"$as_dir" : 'X\(/\)' \| \
32132 . : '\(.\)' 2>/dev/null ||
32134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32135 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32136 /^X\(\/\/\)$/{ s//\1/; q; }
32137 /^X\(\/\).*/{ s//\1/; q; }
32140 test ! -n "$as_dirs" || mkdir $as_dirs
32141 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32142 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32143 { (exit 1); exit 1; }; }; }
32147 if test "$ac_dir" != .; then
32148 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32149 # A "../" for each directory in $ac_dir_suffix.
32150 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32152 ac_dir_suffix= ac_top_builddir=
32156 .) # No --srcdir option. We are building in place.
32158 if test -z "$ac_top_builddir"; then
32161 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32163 [\\/]* | ?:[\\/]* ) # Absolute path.
32164 ac_srcdir=$srcdir$ac_dir_suffix;
32165 ac_top_srcdir=$srcdir ;;
32166 *) # Relative path.
32167 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32168 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32171 # Do not use `cd foo && pwd` to compute absolute paths, because
32172 # the directories may not exist.
32174 .) ac_abs_builddir="$ac_dir";;
32177 .) ac_abs_builddir=`pwd`;;
32178 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32179 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32182 case $ac_abs_builddir in
32183 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32185 case ${ac_top_builddir}. in
32186 .) ac_abs_top_builddir=$ac_abs_builddir;;
32187 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32188 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32191 case $ac_abs_builddir in
32192 .) ac_abs_srcdir=$ac_srcdir;;
32195 .) ac_abs_srcdir=$ac_abs_builddir;;
32196 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32197 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32200 case $ac_abs_builddir in
32201 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32203 case $ac_top_srcdir in
32204 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32205 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32206 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32211 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32212 echo "$as_me: executing $ac_dest commands" >&6;}
32214 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32215 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32216 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32217 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32218 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32219 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32220 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32221 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32222 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32223 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32224 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32225 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32226 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32227 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32228 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32229 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32230 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32231 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32232 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32233 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32238 cat >>$CONFIG_STATUS <<\_ACEOF
32240 { (exit 0); exit 0; }
32242 chmod +x $CONFIG_STATUS
32243 ac_clean_files=$ac_clean_files_save
32246 # configure is writing to config.log, and then calls config.status.
32247 # config.status does its own redirection, appending to config.log.
32248 # Unfortunately, on DOS this fails, as config.log is still kept open
32249 # by configure, so config.status won't be able to write to it; its
32250 # output is simply discarded. So we exec the FD to /dev/null,
32251 # effectively closing config.log, so it can be properly (re)opened and
32252 # appended to by config.status. When coming back to configure, we
32253 # need to make the FD available again.
32254 if test "$no_create" != yes; then
32256 ac_config_status_args=
32257 test "$silent" = yes &&
32258 ac_config_status_args="$ac_config_status_args --quiet"
32260 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32262 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32263 # would make configure fail if this is the last instruction.
32264 $ac_cs_success || { (exit 1); exit 1; }
32268 # CONFIG_SUBDIRS section.
32270 if test "$no_recursion" != yes; then
32272 # Remove --cache-file and --srcdir arguments so they do not pile up.
32273 ac_sub_configure_args=
32275 for ac_arg in $ac_configure_args; do
32276 if test -n "$ac_prev"; then
32281 -cache-file | --cache-file | --cache-fil | --cache-fi \
32282 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32283 ac_prev=cache_file ;;
32284 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32285 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32288 --config-cache | -C)
32290 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32292 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32294 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32296 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32298 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32302 # Always prepend --prefix to ensure using the same prefix
32303 # in subdir configurations.
32304 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32307 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32309 # Do not complain, so a configure script can configure whichever
32310 # parts of a large source tree are present.
32311 test -d $srcdir/$ac_dir || continue
32313 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32314 echo "$as_me: configuring in $ac_dir" >&6;}
32315 { if $as_mkdir_p; then
32320 while test ! -d "$as_dir"; do
32321 as_dirs="$as_dir $as_dirs"
32322 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32323 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32324 X"$as_dir" : 'X\(//\)[^/]' \| \
32325 X"$as_dir" : 'X\(//\)$' \| \
32326 X"$as_dir" : 'X\(/\)' \| \
32327 . : '\(.\)' 2>/dev/null ||
32329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32330 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32331 /^X\(\/\/\)$/{ s//\1/; q; }
32332 /^X\(\/\).*/{ s//\1/; q; }
32335 test ! -n "$as_dirs" || mkdir $as_dirs
32336 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32337 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32338 { (exit 1); exit 1; }; }; }
32342 if test "$ac_dir" != .; then
32343 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32344 # A "../" for each directory in $ac_dir_suffix.
32345 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32347 ac_dir_suffix= ac_top_builddir=
32351 .) # No --srcdir option. We are building in place.
32353 if test -z "$ac_top_builddir"; then
32356 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32358 [\\/]* | ?:[\\/]* ) # Absolute path.
32359 ac_srcdir=$srcdir$ac_dir_suffix;
32360 ac_top_srcdir=$srcdir ;;
32361 *) # Relative path.
32362 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32363 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32366 # Do not use `cd foo && pwd` to compute absolute paths, because
32367 # the directories may not exist.
32369 .) ac_abs_builddir="$ac_dir";;
32372 .) ac_abs_builddir=`pwd`;;
32373 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32374 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32377 case $ac_abs_builddir in
32378 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32380 case ${ac_top_builddir}. in
32381 .) ac_abs_top_builddir=$ac_abs_builddir;;
32382 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32383 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32386 case $ac_abs_builddir in
32387 .) ac_abs_srcdir=$ac_srcdir;;
32390 .) ac_abs_srcdir=$ac_abs_builddir;;
32391 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32392 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32395 case $ac_abs_builddir in
32396 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32398 case $ac_top_srcdir in
32399 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32400 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32401 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32408 # Check for guested configure; otherwise get Cygnus style configure.
32409 if test -f $ac_srcdir/configure.gnu; then
32410 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32411 elif test -f $ac_srcdir/configure; then
32412 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32413 elif test -f $ac_srcdir/configure.in; then
32414 ac_sub_configure=$ac_configure
32416 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32417 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32421 # The recursion is here.
32422 if test -n "$ac_sub_configure"; then
32423 # Make the cache file name correct relative to the subdirectory.
32424 case $cache_file in
32425 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32426 *) # Relative path.
32427 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32430 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32431 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32432 # The eval makes quoting arguments work.
32433 eval $ac_sub_configure $ac_sub_configure_args \
32434 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32435 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32436 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32437 { (exit 1); exit 1; }; }
32445 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32446 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32447 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32448 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32449 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32450 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32451 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32452 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32453 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32454 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32455 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}