2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.7.
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.7'
429 PACKAGE_STRING='llvm 1.7'
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.7 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.7:";;
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
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.7, 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="HP-UX"
1727 llvm_cv_platform_type="Unix" ;;
1729 llvm_cv_os_type="Interix"
1730 llvm_cv_platform_type="Unix" ;;
1732 llvm_cv_os_type="Linux"
1733 llvm_cv_platform_type="Unix" ;;
1735 llvm_cv_os_type="SunOS"
1736 llvm_cv_platform_type="Unix" ;;
1738 llvm_cv_os_type="Win32"
1739 llvm_cv_platform_type="Win32" ;;
1741 llvm_cv_os_type="MingW"
1742 llvm_cv_platform_type="Win32" ;;
1744 llvm_cv_os_type="Unknown"
1745 llvm_cv_platform_type="Unknown" ;;
1748 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1749 echo "${ECHO_T}$llvm_cv_os_type" >&6
1751 if test "$llvm_cv_os_type" = "Unknown" ; then
1752 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1753 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1754 { (exit 1); exit 1; }; }
1760 case $llvm_cv_platform_type in
1763 cat >>confdefs.h <<\_ACEOF
1764 #define LLVM_ON_UNIX 1
1774 cat >>confdefs.h <<\_ACEOF
1775 #define LLVM_ON_WIN32 1
1785 echo "$as_me:$LINENO: checking target architecture" >&5
1786 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1787 if test "${llvm_cv_target_arch+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 i?86-*) llvm_cv_target_arch="x86" ;;
1792 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
1793 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1794 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1795 alpha*-*) llvm_cv_target_arch="Alpha" ;;
1796 ia64-*) llvm_cv_target_arch="IA64" ;;
1797 *) llvm_cv_target_arch="Unknown" ;;
1800 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1801 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1803 if test "$llvm_cv_target_arch" = "Unknown" ; then
1804 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1805 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1808 ARCH=$llvm_cv_target_arch
1812 ac_cpp='$CPP $CPPFLAGS'
1813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1816 if test -n "$ac_tool_prefix"; then
1817 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1818 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1819 echo "$as_me:$LINENO: checking for $ac_word" >&5
1820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821 if test "${ac_cv_prog_CC+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1824 if test -n "$CC"; then
1825 ac_cv_prog_CC="$CC" # Let the user override the test.
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 test -z "$as_dir" && as_dir=.
1832 for ac_exec_ext in '' $ac_executable_extensions; do
1833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844 if test -n "$CC"; then
1845 echo "$as_me:$LINENO: result: $CC" >&5
1846 echo "${ECHO_T}$CC" >&6
1848 echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1853 if test -z "$ac_cv_prog_CC"; then
1855 # Extract the first word of "gcc", so it can be a program name with args.
1856 set dummy gcc; ac_word=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 if test -n "$ac_ct_CC"; then
1863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 ac_cv_prog_ac_ct_CC="gcc"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1882 if test -n "$ac_ct_CC"; then
1883 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1884 echo "${ECHO_T}$ac_ct_CC" >&6
1886 echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1895 if test -z "$CC"; then
1896 if test -n "$ac_tool_prefix"; then
1897 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1898 set dummy ${ac_tool_prefix}cc; ac_word=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_CC+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 if test -n "$CC"; then
1905 ac_cv_prog_CC="$CC" # Let the user override the test.
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 test -z "$as_dir" && as_dir=.
1912 for ac_exec_ext in '' $ac_executable_extensions; do
1913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914 ac_cv_prog_CC="${ac_tool_prefix}cc"
1915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924 if test -n "$CC"; then
1925 echo "$as_me:$LINENO: result: $CC" >&5
1926 echo "${ECHO_T}$CC" >&6
1928 echo "$as_me:$LINENO: result: no" >&5
1929 echo "${ECHO_T}no" >&6
1933 if test -z "$ac_cv_prog_CC"; then
1935 # Extract the first word of "cc", so it can be a program name with args.
1936 set dummy cc; ac_word=$2
1937 echo "$as_me:$LINENO: checking for $ac_word" >&5
1938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 if test -n "$ac_ct_CC"; then
1943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 test -z "$as_dir" && as_dir=.
1950 for ac_exec_ext in '' $ac_executable_extensions; do
1951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952 ac_cv_prog_ac_ct_CC="cc"
1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1962 if test -n "$ac_ct_CC"; then
1963 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1964 echo "${ECHO_T}$ac_ct_CC" >&6
1966 echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1976 if test -z "$CC"; then
1977 # Extract the first word of "cc", so it can be a program name with args.
1978 set dummy cc; ac_word=$2
1979 echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981 if test "${ac_cv_prog_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 if test -n "$CC"; then
1985 ac_cv_prog_CC="$CC" # Let the user override the test.
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1996 ac_prog_rejected=yes
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 if test $ac_prog_rejected = yes; then
2007 # We found a bogon in the path, so make sure we never use it.
2008 set dummy $ac_cv_prog_CC
2010 if test $# != 0; then
2011 # We chose a different compiler from the bogus one.
2012 # However, it has the same basename, so the bogon will be chosen
2013 # first if we set CC to just the basename; use the full file name.
2015 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2021 if test -n "$CC"; then
2022 echo "$as_me:$LINENO: result: $CC" >&5
2023 echo "${ECHO_T}$CC" >&6
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2030 if test -z "$CC"; then
2031 if test -n "$ac_tool_prefix"; then
2034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2035 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_CC+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 if test -n "$CC"; then
2042 ac_cv_prog_CC="$CC" # Let the user override the test.
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061 if test -n "$CC"; then
2062 echo "$as_me:$LINENO: result: $CC" >&5
2063 echo "${ECHO_T}$CC" >&6
2065 echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6
2069 test -n "$CC" && break
2072 if test -z "$CC"; then
2076 # Extract the first word of "$ac_prog", so it can be a program name with args.
2077 set dummy $ac_prog; ac_word=$2
2078 echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 if test -n "$ac_ct_CC"; then
2084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2093 ac_cv_prog_ac_ct_CC="$ac_prog"
2094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2103 if test -n "$ac_ct_CC"; then
2104 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2105 echo "${ECHO_T}$ac_ct_CC" >&6
2107 echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6
2111 test -n "$ac_ct_CC" && break
2120 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2121 See \`config.log' for more details." >&5
2122 echo "$as_me: error: no acceptable C compiler found in \$PATH
2123 See \`config.log' for more details." >&2;}
2124 { (exit 1); exit 1; }; }
2126 # Provide some information about the compiler.
2127 echo "$as_me:$LINENO:" \
2128 "checking for C compiler version" >&5
2129 ac_compiler=`set X $ac_compile; echo $2`
2130 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2131 (eval $ac_compiler --version </dev/null >&5) 2>&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }
2135 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2136 (eval $ac_compiler -v </dev/null >&5) 2>&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2140 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2141 (eval $ac_compiler -V </dev/null >&5) 2>&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }
2146 cat >conftest.$ac_ext <<_ACEOF
2149 cat confdefs.h >>conftest.$ac_ext
2150 cat >>conftest.$ac_ext <<_ACEOF
2151 /* end confdefs.h. */
2161 ac_clean_files_save=$ac_clean_files
2162 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2163 # Try to create an executable without -o first, disregard a.out.
2164 # It will help us diagnose broken compilers, and finding out an intuition
2166 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2167 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2168 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2169 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2170 (eval $ac_link_default) 2>&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; then
2174 # Find the output, starting from the most likely. This scheme is
2175 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2178 # Be careful to initialize this variable, since it used to be cached.
2179 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2181 # b.out is created by i960 compilers.
2182 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2184 test -f "$ac_file" || continue
2186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2189 # This is the source file.
2192 # We found the default executable, but exeext='' is most
2196 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2197 # FIXME: I believe we export ac_cv_exeext for Libtool,
2198 # but it would be cool to find out if it's true. Does anybody
2199 # maintain Libtool? --akim.
2207 echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2210 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&5
2212 echo "$as_me: error: C compiler cannot create executables
2213 See \`config.log' for more details." >&2;}
2214 { (exit 77); exit 77; }; }
2217 ac_exeext=$ac_cv_exeext
2218 echo "$as_me:$LINENO: result: $ac_file" >&5
2219 echo "${ECHO_T}$ac_file" >&6
2221 # Check the compiler produces executables we can run. If not, either
2222 # the compiler is broken, or we cross compile.
2223 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2224 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2225 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2226 # If not cross compiling, check that we can run a simple program.
2227 if test "$cross_compiling" != yes; then
2228 if { ac_try='./$ac_file'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; }; then
2236 if test "$cross_compiling" = maybe; then
2239 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2240 If you meant to cross compile, use \`--host'.
2241 See \`config.log' for more details." >&5
2242 echo "$as_me: error: cannot run C compiled programs.
2243 If you meant to cross compile, use \`--host'.
2244 See \`config.log' for more details." >&2;}
2245 { (exit 1); exit 1; }; }
2249 echo "$as_me:$LINENO: result: yes" >&5
2250 echo "${ECHO_T}yes" >&6
2252 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2253 ac_clean_files=$ac_clean_files_save
2254 # Check the compiler produces executables we can run. If not, either
2255 # the compiler is broken, or we cross compile.
2256 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2257 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2258 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2259 echo "${ECHO_T}$cross_compiling" >&6
2261 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2262 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2264 (eval $ac_link) 2>&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; then
2268 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2269 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2270 # work properly (i.e., refer to `conftest.exe'), while it won't with
2272 for ac_file in conftest.exe conftest conftest.*; do
2273 test -f "$ac_file" || continue
2275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2276 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2283 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2286 See \`config.log' for more details." >&2;}
2287 { (exit 1); exit 1; }; }
2290 rm -f conftest$ac_cv_exeext
2291 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2292 echo "${ECHO_T}$ac_cv_exeext" >&6
2294 rm -f conftest.$ac_ext
2295 EXEEXT=$ac_cv_exeext
2297 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2298 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2299 if test "${ac_cv_objext+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 cat >conftest.$ac_ext <<_ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h. */
2317 rm -f conftest.o conftest.obj
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319 (eval $ac_compile) 2>&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
2323 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2326 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2331 echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2334 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2335 See \`config.log' for more details." >&5
2336 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2337 See \`config.log' for more details." >&2;}
2338 { (exit 1); exit 1; }; }
2341 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2343 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2344 echo "${ECHO_T}$ac_cv_objext" >&6
2345 OBJEXT=$ac_cv_objext
2347 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2348 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2349 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 cat >conftest.$ac_ext <<_ACEOF
2355 cat confdefs.h >>conftest.$ac_ext
2356 cat >>conftest.$ac_ext <<_ACEOF
2357 /* end confdefs.h. */
2370 rm -f conftest.$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372 (eval $ac_compile) 2>conftest.er1
2374 grep -v '^ *+' conftest.er1 >conftest.err
2376 cat conftest.err >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
2379 { ac_try='test -z "$ac_c_werror_flag"
2380 || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2403 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2404 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2405 GCC=`test $ac_compiler_gnu = yes && echo yes`
2406 ac_test_CFLAGS=${CFLAGS+set}
2407 ac_save_CFLAGS=$CFLAGS
2409 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2410 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2411 if test "${ac_cv_prog_cc_g+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 cat >conftest.$ac_ext <<_ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h. */
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>conftest.er1
2433 grep -v '^ *+' conftest.er1 >conftest.err
2435 cat conftest.err >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
2438 { ac_try='test -z "$ac_c_werror_flag"
2439 || test ! -s conftest.err'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; } &&
2445 { ac_try='test -s conftest.$ac_objext'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2453 echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2460 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2461 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2462 if test "$ac_test_CFLAGS" = set; then
2463 CFLAGS=$ac_save_CFLAGS
2464 elif test $ac_cv_prog_cc_g = yes; then
2465 if test "$GCC" = yes; then
2471 if test "$GCC" = yes; then
2477 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2478 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2479 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 ac_cv_prog_cc_stdc=no
2484 cat >conftest.$ac_ext <<_ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2492 #include <sys/types.h>
2493 #include <sys/stat.h>
2494 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2495 struct buf { int x; };
2496 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2497 static char *e (p, i)
2503 static char *f (char * (*g) (char **, int), char **p, ...)
2508 s = g (p, va_arg (v,int));
2513 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2514 function prototypes and stuff, but not '\xHH' hex character constants.
2515 These don't provoke an error unfortunately, instead are silently treated
2516 as 'x'. The following induces an error, until -std1 is added to get
2517 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2518 array size at least. It's necessary to write '\x00'==0 to get something
2519 that's true only with -std1. */
2520 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2522 int test (int i, double x);
2523 struct s1 {int (*f) (int a);};
2524 struct s2 {int (*f) (double a);};
2525 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2531 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2536 # Don't try gcc -ansi; that turns off useful extensions and
2537 # breaks some systems' header files.
2538 # AIX -qlanglvl=ansi
2539 # Ultrix and OSF/1 -std1
2540 # HP-UX 10.20 and later -Ae
2541 # HP-UX older versions -Aa -D_HPUX_SOURCE
2542 # SVR4 -Xc -D__EXTENSIONS__
2543 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2545 CC="$ac_save_CC $ac_arg"
2546 rm -f conftest.$ac_objext
2547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548 (eval $ac_compile) 2>conftest.er1
2550 grep -v '^ *+' conftest.er1 >conftest.err
2552 cat conftest.err >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); } &&
2555 { ac_try='test -z "$ac_c_werror_flag"
2556 || test ! -s conftest.err'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; } &&
2562 { ac_try='test -s conftest.$ac_objext'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; }; then
2568 ac_cv_prog_cc_stdc=$ac_arg
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2575 rm -f conftest.err conftest.$ac_objext
2577 rm -f conftest.$ac_ext conftest.$ac_objext
2582 case "x$ac_cv_prog_cc_stdc" in
2584 echo "$as_me:$LINENO: result: none needed" >&5
2585 echo "${ECHO_T}none needed" >&6 ;;
2587 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2588 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2589 CC="$CC $ac_cv_prog_cc_stdc" ;;
2592 # Some people use a C++ compiler to compile C. Since we use `exit',
2593 # in C++ we need to declare it. In case someone uses the same compiler
2594 # for both compiling C and C++ we need to have the C++ compiler decide
2595 # the declaration of exit, since it's the most demanding environment.
2596 cat >conftest.$ac_ext <<_ACEOF
2601 rm -f conftest.$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>conftest.er1
2605 grep -v '^ *+' conftest.er1 >conftest.err
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 { ac_try='test -z "$ac_c_werror_flag"
2611 || test ! -s conftest.err'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; } &&
2617 { ac_try='test -s conftest.$ac_objext'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2623 for ac_declaration in \
2625 'extern "C" void std::exit (int) throw (); using std::exit;' \
2626 'extern "C" void std::exit (int); using std::exit;' \
2627 'extern "C" void exit (int) throw ();' \
2628 'extern "C" void exit (int);' \
2631 cat >conftest.$ac_ext <<_ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>conftest.er1
2651 grep -v '^ *+' conftest.er1 >conftest.err
2653 cat conftest.err >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 { ac_try='test -z "$ac_c_werror_flag"
2657 || test ! -s conftest.err'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; } &&
2663 { ac_try='test -s conftest.$ac_objext'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2671 echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2677 cat >conftest.$ac_ext <<_ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2692 rm -f conftest.$ac_objext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694 (eval $ac_compile) 2>conftest.er1
2696 grep -v '^ *+' conftest.er1 >conftest.err
2698 cat conftest.err >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -z "$ac_c_werror_flag"
2702 || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest.$ac_objext'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2723 if test -n "$ac_declaration"; then
2724 echo '#ifdef __cplusplus' >>confdefs.h
2725 echo $ac_declaration >>confdefs.h
2726 echo '#endif' >>confdefs.h
2730 echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2736 ac_cpp='$CPP $CPPFLAGS'
2737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2743 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2744 if test "${ac_cv_c_bigendian+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 # See if sys/param.h defines the BYTE_ORDER macro.
2748 cat >conftest.$ac_ext <<_ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h. */
2754 #include <sys/types.h>
2755 #include <sys/param.h>
2760 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>conftest.er1
2772 grep -v '^ *+' conftest.er1 >conftest.err
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 { ac_try='test -z "$ac_c_werror_flag"
2778 || test ! -s conftest.err'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; } &&
2784 { ac_try='test -s conftest.$ac_objext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2790 # It does; now see whether it defined to BIG_ENDIAN or not.
2791 cat >conftest.$ac_ext <<_ACEOF
2794 cat confdefs.h >>conftest.$ac_ext
2795 cat >>conftest.$ac_ext <<_ACEOF
2796 /* end confdefs.h. */
2797 #include <sys/types.h>
2798 #include <sys/param.h>
2803 #if BYTE_ORDER != BIG_ENDIAN
2811 rm -f conftest.$ac_objext
2812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2813 (eval $ac_compile) 2>conftest.er1
2815 grep -v '^ *+' conftest.er1 >conftest.err
2817 cat conftest.err >&5
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); } &&
2820 { ac_try='test -z "$ac_c_werror_flag"
2821 || test ! -s conftest.err'
2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; } &&
2827 { ac_try='test -s conftest.$ac_objext'
2828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }; }; then
2833 ac_cv_c_bigendian=yes
2835 echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2838 ac_cv_c_bigendian=no
2840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2845 # It does not; compile a test program.
2846 if test "$cross_compiling" = yes; then
2847 # try to guess the endianness by grepping values into an object file
2848 ac_cv_c_bigendian=unknown
2849 cat >conftest.$ac_ext <<_ACEOF
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h. */
2855 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2856 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2857 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2858 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2859 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2860 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2864 _ascii (); _ebcdic ();
2869 rm -f conftest.$ac_objext
2870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2871 (eval $ac_compile) 2>conftest.er1
2873 grep -v '^ *+' conftest.er1 >conftest.err
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } &&
2878 { ac_try='test -z "$ac_c_werror_flag"
2879 || test ! -s conftest.err'
2880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; } &&
2885 { ac_try='test -s conftest.$ac_objext'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2892 ac_cv_c_bigendian=yes
2894 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2895 if test "$ac_cv_c_bigendian" = unknown; then
2896 ac_cv_c_bigendian=no
2898 # finding both strings is unlikely to happen, but who knows?
2899 ac_cv_c_bigendian=unknown
2903 echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2909 cat >conftest.$ac_ext <<_ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2918 /* Are we little or big endian? From Harbison&Steele. */
2922 char c[sizeof (long)];
2925 exit (u.c[sizeof (long) - 1] == 1);
2928 rm -f conftest$ac_exeext
2929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2930 (eval $ac_link) 2>&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; }; then
2939 ac_cv_c_bigendian=no
2941 echo "$as_me: program exited with status $ac_status" >&5
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2946 ac_cv_c_bigendian=yes
2948 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2953 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2954 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2955 case $ac_cv_c_bigendian in
2963 { { echo "$as_me:$LINENO: error: unknown endianness
2964 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2965 echo "$as_me: error: unknown endianness
2966 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2967 { (exit 1); exit 1; }; } ;;
2971 if test -d "CVS" -o -d "${srcdir}/CVS"; then
2982 # Check whether --enable-optimized or --disable-optimized was given.
2983 if test "${enable_optimized+set}" = set; then
2984 enableval="$enable_optimized"
2989 if test ${enableval} = "no" ; then
2993 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2997 # Check whether --enable-assertions or --disable-assertions was given.
2998 if test "${enable_assertions+set}" = set; then
2999 enableval="$enable_assertions"
3004 if test ${enableval} = "yes" ; then
3008 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
3012 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3013 if test "${enable_debug_runtime+set}" = set; then
3014 enableval="$enable_debug_runtime"
3019 if test ${enableval} = "no" ; then
3023 DEBUG_RUNTIME=DEBUG_RUNTIME=1
3027 # Check whether --enable-jit or --disable-jit was given.
3028 if test "${enable_jit+set}" = set; then
3029 enableval="$enable_jit"
3034 if test ${enableval} = "no"
3039 case "$llvm_cv_target_arch" in
3040 x86) TARGET_HAS_JIT=1
3042 Sparc) TARGET_HAS_JIT=1
3044 PowerPC) TARGET_HAS_JIT=1
3046 x86_64) TARGET_HAS_JIT=0
3048 Alpha) TARGET_HAS_JIT=1
3050 IA64) TARGET_HAS_JIT=0
3057 # Check whether --enable-doxygen or --disable-doxygen was given.
3058 if test "${enable_doxygen+set}" = set; then
3059 enableval="$enable_doxygen"
3064 case "$enableval" in
3065 yes) ENABLE_DOXYGEN=1
3067 no) ENABLE_DOXYGEN=0
3069 default) ENABLE_DOXYGEN=0
3071 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3072 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3073 { (exit 1); exit 1; }; } ;;
3076 # Check whether --enable-threads or --disable-threads was given.
3077 if test "${enable_threads+set}" = set; then
3078 enableval="$enable_threads"
3083 case "$enableval" in
3084 yes) ENABLE_THREADS=1
3086 no) ENABLE_THREADS=0
3088 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3089 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3090 { (exit 1); exit 1; }; } ;;
3093 cat >>confdefs.h <<_ACEOF
3094 #define ENABLE_THREADS $ENABLE_THREADS
3099 # Check whether --enable-targets or --disable-targets was given.
3100 if test "${enable_targets+set}" = set; then
3101 enableval="$enable_targets"
3106 case "$enableval" in
3107 all) TARGETS_TO_BUILD="X86 Sparc SparcV9 PowerPC Alpha IA64" ;;
3109 case "$llvm_cv_target_arch" in
3110 x86) TARGETS_TO_BUILD="X86" ;;
3111 x86_64) TARGETS_TO_BUILD="X86" ;;
3112 Sparc) TARGETS_TO_BUILD="Sparc SparcV9" ;;
3113 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3114 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3115 IA64) TARGETS_TO_BUILD="IA64" ;;
3116 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3117 echo "$as_me: error: Can not set target to build" >&2;}
3118 { (exit 1); exit 1; }; } ;;
3121 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3123 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3124 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3125 sparc) TARGETS_TO_BUILD="Sparc SparcV9 $TARGETS_TO_BUILD" ;;
3126 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3127 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3128 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3129 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3130 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3131 { (exit 1); exit 1; }; } ;;
3136 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3137 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3141 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3142 if test "${with_llvmgccdir+set}" = set; then
3143 withval="$with_llvmgccdir"
3149 default) WITH_LLVMGCCDIR=default ;;
3150 /*) WITH_LLVMGCCDIR=$withval ;;
3151 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3152 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3153 { (exit 1); exit 1; }; } ;;
3159 ac_cpp='$CPP $CPPFLAGS'
3160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3163 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3164 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3165 # On Suns, sometimes $CPP names a directory.
3166 if test -n "$CPP" && test -d "$CPP"; then
3169 if test -z "$CPP"; then
3170 if test "${ac_cv_prog_CPP+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 # Double quotes because CPP needs to be expanded
3174 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3177 for ac_c_preproc_warn_flag in '' yes
3179 # Use a header file that comes with gcc, so configuring glibc
3180 # with a fresh cross-compiler works.
3181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3182 # <limits.h> exists even on freestanding compilers.
3183 # On the NeXT, cc -E runs the code through the compiler's parser,
3184 # not just through cpp. "Syntax error" is here to catch this case.
3185 cat >conftest.$ac_ext <<_ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3192 # include <limits.h>
3194 # include <assert.h>
3198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3201 grep -v '^ *+' conftest.er1 >conftest.err
3203 cat conftest.err >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } >/dev/null; then
3206 if test -s conftest.err; then
3207 ac_cpp_err=$ac_c_preproc_warn_flag
3208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3215 if test -z "$ac_cpp_err"; then
3218 echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3221 # Broken: fails on valid input.
3224 rm -f conftest.err conftest.$ac_ext
3226 # OK, works on sane cases. Now check whether non-existent headers
3227 # can be detected and how.
3228 cat >conftest.$ac_ext <<_ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3234 #include <ac_nonexistent.h>
3236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3239 grep -v '^ *+' conftest.er1 >conftest.err
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } >/dev/null; then
3244 if test -s conftest.err; then
3245 ac_cpp_err=$ac_c_preproc_warn_flag
3246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3253 if test -z "$ac_cpp_err"; then
3254 # Broken: success on invalid input.
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 # Passes both tests.
3264 rm -f conftest.err conftest.$ac_ext
3267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3268 rm -f conftest.err conftest.$ac_ext
3269 if $ac_preproc_ok; then
3281 echo "$as_me:$LINENO: result: $CPP" >&5
3282 echo "${ECHO_T}$CPP" >&6
3284 for ac_c_preproc_warn_flag in '' yes
3286 # Use a header file that comes with gcc, so configuring glibc
3287 # with a fresh cross-compiler works.
3288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3289 # <limits.h> exists even on freestanding compilers.
3290 # On the NeXT, cc -E runs the code through the compiler's parser,
3291 # not just through cpp. "Syntax error" is here to catch this case.
3292 cat >conftest.$ac_ext <<_ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3299 # include <limits.h>
3301 # include <assert.h>
3305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3308 grep -v '^ *+' conftest.er1 >conftest.err
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } >/dev/null; then
3313 if test -s conftest.err; then
3314 ac_cpp_err=$ac_c_preproc_warn_flag
3315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3322 if test -z "$ac_cpp_err"; then
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3328 # Broken: fails on valid input.
3331 rm -f conftest.err conftest.$ac_ext
3333 # OK, works on sane cases. Now check whether non-existent headers
3334 # can be detected and how.
3335 cat >conftest.$ac_ext <<_ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341 #include <ac_nonexistent.h>
3343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3346 grep -v '^ *+' conftest.er1 >conftest.err
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } >/dev/null; then
3351 if test -s conftest.err; then
3352 ac_cpp_err=$ac_c_preproc_warn_flag
3353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3360 if test -z "$ac_cpp_err"; then
3361 # Broken: success on invalid input.
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3367 # Passes both tests.
3371 rm -f conftest.err conftest.$ac_ext
3374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3375 rm -f conftest.err conftest.$ac_ext
3376 if $ac_preproc_ok; then
3379 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3380 See \`config.log' for more details." >&5
3381 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3382 See \`config.log' for more details." >&2;}
3383 { (exit 1); exit 1; }; }
3387 ac_cpp='$CPP $CPPFLAGS'
3388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393 ac_cpp='$CPP $CPPFLAGS'
3394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397 if test -n "$ac_tool_prefix"; then
3400 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3401 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3402 echo "$as_me:$LINENO: checking for $ac_word" >&5
3403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3404 if test "${ac_cv_prog_CC+set}" = set; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 if test -n "$CC"; then
3408 ac_cv_prog_CC="$CC" # Let the user override the test.
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 if test -n "$CC"; then
3428 echo "$as_me:$LINENO: result: $CC" >&5
3429 echo "${ECHO_T}$CC" >&6
3431 echo "$as_me:$LINENO: result: no" >&5
3432 echo "${ECHO_T}no" >&6
3435 test -n "$CC" && break
3438 if test -z "$CC"; then
3442 # Extract the first word of "$ac_prog", so it can be a program name with args.
3443 set dummy $ac_prog; ac_word=$2
3444 echo "$as_me:$LINENO: checking for $ac_word" >&5
3445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 if test -n "$ac_ct_CC"; then
3450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459 ac_cv_prog_ac_ct_CC="$ac_prog"
3460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3469 if test -n "$ac_ct_CC"; then
3470 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3471 echo "${ECHO_T}$ac_ct_CC" >&6
3473 echo "$as_me:$LINENO: result: no" >&5
3474 echo "${ECHO_T}no" >&6
3477 test -n "$ac_ct_CC" && break
3484 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3485 See \`config.log' for more details." >&5
3486 echo "$as_me: error: no acceptable C compiler found in \$PATH
3487 See \`config.log' for more details." >&2;}
3488 { (exit 1); exit 1; }; }
3490 # Provide some information about the compiler.
3491 echo "$as_me:$LINENO:" \
3492 "checking for C compiler version" >&5
3493 ac_compiler=`set X $ac_compile; echo $2`
3494 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3495 (eval $ac_compiler --version </dev/null >&5) 2>&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }
3499 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3500 (eval $ac_compiler -v </dev/null >&5) 2>&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }
3504 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3505 (eval $ac_compiler -V </dev/null >&5) 2>&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }
3510 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3511 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3512 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 cat >conftest.$ac_ext <<_ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3533 rm -f conftest.$ac_objext
3534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3535 (eval $ac_compile) 2>conftest.er1
3537 grep -v '^ *+' conftest.er1 >conftest.err
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } &&
3542 { ac_try='test -z "$ac_c_werror_flag"
3543 || test ! -s conftest.err'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; } &&
3549 { ac_try='test -s conftest.$ac_objext'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3557 echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3563 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3566 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3567 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3568 GCC=`test $ac_compiler_gnu = yes && echo yes`
3569 ac_test_CFLAGS=${CFLAGS+set}
3570 ac_save_CFLAGS=$CFLAGS
3572 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3573 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3574 if test "${ac_cv_prog_cc_g+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 cat >conftest.$ac_ext <<_ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3592 rm -f conftest.$ac_objext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594 (eval $ac_compile) 2>conftest.er1
3596 grep -v '^ *+' conftest.er1 >conftest.err
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
3601 { ac_try='test -z "$ac_c_werror_flag"
3602 || test ! -s conftest.err'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try='test -s conftest.$ac_objext'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3623 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3624 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3625 if test "$ac_test_CFLAGS" = set; then
3626 CFLAGS=$ac_save_CFLAGS
3627 elif test $ac_cv_prog_cc_g = yes; then
3628 if test "$GCC" = yes; then
3634 if test "$GCC" = yes; then
3640 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3641 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3642 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 ac_cv_prog_cc_stdc=no
3647 cat >conftest.$ac_ext <<_ACEOF
3650 cat confdefs.h >>conftest.$ac_ext
3651 cat >>conftest.$ac_ext <<_ACEOF
3652 /* end confdefs.h. */
3655 #include <sys/types.h>
3656 #include <sys/stat.h>
3657 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3658 struct buf { int x; };
3659 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3660 static char *e (p, i)
3666 static char *f (char * (*g) (char **, int), char **p, ...)
3671 s = g (p, va_arg (v,int));
3676 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3677 function prototypes and stuff, but not '\xHH' hex character constants.
3678 These don't provoke an error unfortunately, instead are silently treated
3679 as 'x'. The following induces an error, until -std1 is added to get
3680 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3681 array size at least. It's necessary to write '\x00'==0 to get something
3682 that's true only with -std1. */
3683 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3685 int test (int i, double x);
3686 struct s1 {int (*f) (int a);};
3687 struct s2 {int (*f) (double a);};
3688 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3694 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3699 # Don't try gcc -ansi; that turns off useful extensions and
3700 # breaks some systems' header files.
3701 # AIX -qlanglvl=ansi
3702 # Ultrix and OSF/1 -std1
3703 # HP-UX 10.20 and later -Ae
3704 # HP-UX older versions -Aa -D_HPUX_SOURCE
3705 # SVR4 -Xc -D__EXTENSIONS__
3706 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3708 CC="$ac_save_CC $ac_arg"
3709 rm -f conftest.$ac_objext
3710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3711 (eval $ac_compile) 2>conftest.er1
3713 grep -v '^ *+' conftest.er1 >conftest.err
3715 cat conftest.err >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } &&
3718 { ac_try='test -z "$ac_c_werror_flag"
3719 || test ! -s conftest.err'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; } &&
3725 { ac_try='test -s conftest.$ac_objext'
3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3731 ac_cv_prog_cc_stdc=$ac_arg
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3738 rm -f conftest.err conftest.$ac_objext
3740 rm -f conftest.$ac_ext conftest.$ac_objext
3745 case "x$ac_cv_prog_cc_stdc" in
3747 echo "$as_me:$LINENO: result: none needed" >&5
3748 echo "${ECHO_T}none needed" >&6 ;;
3750 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3751 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3752 CC="$CC $ac_cv_prog_cc_stdc" ;;
3755 # Some people use a C++ compiler to compile C. Since we use `exit',
3756 # in C++ we need to declare it. In case someone uses the same compiler
3757 # for both compiling C and C++ we need to have the C++ compiler decide
3758 # the declaration of exit, since it's the most demanding environment.
3759 cat >conftest.$ac_ext <<_ACEOF
3764 rm -f conftest.$ac_objext
3765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3766 (eval $ac_compile) 2>conftest.er1
3768 grep -v '^ *+' conftest.er1 >conftest.err
3770 cat conftest.err >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try='test -z "$ac_c_werror_flag"
3774 || test ! -s conftest.err'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; } &&
3780 { ac_try='test -s conftest.$ac_objext'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; }; then
3786 for ac_declaration in \
3788 'extern "C" void std::exit (int) throw (); using std::exit;' \
3789 'extern "C" void std::exit (int); using std::exit;' \
3790 'extern "C" void exit (int) throw ();' \
3791 'extern "C" void exit (int);' \
3794 cat >conftest.$ac_ext <<_ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3810 rm -f conftest.$ac_objext
3811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3812 (eval $ac_compile) 2>conftest.er1
3814 grep -v '^ *+' conftest.er1 >conftest.err
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try='test -z "$ac_c_werror_flag"
3820 || test ! -s conftest.err'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; } &&
3826 { ac_try='test -s conftest.$ac_objext'
3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3840 cat >conftest.$ac_ext <<_ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3855 rm -f conftest.$ac_objext
3856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3857 (eval $ac_compile) 2>conftest.er1
3859 grep -v '^ *+' conftest.er1 >conftest.err
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } &&
3864 { ac_try='test -z "$ac_c_werror_flag"
3865 || test ! -s conftest.err'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; } &&
3871 { ac_try='test -s conftest.$ac_objext'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; }; then
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3886 if test -n "$ac_declaration"; then
3887 echo '#ifdef __cplusplus' >>confdefs.h
3888 echo $ac_declaration >>confdefs.h
3889 echo '#endif' >>confdefs.h
3893 echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3899 ac_cpp='$CPP $CPPFLAGS'
3900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905 ac_cpp='$CXXCPP $CPPFLAGS'
3906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3909 if test -n "$ac_tool_prefix"; then
3910 for ac_prog in $CCC g++
3912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3914 echo "$as_me:$LINENO: checking for $ac_word" >&5
3915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3916 if test "${ac_cv_prog_CXX+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 if test -n "$CXX"; then
3920 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 if test -n "$CXX"; then
3940 echo "$as_me:$LINENO: result: $CXX" >&5
3941 echo "${ECHO_T}$CXX" >&6
3943 echo "$as_me:$LINENO: result: no" >&5
3944 echo "${ECHO_T}no" >&6
3947 test -n "$CXX" && break
3950 if test -z "$CXX"; then
3952 for ac_prog in $CCC g++
3954 # Extract the first word of "$ac_prog", so it can be a program name with args.
3955 set dummy $ac_prog; ac_word=$2
3956 echo "$as_me:$LINENO: checking for $ac_word" >&5
3957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 if test -n "$ac_ct_CXX"; then
3962 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971 ac_cv_prog_ac_ct_CXX="$ac_prog"
3972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3981 if test -n "$ac_ct_CXX"; then
3982 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3983 echo "${ECHO_T}$ac_ct_CXX" >&6
3985 echo "$as_me:$LINENO: result: no" >&5
3986 echo "${ECHO_T}no" >&6
3989 test -n "$ac_ct_CXX" && break
3991 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3997 # Provide some information about the compiler.
3998 echo "$as_me:$LINENO:" \
3999 "checking for C++ compiler version" >&5
4000 ac_compiler=`set X $ac_compile; echo $2`
4001 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4002 (eval $ac_compiler --version </dev/null >&5) 2>&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }
4006 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4007 (eval $ac_compiler -v </dev/null >&5) 2>&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }
4011 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4012 (eval $ac_compiler -V </dev/null >&5) 2>&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); }
4017 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4018 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4019 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 cat >conftest.$ac_ext <<_ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h. */
4040 rm -f conftest.$ac_objext
4041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042 (eval $ac_compile) 2>conftest.er1
4044 grep -v '^ *+' conftest.er1 >conftest.err
4046 cat conftest.err >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } &&
4049 { ac_try='test -z "$ac_cxx_werror_flag"
4050 || test ! -s conftest.err'
4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; } &&
4056 { ac_try='test -s conftest.$ac_objext'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4064 echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4070 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4073 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4074 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4075 GXX=`test $ac_compiler_gnu = yes && echo yes`
4076 ac_test_CXXFLAGS=${CXXFLAGS+set}
4077 ac_save_CXXFLAGS=$CXXFLAGS
4079 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4080 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4081 if test "${ac_cv_prog_cxx_g+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 cat >conftest.$ac_ext <<_ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4099 rm -f conftest.$ac_objext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101 (eval $ac_compile) 2>conftest.er1
4103 grep -v '^ *+' conftest.er1 >conftest.err
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_cxx_werror_flag"
4109 || test ! -s conftest.err'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; } &&
4115 { ac_try='test -s conftest.$ac_objext'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; }; then
4121 ac_cv_prog_cxx_g=yes
4123 echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4130 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4131 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4132 if test "$ac_test_CXXFLAGS" = set; then
4133 CXXFLAGS=$ac_save_CXXFLAGS
4134 elif test $ac_cv_prog_cxx_g = yes; then
4135 if test "$GXX" = yes; then
4141 if test "$GXX" = yes; then
4147 for ac_declaration in \
4149 'extern "C" void std::exit (int) throw (); using std::exit;' \
4150 'extern "C" void std::exit (int); using std::exit;' \
4151 'extern "C" void exit (int) throw ();' \
4152 'extern "C" void exit (int);' \
4155 cat >conftest.$ac_ext <<_ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4171 rm -f conftest.$ac_objext
4172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173 (eval $ac_compile) 2>conftest.er1
4175 grep -v '^ *+' conftest.er1 >conftest.err
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -z "$ac_cxx_werror_flag"
4181 || test ! -s conftest.err'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; } &&
4187 { ac_try='test -s conftest.$ac_objext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4201 cat >conftest.$ac_ext <<_ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4216 rm -f conftest.$ac_objext
4217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218 (eval $ac_compile) 2>conftest.er1
4220 grep -v '^ *+' conftest.er1 >conftest.err
4222 cat conftest.err >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } &&
4225 { ac_try='test -z "$ac_cxx_werror_flag"
4226 || test ! -s conftest.err'
4227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; } &&
4232 { ac_try='test -s conftest.$ac_objext'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
4240 echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4247 if test -n "$ac_declaration"; then
4248 echo '#ifdef __cplusplus' >>confdefs.h
4249 echo $ac_declaration >>confdefs.h
4250 echo '#endif' >>confdefs.h
4254 ac_cpp='$CPP $CPPFLAGS'
4255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259 echo "$as_me:$LINENO: checking " >&5
4260 echo $ECHO_N "checking ... $ECHO_C" >&6
4261 if test "${ac_cv_has_flex+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 for ac_prog in flex lex
4266 # Extract the first word of "$ac_prog", so it can be a program name with args.
4267 set dummy $ac_prog; ac_word=$2
4268 echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4270 if test "${ac_cv_prog_LEX+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 if test -n "$LEX"; then
4274 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283 ac_cv_prog_LEX="$ac_prog"
4284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 if test -n "$LEX"; then
4294 echo "$as_me:$LINENO: result: $LEX" >&5
4295 echo "${ECHO_T}$LEX" >&6
4297 echo "$as_me:$LINENO: result: no" >&5
4298 echo "${ECHO_T}no" >&6
4301 test -n "$LEX" && break
4303 test -n "$LEX" || LEX=":"
4305 if test -z "$LEXLIB"
4307 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4308 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4309 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 ac_check_lib_save_LIBS=$LIBS
4314 cat >conftest.$ac_ext <<_ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4321 /* Override any gcc2 internal prototype to avoid an error. */
4325 /* We use char because int might match the return type of a gcc2
4326 builtin and then its argument prototype would still apply. */
4336 rm -f conftest.$ac_objext conftest$ac_exeext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4338 (eval $ac_link) 2>conftest.er1
4340 grep -v '^ *+' conftest.er1 >conftest.err
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -z "$ac_c_werror_flag"
4346 || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try='test -s conftest$ac_exeext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 ac_cv_lib_fl_yywrap=yes
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 ac_cv_lib_fl_yywrap=no
4365 rm -f conftest.err conftest.$ac_objext \
4366 conftest$ac_exeext conftest.$ac_ext
4367 LIBS=$ac_check_lib_save_LIBS
4369 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4370 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4371 if test $ac_cv_lib_fl_yywrap = yes; then
4374 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4375 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4376 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 ac_check_lib_save_LIBS=$LIBS
4381 cat >conftest.$ac_ext <<_ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4388 /* Override any gcc2 internal prototype to avoid an error. */
4392 /* We use char because int might match the return type of a gcc2
4393 builtin and then its argument prototype would still apply. */
4403 rm -f conftest.$ac_objext conftest$ac_exeext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4405 (eval $ac_link) 2>conftest.er1
4407 grep -v '^ *+' conftest.er1 >conftest.err
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } &&
4412 { ac_try='test -z "$ac_c_werror_flag"
4413 || test ! -s conftest.err'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; } &&
4419 { ac_try='test -s conftest$ac_exeext'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; }; then
4425 ac_cv_lib_l_yywrap=yes
4427 echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4430 ac_cv_lib_l_yywrap=no
4432 rm -f conftest.err conftest.$ac_objext \
4433 conftest$ac_exeext conftest.$ac_ext
4434 LIBS=$ac_check_lib_save_LIBS
4436 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4437 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4438 if test $ac_cv_lib_l_yywrap = yes; then
4446 if test "x$LEX" != "x:"; then
4447 echo "$as_me:$LINENO: checking lex output file root" >&5
4448 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4449 if test "${ac_cv_prog_lex_root+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 # The minimal lex program is just a single line: %%. But some broken lexes
4453 # (Solaris, I think it was) want two %% lines, so accommodate them.
4454 cat >conftest.l <<_ACEOF
4458 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4459 (eval $LEX conftest.l) 2>&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }
4463 if test -f lex.yy.c; then
4464 ac_cv_prog_lex_root=lex.yy
4465 elif test -f lexyy.c; then
4466 ac_cv_prog_lex_root=lexyy
4468 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4469 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4470 { (exit 1); exit 1; }; }
4473 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4474 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4476 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4478 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4479 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4480 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 # POSIX says lex can declare yytext either as a pointer or an array; the
4484 # default is implementation-dependent. Figure out which it is, since
4485 # not all implementations provide the %pointer and %array declarations.
4486 ac_cv_prog_lex_yytext_pointer=no
4487 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4489 LIBS="$LIBS $LEXLIB"
4490 cat >conftest.$ac_ext <<_ACEOF
4491 `cat $LEX_OUTPUT_ROOT.c`
4493 rm -f conftest.$ac_objext conftest$ac_exeext
4494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4495 (eval $ac_link) 2>conftest.er1
4497 grep -v '^ *+' conftest.er1 >conftest.err
4499 cat conftest.err >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); } &&
4502 { ac_try='test -z "$ac_c_werror_flag"
4503 || test ! -s conftest.err'
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; } &&
4509 { ac_try='test -s conftest$ac_exeext'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 ac_cv_prog_lex_yytext_pointer=yes
4517 echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4521 rm -f conftest.err conftest.$ac_objext \
4522 conftest$ac_exeext conftest.$ac_ext
4524 rm -f "${LEX_OUTPUT_ROOT}.c"
4527 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4528 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4529 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4531 cat >>confdefs.h <<\_ACEOF
4532 #define YYTEXT_POINTER 1
4540 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4541 echo "${ECHO_T}$ac_cv_has_flex" >&6
4542 if test "$LEX" != "flex"; then
4543 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4544 echo "$as_me: error: flex not found but required" >&2;}
4545 { (exit 1); exit 1; }; }
4551 echo "$as_me:$LINENO: checking " >&5
4552 echo $ECHO_N "checking ... $ECHO_C" >&6
4553 if test "${llvm_cv_has_bison+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 for ac_prog in 'bison -y' byacc
4558 # Extract the first word of "$ac_prog", so it can be a program name with args.
4559 set dummy $ac_prog; ac_word=$2
4560 echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4562 if test "${ac_cv_prog_YACC+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 if test -n "$YACC"; then
4566 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4575 ac_cv_prog_YACC="$ac_prog"
4576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 YACC=$ac_cv_prog_YACC
4585 if test -n "$YACC"; then
4586 echo "$as_me:$LINENO: result: $YACC" >&5
4587 echo "${ECHO_T}$YACC" >&6
4589 echo "$as_me:$LINENO: result: no" >&5
4590 echo "${ECHO_T}no" >&6
4593 test -n "$YACC" && break
4595 test -n "$YACC" || YACC="yacc"
4598 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4599 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4600 if test "$YACC" != "bison -y"; then
4601 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4602 echo "$as_me: error: bison not found but required" >&2;}
4603 { (exit 1); exit 1; }; }
4609 echo "$as_me:$LINENO: checking for GNU make" >&5
4610 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4611 if test "${llvm_cv_gnu_make_command+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 llvm_cv_gnu_make_command=''
4615 for a in "$MAKE" make gmake gnumake ; do
4616 if test -z "$a" ; then continue ; fi ;
4617 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4619 llvm_cv_gnu_make_command=$a ;
4624 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4625 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4626 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4630 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4631 echo "${ECHO_T}\"Not found\"" >&6;
4635 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4636 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4638 if test "$LN_S" = "ln -s"; then
4639 echo "$as_me:$LINENO: result: yes" >&5
4640 echo "${ECHO_T}yes" >&6
4642 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4643 echo "${ECHO_T}no, using $LN_S" >&6
4646 # Extract the first word of "cmp", so it can be a program name with args.
4647 set dummy cmp; ac_word=$2
4648 echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4650 if test "${ac_cv_path_CMP+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4678 if test -n "$CMP"; then
4679 echo "$as_me:$LINENO: result: $CMP" >&5
4680 echo "${ECHO_T}$CMP" >&6
4682 echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6
4686 # Extract the first word of "cp", so it can be a program name with args.
4687 set dummy cp; ac_word=$2
4688 echo "$as_me:$LINENO: checking for $ac_word" >&5
4689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4690 if test "${ac_cv_path_CP+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4705 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4718 if test -n "$CP"; then
4719 echo "$as_me:$LINENO: result: $CP" >&5
4720 echo "${ECHO_T}$CP" >&6
4722 echo "$as_me:$LINENO: result: no" >&5
4723 echo "${ECHO_T}no" >&6
4726 # Extract the first word of "date", so it can be a program name with args.
4727 set dummy date; ac_word=$2
4728 echo "$as_me:$LINENO: checking for $ac_word" >&5
4729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4730 if test "${ac_cv_path_DATE+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4745 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4756 DATE=$ac_cv_path_DATE
4758 if test -n "$DATE"; then
4759 echo "$as_me:$LINENO: result: $DATE" >&5
4760 echo "${ECHO_T}$DATE" >&6
4762 echo "$as_me:$LINENO: result: no" >&5
4763 echo "${ECHO_T}no" >&6
4766 # Extract the first word of "find", so it can be a program name with args.
4767 set dummy find; ac_word=$2
4768 echo "$as_me:$LINENO: checking for $ac_word" >&5
4769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4770 if test "${ac_cv_path_FIND+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 test -z "$as_dir" && as_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4785 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4796 FIND=$ac_cv_path_FIND
4798 if test -n "$FIND"; then
4799 echo "$as_me:$LINENO: result: $FIND" >&5
4800 echo "${ECHO_T}$FIND" >&6
4802 echo "$as_me:$LINENO: result: no" >&5
4803 echo "${ECHO_T}no" >&6
4806 # Extract the first word of "grep", so it can be a program name with args.
4807 set dummy grep; ac_word=$2
4808 echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4810 if test "${ac_cv_path_GREP+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4836 GREP=$ac_cv_path_GREP
4838 if test -n "$GREP"; then
4839 echo "$as_me:$LINENO: result: $GREP" >&5
4840 echo "${ECHO_T}$GREP" >&6
4842 echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6
4846 # Extract the first word of "mkdir", so it can be a program name with args.
4847 set dummy mkdir; ac_word=$2
4848 echo "$as_me:$LINENO: checking for $ac_word" >&5
4849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4850 if test "${ac_cv_path_MKDIR+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4865 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4876 MKDIR=$ac_cv_path_MKDIR
4878 if test -n "$MKDIR"; then
4879 echo "$as_me:$LINENO: result: $MKDIR" >&5
4880 echo "${ECHO_T}$MKDIR" >&6
4882 echo "$as_me:$LINENO: result: no" >&5
4883 echo "${ECHO_T}no" >&6
4886 # Extract the first word of "mv", so it can be a program name with args.
4887 set dummy mv; ac_word=$2
4888 echo "$as_me:$LINENO: checking for $ac_word" >&5
4889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4890 if test "${ac_cv_path_MV+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4905 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4918 if test -n "$MV"; then
4919 echo "$as_me:$LINENO: result: $MV" >&5
4920 echo "${ECHO_T}$MV" >&6
4922 echo "$as_me:$LINENO: result: no" >&5
4923 echo "${ECHO_T}no" >&6
4926 if test -n "$ac_tool_prefix"; then
4927 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4928 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4929 echo "$as_me:$LINENO: checking for $ac_word" >&5
4930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4931 if test "${ac_cv_prog_RANLIB+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 if test -n "$RANLIB"; then
4935 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 RANLIB=$ac_cv_prog_RANLIB
4954 if test -n "$RANLIB"; then
4955 echo "$as_me:$LINENO: result: $RANLIB" >&5
4956 echo "${ECHO_T}$RANLIB" >&6
4958 echo "$as_me:$LINENO: result: no" >&5
4959 echo "${ECHO_T}no" >&6
4963 if test -z "$ac_cv_prog_RANLIB"; then
4964 ac_ct_RANLIB=$RANLIB
4965 # Extract the first word of "ranlib", so it can be a program name with args.
4966 set dummy ranlib; ac_word=$2
4967 echo "$as_me:$LINENO: checking for $ac_word" >&5
4968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4969 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 if test -n "$ac_ct_RANLIB"; then
4973 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4982 ac_cv_prog_ac_ct_RANLIB="ranlib"
4983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4992 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4993 if test -n "$ac_ct_RANLIB"; then
4994 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4995 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4997 echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6
5001 RANLIB=$ac_ct_RANLIB
5003 RANLIB="$ac_cv_prog_RANLIB"
5006 # Extract the first word of "rm", so it can be a program name with args.
5007 set dummy rm; ac_word=$2
5008 echo "$as_me:$LINENO: checking for $ac_word" >&5
5009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5010 if test "${ac_cv_path_RM+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5025 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5038 if test -n "$RM"; then
5039 echo "$as_me:$LINENO: result: $RM" >&5
5040 echo "${ECHO_T}$RM" >&6
5042 echo "$as_me:$LINENO: result: no" >&5
5043 echo "${ECHO_T}no" >&6
5046 # Extract the first word of "sed", so it can be a program name with args.
5047 set dummy sed; ac_word=$2
5048 echo "$as_me:$LINENO: checking for $ac_word" >&5
5049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5050 if test "${ac_cv_path_SED+set}" = set; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 test -z "$as_dir" && as_dir=.
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5065 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5078 if test -n "$SED"; then
5079 echo "$as_me:$LINENO: result: $SED" >&5
5080 echo "${ECHO_T}$SED" >&6
5082 echo "$as_me:$LINENO: result: no" >&5
5083 echo "${ECHO_T}no" >&6
5086 # Extract the first word of "tar", so it can be a program name with args.
5087 set dummy tar; ac_word=$2
5088 echo "$as_me:$LINENO: checking for $ac_word" >&5
5089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5090 if test "${ac_cv_path_TAR+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5105 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5118 if test -n "$TAR"; then
5119 echo "$as_me:$LINENO: result: $TAR" >&5
5120 echo "${ECHO_T}$TAR" >&6
5122 echo "$as_me:$LINENO: result: no" >&5
5123 echo "${ECHO_T}no" >&6
5126 # Extract the first word of "Graphviz", so it can be a program name with args.
5127 set dummy Graphviz; ac_word=$2
5128 echo "$as_me:$LINENO: checking for $ac_word" >&5
5129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5130 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5145 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5156 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5158 if test -n "$GRAPHVIZ"; then
5159 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5160 echo "${ECHO_T}$GRAPHVIZ" >&6
5162 echo "$as_me:$LINENO: result: no" >&5
5163 echo "${ECHO_T}no" >&6
5166 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5168 cat >>confdefs.h <<\_ACEOF
5169 #define HAVE_GRAPHVIZ 1
5173 cat >>confdefs.h <<_ACEOF
5174 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5178 # Extract the first word of "gv", so it can be a program name with args.
5179 set dummy gv; ac_word=$2
5180 echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182 if test "${ac_cv_path_GV+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5210 if test -n "$GV"; then
5211 echo "$as_me:$LINENO: result: $GV" >&5
5212 echo "${ECHO_T}$GV" >&6
5214 echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6
5218 if test "$GV" != "echo gv" ; then
5220 cat >>confdefs.h <<\_ACEOF
5225 cat >>confdefs.h <<_ACEOF
5226 #define LLVM_PATH_GV "$GV"
5232 # Extract the first word of "perl", so it can be a program name with args.
5233 set dummy perl; ac_word=$2
5234 echo "$as_me:$LINENO: checking for $ac_word" >&5
5235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5236 if test "${ac_cv_path_PERL+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5262 PERL=$ac_cv_path_PERL
5264 if test -n "$PERL"; then
5265 echo "$as_me:$LINENO: result: $PERL" >&5
5266 echo "${ECHO_T}$PERL" >&6
5268 echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6
5272 if test "$PERL" != "none"; then
5273 echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5274 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5275 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5276 echo "$as_me:$LINENO: result: yes" >&5
5277 echo "${ECHO_T}yes" >&6
5280 echo "$as_me:$LINENO: result: not found" >&5
5281 echo "${ECHO_T}not found" >&6
5286 if test x"$PERL" = xnone; then
5294 # Find a good install program. We prefer a C program (faster),
5295 # so one script is as good as another. But avoid the broken or
5296 # incompatible versions:
5297 # SysV /etc/install, /usr/sbin/install
5298 # SunOS /usr/etc/install
5299 # IRIX /sbin/install
5301 # AmigaOS /C/install, which installs bootblocks on floppy discs
5302 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5303 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5304 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5305 # OS/2's system install, which has a completely different semantic
5306 # ./install, which can be erroneously created by make from ./install.sh.
5307 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5308 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5309 if test -z "$INSTALL"; then
5310 if test "${ac_cv_path_install+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 test -z "$as_dir" && as_dir=.
5318 # Account for people who put trailing slashes in PATH elements.
5320 ./ | .// | /cC/* | \
5321 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5322 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5325 # OSF1 and SCO ODT 3.0 have their own names for install.
5326 # Don't use installbsd from OSF since it installs stuff as root
5328 for ac_prog in ginstall scoinst install; do
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5331 if test $ac_prog = install &&
5332 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5333 # AIX install. It has an incompatible calling convention.
5335 elif test $ac_prog = install &&
5336 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5337 # program-specific install script used by HP pwplus--don't use.
5340 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5352 if test "${ac_cv_path_install+set}" = set; then
5353 INSTALL=$ac_cv_path_install
5355 # As a last resort, use the slow shell script. We don't cache a
5356 # path for INSTALL within a source directory, because that will
5357 # break other packages using the cache if that directory is
5358 # removed, or if the path is relative.
5359 INSTALL=$ac_install_sh
5362 echo "$as_me:$LINENO: result: $INSTALL" >&5
5363 echo "${ECHO_T}$INSTALL" >&6
5365 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5366 # It thinks the first close brace ends the variable substitution.
5367 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5369 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5371 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5374 # Extract the first word of "bzip2", so it can be a program name with args.
5375 set dummy bzip2; ac_word=$2
5376 echo "$as_me:$LINENO: checking for $ac_word" >&5
5377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5378 if test "${ac_cv_path_BZIP2+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5393 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5404 BZIP2=$ac_cv_path_BZIP2
5406 if test -n "$BZIP2"; then
5407 echo "$as_me:$LINENO: result: $BZIP2" >&5
5408 echo "${ECHO_T}$BZIP2" >&6
5410 echo "$as_me:$LINENO: result: no" >&5
5411 echo "${ECHO_T}no" >&6
5414 # Extract the first word of "dot", so it can be a program name with args.
5415 set dummy dot; ac_word=$2
5416 echo "$as_me:$LINENO: checking for $ac_word" >&5
5417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5418 if test "${ac_cv_path_DOT+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5446 if test -n "$DOT"; then
5447 echo "$as_me:$LINENO: result: $DOT" >&5
5448 echo "${ECHO_T}$DOT" >&6
5450 echo "$as_me:$LINENO: result: no" >&5
5451 echo "${ECHO_T}no" >&6
5454 # Extract the first word of "doxygen", so it can be a program name with args.
5455 set dummy doxygen; ac_word=$2
5456 echo "$as_me:$LINENO: checking for $ac_word" >&5
5457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5458 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5484 DOXYGEN=$ac_cv_path_DOXYGEN
5486 if test -n "$DOXYGEN"; then
5487 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5488 echo "${ECHO_T}$DOXYGEN" >&6
5490 echo "$as_me:$LINENO: result: no" >&5
5491 echo "${ECHO_T}no" >&6
5494 # Extract the first word of "etags", so it can be a program name with args.
5495 set dummy etags; ac_word=$2
5496 echo "$as_me:$LINENO: checking for $ac_word" >&5
5497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5498 if test "${ac_cv_path_ETAGS+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5513 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5524 ETAGS=$ac_cv_path_ETAGS
5526 if test -n "$ETAGS"; then
5527 echo "$as_me:$LINENO: result: $ETAGS" >&5
5528 echo "${ECHO_T}$ETAGS" >&6
5530 echo "$as_me:$LINENO: result: no" >&5
5531 echo "${ECHO_T}no" >&6
5534 # Extract the first word of "groff", so it can be a program name with args.
5535 set dummy groff; ac_word=$2
5536 echo "$as_me:$LINENO: checking for $ac_word" >&5
5537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5538 if test "${ac_cv_path_GROFF+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 test -z "$as_dir" && as_dir=.
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5553 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5564 GROFF=$ac_cv_path_GROFF
5566 if test -n "$GROFF"; then
5567 echo "$as_me:$LINENO: result: $GROFF" >&5
5568 echo "${ECHO_T}$GROFF" >&6
5570 echo "$as_me:$LINENO: result: no" >&5
5571 echo "${ECHO_T}no" >&6
5574 # Extract the first word of "gzip", so it can be a program name with args.
5575 set dummy gzip; ac_word=$2
5576 echo "$as_me:$LINENO: checking for $ac_word" >&5
5577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5578 if test "${ac_cv_path_GZIP+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5604 GZIP=$ac_cv_path_GZIP
5606 if test -n "$GZIP"; then
5607 echo "$as_me:$LINENO: result: $GZIP" >&5
5608 echo "${ECHO_T}$GZIP" >&6
5610 echo "$as_me:$LINENO: result: no" >&5
5611 echo "${ECHO_T}no" >&6
5614 # Extract the first word of "pod2html", so it can be a program name with args.
5615 set dummy pod2html; ac_word=$2
5616 echo "$as_me:$LINENO: checking for $ac_word" >&5
5617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5618 if test "${ac_cv_path_POD2HTML+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5640 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5644 POD2HTML=$ac_cv_path_POD2HTML
5646 if test -n "$POD2HTML"; then
5647 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5648 echo "${ECHO_T}$POD2HTML" >&6
5650 echo "$as_me:$LINENO: result: no" >&5
5651 echo "${ECHO_T}no" >&6
5654 # Extract the first word of "pod2man", so it can be a program name with args.
5655 set dummy pod2man; ac_word=$2
5656 echo "$as_me:$LINENO: checking for $ac_word" >&5
5657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5658 if test "${ac_cv_path_POD2MAN+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5680 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5684 POD2MAN=$ac_cv_path_POD2MAN
5686 if test -n "$POD2MAN"; then
5687 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5688 echo "${ECHO_T}$POD2MAN" >&6
5690 echo "$as_me:$LINENO: result: no" >&5
5691 echo "${ECHO_T}no" >&6
5694 # Extract the first word of "runtest", so it can be a program name with args.
5695 set dummy runtest; ac_word=$2
5696 echo "$as_me:$LINENO: checking for $ac_word" >&5
5697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5698 if test "${ac_cv_path_RUNTEST+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5724 RUNTEST=$ac_cv_path_RUNTEST
5726 if test -n "$RUNTEST"; then
5727 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5728 echo "${ECHO_T}$RUNTEST" >&6
5730 echo "$as_me:$LINENO: result: no" >&5
5731 echo "${ECHO_T}no" >&6
5736 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5737 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5739 # Check whether --with-tclinclude or --without-tclinclude was given.
5740 if test "${with_tclinclude+set}" = set; then
5741 withval="$with_tclinclude"
5742 with_tclinclude=${withval}
5746 if test "${ac_cv_path_tclsh+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 if test x"${with_tclinclude}" != x ; then
5751 if test -f ${with_tclinclude}/tclsh ; then
5752 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5753 elif test -f ${with_tclinclude}/src/tclsh ; then
5754 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5756 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5757 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5758 { (exit 1); exit 1; }; }
5762 if test x"${ac_cv_path_tclsh}" = x ; then
5763 echo "$as_me:$LINENO: result: none" >&5
5764 echo "${ECHO_T}none" >&6
5765 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
5767 # Extract the first word of "$ac_prog", so it can be a program name with args.
5768 set dummy $ac_prog; ac_word=$2
5769 echo "$as_me:$LINENO: checking for $ac_word" >&5
5770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5771 if test "${ac_cv_path_TCLSH+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 test -z "$as_dir" && as_dir=.
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5786 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5796 TCLSH=$ac_cv_path_TCLSH
5798 if test -n "$TCLSH"; then
5799 echo "$as_me:$LINENO: result: $TCLSH" >&5
5800 echo "${ECHO_T}$TCLSH" >&6
5802 echo "$as_me:$LINENO: result: no" >&5
5803 echo "${ECHO_T}no" >&6
5806 test -n "$TCLSH" && break
5809 if test x"${TCLSH}" = x ; then
5810 ac_cv_path_tclsh='';
5812 ac_cv_path_tclsh="${TCLSH}";
5815 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5816 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5817 TCLSH="${ac_cv_path_tclsh}"
5823 # Extract the first word of "zip", so it can be a program name with args.
5824 set dummy zip; ac_word=$2
5825 echo "$as_me:$LINENO: checking for $ac_word" >&5
5826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5827 if test "${ac_cv_path_ZIP+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 test -z "$as_dir" && as_dir=.
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5842 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5855 if test -n "$ZIP"; then
5856 echo "$as_me:$LINENO: result: $ZIP" >&5
5857 echo "${ECHO_T}$ZIP" >&6
5859 echo "$as_me:$LINENO: result: no" >&5
5860 echo "${ECHO_T}no" >&6
5864 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5865 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5866 if test "${llvm_cv_link_use_r+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 ac_cpp='$CPP $CPPFLAGS'
5871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5876 CFLAGS="$CFLAGS -Wl,-R."
5877 cat >conftest.$ac_ext <<_ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5887 int main() { return 0; }
5892 rm -f conftest.$ac_objext conftest$ac_exeext
5893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5894 (eval $ac_link) 2>conftest.er1
5896 grep -v '^ *+' conftest.er1 >conftest.err
5898 cat conftest.err >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } &&
5901 { ac_try='test -z "$ac_c_werror_flag"
5902 || test ! -s conftest.err'
5903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; } &&
5908 { ac_try='test -s conftest$ac_exeext'
5909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; }; then
5914 llvm_cv_link_use_r=yes
5916 echo "$as_me: failed program was:" >&5
5917 sed 's/^/| /' conftest.$ac_ext >&5
5919 llvm_cv_link_use_r=no
5921 rm -f conftest.err conftest.$ac_objext \
5922 conftest$ac_exeext conftest.$ac_ext
5925 ac_cpp='$CPP $CPPFLAGS'
5926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5932 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5933 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5934 if test "$llvm_cv_link_use_r" = yes ; then
5936 cat >>confdefs.h <<\_ACEOF
5937 #define HAVE_LINK_R 1
5945 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5946 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5947 if test "${ac_cv_c_const+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 cat >conftest.$ac_ext <<_ACEOF
5953 cat confdefs.h >>conftest.$ac_ext
5954 cat >>conftest.$ac_ext <<_ACEOF
5955 /* end confdefs.h. */
5960 /* FIXME: Include the comments suggested by Paul. */
5962 /* Ultrix mips cc rejects this. */
5963 typedef int charset[2];
5965 /* SunOS 4.1.1 cc rejects this. */
5966 char const *const *ccp;
5968 /* NEC SVR4.0.2 mips cc rejects this. */
5969 struct point {int x, y;};
5970 static struct point const zero = {0,0};
5971 /* AIX XL C 1.02.0.0 rejects this.
5972 It does not let you subtract one const X* pointer from another in
5973 an arm of an if-expression whose if-part is not a constant
5975 const char *g = "string";
5976 ccp = &g + (g ? g-g : 0);
5977 /* HPUX 7.0 cc rejects these. */
5980 ccp = (char const *const *) p;
5981 { /* SCO 3.2v4 cc rejects this. */
5983 char const *s = 0 ? (char *) 0 : (char const *) 0;
5987 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5989 const int *foo = &x[0];
5992 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5993 typedef const int *iptr;
5997 { /* AIX XL C 1.02.0.0 rejects this saying
5998 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5999 struct s { int j; const int *ap[3]; };
6000 struct s *b; b->j = 5;
6002 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6011 rm -f conftest.$ac_objext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6013 (eval $ac_compile) 2>conftest.er1
6015 grep -v '^ *+' conftest.er1 >conftest.err
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try='test -z "$ac_c_werror_flag"
6021 || test ! -s conftest.err'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; } &&
6027 { ac_try='test -s conftest.$ac_objext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6042 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6043 echo "${ECHO_T}$ac_cv_c_const" >&6
6044 if test $ac_cv_c_const = no; then
6046 cat >>confdefs.h <<\_ACEOF
6053 echo "$as_me:$LINENO: checking for egrep" >&5
6054 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6055 if test "${ac_cv_prog_egrep+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6059 then ac_cv_prog_egrep='grep -E'
6060 else ac_cv_prog_egrep='egrep'
6063 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6064 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6065 EGREP=$ac_cv_prog_egrep
6068 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6069 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6070 if test "${ac_cv_header_stdc+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 cat >conftest.$ac_ext <<_ACEOF
6076 cat confdefs.h >>conftest.$ac_ext
6077 cat >>conftest.$ac_ext <<_ACEOF
6078 /* end confdefs.h. */
6092 rm -f conftest.$ac_objext
6093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6094 (eval $ac_compile) 2>conftest.er1
6096 grep -v '^ *+' conftest.er1 >conftest.err
6098 cat conftest.err >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } &&
6101 { ac_try='test -z "$ac_c_werror_flag"
6102 || test ! -s conftest.err'
6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; } &&
6108 { ac_try='test -s conftest.$ac_objext'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; }; then
6114 ac_cv_header_stdc=yes
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6119 ac_cv_header_stdc=no
6121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6123 if test $ac_cv_header_stdc = yes; then
6124 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6125 cat >conftest.$ac_ext <<_ACEOF
6128 cat confdefs.h >>conftest.$ac_ext
6129 cat >>conftest.$ac_ext <<_ACEOF
6130 /* end confdefs.h. */
6134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6135 $EGREP "memchr" >/dev/null 2>&1; then
6138 ac_cv_header_stdc=no
6144 if test $ac_cv_header_stdc = yes; then
6145 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6146 cat >conftest.$ac_ext <<_ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6156 $EGREP "free" >/dev/null 2>&1; then
6159 ac_cv_header_stdc=no
6165 if test $ac_cv_header_stdc = yes; then
6166 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6167 if test "$cross_compiling" = yes; then
6170 cat >conftest.$ac_ext <<_ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6177 #if ((' ' & 0x0FF) == 0x020)
6178 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6179 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6181 # define ISLOWER(c) \
6182 (('a' <= (c) && (c) <= 'i') \
6183 || ('j' <= (c) && (c) <= 'r') \
6184 || ('s' <= (c) && (c) <= 'z'))
6185 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6188 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6193 for (i = 0; i < 256; i++)
6194 if (XOR (islower (i), ISLOWER (i))
6195 || toupper (i) != TOUPPER (i))
6200 rm -f conftest$ac_exeext
6201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6202 (eval $ac_link) 2>&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; }; then
6213 echo "$as_me: program exited with status $ac_status" >&5
6214 echo "$as_me: failed program was:" >&5
6215 sed 's/^/| /' conftest.$ac_ext >&5
6218 ac_cv_header_stdc=no
6220 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6224 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6225 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6226 if test $ac_cv_header_stdc = yes; then
6228 cat >>confdefs.h <<\_ACEOF
6229 #define STDC_HEADERS 1
6240 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6241 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6242 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6243 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 cat >conftest.$ac_ext <<_ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h. */
6253 #include <sys/types.h>
6265 rm -f conftest.$ac_objext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6267 (eval $ac_compile) 2>conftest.er1
6269 grep -v '^ *+' conftest.er1 >conftest.err
6271 cat conftest.err >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } &&
6274 { ac_try='test -z "$ac_c_werror_flag"
6275 || test ! -s conftest.err'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; } &&
6281 { ac_try='test -s conftest.$ac_objext'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; }; then
6287 eval "$as_ac_Header=yes"
6289 echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.$ac_ext >&5
6292 eval "$as_ac_Header=no"
6294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6299 cat >>confdefs.h <<_ACEOF
6300 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6303 ac_header_dirent=$ac_hdr; break
6307 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6308 if test $ac_header_dirent = dirent.h; then
6309 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6310 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6311 if test "${ac_cv_search_opendir+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 ac_func_search_save_LIBS=$LIBS
6315 ac_cv_search_opendir=no
6316 cat >conftest.$ac_ext <<_ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h. */
6323 /* Override any gcc2 internal prototype to avoid an error. */
6327 /* We use char because int might match the return type of a gcc2
6328 builtin and then its argument prototype would still apply. */
6338 rm -f conftest.$ac_objext conftest$ac_exeext
6339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6340 (eval $ac_link) 2>conftest.er1
6342 grep -v '^ *+' conftest.er1 >conftest.err
6344 cat conftest.err >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try='test -z "$ac_c_werror_flag"
6348 || test ! -s conftest.err'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try='test -s conftest$ac_exeext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 ac_cv_search_opendir="none required"
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6366 rm -f conftest.err conftest.$ac_objext \
6367 conftest$ac_exeext conftest.$ac_ext
6368 if test "$ac_cv_search_opendir" = no; then
6369 for ac_lib in dir; do
6370 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6371 cat >conftest.$ac_ext <<_ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h. */
6378 /* Override any gcc2 internal prototype to avoid an error. */
6382 /* We use char because int might match the return type of a gcc2
6383 builtin and then its argument prototype would still apply. */
6393 rm -f conftest.$ac_objext conftest$ac_exeext
6394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6395 (eval $ac_link) 2>conftest.er1
6397 grep -v '^ *+' conftest.er1 >conftest.err
6399 cat conftest.err >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); } &&
6402 { ac_try='test -z "$ac_c_werror_flag"
6403 || test ! -s conftest.err'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; } &&
6409 { ac_try='test -s conftest$ac_exeext'
6410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); }; }; then
6415 ac_cv_search_opendir="-l$ac_lib"
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6422 rm -f conftest.err conftest.$ac_objext \
6423 conftest$ac_exeext conftest.$ac_ext
6426 LIBS=$ac_func_search_save_LIBS
6428 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6429 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6430 if test "$ac_cv_search_opendir" != no; then
6431 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6436 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6437 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6438 if test "${ac_cv_search_opendir+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 ac_func_search_save_LIBS=$LIBS
6442 ac_cv_search_opendir=no
6443 cat >conftest.$ac_ext <<_ACEOF
6446 cat confdefs.h >>conftest.$ac_ext
6447 cat >>conftest.$ac_ext <<_ACEOF
6448 /* end confdefs.h. */
6450 /* Override any gcc2 internal prototype to avoid an error. */
6454 /* We use char because int might match the return type of a gcc2
6455 builtin and then its argument prototype would still apply. */
6465 rm -f conftest.$ac_objext conftest$ac_exeext
6466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6467 (eval $ac_link) 2>conftest.er1
6469 grep -v '^ *+' conftest.er1 >conftest.err
6471 cat conftest.err >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } &&
6474 { ac_try='test -z "$ac_c_werror_flag"
6475 || test ! -s conftest.err'
6476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; } &&
6481 { ac_try='test -s conftest$ac_exeext'
6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; }; then
6487 ac_cv_search_opendir="none required"
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6493 rm -f conftest.err conftest.$ac_objext \
6494 conftest$ac_exeext conftest.$ac_ext
6495 if test "$ac_cv_search_opendir" = no; then
6497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6498 cat >conftest.$ac_ext <<_ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6505 /* Override any gcc2 internal prototype to avoid an error. */
6509 /* We use char because int might match the return type of a gcc2
6510 builtin and then its argument prototype would still apply. */
6520 rm -f conftest.$ac_objext conftest$ac_exeext
6521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6522 (eval $ac_link) 2>conftest.er1
6524 grep -v '^ *+' conftest.er1 >conftest.err
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } &&
6529 { ac_try='test -z "$ac_c_werror_flag"
6530 || test ! -s conftest.err'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; } &&
6536 { ac_try='test -s conftest$ac_exeext'
6537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6542 ac_cv_search_opendir="-l$ac_lib"
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6549 rm -f conftest.err conftest.$ac_objext \
6550 conftest$ac_exeext conftest.$ac_ext
6553 LIBS=$ac_func_search_save_LIBS
6555 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6556 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6557 if test "$ac_cv_search_opendir" != no; then
6558 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6564 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6574 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6575 inttypes.h stdint.h unistd.h
6577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6578 echo "$as_me:$LINENO: checking for $ac_header" >&5
6579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6583 cat >conftest.$ac_ext <<_ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6589 $ac_includes_default
6591 #include <$ac_header>
6593 rm -f conftest.$ac_objext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595 (eval $ac_compile) 2>conftest.er1
6597 grep -v '^ *+' conftest.er1 >conftest.err
6599 cat conftest.err >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -z "$ac_c_werror_flag"
6603 || test ! -s conftest.err'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; } &&
6609 { ac_try='test -s conftest.$ac_objext'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; }; then
6615 eval "$as_ac_Header=yes"
6617 echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6620 eval "$as_ac_Header=no"
6622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6627 cat >>confdefs.h <<_ACEOF
6628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6637 for ac_header in dlfcn.h
6639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6641 echo "$as_me:$LINENO: checking for $ac_header" >&5
6642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6649 # Is the header compilable?
6650 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6652 cat >conftest.$ac_ext <<_ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6658 $ac_includes_default
6659 #include <$ac_header>
6661 rm -f conftest.$ac_objext
6662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6663 (eval $ac_compile) 2>conftest.er1
6665 grep -v '^ *+' conftest.er1 >conftest.err
6667 cat conftest.err >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } &&
6670 { ac_try='test -z "$ac_c_werror_flag"
6671 || test ! -s conftest.err'
6672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }; } &&
6677 { ac_try='test -s conftest.$ac_objext'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; }; then
6683 ac_header_compiler=yes
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6688 ac_header_compiler=no
6690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6692 echo "${ECHO_T}$ac_header_compiler" >&6
6694 # Is the header present?
6695 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6697 cat >conftest.$ac_ext <<_ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6703 #include <$ac_header>
6705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6708 grep -v '^ *+' conftest.er1 >conftest.err
6710 cat conftest.err >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } >/dev/null; then
6713 if test -s conftest.err; then
6714 ac_cpp_err=$ac_c_preproc_warn_flag
6715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6722 if test -z "$ac_cpp_err"; then
6723 ac_header_preproc=yes
6725 echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6728 ac_header_preproc=no
6730 rm -f conftest.err conftest.$ac_ext
6731 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6732 echo "${ECHO_T}$ac_header_preproc" >&6
6734 # So? What about this header?
6735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6741 ac_header_preproc=yes
6744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6751 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6758 ## ----------------------------------- ##
6759 ## Report this to llvmbugs@cs.uiuc.edu ##
6760 ## ----------------------------------- ##
6763 sed "s/^/$as_me: WARNING: /" >&2
6766 echo "$as_me:$LINENO: checking for $ac_header" >&5
6767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 eval "$as_ac_Header=\$ac_header_preproc"
6773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6778 cat >>confdefs.h <<_ACEOF
6779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6786 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6787 if test "${enable_ltdl_install+set}" = set; then
6788 enableval="$enable_ltdl_install"
6794 if test x"${enable_ltdl_install-no}" != xno; then
6796 INSTALL_LTDL_FALSE='#'
6798 INSTALL_LTDL_TRUE='#'
6804 if test x"${enable_ltdl_convenience-no}" != xno; then
6805 CONVENIENCE_LTDL_TRUE=
6806 CONVENIENCE_LTDL_FALSE='#'
6808 CONVENIENCE_LTDL_TRUE='#'
6809 CONVENIENCE_LTDL_FALSE=
6813 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6814 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6816 libname_spec='lib$name'
6824 shlibpath_overrides_runpath=unknown
6826 dynamic_linker="$host_os ld.so"
6827 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6828 if test "$GCC" = yes; then
6829 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6830 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6831 # if the path contains ";" then we assume it to be the separator
6832 # otherwise default to the standard path separator (i.e. ":") - it is
6833 # assumed that no part of a normal pathname contains ";" but that should
6834 # okay in the real world where ";" in dirpaths is itself problematic.
6835 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6837 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6840 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6842 need_lib_prefix=unknown
6843 hardcode_into_libs=no
6845 # when you set need_version to no, make sure it does not cause -set_version
6846 # flags to be left without arguments
6847 need_version=unknown
6852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6853 shlibpath_var=LIBPATH
6855 # AIX 3 has no versioning support, so we append a major version to the name.
6856 soname_spec='${libname}${release}${shared_ext}$major'
6863 hardcode_into_libs=yes
6864 if test "$host_cpu" = ia64; then
6865 # AIX 5 supports IA64
6866 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6867 shlibpath_var=LD_LIBRARY_PATH
6869 # With GCC up to 2.95.x, collect2 would create an import file
6870 # for dependence libraries. The import file would start with
6871 # the line `#! .'. This would cause the generated library to
6872 # depend on `.', always an invalid library. This was fixed in
6873 # development snapshots of GCC prior to 3.0.
6875 aix4 | aix4.[01] | aix4.[01].*)
6876 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6878 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6885 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6886 # soname into executable. Probably we can add versioning support to
6887 # collect2, so additional links can be useful in future.
6888 if test "$aix_use_runtimelinking" = yes; then
6889 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6890 # instead of lib<name>.a to let people know that these are not
6891 # typical AIX shared libraries.
6892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6894 # We preserve .a as extension for shared libraries through AIX4.2
6895 # and later when we are not doing run time linking.
6896 library_names_spec='${libname}${release}.a $libname.a'
6897 soname_spec='${libname}${release}${shared_ext}$major'
6899 shlibpath_var=LIBPATH
6904 library_names_spec='$libname.ixlibrary $libname.a'
6905 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6906 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'
6910 library_names_spec='${libname}${shared_ext}'
6911 dynamic_linker="$host_os ld.so"
6912 shlibpath_var=LIBRARY_PATH
6918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6919 soname_spec='${libname}${release}${shared_ext}$major'
6920 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6921 shlibpath_var=LD_LIBRARY_PATH
6922 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6923 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6924 # the default ld.so.conf also contains /usr/contrib/lib and
6925 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6926 # libtool to hard-code these into programs
6929 cygwin* | mingw* | pw32*)
6930 version_type=windows
6935 case $GCC,$host_os in
6936 yes,cygwin* | yes,mingw* | yes,pw32*)
6937 library_names_spec='$libname.dll.a'
6938 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6939 postinstall_cmds='base_file=`basename \${file}`~
6940 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6941 dldir=$destdir/`dirname \$dlpath`~
6942 test -d \$dldir || mkdir -p \$dldir~
6943 $install_prog $dir/$dlname \$dldir/$dlname'
6944 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6945 dlpath=$dir/\$dldll~
6947 shlibpath_overrides_runpath=yes
6951 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6952 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6953 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6956 # MinGW DLLs use traditional 'lib' prefix
6957 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6958 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6959 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6960 # It is most probably a Windows format PATH printed by
6961 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6962 # path with ; separators, and with drive letters. We can handle the
6963 # drive letters (cygwin fileutils understands them), so leave them,
6964 # especially as we might pass files found there to a mingw objdump,
6965 # which wouldn't understand a cygwinified path. Ahh.
6966 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6972 # pw32 DLLs use 'pw' prefix rather than 'lib'
6973 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6979 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6982 dynamic_linker='Win32 ld.exe'
6983 # FIXME: first we should search . and the directory the executable is in
6987 darwin* | rhapsody*)
6988 dynamic_linker="$host_os dyld"
6992 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6993 soname_spec='${libname}${release}${major}$shared_ext'
6994 shlibpath_overrides_runpath=yes
6995 shlibpath_var=DYLD_LIBRARY_PATH
6996 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6997 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6998 if test "$GCC" = yes; then
6999 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"`
7001 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7003 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7011 soname_spec='${libname}${release}${shared_ext}$major'
7012 shlibpath_var=LD_LIBRARY_PATH
7023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7024 soname_spec='${libname}${release}${shared_ext}$major'
7025 shlibpath_var=LD_LIBRARY_PATH
7026 shlibpath_overrides_runpath=no
7027 hardcode_into_libs=yes
7028 dynamic_linker='GNU ld.so'
7032 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7033 version_type=freebsd-$objformat
7034 case $version_type in
7036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7041 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7045 shlibpath_var=LD_LIBRARY_PATH
7048 shlibpath_overrides_runpath=yes
7050 freebsd3.01* | freebsdelf3.01*)
7051 shlibpath_overrides_runpath=yes
7052 hardcode_into_libs=yes
7055 shlibpath_overrides_runpath=no
7056 hardcode_into_libs=yes
7065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7066 soname_spec='${libname}${release}${shared_ext}$major'
7067 shlibpath_var=LD_LIBRARY_PATH
7068 hardcode_into_libs=yes
7071 hpux9* | hpux10* | hpux11*)
7072 # Give a soname corresponding to the major version so that dld.sl refuses to
7073 # link against other versions.
7080 hardcode_into_libs=yes
7081 dynamic_linker="$host_os dld.so"
7082 shlibpath_var=LD_LIBRARY_PATH
7083 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7085 soname_spec='${libname}${release}${shared_ext}$major'
7086 if test "X$HPUX_IA64_MODE" = X32; then
7087 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7089 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7091 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7095 hardcode_into_libs=yes
7096 dynamic_linker="$host_os dld.sl"
7097 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7098 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7100 soname_spec='${libname}${release}${shared_ext}$major'
7101 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7106 dynamic_linker="$host_os dld.sl"
7107 shlibpath_var=SHLIB_PATH
7108 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7110 soname_spec='${libname}${release}${shared_ext}$major'
7113 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7114 postinstall_cmds='chmod 555 $lib'
7117 irix5* | irix6* | nonstopux*)
7119 nonstopux*) version_type=nonstopux ;;
7121 if test "$lt_cv_prog_gnu_ld" = yes; then
7129 soname_spec='${libname}${release}${shared_ext}$major'
7130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7132 irix5* | nonstopux*)
7136 case $LD in # libtool.m4 will add one of these switches to LD
7137 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7138 libsuff= shlibsuff= libmagic=32-bit;;
7139 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7140 libsuff=32 shlibsuff=N32 libmagic=N32;;
7141 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7142 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7143 *) libsuff= shlibsuff= libmagic=never-match;;
7147 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7148 shlibpath_overrides_runpath=no
7149 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7150 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7151 hardcode_into_libs=yes
7154 # No shared lib support for Linux oldld, aout, or coff.
7155 linux*oldld* | linux*aout* | linux*coff*)
7159 # This must be Linux ELF.
7164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7165 soname_spec='${libname}${release}${shared_ext}$major'
7166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7167 shlibpath_var=LD_LIBRARY_PATH
7168 shlibpath_overrides_runpath=no
7169 # This implies no fast_install, which is unacceptable.
7170 # Some rework will be needed to allow for fast_install
7171 # before this can be enabled.
7172 hardcode_into_libs=yes
7174 # Append ld.so.conf contents to the search path
7175 if test -f /etc/ld.so.conf; then
7176 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7177 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7180 # We used to test for /lib/ld.so.1 and disable shared libraries on
7181 # powerpc, because MkLinux only supported shared libraries with the
7182 # GNU dynamic linker. Since this was broken with cross compilers,
7183 # most powerpc-linux boxes support dynamic linking these days and
7184 # people can always --disable-shared, the test was removed, and we
7185 # assume the GNU/Linux dynamic linker is in use.
7186 dynamic_linker='GNU/Linux ld.so'
7193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7194 soname_spec='${libname}${release}${shared_ext}$major'
7195 shlibpath_var=LD_LIBRARY_PATH
7196 shlibpath_overrides_runpath=no
7197 hardcode_into_libs=yes
7198 dynamic_linker='GNU ld.so'
7205 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7208 dynamic_linker='NetBSD (a.out) ld.so'
7210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7211 soname_spec='${libname}${release}${shared_ext}$major'
7212 dynamic_linker='NetBSD ld.elf_so'
7214 shlibpath_var=LD_LIBRARY_PATH
7215 shlibpath_overrides_runpath=yes
7216 hardcode_into_libs=yes
7221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7222 shlibpath_var=LD_LIBRARY_PATH
7223 shlibpath_overrides_runpath=yes
7230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7231 soname_spec='${libname}${release}${shared_ext}$major'
7232 shlibpath_var=LD_LIBRARY_PATH
7233 shlibpath_overrides_runpath=yes
7240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7242 shlibpath_var=LD_LIBRARY_PATH
7243 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7245 openbsd2.[89] | openbsd2.[89].*)
7246 shlibpath_overrides_runpath=no
7249 shlibpath_overrides_runpath=yes
7253 shlibpath_overrides_runpath=yes
7258 libname_spec='$name'
7261 library_names_spec='$libname${shared_ext} $libname.a'
7262 dynamic_linker='OS/2 ld.exe'
7263 shlibpath_var=LIBPATH
7266 osf3* | osf4* | osf5*)
7270 soname_spec='${libname}${release}${shared_ext}$major'
7271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7272 shlibpath_var=LD_LIBRARY_PATH
7273 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7274 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7279 soname_spec='${libname}${release}${shared_ext}$major'
7280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7281 shlibpath_var=LD_LIBRARY_PATH
7288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7289 soname_spec='${libname}${release}${shared_ext}$major'
7290 shlibpath_var=LD_LIBRARY_PATH
7291 shlibpath_overrides_runpath=yes
7292 hardcode_into_libs=yes
7293 # ldd complains unless libraries are executable
7294 postinstall_cmds='chmod +x $lib'
7299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7300 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7301 shlibpath_var=LD_LIBRARY_PATH
7302 shlibpath_overrides_runpath=yes
7303 if test "$with_gnu_ld" = yes; then
7309 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7312 soname_spec='${libname}${release}${shared_ext}$major'
7313 shlibpath_var=LD_LIBRARY_PATH
7314 case $host_vendor in
7316 shlibpath_overrides_runpath=no
7318 export_dynamic_flag_spec='${wl}-Blargedynsym'
7319 runpath_var=LD_RUN_PATH
7327 shlibpath_overrides_runpath=no
7328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7334 if test -d /usr/nec ;then
7336 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7337 soname_spec='$libname${shared_ext}.$major'
7338 shlibpath_var=LD_LIBRARY_PATH
7344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7345 soname_spec='${libname}${release}${shared_ext}$major'
7346 shlibpath_var=LD_LIBRARY_PATH
7353 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7354 echo "${ECHO_T}$dynamic_linker" >&6
7355 test "$dynamic_linker" = no && can_build_shared=no
7358 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7359 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7360 if test "${libltdl_cv_shlibext+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 eval libltdl_cv_shlibext=$shrext_cmds
7368 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7369 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7370 if test -n "$libltdl_cv_shlibext"; then
7372 cat >>confdefs.h <<_ACEOF
7373 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7379 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7380 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7381 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 libltdl_cv_shlibpath_var="$shlibpath_var"
7386 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7387 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7388 if test -n "$libltdl_cv_shlibpath_var"; then
7390 cat >>confdefs.h <<_ACEOF
7391 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7397 echo "$as_me:$LINENO: checking for the default library search path" >&5
7398 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7399 if test "${libltdl_cv_sys_search_path+set}" = set; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
7402 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7404 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7405 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7406 if test -n "$libltdl_cv_sys_search_path"; then
7408 for dir in $libltdl_cv_sys_search_path; do
7409 if test -z "$sys_search_path"; then
7410 sys_search_path="$dir"
7412 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7416 cat >>confdefs.h <<_ACEOF
7417 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7422 echo "$as_me:$LINENO: checking for objdir" >&5
7423 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7424 if test "${libltdl_cv_objdir+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 libltdl_cv_objdir="$objdir"
7428 if test -n "$objdir"; then
7431 rm -f .libs 2>/dev/null
7432 mkdir .libs 2>/dev/null
7433 if test -d .libs; then
7434 libltdl_cv_objdir=.libs
7436 # MS-DOS does not allow filenames that begin with a dot.
7437 libltdl_cv_objdir=_libs
7439 rmdir .libs 2>/dev/null
7443 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7444 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7446 cat >>confdefs.h <<_ACEOF
7447 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7451 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7452 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7453 if test "${lt_cv_path_NM+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 if test -n "$NM"; then
7457 # Let the user override the test.
7460 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7461 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7463 test -z "$ac_dir" && ac_dir=.
7464 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7465 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7466 # Check to see if the nm accepts a BSD-compat flag.
7467 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7468 # nm: unknown option "B" ignored
7469 # Tru64's nm complains that /dev/null is an invalid object file
7470 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7471 */dev/null* | *'Invalid file or object type'*)
7472 lt_cv_path_NM="$tmp_nm -B"
7476 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7478 lt_cv_path_NM="$tmp_nm -p"
7482 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7483 continue # so that we can try to find one that supports BSD flags
7490 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7493 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7494 echo "${ECHO_T}$lt_cv_path_NM" >&6
7501 # Check for command to grab the raw symbol name followed by C symbol from nm.
7502 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7503 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7504 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 # These are sane defaults that work on at least a few old systems.
7509 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7511 # Character class describing NM global symbol codes.
7512 symcode='[BCDEGRST]'
7514 # Regexp to match symbols that can be accessed directly from C.
7515 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7517 # Transform the above into a raw symbol and a C symbol.
7518 symxfrm='\1 \2\3 \3'
7520 # Transform an extracted symbol line into a proper C declaration
7521 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7523 # Transform an extracted symbol line into symbol name and symbol address
7524 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'"
7526 # Define system-specific variables.
7531 cygwin* | mingw* | pw32*)
7532 symcode='[ABCDGISTW]'
7534 hpux*) # Its linker distinguishes data from code symbols
7535 if test "$host_cpu" = ia64; then
7536 symcode='[ABCDEGRST]'
7538 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7539 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'"
7542 if test "$host_cpu" = ia64; then
7543 symcode='[ABCDGIRSTW]'
7544 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7545 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'"
7549 symcode='[BCDEGRST]'
7552 symcode='[BCDEGQRST]'
7562 # Handle CRLF in mingw tool chain
7566 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7570 # If we're using GNU nm, then use its standard symbol codes.
7571 case `$NM -V 2>&1` in
7572 *GNU* | *'with BFD'*)
7573 symcode='[ABCDGIRSTW]' ;;
7576 # Try without a prefix undercore, then with it.
7577 for ac_symprfx in "" "_"; do
7579 # Write the raw and C identifiers.
7580 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7582 # Check to see that the pipe works correctly.
7586 cat > conftest.$ac_ext <<EOF
7591 void nm_test_func(){}
7595 int main(){nm_test_var='a';nm_test_func();return(0);}
7598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7599 (eval $ac_compile) 2>&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; then
7603 # Now try to grab the symbols.
7605 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7606 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); } && test -s "$nlist"; then
7610 # Try sorting and uniquifying the output.
7611 if sort "$nlist" | uniq > "$nlist"T; then
7612 mv -f "$nlist"T "$nlist"
7617 # Make sure that we snagged all the symbols we need.
7618 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7619 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7620 cat <<EOF > conftest.$ac_ext
7626 # Now generate the symbol file.
7627 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7629 cat <<EOF >> conftest.$ac_ext
7630 #if defined (__STDC__) && __STDC__
7631 # define lt_ptr_t void *
7633 # define lt_ptr_t char *
7637 /* The mapping between symbol names and symbols. */
7642 lt_preloaded_symbols[] =
7645 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7646 cat <<\EOF >> conftest.$ac_ext
7654 # Now try linking the two files.
7655 mv conftest.$ac_objext conftstm.$ac_objext
7656 lt_save_LIBS="$LIBS"
7657 lt_save_CFLAGS="$CFLAGS"
7658 LIBS="conftstm.$ac_objext"
7659 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7661 (eval $ac_link) 2>&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7667 LIBS="$lt_save_LIBS"
7668 CFLAGS="$lt_save_CFLAGS"
7670 echo "cannot find nm_test_func in $nlist" >&5
7673 echo "cannot find nm_test_var in $nlist" >&5
7676 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7679 echo "$progname: failed program was:" >&5
7680 cat conftest.$ac_ext >&5
7682 rm -f conftest* conftst*
7684 # Do not use the global_symbol_pipe unless it works.
7685 if test "$pipe_works" = yes; then
7688 lt_cv_sys_global_symbol_pipe=
7694 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7695 lt_cv_sys_global_symbol_to_cdecl=
7697 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7698 echo "$as_me:$LINENO: result: failed" >&5
7699 echo "${ECHO_T}failed" >&6
7701 echo "$as_me:$LINENO: result: ok" >&5
7702 echo "${ECHO_T}ok" >&6
7706 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7707 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7708 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7712 libltdl_cv_preloaded_symbols=yes
7714 libltdl_cv_preloaded_symbols=no
7718 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7719 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7720 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7722 cat >>confdefs.h <<\_ACEOF
7723 #define HAVE_PRELOADED_SYMBOLS 1
7731 ac_cpp='$CPP $CPPFLAGS'
7732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7737 echo "$as_me:$LINENO: checking for shl_load" >&5
7738 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7739 if test "${ac_cv_func_shl_load+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 cat >conftest.$ac_ext <<_ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7748 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7750 #define shl_load innocuous_shl_load
7752 /* System header to define __stub macros and hopefully few prototypes,
7753 which can conflict with char shl_load (); below.
7754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7755 <limits.h> exists even on freestanding compilers. */
7758 # include <limits.h>
7760 # include <assert.h>
7765 /* Override any gcc2 internal prototype to avoid an error. */
7770 /* We use char because int might match the return type of a gcc2
7771 builtin and then its argument prototype would still apply. */
7773 /* The GNU C library defines this for functions which it implements
7774 to always fail with ENOSYS. Some functions are actually named
7775 something starting with __ and the normal name is an alias. */
7776 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7779 char (*f) () = shl_load;
7788 return f != shl_load;
7793 rm -f conftest.$ac_objext conftest$ac_exeext
7794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7795 (eval $ac_link) 2>conftest.er1
7797 grep -v '^ *+' conftest.er1 >conftest.err
7799 cat conftest.err >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } &&
7802 { ac_try='test -z "$ac_c_werror_flag"
7803 || test ! -s conftest.err'
7804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; } &&
7809 { ac_try='test -s conftest$ac_exeext'
7810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; }; then
7815 ac_cv_func_shl_load=yes
7817 echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7820 ac_cv_func_shl_load=no
7822 rm -f conftest.err conftest.$ac_objext \
7823 conftest$ac_exeext conftest.$ac_ext
7825 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7826 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7827 if test $ac_cv_func_shl_load = yes; then
7829 cat >>confdefs.h <<\_ACEOF
7830 #define HAVE_SHL_LOAD 1
7834 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7835 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7836 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7839 ac_check_lib_save_LIBS=$LIBS
7841 cat >conftest.$ac_ext <<_ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7848 /* Override any gcc2 internal prototype to avoid an error. */
7852 /* We use char because int might match the return type of a gcc2
7853 builtin and then its argument prototype would still apply. */
7863 rm -f conftest.$ac_objext conftest$ac_exeext
7864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7865 (eval $ac_link) 2>conftest.er1
7867 grep -v '^ *+' conftest.er1 >conftest.err
7869 cat conftest.err >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } &&
7872 { ac_try='test -z "$ac_c_werror_flag"
7873 || test ! -s conftest.err'
7874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }; } &&
7879 { ac_try='test -s conftest$ac_exeext'
7880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 ac_cv_lib_dld_shl_load=yes
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7890 ac_cv_lib_dld_shl_load=no
7892 rm -f conftest.err conftest.$ac_objext \
7893 conftest$ac_exeext conftest.$ac_ext
7894 LIBS=$ac_check_lib_save_LIBS
7896 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7897 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7898 if test $ac_cv_lib_dld_shl_load = yes; then
7900 cat >>confdefs.h <<\_ACEOF
7901 #define HAVE_SHL_LOAD 1
7904 LIBADD_DL="$LIBADD_DL -ldld"
7906 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7907 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7908 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 ac_check_lib_save_LIBS=$LIBS
7913 cat >conftest.$ac_ext <<_ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7920 /* Override any gcc2 internal prototype to avoid an error. */
7924 /* We use char because int might match the return type of a gcc2
7925 builtin and then its argument prototype would still apply. */
7935 rm -f conftest.$ac_objext conftest$ac_exeext
7936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7937 (eval $ac_link) 2>conftest.er1
7939 grep -v '^ *+' conftest.er1 >conftest.err
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } &&
7944 { ac_try='test -z "$ac_c_werror_flag"
7945 || test ! -s conftest.err'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; } &&
7951 { ac_try='test -s conftest$ac_exeext'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; }; then
7957 ac_cv_lib_dl_dlopen=yes
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7962 ac_cv_lib_dl_dlopen=no
7964 rm -f conftest.err conftest.$ac_objext \
7965 conftest$ac_exeext conftest.$ac_ext
7966 LIBS=$ac_check_lib_save_LIBS
7968 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7969 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7970 if test $ac_cv_lib_dl_dlopen = yes; then
7972 cat >>confdefs.h <<\_ACEOF
7973 #define HAVE_LIBDL 1
7976 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7978 cat >conftest.$ac_ext <<_ACEOF
7981 cat confdefs.h >>conftest.$ac_ext
7982 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h. */
7996 rm -f conftest.$ac_objext conftest$ac_exeext
7997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7998 (eval $ac_link) 2>conftest.er1
8000 grep -v '^ *+' conftest.er1 >conftest.err
8002 cat conftest.err >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); } &&
8005 { ac_try='test -z "$ac_c_werror_flag"
8006 || test ! -s conftest.err'
8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; } &&
8012 { ac_try='test -s conftest$ac_exeext'
8013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); }; }; then
8019 cat >>confdefs.h <<\_ACEOF
8020 #define HAVE_LIBDL 1
8022 libltdl_cv_func_dlopen="yes"
8024 echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8027 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8028 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8029 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8032 ac_check_lib_save_LIBS=$LIBS
8034 cat >conftest.$ac_ext <<_ACEOF
8037 cat confdefs.h >>conftest.$ac_ext
8038 cat >>conftest.$ac_ext <<_ACEOF
8039 /* end confdefs.h. */
8041 /* Override any gcc2 internal prototype to avoid an error. */
8045 /* We use char because int might match the return type of a gcc2
8046 builtin and then its argument prototype would still apply. */
8056 rm -f conftest.$ac_objext conftest$ac_exeext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8058 (eval $ac_link) 2>conftest.er1
8060 grep -v '^ *+' conftest.er1 >conftest.err
8062 cat conftest.err >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } &&
8065 { ac_try='test -z "$ac_c_werror_flag"
8066 || test ! -s conftest.err'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; } &&
8072 { ac_try='test -s conftest$ac_exeext'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 ac_cv_lib_svld_dlopen=yes
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8083 ac_cv_lib_svld_dlopen=no
8085 rm -f conftest.err conftest.$ac_objext \
8086 conftest$ac_exeext conftest.$ac_ext
8087 LIBS=$ac_check_lib_save_LIBS
8089 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8090 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8091 if test $ac_cv_lib_svld_dlopen = yes; then
8093 cat >>confdefs.h <<\_ACEOF
8094 #define HAVE_LIBDL 1
8097 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8099 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8100 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8101 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 ac_check_lib_save_LIBS=$LIBS
8106 cat >conftest.$ac_ext <<_ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8113 /* Override any gcc2 internal prototype to avoid an error. */
8117 /* We use char because int might match the return type of a gcc2
8118 builtin and then its argument prototype would still apply. */
8128 rm -f conftest.$ac_objext conftest$ac_exeext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8130 (eval $ac_link) 2>conftest.er1
8132 grep -v '^ *+' conftest.er1 >conftest.err
8134 cat conftest.err >&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); } &&
8137 { ac_try='test -z "$ac_c_werror_flag"
8138 || test ! -s conftest.err'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; } &&
8144 { ac_try='test -s conftest$ac_exeext'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 ac_cv_lib_dld_dld_link=yes
8152 echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8155 ac_cv_lib_dld_dld_link=no
8157 rm -f conftest.err conftest.$ac_objext \
8158 conftest$ac_exeext conftest.$ac_ext
8159 LIBS=$ac_check_lib_save_LIBS
8161 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8162 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8163 if test $ac_cv_lib_dld_dld_link = yes; then
8165 cat >>confdefs.h <<\_ACEOF
8169 LIBADD_DL="$LIBADD_DL -ldld"
8171 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8172 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8173 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 cat >conftest.$ac_ext <<_ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8182 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8184 #define _dyld_func_lookup innocuous__dyld_func_lookup
8186 /* System header to define __stub macros and hopefully few prototypes,
8187 which can conflict with char _dyld_func_lookup (); below.
8188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8189 <limits.h> exists even on freestanding compilers. */
8192 # include <limits.h>
8194 # include <assert.h>
8197 #undef _dyld_func_lookup
8199 /* Override any gcc2 internal prototype to avoid an error. */
8204 /* We use char because int might match the return type of a gcc2
8205 builtin and then its argument prototype would still apply. */
8206 char _dyld_func_lookup ();
8207 /* The GNU C library defines this for functions which it implements
8208 to always fail with ENOSYS. Some functions are actually named
8209 something starting with __ and the normal name is an alias. */
8210 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8213 char (*f) () = _dyld_func_lookup;
8222 return f != _dyld_func_lookup;
8227 rm -f conftest.$ac_objext conftest$ac_exeext
8228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8229 (eval $ac_link) 2>conftest.er1
8231 grep -v '^ *+' conftest.er1 >conftest.err
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } &&
8236 { ac_try='test -z "$ac_c_werror_flag"
8237 || test ! -s conftest.err'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; } &&
8243 { ac_try='test -s conftest$ac_exeext'
8244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; }; then
8249 ac_cv_func__dyld_func_lookup=yes
8251 echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8254 ac_cv_func__dyld_func_lookup=no
8256 rm -f conftest.err conftest.$ac_objext \
8257 conftest$ac_exeext conftest.$ac_ext
8259 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8260 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8261 if test $ac_cv_func__dyld_func_lookup = yes; then
8263 cat >>confdefs.h <<\_ACEOF
8277 rm -f conftest.err conftest.$ac_objext \
8278 conftest$ac_exeext conftest.$ac_ext
8289 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8291 lt_save_LIBS="$LIBS"
8292 LIBS="$LIBS $LIBADD_DL"
8294 for ac_func in dlerror
8296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8297 echo "$as_me:$LINENO: checking for $ac_func" >&5
8298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8299 if eval "test \"\${$as_ac_var+set}\" = set"; then
8300 echo $ECHO_N "(cached) $ECHO_C" >&6
8302 cat >conftest.$ac_ext <<_ACEOF
8305 cat confdefs.h >>conftest.$ac_ext
8306 cat >>conftest.$ac_ext <<_ACEOF
8307 /* end confdefs.h. */
8308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8310 #define $ac_func innocuous_$ac_func
8312 /* System header to define __stub macros and hopefully few prototypes,
8313 which can conflict with char $ac_func (); below.
8314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8315 <limits.h> exists even on freestanding compilers. */
8318 # include <limits.h>
8320 # include <assert.h>
8325 /* Override any gcc2 internal prototype to avoid an error. */
8330 /* We use char because int might match the return type of a gcc2
8331 builtin and then its argument prototype would still apply. */
8333 /* The GNU C library defines this for functions which it implements
8334 to always fail with ENOSYS. Some functions are actually named
8335 something starting with __ and the normal name is an alias. */
8336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8339 char (*f) () = $ac_func;
8348 return f != $ac_func;
8353 rm -f conftest.$ac_objext conftest$ac_exeext
8354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8355 (eval $ac_link) 2>conftest.er1
8357 grep -v '^ *+' conftest.er1 >conftest.err
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } &&
8362 { ac_try='test -z "$ac_c_werror_flag"
8363 || test ! -s conftest.err'
8364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; } &&
8369 { ac_try='test -s conftest$ac_exeext'
8370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; }; then
8375 eval "$as_ac_var=yes"
8377 echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8380 eval "$as_ac_var=no"
8382 rm -f conftest.err conftest.$ac_objext \
8383 conftest$ac_exeext conftest.$ac_ext
8385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8387 if test `eval echo '${'$as_ac_var'}'` = yes; then
8388 cat >>confdefs.h <<_ACEOF
8389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8395 LIBS="$lt_save_LIBS"
8398 ac_cpp='$CPP $CPPFLAGS'
8399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8405 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8406 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8407 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8410 ac_cv_sys_symbol_underscore=no
8411 cat > conftest.$ac_ext <<EOF
8412 void nm_test_func(){}
8413 int main(){nm_test_func;return 0;}
8415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8416 (eval $ac_compile) 2>&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; then
8420 # Now try to grab the symbols.
8421 ac_nlist=conftest.nm
8422 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8423 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } && test -s "$ac_nlist"; then
8427 # See whether the symbols have a leading underscore.
8428 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8429 ac_cv_sys_symbol_underscore=yes
8431 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8434 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8438 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8441 echo "configure: failed program was:" >&5
8447 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8448 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8451 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8452 if test x"$libltdl_cv_func_dlopen" = xyes ||
8453 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8454 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8455 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8456 if test "${libltdl_cv_need_uscore+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
8459 libltdl_cv_need_uscore=unknown
8461 LIBS="$LIBS $LIBADD_DL"
8462 if test "$cross_compiling" = yes; then :
8463 libltdl_cv_need_uscore=cross
8465 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8466 lt_status=$lt_dlunknown
8467 cat > conftest.$ac_ext <<EOF
8468 #line 8468 "configure"
8469 #include "confdefs.h"
8478 # define LT_DLGLOBAL RTLD_GLOBAL
8481 # define LT_DLGLOBAL DL_GLOBAL
8483 # define LT_DLGLOBAL 0
8487 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8488 find out it does not work in some platform. */
8489 #ifndef LT_DLLAZY_OR_NOW
8491 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8494 # define LT_DLLAZY_OR_NOW DL_LAZY
8497 # define LT_DLLAZY_OR_NOW RTLD_NOW
8500 # define LT_DLLAZY_OR_NOW DL_NOW
8502 # define LT_DLLAZY_OR_NOW 0
8510 extern "C" void exit (int);
8513 void fnord() { int i=42;}
8516 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8517 int status = $lt_dlunknown;
8521 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8522 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8523 /* dlclose (self); */
8529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8530 (eval $ac_link) 2>&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8534 (./conftest; exit; ) 2>/dev/null
8537 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8538 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8542 # compilation failed
8551 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8552 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8556 if test x"$libltdl_cv_need_uscore" = xyes; then
8558 cat >>confdefs.h <<\_ACEOF
8559 #define NEED_USCORE 1
8565 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8566 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8567 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 # PORTME does your system automatically load deplibs for dlopen?
8571 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8572 # For now, we just catch OSes we know something about -- in the
8573 # future, we'll try test this programmatically.
8574 libltdl_cv_sys_dlopen_deplibs=unknown
8576 aix3*|aix4.1.*|aix4.2.*)
8577 # Unknown whether this is true for these versions of AIX, but
8578 # we want this `case' here to explicitly catch those versions.
8579 libltdl_cv_sys_dlopen_deplibs=unknown
8582 libltdl_cv_sys_dlopen_deplibs=yes
8585 # Assuming the user has installed a libdl from somewhere, this is true
8586 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8587 libltdl_cv_sys_dlopen_deplibs=yes
8589 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8590 # GNU and its variants, using gnu ld.so (Glibc)
8591 libltdl_cv_sys_dlopen_deplibs=yes
8594 libltdl_cv_sys_dlopen_deplibs=yes
8596 irix[12345]*|irix6.[01]*)
8597 # Catch all versions of IRIX before 6.2, and indicate that we don't
8598 # know how it worked for any of those versions.
8599 libltdl_cv_sys_dlopen_deplibs=unknown
8602 # The case above catches anything before 6.2, and it's known that
8603 # at 6.2 and later dlopen does load deplibs.
8604 libltdl_cv_sys_dlopen_deplibs=yes
8607 libltdl_cv_sys_dlopen_deplibs=yes
8610 libltdl_cv_sys_dlopen_deplibs=yes
8613 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8614 # it did *not* use an RPATH in a shared library to find objects the
8615 # library depends on, so we explictly say `no'.
8616 libltdl_cv_sys_dlopen_deplibs=no
8618 osf5.0|osf5.0a|osf5.1)
8619 # dlopen *does* load deplibs and with the right loader patch applied
8620 # it even uses RPATH in a shared library to search for shared objects
8621 # that the library depends on, but there's no easy way to know if that
8622 # patch is installed. Since this is the case, all we can really
8623 # say is unknown -- it depends on the patch being installed. If
8624 # it is, this changes to `yes'. Without it, it would be `no'.
8625 libltdl_cv_sys_dlopen_deplibs=unknown
8628 # the two cases above should catch all versions of osf <= 5.1. Read
8629 # the comments above for what we know about them.
8630 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8631 # is used to find them so we can finally say `yes'.
8632 libltdl_cv_sys_dlopen_deplibs=yes
8635 libltdl_cv_sys_dlopen_deplibs=yes
8640 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8641 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8642 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8644 cat >>confdefs.h <<\_ACEOF
8645 #define LTDL_DLOPEN_DEPLIBS 1
8651 for ac_header in argz.h
8653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8655 echo "$as_me:$LINENO: checking for $ac_header" >&5
8656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8663 # Is the header compilable?
8664 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8666 cat >conftest.$ac_ext <<_ACEOF
8669 cat confdefs.h >>conftest.$ac_ext
8670 cat >>conftest.$ac_ext <<_ACEOF
8671 /* end confdefs.h. */
8672 $ac_includes_default
8673 #include <$ac_header>
8675 rm -f conftest.$ac_objext
8676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8677 (eval $ac_compile) 2>conftest.er1
8679 grep -v '^ *+' conftest.er1 >conftest.err
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } &&
8684 { ac_try='test -z "$ac_c_werror_flag"
8685 || test ! -s conftest.err'
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; } &&
8691 { ac_try='test -s conftest.$ac_objext'
8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; }; then
8697 ac_header_compiler=yes
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8702 ac_header_compiler=no
8704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8706 echo "${ECHO_T}$ac_header_compiler" >&6
8708 # Is the header present?
8709 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8711 cat >conftest.$ac_ext <<_ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h. */
8717 #include <$ac_header>
8719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8722 grep -v '^ *+' conftest.er1 >conftest.err
8724 cat conftest.err >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } >/dev/null; then
8727 if test -s conftest.err; then
8728 ac_cpp_err=$ac_c_preproc_warn_flag
8729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8736 if test -z "$ac_cpp_err"; then
8737 ac_header_preproc=yes
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8742 ac_header_preproc=no
8744 rm -f conftest.err conftest.$ac_ext
8745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8746 echo "${ECHO_T}$ac_header_preproc" >&6
8748 # So? What about this header?
8749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8755 ac_header_preproc=yes
8758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8772 ## ----------------------------------- ##
8773 ## Report this to llvmbugs@cs.uiuc.edu ##
8774 ## ----------------------------------- ##
8777 sed "s/^/$as_me: WARNING: /" >&2
8780 echo "$as_me:$LINENO: checking for $ac_header" >&5
8781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 eval "$as_ac_Header=\$ac_header_preproc"
8787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8792 cat >>confdefs.h <<_ACEOF
8793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8801 echo "$as_me:$LINENO: checking for error_t" >&5
8802 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8803 if test "${ac_cv_type_error_t+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 cat >conftest.$ac_ext <<_ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8821 if (sizeof (error_t))
8827 rm -f conftest.$ac_objext
8828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8829 (eval $ac_compile) 2>conftest.er1
8831 grep -v '^ *+' conftest.er1 >conftest.err
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } &&
8836 { ac_try='test -z "$ac_c_werror_flag"
8837 || test ! -s conftest.err'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; } &&
8843 { ac_try='test -s conftest.$ac_objext'
8844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
8849 ac_cv_type_error_t=yes
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 ac_cv_type_error_t=no
8856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8858 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8859 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8860 if test $ac_cv_type_error_t = yes; then
8862 cat >>confdefs.h <<_ACEOF
8863 #define HAVE_ERROR_T 1
8869 cat >>confdefs.h <<\_ACEOF
8881 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8884 echo "$as_me:$LINENO: checking for $ac_func" >&5
8885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8886 if eval "test \"\${$as_ac_var+set}\" = set"; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8889 cat >conftest.$ac_ext <<_ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8897 #define $ac_func innocuous_$ac_func
8899 /* System header to define __stub macros and hopefully few prototypes,
8900 which can conflict with char $ac_func (); below.
8901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8902 <limits.h> exists even on freestanding compilers. */
8905 # include <limits.h>
8907 # include <assert.h>
8912 /* Override any gcc2 internal prototype to avoid an error. */
8917 /* We use char because int might match the return type of a gcc2
8918 builtin and then its argument prototype would still apply. */
8920 /* The GNU C library defines this for functions which it implements
8921 to always fail with ENOSYS. Some functions are actually named
8922 something starting with __ and the normal name is an alias. */
8923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8926 char (*f) () = $ac_func;
8935 return f != $ac_func;
8940 rm -f conftest.$ac_objext conftest$ac_exeext
8941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942 (eval $ac_link) 2>conftest.er1
8944 grep -v '^ *+' conftest.er1 >conftest.err
8946 cat conftest.err >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); } &&
8949 { ac_try='test -z "$ac_c_werror_flag"
8950 || test ! -s conftest.err'
8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; } &&
8956 { ac_try='test -s conftest$ac_exeext'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8962 eval "$as_ac_var=yes"
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8967 eval "$as_ac_var=no"
8969 rm -f conftest.err conftest.$ac_objext \
8970 conftest$ac_exeext conftest.$ac_ext
8972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8974 if test `eval echo '${'$as_ac_var'}'` = yes; then
8975 cat >>confdefs.h <<_ACEOF
8976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9009 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9014 echo "$as_me:$LINENO: checking for $ac_header" >&5
9015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9022 # Is the header compilable?
9023 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9025 cat >conftest.$ac_ext <<_ACEOF
9028 cat confdefs.h >>conftest.$ac_ext
9029 cat >>conftest.$ac_ext <<_ACEOF
9030 /* end confdefs.h. */
9031 $ac_includes_default
9032 #include <$ac_header>
9034 rm -f conftest.$ac_objext
9035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9036 (eval $ac_compile) 2>conftest.er1
9038 grep -v '^ *+' conftest.er1 >conftest.err
9040 cat conftest.err >&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } &&
9043 { ac_try='test -z "$ac_c_werror_flag"
9044 || test ! -s conftest.err'
9045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; } &&
9050 { ac_try='test -s conftest.$ac_objext'
9051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); }; }; then
9056 ac_header_compiler=yes
9058 echo "$as_me: failed program was:" >&5
9059 sed 's/^/| /' conftest.$ac_ext >&5
9061 ac_header_compiler=no
9063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9065 echo "${ECHO_T}$ac_header_compiler" >&6
9067 # Is the header present?
9068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9070 cat >conftest.$ac_ext <<_ACEOF
9073 cat confdefs.h >>conftest.$ac_ext
9074 cat >>conftest.$ac_ext <<_ACEOF
9075 /* end confdefs.h. */
9076 #include <$ac_header>
9078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9081 grep -v '^ *+' conftest.er1 >conftest.err
9083 cat conftest.err >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } >/dev/null; then
9086 if test -s conftest.err; then
9087 ac_cpp_err=$ac_c_preproc_warn_flag
9088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9095 if test -z "$ac_cpp_err"; then
9096 ac_header_preproc=yes
9098 echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9101 ac_header_preproc=no
9103 rm -f conftest.err conftest.$ac_ext
9104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9105 echo "${ECHO_T}$ac_header_preproc" >&6
9107 # So? What about this header?
9108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9114 ac_header_preproc=yes
9117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9131 ## ----------------------------------- ##
9132 ## Report this to llvmbugs@cs.uiuc.edu ##
9133 ## ----------------------------------- ##
9136 sed "s/^/$as_me: WARNING: /" >&2
9139 echo "$as_me:$LINENO: checking for $ac_header" >&5
9140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9144 eval "$as_ac_Header=\$ac_header_preproc"
9146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9151 cat >>confdefs.h <<_ACEOF
9152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9163 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9167 echo "$as_me:$LINENO: checking for $ac_header" >&5
9168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9175 # Is the header compilable?
9176 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9177 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9178 cat >conftest.$ac_ext <<_ACEOF
9181 cat confdefs.h >>conftest.$ac_ext
9182 cat >>conftest.$ac_ext <<_ACEOF
9183 /* end confdefs.h. */
9184 $ac_includes_default
9185 #include <$ac_header>
9187 rm -f conftest.$ac_objext
9188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9189 (eval $ac_compile) 2>conftest.er1
9191 grep -v '^ *+' conftest.er1 >conftest.err
9193 cat conftest.err >&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } &&
9196 { ac_try='test -z "$ac_c_werror_flag"
9197 || test ! -s conftest.err'
9198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); }; } &&
9203 { ac_try='test -s conftest.$ac_objext'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; }; then
9209 ac_header_compiler=yes
9211 echo "$as_me: failed program was:" >&5
9212 sed 's/^/| /' conftest.$ac_ext >&5
9214 ac_header_compiler=no
9216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9217 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9218 echo "${ECHO_T}$ac_header_compiler" >&6
9220 # Is the header present?
9221 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9223 cat >conftest.$ac_ext <<_ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9229 #include <$ac_header>
9231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9234 grep -v '^ *+' conftest.er1 >conftest.err
9236 cat conftest.err >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); } >/dev/null; then
9239 if test -s conftest.err; then
9240 ac_cpp_err=$ac_c_preproc_warn_flag
9241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9248 if test -z "$ac_cpp_err"; then
9249 ac_header_preproc=yes
9251 echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9254 ac_header_preproc=no
9256 rm -f conftest.err conftest.$ac_ext
9257 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9258 echo "${ECHO_T}$ac_header_preproc" >&6
9260 # So? What about this header?
9261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9266 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9267 ac_header_preproc=yes
9270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9275 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9277 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9281 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9284 ## ----------------------------------- ##
9285 ## Report this to llvmbugs@cs.uiuc.edu ##
9286 ## ----------------------------------- ##
9289 sed "s/^/$as_me: WARNING: /" >&2
9292 echo "$as_me:$LINENO: checking for $ac_header" >&5
9293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9295 echo $ECHO_N "(cached) $ECHO_C" >&6
9297 eval "$as_ac_Header=\$ac_header_preproc"
9299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9304 cat >>confdefs.h <<_ACEOF
9305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9314 for ac_header in string.h strings.h
9316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9318 echo "$as_me:$LINENO: checking for $ac_header" >&5
9319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9321 echo $ECHO_N "(cached) $ECHO_C" >&6
9323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9326 # Is the header compilable?
9327 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9329 cat >conftest.$ac_ext <<_ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9335 $ac_includes_default
9336 #include <$ac_header>
9338 rm -f conftest.$ac_objext
9339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9340 (eval $ac_compile) 2>conftest.er1
9342 grep -v '^ *+' conftest.er1 >conftest.err
9344 cat conftest.err >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } &&
9347 { ac_try='test -z "$ac_c_werror_flag"
9348 || test ! -s conftest.err'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; } &&
9354 { ac_try='test -s conftest.$ac_objext'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; }; then
9360 ac_header_compiler=yes
9362 echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9365 ac_header_compiler=no
9367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9368 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9369 echo "${ECHO_T}$ac_header_compiler" >&6
9371 # Is the header present?
9372 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9374 cat >conftest.$ac_ext <<_ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h. */
9380 #include <$ac_header>
9382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9385 grep -v '^ *+' conftest.er1 >conftest.err
9387 cat conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } >/dev/null; then
9390 if test -s conftest.err; then
9391 ac_cpp_err=$ac_c_preproc_warn_flag
9392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9399 if test -z "$ac_cpp_err"; then
9400 ac_header_preproc=yes
9402 echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9405 ac_header_preproc=no
9407 rm -f conftest.err conftest.$ac_ext
9408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9409 echo "${ECHO_T}$ac_header_preproc" >&6
9411 # So? What about this header?
9412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9418 ac_header_preproc=yes
9421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9424 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9428 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9435 ## ----------------------------------- ##
9436 ## Report this to llvmbugs@cs.uiuc.edu ##
9437 ## ----------------------------------- ##
9440 sed "s/^/$as_me: WARNING: /" >&2
9443 echo "$as_me:$LINENO: checking for $ac_header" >&5
9444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9448 eval "$as_ac_Header=\$ac_header_preproc"
9450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9455 cat >>confdefs.h <<_ACEOF
9456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9466 for ac_func in strchr index
9468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9469 echo "$as_me:$LINENO: checking for $ac_func" >&5
9470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9471 if eval "test \"\${$as_ac_var+set}\" = set"; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 cat >conftest.$ac_ext <<_ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h. */
9480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9482 #define $ac_func innocuous_$ac_func
9484 /* System header to define __stub macros and hopefully few prototypes,
9485 which can conflict with char $ac_func (); below.
9486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9487 <limits.h> exists even on freestanding compilers. */
9490 # include <limits.h>
9492 # include <assert.h>
9497 /* Override any gcc2 internal prototype to avoid an error. */
9502 /* We use char because int might match the return type of a gcc2
9503 builtin and then its argument prototype would still apply. */
9505 /* The GNU C library defines this for functions which it implements
9506 to always fail with ENOSYS. Some functions are actually named
9507 something starting with __ and the normal name is an alias. */
9508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9511 char (*f) () = $ac_func;
9520 return f != $ac_func;
9525 rm -f conftest.$ac_objext conftest$ac_exeext
9526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9527 (eval $ac_link) 2>conftest.er1
9529 grep -v '^ *+' conftest.er1 >conftest.err
9531 cat conftest.err >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } &&
9534 { ac_try='test -z "$ac_c_werror_flag"
9535 || test ! -s conftest.err'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; } &&
9541 { ac_try='test -s conftest$ac_exeext'
9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; }; then
9547 eval "$as_ac_var=yes"
9549 echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9552 eval "$as_ac_var=no"
9554 rm -f conftest.err conftest.$ac_objext \
9555 conftest$ac_exeext conftest.$ac_ext
9557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9559 if test `eval echo '${'$as_ac_var'}'` = yes; then
9560 cat >>confdefs.h <<_ACEOF
9561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9569 for ac_func in strrchr rindex
9571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9572 echo "$as_me:$LINENO: checking for $ac_func" >&5
9573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9574 if eval "test \"\${$as_ac_var+set}\" = set"; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9577 cat >conftest.$ac_ext <<_ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9585 #define $ac_func innocuous_$ac_func
9587 /* System header to define __stub macros and hopefully few prototypes,
9588 which can conflict with char $ac_func (); below.
9589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9590 <limits.h> exists even on freestanding compilers. */
9593 # include <limits.h>
9595 # include <assert.h>
9600 /* Override any gcc2 internal prototype to avoid an error. */
9605 /* We use char because int might match the return type of a gcc2
9606 builtin and then its argument prototype would still apply. */
9608 /* The GNU C library defines this for functions which it implements
9609 to always fail with ENOSYS. Some functions are actually named
9610 something starting with __ and the normal name is an alias. */
9611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9614 char (*f) () = $ac_func;
9623 return f != $ac_func;
9628 rm -f conftest.$ac_objext conftest$ac_exeext
9629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9630 (eval $ac_link) 2>conftest.er1
9632 grep -v '^ *+' conftest.er1 >conftest.err
9634 cat conftest.err >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); } &&
9637 { ac_try='test -z "$ac_c_werror_flag"
9638 || test ! -s conftest.err'
9639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }; } &&
9644 { ac_try='test -s conftest$ac_exeext'
9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; }; then
9650 eval "$as_ac_var=yes"
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9655 eval "$as_ac_var=no"
9657 rm -f conftest.err conftest.$ac_objext \
9658 conftest$ac_exeext conftest.$ac_ext
9660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9661 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9662 if test `eval echo '${'$as_ac_var'}'` = yes; then
9663 cat >>confdefs.h <<_ACEOF
9664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9672 for ac_func in memcpy bcopy
9674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9675 echo "$as_me:$LINENO: checking for $ac_func" >&5
9676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9677 if eval "test \"\${$as_ac_var+set}\" = set"; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9680 cat >conftest.$ac_ext <<_ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h. */
9686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9688 #define $ac_func innocuous_$ac_func
9690 /* System header to define __stub macros and hopefully few prototypes,
9691 which can conflict with char $ac_func (); below.
9692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9693 <limits.h> exists even on freestanding compilers. */
9696 # include <limits.h>
9698 # include <assert.h>
9703 /* Override any gcc2 internal prototype to avoid an error. */
9708 /* We use char because int might match the return type of a gcc2
9709 builtin and then its argument prototype would still apply. */
9711 /* The GNU C library defines this for functions which it implements
9712 to always fail with ENOSYS. Some functions are actually named
9713 something starting with __ and the normal name is an alias. */
9714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9717 char (*f) () = $ac_func;
9726 return f != $ac_func;
9731 rm -f conftest.$ac_objext conftest$ac_exeext
9732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9733 (eval $ac_link) 2>conftest.er1
9735 grep -v '^ *+' conftest.er1 >conftest.err
9737 cat conftest.err >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } &&
9740 { ac_try='test -z "$ac_c_werror_flag"
9741 || test ! -s conftest.err'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; } &&
9747 { ac_try='test -s conftest$ac_exeext'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
9753 eval "$as_ac_var=yes"
9755 echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9758 eval "$as_ac_var=no"
9760 rm -f conftest.err conftest.$ac_objext \
9761 conftest$ac_exeext conftest.$ac_ext
9763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9765 if test `eval echo '${'$as_ac_var'}'` = yes; then
9766 cat >>confdefs.h <<_ACEOF
9767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9775 for ac_func in memmove strcmp
9777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9778 echo "$as_me:$LINENO: checking for $ac_func" >&5
9779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9780 if eval "test \"\${$as_ac_var+set}\" = set"; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 cat >conftest.$ac_ext <<_ACEOF
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h. */
9789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9791 #define $ac_func innocuous_$ac_func
9793 /* System header to define __stub macros and hopefully few prototypes,
9794 which can conflict with char $ac_func (); below.
9795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9796 <limits.h> exists even on freestanding compilers. */
9799 # include <limits.h>
9801 # include <assert.h>
9806 /* Override any gcc2 internal prototype to avoid an error. */
9811 /* We use char because int might match the return type of a gcc2
9812 builtin and then its argument prototype would still apply. */
9814 /* The GNU C library defines this for functions which it implements
9815 to always fail with ENOSYS. Some functions are actually named
9816 something starting with __ and the normal name is an alias. */
9817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9820 char (*f) () = $ac_func;
9829 return f != $ac_func;
9834 rm -f conftest.$ac_objext conftest$ac_exeext
9835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9836 (eval $ac_link) 2>conftest.er1
9838 grep -v '^ *+' conftest.er1 >conftest.err
9840 cat conftest.err >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } &&
9843 { ac_try='test -z "$ac_c_werror_flag"
9844 || test ! -s conftest.err'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; } &&
9850 { ac_try='test -s conftest$ac_exeext'
9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; }; then
9856 eval "$as_ac_var=yes"
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9861 eval "$as_ac_var=no"
9863 rm -f conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9868 if test `eval echo '${'$as_ac_var'}'` = yes; then
9869 cat >>confdefs.h <<_ACEOF
9870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9879 for ac_func in closedir opendir readdir
9881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9882 echo "$as_me:$LINENO: checking for $ac_func" >&5
9883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9884 if eval "test \"\${$as_ac_var+set}\" = set"; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9887 cat >conftest.$ac_ext <<_ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h. */
9893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9895 #define $ac_func innocuous_$ac_func
9897 /* System header to define __stub macros and hopefully few prototypes,
9898 which can conflict with char $ac_func (); below.
9899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9900 <limits.h> exists even on freestanding compilers. */
9903 # include <limits.h>
9905 # include <assert.h>
9910 /* Override any gcc2 internal prototype to avoid an error. */
9915 /* We use char because int might match the return type of a gcc2
9916 builtin and then its argument prototype would still apply. */
9918 /* The GNU C library defines this for functions which it implements
9919 to always fail with ENOSYS. Some functions are actually named
9920 something starting with __ and the normal name is an alias. */
9921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9924 char (*f) () = $ac_func;
9933 return f != $ac_func;
9938 rm -f conftest.$ac_objext conftest$ac_exeext
9939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9940 (eval $ac_link) 2>conftest.er1
9942 grep -v '^ *+' conftest.er1 >conftest.err
9944 cat conftest.err >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } &&
9947 { ac_try='test -z "$ac_c_werror_flag"
9948 || test ! -s conftest.err'
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; } &&
9954 { ac_try='test -s conftest$ac_exeext'
9955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; }; then
9960 eval "$as_ac_var=yes"
9962 echo "$as_me: failed program was:" >&5
9963 sed 's/^/| /' conftest.$ac_ext >&5
9965 eval "$as_ac_var=no"
9967 rm -f conftest.err conftest.$ac_objext \
9968 conftest$ac_exeext conftest.$ac_ext
9970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9972 if test `eval echo '${'$as_ac_var'}'` = yes; then
9973 cat >>confdefs.h <<_ACEOF
9974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9981 # Check whether --enable-shared or --disable-shared was given.
9982 if test "${enable_shared+set}" = set; then
9983 enableval="$enable_shared"
9984 p=${PACKAGE-default}
9986 yes) enable_shared=yes ;;
9987 no) enable_shared=no ;;
9990 # Look at the argument we got. We use all the common list separators.
9991 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9992 for pkg in $enableval; do
9994 if test "X$pkg" = "X$p"; then
10005 # Check whether --enable-static or --disable-static was given.
10006 if test "${enable_static+set}" = set; then
10007 enableval="$enable_static"
10008 p=${PACKAGE-default}
10010 yes) enable_static=yes ;;
10011 no) enable_static=no ;;
10014 # Look at the argument we got. We use all the common list separators.
10015 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10016 for pkg in $enableval; do
10018 if test "X$pkg" = "X$p"; then
10029 # Check whether --enable-fast-install or --disable-fast-install was given.
10030 if test "${enable_fast_install+set}" = set; then
10031 enableval="$enable_fast_install"
10032 p=${PACKAGE-default}
10034 yes) enable_fast_install=yes ;;
10035 no) enable_fast_install=no ;;
10037 enable_fast_install=no
10038 # Look at the argument we got. We use all the common list separators.
10039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10040 for pkg in $enableval; do
10042 if test "X$pkg" = "X$p"; then
10043 enable_fast_install=yes
10050 enable_fast_install=yes
10053 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10054 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10055 if test "${lt_cv_path_SED+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10058 # Loop through the user's path and test for sed and gsed.
10059 # Then use that list of sed's as ones to test for truncation.
10060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061 for as_dir in $PATH
10064 test -z "$as_dir" && as_dir=.
10065 for lt_ac_prog in sed gsed; do
10066 for ac_exec_ext in '' $ac_executable_extensions; do
10067 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10068 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10075 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10076 # along with /bin/sed that truncates output.
10077 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10078 test ! -f $lt_ac_sed && break
10079 cat /dev/null > conftest.in
10081 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10082 # Check for GNU sed and select it if it is found.
10083 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10084 lt_cv_path_SED=$lt_ac_sed
10088 cat conftest.in conftest.in >conftest.tmp
10089 mv conftest.tmp conftest.in
10090 cp conftest.in conftest.nl
10092 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10093 cmp -s conftest.out conftest.nl || break
10094 # 10000 chars as input seems more than enough
10095 test $lt_ac_count -gt 10 && break
10096 lt_ac_count=`expr $lt_ac_count + 1`
10097 if test $lt_ac_count -gt $lt_ac_max; then
10098 lt_ac_max=$lt_ac_count
10099 lt_cv_path_SED=$lt_ac_sed
10106 SED=$lt_cv_path_SED
10107 echo "$as_me:$LINENO: result: $SED" >&5
10108 echo "${ECHO_T}$SED" >&6
10111 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10112 if test "${with_gnu_ld+set}" = set; then
10113 withval="$with_gnu_ld"
10114 test "$withval" = no || with_gnu_ld=yes
10119 if test "$GCC" = yes; then
10120 # Check if gcc -print-prog-name=ld gives a path.
10121 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10122 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10125 # gcc leaves a trailing carriage return which upsets mingw
10126 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10128 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10131 # Accept absolute paths.
10133 re_direlt='/[^/][^/]*/\.\./'
10134 # Canonicalize the pathname of ld
10135 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10136 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10137 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10139 test -z "$LD" && LD="$ac_prog"
10142 # If it fails, then pretend we aren't using GCC.
10146 # If it is relative, then search for the first ld in PATH.
10147 with_gnu_ld=unknown
10150 elif test "$with_gnu_ld" = yes; then
10151 echo "$as_me:$LINENO: checking for GNU ld" >&5
10152 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10154 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10155 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10157 if test "${lt_cv_path_LD+set}" = set; then
10158 echo $ECHO_N "(cached) $ECHO_C" >&6
10160 if test -z "$LD"; then
10161 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10162 for ac_dir in $PATH; do
10164 test -z "$ac_dir" && ac_dir=.
10165 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10166 lt_cv_path_LD="$ac_dir/$ac_prog"
10167 # Check to see if the program is GNU ld. I'd rather use --version,
10168 # but apparently some GNU ld's only accept -v.
10169 # Break only if it was the GNU/non-GNU ld that we prefer.
10170 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10171 *GNU* | *'with BFD'*)
10172 test "$with_gnu_ld" != no && break
10175 test "$with_gnu_ld" != yes && break
10182 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10186 LD="$lt_cv_path_LD"
10187 if test -n "$LD"; then
10188 echo "$as_me:$LINENO: result: $LD" >&5
10189 echo "${ECHO_T}$LD" >&6
10191 echo "$as_me:$LINENO: result: no" >&5
10192 echo "${ECHO_T}no" >&6
10194 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10195 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10196 { (exit 1); exit 1; }; }
10197 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10198 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10199 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10202 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10203 case `$LD -v 2>&1 </dev/null` in
10204 *GNU* | *'with BFD'*)
10205 lt_cv_prog_gnu_ld=yes
10208 lt_cv_prog_gnu_ld=no
10212 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10213 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10214 with_gnu_ld=$lt_cv_prog_gnu_ld
10217 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10218 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10219 if test "${lt_cv_ld_reload_flag+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 lt_cv_ld_reload_flag='-r'
10224 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10225 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10226 reload_flag=$lt_cv_ld_reload_flag
10227 case $reload_flag in
10229 *) reload_flag=" $reload_flag" ;;
10231 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10234 if test "$GCC" = yes; then
10235 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10237 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10242 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10243 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10244 if test "${lt_cv_deplibs_check_method+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
10247 lt_cv_file_magic_cmd='$MAGIC_CMD'
10248 lt_cv_file_magic_test_file=
10249 lt_cv_deplibs_check_method='unknown'
10250 # Need to set the preceding variable on all platforms that support
10251 # interlibrary dependencies.
10252 # 'none' -- dependencies not supported.
10253 # `unknown' -- same as none, but documents that we really don't know.
10254 # 'pass_all' -- all dependencies passed with no checks.
10255 # 'test_compile' -- check by making test program.
10256 # 'file_magic [[regex]]' -- check by looking for files in library path
10257 # which responds to the $file_magic_cmd with a given extended regex.
10258 # If you have `file' or equivalent on your system and you're not sure
10259 # whether `pass_all' will *always* work, you probably want this one.
10263 lt_cv_deplibs_check_method=pass_all
10267 lt_cv_deplibs_check_method=pass_all
10271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10272 lt_cv_file_magic_cmd='/usr/bin/file -L'
10273 lt_cv_file_magic_test_file=/shlib/libc.so
10277 # func_win32_libid is a shell function defined in ltmain.sh
10278 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10279 lt_cv_file_magic_cmd='func_win32_libid'
10283 # Base MSYS/MinGW do not provide the 'file' command needed by
10284 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10285 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10286 lt_cv_file_magic_cmd='$OBJDUMP -f'
10289 darwin* | rhapsody*)
10290 lt_cv_deplibs_check_method=pass_all
10293 freebsd* | kfreebsd*-gnu)
10294 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10297 # Not sure whether the presence of OpenBSD here was a mistake.
10298 # Let's accept both of them until this is cleared up.
10299 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10300 lt_cv_file_magic_cmd=/usr/bin/file
10301 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10305 lt_cv_deplibs_check_method=pass_all
10310 lt_cv_deplibs_check_method=pass_all
10313 hpux10.20* | hpux11*)
10314 lt_cv_file_magic_cmd=/usr/bin/file
10315 case "$host_cpu" in
10317 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10318 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10321 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]'
10322 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10325 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10326 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10331 irix5* | irix6* | nonstopux*)
10333 *-32|*"-32 ") libmagic=32-bit;;
10334 *-n32|*"-n32 ") libmagic=N32;;
10335 *-64|*"-64 ") libmagic=64-bit;;
10336 *) libmagic=never-match;;
10338 lt_cv_deplibs_check_method=pass_all
10341 # This must be Linux ELF.
10343 lt_cv_deplibs_check_method=pass_all
10347 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10348 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10355 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10356 lt_cv_file_magic_cmd=/usr/bin/file
10357 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10361 lt_cv_deplibs_check_method=unknown
10365 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10366 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10372 osf3* | osf4* | osf5*)
10373 lt_cv_deplibs_check_method=pass_all
10377 lt_cv_deplibs_check_method=pass_all
10381 lt_cv_deplibs_check_method=pass_all
10384 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10385 case $host_vendor in
10387 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]'
10388 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10391 lt_cv_deplibs_check_method=pass_all
10394 lt_cv_file_magic_cmd='/bin/file'
10395 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10398 lt_cv_file_magic_cmd='/bin/file'
10399 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10400 lt_cv_file_magic_test_file=/lib/libc.so
10403 lt_cv_deplibs_check_method=pass_all
10408 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10409 lt_cv_deplibs_check_method=pass_all
10414 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10415 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10416 file_magic_cmd=$lt_cv_file_magic_cmd
10417 deplibs_check_method=$lt_cv_deplibs_check_method
10418 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10422 # If no C compiler was specified, use CC.
10425 # Allow CC to be a program name with arguments.
10428 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10429 if test "${enable_libtool_lock+set}" = set; then
10430 enableval="$enable_libtool_lock"
10433 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10435 # Some flags need to be propagated to the compiler or linker for good
10439 # Find out which ABI we are using.
10440 echo 'int i;' > conftest.$ac_ext
10441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10442 (eval $ac_compile) 2>&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; then
10446 case `/usr/bin/file conftest.$ac_objext` in
10448 HPUX_IA64_MODE="32"
10451 HPUX_IA64_MODE="64"
10458 # Find out which ABI we are using.
10459 echo '#line 10459 "configure"' > conftest.$ac_ext
10460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10461 (eval $ac_compile) 2>&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; then
10465 if test "$lt_cv_prog_gnu_ld" = yes; then
10466 case `/usr/bin/file conftest.$ac_objext` in
10468 LD="${LD-ld} -melf32bsmip"
10471 LD="${LD-ld} -melf32bmipn32"
10474 LD="${LD-ld} -melf64bmip"
10478 case `/usr/bin/file conftest.$ac_objext` in
10494 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10495 # Find out which ABI we are using.
10496 echo 'int i;' > conftest.$ac_ext
10497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10498 (eval $ac_compile) 2>&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; then
10502 case "`/usr/bin/file conftest.o`" in
10506 LD="${LD-ld} -m elf_i386"
10508 ppc64-*linux*|powerpc64-*linux*)
10509 LD="${LD-ld} -m elf32ppclinux"
10512 LD="${LD-ld} -m elf_s390"
10515 LD="${LD-ld} -m elf32_sparc"
10522 LD="${LD-ld} -m elf_x86_64"
10524 ppc*-*linux*|powerpc*-*linux*)
10525 LD="${LD-ld} -m elf64ppc"
10528 LD="${LD-ld} -m elf64_s390"
10531 LD="${LD-ld} -m elf64_sparc"
10541 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10542 SAVE_CFLAGS="$CFLAGS"
10543 CFLAGS="$CFLAGS -belf"
10544 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10545 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10546 if test "${lt_cv_cc_needs_belf+set}" = set; then
10547 echo $ECHO_N "(cached) $ECHO_C" >&6
10550 ac_cpp='$CPP $CPPFLAGS'
10551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10555 cat >conftest.$ac_ext <<_ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10563 rm -f conftest.$ac_objext conftest$ac_exeext
10564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565 (eval $ac_link) 2>conftest.er1
10567 grep -v '^ *+' conftest.er1 >conftest.err
10569 cat conftest.err >&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } &&
10572 { ac_try='test -z "$ac_c_werror_flag"
10573 || test ! -s conftest.err'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; } &&
10579 { ac_try='test -s conftest$ac_exeext'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
10585 lt_cv_cc_needs_belf=yes
10587 echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10590 lt_cv_cc_needs_belf=no
10592 rm -f conftest.err conftest.$ac_objext \
10593 conftest$ac_exeext conftest.$ac_ext
10595 ac_cpp='$CPP $CPPFLAGS'
10596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10601 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10602 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10603 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10604 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10605 CFLAGS="$SAVE_CFLAGS"
10611 need_locks="$enable_libtool_lock"
10616 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10617 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10618 (test "X$CXX" != "Xg++"))) ; then
10620 ac_cpp='$CXXCPP $CPPFLAGS'
10621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10624 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10625 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10626 if test -z "$CXXCPP"; then
10627 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 # Double quotes because CXXCPP needs to be expanded
10631 for CXXCPP in "$CXX -E" "/lib/cpp"
10633 ac_preproc_ok=false
10634 for ac_cxx_preproc_warn_flag in '' yes
10636 # Use a header file that comes with gcc, so configuring glibc
10637 # with a fresh cross-compiler works.
10638 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10639 # <limits.h> exists even on freestanding compilers.
10640 # On the NeXT, cc -E runs the code through the compiler's parser,
10641 # not just through cpp. "Syntax error" is here to catch this case.
10642 cat >conftest.$ac_ext <<_ACEOF
10645 cat confdefs.h >>conftest.$ac_ext
10646 cat >>conftest.$ac_ext <<_ACEOF
10647 /* end confdefs.h. */
10649 # include <limits.h>
10651 # include <assert.h>
10655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10658 grep -v '^ *+' conftest.er1 >conftest.err
10660 cat conftest.err >&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } >/dev/null; then
10663 if test -s conftest.err; then
10664 ac_cpp_err=$ac_cxx_preproc_warn_flag
10665 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10672 if test -z "$ac_cpp_err"; then
10675 echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10678 # Broken: fails on valid input.
10681 rm -f conftest.err conftest.$ac_ext
10683 # OK, works on sane cases. Now check whether non-existent headers
10684 # can be detected and how.
10685 cat >conftest.$ac_ext <<_ACEOF
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h. */
10691 #include <ac_nonexistent.h>
10693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10696 grep -v '^ *+' conftest.er1 >conftest.err
10698 cat conftest.err >&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } >/dev/null; then
10701 if test -s conftest.err; then
10702 ac_cpp_err=$ac_cxx_preproc_warn_flag
10703 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10710 if test -z "$ac_cpp_err"; then
10711 # Broken: success on invalid input.
10714 echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.$ac_ext >&5
10717 # Passes both tests.
10721 rm -f conftest.err conftest.$ac_ext
10724 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10725 rm -f conftest.err conftest.$ac_ext
10726 if $ac_preproc_ok; then
10731 ac_cv_prog_CXXCPP=$CXXCPP
10734 CXXCPP=$ac_cv_prog_CXXCPP
10736 ac_cv_prog_CXXCPP=$CXXCPP
10738 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10739 echo "${ECHO_T}$CXXCPP" >&6
10740 ac_preproc_ok=false
10741 for ac_cxx_preproc_warn_flag in '' yes
10743 # Use a header file that comes with gcc, so configuring glibc
10744 # with a fresh cross-compiler works.
10745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10746 # <limits.h> exists even on freestanding compilers.
10747 # On the NeXT, cc -E runs the code through the compiler's parser,
10748 # not just through cpp. "Syntax error" is here to catch this case.
10749 cat >conftest.$ac_ext <<_ACEOF
10752 cat confdefs.h >>conftest.$ac_ext
10753 cat >>conftest.$ac_ext <<_ACEOF
10754 /* end confdefs.h. */
10756 # include <limits.h>
10758 # include <assert.h>
10762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10765 grep -v '^ *+' conftest.er1 >conftest.err
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } >/dev/null; then
10770 if test -s conftest.err; then
10771 ac_cpp_err=$ac_cxx_preproc_warn_flag
10772 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10779 if test -z "$ac_cpp_err"; then
10782 echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10785 # Broken: fails on valid input.
10788 rm -f conftest.err conftest.$ac_ext
10790 # OK, works on sane cases. Now check whether non-existent headers
10791 # can be detected and how.
10792 cat >conftest.$ac_ext <<_ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10798 #include <ac_nonexistent.h>
10800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10803 grep -v '^ *+' conftest.er1 >conftest.err
10805 cat conftest.err >&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } >/dev/null; then
10808 if test -s conftest.err; then
10809 ac_cpp_err=$ac_cxx_preproc_warn_flag
10810 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10817 if test -z "$ac_cpp_err"; then
10818 # Broken: success on invalid input.
10821 echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10824 # Passes both tests.
10828 rm -f conftest.err conftest.$ac_ext
10831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10832 rm -f conftest.err conftest.$ac_ext
10833 if $ac_preproc_ok; then
10836 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10837 See \`config.log' for more details." >&5
10838 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10839 See \`config.log' for more details." >&2;}
10840 { (exit 1); exit 1; }; }
10844 ac_cpp='$CXXCPP $CPPFLAGS'
10845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10853 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10854 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10855 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10856 if test -n "$ac_tool_prefix"; then
10857 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10859 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10860 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10861 echo "$as_me:$LINENO: checking for $ac_word" >&5
10862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10863 if test "${ac_cv_prog_F77+set}" = set; then
10864 echo $ECHO_N "(cached) $ECHO_C" >&6
10866 if test -n "$F77"; then
10867 ac_cv_prog_F77="$F77" # Let the user override the test.
10869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10870 for as_dir in $PATH
10873 test -z "$as_dir" && as_dir=.
10874 for ac_exec_ext in '' $ac_executable_extensions; do
10875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10876 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10885 F77=$ac_cv_prog_F77
10886 if test -n "$F77"; then
10887 echo "$as_me:$LINENO: result: $F77" >&5
10888 echo "${ECHO_T}$F77" >&6
10890 echo "$as_me:$LINENO: result: no" >&5
10891 echo "${ECHO_T}no" >&6
10894 test -n "$F77" && break
10897 if test -z "$F77"; then
10899 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10901 # Extract the first word of "$ac_prog", so it can be a program name with args.
10902 set dummy $ac_prog; ac_word=$2
10903 echo "$as_me:$LINENO: checking for $ac_word" >&5
10904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10905 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 if test -n "$ac_ct_F77"; then
10909 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10912 for as_dir in $PATH
10915 test -z "$as_dir" && as_dir=.
10916 for ac_exec_ext in '' $ac_executable_extensions; do
10917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10918 ac_cv_prog_ac_ct_F77="$ac_prog"
10919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10927 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10928 if test -n "$ac_ct_F77"; then
10929 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10930 echo "${ECHO_T}$ac_ct_F77" >&6
10932 echo "$as_me:$LINENO: result: no" >&5
10933 echo "${ECHO_T}no" >&6
10936 test -n "$ac_ct_F77" && break
10943 # Provide some information about the compiler.
10944 echo "$as_me:10944:" \
10945 "checking for Fortran 77 compiler version" >&5
10946 ac_compiler=`set X $ac_compile; echo $2`
10947 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10948 (eval $ac_compiler --version </dev/null >&5) 2>&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }
10952 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10953 (eval $ac_compiler -v </dev/null >&5) 2>&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }
10957 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10958 (eval $ac_compiler -V </dev/null >&5) 2>&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }
10964 # If we don't use `.F' as extension, the preprocessor is not run on the
10965 # input file. (Note that this only needs to work for GNU compilers.)
10966 ac_save_ext=$ac_ext
10968 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10969 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10970 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10973 cat >conftest.$ac_ext <<_ACEOF
10981 rm -f conftest.$ac_objext
10982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10983 (eval $ac_compile) 2>conftest.er1
10985 grep -v '^ *+' conftest.er1 >conftest.err
10987 cat conftest.err >&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } &&
10990 { ac_try='test -z "$ac_f77_werror_flag"
10991 || test ! -s conftest.err'
10992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993 (eval $ac_try) 2>&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; } &&
10997 { ac_try='test -s conftest.$ac_objext'
10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; }; then
11003 ac_compiler_gnu=yes
11005 echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.$ac_ext >&5
11010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11011 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11014 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11015 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11016 ac_ext=$ac_save_ext
11017 ac_test_FFLAGS=${FFLAGS+set}
11018 ac_save_FFLAGS=$FFLAGS
11020 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11021 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11022 if test "${ac_cv_prog_f77_g+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11026 cat >conftest.$ac_ext <<_ACEOF
11031 rm -f conftest.$ac_objext
11032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11033 (eval $ac_compile) 2>conftest.er1
11035 grep -v '^ *+' conftest.er1 >conftest.err
11037 cat conftest.err >&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } &&
11040 { ac_try='test -z "$ac_f77_werror_flag"
11041 || test ! -s conftest.err'
11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043 (eval $ac_try) 2>&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; } &&
11047 { ac_try='test -s conftest.$ac_objext'
11048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049 (eval $ac_try) 2>&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; }; then
11053 ac_cv_prog_f77_g=yes
11055 echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11058 ac_cv_prog_f77_g=no
11060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11063 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11064 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11065 if test "$ac_test_FFLAGS" = set; then
11066 FFLAGS=$ac_save_FFLAGS
11067 elif test $ac_cv_prog_f77_g = yes; then
11068 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11074 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11081 G77=`test $ac_compiler_gnu = yes && echo yes`
11083 ac_cpp='$CPP $CPPFLAGS'
11084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11090 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11092 # find the maximum length of command line arguments
11093 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11094 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11095 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 # On DJGPP, this test can blow up pretty badly due to problems in libc
11104 # (any single argument exceeding 2000 bytes causes a buffer overrun
11105 # during glob expansion). Even if it were fixed, the result of this
11106 # check would be larger than it should be.
11107 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11111 # Under GNU Hurd, this test is not required because there is
11112 # no limit to the length of command line arguments.
11113 # Libtool will interpret -1 as no limit whatsoever
11114 lt_cv_sys_max_cmd_len=-1;
11118 # On Win9x/ME, this test blows up -- it succeeds, but takes
11119 # about 5 minutes as the teststring grows exponentially.
11120 # Worse, since 9x/ME are not pre-emptively multitasking,
11121 # you end up with a "frozen" computer, even though with patience
11122 # the test eventually succeeds (with a max line length of 256k).
11123 # Instead, let's just punt: use the minimum linelength reported by
11124 # all of the supported platforms: 8192 (on NT/2K/XP).
11125 lt_cv_sys_max_cmd_len=8192;
11129 # On AmigaOS with pdksh, this test takes hours, literally.
11130 # So we just punt and use a minimum line length of 8192.
11131 lt_cv_sys_max_cmd_len=8192;
11134 netbsd* | freebsd* | openbsd* | darwin* )
11135 # This has been around since 386BSD, at least. Likely further.
11136 if test -x /sbin/sysctl; then
11137 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11138 elif test -x /usr/sbin/sysctl; then
11139 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11141 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11143 # And add a safety zone
11144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11148 # If test is not a shell built-in, we'll probably end up computing a
11149 # maximum length that is only half of the actual maximum length, but
11151 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11152 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11153 = "XX$teststring") >/dev/null 2>&1 &&
11154 new_result=`expr "X$teststring" : ".*" 2>&1` &&
11155 lt_cv_sys_max_cmd_len=$new_result &&
11156 test $i != 17 # 1/2 MB should be enough
11159 teststring=$teststring$teststring
11162 # Add a significant safety factor because C++ compilers can tack on massive
11163 # amounts of additional arguments before passing them to the linker.
11164 # It appears as though 1/2 is a usable value.
11165 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11171 if test -n $lt_cv_sys_max_cmd_len ; then
11172 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11173 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11175 echo "$as_me:$LINENO: result: none" >&5
11176 echo "${ECHO_T}none" >&6
11182 # Check for command to grab the raw symbol name followed by C symbol from nm.
11183 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11184 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11185 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11189 # These are sane defaults that work on at least a few old systems.
11190 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11192 # Character class describing NM global symbol codes.
11193 symcode='[BCDEGRST]'
11195 # Regexp to match symbols that can be accessed directly from C.
11196 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11198 # Transform the above into a raw symbol and a C symbol.
11199 symxfrm='\1 \2\3 \3'
11201 # Transform an extracted symbol line into a proper C declaration
11202 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11204 # Transform an extracted symbol line into symbol name and symbol address
11205 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'"
11207 # Define system-specific variables.
11212 cygwin* | mingw* | pw32*)
11213 symcode='[ABCDGISTW]'
11215 hpux*) # Its linker distinguishes data from code symbols
11216 if test "$host_cpu" = ia64; then
11217 symcode='[ABCDEGRST]'
11219 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11220 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'"
11223 if test "$host_cpu" = ia64; then
11224 symcode='[ABCDGIRSTW]'
11225 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11226 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'"
11229 irix* | nonstopux*)
11230 symcode='[BCDEGRST]'
11233 symcode='[BCDEGQRST]'
11243 # Handle CRLF in mingw tool chain
11247 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11251 # If we're using GNU nm, then use its standard symbol codes.
11252 case `$NM -V 2>&1` in
11253 *GNU* | *'with BFD'*)
11254 symcode='[ABCDGIRSTW]' ;;
11257 # Try without a prefix undercore, then with it.
11258 for ac_symprfx in "" "_"; do
11260 # Write the raw and C identifiers.
11261 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11263 # Check to see that the pipe works correctly.
11267 cat > conftest.$ac_ext <<EOF
11272 void nm_test_func(){}
11276 int main(){nm_test_var='a';nm_test_func();return(0);}
11279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11280 (eval $ac_compile) 2>&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; then
11284 # Now try to grab the symbols.
11286 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11287 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } && test -s "$nlist"; then
11291 # Try sorting and uniquifying the output.
11292 if sort "$nlist" | uniq > "$nlist"T; then
11293 mv -f "$nlist"T "$nlist"
11298 # Make sure that we snagged all the symbols we need.
11299 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11300 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11301 cat <<EOF > conftest.$ac_ext
11307 # Now generate the symbol file.
11308 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11310 cat <<EOF >> conftest.$ac_ext
11311 #if defined (__STDC__) && __STDC__
11312 # define lt_ptr_t void *
11314 # define lt_ptr_t char *
11318 /* The mapping between symbol names and symbols. */
11323 lt_preloaded_symbols[] =
11326 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11327 cat <<\EOF >> conftest.$ac_ext
11335 # Now try linking the two files.
11336 mv conftest.$ac_objext conftstm.$ac_objext
11337 lt_save_LIBS="$LIBS"
11338 lt_save_CFLAGS="$CFLAGS"
11339 LIBS="conftstm.$ac_objext"
11340 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11342 (eval $ac_link) 2>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11348 LIBS="$lt_save_LIBS"
11349 CFLAGS="$lt_save_CFLAGS"
11351 echo "cannot find nm_test_func in $nlist" >&5
11354 echo "cannot find nm_test_var in $nlist" >&5
11357 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11360 echo "$progname: failed program was:" >&5
11361 cat conftest.$ac_ext >&5
11363 rm -f conftest* conftst*
11365 # Do not use the global_symbol_pipe unless it works.
11366 if test "$pipe_works" = yes; then
11369 lt_cv_sys_global_symbol_pipe=
11375 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11376 lt_cv_sys_global_symbol_to_cdecl=
11378 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11379 echo "$as_me:$LINENO: result: failed" >&5
11380 echo "${ECHO_T}failed" >&6
11382 echo "$as_me:$LINENO: result: ok" >&5
11383 echo "${ECHO_T}ok" >&6
11386 echo "$as_me:$LINENO: checking for objdir" >&5
11387 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11388 if test "${lt_cv_objdir+set}" = set; then
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11391 rm -f .libs 2>/dev/null
11392 mkdir .libs 2>/dev/null
11393 if test -d .libs; then
11396 # MS-DOS does not allow filenames that begin with a dot.
11399 rmdir .libs 2>/dev/null
11401 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11402 echo "${ECHO_T}$lt_cv_objdir" >&6
11403 objdir=$lt_cv_objdir
11411 # AIX sometimes has problems with the GCC collect2 program. For some
11412 # reason, if we set the COLLECT_NAMES environment variable, the problems
11413 # vanish in a puff of smoke.
11414 if test "X${COLLECT_NAMES+set}" != Xset; then
11416 export COLLECT_NAMES
11421 # Sed substitution that helps us do robust quoting. It backslashifies
11422 # metacharacters that are still active within double-quoted strings.
11423 Xsed='sed -e s/^X//'
11424 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11426 # Same as above, but do not quote variable references.
11427 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11429 # Sed substitution to delay expansion of an escaped shell variable in a
11430 # double_quote_subst'ed string.
11431 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11433 # Sed substitution to avoid accidental globbing in evaled expressions
11434 no_glob_subst='s/\*/\\\*/g'
11439 # Global variables:
11440 default_ofile=mklib
11441 can_build_shared=yes
11443 # All known linkers require a `.a' archive for static linking (except M$VC,
11444 # which needs '.lib').
11446 ltmain="$ac_aux_dir/ltmain.sh"
11447 ofile="$default_ofile"
11448 with_gnu_ld="$lt_cv_prog_gnu_ld"
11450 if test -n "$ac_tool_prefix"; then
11451 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11452 set dummy ${ac_tool_prefix}ar; ac_word=$2
11453 echo "$as_me:$LINENO: checking for $ac_word" >&5
11454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11455 if test "${ac_cv_prog_AR+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 if test -n "$AR"; then
11459 ac_cv_prog_AR="$AR" # Let the user override the test.
11461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462 for as_dir in $PATH
11465 test -z "$as_dir" && as_dir=.
11466 for ac_exec_ext in '' $ac_executable_extensions; do
11467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11468 ac_cv_prog_AR="${ac_tool_prefix}ar"
11469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11478 if test -n "$AR"; then
11479 echo "$as_me:$LINENO: result: $AR" >&5
11480 echo "${ECHO_T}$AR" >&6
11482 echo "$as_me:$LINENO: result: no" >&5
11483 echo "${ECHO_T}no" >&6
11487 if test -z "$ac_cv_prog_AR"; then
11489 # Extract the first word of "ar", so it can be a program name with args.
11490 set dummy ar; ac_word=$2
11491 echo "$as_me:$LINENO: checking for $ac_word" >&5
11492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11493 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 if test -n "$ac_ct_AR"; then
11497 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11500 for as_dir in $PATH
11503 test -z "$as_dir" && as_dir=.
11504 for ac_exec_ext in '' $ac_executable_extensions; do
11505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11506 ac_cv_prog_ac_ct_AR="ar"
11507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11513 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11516 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11517 if test -n "$ac_ct_AR"; then
11518 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11519 echo "${ECHO_T}$ac_ct_AR" >&6
11521 echo "$as_me:$LINENO: result: no" >&5
11522 echo "${ECHO_T}no" >&6
11527 AR="$ac_cv_prog_AR"
11530 if test -n "$ac_tool_prefix"; then
11531 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11532 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11533 echo "$as_me:$LINENO: checking for $ac_word" >&5
11534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11535 if test "${ac_cv_prog_RANLIB+set}" = set; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11538 if test -n "$RANLIB"; then
11539 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11542 for as_dir in $PATH
11545 test -z "$as_dir" && as_dir=.
11546 for ac_exec_ext in '' $ac_executable_extensions; do
11547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11548 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11557 RANLIB=$ac_cv_prog_RANLIB
11558 if test -n "$RANLIB"; then
11559 echo "$as_me:$LINENO: result: $RANLIB" >&5
11560 echo "${ECHO_T}$RANLIB" >&6
11562 echo "$as_me:$LINENO: result: no" >&5
11563 echo "${ECHO_T}no" >&6
11567 if test -z "$ac_cv_prog_RANLIB"; then
11568 ac_ct_RANLIB=$RANLIB
11569 # Extract the first word of "ranlib", so it can be a program name with args.
11570 set dummy ranlib; ac_word=$2
11571 echo "$as_me:$LINENO: checking for $ac_word" >&5
11572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11573 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11576 if test -n "$ac_ct_RANLIB"; then
11577 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580 for as_dir in $PATH
11583 test -z "$as_dir" && as_dir=.
11584 for ac_exec_ext in '' $ac_executable_extensions; do
11585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11586 ac_cv_prog_ac_ct_RANLIB="ranlib"
11587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11593 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11596 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11597 if test -n "$ac_ct_RANLIB"; then
11598 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11599 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11601 echo "$as_me:$LINENO: result: no" >&5
11602 echo "${ECHO_T}no" >&6
11605 RANLIB=$ac_ct_RANLIB
11607 RANLIB="$ac_cv_prog_RANLIB"
11610 if test -n "$ac_tool_prefix"; then
11611 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11612 set dummy ${ac_tool_prefix}strip; ac_word=$2
11613 echo "$as_me:$LINENO: checking for $ac_word" >&5
11614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11615 if test "${ac_cv_prog_STRIP+set}" = set; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 if test -n "$STRIP"; then
11619 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in $PATH
11625 test -z "$as_dir" && as_dir=.
11626 for ac_exec_ext in '' $ac_executable_extensions; do
11627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11628 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11637 STRIP=$ac_cv_prog_STRIP
11638 if test -n "$STRIP"; then
11639 echo "$as_me:$LINENO: result: $STRIP" >&5
11640 echo "${ECHO_T}$STRIP" >&6
11642 echo "$as_me:$LINENO: result: no" >&5
11643 echo "${ECHO_T}no" >&6
11647 if test -z "$ac_cv_prog_STRIP"; then
11649 # Extract the first word of "strip", so it can be a program name with args.
11650 set dummy strip; ac_word=$2
11651 echo "$as_me:$LINENO: checking for $ac_word" >&5
11652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11653 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11656 if test -n "$ac_ct_STRIP"; then
11657 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660 for as_dir in $PATH
11663 test -z "$as_dir" && as_dir=.
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11666 ac_cv_prog_ac_ct_STRIP="strip"
11667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11673 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11676 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11677 if test -n "$ac_ct_STRIP"; then
11678 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11679 echo "${ECHO_T}$ac_ct_STRIP" >&6
11681 echo "$as_me:$LINENO: result: no" >&5
11682 echo "${ECHO_T}no" >&6
11687 STRIP="$ac_cv_prog_STRIP"
11692 old_CFLAGS="$CFLAGS"
11694 # Set sane defaults for various variables
11695 test -z "$AR" && AR=ar
11696 test -z "$AR_FLAGS" && AR_FLAGS=cru
11697 test -z "$AS" && AS=as
11698 test -z "$CC" && CC=cc
11699 test -z "$LTCC" && LTCC=$CC
11700 test -z "$DLLTOOL" && DLLTOOL=dlltool
11701 test -z "$LD" && LD=ld
11702 test -z "$LN_S" && LN_S="ln -s"
11703 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11704 test -z "$NM" && NM=nm
11705 test -z "$SED" && SED=sed
11706 test -z "$OBJDUMP" && OBJDUMP=objdump
11707 test -z "$RANLIB" && RANLIB=:
11708 test -z "$STRIP" && STRIP=:
11709 test -z "$ac_objext" && ac_objext=o
11711 # Determine commands to create old-style static archives.
11712 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11713 old_postinstall_cmds='chmod 644 $oldlib'
11714 old_postuninstall_cmds=
11716 if test -n "$RANLIB"; then
11719 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11722 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11725 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11728 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11730 # Only perform the check for file, if the check method requires it
11731 case $deplibs_check_method in
11733 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11734 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11735 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11736 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11741 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11744 lt_save_MAGIC_CMD="$MAGIC_CMD"
11745 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11746 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11747 for ac_dir in $ac_dummy; do
11749 test -z "$ac_dir" && ac_dir=.
11750 if test -f $ac_dir/${ac_tool_prefix}file; then
11751 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11752 if test -n "$file_magic_test_file"; then
11753 case $deplibs_check_method in
11755 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11756 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11757 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11758 $EGREP "$file_magic_regex" > /dev/null; then
11763 *** Warning: the command libtool uses to detect shared libraries,
11764 *** $file_magic_cmd, produces output that libtool cannot recognize.
11765 *** The result is that libtool may fail to recognize shared libraries
11766 *** as such. This will affect the creation of libtool libraries that
11767 *** depend on shared libraries, but programs linked with such libtool
11768 *** libraries will work regardless of this problem. Nevertheless, you
11769 *** may want to report the problem to your system manager and/or to
11770 *** bug-libtool@gnu.org
11780 MAGIC_CMD="$lt_save_MAGIC_CMD"
11785 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11786 if test -n "$MAGIC_CMD"; then
11787 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11788 echo "${ECHO_T}$MAGIC_CMD" >&6
11790 echo "$as_me:$LINENO: result: no" >&5
11791 echo "${ECHO_T}no" >&6
11794 if test -z "$lt_cv_path_MAGIC_CMD"; then
11795 if test -n "$ac_tool_prefix"; then
11796 echo "$as_me:$LINENO: checking for file" >&5
11797 echo $ECHO_N "checking for file... $ECHO_C" >&6
11798 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11806 lt_save_MAGIC_CMD="$MAGIC_CMD"
11807 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11808 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11809 for ac_dir in $ac_dummy; do
11811 test -z "$ac_dir" && ac_dir=.
11812 if test -f $ac_dir/file; then
11813 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11814 if test -n "$file_magic_test_file"; then
11815 case $deplibs_check_method in
11817 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11818 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11819 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11820 $EGREP "$file_magic_regex" > /dev/null; then
11825 *** Warning: the command libtool uses to detect shared libraries,
11826 *** $file_magic_cmd, produces output that libtool cannot recognize.
11827 *** The result is that libtool may fail to recognize shared libraries
11828 *** as such. This will affect the creation of libtool libraries that
11829 *** depend on shared libraries, but programs linked with such libtool
11830 *** libraries will work regardless of this problem. Nevertheless, you
11831 *** may want to report the problem to your system manager and/or to
11832 *** bug-libtool@gnu.org
11842 MAGIC_CMD="$lt_save_MAGIC_CMD"
11847 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11848 if test -n "$MAGIC_CMD"; then
11849 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11850 echo "${ECHO_T}$MAGIC_CMD" >&6
11852 echo "$as_me:$LINENO: result: no" >&5
11853 echo "${ECHO_T}no" >&6
11866 enable_win32_dll=no
11868 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11869 if test "${enable_libtool_lock+set}" = set; then
11870 enableval="$enable_libtool_lock"
11873 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11876 # Check whether --with-pic or --without-pic was given.
11877 if test "${with_pic+set}" = set; then
11878 withval="$with_pic"
11879 pic_mode="$withval"
11883 test -z "$pic_mode" && pic_mode=default
11885 # Use C for the default configuration in the libtool script
11889 ac_cpp='$CPP $CPPFLAGS'
11890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11895 # Source file extension for C test sources.
11898 # Object file extension for compiled C test sources.
11902 # Code to be used in simple compile tests
11903 lt_simple_compile_test_code="int some_variable = 0;\n"
11905 # Code to be used in simple link tests
11906 lt_simple_link_test_code='int main(){return(0);}\n'
11909 # If no C compiler was specified, use CC.
11912 # Allow CC to be a program name with arguments.
11917 # Check for any special shared library compilation flags.
11920 if test "$GCC" = no; then
11923 lt_prog_cc_shlib='-belf'
11927 if test -n "$lt_prog_cc_shlib"; then
11928 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11929 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11930 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11932 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11933 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11934 lt_cv_prog_cc_can_build_shared=no
11940 # Check to make sure the static flag actually works.
11942 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11943 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11944 if test "${lt_prog_compiler_static_works+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11947 lt_prog_compiler_static_works=no
11948 save_LDFLAGS="$LDFLAGS"
11949 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11950 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11951 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11952 # The compiler can only warn and ignore the option if not recognized
11953 # So say no if there are warnings
11954 if test -s conftest.err; then
11955 # Append any errors to the config.log.
11956 cat conftest.err 1>&5
11958 lt_prog_compiler_static_works=yes
11962 LDFLAGS="$save_LDFLAGS"
11965 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11966 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11968 if test x"$lt_prog_compiler_static_works" = xyes; then
11971 lt_prog_compiler_static=
11977 lt_prog_compiler_no_builtin_flag=
11979 if test "$GCC" = yes; then
11980 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11983 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11984 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11985 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11988 lt_cv_prog_compiler_rtti_exceptions=no
11989 ac_outfile=conftest.$ac_objext
11990 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11991 lt_compiler_flag="-fno-rtti -fno-exceptions"
11992 # Insert the option either (1) after the last *FLAGS variable, or
11993 # (2) before a word containing "conftest.", or (3) at the end.
11994 # Note that $ac_compile itself does not contain backslashes and begins
11995 # with a dollar sign (not a hyphen), so the echo should work correctly.
11996 # The option is referenced via a variable to avoid confusing sed.
11997 lt_compile=`echo "$ac_compile" | $SED \
11998 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12000 -e 's:$: $lt_compiler_flag:'`
12001 (eval echo "\"\$as_me:12001: $lt_compile\"" >&5)
12002 (eval "$lt_compile" 2>conftest.err)
12004 cat conftest.err >&5
12005 echo "$as_me:12005: \$? = $ac_status" >&5
12006 if (exit $ac_status) && test -s "$ac_outfile"; then
12007 # The compiler can only warn and ignore the option if not recognized
12008 # So say no if there are warnings
12009 if test ! -s conftest.err; then
12010 lt_cv_prog_compiler_rtti_exceptions=yes
12016 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12017 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12019 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12020 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12027 lt_prog_compiler_wl=
12028 lt_prog_compiler_pic=
12029 lt_prog_compiler_static=
12031 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12032 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12034 if test "$GCC" = yes; then
12035 lt_prog_compiler_wl='-Wl,'
12036 lt_prog_compiler_static='-static'
12040 # All AIX code is PIC.
12041 if test "$host_cpu" = ia64; then
12042 # AIX 5 now supports IA64 processor
12043 lt_prog_compiler_static='-Bstatic'
12048 # FIXME: we need at least 68020 code to build shared libraries, but
12049 # adding the `-m68020' flag to GCC prevents building anything better,
12051 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12054 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12055 # PIC is the default for these OSes.
12058 mingw* | pw32* | os2*)
12059 # This hack is so that the source file can tell whether it is being
12060 # built for inclusion in a dll (and should export symbols for example).
12061 lt_prog_compiler_pic='-DDLL_EXPORT'
12064 darwin* | rhapsody*)
12065 # PIC is the default on this platform
12066 # Common symbols not allowed in MH_DYLIB files
12067 lt_prog_compiler_pic='-fno-common'
12071 # Just because we use GCC doesn't mean we suddenly get shared libraries
12072 # on systems that don't support them.
12073 lt_prog_compiler_can_build_shared=no
12078 if test -d /usr/nec; then
12079 lt_prog_compiler_pic=-Kconform_pic
12084 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12085 # not for PA HP-UX.
12086 case "$host_cpu" in
12091 lt_prog_compiler_pic='-fPIC'
12097 lt_prog_compiler_pic='-fPIC'
12101 # PORTME Check for flag to pass linker flags through the system compiler.
12104 lt_prog_compiler_wl='-Wl,'
12105 if test "$host_cpu" = ia64; then
12106 # AIX 5 now supports IA64 processor
12107 lt_prog_compiler_static='-Bstatic'
12109 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12113 # PIC is the default on this platform
12114 # Common symbols not allowed in MH_DYLIB files
12115 case "$cc_basename" in
12117 lt_prog_compiler_pic='-qnocommon'
12118 lt_prog_compiler_wl='-Wl,'
12123 mingw* | pw32* | os2*)
12124 # This hack is so that the source file can tell whether it is being
12125 # built for inclusion in a dll (and should export symbols for example).
12126 lt_prog_compiler_pic='-DDLL_EXPORT'
12129 hpux9* | hpux10* | hpux11*)
12130 lt_prog_compiler_wl='-Wl,'
12131 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12132 # not for PA HP-UX.
12133 case "$host_cpu" in
12138 lt_prog_compiler_pic='+Z'
12141 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12142 lt_prog_compiler_static='${wl}-a ${wl}archive'
12145 irix5* | irix6* | nonstopux*)
12146 lt_prog_compiler_wl='-Wl,'
12147 # PIC (with -KPIC) is the default.
12148 lt_prog_compiler_static='-non_shared'
12152 lt_prog_compiler_pic='-KPIC'
12153 lt_prog_compiler_static='-Bstatic'
12159 lt_prog_compiler_wl='-Wl,'
12160 lt_prog_compiler_pic='-KPIC'
12161 lt_prog_compiler_static='-static'
12164 lt_prog_compiler_wl='-Wl,'
12165 # All Alpha code is PIC.
12166 lt_prog_compiler_static='-non_shared'
12171 osf3* | osf4* | osf5*)
12172 lt_prog_compiler_wl='-Wl,'
12173 # All OSF/1 code is PIC.
12174 lt_prog_compiler_static='-non_shared'
12178 lt_prog_compiler_pic='-Kpic'
12179 lt_prog_compiler_static='-dn'
12183 lt_prog_compiler_wl='-Wl,'
12184 lt_prog_compiler_pic='-KPIC'
12185 lt_prog_compiler_static='-Bstatic'
12189 lt_prog_compiler_wl='-Qoption ld '
12190 lt_prog_compiler_pic='-PIC'
12191 lt_prog_compiler_static='-Bstatic'
12194 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12195 lt_prog_compiler_wl='-Wl,'
12196 lt_prog_compiler_pic='-KPIC'
12197 lt_prog_compiler_static='-Bstatic'
12201 if test -d /usr/nec ;then
12202 lt_prog_compiler_pic='-Kconform_pic'
12203 lt_prog_compiler_static='-Bstatic'
12208 lt_prog_compiler_pic='-pic'
12209 lt_prog_compiler_static='-Bstatic'
12213 lt_prog_compiler_can_build_shared=no
12218 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12219 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12222 # Check to make sure the PIC flag actually works.
12224 if test -n "$lt_prog_compiler_pic"; then
12226 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12227 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12228 if test "${lt_prog_compiler_pic_works+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12231 lt_prog_compiler_pic_works=no
12232 ac_outfile=conftest.$ac_objext
12233 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12234 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12235 # Insert the option either (1) after the last *FLAGS variable, or
12236 # (2) before a word containing "conftest.", or (3) at the end.
12237 # Note that $ac_compile itself does not contain backslashes and begins
12238 # with a dollar sign (not a hyphen), so the echo should work correctly.
12239 # The option is referenced via a variable to avoid confusing sed.
12240 lt_compile=`echo "$ac_compile" | $SED \
12241 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12243 -e 's:$: $lt_compiler_flag:'`
12244 (eval echo "\"\$as_me:12244: $lt_compile\"" >&5)
12245 (eval "$lt_compile" 2>conftest.err)
12247 cat conftest.err >&5
12248 echo "$as_me:12248: \$? = $ac_status" >&5
12249 if (exit $ac_status) && test -s "$ac_outfile"; then
12250 # The compiler can only warn and ignore the option if not recognized
12251 # So say no if there are warnings
12252 if test ! -s conftest.err; then
12253 lt_prog_compiler_pic_works=yes
12259 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12260 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12262 if test x"$lt_prog_compiler_pic_works" = xyes; then
12263 case $lt_prog_compiler_pic in
12265 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12268 lt_prog_compiler_pic=
12269 lt_prog_compiler_can_build_shared=no
12274 # For platforms which do not support PIC, -DPIC is meaningless:
12276 lt_prog_compiler_pic=
12279 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12283 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12284 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12285 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12288 lt_cv_prog_compiler_c_o=no
12289 $rm -r conftest 2>/dev/null
12293 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12295 lt_compiler_flag="-o out/conftest2.$ac_objext"
12296 # Insert the option either (1) after the last *FLAGS variable, or
12297 # (2) before a word containing "conftest.", or (3) at the end.
12298 # Note that $ac_compile itself does not contain backslashes and begins
12299 # with a dollar sign (not a hyphen), so the echo should work correctly.
12300 lt_compile=`echo "$ac_compile" | $SED \
12301 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12303 -e 's:$: $lt_compiler_flag:'`
12304 (eval echo "\"\$as_me:12304: $lt_compile\"" >&5)
12305 (eval "$lt_compile" 2>out/conftest.err)
12307 cat out/conftest.err >&5
12308 echo "$as_me:12308: \$? = $ac_status" >&5
12309 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12311 # The compiler can only warn and ignore the option if not recognized
12312 # So say no if there are warnings
12313 if test ! -s out/conftest.err; then
12314 lt_cv_prog_compiler_c_o=yes
12319 # SGI C++ compiler will create directory out/ii_files/ for
12320 # template instantiation
12321 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12322 $rm out/* && rmdir out
12328 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12329 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12332 hard_links="nottested"
12333 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12334 # do not overwrite the value of need_locks provided by the user
12335 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12336 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12339 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12341 ln conftest.a conftest.b 2>&5 || hard_links=no
12342 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12343 echo "$as_me:$LINENO: result: $hard_links" >&5
12344 echo "${ECHO_T}$hard_links" >&6
12345 if test "$hard_links" = no; then
12346 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12347 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12354 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12355 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12358 allow_undefined_flag=
12359 enable_shared_with_static_runtimes=no
12361 archive_expsym_cmds=
12362 old_archive_From_new_cmds=
12363 old_archive_from_expsyms_cmds=
12364 export_dynamic_flag_spec=
12365 whole_archive_flag_spec=
12366 thread_safe_flag_spec=
12367 hardcode_libdir_flag_spec=
12368 hardcode_libdir_flag_spec_ld=
12369 hardcode_libdir_separator=
12371 hardcode_minus_L=no
12372 hardcode_shlibpath_var=unsupported
12373 link_all_deplibs=unknown
12374 hardcode_automatic=no
12376 module_expsym_cmds=
12377 always_export_symbols=no
12378 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12379 # include_expsyms should be a list of space-separated symbols to be *always*
12380 # included in the symbol list
12382 # exclude_expsyms can be an extended regexp of symbols to exclude
12383 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12384 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12385 # as well as any symbol that contains `d'.
12386 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12387 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12388 # platforms (ab)use it in PIC code, but their linkers get confused if
12389 # the symbol is explicitly referenced. Since portable code cannot
12390 # rely on this symbol name, it's probably fine to never include it in
12391 # preloaded symbol tables.
12392 extract_expsyms_cmds=
12395 cygwin* | mingw* | pw32*)
12396 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12397 # When not using gcc, we currently assume that we are using
12398 # Microsoft Visual C++.
12399 if test "$GCC" != yes; then
12409 if test "$with_gnu_ld" = yes; then
12410 # If archive_cmds runs LD, not CC, wlarc should be empty
12413 # See if GNU ld supports shared libraries.
12415 aix3* | aix4* | aix5*)
12416 # On AIX/PPC, the GNU linker is very broken
12417 if test "$host_cpu" != ia64; then
12421 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12422 *** to be unable to reliably create shared libraries on AIX.
12423 *** Therefore, libtool is disabling shared libraries support. If you
12424 *** really care for shared libraries, you may want to modify your PATH
12425 *** so that a non-GNU linker is found, and then restart.
12432 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)'
12433 hardcode_libdir_flag_spec='-L$libdir'
12434 hardcode_minus_L=yes
12436 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12437 # that the semantics of dynamic libraries on AmigaOS, at least up
12438 # to version 4, is to share data among multiple programs linked
12439 # with the same dynamic library. Since this doesn't match the
12440 # behavior of shared libraries on other platforms, we can't use
12446 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12447 allow_undefined_flag=unsupported
12448 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12449 # support --undefined. This deserves some investigation. FIXME
12450 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12456 cygwin* | mingw* | pw32*)
12457 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12458 # as there is no search path for DLLs.
12459 hardcode_libdir_flag_spec='-L$libdir'
12460 allow_undefined_flag=unsupported
12461 always_export_symbols=no
12462 enable_shared_with_static_runtimes=yes
12463 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12465 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12467 # If the export-symbols file already is a .def file (1st line
12468 # is EXPORTS), use it as is; otherwise, prepend...
12469 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12470 cp $export_symbols $output_objdir/$soname.def;
12472 echo EXPORTS > $output_objdir/$soname.def;
12473 cat $export_symbols >> $output_objdir/$soname.def;
12475 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12482 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12483 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12487 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12492 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12496 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12497 *** create shared libraries on Solaris systems. Therefore, libtool
12498 *** is disabling shared libraries support. We urge you to upgrade GNU
12499 *** binutils to release 2.9.1 or newer. Another option is to modify
12500 *** your PATH or compiler configuration so that the native linker is
12501 *** used, and then restart.
12504 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12506 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12513 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12515 hardcode_direct=yes
12516 hardcode_shlibpath_var=no
12520 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12521 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12522 archive_cmds="$tmp_archive_cmds"
12523 supports_anon_versioning=no
12524 case `$LD -v 2>/dev/null` in
12525 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12526 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12527 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12528 *\ 2.11.*) ;; # other 2.11 versions
12529 *) supports_anon_versioning=yes ;;
12531 if test $supports_anon_versioning = yes; then
12532 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12533 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12534 $echo "local: *; };" >> $output_objdir/$libname.ver~
12535 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12537 archive_expsym_cmds="$tmp_archive_cmds"
12545 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12547 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12554 if test "$ld_shlibs" = yes; then
12555 runpath_var=LD_RUN_PATH
12556 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12557 export_dynamic_flag_spec='${wl}--export-dynamic'
12558 # ancient GNU ld didn't support --whole-archive et. al.
12559 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12560 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12562 whole_archive_flag_spec=
12566 # PORTME fill in a description of your system's linker (not GNU ld)
12569 allow_undefined_flag=unsupported
12570 always_export_symbols=yes
12571 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'
12572 # Note: this linker hardcodes the directories in LIBPATH if there
12573 # are no directories specified by -L.
12574 hardcode_minus_L=yes
12575 if test "$GCC" = yes && test -z "$link_static_flag"; then
12576 # Neither direct hardcoding nor static linking is supported with a
12578 hardcode_direct=unsupported
12583 if test "$host_cpu" = ia64; then
12584 # On IA64, the linker does run time linking by default, so we don't
12585 # have to do anything special.
12586 aix_use_runtimelinking=no
12587 exp_sym_flag='-Bexport'
12590 # If we're using GNU nm, then we don't want the "-C" option.
12591 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12592 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12593 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'
12595 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'
12597 aix_use_runtimelinking=no
12599 # Test if we are trying to use run time linking or normal
12600 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12601 # need to do runtime linking.
12602 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12603 for ld_flag in $LDFLAGS; do
12604 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12605 aix_use_runtimelinking=yes
12611 exp_sym_flag='-bexport'
12612 no_entry_flag='-bnoentry'
12615 # When large executables or shared objects are built, AIX ld can
12616 # have problems creating the table of contents. If linking a library
12617 # or program results in "error TOC overflow" add -mminimal-toc to
12618 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12619 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12622 hardcode_direct=yes
12623 hardcode_libdir_separator=':'
12624 link_all_deplibs=yes
12626 if test "$GCC" = yes; then
12627 case $host_os in aix4.012|aix4.012.*)
12628 # We only want to do this on AIX 4.2 and lower, the check
12629 # below for broken collect2 doesn't work under 4.3+
12630 collect2name=`${CC} -print-prog-name=collect2`
12631 if test -f "$collect2name" && \
12632 strings "$collect2name" | grep resolve_lib_name >/dev/null
12634 # We have reworked collect2
12635 hardcode_direct=yes
12637 # We have old collect2
12638 hardcode_direct=unsupported
12639 # It fails to find uninstalled libraries when the uninstalled
12640 # path is not listed in the libpath. Setting hardcode_minus_L
12641 # to unsupported forces relinking
12642 hardcode_minus_L=yes
12643 hardcode_libdir_flag_spec='-L$libdir'
12644 hardcode_libdir_separator=
12647 shared_flag='-shared'
12650 if test "$host_cpu" = ia64; then
12651 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12652 # chokes on -Wl,-G. The following line is correct:
12655 if test "$aix_use_runtimelinking" = yes; then
12656 shared_flag='${wl}-G'
12658 shared_flag='${wl}-bM:SRE'
12663 # It seems that -bexpall does not export symbols beginning with
12664 # underscore (_), so it is better to generate a list of symbols to export.
12665 always_export_symbols=yes
12666 if test "$aix_use_runtimelinking" = yes; then
12667 # Warning - without using the other runtime loading flags (-brtl),
12668 # -berok will link without error, but may produce a broken library.
12669 allow_undefined_flag='-berok'
12670 # Determine the default libpath from the value encoded in an empty executable.
12671 cat >conftest.$ac_ext <<_ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12686 rm -f conftest.$ac_objext conftest$ac_exeext
12687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12688 (eval $ac_link) 2>conftest.er1
12690 grep -v '^ *+' conftest.er1 >conftest.err
12692 cat conftest.err >&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } &&
12695 { ac_try='test -z "$ac_c_werror_flag"
12696 || test ! -s conftest.err'
12697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12698 (eval $ac_try) 2>&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; } &&
12702 { ac_try='test -s conftest$ac_exeext'
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; }; then
12709 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12711 # Check for a 64-bit object if we didn't find anything.
12712 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; }
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12719 rm -f conftest.err conftest.$ac_objext \
12720 conftest$ac_exeext conftest.$ac_ext
12721 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12723 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12724 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"
12726 if test "$host_cpu" = ia64; then
12727 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12728 allow_undefined_flag="-z nodefs"
12729 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"
12731 # Determine the default libpath from the value encoded in an empty executable.
12732 cat >conftest.$ac_ext <<_ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h. */
12747 rm -f conftest.$ac_objext conftest$ac_exeext
12748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12749 (eval $ac_link) 2>conftest.er1
12751 grep -v '^ *+' conftest.er1 >conftest.err
12753 cat conftest.err >&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } &&
12756 { ac_try='test -z "$ac_c_werror_flag"
12757 || test ! -s conftest.err'
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; } &&
12763 { ac_try='test -s conftest$ac_exeext'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; }; then
12770 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12772 # Check for a 64-bit object if we didn't find anything.
12773 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; }
12776 echo "$as_me: failed program was:" >&5
12777 sed 's/^/| /' conftest.$ac_ext >&5
12780 rm -f conftest.err conftest.$ac_objext \
12781 conftest$ac_exeext conftest.$ac_ext
12782 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12784 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12785 # Warning - without using the other run time loading flags,
12786 # -berok will link without error, but may produce a broken library.
12787 no_undefined_flag=' ${wl}-bernotok'
12788 allow_undefined_flag=' ${wl}-berok'
12789 # -bexpall does not export symbols beginning with underscore (_)
12790 always_export_symbols=yes
12791 # Exported symbols can be pulled into shared objects from archives
12792 whole_archive_flag_spec=' '
12793 archive_cmds_need_lc=yes
12794 # This is similar to how AIX traditionally builds it's shared libraries.
12795 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'
12801 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)'
12802 hardcode_libdir_flag_spec='-L$libdir'
12803 hardcode_minus_L=yes
12804 # see comment about different semantics on the GNU ld section
12809 export_dynamic_flag_spec=-rdynamic
12812 cygwin* | mingw* | pw32*)
12813 # When not using gcc, we currently assume that we are using
12814 # Microsoft Visual C++.
12815 # hardcode_libdir_flag_spec is actually meaningless, as there is
12816 # no search path for DLLs.
12817 hardcode_libdir_flag_spec=' '
12818 allow_undefined_flag=unsupported
12819 # Tell ltmain to make .lib files, not .a files.
12821 # Tell ltmain to make .dll files, not .so files.
12823 # FIXME: Setting linknames here is a bad hack.
12824 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12825 # The linker will automatically build a .lib file if we build a DLL.
12826 old_archive_From_new_cmds='true'
12827 # FIXME: Should let the user specify the lib program.
12828 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12829 fix_srcfile_path='`cygpath -w "$srcfile"`'
12830 enable_shared_with_static_runtimes=yes
12833 darwin* | rhapsody*)
12835 rhapsody* | darwin1.[012])
12836 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12839 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12840 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12842 case ${MACOSX_DEPLOYMENT_TARGET} in
12844 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12847 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12853 archive_cmds_need_lc=no
12855 hardcode_automatic=yes
12856 hardcode_shlibpath_var=unsupported
12857 whole_archive_flag_spec=''
12858 link_all_deplibs=yes
12859 if test "$GCC" = yes ; then
12860 output_verbose_link_cmd='echo'
12861 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12862 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12863 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12864 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}'
12865 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}'
12867 case "$cc_basename" in
12869 output_verbose_link_cmd='echo'
12870 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12871 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12872 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12873 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}'
12874 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}'
12884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12885 hardcode_libdir_flag_spec='-L$libdir'
12886 hardcode_shlibpath_var=no
12893 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12894 # support. Future versions do this automatically, but an explicit c++rt0.o
12895 # does not break anything, and helps significantly (at the cost of a little
12898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12899 hardcode_libdir_flag_spec='-R$libdir'
12900 hardcode_direct=yes
12901 hardcode_shlibpath_var=no
12904 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12906 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12907 hardcode_direct=yes
12908 hardcode_minus_L=yes
12909 hardcode_shlibpath_var=no
12912 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12913 freebsd* | kfreebsd*-gnu)
12914 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12915 hardcode_libdir_flag_spec='-R$libdir'
12916 hardcode_direct=yes
12917 hardcode_shlibpath_var=no
12921 if test "$GCC" = yes; then
12922 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'
12924 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'
12926 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12927 hardcode_libdir_separator=:
12928 hardcode_direct=yes
12930 # hardcode_minus_L: Not really in the search PATH,
12931 # but as the default location of the library.
12932 hardcode_minus_L=yes
12933 export_dynamic_flag_spec='${wl}-E'
12937 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12938 case "$host_cpu" in
12940 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12943 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12947 case "$host_cpu" in
12949 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12952 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12956 if test "$with_gnu_ld" = no; then
12957 case "$host_cpu" in
12959 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12960 hardcode_libdir_flag_spec_ld='+b $libdir'
12961 hardcode_libdir_separator=:
12963 hardcode_shlibpath_var=no
12966 hardcode_libdir_flag_spec='-L$libdir'
12968 hardcode_shlibpath_var=no
12970 # hardcode_minus_L: Not really in the search PATH,
12971 # but as the default location of the library.
12972 hardcode_minus_L=yes
12975 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12976 hardcode_libdir_separator=:
12977 hardcode_direct=yes
12978 export_dynamic_flag_spec='${wl}-E'
12980 # hardcode_minus_L: Not really in the search PATH,
12981 # but as the default location of the library.
12982 hardcode_minus_L=yes
12988 irix5* | irix6* | nonstopux*)
12989 if test "$GCC" = yes; then
12990 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'
12992 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'
12993 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12995 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12996 hardcode_libdir_separator=:
12997 link_all_deplibs=yes
13001 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13002 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13004 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13006 hardcode_libdir_flag_spec='-R$libdir'
13007 hardcode_direct=yes
13008 hardcode_shlibpath_var=no
13012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13013 hardcode_direct=yes
13014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13015 hardcode_libdir_separator=:
13016 hardcode_shlibpath_var=no
13020 hardcode_direct=yes
13021 hardcode_shlibpath_var=no
13022 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13023 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13024 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13025 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13026 export_dynamic_flag_spec='${wl}-E'
13029 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13031 hardcode_libdir_flag_spec='-R$libdir'
13034 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13035 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13042 hardcode_libdir_flag_spec='-L$libdir'
13043 hardcode_minus_L=yes
13044 allow_undefined_flag=unsupported
13045 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'
13046 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13050 if test "$GCC" = yes; then
13051 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13052 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'
13054 allow_undefined_flag=' -expect_unresolved \*'
13055 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'
13057 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13058 hardcode_libdir_separator=:
13061 osf4* | osf5*) # as osf3* with the addition of -msym flag
13062 if test "$GCC" = yes; then
13063 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13064 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'
13065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13067 allow_undefined_flag=' -expect_unresolved \*'
13068 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'
13069 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13070 $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'
13072 # Both c and cxx compiler support -rpath directly
13073 hardcode_libdir_flag_spec='-rpath $libdir'
13075 hardcode_libdir_separator=:
13079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13080 hardcode_shlibpath_var=no
13081 export_dynamic_flag_spec='${wl}-Bexport'
13082 runpath_var=LD_RUN_PATH
13083 hardcode_runpath_var=yes
13087 no_undefined_flag=' -z text'
13088 if test "$GCC" = yes; then
13089 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13090 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13091 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13093 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13094 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13095 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13097 hardcode_libdir_flag_spec='-R$libdir'
13098 hardcode_shlibpath_var=no
13100 solaris2.[0-5] | solaris2.[0-5].*) ;;
13101 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13102 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13104 link_all_deplibs=yes
13108 if test "x$host_vendor" = xsequent; then
13109 # Use $CC to link under sequent, because it throws in some extra .o
13110 # files that make .init and .fini sections work.
13111 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13113 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13115 hardcode_libdir_flag_spec='-L$libdir'
13116 hardcode_direct=yes
13117 hardcode_minus_L=yes
13118 hardcode_shlibpath_var=no
13122 case $host_vendor in
13124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13125 hardcode_direct=yes # is this really true???
13128 ## LD is ld it makes a PLAMLIB
13129 ## CC just makes a GrossModule.
13130 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13131 reload_cmds='$CC -r -o $output$reload_objs'
13135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13136 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13139 runpath_var='LD_RUN_PATH'
13140 hardcode_shlibpath_var=no
13144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13145 hardcode_shlibpath_var=no
13146 export_dynamic_flag_spec='-Bexport'
13150 if test -d /usr/nec; then
13151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13152 hardcode_shlibpath_var=no
13153 runpath_var=LD_RUN_PATH
13154 hardcode_runpath_var=yes
13160 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13161 hardcode_direct=yes
13162 hardcode_minus_L=no
13163 hardcode_shlibpath_var=no
13164 hardcode_runpath_var=yes
13165 runpath_var=LD_RUN_PATH
13168 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13169 no_undefined_flag='${wl}-z ${wl}text'
13170 if test "$GCC" = yes; then
13171 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13173 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13175 runpath_var='LD_RUN_PATH'
13176 hardcode_shlibpath_var=no
13180 no_undefined_flag=' -z text'
13181 # $CC -shared without GNU ld will not create a library from C++
13182 # object files and a static libstdc++, better avoid it by now
13183 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13184 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13185 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13186 hardcode_libdir_flag_spec=
13187 hardcode_shlibpath_var=no
13188 runpath_var='LD_RUN_PATH'
13192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13193 hardcode_libdir_flag_spec='-L$libdir'
13194 hardcode_shlibpath_var=no
13203 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13204 echo "${ECHO_T}$ld_shlibs" >&6
13205 test "$ld_shlibs" = no && can_build_shared=no
13207 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13208 if test "$GCC" = yes; then
13209 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13213 # Do we need to explicitly link libc?
13215 case "x$archive_cmds_need_lc" in
13217 # Assume -lc should be added
13218 archive_cmds_need_lc=yes
13220 if test "$enable_shared" = yes && test "$GCC" = yes; then
13221 case $archive_cmds in
13223 # FIXME: we may have to deal with multi-command sequences.
13226 # Test whether the compiler implicitly links with -lc since on some
13227 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13228 # to ld, don't add -lc before -lgcc.
13229 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13230 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13232 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13235 (eval $ac_compile) 2>&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); } 2>conftest.err; then
13241 libobjs=conftest.$ac_objext
13243 wl=$lt_prog_compiler_wl
13249 lt_save_allow_undefined_flag=$allow_undefined_flag
13250 allow_undefined_flag=
13251 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13252 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }
13257 archive_cmds_need_lc=no
13259 archive_cmds_need_lc=yes
13261 allow_undefined_flag=$lt_save_allow_undefined_flag
13263 cat conftest.err 1>&5
13266 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13267 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13274 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13275 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13276 library_names_spec=
13277 libname_spec='lib$name'
13281 postuninstall_cmds=
13285 shlibpath_overrides_runpath=unknown
13287 dynamic_linker="$host_os ld.so"
13288 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13289 if test "$GCC" = yes; then
13290 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13291 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13292 # if the path contains ";" then we assume it to be the separator
13293 # otherwise default to the standard path separator (i.e. ":") - it is
13294 # assumed that no part of a normal pathname contains ";" but that should
13295 # okay in the real world where ";" in dirpaths is itself problematic.
13296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13301 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13303 need_lib_prefix=unknown
13304 hardcode_into_libs=no
13306 # when you set need_version to no, make sure it does not cause -set_version
13307 # flags to be left without arguments
13308 need_version=unknown
13313 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13314 shlibpath_var=LIBPATH
13316 # AIX 3 has no versioning support, so we append a major version to the name.
13317 soname_spec='${libname}${release}${shared_ext}$major'
13324 hardcode_into_libs=yes
13325 if test "$host_cpu" = ia64; then
13326 # AIX 5 supports IA64
13327 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13328 shlibpath_var=LD_LIBRARY_PATH
13330 # With GCC up to 2.95.x, collect2 would create an import file
13331 # for dependence libraries. The import file would start with
13332 # the line `#! .'. This would cause the generated library to
13333 # depend on `.', always an invalid library. This was fixed in
13334 # development snapshots of GCC prior to 3.0.
13336 aix4 | aix4.[01] | aix4.[01].*)
13337 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13339 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13342 can_build_shared=no
13346 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13347 # soname into executable. Probably we can add versioning support to
13348 # collect2, so additional links can be useful in future.
13349 if test "$aix_use_runtimelinking" = yes; then
13350 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13351 # instead of lib<name>.a to let people know that these are not
13352 # typical AIX shared libraries.
13353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13355 # We preserve .a as extension for shared libraries through AIX4.2
13356 # and later when we are not doing run time linking.
13357 library_names_spec='${libname}${release}.a $libname.a'
13358 soname_spec='${libname}${release}${shared_ext}$major'
13360 shlibpath_var=LIBPATH
13365 library_names_spec='$libname.ixlibrary $libname.a'
13366 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13367 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'
13371 library_names_spec='${libname}${shared_ext}'
13372 dynamic_linker="$host_os ld.so"
13373 shlibpath_var=LIBRARY_PATH
13379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13380 soname_spec='${libname}${release}${shared_ext}$major'
13381 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13382 shlibpath_var=LD_LIBRARY_PATH
13383 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13384 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13385 # the default ld.so.conf also contains /usr/contrib/lib and
13386 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13387 # libtool to hard-code these into programs
13390 cygwin* | mingw* | pw32*)
13391 version_type=windows
13396 case $GCC,$host_os in
13397 yes,cygwin* | yes,mingw* | yes,pw32*)
13398 library_names_spec='$libname.dll.a'
13399 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13400 postinstall_cmds='base_file=`basename \${file}`~
13401 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13402 dldir=$destdir/`dirname \$dlpath`~
13403 test -d \$dldir || mkdir -p \$dldir~
13404 $install_prog $dir/$dlname \$dldir/$dlname'
13405 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13406 dlpath=$dir/\$dldll~
13408 shlibpath_overrides_runpath=yes
13412 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13413 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13414 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13417 # MinGW DLLs use traditional 'lib' prefix
13418 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13419 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13420 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13421 # It is most probably a Windows format PATH printed by
13422 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13423 # path with ; separators, and with drive letters. We can handle the
13424 # drive letters (cygwin fileutils understands them), so leave them,
13425 # especially as we might pass files found there to a mingw objdump,
13426 # which wouldn't understand a cygwinified path. Ahh.
13427 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13429 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13433 # pw32 DLLs use 'pw' prefix rather than 'lib'
13434 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13440 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13443 dynamic_linker='Win32 ld.exe'
13444 # FIXME: first we should search . and the directory the executable is in
13448 darwin* | rhapsody*)
13449 dynamic_linker="$host_os dyld"
13450 version_type=darwin
13453 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13454 soname_spec='${libname}${release}${major}$shared_ext'
13455 shlibpath_overrides_runpath=yes
13456 shlibpath_var=DYLD_LIBRARY_PATH
13457 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13458 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13459 if test "$GCC" = yes; then
13460 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"`
13462 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13464 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13472 soname_spec='${libname}${release}${shared_ext}$major'
13473 shlibpath_var=LD_LIBRARY_PATH
13484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13485 soname_spec='${libname}${release}${shared_ext}$major'
13486 shlibpath_var=LD_LIBRARY_PATH
13487 shlibpath_overrides_runpath=no
13488 hardcode_into_libs=yes
13489 dynamic_linker='GNU ld.so'
13493 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13494 version_type=freebsd-$objformat
13495 case $version_type in
13497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13502 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13506 shlibpath_var=LD_LIBRARY_PATH
13509 shlibpath_overrides_runpath=yes
13511 freebsd3.01* | freebsdelf3.01*)
13512 shlibpath_overrides_runpath=yes
13513 hardcode_into_libs=yes
13516 shlibpath_overrides_runpath=no
13517 hardcode_into_libs=yes
13526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13527 soname_spec='${libname}${release}${shared_ext}$major'
13528 shlibpath_var=LD_LIBRARY_PATH
13529 hardcode_into_libs=yes
13532 hpux9* | hpux10* | hpux11*)
13533 # Give a soname corresponding to the major version so that dld.sl refuses to
13534 # link against other versions.
13538 case "$host_cpu" in
13541 hardcode_into_libs=yes
13542 dynamic_linker="$host_os dld.so"
13543 shlibpath_var=LD_LIBRARY_PATH
13544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13546 soname_spec='${libname}${release}${shared_ext}$major'
13547 if test "X$HPUX_IA64_MODE" = X32; then
13548 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13550 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13552 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13556 hardcode_into_libs=yes
13557 dynamic_linker="$host_os dld.sl"
13558 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13559 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13561 soname_spec='${libname}${release}${shared_ext}$major'
13562 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13563 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13567 dynamic_linker="$host_os dld.sl"
13568 shlibpath_var=SHLIB_PATH
13569 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13571 soname_spec='${libname}${release}${shared_ext}$major'
13574 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13575 postinstall_cmds='chmod 555 $lib'
13578 irix5* | irix6* | nonstopux*)
13580 nonstopux*) version_type=nonstopux ;;
13582 if test "$lt_cv_prog_gnu_ld" = yes; then
13590 soname_spec='${libname}${release}${shared_ext}$major'
13591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13593 irix5* | nonstopux*)
13594 libsuff= shlibsuff=
13597 case $LD in # libtool.m4 will add one of these switches to LD
13598 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13599 libsuff= shlibsuff= libmagic=32-bit;;
13600 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13601 libsuff=32 shlibsuff=N32 libmagic=N32;;
13602 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13603 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13604 *) libsuff= shlibsuff= libmagic=never-match;;
13608 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13609 shlibpath_overrides_runpath=no
13610 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13611 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13612 hardcode_into_libs=yes
13615 # No shared lib support for Linux oldld, aout, or coff.
13616 linux*oldld* | linux*aout* | linux*coff*)
13620 # This must be Linux ELF.
13625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13626 soname_spec='${libname}${release}${shared_ext}$major'
13627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13628 shlibpath_var=LD_LIBRARY_PATH
13629 shlibpath_overrides_runpath=no
13630 # This implies no fast_install, which is unacceptable.
13631 # Some rework will be needed to allow for fast_install
13632 # before this can be enabled.
13633 hardcode_into_libs=yes
13635 # Append ld.so.conf contents to the search path
13636 if test -f /etc/ld.so.conf; then
13637 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13638 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13641 # We used to test for /lib/ld.so.1 and disable shared libraries on
13642 # powerpc, because MkLinux only supported shared libraries with the
13643 # GNU dynamic linker. Since this was broken with cross compilers,
13644 # most powerpc-linux boxes support dynamic linking these days and
13645 # people can always --disable-shared, the test was removed, and we
13646 # assume the GNU/Linux dynamic linker is in use.
13647 dynamic_linker='GNU/Linux ld.so'
13654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13655 soname_spec='${libname}${release}${shared_ext}$major'
13656 shlibpath_var=LD_LIBRARY_PATH
13657 shlibpath_overrides_runpath=no
13658 hardcode_into_libs=yes
13659 dynamic_linker='GNU ld.so'
13666 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13669 dynamic_linker='NetBSD (a.out) ld.so'
13671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13672 soname_spec='${libname}${release}${shared_ext}$major'
13673 dynamic_linker='NetBSD ld.elf_so'
13675 shlibpath_var=LD_LIBRARY_PATH
13676 shlibpath_overrides_runpath=yes
13677 hardcode_into_libs=yes
13682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13683 shlibpath_var=LD_LIBRARY_PATH
13684 shlibpath_overrides_runpath=yes
13691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13692 soname_spec='${libname}${release}${shared_ext}$major'
13693 shlibpath_var=LD_LIBRARY_PATH
13694 shlibpath_overrides_runpath=yes
13701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13703 shlibpath_var=LD_LIBRARY_PATH
13704 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13706 openbsd2.[89] | openbsd2.[89].*)
13707 shlibpath_overrides_runpath=no
13710 shlibpath_overrides_runpath=yes
13714 shlibpath_overrides_runpath=yes
13719 libname_spec='$name'
13722 library_names_spec='$libname${shared_ext} $libname.a'
13723 dynamic_linker='OS/2 ld.exe'
13724 shlibpath_var=LIBPATH
13727 osf3* | osf4* | osf5*)
13731 soname_spec='${libname}${release}${shared_ext}$major'
13732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13733 shlibpath_var=LD_LIBRARY_PATH
13734 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13735 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13740 soname_spec='${libname}${release}${shared_ext}$major'
13741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13742 shlibpath_var=LD_LIBRARY_PATH
13749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13750 soname_spec='${libname}${release}${shared_ext}$major'
13751 shlibpath_var=LD_LIBRARY_PATH
13752 shlibpath_overrides_runpath=yes
13753 hardcode_into_libs=yes
13754 # ldd complains unless libraries are executable
13755 postinstall_cmds='chmod +x $lib'
13760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13761 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13762 shlibpath_var=LD_LIBRARY_PATH
13763 shlibpath_overrides_runpath=yes
13764 if test "$with_gnu_ld" = yes; then
13770 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13773 soname_spec='${libname}${release}${shared_ext}$major'
13774 shlibpath_var=LD_LIBRARY_PATH
13775 case $host_vendor in
13777 shlibpath_overrides_runpath=no
13779 export_dynamic_flag_spec='${wl}-Blargedynsym'
13780 runpath_var=LD_RUN_PATH
13788 shlibpath_overrides_runpath=no
13789 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13795 if test -d /usr/nec ;then
13797 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13798 soname_spec='$libname${shared_ext}.$major'
13799 shlibpath_var=LD_LIBRARY_PATH
13805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13806 soname_spec='${libname}${release}${shared_ext}$major'
13807 shlibpath_var=LD_LIBRARY_PATH
13814 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13815 echo "${ECHO_T}$dynamic_linker" >&6
13816 test "$dynamic_linker" = no && can_build_shared=no
13818 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13819 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13821 if test -n "$hardcode_libdir_flag_spec" || \
13822 test -n "$runpath_var" || \
13823 test "X$hardcode_automatic" = "Xyes" ; then
13825 # We can hardcode non-existant directories.
13826 if test "$hardcode_direct" != no &&
13827 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13828 # have to relink, otherwise we might link with an installed library
13829 # when we should be linking with a yet-to-be-installed one
13830 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13831 test "$hardcode_minus_L" != no; then
13832 # Linking always hardcodes the temporary library directory.
13833 hardcode_action=relink
13835 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13836 hardcode_action=immediate
13839 # We cannot hardcode anything, or else we can only hardcode existing
13841 hardcode_action=unsupported
13843 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13844 echo "${ECHO_T}$hardcode_action" >&6
13846 if test "$hardcode_action" = relink; then
13847 # Fast installation is not supported
13848 enable_fast_install=no
13849 elif test "$shlibpath_overrides_runpath" = yes ||
13850 test "$enable_shared" = no; then
13851 # Fast installation is not necessary
13852 enable_fast_install=needless
13857 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13858 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13859 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13860 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13861 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13862 echo "$as_me:$LINENO: result: yes" >&5
13863 echo "${ECHO_T}yes" >&6
13865 # FIXME - insert some real tests, host_os isn't really good enough
13868 if test -n "$STRIP" ; then
13869 striplib="$STRIP -x"
13870 echo "$as_me:$LINENO: result: yes" >&5
13871 echo "${ECHO_T}yes" >&6
13873 echo "$as_me:$LINENO: result: no" >&5
13874 echo "${ECHO_T}no" >&6
13878 echo "$as_me:$LINENO: result: no" >&5
13879 echo "${ECHO_T}no" >&6
13884 if test "x$enable_dlopen" != xyes; then
13885 enable_dlopen=unknown
13886 enable_dlopen_self=unknown
13887 enable_dlopen_self_static=unknown
13894 lt_cv_dlopen="load_add_on"
13896 lt_cv_dlopen_self=yes
13900 lt_cv_dlopen="LoadLibrary"
13905 lt_cv_dlopen="dlopen"
13910 # if libdl is installed we need to link against it
13911 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13912 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13913 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13916 ac_check_lib_save_LIBS=$LIBS
13918 cat >conftest.$ac_ext <<_ACEOF
13921 cat confdefs.h >>conftest.$ac_ext
13922 cat >>conftest.$ac_ext <<_ACEOF
13923 /* end confdefs.h. */
13925 /* Override any gcc2 internal prototype to avoid an error. */
13929 /* We use char because int might match the return type of a gcc2
13930 builtin and then its argument prototype would still apply. */
13940 rm -f conftest.$ac_objext conftest$ac_exeext
13941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13942 (eval $ac_link) 2>conftest.er1
13944 grep -v '^ *+' conftest.er1 >conftest.err
13946 cat conftest.err >&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } &&
13949 { ac_try='test -z "$ac_c_werror_flag"
13950 || test ! -s conftest.err'
13951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952 (eval $ac_try) 2>&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; } &&
13956 { ac_try='test -s conftest$ac_exeext'
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; }; then
13962 ac_cv_lib_dl_dlopen=yes
13964 echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13967 ac_cv_lib_dl_dlopen=no
13969 rm -f conftest.err conftest.$ac_objext \
13970 conftest$ac_exeext conftest.$ac_ext
13971 LIBS=$ac_check_lib_save_LIBS
13973 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13974 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13975 if test $ac_cv_lib_dl_dlopen = yes; then
13976 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13979 lt_cv_dlopen="dyld"
13981 lt_cv_dlopen_self=yes
13988 echo "$as_me:$LINENO: checking for shl_load" >&5
13989 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13990 if test "${ac_cv_func_shl_load+set}" = set; then
13991 echo $ECHO_N "(cached) $ECHO_C" >&6
13993 cat >conftest.$ac_ext <<_ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h. */
13999 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14001 #define shl_load innocuous_shl_load
14003 /* System header to define __stub macros and hopefully few prototypes,
14004 which can conflict with char shl_load (); below.
14005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14006 <limits.h> exists even on freestanding compilers. */
14009 # include <limits.h>
14011 # include <assert.h>
14016 /* Override any gcc2 internal prototype to avoid an error. */
14021 /* We use char because int might match the return type of a gcc2
14022 builtin and then its argument prototype would still apply. */
14024 /* The GNU C library defines this for functions which it implements
14025 to always fail with ENOSYS. Some functions are actually named
14026 something starting with __ and the normal name is an alias. */
14027 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14030 char (*f) () = shl_load;
14039 return f != shl_load;
14044 rm -f conftest.$ac_objext conftest$ac_exeext
14045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14046 (eval $ac_link) 2>conftest.er1
14048 grep -v '^ *+' conftest.er1 >conftest.err
14050 cat conftest.err >&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } &&
14053 { ac_try='test -z "$ac_c_werror_flag"
14054 || test ! -s conftest.err'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; } &&
14060 { ac_try='test -s conftest$ac_exeext'
14061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062 (eval $ac_try) 2>&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
14066 ac_cv_func_shl_load=yes
14068 echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14071 ac_cv_func_shl_load=no
14073 rm -f conftest.err conftest.$ac_objext \
14074 conftest$ac_exeext conftest.$ac_ext
14076 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14077 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14078 if test $ac_cv_func_shl_load = yes; then
14079 lt_cv_dlopen="shl_load"
14081 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14082 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14083 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14084 echo $ECHO_N "(cached) $ECHO_C" >&6
14086 ac_check_lib_save_LIBS=$LIBS
14088 cat >conftest.$ac_ext <<_ACEOF
14091 cat confdefs.h >>conftest.$ac_ext
14092 cat >>conftest.$ac_ext <<_ACEOF
14093 /* end confdefs.h. */
14095 /* Override any gcc2 internal prototype to avoid an error. */
14099 /* We use char because int might match the return type of a gcc2
14100 builtin and then its argument prototype would still apply. */
14110 rm -f conftest.$ac_objext conftest$ac_exeext
14111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14112 (eval $ac_link) 2>conftest.er1
14114 grep -v '^ *+' conftest.er1 >conftest.err
14116 cat conftest.err >&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); } &&
14119 { ac_try='test -z "$ac_c_werror_flag"
14120 || test ! -s conftest.err'
14121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122 (eval $ac_try) 2>&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; } &&
14126 { ac_try='test -s conftest$ac_exeext'
14127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128 (eval $ac_try) 2>&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; }; then
14132 ac_cv_lib_dld_shl_load=yes
14134 echo "$as_me: failed program was:" >&5
14135 sed 's/^/| /' conftest.$ac_ext >&5
14137 ac_cv_lib_dld_shl_load=no
14139 rm -f conftest.err conftest.$ac_objext \
14140 conftest$ac_exeext conftest.$ac_ext
14141 LIBS=$ac_check_lib_save_LIBS
14143 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14144 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14145 if test $ac_cv_lib_dld_shl_load = yes; then
14146 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14148 echo "$as_me:$LINENO: checking for dlopen" >&5
14149 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14150 if test "${ac_cv_func_dlopen+set}" = set; then
14151 echo $ECHO_N "(cached) $ECHO_C" >&6
14153 cat >conftest.$ac_ext <<_ACEOF
14156 cat confdefs.h >>conftest.$ac_ext
14157 cat >>conftest.$ac_ext <<_ACEOF
14158 /* end confdefs.h. */
14159 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14161 #define dlopen innocuous_dlopen
14163 /* System header to define __stub macros and hopefully few prototypes,
14164 which can conflict with char dlopen (); below.
14165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14166 <limits.h> exists even on freestanding compilers. */
14169 # include <limits.h>
14171 # include <assert.h>
14176 /* Override any gcc2 internal prototype to avoid an error. */
14181 /* We use char because int might match the return type of a gcc2
14182 builtin and then its argument prototype would still apply. */
14184 /* The GNU C library defines this for functions which it implements
14185 to always fail with ENOSYS. Some functions are actually named
14186 something starting with __ and the normal name is an alias. */
14187 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14190 char (*f) () = dlopen;
14199 return f != dlopen;
14204 rm -f conftest.$ac_objext conftest$ac_exeext
14205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14206 (eval $ac_link) 2>conftest.er1
14208 grep -v '^ *+' conftest.er1 >conftest.err
14210 cat conftest.err >&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); } &&
14213 { ac_try='test -z "$ac_c_werror_flag"
14214 || test ! -s conftest.err'
14215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14216 (eval $ac_try) 2>&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); }; } &&
14220 { ac_try='test -s conftest$ac_exeext'
14221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222 (eval $ac_try) 2>&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; }; then
14226 ac_cv_func_dlopen=yes
14228 echo "$as_me: failed program was:" >&5
14229 sed 's/^/| /' conftest.$ac_ext >&5
14231 ac_cv_func_dlopen=no
14233 rm -f conftest.err conftest.$ac_objext \
14234 conftest$ac_exeext conftest.$ac_ext
14236 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14237 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14238 if test $ac_cv_func_dlopen = yes; then
14239 lt_cv_dlopen="dlopen"
14241 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14242 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14243 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14244 echo $ECHO_N "(cached) $ECHO_C" >&6
14246 ac_check_lib_save_LIBS=$LIBS
14248 cat >conftest.$ac_ext <<_ACEOF
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h. */
14255 /* Override any gcc2 internal prototype to avoid an error. */
14259 /* We use char because int might match the return type of a gcc2
14260 builtin and then its argument prototype would still apply. */
14270 rm -f conftest.$ac_objext conftest$ac_exeext
14271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14272 (eval $ac_link) 2>conftest.er1
14274 grep -v '^ *+' conftest.er1 >conftest.err
14276 cat conftest.err >&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } &&
14279 { ac_try='test -z "$ac_c_werror_flag"
14280 || test ! -s conftest.err'
14281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282 (eval $ac_try) 2>&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; } &&
14286 { ac_try='test -s conftest$ac_exeext'
14287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288 (eval $ac_try) 2>&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; }; then
14292 ac_cv_lib_dl_dlopen=yes
14294 echo "$as_me: failed program was:" >&5
14295 sed 's/^/| /' conftest.$ac_ext >&5
14297 ac_cv_lib_dl_dlopen=no
14299 rm -f conftest.err conftest.$ac_objext \
14300 conftest$ac_exeext conftest.$ac_ext
14301 LIBS=$ac_check_lib_save_LIBS
14303 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14304 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14305 if test $ac_cv_lib_dl_dlopen = yes; then
14306 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14308 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14309 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14310 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14311 echo $ECHO_N "(cached) $ECHO_C" >&6
14313 ac_check_lib_save_LIBS=$LIBS
14314 LIBS="-lsvld $LIBS"
14315 cat >conftest.$ac_ext <<_ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h. */
14322 /* Override any gcc2 internal prototype to avoid an error. */
14326 /* We use char because int might match the return type of a gcc2
14327 builtin and then its argument prototype would still apply. */
14337 rm -f conftest.$ac_objext conftest$ac_exeext
14338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14339 (eval $ac_link) 2>conftest.er1
14341 grep -v '^ *+' conftest.er1 >conftest.err
14343 cat conftest.err >&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } &&
14346 { ac_try='test -z "$ac_c_werror_flag"
14347 || test ! -s conftest.err'
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; } &&
14353 { ac_try='test -s conftest$ac_exeext'
14354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355 (eval $ac_try) 2>&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; }; then
14359 ac_cv_lib_svld_dlopen=yes
14361 echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14364 ac_cv_lib_svld_dlopen=no
14366 rm -f conftest.err conftest.$ac_objext \
14367 conftest$ac_exeext conftest.$ac_ext
14368 LIBS=$ac_check_lib_save_LIBS
14370 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14371 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14372 if test $ac_cv_lib_svld_dlopen = yes; then
14373 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14375 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14376 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14377 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 ac_check_lib_save_LIBS=$LIBS
14382 cat >conftest.$ac_ext <<_ACEOF
14385 cat confdefs.h >>conftest.$ac_ext
14386 cat >>conftest.$ac_ext <<_ACEOF
14387 /* end confdefs.h. */
14389 /* Override any gcc2 internal prototype to avoid an error. */
14393 /* We use char because int might match the return type of a gcc2
14394 builtin and then its argument prototype would still apply. */
14404 rm -f conftest.$ac_objext conftest$ac_exeext
14405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14406 (eval $ac_link) 2>conftest.er1
14408 grep -v '^ *+' conftest.er1 >conftest.err
14410 cat conftest.err >&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } &&
14413 { ac_try='test -z "$ac_c_werror_flag"
14414 || test ! -s conftest.err'
14415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416 (eval $ac_try) 2>&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; } &&
14420 { ac_try='test -s conftest$ac_exeext'
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; }; then
14426 ac_cv_lib_dld_dld_link=yes
14428 echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14431 ac_cv_lib_dld_dld_link=no
14433 rm -f conftest.err conftest.$ac_objext \
14434 conftest$ac_exeext conftest.$ac_ext
14435 LIBS=$ac_check_lib_save_LIBS
14437 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14438 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14439 if test $ac_cv_lib_dld_dld_link = yes; then
14440 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14461 if test "x$lt_cv_dlopen" != xno; then
14467 case $lt_cv_dlopen in
14469 save_CPPFLAGS="$CPPFLAGS"
14470 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14472 save_LDFLAGS="$LDFLAGS"
14473 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14476 LIBS="$lt_cv_dlopen_libs $LIBS"
14478 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14479 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14480 if test "${lt_cv_dlopen_self+set}" = set; then
14481 echo $ECHO_N "(cached) $ECHO_C" >&6
14483 if test "$cross_compiling" = yes; then :
14484 lt_cv_dlopen_self=cross
14486 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14487 lt_status=$lt_dlunknown
14488 cat > conftest.$ac_ext <<EOF
14489 #line 14489 "configure"
14490 #include "confdefs.h"
14499 # define LT_DLGLOBAL RTLD_GLOBAL
14502 # define LT_DLGLOBAL DL_GLOBAL
14504 # define LT_DLGLOBAL 0
14508 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14509 find out it does not work in some platform. */
14510 #ifndef LT_DLLAZY_OR_NOW
14512 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14515 # define LT_DLLAZY_OR_NOW DL_LAZY
14518 # define LT_DLLAZY_OR_NOW RTLD_NOW
14521 # define LT_DLLAZY_OR_NOW DL_NOW
14523 # define LT_DLLAZY_OR_NOW 0
14531 extern "C" void exit (int);
14534 void fnord() { int i=42;}
14537 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14538 int status = $lt_dlunknown;
14542 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14543 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14544 /* dlclose (self); */
14550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14551 (eval $ac_link) 2>&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14555 (./conftest; exit; ) 2>/dev/null
14557 case x$lt_status in
14558 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14559 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14560 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14563 # compilation failed
14564 lt_cv_dlopen_self=no
14571 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14572 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14574 if test "x$lt_cv_dlopen_self" = xyes; then
14575 LDFLAGS="$LDFLAGS $link_static_flag"
14576 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14577 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14578 if test "${lt_cv_dlopen_self_static+set}" = set; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14581 if test "$cross_compiling" = yes; then :
14582 lt_cv_dlopen_self_static=cross
14584 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14585 lt_status=$lt_dlunknown
14586 cat > conftest.$ac_ext <<EOF
14587 #line 14587 "configure"
14588 #include "confdefs.h"
14597 # define LT_DLGLOBAL RTLD_GLOBAL
14600 # define LT_DLGLOBAL DL_GLOBAL
14602 # define LT_DLGLOBAL 0
14606 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14607 find out it does not work in some platform. */
14608 #ifndef LT_DLLAZY_OR_NOW
14610 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14613 # define LT_DLLAZY_OR_NOW DL_LAZY
14616 # define LT_DLLAZY_OR_NOW RTLD_NOW
14619 # define LT_DLLAZY_OR_NOW DL_NOW
14621 # define LT_DLLAZY_OR_NOW 0
14629 extern "C" void exit (int);
14632 void fnord() { int i=42;}
14635 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14636 int status = $lt_dlunknown;
14640 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14641 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14642 /* dlclose (self); */
14648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14649 (eval $ac_link) 2>&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14653 (./conftest; exit; ) 2>/dev/null
14655 case x$lt_status in
14656 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14657 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14658 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14661 # compilation failed
14662 lt_cv_dlopen_self_static=no
14669 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14670 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14673 CPPFLAGS="$save_CPPFLAGS"
14674 LDFLAGS="$save_LDFLAGS"
14679 case $lt_cv_dlopen_self in
14680 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14681 *) enable_dlopen_self=unknown ;;
14684 case $lt_cv_dlopen_self_static in
14685 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14686 *) enable_dlopen_self_static=unknown ;;
14691 # Report which librarie types wil actually be built
14692 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14693 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14694 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14695 echo "${ECHO_T}$can_build_shared" >&6
14697 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14698 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14699 test "$can_build_shared" = "no" && enable_shared=no
14701 # On AIX, shared libraries and static libraries use the same namespace, and
14702 # are all built from PIC.
14705 test "$enable_shared" = yes && enable_static=no
14706 if test -n "$RANLIB"; then
14707 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14708 postinstall_cmds='$RANLIB $lib'
14713 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14714 test "$enable_shared" = yes && enable_static=no
14718 echo "$as_me:$LINENO: result: $enable_shared" >&5
14719 echo "${ECHO_T}$enable_shared" >&6
14721 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14722 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14723 # Make sure either enable_shared or enable_static is yes.
14724 test "$enable_shared" = yes || enable_static=yes
14725 echo "$as_me:$LINENO: result: $enable_static" >&5
14726 echo "${ECHO_T}$enable_static" >&6
14728 # The else clause should only fire when bootstrapping the
14729 # libtool distribution, otherwise you forgot to ship ltmain.sh
14730 # with your package, and you will get complaints that there are
14731 # no rules to generate ltmain.sh.
14732 if test -f "$ltmain"; then
14733 # See if we are running on zsh, and set the options which allow our commands through
14734 # without removal of \ escapes.
14735 if test -n "${ZSH_VERSION+set}" ; then
14736 setopt NO_GLOB_SUBST
14738 # Now quote all the things that may contain metacharacters while being
14739 # careful not to overquote the AC_SUBSTed values. We take copies of the
14740 # variables and quote the copies for generation of the libtool script.
14741 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14743 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14744 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14745 deplibs_check_method reload_flag reload_cmds need_locks \
14746 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14747 lt_cv_sys_global_symbol_to_c_name_address \
14748 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14749 old_postinstall_cmds old_postuninstall_cmds \
14753 lt_prog_compiler_wl \
14754 lt_prog_compiler_pic \
14755 lt_prog_compiler_static \
14756 lt_prog_compiler_no_builtin_flag \
14757 export_dynamic_flag_spec \
14758 thread_safe_flag_spec \
14759 whole_archive_flag_spec \
14760 enable_shared_with_static_runtimes \
14762 old_archive_from_new_cmds \
14767 compiler_lib_search_path \
14769 archive_expsym_cmds \
14771 postuninstall_cmds \
14772 old_archive_from_expsyms_cmds \
14773 allow_undefined_flag \
14774 no_undefined_flag \
14775 export_symbols_cmds \
14776 hardcode_libdir_flag_spec \
14777 hardcode_libdir_flag_spec_ld \
14778 hardcode_libdir_separator \
14779 hardcode_automatic \
14781 module_expsym_cmds \
14782 lt_cv_prog_compiler_c_o \
14784 include_expsyms; do
14787 old_archive_cmds | \
14788 old_archive_from_new_cmds | \
14790 archive_expsym_cmds | \
14792 module_expsym_cmds | \
14793 old_archive_from_expsyms_cmds | \
14794 export_symbols_cmds | \
14795 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14796 postinstall_cmds | postuninstall_cmds | \
14797 old_postinstall_cmds | old_postuninstall_cmds | \
14798 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14799 # Double-quote double-evaled strings.
14800 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14803 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14809 *'\$0 --fallback-echo"')
14810 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14814 cfgfile="${ofile}T"
14815 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14817 { echo "$as_me:$LINENO: creating $ofile" >&5
14818 echo "$as_me: creating $ofile" >&6;}
14820 cat <<__EOF__ >> "$cfgfile"
14823 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14824 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14825 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14827 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14828 # Free Software Foundation, Inc.
14830 # This file is part of GNU Libtool:
14831 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14833 # This program is free software; you can redistribute it and/or modify
14834 # it under the terms of the GNU General Public License as published by
14835 # the Free Software Foundation; either version 2 of the License, or
14836 # (at your option) any later version.
14838 # This program is distributed in the hope that it will be useful, but
14839 # WITHOUT ANY WARRANTY; without even the implied warranty of
14840 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14841 # General Public License for more details.
14843 # You should have received a copy of the GNU General Public License
14844 # along with this program; if not, write to the Free Software
14845 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14847 # As a special exception to the GNU General Public License, if you
14848 # distribute this file as part of a program that contains a
14849 # configuration script generated by Autoconf, you may include it under
14850 # the same distribution terms that you use for the rest of that program.
14852 # A sed program that does not truncate output.
14855 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14856 Xsed="$SED -e s/^X//"
14858 # The HP-UX ksh and POSIX shell print the target directory to stdout
14859 # if CDPATH is set.
14860 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14862 # The names of the tagged configurations supported by this script.
14865 # ### BEGIN LIBTOOL CONFIG
14867 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14869 # Shell to use when invoking shell scripts.
14872 # Whether or not to build shared libraries.
14873 build_libtool_libs=$enable_shared
14875 # Whether or not to build static libraries.
14876 build_old_libs=$enable_static
14878 # Whether or not to add -lc for building shared libraries.
14879 build_libtool_need_lc=$archive_cmds_need_lc
14881 # Whether or not to disallow shared libs when runtime libs are static
14882 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14884 # Whether or not to optimize for fast installation.
14885 fast_install=$enable_fast_install
14888 host_alias=$host_alias
14891 # An echo program that does not interpret backslashes.
14896 AR_FLAGS=$lt_AR_FLAGS
14901 # A language-specific compiler.
14904 # Is the compiler the GNU C compiler?
14910 # The linker used to build libraries.
14913 # Whether we need hard or soft links.
14916 # A BSD-compatible nm program.
14919 # A symbol stripping program
14922 # Used to examine libraries when file_magic_cmd begins "file"
14923 MAGIC_CMD=$MAGIC_CMD
14925 # Used on cygwin: DLL creation program.
14928 # Used on cygwin: object dumper.
14931 # Used on cygwin: assembler.
14934 # The name of the directory that contains temporary libtool files.
14937 # How to create reloadable object files.
14938 reload_flag=$lt_reload_flag
14939 reload_cmds=$lt_reload_cmds
14941 # How to pass a linker flag through the compiler.
14942 wl=$lt_lt_prog_compiler_wl
14944 # Object file suffix (normally "o").
14945 objext="$ac_objext"
14947 # Old archive suffix (normally "a").
14950 # Shared library suffix (normally ".so").
14951 shrext_cmds='$shrext_cmds'
14953 # Executable file suffix (normally "").
14956 # Additional compiler flags for building library objects.
14957 pic_flag=$lt_lt_prog_compiler_pic
14960 # What is the maximum length of a command?
14961 max_cmd_len=$lt_cv_sys_max_cmd_len
14963 # Does compiler simultaneously support -c and -o options?
14964 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14966 # Must we lock files when doing compilation ?
14967 need_locks=$lt_need_locks
14969 # Do we need the lib prefix for modules?
14970 need_lib_prefix=$need_lib_prefix
14972 # Do we need a version for libraries?
14973 need_version=$need_version
14975 # Whether dlopen is supported.
14976 dlopen_support=$enable_dlopen
14978 # Whether dlopen of programs is supported.
14979 dlopen_self=$enable_dlopen_self
14981 # Whether dlopen of statically linked programs is supported.
14982 dlopen_self_static=$enable_dlopen_self_static
14984 # Compiler flag to prevent dynamic linking.
14985 link_static_flag=$lt_lt_prog_compiler_static
14987 # Compiler flag to turn off builtin functions.
14988 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14990 # Compiler flag to allow reflexive dlopens.
14991 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14993 # Compiler flag to generate shared objects directly from archives.
14994 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14996 # Compiler flag to generate thread-safe objects.
14997 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14999 # Library versioning type.
15000 version_type=$version_type
15002 # Format of library name prefix.
15003 libname_spec=$lt_libname_spec
15005 # List of archive names. First name is the real one, the rest are links.
15006 # The last name is the one that the linker finds with -lNAME.
15007 library_names_spec=$lt_library_names_spec
15009 # The coded name of the library, if different from the real name.
15010 soname_spec=$lt_soname_spec
15012 # Commands used to build and install an old-style archive.
15014 old_archive_cmds=$lt_old_archive_cmds
15015 old_postinstall_cmds=$lt_old_postinstall_cmds
15016 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15018 # Create an old-style archive from a shared archive.
15019 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15021 # Create a temporary old-style archive to link instead of a shared archive.
15022 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15024 # Commands used to build and install a shared archive.
15025 archive_cmds=$lt_archive_cmds
15026 archive_expsym_cmds=$lt_archive_expsym_cmds
15027 postinstall_cmds=$lt_postinstall_cmds
15028 postuninstall_cmds=$lt_postuninstall_cmds
15030 # Commands used to build a loadable module (assumed same as above if empty)
15031 module_cmds=$lt_module_cmds
15032 module_expsym_cmds=$lt_module_expsym_cmds
15034 # Commands to strip libraries.
15035 old_striplib=$lt_old_striplib
15036 striplib=$lt_striplib
15038 # Dependencies to place before the objects being linked to create a
15040 predep_objects=$lt_predep_objects
15042 # Dependencies to place after the objects being linked to create a
15044 postdep_objects=$lt_postdep_objects
15046 # Dependencies to place before the objects being linked to create a
15048 predeps=$lt_predeps
15050 # Dependencies to place after the objects being linked to create a
15052 postdeps=$lt_postdeps
15054 # The library search path used internally by the compiler when linking
15055 # a shared library.
15056 compiler_lib_search_path=$lt_compiler_lib_search_path
15058 # Method to check whether dependent libraries are shared objects.
15059 deplibs_check_method=$lt_deplibs_check_method
15061 # Command to use when deplibs_check_method == file_magic.
15062 file_magic_cmd=$lt_file_magic_cmd
15064 # Flag that allows shared libraries with undefined symbols to be built.
15065 allow_undefined_flag=$lt_allow_undefined_flag
15067 # Flag that forces no undefined symbols.
15068 no_undefined_flag=$lt_no_undefined_flag
15070 # Commands used to finish a libtool library installation in a directory.
15071 finish_cmds=$lt_finish_cmds
15073 # Same as above, but a single script fragment to be evaled but not shown.
15074 finish_eval=$lt_finish_eval
15076 # Take the output of nm and produce a listing of raw symbols and C names.
15077 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15079 # Transform the output of nm in a proper C declaration
15080 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15082 # Transform the output of nm in a C name address pair
15083 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15085 # This is the shared library runtime path variable.
15086 runpath_var=$runpath_var
15088 # This is the shared library path variable.
15089 shlibpath_var=$shlibpath_var
15091 # Is shlibpath searched before the hard-coded library search path?
15092 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15094 # How to hardcode a shared library path into an executable.
15095 hardcode_action=$hardcode_action
15097 # Whether we should hardcode library paths into libraries.
15098 hardcode_into_libs=$hardcode_into_libs
15100 # Flag to hardcode \$libdir into a binary during linking.
15101 # This must work even if \$libdir does not exist.
15102 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15104 # If ld is used when linking, flag to hardcode \$libdir into
15105 # a binary during linking. This must work even if \$libdir does
15107 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15109 # Whether we need a single -rpath flag with a separated argument.
15110 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15112 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15113 # resulting binary.
15114 hardcode_direct=$hardcode_direct
15116 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15117 # resulting binary.
15118 hardcode_minus_L=$hardcode_minus_L
15120 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15121 # the resulting binary.
15122 hardcode_shlibpath_var=$hardcode_shlibpath_var
15124 # Set to yes if building a shared library automatically hardcodes DIR into the library
15125 # and all subsequent libraries and executables linked against it.
15126 hardcode_automatic=$hardcode_automatic
15128 # Variables whose values should be saved in libtool wrapper scripts and
15129 # restored at relink time.
15130 variables_saved_for_relink="$variables_saved_for_relink"
15132 # Whether libtool must link a program against all its dependency libraries.
15133 link_all_deplibs=$link_all_deplibs
15135 # Compile-time system search path for libraries
15136 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15138 # Run-time system search path for libraries
15139 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15141 # Fix the shell variable \$srcfile for the compiler.
15142 fix_srcfile_path="$fix_srcfile_path"
15144 # Set to yes if exported symbols are required.
15145 always_export_symbols=$always_export_symbols
15147 # The commands to list exported symbols.
15148 export_symbols_cmds=$lt_export_symbols_cmds
15150 # The commands to extract the exported symbol list from a shared archive.
15151 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15153 # Symbols that should not be listed in the preloaded symbols.
15154 exclude_expsyms=$lt_exclude_expsyms
15156 # Symbols that must always be exported.
15157 include_expsyms=$lt_include_expsyms
15159 # ### END LIBTOOL CONFIG
15166 cat <<\EOF >> "$cfgfile"
15168 # AIX sometimes has problems with the GCC collect2 program. For some
15169 # reason, if we set the COLLECT_NAMES environment variable, the problems
15170 # vanish in a puff of smoke.
15171 if test "X${COLLECT_NAMES+set}" != Xset; then
15173 export COLLECT_NAMES
15179 # We use sed instead of cat because bash on DJGPP gets confused if
15180 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15181 # text mode, it properly converts lines to CR/LF. This bash problem
15182 # is reportedly fixed, but why not run on old versions too?
15183 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15185 mv -f "$cfgfile" "$ofile" || \
15186 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15190 # If there is no Makefile yet, we rely on a make rule to execute
15191 # `config.status --recheck' to rerun these tests and create the
15192 # libtool script then.
15193 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15194 if test -f "$ltmain_in"; then
15195 test -f Makefile && make "$ltmain"
15201 ac_cpp='$CPP $CPPFLAGS'
15202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15209 # Check whether --with-tags or --without-tags was given.
15210 if test "${with_tags+set}" = set; then
15211 withval="$with_tags"
15212 tagnames="$withval"
15215 if test -f "$ltmain" && test -n "$tagnames"; then
15216 if test ! -f "${ofile}"; then
15217 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15218 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15221 if test -z "$LTCC"; then
15222 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15223 if test -z "$LTCC"; then
15224 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15225 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15227 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15228 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15232 # Extract list of available tagged configurations in $ofile.
15233 # Note that this assumes the entire list is on one line.
15234 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15236 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15237 for tagname in $tagnames; do
15239 # Check whether tagname contains only valid characters
15240 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15242 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15243 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15244 { (exit 1); exit 1; }; }
15248 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15250 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15251 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15252 { (exit 1); exit 1; }; }
15255 # Update the list of available tags.
15256 if test -n "$tagname"; then
15257 echo appending configuration tag "$tagname" to $ofile
15261 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15262 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15263 (test "X$CXX" != "Xg++"))) ; then
15265 ac_cpp='$CXXCPP $CPPFLAGS'
15266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15273 archive_cmds_need_lc_CXX=no
15274 allow_undefined_flag_CXX=
15275 always_export_symbols_CXX=no
15276 archive_expsym_cmds_CXX=
15277 export_dynamic_flag_spec_CXX=
15278 hardcode_direct_CXX=no
15279 hardcode_libdir_flag_spec_CXX=
15280 hardcode_libdir_flag_spec_ld_CXX=
15281 hardcode_libdir_separator_CXX=
15282 hardcode_minus_L_CXX=no
15283 hardcode_automatic_CXX=no
15285 module_expsym_cmds_CXX=
15286 link_all_deplibs_CXX=unknown
15287 old_archive_cmds_CXX=$old_archive_cmds
15288 no_undefined_flag_CXX=
15289 whole_archive_flag_spec_CXX=
15290 enable_shared_with_static_runtimes_CXX=no
15292 # Dependencies to place before and after the object being linked:
15293 predep_objects_CXX=
15294 postdep_objects_CXX=
15297 compiler_lib_search_path_CXX=
15299 # Source file extension for C++ test sources.
15302 # Object file extension for compiled C++ test sources.
15306 # Code to be used in simple compile tests
15307 lt_simple_compile_test_code="int some_variable = 0;\n"
15309 # Code to be used in simple link tests
15310 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15312 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15314 # If no C compiler was specified, use CC.
15317 # Allow CC to be a program name with arguments.
15321 # Allow CC to be a program name with arguments.
15326 lt_save_with_gnu_ld=$with_gnu_ld
15327 lt_save_path_LD=$lt_cv_path_LD
15328 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15329 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15331 unset lt_cv_prog_gnu_ld
15333 if test -n "${lt_cv_path_LDCXX+set}"; then
15334 lt_cv_path_LD=$lt_cv_path_LDCXX
15336 unset lt_cv_path_LD
15338 test -z "${LDCXX+set}" || LD=$LDCXX
15342 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15344 # We don't want -fno-exception wen compiling C++ code, so set the
15345 # no_builtin_flag separately
15346 if test "$GXX" = yes; then
15347 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15349 lt_prog_compiler_no_builtin_flag_CXX=
15352 if test "$GXX" = yes; then
15353 # Set up default GNU C++ configuration
15356 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15357 if test "${with_gnu_ld+set}" = set; then
15358 withval="$with_gnu_ld"
15359 test "$withval" = no || with_gnu_ld=yes
15364 if test "$GCC" = yes; then
15365 # Check if gcc -print-prog-name=ld gives a path.
15366 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15367 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15370 # gcc leaves a trailing carriage return which upsets mingw
15371 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15373 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15376 # Accept absolute paths.
15378 re_direlt='/[^/][^/]*/\.\./'
15379 # Canonicalize the pathname of ld
15380 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15381 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15382 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15384 test -z "$LD" && LD="$ac_prog"
15387 # If it fails, then pretend we aren't using GCC.
15391 # If it is relative, then search for the first ld in PATH.
15392 with_gnu_ld=unknown
15395 elif test "$with_gnu_ld" = yes; then
15396 echo "$as_me:$LINENO: checking for GNU ld" >&5
15397 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15399 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15400 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15402 if test "${lt_cv_path_LD+set}" = set; then
15403 echo $ECHO_N "(cached) $ECHO_C" >&6
15405 if test -z "$LD"; then
15406 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15407 for ac_dir in $PATH; do
15409 test -z "$ac_dir" && ac_dir=.
15410 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15411 lt_cv_path_LD="$ac_dir/$ac_prog"
15412 # Check to see if the program is GNU ld. I'd rather use --version,
15413 # but apparently some GNU ld's only accept -v.
15414 # Break only if it was the GNU/non-GNU ld that we prefer.
15415 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15416 *GNU* | *'with BFD'*)
15417 test "$with_gnu_ld" != no && break
15420 test "$with_gnu_ld" != yes && break
15427 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15431 LD="$lt_cv_path_LD"
15432 if test -n "$LD"; then
15433 echo "$as_me:$LINENO: result: $LD" >&5
15434 echo "${ECHO_T}$LD" >&6
15436 echo "$as_me:$LINENO: result: no" >&5
15437 echo "${ECHO_T}no" >&6
15439 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15440 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15441 { (exit 1); exit 1; }; }
15442 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15443 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15444 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15445 echo $ECHO_N "(cached) $ECHO_C" >&6
15447 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15448 case `$LD -v 2>&1 </dev/null` in
15449 *GNU* | *'with BFD'*)
15450 lt_cv_prog_gnu_ld=yes
15453 lt_cv_prog_gnu_ld=no
15457 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15458 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15459 with_gnu_ld=$lt_cv_prog_gnu_ld
15463 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15464 # archiving commands below assume that GNU ld is being used.
15465 if test "$with_gnu_ld" = yes; then
15466 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15467 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'
15469 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15470 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15472 # If archive_cmds runs LD, not CC, wlarc should be empty
15473 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15474 # investigate it a little bit more. (MM)
15477 # ancient GNU ld didn't support --whole-archive et. al.
15478 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15479 grep 'no-whole-archive' > /dev/null; then
15480 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15482 whole_archive_flag_spec_CXX=
15488 # A generic and very simple default shared library creation
15489 # command for GNU C++ for the case where it uses the native
15490 # linker, instead of GNU ld. If possible, this setting should
15491 # overridden to take advantage of the native linker features on
15492 # the platform it is being used on.
15493 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15496 # Commands to make compiler produce verbose output that lists
15497 # what "hidden" libraries, object files and flags are used when
15498 # linking a shared library.
15499 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15507 # PORTME: fill in a description of your system's C++ link characteristics
15508 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15509 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15513 # FIXME: insert proper C++ library support
15517 if test "$host_cpu" = ia64; then
15518 # On IA64, the linker does run time linking by default, so we don't
15519 # have to do anything special.
15520 aix_use_runtimelinking=no
15521 exp_sym_flag='-Bexport'
15524 aix_use_runtimelinking=no
15526 # Test if we are trying to use run time linking or normal
15527 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15528 # need to do runtime linking.
15529 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15530 for ld_flag in $LDFLAGS; do
15533 aix_use_runtimelinking=yes
15540 exp_sym_flag='-bexport'
15541 no_entry_flag='-bnoentry'
15544 # When large executables or shared objects are built, AIX ld can
15545 # have problems creating the table of contents. If linking a library
15546 # or program results in "error TOC overflow" add -mminimal-toc to
15547 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15548 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15550 archive_cmds_CXX=''
15551 hardcode_direct_CXX=yes
15552 hardcode_libdir_separator_CXX=':'
15553 link_all_deplibs_CXX=yes
15555 if test "$GXX" = yes; then
15556 case $host_os in aix4.012|aix4.012.*)
15557 # We only want to do this on AIX 4.2 and lower, the check
15558 # below for broken collect2 doesn't work under 4.3+
15559 collect2name=`${CC} -print-prog-name=collect2`
15560 if test -f "$collect2name" && \
15561 strings "$collect2name" | grep resolve_lib_name >/dev/null
15563 # We have reworked collect2
15564 hardcode_direct_CXX=yes
15566 # We have old collect2
15567 hardcode_direct_CXX=unsupported
15568 # It fails to find uninstalled libraries when the uninstalled
15569 # path is not listed in the libpath. Setting hardcode_minus_L
15570 # to unsupported forces relinking
15571 hardcode_minus_L_CXX=yes
15572 hardcode_libdir_flag_spec_CXX='-L$libdir'
15573 hardcode_libdir_separator_CXX=
15576 shared_flag='-shared'
15579 if test "$host_cpu" = ia64; then
15580 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15581 # chokes on -Wl,-G. The following line is correct:
15584 if test "$aix_use_runtimelinking" = yes; then
15585 shared_flag='${wl}-G'
15587 shared_flag='${wl}-bM:SRE'
15592 # It seems that -bexpall does not export symbols beginning with
15593 # underscore (_), so it is better to generate a list of symbols to export.
15594 always_export_symbols_CXX=yes
15595 if test "$aix_use_runtimelinking" = yes; then
15596 # Warning - without using the other runtime loading flags (-brtl),
15597 # -berok will link without error, but may produce a broken library.
15598 allow_undefined_flag_CXX='-berok'
15599 # Determine the default libpath from the value encoded in an empty executable.
15600 cat >conftest.$ac_ext <<_ACEOF
15603 cat confdefs.h >>conftest.$ac_ext
15604 cat >>conftest.$ac_ext <<_ACEOF
15605 /* end confdefs.h. */
15615 rm -f conftest.$ac_objext conftest$ac_exeext
15616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15617 (eval $ac_link) 2>conftest.er1
15619 grep -v '^ *+' conftest.er1 >conftest.err
15621 cat conftest.err >&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } &&
15624 { ac_try='test -z "$ac_cxx_werror_flag"
15625 || test ! -s conftest.err'
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; } &&
15631 { ac_try='test -s conftest$ac_exeext'
15632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633 (eval $ac_try) 2>&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; }; then
15638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15640 # Check for a 64-bit object if we didn't find anything.
15641 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; }
15644 echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15648 rm -f conftest.err conftest.$ac_objext \
15649 conftest$ac_exeext conftest.$ac_ext
15650 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15652 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15654 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"
15656 if test "$host_cpu" = ia64; then
15657 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15658 allow_undefined_flag_CXX="-z nodefs"
15659 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"
15661 # Determine the default libpath from the value encoded in an empty executable.
15662 cat >conftest.$ac_ext <<_ACEOF
15665 cat confdefs.h >>conftest.$ac_ext
15666 cat >>conftest.$ac_ext <<_ACEOF
15667 /* end confdefs.h. */
15677 rm -f conftest.$ac_objext conftest$ac_exeext
15678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15679 (eval $ac_link) 2>conftest.er1
15681 grep -v '^ *+' conftest.er1 >conftest.err
15683 cat conftest.err >&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); } &&
15686 { ac_try='test -z "$ac_cxx_werror_flag"
15687 || test ! -s conftest.err'
15688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689 (eval $ac_try) 2>&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); }; } &&
15693 { ac_try='test -s conftest$ac_exeext'
15694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15695 (eval $ac_try) 2>&5
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); }; }; then
15700 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15702 # Check for a 64-bit object if we didn't find anything.
15703 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; }
15706 echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15710 rm -f conftest.err conftest.$ac_objext \
15711 conftest$ac_exeext conftest.$ac_ext
15712 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15714 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15715 # Warning - without using the other run time loading flags,
15716 # -berok will link without error, but may produce a broken library.
15717 no_undefined_flag_CXX=' ${wl}-bernotok'
15718 allow_undefined_flag_CXX=' ${wl}-berok'
15719 # -bexpall does not export symbols beginning with underscore (_)
15720 always_export_symbols_CXX=yes
15721 # Exported symbols can be pulled into shared objects from archives
15722 whole_archive_flag_spec_CXX=' '
15723 archive_cmds_need_lc_CXX=yes
15724 # This is similar to how AIX traditionally builds it's shared libraries.
15725 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'
15730 case $cc_basename in
15732 # FIXME: insert proper C++ library support
15739 cygwin* | mingw* | pw32*)
15740 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15741 # as there is no search path for DLLs.
15742 hardcode_libdir_flag_spec_CXX='-L$libdir'
15743 allow_undefined_flag_CXX=unsupported
15744 always_export_symbols_CXX=no
15745 enable_shared_with_static_runtimes_CXX=yes
15747 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15748 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'
15749 # If the export-symbols file already is a .def file (1st line
15750 # is EXPORTS), use it as is; otherwise, prepend...
15751 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15752 cp $export_symbols $output_objdir/$soname.def;
15754 echo EXPORTS > $output_objdir/$soname.def;
15755 cat $export_symbols >> $output_objdir/$soname.def;
15757 $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'
15762 darwin* | rhapsody*)
15764 rhapsody* | darwin1.[012])
15765 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15768 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15769 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15771 case ${MACOSX_DEPLOYMENT_TARGET} in
15773 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15776 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15782 archive_cmds_need_lc_CXX=no
15783 hardcode_direct_CXX=no
15784 hardcode_automatic_CXX=yes
15785 hardcode_shlibpath_var_CXX=unsupported
15786 whole_archive_flag_spec_CXX=''
15787 link_all_deplibs_CXX=yes
15789 if test "$GXX" = yes ; then
15790 lt_int_apple_cc_single_mod=no
15791 output_verbose_link_cmd='echo'
15792 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15793 lt_int_apple_cc_single_mod=yes
15795 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15796 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15798 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'
15800 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15801 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15802 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15803 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}'
15805 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}'
15807 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}'
15809 case "$cc_basename" in
15811 output_verbose_link_cmd='echo'
15812 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'
15813 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15814 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15815 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}'
15816 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}'
15826 case $cc_basename in
15828 # FIXME: insert proper C++ library support
15832 # Green Hills C++ Compiler
15833 # FIXME: insert proper C++ library support
15837 # FIXME: insert proper C++ library support
15843 # C++ shared libraries reported to be fairly broken before switch to ELF
15847 archive_cmds_need_lc_CXX=no
15849 freebsd* | kfreebsd*-gnu)
15850 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15857 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15858 hardcode_libdir_separator_CXX=:
15859 export_dynamic_flag_spec_CXX='${wl}-E'
15860 hardcode_direct_CXX=yes
15861 hardcode_minus_L_CXX=yes # Not in the search PATH,
15862 # but as the default
15863 # location of the library.
15865 case $cc_basename in
15867 # FIXME: insert proper C++ library support
15871 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'
15872 # Commands to make compiler produce verbose output that lists
15873 # what "hidden" libraries, object files and flags are used when
15874 # linking a shared library.
15876 # There doesn't appear to be a way to prevent this compiler from
15877 # explicitly linking system object files so we need to strip them
15878 # from the output so that they don't get included in the library
15880 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'
15883 if test "$GXX" = yes; then
15884 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'
15886 # FIXME: insert proper C++ library support
15893 if test $with_gnu_ld = no; then
15894 case "$host_cpu" in
15896 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15897 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15898 hardcode_libdir_separator_CXX=:
15901 hardcode_libdir_flag_spec_CXX='-L$libdir'
15904 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15905 hardcode_libdir_separator_CXX=:
15906 export_dynamic_flag_spec_CXX='${wl}-E'
15910 case "$host_cpu" in
15912 hardcode_direct_CXX=no
15913 hardcode_shlibpath_var_CXX=no
15916 hardcode_direct_CXX=no
15917 hardcode_shlibpath_var_CXX=no
15918 hardcode_minus_L_CXX=yes # Not in the search PATH,
15919 # but as the default
15920 # location of the library.
15923 hardcode_direct_CXX=yes
15924 hardcode_minus_L_CXX=yes # Not in the search PATH,
15925 # but as the default
15926 # location of the library.
15930 case $cc_basename in
15932 # FIXME: insert proper C++ library support
15936 case "$host_cpu" in
15938 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15941 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15944 # Commands to make compiler produce verbose output that lists
15945 # what "hidden" libraries, object files and flags are used when
15946 # linking a shared library.
15948 # There doesn't appear to be a way to prevent this compiler from
15949 # explicitly linking system object files so we need to strip them
15950 # from the output so that they don't get included in the library
15952 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'
15955 if test "$GXX" = yes; then
15956 if test $with_gnu_ld = no; then
15957 case "$host_cpu" in
15959 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15962 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'
15967 # FIXME: insert proper C++ library support
15974 case $cc_basename in
15977 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'
15979 # Archives containing C++ object files must be created using
15980 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15981 # necessary to make sure instantiated templates are included
15983 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15986 if test "$GXX" = yes; then
15987 if test "$with_gnu_ld" = no; then
15988 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'
15990 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'
15993 link_all_deplibs_CXX=yes
15996 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15997 hardcode_libdir_separator_CXX=:
16000 case $cc_basename in
16002 # Kuck and Associates, Inc. (KAI) C++ Compiler
16004 # KCC will only create a shared library if the output file
16005 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16006 # to its proper name (with version) after linking.
16007 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'
16008 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'
16009 # Commands to make compiler produce verbose output that lists
16010 # what "hidden" libraries, object files and flags are used when
16011 # linking a shared library.
16013 # There doesn't appear to be a way to prevent this compiler from
16014 # explicitly linking system object files so we need to strip them
16015 # from the output so that they don't get included in the library
16017 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'
16019 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16020 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16022 # Archives containing C++ object files must be created using
16023 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16024 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16029 # version 8.0 and above of icpc choke on multiply defined symbols
16030 # if we add $predep_objects and $postdep_objects, however 7.1 and
16031 # earlier do not add the objects themselves.
16032 case `$CC -V 2>&1` in
16034 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16035 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'
16037 *) # Version 8.0 or newer
16038 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16039 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16042 archive_cmds_need_lc_CXX=no
16043 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16044 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16045 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16049 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16050 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'
16052 runpath_var=LD_RUN_PATH
16053 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16054 hardcode_libdir_separator_CXX=:
16056 # Commands to make compiler produce verbose output that lists
16057 # what "hidden" libraries, object files and flags are used when
16058 # linking a shared library.
16060 # There doesn't appear to be a way to prevent this compiler from
16061 # explicitly linking system object files so we need to strip them
16062 # from the output so that they don't get included in the library
16064 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'
16069 # FIXME: insert proper C++ library support
16073 # FIXME: insert proper C++ library support
16077 case $cc_basename in
16079 # FIXME: insert proper C++ library support
16083 # FIXME: insert proper C++ library support
16089 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16090 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16092 hardcode_libdir_flag_spec_CXX='-R$libdir'
16093 hardcode_direct_CXX=yes
16094 hardcode_shlibpath_var_CXX=no
16096 # Workaround some broken pre-1.5 toolchains
16097 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16100 # C++ shared libraries are fairly broken
16104 hardcode_direct_CXX=yes
16105 hardcode_shlibpath_var_CXX=no
16106 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16107 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16108 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16109 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16110 export_dynamic_flag_spec_CXX='${wl}-E'
16111 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16113 output_verbose_link_cmd='echo'
16116 case $cc_basename in
16118 # Kuck and Associates, Inc. (KAI) C++ Compiler
16120 # KCC will only create a shared library if the output file
16121 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16122 # to its proper name (with version) after linking.
16123 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'
16125 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16126 hardcode_libdir_separator_CXX=:
16128 # Archives containing C++ object files must be created using
16129 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16130 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16134 # Rational C++ 2.4.1
16135 # FIXME: insert proper C++ library support
16139 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16140 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'
16142 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16143 hardcode_libdir_separator_CXX=:
16145 # Commands to make compiler produce verbose output that lists
16146 # what "hidden" libraries, object files and flags are used when
16147 # linking a shared library.
16149 # There doesn't appear to be a way to prevent this compiler from
16150 # explicitly linking system object files so we need to strip them
16151 # from the output so that they don't get included in the library
16153 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'
16156 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16157 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16158 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'
16160 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16161 hardcode_libdir_separator_CXX=:
16163 # Commands to make compiler produce verbose output that lists
16164 # what "hidden" libraries, object files and flags are used when
16165 # linking a shared library.
16166 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16169 # FIXME: insert proper C++ library support
16176 case $cc_basename in
16178 # Kuck and Associates, Inc. (KAI) C++ Compiler
16180 # KCC will only create a shared library if the output file
16181 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16182 # to its proper name (with version) after linking.
16183 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'
16185 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16186 hardcode_libdir_separator_CXX=:
16188 # Archives containing C++ object files must be created using
16189 # the KAI C++ compiler.
16190 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16193 # Rational C++ 2.4.1
16194 # FIXME: insert proper C++ library support
16198 allow_undefined_flag_CXX=' -expect_unresolved \*'
16199 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'
16200 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16201 echo "-hidden">> $lib.exp~
16202 $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~
16205 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16206 hardcode_libdir_separator_CXX=:
16208 # Commands to make compiler produce verbose output that lists
16209 # what "hidden" libraries, object files and flags are used when
16210 # linking a shared library.
16212 # There doesn't appear to be a way to prevent this compiler from
16213 # explicitly linking system object files so we need to strip them
16214 # from the output so that they don't get included in the library
16216 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'
16219 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16220 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16221 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'
16223 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16224 hardcode_libdir_separator_CXX=:
16226 # Commands to make compiler produce verbose output that lists
16227 # what "hidden" libraries, object files and flags are used when
16228 # linking a shared library.
16229 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16232 # FIXME: insert proper C++ library support
16239 # FIXME: insert proper C++ library support
16243 archive_cmds_need_lc_CXX=no
16244 case $cc_basename in
16246 # FIXME: insert proper C++ library support
16250 # FIXME: insert proper C++ library support
16256 case $cc_basename in
16259 # FIXME: insert proper C++ library support
16264 # FIXME: insert proper C++ library support
16268 # FIXME: insert proper C++ library support
16274 case $cc_basename in
16276 # Sun C++ 4.2, 5.x and Centerline C++
16277 no_undefined_flag_CXX=' -zdefs'
16278 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16279 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16280 $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'
16282 hardcode_libdir_flag_spec_CXX='-R$libdir'
16283 hardcode_shlibpath_var_CXX=no
16285 solaris2.0-5 | solaris2.0-5.*) ;;
16287 # The C++ compiler is used as linker so we must use $wl
16288 # flag to pass the commands to the underlying system
16290 # Supported since Solaris 2.6 (maybe 2.5.1?)
16291 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16294 link_all_deplibs_CXX=yes
16296 # Commands to make compiler produce verbose output that lists
16297 # what "hidden" libraries, object files and flags are used when
16298 # linking a shared library.
16300 # There doesn't appear to be a way to prevent this compiler from
16301 # explicitly linking system object files so we need to strip them
16302 # from the output so that they don't get included in the library
16304 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'
16306 # Archives containing C++ object files must be created using
16307 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16308 # necessary to make sure instantiated templates are included
16310 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16313 # Green Hills C++ Compiler
16314 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16316 # The C++ compiler must be used to create the archive.
16317 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16320 # GNU C++ compiler with Solaris linker
16321 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16322 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16323 if $CC --version | grep -v '^2\.7' > /dev/null; then
16324 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16325 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16326 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16328 # Commands to make compiler produce verbose output that lists
16329 # what "hidden" libraries, object files and flags are used when
16330 # linking a shared library.
16331 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16333 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16335 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16336 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16337 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16339 # Commands to make compiler produce verbose output that lists
16340 # what "hidden" libraries, object files and flags are used when
16341 # linking a shared library.
16342 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16345 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16350 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16351 archive_cmds_need_lc_CXX=no
16354 case $cc_basename in
16356 # NonStop-UX NCC 3.20
16357 # FIXME: insert proper C++ library support
16361 # FIXME: insert proper C++ library support
16367 # FIXME: insert proper C++ library support
16371 # FIXME: insert proper C++ library support
16375 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16376 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16377 test "$ld_shlibs_CXX" = no && can_build_shared=no
16383 cat > conftest.$ac_ext <<EOF
16387 Foo (void) { a = 0; }
16393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16394 (eval $ac_compile) 2>&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); }; then
16398 # Parse the compiler output and extract the necessary
16399 # objects, libraries and library flags.
16401 # Sentinel used to keep track of whether or not we are before
16402 # the conftest object file.
16403 pre_test_object_deps_done=no
16405 # The `*' in the case matches for architectures that use `case' in
16406 # $output_verbose_cmd can trigger glob expansion during the loop
16407 # eval without this substitution.
16408 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16410 for p in `eval $output_verbose_link_cmd`; do
16414 # Some compilers place space between "-{L,R}" and the path.
16415 # Remove the space.
16416 if test $p = "-L" \
16417 || test $p = "-R"; then
16424 if test "$pre_test_object_deps_done" = no; then
16427 # Internal compiler library paths should come after those
16428 # provided the user. The postdeps already come after the
16429 # user supplied libs so there is no need to process them.
16430 if test -z "$compiler_lib_search_path_CXX"; then
16431 compiler_lib_search_path_CXX="${prev}${p}"
16433 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16436 # The "-l" case would never come before the object being
16437 # linked, so don't bother handling this case.
16440 if test -z "$postdeps_CXX"; then
16441 postdeps_CXX="${prev}${p}"
16443 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16449 # This assumes that the test object file only shows up
16450 # once in the compiler output.
16451 if test "$p" = "conftest.$objext"; then
16452 pre_test_object_deps_done=yes
16456 if test "$pre_test_object_deps_done" = no; then
16457 if test -z "$predep_objects_CXX"; then
16458 predep_objects_CXX="$p"
16460 predep_objects_CXX="$predep_objects_CXX $p"
16463 if test -z "$postdep_objects_CXX"; then
16464 postdep_objects_CXX="$p"
16466 postdep_objects_CXX="$postdep_objects_CXX $p"
16471 *) ;; # Ignore the rest.
16479 echo "libtool.m4: error: problem compiling CXX test program"
16482 $rm -f confest.$objext
16484 case " $postdeps_CXX " in
16485 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16488 lt_prog_compiler_wl_CXX=
16489 lt_prog_compiler_pic_CXX=
16490 lt_prog_compiler_static_CXX=
16492 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16493 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16495 # C++ specific cases for pic, static, wl, etc.
16496 if test "$GXX" = yes; then
16497 lt_prog_compiler_wl_CXX='-Wl,'
16498 lt_prog_compiler_static_CXX='-static'
16502 # All AIX code is PIC.
16503 if test "$host_cpu" = ia64; then
16504 # AIX 5 now supports IA64 processor
16505 lt_prog_compiler_static_CXX='-Bstatic'
16509 # FIXME: we need at least 68020 code to build shared libraries, but
16510 # adding the `-m68020' flag to GCC prevents building anything better,
16512 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16514 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16515 # PIC is the default for these OSes.
16517 mingw* | os2* | pw32*)
16518 # This hack is so that the source file can tell whether it is being
16519 # built for inclusion in a dll (and should export symbols for example).
16520 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16522 darwin* | rhapsody*)
16523 # PIC is the default on this platform
16524 # Common symbols not allowed in MH_DYLIB files
16525 lt_prog_compiler_pic_CXX='-fno-common'
16528 # DJGPP does not support shared libraries at all
16529 lt_prog_compiler_pic_CXX=
16532 if test -d /usr/nec; then
16533 lt_prog_compiler_pic_CXX=-Kconform_pic
16537 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16538 # not for PA HP-UX.
16539 case "$host_cpu" in
16543 lt_prog_compiler_pic_CXX='-fPIC'
16548 lt_prog_compiler_pic_CXX='-fPIC'
16554 # All AIX code is PIC.
16555 if test "$host_cpu" = ia64; then
16556 # AIX 5 now supports IA64 processor
16557 lt_prog_compiler_static_CXX='-Bstatic'
16559 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16563 case $cc_basename in
16565 # Green Hills C++ Compiler
16566 # _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"
16571 # PIC is the default on this platform
16572 # Common symbols not allowed in MH_DYLIB files
16573 case "$cc_basename" in
16575 lt_prog_compiler_pic_CXX='-qnocommon'
16576 lt_prog_compiler_wl_CXX='-Wl,'
16581 case $cc_basename in
16583 lt_prog_compiler_pic_CXX='-KPIC'
16586 # Green Hills C++ Compiler
16587 lt_prog_compiler_pic_CXX='-pic'
16593 freebsd* | kfreebsd*-gnu)
16594 # FreeBSD uses GNU C++
16596 hpux9* | hpux10* | hpux11*)
16597 case $cc_basename in
16599 lt_prog_compiler_wl_CXX='-Wl,'
16600 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16601 if test "$host_cpu" != ia64; then
16602 lt_prog_compiler_pic_CXX='+Z'
16606 lt_prog_compiler_wl_CXX='-Wl,'
16607 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16608 case "$host_cpu" in
16613 lt_prog_compiler_pic_CXX='+Z'
16621 irix5* | irix6* | nonstopux*)
16622 case $cc_basename in
16624 lt_prog_compiler_wl_CXX='-Wl,'
16625 lt_prog_compiler_static_CXX='-non_shared'
16626 # CC pic flag -KPIC is the default.
16633 case $cc_basename in
16636 lt_prog_compiler_wl_CXX='--backend -Wl,'
16637 lt_prog_compiler_pic_CXX='-fPIC'
16641 lt_prog_compiler_wl_CXX='-Wl,'
16642 lt_prog_compiler_pic_CXX='-KPIC'
16643 lt_prog_compiler_static_CXX='-static'
16647 # Make sure the PIC flag is empty. It appears that all Alpha
16648 # Linux and Compaq Tru64 Unix objects are PIC.
16649 lt_prog_compiler_pic_CXX=
16650 lt_prog_compiler_static_CXX='-non_shared'
16661 case $cc_basename in
16663 lt_prog_compiler_pic_CXX='-W c,exportall'
16671 osf3* | osf4* | osf5*)
16672 case $cc_basename in
16674 lt_prog_compiler_wl_CXX='--backend -Wl,'
16677 # Rational C++ 2.4.1
16678 lt_prog_compiler_pic_CXX='-pic'
16681 # Digital/Compaq C++
16682 lt_prog_compiler_wl_CXX='-Wl,'
16683 # Make sure the PIC flag is empty. It appears that all Alpha
16684 # Linux and Compaq Tru64 Unix objects are PIC.
16685 lt_prog_compiler_pic_CXX=
16686 lt_prog_compiler_static_CXX='-non_shared'
16695 case $cc_basename in
16697 lt_prog_compiler_pic_CXX='-fPIC'
16704 case $cc_basename in
16706 # Sun C++ 4.2, 5.x and Centerline C++
16707 lt_prog_compiler_pic_CXX='-KPIC'
16708 lt_prog_compiler_static_CXX='-Bstatic'
16709 lt_prog_compiler_wl_CXX='-Qoption ld '
16712 # Green Hills C++ Compiler
16713 lt_prog_compiler_pic_CXX='-PIC'
16720 case $cc_basename in
16723 lt_prog_compiler_pic_CXX='-pic'
16724 lt_prog_compiler_static_CXX='-Bstatic'
16728 lt_prog_compiler_pic_CXX='-pic'
16735 case $cc_basename in
16737 # NonStop-UX NCC 3.20
16738 lt_prog_compiler_pic_CXX='-KPIC'
16749 lt_prog_compiler_can_build_shared_CXX=no
16754 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16755 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16758 # Check to make sure the PIC flag actually works.
16760 if test -n "$lt_prog_compiler_pic_CXX"; then
16762 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16763 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16764 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16765 echo $ECHO_N "(cached) $ECHO_C" >&6
16767 lt_prog_compiler_pic_works_CXX=no
16768 ac_outfile=conftest.$ac_objext
16769 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16770 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16771 # Insert the option either (1) after the last *FLAGS variable, or
16772 # (2) before a word containing "conftest.", or (3) at the end.
16773 # Note that $ac_compile itself does not contain backslashes and begins
16774 # with a dollar sign (not a hyphen), so the echo should work correctly.
16775 # The option is referenced via a variable to avoid confusing sed.
16776 lt_compile=`echo "$ac_compile" | $SED \
16777 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16779 -e 's:$: $lt_compiler_flag:'`
16780 (eval echo "\"\$as_me:16780: $lt_compile\"" >&5)
16781 (eval "$lt_compile" 2>conftest.err)
16783 cat conftest.err >&5
16784 echo "$as_me:16784: \$? = $ac_status" >&5
16785 if (exit $ac_status) && test -s "$ac_outfile"; then
16786 # The compiler can only warn and ignore the option if not recognized
16787 # So say no if there are warnings
16788 if test ! -s conftest.err; then
16789 lt_prog_compiler_pic_works_CXX=yes
16795 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16796 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16798 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16799 case $lt_prog_compiler_pic_CXX in
16801 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16804 lt_prog_compiler_pic_CXX=
16805 lt_prog_compiler_can_build_shared_CXX=no
16810 # For platforms which do not support PIC, -DPIC is meaningless:
16812 lt_prog_compiler_pic_CXX=
16815 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16819 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16820 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16821 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16824 lt_cv_prog_compiler_c_o_CXX=no
16825 $rm -r conftest 2>/dev/null
16829 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16831 lt_compiler_flag="-o out/conftest2.$ac_objext"
16832 # Insert the option either (1) after the last *FLAGS variable, or
16833 # (2) before a word containing "conftest.", or (3) at the end.
16834 # Note that $ac_compile itself does not contain backslashes and begins
16835 # with a dollar sign (not a hyphen), so the echo should work correctly.
16836 lt_compile=`echo "$ac_compile" | $SED \
16837 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16838 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16839 -e 's:$: $lt_compiler_flag:'`
16840 (eval echo "\"\$as_me:16840: $lt_compile\"" >&5)
16841 (eval "$lt_compile" 2>out/conftest.err)
16843 cat out/conftest.err >&5
16844 echo "$as_me:16844: \$? = $ac_status" >&5
16845 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16847 # The compiler can only warn and ignore the option if not recognized
16848 # So say no if there are warnings
16849 if test ! -s out/conftest.err; then
16850 lt_cv_prog_compiler_c_o_CXX=yes
16855 # SGI C++ compiler will create directory out/ii_files/ for
16856 # template instantiation
16857 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16858 $rm out/* && rmdir out
16864 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16865 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16868 hard_links="nottested"
16869 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16870 # do not overwrite the value of need_locks provided by the user
16871 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16872 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16877 ln conftest.a conftest.b 2>&5 || hard_links=no
16878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16879 echo "$as_me:$LINENO: result: $hard_links" >&5
16880 echo "${ECHO_T}$hard_links" >&6
16881 if test "$hard_links" = no; then
16882 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16883 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16890 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16891 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16893 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16896 # If we're using GNU nm, then we don't want the "-C" option.
16897 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16898 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16899 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'
16901 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'
16905 export_symbols_cmds_CXX="$ltdll_cmds"
16908 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16911 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16915 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16916 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16917 test "$ld_shlibs_CXX" = no && can_build_shared=no
16919 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16920 if test "$GCC" = yes; then
16921 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16925 # Do we need to explicitly link libc?
16927 case "x$archive_cmds_need_lc_CXX" in
16929 # Assume -lc should be added
16930 archive_cmds_need_lc_CXX=yes
16932 if test "$enable_shared" = yes && test "$GCC" = yes; then
16933 case $archive_cmds_CXX in
16935 # FIXME: we may have to deal with multi-command sequences.
16938 # Test whether the compiler implicitly links with -lc since on some
16939 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16940 # to ld, don't add -lc before -lgcc.
16941 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16942 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16944 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16947 (eval $ac_compile) 2>&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); } 2>conftest.err; then
16953 libobjs=conftest.$ac_objext
16955 wl=$lt_prog_compiler_wl_CXX
16961 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16962 allow_undefined_flag_CXX=
16963 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16964 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }
16969 archive_cmds_need_lc_CXX=no
16971 archive_cmds_need_lc_CXX=yes
16973 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16975 cat conftest.err 1>&5
16978 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16979 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16986 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16987 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16988 library_names_spec=
16989 libname_spec='lib$name'
16993 postuninstall_cmds=
16997 shlibpath_overrides_runpath=unknown
16999 dynamic_linker="$host_os ld.so"
17000 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17001 if test "$GCC" = yes; then
17002 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17003 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17004 # if the path contains ";" then we assume it to be the separator
17005 # otherwise default to the standard path separator (i.e. ":") - it is
17006 # assumed that no part of a normal pathname contains ";" but that should
17007 # okay in the real world where ";" in dirpaths is itself problematic.
17008 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17013 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17015 need_lib_prefix=unknown
17016 hardcode_into_libs=no
17018 # when you set need_version to no, make sure it does not cause -set_version
17019 # flags to be left without arguments
17020 need_version=unknown
17025 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17026 shlibpath_var=LIBPATH
17028 # AIX 3 has no versioning support, so we append a major version to the name.
17029 soname_spec='${libname}${release}${shared_ext}$major'
17036 hardcode_into_libs=yes
17037 if test "$host_cpu" = ia64; then
17038 # AIX 5 supports IA64
17039 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17040 shlibpath_var=LD_LIBRARY_PATH
17042 # With GCC up to 2.95.x, collect2 would create an import file
17043 # for dependence libraries. The import file would start with
17044 # the line `#! .'. This would cause the generated library to
17045 # depend on `.', always an invalid library. This was fixed in
17046 # development snapshots of GCC prior to 3.0.
17048 aix4 | aix4.[01] | aix4.[01].*)
17049 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17051 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17054 can_build_shared=no
17058 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17059 # soname into executable. Probably we can add versioning support to
17060 # collect2, so additional links can be useful in future.
17061 if test "$aix_use_runtimelinking" = yes; then
17062 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17063 # instead of lib<name>.a to let people know that these are not
17064 # typical AIX shared libraries.
17065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17067 # We preserve .a as extension for shared libraries through AIX4.2
17068 # and later when we are not doing run time linking.
17069 library_names_spec='${libname}${release}.a $libname.a'
17070 soname_spec='${libname}${release}${shared_ext}$major'
17072 shlibpath_var=LIBPATH
17077 library_names_spec='$libname.ixlibrary $libname.a'
17078 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17079 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'
17083 library_names_spec='${libname}${shared_ext}'
17084 dynamic_linker="$host_os ld.so"
17085 shlibpath_var=LIBRARY_PATH
17091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092 soname_spec='${libname}${release}${shared_ext}$major'
17093 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17094 shlibpath_var=LD_LIBRARY_PATH
17095 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17096 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17097 # the default ld.so.conf also contains /usr/contrib/lib and
17098 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17099 # libtool to hard-code these into programs
17102 cygwin* | mingw* | pw32*)
17103 version_type=windows
17108 case $GCC,$host_os in
17109 yes,cygwin* | yes,mingw* | yes,pw32*)
17110 library_names_spec='$libname.dll.a'
17111 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17112 postinstall_cmds='base_file=`basename \${file}`~
17113 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17114 dldir=$destdir/`dirname \$dlpath`~
17115 test -d \$dldir || mkdir -p \$dldir~
17116 $install_prog $dir/$dlname \$dldir/$dlname'
17117 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17118 dlpath=$dir/\$dldll~
17120 shlibpath_overrides_runpath=yes
17124 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17125 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17126 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17129 # MinGW DLLs use traditional 'lib' prefix
17130 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17131 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17132 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17133 # It is most probably a Windows format PATH printed by
17134 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17135 # path with ; separators, and with drive letters. We can handle the
17136 # drive letters (cygwin fileutils understands them), so leave them,
17137 # especially as we might pass files found there to a mingw objdump,
17138 # which wouldn't understand a cygwinified path. Ahh.
17139 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17141 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17145 # pw32 DLLs use 'pw' prefix rather than 'lib'
17146 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17152 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17155 dynamic_linker='Win32 ld.exe'
17156 # FIXME: first we should search . and the directory the executable is in
17160 darwin* | rhapsody*)
17161 dynamic_linker="$host_os dyld"
17162 version_type=darwin
17165 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17166 soname_spec='${libname}${release}${major}$shared_ext'
17167 shlibpath_overrides_runpath=yes
17168 shlibpath_var=DYLD_LIBRARY_PATH
17169 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17170 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17171 if test "$GCC" = yes; then
17172 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"`
17174 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17176 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17184 soname_spec='${libname}${release}${shared_ext}$major'
17185 shlibpath_var=LD_LIBRARY_PATH
17196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17197 soname_spec='${libname}${release}${shared_ext}$major'
17198 shlibpath_var=LD_LIBRARY_PATH
17199 shlibpath_overrides_runpath=no
17200 hardcode_into_libs=yes
17201 dynamic_linker='GNU ld.so'
17205 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17206 version_type=freebsd-$objformat
17207 case $version_type in
17209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17214 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17218 shlibpath_var=LD_LIBRARY_PATH
17221 shlibpath_overrides_runpath=yes
17223 freebsd3.01* | freebsdelf3.01*)
17224 shlibpath_overrides_runpath=yes
17225 hardcode_into_libs=yes
17228 shlibpath_overrides_runpath=no
17229 hardcode_into_libs=yes
17238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17239 soname_spec='${libname}${release}${shared_ext}$major'
17240 shlibpath_var=LD_LIBRARY_PATH
17241 hardcode_into_libs=yes
17244 hpux9* | hpux10* | hpux11*)
17245 # Give a soname corresponding to the major version so that dld.sl refuses to
17246 # link against other versions.
17250 case "$host_cpu" in
17253 hardcode_into_libs=yes
17254 dynamic_linker="$host_os dld.so"
17255 shlibpath_var=LD_LIBRARY_PATH
17256 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17258 soname_spec='${libname}${release}${shared_ext}$major'
17259 if test "X$HPUX_IA64_MODE" = X32; then
17260 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17262 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17264 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17268 hardcode_into_libs=yes
17269 dynamic_linker="$host_os dld.sl"
17270 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17273 soname_spec='${libname}${release}${shared_ext}$major'
17274 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17275 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17279 dynamic_linker="$host_os dld.sl"
17280 shlibpath_var=SHLIB_PATH
17281 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17283 soname_spec='${libname}${release}${shared_ext}$major'
17286 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17287 postinstall_cmds='chmod 555 $lib'
17290 irix5* | irix6* | nonstopux*)
17292 nonstopux*) version_type=nonstopux ;;
17294 if test "$lt_cv_prog_gnu_ld" = yes; then
17302 soname_spec='${libname}${release}${shared_ext}$major'
17303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17305 irix5* | nonstopux*)
17306 libsuff= shlibsuff=
17309 case $LD in # libtool.m4 will add one of these switches to LD
17310 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17311 libsuff= shlibsuff= libmagic=32-bit;;
17312 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17313 libsuff=32 shlibsuff=N32 libmagic=N32;;
17314 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17315 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17316 *) libsuff= shlibsuff= libmagic=never-match;;
17320 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17321 shlibpath_overrides_runpath=no
17322 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17323 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17324 hardcode_into_libs=yes
17327 # No shared lib support for Linux oldld, aout, or coff.
17328 linux*oldld* | linux*aout* | linux*coff*)
17332 # This must be Linux ELF.
17337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17338 soname_spec='${libname}${release}${shared_ext}$major'
17339 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17340 shlibpath_var=LD_LIBRARY_PATH
17341 shlibpath_overrides_runpath=no
17342 # This implies no fast_install, which is unacceptable.
17343 # Some rework will be needed to allow for fast_install
17344 # before this can be enabled.
17345 hardcode_into_libs=yes
17347 # Append ld.so.conf contents to the search path
17348 if test -f /etc/ld.so.conf; then
17349 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17350 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17353 # We used to test for /lib/ld.so.1 and disable shared libraries on
17354 # powerpc, because MkLinux only supported shared libraries with the
17355 # GNU dynamic linker. Since this was broken with cross compilers,
17356 # most powerpc-linux boxes support dynamic linking these days and
17357 # people can always --disable-shared, the test was removed, and we
17358 # assume the GNU/Linux dynamic linker is in use.
17359 dynamic_linker='GNU/Linux ld.so'
17366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17367 soname_spec='${libname}${release}${shared_ext}$major'
17368 shlibpath_var=LD_LIBRARY_PATH
17369 shlibpath_overrides_runpath=no
17370 hardcode_into_libs=yes
17371 dynamic_linker='GNU ld.so'
17378 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17381 dynamic_linker='NetBSD (a.out) ld.so'
17383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17384 soname_spec='${libname}${release}${shared_ext}$major'
17385 dynamic_linker='NetBSD ld.elf_so'
17387 shlibpath_var=LD_LIBRARY_PATH
17388 shlibpath_overrides_runpath=yes
17389 hardcode_into_libs=yes
17394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17395 shlibpath_var=LD_LIBRARY_PATH
17396 shlibpath_overrides_runpath=yes
17403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17404 soname_spec='${libname}${release}${shared_ext}$major'
17405 shlibpath_var=LD_LIBRARY_PATH
17406 shlibpath_overrides_runpath=yes
17413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17415 shlibpath_var=LD_LIBRARY_PATH
17416 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17418 openbsd2.[89] | openbsd2.[89].*)
17419 shlibpath_overrides_runpath=no
17422 shlibpath_overrides_runpath=yes
17426 shlibpath_overrides_runpath=yes
17431 libname_spec='$name'
17434 library_names_spec='$libname${shared_ext} $libname.a'
17435 dynamic_linker='OS/2 ld.exe'
17436 shlibpath_var=LIBPATH
17439 osf3* | osf4* | osf5*)
17443 soname_spec='${libname}${release}${shared_ext}$major'
17444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17445 shlibpath_var=LD_LIBRARY_PATH
17446 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17447 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17452 soname_spec='${libname}${release}${shared_ext}$major'
17453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17454 shlibpath_var=LD_LIBRARY_PATH
17461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17462 soname_spec='${libname}${release}${shared_ext}$major'
17463 shlibpath_var=LD_LIBRARY_PATH
17464 shlibpath_overrides_runpath=yes
17465 hardcode_into_libs=yes
17466 # ldd complains unless libraries are executable
17467 postinstall_cmds='chmod +x $lib'
17472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17473 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17474 shlibpath_var=LD_LIBRARY_PATH
17475 shlibpath_overrides_runpath=yes
17476 if test "$with_gnu_ld" = yes; then
17482 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17485 soname_spec='${libname}${release}${shared_ext}$major'
17486 shlibpath_var=LD_LIBRARY_PATH
17487 case $host_vendor in
17489 shlibpath_overrides_runpath=no
17491 export_dynamic_flag_spec='${wl}-Blargedynsym'
17492 runpath_var=LD_RUN_PATH
17500 shlibpath_overrides_runpath=no
17501 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17507 if test -d /usr/nec ;then
17509 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17510 soname_spec='$libname${shared_ext}.$major'
17511 shlibpath_var=LD_LIBRARY_PATH
17517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17518 soname_spec='${libname}${release}${shared_ext}$major'
17519 shlibpath_var=LD_LIBRARY_PATH
17526 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17527 echo "${ECHO_T}$dynamic_linker" >&6
17528 test "$dynamic_linker" = no && can_build_shared=no
17530 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17531 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17532 hardcode_action_CXX=
17533 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17534 test -n "$runpath_var_CXX" || \
17535 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17537 # We can hardcode non-existant directories.
17538 if test "$hardcode_direct_CXX" != no &&
17539 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17540 # have to relink, otherwise we might link with an installed library
17541 # when we should be linking with a yet-to-be-installed one
17542 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17543 test "$hardcode_minus_L_CXX" != no; then
17544 # Linking always hardcodes the temporary library directory.
17545 hardcode_action_CXX=relink
17547 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17548 hardcode_action_CXX=immediate
17551 # We cannot hardcode anything, or else we can only hardcode existing
17553 hardcode_action_CXX=unsupported
17555 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17556 echo "${ECHO_T}$hardcode_action_CXX" >&6
17558 if test "$hardcode_action_CXX" = relink; then
17559 # Fast installation is not supported
17560 enable_fast_install=no
17561 elif test "$shlibpath_overrides_runpath" = yes ||
17562 test "$enable_shared" = no; then
17563 # Fast installation is not necessary
17564 enable_fast_install=needless
17569 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17570 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17571 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17572 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17573 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17574 echo "$as_me:$LINENO: result: yes" >&5
17575 echo "${ECHO_T}yes" >&6
17577 # FIXME - insert some real tests, host_os isn't really good enough
17580 if test -n "$STRIP" ; then
17581 striplib="$STRIP -x"
17582 echo "$as_me:$LINENO: result: yes" >&5
17583 echo "${ECHO_T}yes" >&6
17585 echo "$as_me:$LINENO: result: no" >&5
17586 echo "${ECHO_T}no" >&6
17590 echo "$as_me:$LINENO: result: no" >&5
17591 echo "${ECHO_T}no" >&6
17596 if test "x$enable_dlopen" != xyes; then
17597 enable_dlopen=unknown
17598 enable_dlopen_self=unknown
17599 enable_dlopen_self_static=unknown
17606 lt_cv_dlopen="load_add_on"
17608 lt_cv_dlopen_self=yes
17612 lt_cv_dlopen="LoadLibrary"
17617 lt_cv_dlopen="dlopen"
17622 # if libdl is installed we need to link against it
17623 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17624 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17625 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17628 ac_check_lib_save_LIBS=$LIBS
17630 cat >conftest.$ac_ext <<_ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h. */
17637 /* Override any gcc2 internal prototype to avoid an error. */
17641 /* We use char because int might match the return type of a gcc2
17642 builtin and then its argument prototype would still apply. */
17652 rm -f conftest.$ac_objext conftest$ac_exeext
17653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17654 (eval $ac_link) 2>conftest.er1
17656 grep -v '^ *+' conftest.er1 >conftest.err
17658 cat conftest.err >&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } &&
17661 { ac_try='test -z "$ac_cxx_werror_flag"
17662 || test ! -s conftest.err'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; } &&
17668 { ac_try='test -s conftest$ac_exeext'
17669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670 (eval $ac_try) 2>&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; }; then
17674 ac_cv_lib_dl_dlopen=yes
17676 echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17679 ac_cv_lib_dl_dlopen=no
17681 rm -f conftest.err conftest.$ac_objext \
17682 conftest$ac_exeext conftest.$ac_ext
17683 LIBS=$ac_check_lib_save_LIBS
17685 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17686 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17687 if test $ac_cv_lib_dl_dlopen = yes; then
17688 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17691 lt_cv_dlopen="dyld"
17693 lt_cv_dlopen_self=yes
17700 echo "$as_me:$LINENO: checking for shl_load" >&5
17701 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17702 if test "${ac_cv_func_shl_load+set}" = set; then
17703 echo $ECHO_N "(cached) $ECHO_C" >&6
17705 cat >conftest.$ac_ext <<_ACEOF
17708 cat confdefs.h >>conftest.$ac_ext
17709 cat >>conftest.$ac_ext <<_ACEOF
17710 /* end confdefs.h. */
17711 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17713 #define shl_load innocuous_shl_load
17715 /* System header to define __stub macros and hopefully few prototypes,
17716 which can conflict with char shl_load (); below.
17717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17718 <limits.h> exists even on freestanding compilers. */
17721 # include <limits.h>
17723 # include <assert.h>
17728 /* Override any gcc2 internal prototype to avoid an error. */
17733 /* We use char because int might match the return type of a gcc2
17734 builtin and then its argument prototype would still apply. */
17736 /* The GNU C library defines this for functions which it implements
17737 to always fail with ENOSYS. Some functions are actually named
17738 something starting with __ and the normal name is an alias. */
17739 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17742 char (*f) () = shl_load;
17751 return f != shl_load;
17756 rm -f conftest.$ac_objext conftest$ac_exeext
17757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17758 (eval $ac_link) 2>conftest.er1
17760 grep -v '^ *+' conftest.er1 >conftest.err
17762 cat conftest.err >&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } &&
17765 { ac_try='test -z "$ac_cxx_werror_flag"
17766 || test ! -s conftest.err'
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; } &&
17772 { ac_try='test -s conftest$ac_exeext'
17773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; }; then
17778 ac_cv_func_shl_load=yes
17780 echo "$as_me: failed program was:" >&5
17781 sed 's/^/| /' conftest.$ac_ext >&5
17783 ac_cv_func_shl_load=no
17785 rm -f conftest.err conftest.$ac_objext \
17786 conftest$ac_exeext conftest.$ac_ext
17788 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17789 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17790 if test $ac_cv_func_shl_load = yes; then
17791 lt_cv_dlopen="shl_load"
17793 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17794 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17795 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17798 ac_check_lib_save_LIBS=$LIBS
17800 cat >conftest.$ac_ext <<_ACEOF
17803 cat confdefs.h >>conftest.$ac_ext
17804 cat >>conftest.$ac_ext <<_ACEOF
17805 /* end confdefs.h. */
17807 /* Override any gcc2 internal prototype to avoid an error. */
17811 /* We use char because int might match the return type of a gcc2
17812 builtin and then its argument prototype would still apply. */
17822 rm -f conftest.$ac_objext conftest$ac_exeext
17823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17824 (eval $ac_link) 2>conftest.er1
17826 grep -v '^ *+' conftest.er1 >conftest.err
17828 cat conftest.err >&5
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); } &&
17831 { ac_try='test -z "$ac_cxx_werror_flag"
17832 || test ! -s conftest.err'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; } &&
17838 { ac_try='test -s conftest$ac_exeext'
17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; }; then
17844 ac_cv_lib_dld_shl_load=yes
17846 echo "$as_me: failed program was:" >&5
17847 sed 's/^/| /' conftest.$ac_ext >&5
17849 ac_cv_lib_dld_shl_load=no
17851 rm -f conftest.err conftest.$ac_objext \
17852 conftest$ac_exeext conftest.$ac_ext
17853 LIBS=$ac_check_lib_save_LIBS
17855 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17856 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17857 if test $ac_cv_lib_dld_shl_load = yes; then
17858 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17860 echo "$as_me:$LINENO: checking for dlopen" >&5
17861 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17862 if test "${ac_cv_func_dlopen+set}" = set; then
17863 echo $ECHO_N "(cached) $ECHO_C" >&6
17865 cat >conftest.$ac_ext <<_ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h. */
17871 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17873 #define dlopen innocuous_dlopen
17875 /* System header to define __stub macros and hopefully few prototypes,
17876 which can conflict with char dlopen (); below.
17877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17878 <limits.h> exists even on freestanding compilers. */
17881 # include <limits.h>
17883 # include <assert.h>
17888 /* Override any gcc2 internal prototype to avoid an error. */
17893 /* We use char because int might match the return type of a gcc2
17894 builtin and then its argument prototype would still apply. */
17896 /* The GNU C library defines this for functions which it implements
17897 to always fail with ENOSYS. Some functions are actually named
17898 something starting with __ and the normal name is an alias. */
17899 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17902 char (*f) () = dlopen;
17911 return f != dlopen;
17916 rm -f conftest.$ac_objext conftest$ac_exeext
17917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17918 (eval $ac_link) 2>conftest.er1
17920 grep -v '^ *+' conftest.er1 >conftest.err
17922 cat conftest.err >&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); } &&
17925 { ac_try='test -z "$ac_cxx_werror_flag"
17926 || test ! -s conftest.err'
17927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928 (eval $ac_try) 2>&5
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; } &&
17932 { ac_try='test -s conftest$ac_exeext'
17933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934 (eval $ac_try) 2>&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); }; }; then
17938 ac_cv_func_dlopen=yes
17940 echo "$as_me: failed program was:" >&5
17941 sed 's/^/| /' conftest.$ac_ext >&5
17943 ac_cv_func_dlopen=no
17945 rm -f conftest.err conftest.$ac_objext \
17946 conftest$ac_exeext conftest.$ac_ext
17948 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17949 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17950 if test $ac_cv_func_dlopen = yes; then
17951 lt_cv_dlopen="dlopen"
17953 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17954 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17955 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17956 echo $ECHO_N "(cached) $ECHO_C" >&6
17958 ac_check_lib_save_LIBS=$LIBS
17960 cat >conftest.$ac_ext <<_ACEOF
17963 cat confdefs.h >>conftest.$ac_ext
17964 cat >>conftest.$ac_ext <<_ACEOF
17965 /* end confdefs.h. */
17967 /* Override any gcc2 internal prototype to avoid an error. */
17971 /* We use char because int might match the return type of a gcc2
17972 builtin and then its argument prototype would still apply. */
17982 rm -f conftest.$ac_objext conftest$ac_exeext
17983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17984 (eval $ac_link) 2>conftest.er1
17986 grep -v '^ *+' conftest.er1 >conftest.err
17988 cat conftest.err >&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } &&
17991 { ac_try='test -z "$ac_cxx_werror_flag"
17992 || test ! -s conftest.err'
17993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994 (eval $ac_try) 2>&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; } &&
17998 { ac_try='test -s conftest$ac_exeext'
17999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000 (eval $ac_try) 2>&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; }; then
18004 ac_cv_lib_dl_dlopen=yes
18006 echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18009 ac_cv_lib_dl_dlopen=no
18011 rm -f conftest.err conftest.$ac_objext \
18012 conftest$ac_exeext conftest.$ac_ext
18013 LIBS=$ac_check_lib_save_LIBS
18015 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18016 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18017 if test $ac_cv_lib_dl_dlopen = yes; then
18018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18020 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18021 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18022 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18023 echo $ECHO_N "(cached) $ECHO_C" >&6
18025 ac_check_lib_save_LIBS=$LIBS
18026 LIBS="-lsvld $LIBS"
18027 cat >conftest.$ac_ext <<_ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h. */
18034 /* Override any gcc2 internal prototype to avoid an error. */
18038 /* We use char because int might match the return type of a gcc2
18039 builtin and then its argument prototype would still apply. */
18049 rm -f conftest.$ac_objext conftest$ac_exeext
18050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18051 (eval $ac_link) 2>conftest.er1
18053 grep -v '^ *+' conftest.er1 >conftest.err
18055 cat conftest.err >&5
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); } &&
18058 { ac_try='test -z "$ac_cxx_werror_flag"
18059 || test ! -s conftest.err'
18060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18061 (eval $ac_try) 2>&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); }; } &&
18065 { ac_try='test -s conftest$ac_exeext'
18066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067 (eval $ac_try) 2>&5
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); }; }; then
18071 ac_cv_lib_svld_dlopen=yes
18073 echo "$as_me: failed program was:" >&5
18074 sed 's/^/| /' conftest.$ac_ext >&5
18076 ac_cv_lib_svld_dlopen=no
18078 rm -f conftest.err conftest.$ac_objext \
18079 conftest$ac_exeext conftest.$ac_ext
18080 LIBS=$ac_check_lib_save_LIBS
18082 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18083 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18084 if test $ac_cv_lib_svld_dlopen = yes; then
18085 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18087 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18088 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18089 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
18092 ac_check_lib_save_LIBS=$LIBS
18094 cat >conftest.$ac_ext <<_ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h. */
18101 /* Override any gcc2 internal prototype to avoid an error. */
18105 /* We use char because int might match the return type of a gcc2
18106 builtin and then its argument prototype would still apply. */
18116 rm -f conftest.$ac_objext conftest$ac_exeext
18117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18118 (eval $ac_link) 2>conftest.er1
18120 grep -v '^ *+' conftest.er1 >conftest.err
18122 cat conftest.err >&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } &&
18125 { ac_try='test -z "$ac_cxx_werror_flag"
18126 || test ! -s conftest.err'
18127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18128 (eval $ac_try) 2>&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); }; } &&
18132 { ac_try='test -s conftest$ac_exeext'
18133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134 (eval $ac_try) 2>&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; }; then
18138 ac_cv_lib_dld_dld_link=yes
18140 echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18143 ac_cv_lib_dld_dld_link=no
18145 rm -f conftest.err conftest.$ac_objext \
18146 conftest$ac_exeext conftest.$ac_ext
18147 LIBS=$ac_check_lib_save_LIBS
18149 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18150 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18151 if test $ac_cv_lib_dld_dld_link = yes; then
18152 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18173 if test "x$lt_cv_dlopen" != xno; then
18179 case $lt_cv_dlopen in
18181 save_CPPFLAGS="$CPPFLAGS"
18182 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18184 save_LDFLAGS="$LDFLAGS"
18185 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18188 LIBS="$lt_cv_dlopen_libs $LIBS"
18190 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18191 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18192 if test "${lt_cv_dlopen_self+set}" = set; then
18193 echo $ECHO_N "(cached) $ECHO_C" >&6
18195 if test "$cross_compiling" = yes; then :
18196 lt_cv_dlopen_self=cross
18198 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18199 lt_status=$lt_dlunknown
18200 cat > conftest.$ac_ext <<EOF
18201 #line 18201 "configure"
18202 #include "confdefs.h"
18211 # define LT_DLGLOBAL RTLD_GLOBAL
18214 # define LT_DLGLOBAL DL_GLOBAL
18216 # define LT_DLGLOBAL 0
18220 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18221 find out it does not work in some platform. */
18222 #ifndef LT_DLLAZY_OR_NOW
18224 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18227 # define LT_DLLAZY_OR_NOW DL_LAZY
18230 # define LT_DLLAZY_OR_NOW RTLD_NOW
18233 # define LT_DLLAZY_OR_NOW DL_NOW
18235 # define LT_DLLAZY_OR_NOW 0
18243 extern "C" void exit (int);
18246 void fnord() { int i=42;}
18249 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18250 int status = $lt_dlunknown;
18254 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18255 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18256 /* dlclose (self); */
18262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18263 (eval $ac_link) 2>&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18267 (./conftest; exit; ) 2>/dev/null
18269 case x$lt_status in
18270 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18271 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18272 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18275 # compilation failed
18276 lt_cv_dlopen_self=no
18283 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18284 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18286 if test "x$lt_cv_dlopen_self" = xyes; then
18287 LDFLAGS="$LDFLAGS $link_static_flag"
18288 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18289 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18290 if test "${lt_cv_dlopen_self_static+set}" = set; then
18291 echo $ECHO_N "(cached) $ECHO_C" >&6
18293 if test "$cross_compiling" = yes; then :
18294 lt_cv_dlopen_self_static=cross
18296 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18297 lt_status=$lt_dlunknown
18298 cat > conftest.$ac_ext <<EOF
18299 #line 18299 "configure"
18300 #include "confdefs.h"
18309 # define LT_DLGLOBAL RTLD_GLOBAL
18312 # define LT_DLGLOBAL DL_GLOBAL
18314 # define LT_DLGLOBAL 0
18318 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18319 find out it does not work in some platform. */
18320 #ifndef LT_DLLAZY_OR_NOW
18322 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18325 # define LT_DLLAZY_OR_NOW DL_LAZY
18328 # define LT_DLLAZY_OR_NOW RTLD_NOW
18331 # define LT_DLLAZY_OR_NOW DL_NOW
18333 # define LT_DLLAZY_OR_NOW 0
18341 extern "C" void exit (int);
18344 void fnord() { int i=42;}
18347 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18348 int status = $lt_dlunknown;
18352 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18353 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18354 /* dlclose (self); */
18360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18361 (eval $ac_link) 2>&5
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18365 (./conftest; exit; ) 2>/dev/null
18367 case x$lt_status in
18368 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18369 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18370 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18373 # compilation failed
18374 lt_cv_dlopen_self_static=no
18381 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18382 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18385 CPPFLAGS="$save_CPPFLAGS"
18386 LDFLAGS="$save_LDFLAGS"
18391 case $lt_cv_dlopen_self in
18392 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18393 *) enable_dlopen_self=unknown ;;
18396 case $lt_cv_dlopen_self_static in
18397 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18398 *) enable_dlopen_self_static=unknown ;;
18403 # The else clause should only fire when bootstrapping the
18404 # libtool distribution, otherwise you forgot to ship ltmain.sh
18405 # with your package, and you will get complaints that there are
18406 # no rules to generate ltmain.sh.
18407 if test -f "$ltmain"; then
18408 # See if we are running on zsh, and set the options which allow our commands through
18409 # without removal of \ escapes.
18410 if test -n "${ZSH_VERSION+set}" ; then
18411 setopt NO_GLOB_SUBST
18413 # Now quote all the things that may contain metacharacters while being
18414 # careful not to overquote the AC_SUBSTed values. We take copies of the
18415 # variables and quote the copies for generation of the libtool script.
18416 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18418 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18419 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18420 deplibs_check_method reload_flag reload_cmds need_locks \
18421 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18422 lt_cv_sys_global_symbol_to_c_name_address \
18423 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18424 old_postinstall_cmds old_postuninstall_cmds \
18428 lt_prog_compiler_wl_CXX \
18429 lt_prog_compiler_pic_CXX \
18430 lt_prog_compiler_static_CXX \
18431 lt_prog_compiler_no_builtin_flag_CXX \
18432 export_dynamic_flag_spec_CXX \
18433 thread_safe_flag_spec_CXX \
18434 whole_archive_flag_spec_CXX \
18435 enable_shared_with_static_runtimes_CXX \
18436 old_archive_cmds_CXX \
18437 old_archive_from_new_cmds_CXX \
18438 predep_objects_CXX \
18439 postdep_objects_CXX \
18442 compiler_lib_search_path_CXX \
18444 archive_expsym_cmds_CXX \
18445 postinstall_cmds_CXX \
18446 postuninstall_cmds_CXX \
18447 old_archive_from_expsyms_cmds_CXX \
18448 allow_undefined_flag_CXX \
18449 no_undefined_flag_CXX \
18450 export_symbols_cmds_CXX \
18451 hardcode_libdir_flag_spec_CXX \
18452 hardcode_libdir_flag_spec_ld_CXX \
18453 hardcode_libdir_separator_CXX \
18454 hardcode_automatic_CXX \
18456 module_expsym_cmds_CXX \
18457 lt_cv_prog_compiler_c_o_CXX \
18458 exclude_expsyms_CXX \
18459 include_expsyms_CXX; do
18462 old_archive_cmds_CXX | \
18463 old_archive_from_new_cmds_CXX | \
18464 archive_cmds_CXX | \
18465 archive_expsym_cmds_CXX | \
18466 module_cmds_CXX | \
18467 module_expsym_cmds_CXX | \
18468 old_archive_from_expsyms_cmds_CXX | \
18469 export_symbols_cmds_CXX | \
18470 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18471 postinstall_cmds | postuninstall_cmds | \
18472 old_postinstall_cmds | old_postuninstall_cmds | \
18473 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18474 # Double-quote double-evaled strings.
18475 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18478 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18484 *'\$0 --fallback-echo"')
18485 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18491 cat <<__EOF__ >> "$cfgfile"
18492 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18494 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18496 # Shell to use when invoking shell scripts.
18499 # Whether or not to build shared libraries.
18500 build_libtool_libs=$enable_shared
18502 # Whether or not to build static libraries.
18503 build_old_libs=$enable_static
18505 # Whether or not to add -lc for building shared libraries.
18506 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18508 # Whether or not to disallow shared libs when runtime libs are static
18509 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18511 # Whether or not to optimize for fast installation.
18512 fast_install=$enable_fast_install
18515 host_alias=$host_alias
18518 # An echo program that does not interpret backslashes.
18523 AR_FLAGS=$lt_AR_FLAGS
18528 # A language-specific compiler.
18529 CC=$lt_compiler_CXX
18531 # Is the compiler the GNU C compiler?
18537 # The linker used to build libraries.
18540 # Whether we need hard or soft links.
18543 # A BSD-compatible nm program.
18546 # A symbol stripping program
18549 # Used to examine libraries when file_magic_cmd begins "file"
18550 MAGIC_CMD=$MAGIC_CMD
18552 # Used on cygwin: DLL creation program.
18555 # Used on cygwin: object dumper.
18558 # Used on cygwin: assembler.
18561 # The name of the directory that contains temporary libtool files.
18564 # How to create reloadable object files.
18565 reload_flag=$lt_reload_flag
18566 reload_cmds=$lt_reload_cmds
18568 # How to pass a linker flag through the compiler.
18569 wl=$lt_lt_prog_compiler_wl_CXX
18571 # Object file suffix (normally "o").
18572 objext="$ac_objext"
18574 # Old archive suffix (normally "a").
18577 # Shared library suffix (normally ".so").
18578 shrext_cmds='$shrext_cmds'
18580 # Executable file suffix (normally "").
18583 # Additional compiler flags for building library objects.
18584 pic_flag=$lt_lt_prog_compiler_pic_CXX
18587 # What is the maximum length of a command?
18588 max_cmd_len=$lt_cv_sys_max_cmd_len
18590 # Does compiler simultaneously support -c and -o options?
18591 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18593 # Must we lock files when doing compilation ?
18594 need_locks=$lt_need_locks
18596 # Do we need the lib prefix for modules?
18597 need_lib_prefix=$need_lib_prefix
18599 # Do we need a version for libraries?
18600 need_version=$need_version
18602 # Whether dlopen is supported.
18603 dlopen_support=$enable_dlopen
18605 # Whether dlopen of programs is supported.
18606 dlopen_self=$enable_dlopen_self
18608 # Whether dlopen of statically linked programs is supported.
18609 dlopen_self_static=$enable_dlopen_self_static
18611 # Compiler flag to prevent dynamic linking.
18612 link_static_flag=$lt_lt_prog_compiler_static_CXX
18614 # Compiler flag to turn off builtin functions.
18615 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18617 # Compiler flag to allow reflexive dlopens.
18618 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18620 # Compiler flag to generate shared objects directly from archives.
18621 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18623 # Compiler flag to generate thread-safe objects.
18624 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18626 # Library versioning type.
18627 version_type=$version_type
18629 # Format of library name prefix.
18630 libname_spec=$lt_libname_spec
18632 # List of archive names. First name is the real one, the rest are links.
18633 # The last name is the one that the linker finds with -lNAME.
18634 library_names_spec=$lt_library_names_spec
18636 # The coded name of the library, if different from the real name.
18637 soname_spec=$lt_soname_spec
18639 # Commands used to build and install an old-style archive.
18641 old_archive_cmds=$lt_old_archive_cmds_CXX
18642 old_postinstall_cmds=$lt_old_postinstall_cmds
18643 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18645 # Create an old-style archive from a shared archive.
18646 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18648 # Create a temporary old-style archive to link instead of a shared archive.
18649 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18651 # Commands used to build and install a shared archive.
18652 archive_cmds=$lt_archive_cmds_CXX
18653 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18654 postinstall_cmds=$lt_postinstall_cmds
18655 postuninstall_cmds=$lt_postuninstall_cmds
18657 # Commands used to build a loadable module (assumed same as above if empty)
18658 module_cmds=$lt_module_cmds_CXX
18659 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18661 # Commands to strip libraries.
18662 old_striplib=$lt_old_striplib
18663 striplib=$lt_striplib
18665 # Dependencies to place before the objects being linked to create a
18667 predep_objects=$lt_predep_objects_CXX
18669 # Dependencies to place after the objects being linked to create a
18671 postdep_objects=$lt_postdep_objects_CXX
18673 # Dependencies to place before the objects being linked to create a
18675 predeps=$lt_predeps_CXX
18677 # Dependencies to place after the objects being linked to create a
18679 postdeps=$lt_postdeps_CXX
18681 # The library search path used internally by the compiler when linking
18682 # a shared library.
18683 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18685 # Method to check whether dependent libraries are shared objects.
18686 deplibs_check_method=$lt_deplibs_check_method
18688 # Command to use when deplibs_check_method == file_magic.
18689 file_magic_cmd=$lt_file_magic_cmd
18691 # Flag that allows shared libraries with undefined symbols to be built.
18692 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18694 # Flag that forces no undefined symbols.
18695 no_undefined_flag=$lt_no_undefined_flag_CXX
18697 # Commands used to finish a libtool library installation in a directory.
18698 finish_cmds=$lt_finish_cmds
18700 # Same as above, but a single script fragment to be evaled but not shown.
18701 finish_eval=$lt_finish_eval
18703 # Take the output of nm and produce a listing of raw symbols and C names.
18704 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18706 # Transform the output of nm in a proper C declaration
18707 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18709 # Transform the output of nm in a C name address pair
18710 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18712 # This is the shared library runtime path variable.
18713 runpath_var=$runpath_var
18715 # This is the shared library path variable.
18716 shlibpath_var=$shlibpath_var
18718 # Is shlibpath searched before the hard-coded library search path?
18719 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18721 # How to hardcode a shared library path into an executable.
18722 hardcode_action=$hardcode_action_CXX
18724 # Whether we should hardcode library paths into libraries.
18725 hardcode_into_libs=$hardcode_into_libs
18727 # Flag to hardcode \$libdir into a binary during linking.
18728 # This must work even if \$libdir does not exist.
18729 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18731 # If ld is used when linking, flag to hardcode \$libdir into
18732 # a binary during linking. This must work even if \$libdir does
18734 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18736 # Whether we need a single -rpath flag with a separated argument.
18737 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18739 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18740 # resulting binary.
18741 hardcode_direct=$hardcode_direct_CXX
18743 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18744 # resulting binary.
18745 hardcode_minus_L=$hardcode_minus_L_CXX
18747 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18748 # the resulting binary.
18749 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18751 # Set to yes if building a shared library automatically hardcodes DIR into the library
18752 # and all subsequent libraries and executables linked against it.
18753 hardcode_automatic=$hardcode_automatic_CXX
18755 # Variables whose values should be saved in libtool wrapper scripts and
18756 # restored at relink time.
18757 variables_saved_for_relink="$variables_saved_for_relink"
18759 # Whether libtool must link a program against all its dependency libraries.
18760 link_all_deplibs=$link_all_deplibs_CXX
18762 # Compile-time system search path for libraries
18763 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18765 # Run-time system search path for libraries
18766 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18768 # Fix the shell variable \$srcfile for the compiler.
18769 fix_srcfile_path="$fix_srcfile_path_CXX"
18771 # Set to yes if exported symbols are required.
18772 always_export_symbols=$always_export_symbols_CXX
18774 # The commands to list exported symbols.
18775 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18777 # The commands to extract the exported symbol list from a shared archive.
18778 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18780 # Symbols that should not be listed in the preloaded symbols.
18781 exclude_expsyms=$lt_exclude_expsyms_CXX
18783 # Symbols that must always be exported.
18784 include_expsyms=$lt_include_expsyms_CXX
18786 # ### END LIBTOOL TAG CONFIG: $tagname
18792 # If there is no Makefile yet, we rely on a make rule to execute
18793 # `config.status --recheck' to rerun these tests and create the
18794 # libtool script then.
18795 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18796 if test -f "$ltmain_in"; then
18797 test -f Makefile && make "$ltmain"
18803 ac_cpp='$CPP $CPPFLAGS'
18804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18812 with_gnu_ldcxx=$with_gnu_ld
18813 with_gnu_ld=$lt_save_with_gnu_ld
18814 lt_cv_path_LDCXX=$lt_cv_path_LD
18815 lt_cv_path_LD=$lt_save_path_LD
18816 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18817 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18825 if test -n "$F77" && test "X$F77" != "Xno"; then
18828 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18829 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18830 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18833 archive_cmds_need_lc_F77=no
18834 allow_undefined_flag_F77=
18835 always_export_symbols_F77=no
18836 archive_expsym_cmds_F77=
18837 export_dynamic_flag_spec_F77=
18838 hardcode_direct_F77=no
18839 hardcode_libdir_flag_spec_F77=
18840 hardcode_libdir_flag_spec_ld_F77=
18841 hardcode_libdir_separator_F77=
18842 hardcode_minus_L_F77=no
18843 hardcode_automatic_F77=no
18845 module_expsym_cmds_F77=
18846 link_all_deplibs_F77=unknown
18847 old_archive_cmds_F77=$old_archive_cmds
18848 no_undefined_flag_F77=
18849 whole_archive_flag_spec_F77=
18850 enable_shared_with_static_runtimes_F77=no
18852 # Source file extension for f77 test sources.
18855 # Object file extension for compiled f77 test sources.
18859 # Code to be used in simple compile tests
18860 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18862 # Code to be used in simple link tests
18863 lt_simple_link_test_code=" program t\n end\n"
18865 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18867 # If no C compiler was specified, use CC.
18870 # Allow CC to be a program name with arguments.
18874 # Allow CC to be a program name with arguments.
18879 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18881 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18882 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18883 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18884 echo "${ECHO_T}$can_build_shared" >&6
18886 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18887 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18888 test "$can_build_shared" = "no" && enable_shared=no
18890 # On AIX, shared libraries and static libraries use the same namespace, and
18891 # are all built from PIC.
18894 test "$enable_shared" = yes && enable_static=no
18895 if test -n "$RANLIB"; then
18896 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18897 postinstall_cmds='$RANLIB $lib'
18901 test "$enable_shared" = yes && enable_static=no
18904 echo "$as_me:$LINENO: result: $enable_shared" >&5
18905 echo "${ECHO_T}$enable_shared" >&6
18907 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18908 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18909 # Make sure either enable_shared or enable_static is yes.
18910 test "$enable_shared" = yes || enable_static=yes
18911 echo "$as_me:$LINENO: result: $enable_static" >&5
18912 echo "${ECHO_T}$enable_static" >&6
18914 test "$ld_shlibs_F77" = no && can_build_shared=no
18919 lt_prog_compiler_wl_F77=
18920 lt_prog_compiler_pic_F77=
18921 lt_prog_compiler_static_F77=
18923 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18924 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18926 if test "$GCC" = yes; then
18927 lt_prog_compiler_wl_F77='-Wl,'
18928 lt_prog_compiler_static_F77='-static'
18932 # All AIX code is PIC.
18933 if test "$host_cpu" = ia64; then
18934 # AIX 5 now supports IA64 processor
18935 lt_prog_compiler_static_F77='-Bstatic'
18940 # FIXME: we need at least 68020 code to build shared libraries, but
18941 # adding the `-m68020' flag to GCC prevents building anything better,
18943 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18946 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18947 # PIC is the default for these OSes.
18950 mingw* | pw32* | os2*)
18951 # This hack is so that the source file can tell whether it is being
18952 # built for inclusion in a dll (and should export symbols for example).
18953 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18956 darwin* | rhapsody*)
18957 # PIC is the default on this platform
18958 # Common symbols not allowed in MH_DYLIB files
18959 lt_prog_compiler_pic_F77='-fno-common'
18963 # Just because we use GCC doesn't mean we suddenly get shared libraries
18964 # on systems that don't support them.
18965 lt_prog_compiler_can_build_shared_F77=no
18970 if test -d /usr/nec; then
18971 lt_prog_compiler_pic_F77=-Kconform_pic
18976 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18977 # not for PA HP-UX.
18978 case "$host_cpu" in
18983 lt_prog_compiler_pic_F77='-fPIC'
18989 lt_prog_compiler_pic_F77='-fPIC'
18993 # PORTME Check for flag to pass linker flags through the system compiler.
18996 lt_prog_compiler_wl_F77='-Wl,'
18997 if test "$host_cpu" = ia64; then
18998 # AIX 5 now supports IA64 processor
18999 lt_prog_compiler_static_F77='-Bstatic'
19001 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19005 # PIC is the default on this platform
19006 # Common symbols not allowed in MH_DYLIB files
19007 case "$cc_basename" in
19009 lt_prog_compiler_pic_F77='-qnocommon'
19010 lt_prog_compiler_wl_F77='-Wl,'
19015 mingw* | pw32* | os2*)
19016 # This hack is so that the source file can tell whether it is being
19017 # built for inclusion in a dll (and should export symbols for example).
19018 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19021 hpux9* | hpux10* | hpux11*)
19022 lt_prog_compiler_wl_F77='-Wl,'
19023 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19024 # not for PA HP-UX.
19025 case "$host_cpu" in
19030 lt_prog_compiler_pic_F77='+Z'
19033 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19034 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19037 irix5* | irix6* | nonstopux*)
19038 lt_prog_compiler_wl_F77='-Wl,'
19039 # PIC (with -KPIC) is the default.
19040 lt_prog_compiler_static_F77='-non_shared'
19044 lt_prog_compiler_pic_F77='-KPIC'
19045 lt_prog_compiler_static_F77='-Bstatic'
19051 lt_prog_compiler_wl_F77='-Wl,'
19052 lt_prog_compiler_pic_F77='-KPIC'
19053 lt_prog_compiler_static_F77='-static'
19056 lt_prog_compiler_wl_F77='-Wl,'
19057 # All Alpha code is PIC.
19058 lt_prog_compiler_static_F77='-non_shared'
19063 osf3* | osf4* | osf5*)
19064 lt_prog_compiler_wl_F77='-Wl,'
19065 # All OSF/1 code is PIC.
19066 lt_prog_compiler_static_F77='-non_shared'
19070 lt_prog_compiler_pic_F77='-Kpic'
19071 lt_prog_compiler_static_F77='-dn'
19075 lt_prog_compiler_wl_F77='-Wl,'
19076 lt_prog_compiler_pic_F77='-KPIC'
19077 lt_prog_compiler_static_F77='-Bstatic'
19081 lt_prog_compiler_wl_F77='-Qoption ld '
19082 lt_prog_compiler_pic_F77='-PIC'
19083 lt_prog_compiler_static_F77='-Bstatic'
19086 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19087 lt_prog_compiler_wl_F77='-Wl,'
19088 lt_prog_compiler_pic_F77='-KPIC'
19089 lt_prog_compiler_static_F77='-Bstatic'
19093 if test -d /usr/nec ;then
19094 lt_prog_compiler_pic_F77='-Kconform_pic'
19095 lt_prog_compiler_static_F77='-Bstatic'
19100 lt_prog_compiler_pic_F77='-pic'
19101 lt_prog_compiler_static_F77='-Bstatic'
19105 lt_prog_compiler_can_build_shared_F77=no
19110 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19111 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19114 # Check to make sure the PIC flag actually works.
19116 if test -n "$lt_prog_compiler_pic_F77"; then
19118 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19119 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19120 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19121 echo $ECHO_N "(cached) $ECHO_C" >&6
19123 lt_prog_compiler_pic_works_F77=no
19124 ac_outfile=conftest.$ac_objext
19125 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19126 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19127 # Insert the option either (1) after the last *FLAGS variable, or
19128 # (2) before a word containing "conftest.", or (3) at the end.
19129 # Note that $ac_compile itself does not contain backslashes and begins
19130 # with a dollar sign (not a hyphen), so the echo should work correctly.
19131 # The option is referenced via a variable to avoid confusing sed.
19132 lt_compile=`echo "$ac_compile" | $SED \
19133 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19135 -e 's:$: $lt_compiler_flag:'`
19136 (eval echo "\"\$as_me:19136: $lt_compile\"" >&5)
19137 (eval "$lt_compile" 2>conftest.err)
19139 cat conftest.err >&5
19140 echo "$as_me:19140: \$? = $ac_status" >&5
19141 if (exit $ac_status) && test -s "$ac_outfile"; then
19142 # The compiler can only warn and ignore the option if not recognized
19143 # So say no if there are warnings
19144 if test ! -s conftest.err; then
19145 lt_prog_compiler_pic_works_F77=yes
19151 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19152 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19154 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19155 case $lt_prog_compiler_pic_F77 in
19157 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19160 lt_prog_compiler_pic_F77=
19161 lt_prog_compiler_can_build_shared_F77=no
19166 # For platforms which do not support PIC, -DPIC is meaningless:
19168 lt_prog_compiler_pic_F77=
19171 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19175 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19176 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19177 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19178 echo $ECHO_N "(cached) $ECHO_C" >&6
19180 lt_cv_prog_compiler_c_o_F77=no
19181 $rm -r conftest 2>/dev/null
19185 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19187 lt_compiler_flag="-o out/conftest2.$ac_objext"
19188 # Insert the option either (1) after the last *FLAGS variable, or
19189 # (2) before a word containing "conftest.", or (3) at the end.
19190 # Note that $ac_compile itself does not contain backslashes and begins
19191 # with a dollar sign (not a hyphen), so the echo should work correctly.
19192 lt_compile=`echo "$ac_compile" | $SED \
19193 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19195 -e 's:$: $lt_compiler_flag:'`
19196 (eval echo "\"\$as_me:19196: $lt_compile\"" >&5)
19197 (eval "$lt_compile" 2>out/conftest.err)
19199 cat out/conftest.err >&5
19200 echo "$as_me:19200: \$? = $ac_status" >&5
19201 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19203 # The compiler can only warn and ignore the option if not recognized
19204 # So say no if there are warnings
19205 if test ! -s out/conftest.err; then
19206 lt_cv_prog_compiler_c_o_F77=yes
19211 # SGI C++ compiler will create directory out/ii_files/ for
19212 # template instantiation
19213 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19214 $rm out/* && rmdir out
19220 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19221 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19224 hard_links="nottested"
19225 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19226 # do not overwrite the value of need_locks provided by the user
19227 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19228 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19231 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19233 ln conftest.a conftest.b 2>&5 || hard_links=no
19234 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19235 echo "$as_me:$LINENO: result: $hard_links" >&5
19236 echo "${ECHO_T}$hard_links" >&6
19237 if test "$hard_links" = no; then
19238 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19239 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19246 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19247 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19250 allow_undefined_flag_F77=
19251 enable_shared_with_static_runtimes_F77=no
19253 archive_expsym_cmds_F77=
19254 old_archive_From_new_cmds_F77=
19255 old_archive_from_expsyms_cmds_F77=
19256 export_dynamic_flag_spec_F77=
19257 whole_archive_flag_spec_F77=
19258 thread_safe_flag_spec_F77=
19259 hardcode_libdir_flag_spec_F77=
19260 hardcode_libdir_flag_spec_ld_F77=
19261 hardcode_libdir_separator_F77=
19262 hardcode_direct_F77=no
19263 hardcode_minus_L_F77=no
19264 hardcode_shlibpath_var_F77=unsupported
19265 link_all_deplibs_F77=unknown
19266 hardcode_automatic_F77=no
19268 module_expsym_cmds_F77=
19269 always_export_symbols_F77=no
19270 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19271 # include_expsyms should be a list of space-separated symbols to be *always*
19272 # included in the symbol list
19273 include_expsyms_F77=
19274 # exclude_expsyms can be an extended regexp of symbols to exclude
19275 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19276 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19277 # as well as any symbol that contains `d'.
19278 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19279 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19280 # platforms (ab)use it in PIC code, but their linkers get confused if
19281 # the symbol is explicitly referenced. Since portable code cannot
19282 # rely on this symbol name, it's probably fine to never include it in
19283 # preloaded symbol tables.
19284 extract_expsyms_cmds=
19287 cygwin* | mingw* | pw32*)
19288 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19289 # When not using gcc, we currently assume that we are using
19290 # Microsoft Visual C++.
19291 if test "$GCC" != yes; then
19301 if test "$with_gnu_ld" = yes; then
19302 # If archive_cmds runs LD, not CC, wlarc should be empty
19305 # See if GNU ld supports shared libraries.
19307 aix3* | aix4* | aix5*)
19308 # On AIX/PPC, the GNU linker is very broken
19309 if test "$host_cpu" != ia64; then
19313 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19314 *** to be unable to reliably create shared libraries on AIX.
19315 *** Therefore, libtool is disabling shared libraries support. If you
19316 *** really care for shared libraries, you may want to modify your PATH
19317 *** so that a non-GNU linker is found, and then restart.
19324 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)'
19325 hardcode_libdir_flag_spec_F77='-L$libdir'
19326 hardcode_minus_L_F77=yes
19328 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19329 # that the semantics of dynamic libraries on AmigaOS, at least up
19330 # to version 4, is to share data among multiple programs linked
19331 # with the same dynamic library. Since this doesn't match the
19332 # behavior of shared libraries on other platforms, we can't use
19338 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19339 allow_undefined_flag_F77=unsupported
19340 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19341 # support --undefined. This deserves some investigation. FIXME
19342 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19348 cygwin* | mingw* | pw32*)
19349 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19350 # as there is no search path for DLLs.
19351 hardcode_libdir_flag_spec_F77='-L$libdir'
19352 allow_undefined_flag_F77=unsupported
19353 always_export_symbols_F77=no
19354 enable_shared_with_static_runtimes_F77=yes
19355 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19357 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19358 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19359 # If the export-symbols file already is a .def file (1st line
19360 # is EXPORTS), use it as is; otherwise, prepend...
19361 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19362 cp $export_symbols $output_objdir/$soname.def;
19364 echo EXPORTS > $output_objdir/$soname.def;
19365 cat $export_symbols >> $output_objdir/$soname.def;
19367 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19374 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19375 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19378 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19379 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19384 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19388 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19389 *** create shared libraries on Solaris systems. Therefore, libtool
19390 *** is disabling shared libraries support. We urge you to upgrade GNU
19391 *** binutils to release 2.9.1 or newer. Another option is to modify
19392 *** your PATH or compiler configuration so that the native linker is
19393 *** used, and then restart.
19396 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19397 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19398 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19405 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19407 hardcode_direct_F77=yes
19408 hardcode_shlibpath_var_F77=no
19412 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19413 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19414 archive_cmds_F77="$tmp_archive_cmds"
19415 supports_anon_versioning=no
19416 case `$LD -v 2>/dev/null` in
19417 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19418 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19419 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19420 *\ 2.11.*) ;; # other 2.11 versions
19421 *) supports_anon_versioning=yes ;;
19423 if test $supports_anon_versioning = yes; then
19424 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19425 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19426 $echo "local: *; };" >> $output_objdir/$libname.ver~
19427 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19429 archive_expsym_cmds_F77="$tmp_archive_cmds"
19437 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19438 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19439 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19446 if test "$ld_shlibs_F77" = yes; then
19447 runpath_var=LD_RUN_PATH
19448 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19449 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19450 # ancient GNU ld didn't support --whole-archive et. al.
19451 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19452 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19454 whole_archive_flag_spec_F77=
19458 # PORTME fill in a description of your system's linker (not GNU ld)
19461 allow_undefined_flag_F77=unsupported
19462 always_export_symbols_F77=yes
19463 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'
19464 # Note: this linker hardcodes the directories in LIBPATH if there
19465 # are no directories specified by -L.
19466 hardcode_minus_L_F77=yes
19467 if test "$GCC" = yes && test -z "$link_static_flag"; then
19468 # Neither direct hardcoding nor static linking is supported with a
19470 hardcode_direct_F77=unsupported
19475 if test "$host_cpu" = ia64; then
19476 # On IA64, the linker does run time linking by default, so we don't
19477 # have to do anything special.
19478 aix_use_runtimelinking=no
19479 exp_sym_flag='-Bexport'
19482 # If we're using GNU nm, then we don't want the "-C" option.
19483 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19484 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19485 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'
19487 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'
19489 aix_use_runtimelinking=no
19491 # Test if we are trying to use run time linking or normal
19492 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19493 # need to do runtime linking.
19494 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19495 for ld_flag in $LDFLAGS; do
19496 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19497 aix_use_runtimelinking=yes
19503 exp_sym_flag='-bexport'
19504 no_entry_flag='-bnoentry'
19507 # When large executables or shared objects are built, AIX ld can
19508 # have problems creating the table of contents. If linking a library
19509 # or program results in "error TOC overflow" add -mminimal-toc to
19510 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19511 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19513 archive_cmds_F77=''
19514 hardcode_direct_F77=yes
19515 hardcode_libdir_separator_F77=':'
19516 link_all_deplibs_F77=yes
19518 if test "$GCC" = yes; then
19519 case $host_os in aix4.012|aix4.012.*)
19520 # We only want to do this on AIX 4.2 and lower, the check
19521 # below for broken collect2 doesn't work under 4.3+
19522 collect2name=`${CC} -print-prog-name=collect2`
19523 if test -f "$collect2name" && \
19524 strings "$collect2name" | grep resolve_lib_name >/dev/null
19526 # We have reworked collect2
19527 hardcode_direct_F77=yes
19529 # We have old collect2
19530 hardcode_direct_F77=unsupported
19531 # It fails to find uninstalled libraries when the uninstalled
19532 # path is not listed in the libpath. Setting hardcode_minus_L
19533 # to unsupported forces relinking
19534 hardcode_minus_L_F77=yes
19535 hardcode_libdir_flag_spec_F77='-L$libdir'
19536 hardcode_libdir_separator_F77=
19539 shared_flag='-shared'
19542 if test "$host_cpu" = ia64; then
19543 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19544 # chokes on -Wl,-G. The following line is correct:
19547 if test "$aix_use_runtimelinking" = yes; then
19548 shared_flag='${wl}-G'
19550 shared_flag='${wl}-bM:SRE'
19555 # It seems that -bexpall does not export symbols beginning with
19556 # underscore (_), so it is better to generate a list of symbols to export.
19557 always_export_symbols_F77=yes
19558 if test "$aix_use_runtimelinking" = yes; then
19559 # Warning - without using the other runtime loading flags (-brtl),
19560 # -berok will link without error, but may produce a broken library.
19561 allow_undefined_flag_F77='-berok'
19562 # Determine the default libpath from the value encoded in an empty executable.
19563 cat >conftest.$ac_ext <<_ACEOF
19568 rm -f conftest.$ac_objext conftest$ac_exeext
19569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19570 (eval $ac_link) 2>conftest.er1
19572 grep -v '^ *+' conftest.er1 >conftest.err
19574 cat conftest.err >&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); } &&
19577 { ac_try='test -z "$ac_f77_werror_flag"
19578 || test ! -s conftest.err'
19579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580 (eval $ac_try) 2>&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }; } &&
19584 { ac_try='test -s conftest$ac_exeext'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; }; then
19591 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19593 # Check for a 64-bit object if we didn't find anything.
19594 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; }
19597 echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.$ac_ext >&5
19601 rm -f conftest.err conftest.$ac_objext \
19602 conftest$ac_exeext conftest.$ac_ext
19603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19605 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19606 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"
19608 if test "$host_cpu" = ia64; then
19609 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19610 allow_undefined_flag_F77="-z nodefs"
19611 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"
19613 # Determine the default libpath from the value encoded in an empty executable.
19614 cat >conftest.$ac_ext <<_ACEOF
19619 rm -f conftest.$ac_objext conftest$ac_exeext
19620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19621 (eval $ac_link) 2>conftest.er1
19623 grep -v '^ *+' conftest.er1 >conftest.err
19625 cat conftest.err >&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } &&
19628 { ac_try='test -z "$ac_f77_werror_flag"
19629 || test ! -s conftest.err'
19630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19631 (eval $ac_try) 2>&5
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); }; } &&
19635 { ac_try='test -s conftest$ac_exeext'
19636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19637 (eval $ac_try) 2>&5
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); }; }; then
19642 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19644 # Check for a 64-bit object if we didn't find anything.
19645 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; }
19648 echo "$as_me: failed program was:" >&5
19649 sed 's/^/| /' conftest.$ac_ext >&5
19652 rm -f conftest.err conftest.$ac_objext \
19653 conftest$ac_exeext conftest.$ac_ext
19654 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19656 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19657 # Warning - without using the other run time loading flags,
19658 # -berok will link without error, but may produce a broken library.
19659 no_undefined_flag_F77=' ${wl}-bernotok'
19660 allow_undefined_flag_F77=' ${wl}-berok'
19661 # -bexpall does not export symbols beginning with underscore (_)
19662 always_export_symbols_F77=yes
19663 # Exported symbols can be pulled into shared objects from archives
19664 whole_archive_flag_spec_F77=' '
19665 archive_cmds_need_lc_F77=yes
19666 # This is similar to how AIX traditionally builds it's shared libraries.
19667 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'
19673 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)'
19674 hardcode_libdir_flag_spec_F77='-L$libdir'
19675 hardcode_minus_L_F77=yes
19676 # see comment about different semantics on the GNU ld section
19681 export_dynamic_flag_spec_F77=-rdynamic
19684 cygwin* | mingw* | pw32*)
19685 # When not using gcc, we currently assume that we are using
19686 # Microsoft Visual C++.
19687 # hardcode_libdir_flag_spec is actually meaningless, as there is
19688 # no search path for DLLs.
19689 hardcode_libdir_flag_spec_F77=' '
19690 allow_undefined_flag_F77=unsupported
19691 # Tell ltmain to make .lib files, not .a files.
19693 # Tell ltmain to make .dll files, not .so files.
19695 # FIXME: Setting linknames here is a bad hack.
19696 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19697 # The linker will automatically build a .lib file if we build a DLL.
19698 old_archive_From_new_cmds_F77='true'
19699 # FIXME: Should let the user specify the lib program.
19700 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19701 fix_srcfile_path='`cygpath -w "$srcfile"`'
19702 enable_shared_with_static_runtimes_F77=yes
19705 darwin* | rhapsody*)
19707 rhapsody* | darwin1.[012])
19708 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19711 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19712 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19714 case ${MACOSX_DEPLOYMENT_TARGET} in
19716 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19719 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19725 archive_cmds_need_lc_F77=no
19726 hardcode_direct_F77=no
19727 hardcode_automatic_F77=yes
19728 hardcode_shlibpath_var_F77=unsupported
19729 whole_archive_flag_spec_F77=''
19730 link_all_deplibs_F77=yes
19731 if test "$GCC" = yes ; then
19732 output_verbose_link_cmd='echo'
19733 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19734 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19735 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19736 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}'
19737 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}'
19739 case "$cc_basename" in
19741 output_verbose_link_cmd='echo'
19742 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19743 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19744 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19745 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}'
19746 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}'
19756 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19757 hardcode_libdir_flag_spec_F77='-L$libdir'
19758 hardcode_shlibpath_var_F77=no
19765 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19766 # support. Future versions do this automatically, but an explicit c++rt0.o
19767 # does not break anything, and helps significantly (at the cost of a little
19770 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19771 hardcode_libdir_flag_spec_F77='-R$libdir'
19772 hardcode_direct_F77=yes
19773 hardcode_shlibpath_var_F77=no
19776 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19778 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19779 hardcode_direct_F77=yes
19780 hardcode_minus_L_F77=yes
19781 hardcode_shlibpath_var_F77=no
19784 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19785 freebsd* | kfreebsd*-gnu)
19786 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19787 hardcode_libdir_flag_spec_F77='-R$libdir'
19788 hardcode_direct_F77=yes
19789 hardcode_shlibpath_var_F77=no
19793 if test "$GCC" = yes; then
19794 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'
19796 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'
19798 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19799 hardcode_libdir_separator_F77=:
19800 hardcode_direct_F77=yes
19802 # hardcode_minus_L: Not really in the search PATH,
19803 # but as the default location of the library.
19804 hardcode_minus_L_F77=yes
19805 export_dynamic_flag_spec_F77='${wl}-E'
19809 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19810 case "$host_cpu" in
19812 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19815 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19819 case "$host_cpu" in
19821 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19824 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19828 if test "$with_gnu_ld" = no; then
19829 case "$host_cpu" in
19831 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19832 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19833 hardcode_libdir_separator_F77=:
19834 hardcode_direct_F77=no
19835 hardcode_shlibpath_var_F77=no
19838 hardcode_libdir_flag_spec_F77='-L$libdir'
19839 hardcode_direct_F77=no
19840 hardcode_shlibpath_var_F77=no
19842 # hardcode_minus_L: Not really in the search PATH,
19843 # but as the default location of the library.
19844 hardcode_minus_L_F77=yes
19847 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19848 hardcode_libdir_separator_F77=:
19849 hardcode_direct_F77=yes
19850 export_dynamic_flag_spec_F77='${wl}-E'
19852 # hardcode_minus_L: Not really in the search PATH,
19853 # but as the default location of the library.
19854 hardcode_minus_L_F77=yes
19860 irix5* | irix6* | nonstopux*)
19861 if test "$GCC" = yes; then
19862 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'
19864 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'
19865 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19867 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19868 hardcode_libdir_separator_F77=:
19869 link_all_deplibs_F77=yes
19873 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19874 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19876 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19878 hardcode_libdir_flag_spec_F77='-R$libdir'
19879 hardcode_direct_F77=yes
19880 hardcode_shlibpath_var_F77=no
19884 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19885 hardcode_direct_F77=yes
19886 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19887 hardcode_libdir_separator_F77=:
19888 hardcode_shlibpath_var_F77=no
19892 hardcode_direct_F77=yes
19893 hardcode_shlibpath_var_F77=no
19894 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19895 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19896 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19897 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19898 export_dynamic_flag_spec_F77='${wl}-E'
19901 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19902 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19903 hardcode_libdir_flag_spec_F77='-R$libdir'
19906 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19907 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19914 hardcode_libdir_flag_spec_F77='-L$libdir'
19915 hardcode_minus_L_F77=yes
19916 allow_undefined_flag_F77=unsupported
19917 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'
19918 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19922 if test "$GCC" = yes; then
19923 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19924 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'
19926 allow_undefined_flag_F77=' -expect_unresolved \*'
19927 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'
19929 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19930 hardcode_libdir_separator_F77=:
19933 osf4* | osf5*) # as osf3* with the addition of -msym flag
19934 if test "$GCC" = yes; then
19935 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19936 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'
19937 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19939 allow_undefined_flag_F77=' -expect_unresolved \*'
19940 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'
19941 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~
19942 $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'
19944 # Both c and cxx compiler support -rpath directly
19945 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19947 hardcode_libdir_separator_F77=:
19951 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19952 hardcode_shlibpath_var_F77=no
19953 export_dynamic_flag_spec_F77='${wl}-Bexport'
19954 runpath_var=LD_RUN_PATH
19955 hardcode_runpath_var=yes
19959 no_undefined_flag_F77=' -z text'
19960 if test "$GCC" = yes; then
19961 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19962 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19963 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19965 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19966 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19967 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19969 hardcode_libdir_flag_spec_F77='-R$libdir'
19970 hardcode_shlibpath_var_F77=no
19972 solaris2.[0-5] | solaris2.[0-5].*) ;;
19973 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19974 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19976 link_all_deplibs_F77=yes
19980 if test "x$host_vendor" = xsequent; then
19981 # Use $CC to link under sequent, because it throws in some extra .o
19982 # files that make .init and .fini sections work.
19983 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19985 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19987 hardcode_libdir_flag_spec_F77='-L$libdir'
19988 hardcode_direct_F77=yes
19989 hardcode_minus_L_F77=yes
19990 hardcode_shlibpath_var_F77=no
19994 case $host_vendor in
19996 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19997 hardcode_direct_F77=yes # is this really true???
20000 ## LD is ld it makes a PLAMLIB
20001 ## CC just makes a GrossModule.
20002 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20003 reload_cmds_F77='$CC -r -o $output$reload_objs'
20004 hardcode_direct_F77=no
20007 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20008 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20011 runpath_var='LD_RUN_PATH'
20012 hardcode_shlibpath_var_F77=no
20016 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20017 hardcode_shlibpath_var_F77=no
20018 export_dynamic_flag_spec_F77='-Bexport'
20022 if test -d /usr/nec; then
20023 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20024 hardcode_shlibpath_var_F77=no
20025 runpath_var=LD_RUN_PATH
20026 hardcode_runpath_var=yes
20032 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20033 hardcode_direct_F77=yes
20034 hardcode_minus_L_F77=no
20035 hardcode_shlibpath_var_F77=no
20036 hardcode_runpath_var=yes
20037 runpath_var=LD_RUN_PATH
20040 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20041 no_undefined_flag_F77='${wl}-z ${wl}text'
20042 if test "$GCC" = yes; then
20043 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20045 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20047 runpath_var='LD_RUN_PATH'
20048 hardcode_shlibpath_var_F77=no
20052 no_undefined_flag_F77=' -z text'
20053 # $CC -shared without GNU ld will not create a library from C++
20054 # object files and a static libstdc++, better avoid it by now
20055 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20056 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20057 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20058 hardcode_libdir_flag_spec_F77=
20059 hardcode_shlibpath_var_F77=no
20060 runpath_var='LD_RUN_PATH'
20064 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20065 hardcode_libdir_flag_spec_F77='-L$libdir'
20066 hardcode_shlibpath_var_F77=no
20075 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20076 echo "${ECHO_T}$ld_shlibs_F77" >&6
20077 test "$ld_shlibs_F77" = no && can_build_shared=no
20079 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20080 if test "$GCC" = yes; then
20081 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20085 # Do we need to explicitly link libc?
20087 case "x$archive_cmds_need_lc_F77" in
20089 # Assume -lc should be added
20090 archive_cmds_need_lc_F77=yes
20092 if test "$enable_shared" = yes && test "$GCC" = yes; then
20093 case $archive_cmds_F77 in
20095 # FIXME: we may have to deal with multi-command sequences.
20098 # Test whether the compiler implicitly links with -lc since on some
20099 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20100 # to ld, don't add -lc before -lgcc.
20101 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20102 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20107 (eval $ac_compile) 2>&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } 2>conftest.err; then
20113 libobjs=conftest.$ac_objext
20115 wl=$lt_prog_compiler_wl_F77
20121 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20122 allow_undefined_flag_F77=
20123 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20124 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }
20129 archive_cmds_need_lc_F77=no
20131 archive_cmds_need_lc_F77=yes
20133 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20135 cat conftest.err 1>&5
20138 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20139 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20146 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20147 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20148 library_names_spec=
20149 libname_spec='lib$name'
20153 postuninstall_cmds=
20157 shlibpath_overrides_runpath=unknown
20159 dynamic_linker="$host_os ld.so"
20160 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20161 if test "$GCC" = yes; then
20162 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20163 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20164 # if the path contains ";" then we assume it to be the separator
20165 # otherwise default to the standard path separator (i.e. ":") - it is
20166 # assumed that no part of a normal pathname contains ";" but that should
20167 # okay in the real world where ";" in dirpaths is itself problematic.
20168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20173 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20175 need_lib_prefix=unknown
20176 hardcode_into_libs=no
20178 # when you set need_version to no, make sure it does not cause -set_version
20179 # flags to be left without arguments
20180 need_version=unknown
20185 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20186 shlibpath_var=LIBPATH
20188 # AIX 3 has no versioning support, so we append a major version to the name.
20189 soname_spec='${libname}${release}${shared_ext}$major'
20196 hardcode_into_libs=yes
20197 if test "$host_cpu" = ia64; then
20198 # AIX 5 supports IA64
20199 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20200 shlibpath_var=LD_LIBRARY_PATH
20202 # With GCC up to 2.95.x, collect2 would create an import file
20203 # for dependence libraries. The import file would start with
20204 # the line `#! .'. This would cause the generated library to
20205 # depend on `.', always an invalid library. This was fixed in
20206 # development snapshots of GCC prior to 3.0.
20208 aix4 | aix4.[01] | aix4.[01].*)
20209 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20211 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20214 can_build_shared=no
20218 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20219 # soname into executable. Probably we can add versioning support to
20220 # collect2, so additional links can be useful in future.
20221 if test "$aix_use_runtimelinking" = yes; then
20222 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20223 # instead of lib<name>.a to let people know that these are not
20224 # typical AIX shared libraries.
20225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20227 # We preserve .a as extension for shared libraries through AIX4.2
20228 # and later when we are not doing run time linking.
20229 library_names_spec='${libname}${release}.a $libname.a'
20230 soname_spec='${libname}${release}${shared_ext}$major'
20232 shlibpath_var=LIBPATH
20237 library_names_spec='$libname.ixlibrary $libname.a'
20238 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20239 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'
20243 library_names_spec='${libname}${shared_ext}'
20244 dynamic_linker="$host_os ld.so"
20245 shlibpath_var=LIBRARY_PATH
20251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20252 soname_spec='${libname}${release}${shared_ext}$major'
20253 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20254 shlibpath_var=LD_LIBRARY_PATH
20255 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20256 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20257 # the default ld.so.conf also contains /usr/contrib/lib and
20258 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20259 # libtool to hard-code these into programs
20262 cygwin* | mingw* | pw32*)
20263 version_type=windows
20268 case $GCC,$host_os in
20269 yes,cygwin* | yes,mingw* | yes,pw32*)
20270 library_names_spec='$libname.dll.a'
20271 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20272 postinstall_cmds='base_file=`basename \${file}`~
20273 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20274 dldir=$destdir/`dirname \$dlpath`~
20275 test -d \$dldir || mkdir -p \$dldir~
20276 $install_prog $dir/$dlname \$dldir/$dlname'
20277 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20278 dlpath=$dir/\$dldll~
20280 shlibpath_overrides_runpath=yes
20284 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20285 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20286 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20289 # MinGW DLLs use traditional 'lib' prefix
20290 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20291 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20292 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20293 # It is most probably a Windows format PATH printed by
20294 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20295 # path with ; separators, and with drive letters. We can handle the
20296 # drive letters (cygwin fileutils understands them), so leave them,
20297 # especially as we might pass files found there to a mingw objdump,
20298 # which wouldn't understand a cygwinified path. Ahh.
20299 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20305 # pw32 DLLs use 'pw' prefix rather than 'lib'
20306 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20312 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20315 dynamic_linker='Win32 ld.exe'
20316 # FIXME: first we should search . and the directory the executable is in
20320 darwin* | rhapsody*)
20321 dynamic_linker="$host_os dyld"
20322 version_type=darwin
20325 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20326 soname_spec='${libname}${release}${major}$shared_ext'
20327 shlibpath_overrides_runpath=yes
20328 shlibpath_var=DYLD_LIBRARY_PATH
20329 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20330 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20331 if test "$GCC" = yes; then
20332 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"`
20334 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20336 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20344 soname_spec='${libname}${release}${shared_ext}$major'
20345 shlibpath_var=LD_LIBRARY_PATH
20356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20357 soname_spec='${libname}${release}${shared_ext}$major'
20358 shlibpath_var=LD_LIBRARY_PATH
20359 shlibpath_overrides_runpath=no
20360 hardcode_into_libs=yes
20361 dynamic_linker='GNU ld.so'
20365 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20366 version_type=freebsd-$objformat
20367 case $version_type in
20369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20374 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20378 shlibpath_var=LD_LIBRARY_PATH
20381 shlibpath_overrides_runpath=yes
20383 freebsd3.01* | freebsdelf3.01*)
20384 shlibpath_overrides_runpath=yes
20385 hardcode_into_libs=yes
20388 shlibpath_overrides_runpath=no
20389 hardcode_into_libs=yes
20398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20399 soname_spec='${libname}${release}${shared_ext}$major'
20400 shlibpath_var=LD_LIBRARY_PATH
20401 hardcode_into_libs=yes
20404 hpux9* | hpux10* | hpux11*)
20405 # Give a soname corresponding to the major version so that dld.sl refuses to
20406 # link against other versions.
20410 case "$host_cpu" in
20413 hardcode_into_libs=yes
20414 dynamic_linker="$host_os dld.so"
20415 shlibpath_var=LD_LIBRARY_PATH
20416 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20418 soname_spec='${libname}${release}${shared_ext}$major'
20419 if test "X$HPUX_IA64_MODE" = X32; then
20420 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20422 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20424 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20428 hardcode_into_libs=yes
20429 dynamic_linker="$host_os dld.sl"
20430 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20431 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20433 soname_spec='${libname}${release}${shared_ext}$major'
20434 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20435 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20439 dynamic_linker="$host_os dld.sl"
20440 shlibpath_var=SHLIB_PATH
20441 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20443 soname_spec='${libname}${release}${shared_ext}$major'
20446 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20447 postinstall_cmds='chmod 555 $lib'
20450 irix5* | irix6* | nonstopux*)
20452 nonstopux*) version_type=nonstopux ;;
20454 if test "$lt_cv_prog_gnu_ld" = yes; then
20462 soname_spec='${libname}${release}${shared_ext}$major'
20463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20465 irix5* | nonstopux*)
20466 libsuff= shlibsuff=
20469 case $LD in # libtool.m4 will add one of these switches to LD
20470 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20471 libsuff= shlibsuff= libmagic=32-bit;;
20472 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20473 libsuff=32 shlibsuff=N32 libmagic=N32;;
20474 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20475 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20476 *) libsuff= shlibsuff= libmagic=never-match;;
20480 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20481 shlibpath_overrides_runpath=no
20482 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20483 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20484 hardcode_into_libs=yes
20487 # No shared lib support for Linux oldld, aout, or coff.
20488 linux*oldld* | linux*aout* | linux*coff*)
20492 # This must be Linux ELF.
20497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20498 soname_spec='${libname}${release}${shared_ext}$major'
20499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20500 shlibpath_var=LD_LIBRARY_PATH
20501 shlibpath_overrides_runpath=no
20502 # This implies no fast_install, which is unacceptable.
20503 # Some rework will be needed to allow for fast_install
20504 # before this can be enabled.
20505 hardcode_into_libs=yes
20507 # Append ld.so.conf contents to the search path
20508 if test -f /etc/ld.so.conf; then
20509 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20510 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20513 # We used to test for /lib/ld.so.1 and disable shared libraries on
20514 # powerpc, because MkLinux only supported shared libraries with the
20515 # GNU dynamic linker. Since this was broken with cross compilers,
20516 # most powerpc-linux boxes support dynamic linking these days and
20517 # people can always --disable-shared, the test was removed, and we
20518 # assume the GNU/Linux dynamic linker is in use.
20519 dynamic_linker='GNU/Linux ld.so'
20526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20527 soname_spec='${libname}${release}${shared_ext}$major'
20528 shlibpath_var=LD_LIBRARY_PATH
20529 shlibpath_overrides_runpath=no
20530 hardcode_into_libs=yes
20531 dynamic_linker='GNU ld.so'
20538 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20541 dynamic_linker='NetBSD (a.out) ld.so'
20543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20544 soname_spec='${libname}${release}${shared_ext}$major'
20545 dynamic_linker='NetBSD ld.elf_so'
20547 shlibpath_var=LD_LIBRARY_PATH
20548 shlibpath_overrides_runpath=yes
20549 hardcode_into_libs=yes
20554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20555 shlibpath_var=LD_LIBRARY_PATH
20556 shlibpath_overrides_runpath=yes
20563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20564 soname_spec='${libname}${release}${shared_ext}$major'
20565 shlibpath_var=LD_LIBRARY_PATH
20566 shlibpath_overrides_runpath=yes
20573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20575 shlibpath_var=LD_LIBRARY_PATH
20576 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20578 openbsd2.[89] | openbsd2.[89].*)
20579 shlibpath_overrides_runpath=no
20582 shlibpath_overrides_runpath=yes
20586 shlibpath_overrides_runpath=yes
20591 libname_spec='$name'
20594 library_names_spec='$libname${shared_ext} $libname.a'
20595 dynamic_linker='OS/2 ld.exe'
20596 shlibpath_var=LIBPATH
20599 osf3* | osf4* | osf5*)
20603 soname_spec='${libname}${release}${shared_ext}$major'
20604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20605 shlibpath_var=LD_LIBRARY_PATH
20606 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20607 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20612 soname_spec='${libname}${release}${shared_ext}$major'
20613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20614 shlibpath_var=LD_LIBRARY_PATH
20621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20622 soname_spec='${libname}${release}${shared_ext}$major'
20623 shlibpath_var=LD_LIBRARY_PATH
20624 shlibpath_overrides_runpath=yes
20625 hardcode_into_libs=yes
20626 # ldd complains unless libraries are executable
20627 postinstall_cmds='chmod +x $lib'
20632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20633 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20634 shlibpath_var=LD_LIBRARY_PATH
20635 shlibpath_overrides_runpath=yes
20636 if test "$with_gnu_ld" = yes; then
20642 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20645 soname_spec='${libname}${release}${shared_ext}$major'
20646 shlibpath_var=LD_LIBRARY_PATH
20647 case $host_vendor in
20649 shlibpath_overrides_runpath=no
20651 export_dynamic_flag_spec='${wl}-Blargedynsym'
20652 runpath_var=LD_RUN_PATH
20660 shlibpath_overrides_runpath=no
20661 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20667 if test -d /usr/nec ;then
20669 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20670 soname_spec='$libname${shared_ext}.$major'
20671 shlibpath_var=LD_LIBRARY_PATH
20677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20678 soname_spec='${libname}${release}${shared_ext}$major'
20679 shlibpath_var=LD_LIBRARY_PATH
20686 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20687 echo "${ECHO_T}$dynamic_linker" >&6
20688 test "$dynamic_linker" = no && can_build_shared=no
20690 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20691 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20692 hardcode_action_F77=
20693 if test -n "$hardcode_libdir_flag_spec_F77" || \
20694 test -n "$runpath_var_F77" || \
20695 test "X$hardcode_automatic_F77" = "Xyes" ; then
20697 # We can hardcode non-existant directories.
20698 if test "$hardcode_direct_F77" != no &&
20699 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20700 # have to relink, otherwise we might link with an installed library
20701 # when we should be linking with a yet-to-be-installed one
20702 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20703 test "$hardcode_minus_L_F77" != no; then
20704 # Linking always hardcodes the temporary library directory.
20705 hardcode_action_F77=relink
20707 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20708 hardcode_action_F77=immediate
20711 # We cannot hardcode anything, or else we can only hardcode existing
20713 hardcode_action_F77=unsupported
20715 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20716 echo "${ECHO_T}$hardcode_action_F77" >&6
20718 if test "$hardcode_action_F77" = relink; then
20719 # Fast installation is not supported
20720 enable_fast_install=no
20721 elif test "$shlibpath_overrides_runpath" = yes ||
20722 test "$enable_shared" = no; then
20723 # Fast installation is not necessary
20724 enable_fast_install=needless
20729 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20730 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20731 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20732 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20733 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20734 echo "$as_me:$LINENO: result: yes" >&5
20735 echo "${ECHO_T}yes" >&6
20737 # FIXME - insert some real tests, host_os isn't really good enough
20740 if test -n "$STRIP" ; then
20741 striplib="$STRIP -x"
20742 echo "$as_me:$LINENO: result: yes" >&5
20743 echo "${ECHO_T}yes" >&6
20745 echo "$as_me:$LINENO: result: no" >&5
20746 echo "${ECHO_T}no" >&6
20750 echo "$as_me:$LINENO: result: no" >&5
20751 echo "${ECHO_T}no" >&6
20758 # The else clause should only fire when bootstrapping the
20759 # libtool distribution, otherwise you forgot to ship ltmain.sh
20760 # with your package, and you will get complaints that there are
20761 # no rules to generate ltmain.sh.
20762 if test -f "$ltmain"; then
20763 # See if we are running on zsh, and set the options which allow our commands through
20764 # without removal of \ escapes.
20765 if test -n "${ZSH_VERSION+set}" ; then
20766 setopt NO_GLOB_SUBST
20768 # Now quote all the things that may contain metacharacters while being
20769 # careful not to overquote the AC_SUBSTed values. We take copies of the
20770 # variables and quote the copies for generation of the libtool script.
20771 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20773 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20774 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20775 deplibs_check_method reload_flag reload_cmds need_locks \
20776 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20777 lt_cv_sys_global_symbol_to_c_name_address \
20778 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20779 old_postinstall_cmds old_postuninstall_cmds \
20783 lt_prog_compiler_wl_F77 \
20784 lt_prog_compiler_pic_F77 \
20785 lt_prog_compiler_static_F77 \
20786 lt_prog_compiler_no_builtin_flag_F77 \
20787 export_dynamic_flag_spec_F77 \
20788 thread_safe_flag_spec_F77 \
20789 whole_archive_flag_spec_F77 \
20790 enable_shared_with_static_runtimes_F77 \
20791 old_archive_cmds_F77 \
20792 old_archive_from_new_cmds_F77 \
20793 predep_objects_F77 \
20794 postdep_objects_F77 \
20797 compiler_lib_search_path_F77 \
20799 archive_expsym_cmds_F77 \
20800 postinstall_cmds_F77 \
20801 postuninstall_cmds_F77 \
20802 old_archive_from_expsyms_cmds_F77 \
20803 allow_undefined_flag_F77 \
20804 no_undefined_flag_F77 \
20805 export_symbols_cmds_F77 \
20806 hardcode_libdir_flag_spec_F77 \
20807 hardcode_libdir_flag_spec_ld_F77 \
20808 hardcode_libdir_separator_F77 \
20809 hardcode_automatic_F77 \
20811 module_expsym_cmds_F77 \
20812 lt_cv_prog_compiler_c_o_F77 \
20813 exclude_expsyms_F77 \
20814 include_expsyms_F77; do
20817 old_archive_cmds_F77 | \
20818 old_archive_from_new_cmds_F77 | \
20819 archive_cmds_F77 | \
20820 archive_expsym_cmds_F77 | \
20821 module_cmds_F77 | \
20822 module_expsym_cmds_F77 | \
20823 old_archive_from_expsyms_cmds_F77 | \
20824 export_symbols_cmds_F77 | \
20825 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20826 postinstall_cmds | postuninstall_cmds | \
20827 old_postinstall_cmds | old_postuninstall_cmds | \
20828 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20829 # Double-quote double-evaled strings.
20830 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20833 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20839 *'\$0 --fallback-echo"')
20840 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20846 cat <<__EOF__ >> "$cfgfile"
20847 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20849 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20851 # Shell to use when invoking shell scripts.
20854 # Whether or not to build shared libraries.
20855 build_libtool_libs=$enable_shared
20857 # Whether or not to build static libraries.
20858 build_old_libs=$enable_static
20860 # Whether or not to add -lc for building shared libraries.
20861 build_libtool_need_lc=$archive_cmds_need_lc_F77
20863 # Whether or not to disallow shared libs when runtime libs are static
20864 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20866 # Whether or not to optimize for fast installation.
20867 fast_install=$enable_fast_install
20870 host_alias=$host_alias
20873 # An echo program that does not interpret backslashes.
20878 AR_FLAGS=$lt_AR_FLAGS
20883 # A language-specific compiler.
20884 CC=$lt_compiler_F77
20886 # Is the compiler the GNU C compiler?
20892 # The linker used to build libraries.
20895 # Whether we need hard or soft links.
20898 # A BSD-compatible nm program.
20901 # A symbol stripping program
20904 # Used to examine libraries when file_magic_cmd begins "file"
20905 MAGIC_CMD=$MAGIC_CMD
20907 # Used on cygwin: DLL creation program.
20910 # Used on cygwin: object dumper.
20913 # Used on cygwin: assembler.
20916 # The name of the directory that contains temporary libtool files.
20919 # How to create reloadable object files.
20920 reload_flag=$lt_reload_flag
20921 reload_cmds=$lt_reload_cmds
20923 # How to pass a linker flag through the compiler.
20924 wl=$lt_lt_prog_compiler_wl_F77
20926 # Object file suffix (normally "o").
20927 objext="$ac_objext"
20929 # Old archive suffix (normally "a").
20932 # Shared library suffix (normally ".so").
20933 shrext_cmds='$shrext_cmds'
20935 # Executable file suffix (normally "").
20938 # Additional compiler flags for building library objects.
20939 pic_flag=$lt_lt_prog_compiler_pic_F77
20942 # What is the maximum length of a command?
20943 max_cmd_len=$lt_cv_sys_max_cmd_len
20945 # Does compiler simultaneously support -c and -o options?
20946 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20948 # Must we lock files when doing compilation ?
20949 need_locks=$lt_need_locks
20951 # Do we need the lib prefix for modules?
20952 need_lib_prefix=$need_lib_prefix
20954 # Do we need a version for libraries?
20955 need_version=$need_version
20957 # Whether dlopen is supported.
20958 dlopen_support=$enable_dlopen
20960 # Whether dlopen of programs is supported.
20961 dlopen_self=$enable_dlopen_self
20963 # Whether dlopen of statically linked programs is supported.
20964 dlopen_self_static=$enable_dlopen_self_static
20966 # Compiler flag to prevent dynamic linking.
20967 link_static_flag=$lt_lt_prog_compiler_static_F77
20969 # Compiler flag to turn off builtin functions.
20970 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20972 # Compiler flag to allow reflexive dlopens.
20973 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20975 # Compiler flag to generate shared objects directly from archives.
20976 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20978 # Compiler flag to generate thread-safe objects.
20979 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20981 # Library versioning type.
20982 version_type=$version_type
20984 # Format of library name prefix.
20985 libname_spec=$lt_libname_spec
20987 # List of archive names. First name is the real one, the rest are links.
20988 # The last name is the one that the linker finds with -lNAME.
20989 library_names_spec=$lt_library_names_spec
20991 # The coded name of the library, if different from the real name.
20992 soname_spec=$lt_soname_spec
20994 # Commands used to build and install an old-style archive.
20996 old_archive_cmds=$lt_old_archive_cmds_F77
20997 old_postinstall_cmds=$lt_old_postinstall_cmds
20998 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21000 # Create an old-style archive from a shared archive.
21001 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21003 # Create a temporary old-style archive to link instead of a shared archive.
21004 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21006 # Commands used to build and install a shared archive.
21007 archive_cmds=$lt_archive_cmds_F77
21008 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21009 postinstall_cmds=$lt_postinstall_cmds
21010 postuninstall_cmds=$lt_postuninstall_cmds
21012 # Commands used to build a loadable module (assumed same as above if empty)
21013 module_cmds=$lt_module_cmds_F77
21014 module_expsym_cmds=$lt_module_expsym_cmds_F77
21016 # Commands to strip libraries.
21017 old_striplib=$lt_old_striplib
21018 striplib=$lt_striplib
21020 # Dependencies to place before the objects being linked to create a
21022 predep_objects=$lt_predep_objects_F77
21024 # Dependencies to place after the objects being linked to create a
21026 postdep_objects=$lt_postdep_objects_F77
21028 # Dependencies to place before the objects being linked to create a
21030 predeps=$lt_predeps_F77
21032 # Dependencies to place after the objects being linked to create a
21034 postdeps=$lt_postdeps_F77
21036 # The library search path used internally by the compiler when linking
21037 # a shared library.
21038 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21040 # Method to check whether dependent libraries are shared objects.
21041 deplibs_check_method=$lt_deplibs_check_method
21043 # Command to use when deplibs_check_method == file_magic.
21044 file_magic_cmd=$lt_file_magic_cmd
21046 # Flag that allows shared libraries with undefined symbols to be built.
21047 allow_undefined_flag=$lt_allow_undefined_flag_F77
21049 # Flag that forces no undefined symbols.
21050 no_undefined_flag=$lt_no_undefined_flag_F77
21052 # Commands used to finish a libtool library installation in a directory.
21053 finish_cmds=$lt_finish_cmds
21055 # Same as above, but a single script fragment to be evaled but not shown.
21056 finish_eval=$lt_finish_eval
21058 # Take the output of nm and produce a listing of raw symbols and C names.
21059 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21061 # Transform the output of nm in a proper C declaration
21062 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21064 # Transform the output of nm in a C name address pair
21065 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21067 # This is the shared library runtime path variable.
21068 runpath_var=$runpath_var
21070 # This is the shared library path variable.
21071 shlibpath_var=$shlibpath_var
21073 # Is shlibpath searched before the hard-coded library search path?
21074 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21076 # How to hardcode a shared library path into an executable.
21077 hardcode_action=$hardcode_action_F77
21079 # Whether we should hardcode library paths into libraries.
21080 hardcode_into_libs=$hardcode_into_libs
21082 # Flag to hardcode \$libdir into a binary during linking.
21083 # This must work even if \$libdir does not exist.
21084 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21086 # If ld is used when linking, flag to hardcode \$libdir into
21087 # a binary during linking. This must work even if \$libdir does
21089 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21091 # Whether we need a single -rpath flag with a separated argument.
21092 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21094 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21095 # resulting binary.
21096 hardcode_direct=$hardcode_direct_F77
21098 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21099 # resulting binary.
21100 hardcode_minus_L=$hardcode_minus_L_F77
21102 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21103 # the resulting binary.
21104 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21106 # Set to yes if building a shared library automatically hardcodes DIR into the library
21107 # and all subsequent libraries and executables linked against it.
21108 hardcode_automatic=$hardcode_automatic_F77
21110 # Variables whose values should be saved in libtool wrapper scripts and
21111 # restored at relink time.
21112 variables_saved_for_relink="$variables_saved_for_relink"
21114 # Whether libtool must link a program against all its dependency libraries.
21115 link_all_deplibs=$link_all_deplibs_F77
21117 # Compile-time system search path for libraries
21118 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21120 # Run-time system search path for libraries
21121 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21123 # Fix the shell variable \$srcfile for the compiler.
21124 fix_srcfile_path="$fix_srcfile_path_F77"
21126 # Set to yes if exported symbols are required.
21127 always_export_symbols=$always_export_symbols_F77
21129 # The commands to list exported symbols.
21130 export_symbols_cmds=$lt_export_symbols_cmds_F77
21132 # The commands to extract the exported symbol list from a shared archive.
21133 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21135 # Symbols that should not be listed in the preloaded symbols.
21136 exclude_expsyms=$lt_exclude_expsyms_F77
21138 # Symbols that must always be exported.
21139 include_expsyms=$lt_include_expsyms_F77
21141 # ### END LIBTOOL TAG CONFIG: $tagname
21147 # If there is no Makefile yet, we rely on a make rule to execute
21148 # `config.status --recheck' to rerun these tests and create the
21149 # libtool script then.
21150 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21151 if test -f "$ltmain_in"; then
21152 test -f Makefile && make "$ltmain"
21158 ac_cpp='$CPP $CPPFLAGS'
21159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21171 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21173 ac_cpp='$CPP $CPPFLAGS'
21174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21179 # Source file extension for Java test sources.
21182 # Object file extension for compiled Java test sources.
21186 # Code to be used in simple compile tests
21187 lt_simple_compile_test_code="class foo {}\n"
21189 # Code to be used in simple link tests
21190 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21192 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21194 # If no C compiler was specified, use CC.
21197 # Allow CC to be a program name with arguments.
21201 # Allow CC to be a program name with arguments.
21207 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21208 archive_cmds_need_lc_GCJ=no
21211 lt_prog_compiler_no_builtin_flag_GCJ=
21213 if test "$GCC" = yes; then
21214 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21217 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21218 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21219 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21220 echo $ECHO_N "(cached) $ECHO_C" >&6
21222 lt_cv_prog_compiler_rtti_exceptions=no
21223 ac_outfile=conftest.$ac_objext
21224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21225 lt_compiler_flag="-fno-rtti -fno-exceptions"
21226 # Insert the option either (1) after the last *FLAGS variable, or
21227 # (2) before a word containing "conftest.", or (3) at the end.
21228 # Note that $ac_compile itself does not contain backslashes and begins
21229 # with a dollar sign (not a hyphen), so the echo should work correctly.
21230 # The option is referenced via a variable to avoid confusing sed.
21231 lt_compile=`echo "$ac_compile" | $SED \
21232 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21234 -e 's:$: $lt_compiler_flag:'`
21235 (eval echo "\"\$as_me:21235: $lt_compile\"" >&5)
21236 (eval "$lt_compile" 2>conftest.err)
21238 cat conftest.err >&5
21239 echo "$as_me:21239: \$? = $ac_status" >&5
21240 if (exit $ac_status) && test -s "$ac_outfile"; then
21241 # The compiler can only warn and ignore the option if not recognized
21242 # So say no if there are warnings
21243 if test ! -s conftest.err; then
21244 lt_cv_prog_compiler_rtti_exceptions=yes
21250 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21251 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21253 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21254 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21261 lt_prog_compiler_wl_GCJ=
21262 lt_prog_compiler_pic_GCJ=
21263 lt_prog_compiler_static_GCJ=
21265 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21266 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21268 if test "$GCC" = yes; then
21269 lt_prog_compiler_wl_GCJ='-Wl,'
21270 lt_prog_compiler_static_GCJ='-static'
21274 # All AIX code is PIC.
21275 if test "$host_cpu" = ia64; then
21276 # AIX 5 now supports IA64 processor
21277 lt_prog_compiler_static_GCJ='-Bstatic'
21282 # FIXME: we need at least 68020 code to build shared libraries, but
21283 # adding the `-m68020' flag to GCC prevents building anything better,
21285 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21288 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21289 # PIC is the default for these OSes.
21292 mingw* | pw32* | os2*)
21293 # This hack is so that the source file can tell whether it is being
21294 # built for inclusion in a dll (and should export symbols for example).
21295 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21298 darwin* | rhapsody*)
21299 # PIC is the default on this platform
21300 # Common symbols not allowed in MH_DYLIB files
21301 lt_prog_compiler_pic_GCJ='-fno-common'
21305 # Just because we use GCC doesn't mean we suddenly get shared libraries
21306 # on systems that don't support them.
21307 lt_prog_compiler_can_build_shared_GCJ=no
21312 if test -d /usr/nec; then
21313 lt_prog_compiler_pic_GCJ=-Kconform_pic
21318 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21319 # not for PA HP-UX.
21320 case "$host_cpu" in
21325 lt_prog_compiler_pic_GCJ='-fPIC'
21331 lt_prog_compiler_pic_GCJ='-fPIC'
21335 # PORTME Check for flag to pass linker flags through the system compiler.
21338 lt_prog_compiler_wl_GCJ='-Wl,'
21339 if test "$host_cpu" = ia64; then
21340 # AIX 5 now supports IA64 processor
21341 lt_prog_compiler_static_GCJ='-Bstatic'
21343 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21347 # PIC is the default on this platform
21348 # Common symbols not allowed in MH_DYLIB files
21349 case "$cc_basename" in
21351 lt_prog_compiler_pic_GCJ='-qnocommon'
21352 lt_prog_compiler_wl_GCJ='-Wl,'
21357 mingw* | pw32* | os2*)
21358 # This hack is so that the source file can tell whether it is being
21359 # built for inclusion in a dll (and should export symbols for example).
21360 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21363 hpux9* | hpux10* | hpux11*)
21364 lt_prog_compiler_wl_GCJ='-Wl,'
21365 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21366 # not for PA HP-UX.
21367 case "$host_cpu" in
21372 lt_prog_compiler_pic_GCJ='+Z'
21375 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21376 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21379 irix5* | irix6* | nonstopux*)
21380 lt_prog_compiler_wl_GCJ='-Wl,'
21381 # PIC (with -KPIC) is the default.
21382 lt_prog_compiler_static_GCJ='-non_shared'
21386 lt_prog_compiler_pic_GCJ='-KPIC'
21387 lt_prog_compiler_static_GCJ='-Bstatic'
21393 lt_prog_compiler_wl_GCJ='-Wl,'
21394 lt_prog_compiler_pic_GCJ='-KPIC'
21395 lt_prog_compiler_static_GCJ='-static'
21398 lt_prog_compiler_wl_GCJ='-Wl,'
21399 # All Alpha code is PIC.
21400 lt_prog_compiler_static_GCJ='-non_shared'
21405 osf3* | osf4* | osf5*)
21406 lt_prog_compiler_wl_GCJ='-Wl,'
21407 # All OSF/1 code is PIC.
21408 lt_prog_compiler_static_GCJ='-non_shared'
21412 lt_prog_compiler_pic_GCJ='-Kpic'
21413 lt_prog_compiler_static_GCJ='-dn'
21417 lt_prog_compiler_wl_GCJ='-Wl,'
21418 lt_prog_compiler_pic_GCJ='-KPIC'
21419 lt_prog_compiler_static_GCJ='-Bstatic'
21423 lt_prog_compiler_wl_GCJ='-Qoption ld '
21424 lt_prog_compiler_pic_GCJ='-PIC'
21425 lt_prog_compiler_static_GCJ='-Bstatic'
21428 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21429 lt_prog_compiler_wl_GCJ='-Wl,'
21430 lt_prog_compiler_pic_GCJ='-KPIC'
21431 lt_prog_compiler_static_GCJ='-Bstatic'
21435 if test -d /usr/nec ;then
21436 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21437 lt_prog_compiler_static_GCJ='-Bstatic'
21442 lt_prog_compiler_pic_GCJ='-pic'
21443 lt_prog_compiler_static_GCJ='-Bstatic'
21447 lt_prog_compiler_can_build_shared_GCJ=no
21452 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21453 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21456 # Check to make sure the PIC flag actually works.
21458 if test -n "$lt_prog_compiler_pic_GCJ"; then
21460 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21461 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21462 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21463 echo $ECHO_N "(cached) $ECHO_C" >&6
21465 lt_prog_compiler_pic_works_GCJ=no
21466 ac_outfile=conftest.$ac_objext
21467 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21468 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21469 # Insert the option either (1) after the last *FLAGS variable, or
21470 # (2) before a word containing "conftest.", or (3) at the end.
21471 # Note that $ac_compile itself does not contain backslashes and begins
21472 # with a dollar sign (not a hyphen), so the echo should work correctly.
21473 # The option is referenced via a variable to avoid confusing sed.
21474 lt_compile=`echo "$ac_compile" | $SED \
21475 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21477 -e 's:$: $lt_compiler_flag:'`
21478 (eval echo "\"\$as_me:21478: $lt_compile\"" >&5)
21479 (eval "$lt_compile" 2>conftest.err)
21481 cat conftest.err >&5
21482 echo "$as_me:21482: \$? = $ac_status" >&5
21483 if (exit $ac_status) && test -s "$ac_outfile"; then
21484 # The compiler can only warn and ignore the option if not recognized
21485 # So say no if there are warnings
21486 if test ! -s conftest.err; then
21487 lt_prog_compiler_pic_works_GCJ=yes
21493 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21494 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21496 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21497 case $lt_prog_compiler_pic_GCJ in
21499 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21502 lt_prog_compiler_pic_GCJ=
21503 lt_prog_compiler_can_build_shared_GCJ=no
21508 # For platforms which do not support PIC, -DPIC is meaningless:
21510 lt_prog_compiler_pic_GCJ=
21513 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21517 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21518 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21519 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21520 echo $ECHO_N "(cached) $ECHO_C" >&6
21522 lt_cv_prog_compiler_c_o_GCJ=no
21523 $rm -r conftest 2>/dev/null
21527 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21529 lt_compiler_flag="-o out/conftest2.$ac_objext"
21530 # Insert the option either (1) after the last *FLAGS variable, or
21531 # (2) before a word containing "conftest.", or (3) at the end.
21532 # Note that $ac_compile itself does not contain backslashes and begins
21533 # with a dollar sign (not a hyphen), so the echo should work correctly.
21534 lt_compile=`echo "$ac_compile" | $SED \
21535 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21537 -e 's:$: $lt_compiler_flag:'`
21538 (eval echo "\"\$as_me:21538: $lt_compile\"" >&5)
21539 (eval "$lt_compile" 2>out/conftest.err)
21541 cat out/conftest.err >&5
21542 echo "$as_me:21542: \$? = $ac_status" >&5
21543 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21545 # The compiler can only warn and ignore the option if not recognized
21546 # So say no if there are warnings
21547 if test ! -s out/conftest.err; then
21548 lt_cv_prog_compiler_c_o_GCJ=yes
21553 # SGI C++ compiler will create directory out/ii_files/ for
21554 # template instantiation
21555 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21556 $rm out/* && rmdir out
21562 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21563 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21566 hard_links="nottested"
21567 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21568 # do not overwrite the value of need_locks provided by the user
21569 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21570 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21575 ln conftest.a conftest.b 2>&5 || hard_links=no
21576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21577 echo "$as_me:$LINENO: result: $hard_links" >&5
21578 echo "${ECHO_T}$hard_links" >&6
21579 if test "$hard_links" = no; then
21580 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21581 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21588 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21589 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21592 allow_undefined_flag_GCJ=
21593 enable_shared_with_static_runtimes_GCJ=no
21595 archive_expsym_cmds_GCJ=
21596 old_archive_From_new_cmds_GCJ=
21597 old_archive_from_expsyms_cmds_GCJ=
21598 export_dynamic_flag_spec_GCJ=
21599 whole_archive_flag_spec_GCJ=
21600 thread_safe_flag_spec_GCJ=
21601 hardcode_libdir_flag_spec_GCJ=
21602 hardcode_libdir_flag_spec_ld_GCJ=
21603 hardcode_libdir_separator_GCJ=
21604 hardcode_direct_GCJ=no
21605 hardcode_minus_L_GCJ=no
21606 hardcode_shlibpath_var_GCJ=unsupported
21607 link_all_deplibs_GCJ=unknown
21608 hardcode_automatic_GCJ=no
21610 module_expsym_cmds_GCJ=
21611 always_export_symbols_GCJ=no
21612 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21613 # include_expsyms should be a list of space-separated symbols to be *always*
21614 # included in the symbol list
21615 include_expsyms_GCJ=
21616 # exclude_expsyms can be an extended regexp of symbols to exclude
21617 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21618 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21619 # as well as any symbol that contains `d'.
21620 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21621 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21622 # platforms (ab)use it in PIC code, but their linkers get confused if
21623 # the symbol is explicitly referenced. Since portable code cannot
21624 # rely on this symbol name, it's probably fine to never include it in
21625 # preloaded symbol tables.
21626 extract_expsyms_cmds=
21629 cygwin* | mingw* | pw32*)
21630 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21631 # When not using gcc, we currently assume that we are using
21632 # Microsoft Visual C++.
21633 if test "$GCC" != yes; then
21643 if test "$with_gnu_ld" = yes; then
21644 # If archive_cmds runs LD, not CC, wlarc should be empty
21647 # See if GNU ld supports shared libraries.
21649 aix3* | aix4* | aix5*)
21650 # On AIX/PPC, the GNU linker is very broken
21651 if test "$host_cpu" != ia64; then
21655 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21656 *** to be unable to reliably create shared libraries on AIX.
21657 *** Therefore, libtool is disabling shared libraries support. If you
21658 *** really care for shared libraries, you may want to modify your PATH
21659 *** so that a non-GNU linker is found, and then restart.
21666 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)'
21667 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21668 hardcode_minus_L_GCJ=yes
21670 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21671 # that the semantics of dynamic libraries on AmigaOS, at least up
21672 # to version 4, is to share data among multiple programs linked
21673 # with the same dynamic library. Since this doesn't match the
21674 # behavior of shared libraries on other platforms, we can't use
21680 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21681 allow_undefined_flag_GCJ=unsupported
21682 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21683 # support --undefined. This deserves some investigation. FIXME
21684 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21690 cygwin* | mingw* | pw32*)
21691 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21692 # as there is no search path for DLLs.
21693 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21694 allow_undefined_flag_GCJ=unsupported
21695 always_export_symbols_GCJ=no
21696 enable_shared_with_static_runtimes_GCJ=yes
21697 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21699 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21700 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21701 # If the export-symbols file already is a .def file (1st line
21702 # is EXPORTS), use it as is; otherwise, prepend...
21703 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21704 cp $export_symbols $output_objdir/$soname.def;
21706 echo EXPORTS > $output_objdir/$soname.def;
21707 cat $export_symbols >> $output_objdir/$soname.def;
21709 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21716 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21717 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21720 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21721 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21726 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21730 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21731 *** create shared libraries on Solaris systems. Therefore, libtool
21732 *** is disabling shared libraries support. We urge you to upgrade GNU
21733 *** binutils to release 2.9.1 or newer. Another option is to modify
21734 *** your PATH or compiler configuration so that the native linker is
21735 *** used, and then restart.
21738 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21739 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21740 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21747 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21749 hardcode_direct_GCJ=yes
21750 hardcode_shlibpath_var_GCJ=no
21754 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21755 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21756 archive_cmds_GCJ="$tmp_archive_cmds"
21757 supports_anon_versioning=no
21758 case `$LD -v 2>/dev/null` in
21759 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21760 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21761 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21762 *\ 2.11.*) ;; # other 2.11 versions
21763 *) supports_anon_versioning=yes ;;
21765 if test $supports_anon_versioning = yes; then
21766 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21767 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21768 $echo "local: *; };" >> $output_objdir/$libname.ver~
21769 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21771 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21779 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21780 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21781 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21788 if test "$ld_shlibs_GCJ" = yes; then
21789 runpath_var=LD_RUN_PATH
21790 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21791 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21792 # ancient GNU ld didn't support --whole-archive et. al.
21793 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21794 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21796 whole_archive_flag_spec_GCJ=
21800 # PORTME fill in a description of your system's linker (not GNU ld)
21803 allow_undefined_flag_GCJ=unsupported
21804 always_export_symbols_GCJ=yes
21805 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'
21806 # Note: this linker hardcodes the directories in LIBPATH if there
21807 # are no directories specified by -L.
21808 hardcode_minus_L_GCJ=yes
21809 if test "$GCC" = yes && test -z "$link_static_flag"; then
21810 # Neither direct hardcoding nor static linking is supported with a
21812 hardcode_direct_GCJ=unsupported
21817 if test "$host_cpu" = ia64; then
21818 # On IA64, the linker does run time linking by default, so we don't
21819 # have to do anything special.
21820 aix_use_runtimelinking=no
21821 exp_sym_flag='-Bexport'
21824 # If we're using GNU nm, then we don't want the "-C" option.
21825 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21826 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21827 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'
21829 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'
21831 aix_use_runtimelinking=no
21833 # Test if we are trying to use run time linking or normal
21834 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21835 # need to do runtime linking.
21836 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21837 for ld_flag in $LDFLAGS; do
21838 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21839 aix_use_runtimelinking=yes
21845 exp_sym_flag='-bexport'
21846 no_entry_flag='-bnoentry'
21849 # When large executables or shared objects are built, AIX ld can
21850 # have problems creating the table of contents. If linking a library
21851 # or program results in "error TOC overflow" add -mminimal-toc to
21852 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21853 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21855 archive_cmds_GCJ=''
21856 hardcode_direct_GCJ=yes
21857 hardcode_libdir_separator_GCJ=':'
21858 link_all_deplibs_GCJ=yes
21860 if test "$GCC" = yes; then
21861 case $host_os in aix4.012|aix4.012.*)
21862 # We only want to do this on AIX 4.2 and lower, the check
21863 # below for broken collect2 doesn't work under 4.3+
21864 collect2name=`${CC} -print-prog-name=collect2`
21865 if test -f "$collect2name" && \
21866 strings "$collect2name" | grep resolve_lib_name >/dev/null
21868 # We have reworked collect2
21869 hardcode_direct_GCJ=yes
21871 # We have old collect2
21872 hardcode_direct_GCJ=unsupported
21873 # It fails to find uninstalled libraries when the uninstalled
21874 # path is not listed in the libpath. Setting hardcode_minus_L
21875 # to unsupported forces relinking
21876 hardcode_minus_L_GCJ=yes
21877 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21878 hardcode_libdir_separator_GCJ=
21881 shared_flag='-shared'
21884 if test "$host_cpu" = ia64; then
21885 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21886 # chokes on -Wl,-G. The following line is correct:
21889 if test "$aix_use_runtimelinking" = yes; then
21890 shared_flag='${wl}-G'
21892 shared_flag='${wl}-bM:SRE'
21897 # It seems that -bexpall does not export symbols beginning with
21898 # underscore (_), so it is better to generate a list of symbols to export.
21899 always_export_symbols_GCJ=yes
21900 if test "$aix_use_runtimelinking" = yes; then
21901 # Warning - without using the other runtime loading flags (-brtl),
21902 # -berok will link without error, but may produce a broken library.
21903 allow_undefined_flag_GCJ='-berok'
21904 # Determine the default libpath from the value encoded in an empty executable.
21905 cat >conftest.$ac_ext <<_ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h. */
21920 rm -f conftest.$ac_objext conftest$ac_exeext
21921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21922 (eval $ac_link) 2>conftest.er1
21924 grep -v '^ *+' conftest.er1 >conftest.err
21926 cat conftest.err >&5
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); } &&
21929 { ac_try='test -z "$ac_c_werror_flag"
21930 || test ! -s conftest.err'
21931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21932 (eval $ac_try) 2>&5
21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 (exit $ac_status); }; } &&
21936 { ac_try='test -s conftest$ac_exeext'
21937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21938 (eval $ac_try) 2>&5
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); }; }; then
21943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21945 # Check for a 64-bit object if we didn't find anything.
21946 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; }
21949 echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21953 rm -f conftest.err conftest.$ac_objext \
21954 conftest$ac_exeext conftest.$ac_ext
21955 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21957 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21958 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"
21960 if test "$host_cpu" = ia64; then
21961 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21962 allow_undefined_flag_GCJ="-z nodefs"
21963 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"
21965 # Determine the default libpath from the value encoded in an empty executable.
21966 cat >conftest.$ac_ext <<_ACEOF
21969 cat confdefs.h >>conftest.$ac_ext
21970 cat >>conftest.$ac_ext <<_ACEOF
21971 /* end confdefs.h. */
21981 rm -f conftest.$ac_objext conftest$ac_exeext
21982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21983 (eval $ac_link) 2>conftest.er1
21985 grep -v '^ *+' conftest.er1 >conftest.err
21987 cat conftest.err >&5
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } &&
21990 { ac_try='test -z "$ac_c_werror_flag"
21991 || test ! -s conftest.err'
21992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21993 (eval $ac_try) 2>&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); }; } &&
21997 { ac_try='test -s conftest$ac_exeext'
21998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21999 (eval $ac_try) 2>&5
22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); }; }; then
22004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22006 # Check for a 64-bit object if we didn't find anything.
22007 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; }
22010 echo "$as_me: failed program was:" >&5
22011 sed 's/^/| /' conftest.$ac_ext >&5
22014 rm -f conftest.err conftest.$ac_objext \
22015 conftest$ac_exeext conftest.$ac_ext
22016 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22018 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22019 # Warning - without using the other run time loading flags,
22020 # -berok will link without error, but may produce a broken library.
22021 no_undefined_flag_GCJ=' ${wl}-bernotok'
22022 allow_undefined_flag_GCJ=' ${wl}-berok'
22023 # -bexpall does not export symbols beginning with underscore (_)
22024 always_export_symbols_GCJ=yes
22025 # Exported symbols can be pulled into shared objects from archives
22026 whole_archive_flag_spec_GCJ=' '
22027 archive_cmds_need_lc_GCJ=yes
22028 # This is similar to how AIX traditionally builds it's shared libraries.
22029 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'
22035 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)'
22036 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22037 hardcode_minus_L_GCJ=yes
22038 # see comment about different semantics on the GNU ld section
22043 export_dynamic_flag_spec_GCJ=-rdynamic
22046 cygwin* | mingw* | pw32*)
22047 # When not using gcc, we currently assume that we are using
22048 # Microsoft Visual C++.
22049 # hardcode_libdir_flag_spec is actually meaningless, as there is
22050 # no search path for DLLs.
22051 hardcode_libdir_flag_spec_GCJ=' '
22052 allow_undefined_flag_GCJ=unsupported
22053 # Tell ltmain to make .lib files, not .a files.
22055 # Tell ltmain to make .dll files, not .so files.
22057 # FIXME: Setting linknames here is a bad hack.
22058 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22059 # The linker will automatically build a .lib file if we build a DLL.
22060 old_archive_From_new_cmds_GCJ='true'
22061 # FIXME: Should let the user specify the lib program.
22062 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22063 fix_srcfile_path='`cygpath -w "$srcfile"`'
22064 enable_shared_with_static_runtimes_GCJ=yes
22067 darwin* | rhapsody*)
22069 rhapsody* | darwin1.[012])
22070 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22073 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22074 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22076 case ${MACOSX_DEPLOYMENT_TARGET} in
22078 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22081 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22087 archive_cmds_need_lc_GCJ=no
22088 hardcode_direct_GCJ=no
22089 hardcode_automatic_GCJ=yes
22090 hardcode_shlibpath_var_GCJ=unsupported
22091 whole_archive_flag_spec_GCJ=''
22092 link_all_deplibs_GCJ=yes
22093 if test "$GCC" = yes ; then
22094 output_verbose_link_cmd='echo'
22095 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22096 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22097 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22098 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}'
22099 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}'
22101 case "$cc_basename" in
22103 output_verbose_link_cmd='echo'
22104 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22105 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22106 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22107 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}'
22108 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}'
22118 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22119 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22120 hardcode_shlibpath_var_GCJ=no
22127 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22128 # support. Future versions do this automatically, but an explicit c++rt0.o
22129 # does not break anything, and helps significantly (at the cost of a little
22132 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22133 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22134 hardcode_direct_GCJ=yes
22135 hardcode_shlibpath_var_GCJ=no
22138 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22140 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22141 hardcode_direct_GCJ=yes
22142 hardcode_minus_L_GCJ=yes
22143 hardcode_shlibpath_var_GCJ=no
22146 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22147 freebsd* | kfreebsd*-gnu)
22148 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22149 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22150 hardcode_direct_GCJ=yes
22151 hardcode_shlibpath_var_GCJ=no
22155 if test "$GCC" = yes; then
22156 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'
22158 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'
22160 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22161 hardcode_libdir_separator_GCJ=:
22162 hardcode_direct_GCJ=yes
22164 # hardcode_minus_L: Not really in the search PATH,
22165 # but as the default location of the library.
22166 hardcode_minus_L_GCJ=yes
22167 export_dynamic_flag_spec_GCJ='${wl}-E'
22171 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22172 case "$host_cpu" in
22174 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22177 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22181 case "$host_cpu" in
22183 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22186 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22190 if test "$with_gnu_ld" = no; then
22191 case "$host_cpu" in
22193 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22194 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22195 hardcode_libdir_separator_GCJ=:
22196 hardcode_direct_GCJ=no
22197 hardcode_shlibpath_var_GCJ=no
22200 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22201 hardcode_direct_GCJ=no
22202 hardcode_shlibpath_var_GCJ=no
22204 # hardcode_minus_L: Not really in the search PATH,
22205 # but as the default location of the library.
22206 hardcode_minus_L_GCJ=yes
22209 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22210 hardcode_libdir_separator_GCJ=:
22211 hardcode_direct_GCJ=yes
22212 export_dynamic_flag_spec_GCJ='${wl}-E'
22214 # hardcode_minus_L: Not really in the search PATH,
22215 # but as the default location of the library.
22216 hardcode_minus_L_GCJ=yes
22222 irix5* | irix6* | nonstopux*)
22223 if test "$GCC" = yes; then
22224 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'
22226 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'
22227 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22229 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22230 hardcode_libdir_separator_GCJ=:
22231 link_all_deplibs_GCJ=yes
22235 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22236 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22238 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22240 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22241 hardcode_direct_GCJ=yes
22242 hardcode_shlibpath_var_GCJ=no
22246 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22247 hardcode_direct_GCJ=yes
22248 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22249 hardcode_libdir_separator_GCJ=:
22250 hardcode_shlibpath_var_GCJ=no
22254 hardcode_direct_GCJ=yes
22255 hardcode_shlibpath_var_GCJ=no
22256 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22257 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22258 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22259 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22260 export_dynamic_flag_spec_GCJ='${wl}-E'
22263 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22264 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22265 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22268 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22269 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22276 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22277 hardcode_minus_L_GCJ=yes
22278 allow_undefined_flag_GCJ=unsupported
22279 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'
22280 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22284 if test "$GCC" = yes; then
22285 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22286 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'
22288 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22289 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'
22291 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22292 hardcode_libdir_separator_GCJ=:
22295 osf4* | osf5*) # as osf3* with the addition of -msym flag
22296 if test "$GCC" = yes; then
22297 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22298 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'
22299 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22301 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22302 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'
22303 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~
22304 $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'
22306 # Both c and cxx compiler support -rpath directly
22307 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22309 hardcode_libdir_separator_GCJ=:
22313 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22314 hardcode_shlibpath_var_GCJ=no
22315 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22316 runpath_var=LD_RUN_PATH
22317 hardcode_runpath_var=yes
22321 no_undefined_flag_GCJ=' -z text'
22322 if test "$GCC" = yes; then
22323 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22324 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22325 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22327 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22328 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22329 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22331 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22332 hardcode_shlibpath_var_GCJ=no
22334 solaris2.[0-5] | solaris2.[0-5].*) ;;
22335 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22336 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22338 link_all_deplibs_GCJ=yes
22342 if test "x$host_vendor" = xsequent; then
22343 # Use $CC to link under sequent, because it throws in some extra .o
22344 # files that make .init and .fini sections work.
22345 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22347 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22349 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22350 hardcode_direct_GCJ=yes
22351 hardcode_minus_L_GCJ=yes
22352 hardcode_shlibpath_var_GCJ=no
22356 case $host_vendor in
22358 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22359 hardcode_direct_GCJ=yes # is this really true???
22362 ## LD is ld it makes a PLAMLIB
22363 ## CC just makes a GrossModule.
22364 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22365 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22366 hardcode_direct_GCJ=no
22369 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22370 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22373 runpath_var='LD_RUN_PATH'
22374 hardcode_shlibpath_var_GCJ=no
22378 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22379 hardcode_shlibpath_var_GCJ=no
22380 export_dynamic_flag_spec_GCJ='-Bexport'
22384 if test -d /usr/nec; then
22385 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22386 hardcode_shlibpath_var_GCJ=no
22387 runpath_var=LD_RUN_PATH
22388 hardcode_runpath_var=yes
22394 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22395 hardcode_direct_GCJ=yes
22396 hardcode_minus_L_GCJ=no
22397 hardcode_shlibpath_var_GCJ=no
22398 hardcode_runpath_var=yes
22399 runpath_var=LD_RUN_PATH
22402 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22403 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22404 if test "$GCC" = yes; then
22405 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22407 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22409 runpath_var='LD_RUN_PATH'
22410 hardcode_shlibpath_var_GCJ=no
22414 no_undefined_flag_GCJ=' -z text'
22415 # $CC -shared without GNU ld will not create a library from C++
22416 # object files and a static libstdc++, better avoid it by now
22417 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22418 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22419 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22420 hardcode_libdir_flag_spec_GCJ=
22421 hardcode_shlibpath_var_GCJ=no
22422 runpath_var='LD_RUN_PATH'
22426 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22427 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22428 hardcode_shlibpath_var_GCJ=no
22437 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22438 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22439 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22441 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22442 if test "$GCC" = yes; then
22443 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22447 # Do we need to explicitly link libc?
22449 case "x$archive_cmds_need_lc_GCJ" in
22451 # Assume -lc should be added
22452 archive_cmds_need_lc_GCJ=yes
22454 if test "$enable_shared" = yes && test "$GCC" = yes; then
22455 case $archive_cmds_GCJ in
22457 # FIXME: we may have to deal with multi-command sequences.
22460 # Test whether the compiler implicitly links with -lc since on some
22461 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22462 # to ld, don't add -lc before -lgcc.
22463 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22464 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22466 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22469 (eval $ac_compile) 2>&5
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); } 2>conftest.err; then
22475 libobjs=conftest.$ac_objext
22477 wl=$lt_prog_compiler_wl_GCJ
22483 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22484 allow_undefined_flag_GCJ=
22485 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22486 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); }
22491 archive_cmds_need_lc_GCJ=no
22493 archive_cmds_need_lc_GCJ=yes
22495 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22497 cat conftest.err 1>&5
22500 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22501 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22508 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22509 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22510 library_names_spec=
22511 libname_spec='lib$name'
22515 postuninstall_cmds=
22519 shlibpath_overrides_runpath=unknown
22521 dynamic_linker="$host_os ld.so"
22522 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22523 if test "$GCC" = yes; then
22524 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22525 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22526 # if the path contains ";" then we assume it to be the separator
22527 # otherwise default to the standard path separator (i.e. ":") - it is
22528 # assumed that no part of a normal pathname contains ";" but that should
22529 # okay in the real world where ";" in dirpaths is itself problematic.
22530 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22532 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22535 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22537 need_lib_prefix=unknown
22538 hardcode_into_libs=no
22540 # when you set need_version to no, make sure it does not cause -set_version
22541 # flags to be left without arguments
22542 need_version=unknown
22547 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22548 shlibpath_var=LIBPATH
22550 # AIX 3 has no versioning support, so we append a major version to the name.
22551 soname_spec='${libname}${release}${shared_ext}$major'
22558 hardcode_into_libs=yes
22559 if test "$host_cpu" = ia64; then
22560 # AIX 5 supports IA64
22561 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22562 shlibpath_var=LD_LIBRARY_PATH
22564 # With GCC up to 2.95.x, collect2 would create an import file
22565 # for dependence libraries. The import file would start with
22566 # the line `#! .'. This would cause the generated library to
22567 # depend on `.', always an invalid library. This was fixed in
22568 # development snapshots of GCC prior to 3.0.
22570 aix4 | aix4.[01] | aix4.[01].*)
22571 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22573 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22576 can_build_shared=no
22580 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22581 # soname into executable. Probably we can add versioning support to
22582 # collect2, so additional links can be useful in future.
22583 if test "$aix_use_runtimelinking" = yes; then
22584 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22585 # instead of lib<name>.a to let people know that these are not
22586 # typical AIX shared libraries.
22587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22589 # We preserve .a as extension for shared libraries through AIX4.2
22590 # and later when we are not doing run time linking.
22591 library_names_spec='${libname}${release}.a $libname.a'
22592 soname_spec='${libname}${release}${shared_ext}$major'
22594 shlibpath_var=LIBPATH
22599 library_names_spec='$libname.ixlibrary $libname.a'
22600 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22601 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'
22605 library_names_spec='${libname}${shared_ext}'
22606 dynamic_linker="$host_os ld.so"
22607 shlibpath_var=LIBRARY_PATH
22613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22614 soname_spec='${libname}${release}${shared_ext}$major'
22615 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22616 shlibpath_var=LD_LIBRARY_PATH
22617 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22618 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22619 # the default ld.so.conf also contains /usr/contrib/lib and
22620 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22621 # libtool to hard-code these into programs
22624 cygwin* | mingw* | pw32*)
22625 version_type=windows
22630 case $GCC,$host_os in
22631 yes,cygwin* | yes,mingw* | yes,pw32*)
22632 library_names_spec='$libname.dll.a'
22633 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22634 postinstall_cmds='base_file=`basename \${file}`~
22635 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22636 dldir=$destdir/`dirname \$dlpath`~
22637 test -d \$dldir || mkdir -p \$dldir~
22638 $install_prog $dir/$dlname \$dldir/$dlname'
22639 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22640 dlpath=$dir/\$dldll~
22642 shlibpath_overrides_runpath=yes
22646 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22647 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22648 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22651 # MinGW DLLs use traditional 'lib' prefix
22652 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22653 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22654 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22655 # It is most probably a Windows format PATH printed by
22656 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22657 # path with ; separators, and with drive letters. We can handle the
22658 # drive letters (cygwin fileutils understands them), so leave them,
22659 # especially as we might pass files found there to a mingw objdump,
22660 # which wouldn't understand a cygwinified path. Ahh.
22661 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22663 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22667 # pw32 DLLs use 'pw' prefix rather than 'lib'
22668 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22674 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22677 dynamic_linker='Win32 ld.exe'
22678 # FIXME: first we should search . and the directory the executable is in
22682 darwin* | rhapsody*)
22683 dynamic_linker="$host_os dyld"
22684 version_type=darwin
22687 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22688 soname_spec='${libname}${release}${major}$shared_ext'
22689 shlibpath_overrides_runpath=yes
22690 shlibpath_var=DYLD_LIBRARY_PATH
22691 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22692 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22693 if test "$GCC" = yes; then
22694 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"`
22696 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22698 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22706 soname_spec='${libname}${release}${shared_ext}$major'
22707 shlibpath_var=LD_LIBRARY_PATH
22718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22719 soname_spec='${libname}${release}${shared_ext}$major'
22720 shlibpath_var=LD_LIBRARY_PATH
22721 shlibpath_overrides_runpath=no
22722 hardcode_into_libs=yes
22723 dynamic_linker='GNU ld.so'
22727 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22728 version_type=freebsd-$objformat
22729 case $version_type in
22731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22736 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22740 shlibpath_var=LD_LIBRARY_PATH
22743 shlibpath_overrides_runpath=yes
22745 freebsd3.01* | freebsdelf3.01*)
22746 shlibpath_overrides_runpath=yes
22747 hardcode_into_libs=yes
22750 shlibpath_overrides_runpath=no
22751 hardcode_into_libs=yes
22760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22761 soname_spec='${libname}${release}${shared_ext}$major'
22762 shlibpath_var=LD_LIBRARY_PATH
22763 hardcode_into_libs=yes
22766 hpux9* | hpux10* | hpux11*)
22767 # Give a soname corresponding to the major version so that dld.sl refuses to
22768 # link against other versions.
22772 case "$host_cpu" in
22775 hardcode_into_libs=yes
22776 dynamic_linker="$host_os dld.so"
22777 shlibpath_var=LD_LIBRARY_PATH
22778 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22780 soname_spec='${libname}${release}${shared_ext}$major'
22781 if test "X$HPUX_IA64_MODE" = X32; then
22782 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22784 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22790 hardcode_into_libs=yes
22791 dynamic_linker="$host_os dld.sl"
22792 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22793 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22795 soname_spec='${libname}${release}${shared_ext}$major'
22796 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22797 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22801 dynamic_linker="$host_os dld.sl"
22802 shlibpath_var=SHLIB_PATH
22803 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22805 soname_spec='${libname}${release}${shared_ext}$major'
22808 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22809 postinstall_cmds='chmod 555 $lib'
22812 irix5* | irix6* | nonstopux*)
22814 nonstopux*) version_type=nonstopux ;;
22816 if test "$lt_cv_prog_gnu_ld" = yes; then
22824 soname_spec='${libname}${release}${shared_ext}$major'
22825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22827 irix5* | nonstopux*)
22828 libsuff= shlibsuff=
22831 case $LD in # libtool.m4 will add one of these switches to LD
22832 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22833 libsuff= shlibsuff= libmagic=32-bit;;
22834 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22835 libsuff=32 shlibsuff=N32 libmagic=N32;;
22836 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22837 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22838 *) libsuff= shlibsuff= libmagic=never-match;;
22842 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22843 shlibpath_overrides_runpath=no
22844 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22845 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22846 hardcode_into_libs=yes
22849 # No shared lib support for Linux oldld, aout, or coff.
22850 linux*oldld* | linux*aout* | linux*coff*)
22854 # This must be Linux ELF.
22859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22860 soname_spec='${libname}${release}${shared_ext}$major'
22861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22862 shlibpath_var=LD_LIBRARY_PATH
22863 shlibpath_overrides_runpath=no
22864 # This implies no fast_install, which is unacceptable.
22865 # Some rework will be needed to allow for fast_install
22866 # before this can be enabled.
22867 hardcode_into_libs=yes
22869 # Append ld.so.conf contents to the search path
22870 if test -f /etc/ld.so.conf; then
22871 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22872 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22875 # We used to test for /lib/ld.so.1 and disable shared libraries on
22876 # powerpc, because MkLinux only supported shared libraries with the
22877 # GNU dynamic linker. Since this was broken with cross compilers,
22878 # most powerpc-linux boxes support dynamic linking these days and
22879 # people can always --disable-shared, the test was removed, and we
22880 # assume the GNU/Linux dynamic linker is in use.
22881 dynamic_linker='GNU/Linux ld.so'
22888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22889 soname_spec='${libname}${release}${shared_ext}$major'
22890 shlibpath_var=LD_LIBRARY_PATH
22891 shlibpath_overrides_runpath=no
22892 hardcode_into_libs=yes
22893 dynamic_linker='GNU ld.so'
22900 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22903 dynamic_linker='NetBSD (a.out) ld.so'
22905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22906 soname_spec='${libname}${release}${shared_ext}$major'
22907 dynamic_linker='NetBSD ld.elf_so'
22909 shlibpath_var=LD_LIBRARY_PATH
22910 shlibpath_overrides_runpath=yes
22911 hardcode_into_libs=yes
22916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22917 shlibpath_var=LD_LIBRARY_PATH
22918 shlibpath_overrides_runpath=yes
22925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22926 soname_spec='${libname}${release}${shared_ext}$major'
22927 shlibpath_var=LD_LIBRARY_PATH
22928 shlibpath_overrides_runpath=yes
22935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22937 shlibpath_var=LD_LIBRARY_PATH
22938 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22940 openbsd2.[89] | openbsd2.[89].*)
22941 shlibpath_overrides_runpath=no
22944 shlibpath_overrides_runpath=yes
22948 shlibpath_overrides_runpath=yes
22953 libname_spec='$name'
22956 library_names_spec='$libname${shared_ext} $libname.a'
22957 dynamic_linker='OS/2 ld.exe'
22958 shlibpath_var=LIBPATH
22961 osf3* | osf4* | osf5*)
22965 soname_spec='${libname}${release}${shared_ext}$major'
22966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22967 shlibpath_var=LD_LIBRARY_PATH
22968 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22969 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22974 soname_spec='${libname}${release}${shared_ext}$major'
22975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22976 shlibpath_var=LD_LIBRARY_PATH
22983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22984 soname_spec='${libname}${release}${shared_ext}$major'
22985 shlibpath_var=LD_LIBRARY_PATH
22986 shlibpath_overrides_runpath=yes
22987 hardcode_into_libs=yes
22988 # ldd complains unless libraries are executable
22989 postinstall_cmds='chmod +x $lib'
22994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22995 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22996 shlibpath_var=LD_LIBRARY_PATH
22997 shlibpath_overrides_runpath=yes
22998 if test "$with_gnu_ld" = yes; then
23004 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23007 soname_spec='${libname}${release}${shared_ext}$major'
23008 shlibpath_var=LD_LIBRARY_PATH
23009 case $host_vendor in
23011 shlibpath_overrides_runpath=no
23013 export_dynamic_flag_spec='${wl}-Blargedynsym'
23014 runpath_var=LD_RUN_PATH
23022 shlibpath_overrides_runpath=no
23023 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23029 if test -d /usr/nec ;then
23031 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23032 soname_spec='$libname${shared_ext}.$major'
23033 shlibpath_var=LD_LIBRARY_PATH
23039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23040 soname_spec='${libname}${release}${shared_ext}$major'
23041 shlibpath_var=LD_LIBRARY_PATH
23048 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23049 echo "${ECHO_T}$dynamic_linker" >&6
23050 test "$dynamic_linker" = no && can_build_shared=no
23052 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23053 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23054 hardcode_action_GCJ=
23055 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23056 test -n "$runpath_var_GCJ" || \
23057 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23059 # We can hardcode non-existant directories.
23060 if test "$hardcode_direct_GCJ" != no &&
23061 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23062 # have to relink, otherwise we might link with an installed library
23063 # when we should be linking with a yet-to-be-installed one
23064 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23065 test "$hardcode_minus_L_GCJ" != no; then
23066 # Linking always hardcodes the temporary library directory.
23067 hardcode_action_GCJ=relink
23069 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23070 hardcode_action_GCJ=immediate
23073 # We cannot hardcode anything, or else we can only hardcode existing
23075 hardcode_action_GCJ=unsupported
23077 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23078 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23080 if test "$hardcode_action_GCJ" = relink; then
23081 # Fast installation is not supported
23082 enable_fast_install=no
23083 elif test "$shlibpath_overrides_runpath" = yes ||
23084 test "$enable_shared" = no; then
23085 # Fast installation is not necessary
23086 enable_fast_install=needless
23091 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23092 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23093 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23094 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23095 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23096 echo "$as_me:$LINENO: result: yes" >&5
23097 echo "${ECHO_T}yes" >&6
23099 # FIXME - insert some real tests, host_os isn't really good enough
23102 if test -n "$STRIP" ; then
23103 striplib="$STRIP -x"
23104 echo "$as_me:$LINENO: result: yes" >&5
23105 echo "${ECHO_T}yes" >&6
23107 echo "$as_me:$LINENO: result: no" >&5
23108 echo "${ECHO_T}no" >&6
23112 echo "$as_me:$LINENO: result: no" >&5
23113 echo "${ECHO_T}no" >&6
23118 if test "x$enable_dlopen" != xyes; then
23119 enable_dlopen=unknown
23120 enable_dlopen_self=unknown
23121 enable_dlopen_self_static=unknown
23128 lt_cv_dlopen="load_add_on"
23130 lt_cv_dlopen_self=yes
23134 lt_cv_dlopen="LoadLibrary"
23139 lt_cv_dlopen="dlopen"
23144 # if libdl is installed we need to link against it
23145 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23146 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23147 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23148 echo $ECHO_N "(cached) $ECHO_C" >&6
23150 ac_check_lib_save_LIBS=$LIBS
23152 cat >conftest.$ac_ext <<_ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h. */
23159 /* Override any gcc2 internal prototype to avoid an error. */
23163 /* We use char because int might match the return type of a gcc2
23164 builtin and then its argument prototype would still apply. */
23174 rm -f conftest.$ac_objext conftest$ac_exeext
23175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23176 (eval $ac_link) 2>conftest.er1
23178 grep -v '^ *+' conftest.er1 >conftest.err
23180 cat conftest.err >&5
23181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182 (exit $ac_status); } &&
23183 { ac_try='test -z "$ac_c_werror_flag"
23184 || test ! -s conftest.err'
23185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23186 (eval $ac_try) 2>&5
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); }; } &&
23190 { ac_try='test -s conftest$ac_exeext'
23191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23192 (eval $ac_try) 2>&5
23194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); }; }; then
23196 ac_cv_lib_dl_dlopen=yes
23198 echo "$as_me: failed program was:" >&5
23199 sed 's/^/| /' conftest.$ac_ext >&5
23201 ac_cv_lib_dl_dlopen=no
23203 rm -f conftest.err conftest.$ac_objext \
23204 conftest$ac_exeext conftest.$ac_ext
23205 LIBS=$ac_check_lib_save_LIBS
23207 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23208 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23209 if test $ac_cv_lib_dl_dlopen = yes; then
23210 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23213 lt_cv_dlopen="dyld"
23215 lt_cv_dlopen_self=yes
23222 echo "$as_me:$LINENO: checking for shl_load" >&5
23223 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23224 if test "${ac_cv_func_shl_load+set}" = set; then
23225 echo $ECHO_N "(cached) $ECHO_C" >&6
23227 cat >conftest.$ac_ext <<_ACEOF
23230 cat confdefs.h >>conftest.$ac_ext
23231 cat >>conftest.$ac_ext <<_ACEOF
23232 /* end confdefs.h. */
23233 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23235 #define shl_load innocuous_shl_load
23237 /* System header to define __stub macros and hopefully few prototypes,
23238 which can conflict with char shl_load (); below.
23239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23240 <limits.h> exists even on freestanding compilers. */
23243 # include <limits.h>
23245 # include <assert.h>
23250 /* Override any gcc2 internal prototype to avoid an error. */
23255 /* We use char because int might match the return type of a gcc2
23256 builtin and then its argument prototype would still apply. */
23258 /* The GNU C library defines this for functions which it implements
23259 to always fail with ENOSYS. Some functions are actually named
23260 something starting with __ and the normal name is an alias. */
23261 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23264 char (*f) () = shl_load;
23273 return f != shl_load;
23278 rm -f conftest.$ac_objext conftest$ac_exeext
23279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23280 (eval $ac_link) 2>conftest.er1
23282 grep -v '^ *+' conftest.er1 >conftest.err
23284 cat conftest.err >&5
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); } &&
23287 { ac_try='test -z "$ac_c_werror_flag"
23288 || test ! -s conftest.err'
23289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23290 (eval $ac_try) 2>&5
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); }; } &&
23294 { ac_try='test -s conftest$ac_exeext'
23295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296 (eval $ac_try) 2>&5
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); }; }; then
23300 ac_cv_func_shl_load=yes
23302 echo "$as_me: failed program was:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23305 ac_cv_func_shl_load=no
23307 rm -f conftest.err conftest.$ac_objext \
23308 conftest$ac_exeext conftest.$ac_ext
23310 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23311 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23312 if test $ac_cv_func_shl_load = yes; then
23313 lt_cv_dlopen="shl_load"
23315 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23316 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23317 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23318 echo $ECHO_N "(cached) $ECHO_C" >&6
23320 ac_check_lib_save_LIBS=$LIBS
23322 cat >conftest.$ac_ext <<_ACEOF
23325 cat confdefs.h >>conftest.$ac_ext
23326 cat >>conftest.$ac_ext <<_ACEOF
23327 /* end confdefs.h. */
23329 /* Override any gcc2 internal prototype to avoid an error. */
23333 /* We use char because int might match the return type of a gcc2
23334 builtin and then its argument prototype would still apply. */
23344 rm -f conftest.$ac_objext conftest$ac_exeext
23345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23346 (eval $ac_link) 2>conftest.er1
23348 grep -v '^ *+' conftest.er1 >conftest.err
23350 cat conftest.err >&5
23351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352 (exit $ac_status); } &&
23353 { ac_try='test -z "$ac_c_werror_flag"
23354 || test ! -s conftest.err'
23355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23356 (eval $ac_try) 2>&5
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); }; } &&
23360 { ac_try='test -s conftest$ac_exeext'
23361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23362 (eval $ac_try) 2>&5
23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); }; }; then
23366 ac_cv_lib_dld_shl_load=yes
23368 echo "$as_me: failed program was:" >&5
23369 sed 's/^/| /' conftest.$ac_ext >&5
23371 ac_cv_lib_dld_shl_load=no
23373 rm -f conftest.err conftest.$ac_objext \
23374 conftest$ac_exeext conftest.$ac_ext
23375 LIBS=$ac_check_lib_save_LIBS
23377 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23378 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23379 if test $ac_cv_lib_dld_shl_load = yes; then
23380 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23382 echo "$as_me:$LINENO: checking for dlopen" >&5
23383 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23384 if test "${ac_cv_func_dlopen+set}" = set; then
23385 echo $ECHO_N "(cached) $ECHO_C" >&6
23387 cat >conftest.$ac_ext <<_ACEOF
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h. */
23393 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23395 #define dlopen innocuous_dlopen
23397 /* System header to define __stub macros and hopefully few prototypes,
23398 which can conflict with char dlopen (); below.
23399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23400 <limits.h> exists even on freestanding compilers. */
23403 # include <limits.h>
23405 # include <assert.h>
23410 /* Override any gcc2 internal prototype to avoid an error. */
23415 /* We use char because int might match the return type of a gcc2
23416 builtin and then its argument prototype would still apply. */
23418 /* The GNU C library defines this for functions which it implements
23419 to always fail with ENOSYS. Some functions are actually named
23420 something starting with __ and the normal name is an alias. */
23421 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23424 char (*f) () = dlopen;
23433 return f != dlopen;
23438 rm -f conftest.$ac_objext conftest$ac_exeext
23439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23440 (eval $ac_link) 2>conftest.er1
23442 grep -v '^ *+' conftest.er1 >conftest.err
23444 cat conftest.err >&5
23445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446 (exit $ac_status); } &&
23447 { ac_try='test -z "$ac_c_werror_flag"
23448 || test ! -s conftest.err'
23449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23450 (eval $ac_try) 2>&5
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); }; } &&
23454 { ac_try='test -s conftest$ac_exeext'
23455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23456 (eval $ac_try) 2>&5
23458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459 (exit $ac_status); }; }; then
23460 ac_cv_func_dlopen=yes
23462 echo "$as_me: failed program was:" >&5
23463 sed 's/^/| /' conftest.$ac_ext >&5
23465 ac_cv_func_dlopen=no
23467 rm -f conftest.err conftest.$ac_objext \
23468 conftest$ac_exeext conftest.$ac_ext
23470 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23471 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23472 if test $ac_cv_func_dlopen = yes; then
23473 lt_cv_dlopen="dlopen"
23475 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23476 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23477 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23478 echo $ECHO_N "(cached) $ECHO_C" >&6
23480 ac_check_lib_save_LIBS=$LIBS
23482 cat >conftest.$ac_ext <<_ACEOF
23485 cat confdefs.h >>conftest.$ac_ext
23486 cat >>conftest.$ac_ext <<_ACEOF
23487 /* end confdefs.h. */
23489 /* Override any gcc2 internal prototype to avoid an error. */
23493 /* We use char because int might match the return type of a gcc2
23494 builtin and then its argument prototype would still apply. */
23504 rm -f conftest.$ac_objext conftest$ac_exeext
23505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23506 (eval $ac_link) 2>conftest.er1
23508 grep -v '^ *+' conftest.er1 >conftest.err
23510 cat conftest.err >&5
23511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); } &&
23513 { ac_try='test -z "$ac_c_werror_flag"
23514 || test ! -s conftest.err'
23515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23516 (eval $ac_try) 2>&5
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); }; } &&
23520 { ac_try='test -s conftest$ac_exeext'
23521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23522 (eval $ac_try) 2>&5
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); }; }; then
23526 ac_cv_lib_dl_dlopen=yes
23528 echo "$as_me: failed program was:" >&5
23529 sed 's/^/| /' conftest.$ac_ext >&5
23531 ac_cv_lib_dl_dlopen=no
23533 rm -f conftest.err conftest.$ac_objext \
23534 conftest$ac_exeext conftest.$ac_ext
23535 LIBS=$ac_check_lib_save_LIBS
23537 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23538 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23539 if test $ac_cv_lib_dl_dlopen = yes; then
23540 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23542 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23543 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23544 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23545 echo $ECHO_N "(cached) $ECHO_C" >&6
23547 ac_check_lib_save_LIBS=$LIBS
23548 LIBS="-lsvld $LIBS"
23549 cat >conftest.$ac_ext <<_ACEOF
23552 cat confdefs.h >>conftest.$ac_ext
23553 cat >>conftest.$ac_ext <<_ACEOF
23554 /* end confdefs.h. */
23556 /* Override any gcc2 internal prototype to avoid an error. */
23560 /* We use char because int might match the return type of a gcc2
23561 builtin and then its argument prototype would still apply. */
23571 rm -f conftest.$ac_objext conftest$ac_exeext
23572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23573 (eval $ac_link) 2>conftest.er1
23575 grep -v '^ *+' conftest.er1 >conftest.err
23577 cat conftest.err >&5
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); } &&
23580 { ac_try='test -z "$ac_c_werror_flag"
23581 || test ! -s conftest.err'
23582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23583 (eval $ac_try) 2>&5
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); }; } &&
23587 { ac_try='test -s conftest$ac_exeext'
23588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23589 (eval $ac_try) 2>&5
23591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592 (exit $ac_status); }; }; then
23593 ac_cv_lib_svld_dlopen=yes
23595 echo "$as_me: failed program was:" >&5
23596 sed 's/^/| /' conftest.$ac_ext >&5
23598 ac_cv_lib_svld_dlopen=no
23600 rm -f conftest.err conftest.$ac_objext \
23601 conftest$ac_exeext conftest.$ac_ext
23602 LIBS=$ac_check_lib_save_LIBS
23604 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23605 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23606 if test $ac_cv_lib_svld_dlopen = yes; then
23607 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23609 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23610 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23611 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23612 echo $ECHO_N "(cached) $ECHO_C" >&6
23614 ac_check_lib_save_LIBS=$LIBS
23616 cat >conftest.$ac_ext <<_ACEOF
23619 cat confdefs.h >>conftest.$ac_ext
23620 cat >>conftest.$ac_ext <<_ACEOF
23621 /* end confdefs.h. */
23623 /* Override any gcc2 internal prototype to avoid an error. */
23627 /* We use char because int might match the return type of a gcc2
23628 builtin and then its argument prototype would still apply. */
23638 rm -f conftest.$ac_objext conftest$ac_exeext
23639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23640 (eval $ac_link) 2>conftest.er1
23642 grep -v '^ *+' conftest.er1 >conftest.err
23644 cat conftest.err >&5
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); } &&
23647 { ac_try='test -z "$ac_c_werror_flag"
23648 || test ! -s conftest.err'
23649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23650 (eval $ac_try) 2>&5
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); }; } &&
23654 { ac_try='test -s conftest$ac_exeext'
23655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656 (eval $ac_try) 2>&5
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); }; }; then
23660 ac_cv_lib_dld_dld_link=yes
23662 echo "$as_me: failed program was:" >&5
23663 sed 's/^/| /' conftest.$ac_ext >&5
23665 ac_cv_lib_dld_dld_link=no
23667 rm -f conftest.err conftest.$ac_objext \
23668 conftest$ac_exeext conftest.$ac_ext
23669 LIBS=$ac_check_lib_save_LIBS
23671 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23672 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23673 if test $ac_cv_lib_dld_dld_link = yes; then
23674 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23695 if test "x$lt_cv_dlopen" != xno; then
23701 case $lt_cv_dlopen in
23703 save_CPPFLAGS="$CPPFLAGS"
23704 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23706 save_LDFLAGS="$LDFLAGS"
23707 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23710 LIBS="$lt_cv_dlopen_libs $LIBS"
23712 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23713 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23714 if test "${lt_cv_dlopen_self+set}" = set; then
23715 echo $ECHO_N "(cached) $ECHO_C" >&6
23717 if test "$cross_compiling" = yes; then :
23718 lt_cv_dlopen_self=cross
23720 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23721 lt_status=$lt_dlunknown
23722 cat > conftest.$ac_ext <<EOF
23723 #line 23723 "configure"
23724 #include "confdefs.h"
23733 # define LT_DLGLOBAL RTLD_GLOBAL
23736 # define LT_DLGLOBAL DL_GLOBAL
23738 # define LT_DLGLOBAL 0
23742 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23743 find out it does not work in some platform. */
23744 #ifndef LT_DLLAZY_OR_NOW
23746 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23749 # define LT_DLLAZY_OR_NOW DL_LAZY
23752 # define LT_DLLAZY_OR_NOW RTLD_NOW
23755 # define LT_DLLAZY_OR_NOW DL_NOW
23757 # define LT_DLLAZY_OR_NOW 0
23765 extern "C" void exit (int);
23768 void fnord() { int i=42;}
23771 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23772 int status = $lt_dlunknown;
23776 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23777 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23778 /* dlclose (self); */
23784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23785 (eval $ac_link) 2>&5
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23789 (./conftest; exit; ) 2>/dev/null
23791 case x$lt_status in
23792 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23793 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23794 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23797 # compilation failed
23798 lt_cv_dlopen_self=no
23805 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23806 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23808 if test "x$lt_cv_dlopen_self" = xyes; then
23809 LDFLAGS="$LDFLAGS $link_static_flag"
23810 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23811 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23812 if test "${lt_cv_dlopen_self_static+set}" = set; then
23813 echo $ECHO_N "(cached) $ECHO_C" >&6
23815 if test "$cross_compiling" = yes; then :
23816 lt_cv_dlopen_self_static=cross
23818 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23819 lt_status=$lt_dlunknown
23820 cat > conftest.$ac_ext <<EOF
23821 #line 23821 "configure"
23822 #include "confdefs.h"
23831 # define LT_DLGLOBAL RTLD_GLOBAL
23834 # define LT_DLGLOBAL DL_GLOBAL
23836 # define LT_DLGLOBAL 0
23840 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23841 find out it does not work in some platform. */
23842 #ifndef LT_DLLAZY_OR_NOW
23844 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23847 # define LT_DLLAZY_OR_NOW DL_LAZY
23850 # define LT_DLLAZY_OR_NOW RTLD_NOW
23853 # define LT_DLLAZY_OR_NOW DL_NOW
23855 # define LT_DLLAZY_OR_NOW 0
23863 extern "C" void exit (int);
23866 void fnord() { int i=42;}
23869 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23870 int status = $lt_dlunknown;
23874 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23875 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23876 /* dlclose (self); */
23882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23883 (eval $ac_link) 2>&5
23885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23886 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23887 (./conftest; exit; ) 2>/dev/null
23889 case x$lt_status in
23890 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23891 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23892 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23895 # compilation failed
23896 lt_cv_dlopen_self_static=no
23903 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23904 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23907 CPPFLAGS="$save_CPPFLAGS"
23908 LDFLAGS="$save_LDFLAGS"
23913 case $lt_cv_dlopen_self in
23914 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23915 *) enable_dlopen_self=unknown ;;
23918 case $lt_cv_dlopen_self_static in
23919 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23920 *) enable_dlopen_self_static=unknown ;;
23925 # The else clause should only fire when bootstrapping the
23926 # libtool distribution, otherwise you forgot to ship ltmain.sh
23927 # with your package, and you will get complaints that there are
23928 # no rules to generate ltmain.sh.
23929 if test -f "$ltmain"; then
23930 # See if we are running on zsh, and set the options which allow our commands through
23931 # without removal of \ escapes.
23932 if test -n "${ZSH_VERSION+set}" ; then
23933 setopt NO_GLOB_SUBST
23935 # Now quote all the things that may contain metacharacters while being
23936 # careful not to overquote the AC_SUBSTed values. We take copies of the
23937 # variables and quote the copies for generation of the libtool script.
23938 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23940 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23941 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23942 deplibs_check_method reload_flag reload_cmds need_locks \
23943 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23944 lt_cv_sys_global_symbol_to_c_name_address \
23945 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23946 old_postinstall_cmds old_postuninstall_cmds \
23950 lt_prog_compiler_wl_GCJ \
23951 lt_prog_compiler_pic_GCJ \
23952 lt_prog_compiler_static_GCJ \
23953 lt_prog_compiler_no_builtin_flag_GCJ \
23954 export_dynamic_flag_spec_GCJ \
23955 thread_safe_flag_spec_GCJ \
23956 whole_archive_flag_spec_GCJ \
23957 enable_shared_with_static_runtimes_GCJ \
23958 old_archive_cmds_GCJ \
23959 old_archive_from_new_cmds_GCJ \
23960 predep_objects_GCJ \
23961 postdep_objects_GCJ \
23964 compiler_lib_search_path_GCJ \
23966 archive_expsym_cmds_GCJ \
23967 postinstall_cmds_GCJ \
23968 postuninstall_cmds_GCJ \
23969 old_archive_from_expsyms_cmds_GCJ \
23970 allow_undefined_flag_GCJ \
23971 no_undefined_flag_GCJ \
23972 export_symbols_cmds_GCJ \
23973 hardcode_libdir_flag_spec_GCJ \
23974 hardcode_libdir_flag_spec_ld_GCJ \
23975 hardcode_libdir_separator_GCJ \
23976 hardcode_automatic_GCJ \
23978 module_expsym_cmds_GCJ \
23979 lt_cv_prog_compiler_c_o_GCJ \
23980 exclude_expsyms_GCJ \
23981 include_expsyms_GCJ; do
23984 old_archive_cmds_GCJ | \
23985 old_archive_from_new_cmds_GCJ | \
23986 archive_cmds_GCJ | \
23987 archive_expsym_cmds_GCJ | \
23988 module_cmds_GCJ | \
23989 module_expsym_cmds_GCJ | \
23990 old_archive_from_expsyms_cmds_GCJ | \
23991 export_symbols_cmds_GCJ | \
23992 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23993 postinstall_cmds | postuninstall_cmds | \
23994 old_postinstall_cmds | old_postuninstall_cmds | \
23995 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23996 # Double-quote double-evaled strings.
23997 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24000 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24006 *'\$0 --fallback-echo"')
24007 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24013 cat <<__EOF__ >> "$cfgfile"
24014 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24016 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24018 # Shell to use when invoking shell scripts.
24021 # Whether or not to build shared libraries.
24022 build_libtool_libs=$enable_shared
24024 # Whether or not to build static libraries.
24025 build_old_libs=$enable_static
24027 # Whether or not to add -lc for building shared libraries.
24028 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24030 # Whether or not to disallow shared libs when runtime libs are static
24031 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24033 # Whether or not to optimize for fast installation.
24034 fast_install=$enable_fast_install
24037 host_alias=$host_alias
24040 # An echo program that does not interpret backslashes.
24045 AR_FLAGS=$lt_AR_FLAGS
24050 # A language-specific compiler.
24051 CC=$lt_compiler_GCJ
24053 # Is the compiler the GNU C compiler?
24059 # The linker used to build libraries.
24062 # Whether we need hard or soft links.
24065 # A BSD-compatible nm program.
24068 # A symbol stripping program
24071 # Used to examine libraries when file_magic_cmd begins "file"
24072 MAGIC_CMD=$MAGIC_CMD
24074 # Used on cygwin: DLL creation program.
24077 # Used on cygwin: object dumper.
24080 # Used on cygwin: assembler.
24083 # The name of the directory that contains temporary libtool files.
24086 # How to create reloadable object files.
24087 reload_flag=$lt_reload_flag
24088 reload_cmds=$lt_reload_cmds
24090 # How to pass a linker flag through the compiler.
24091 wl=$lt_lt_prog_compiler_wl_GCJ
24093 # Object file suffix (normally "o").
24094 objext="$ac_objext"
24096 # Old archive suffix (normally "a").
24099 # Shared library suffix (normally ".so").
24100 shrext_cmds='$shrext_cmds'
24102 # Executable file suffix (normally "").
24105 # Additional compiler flags for building library objects.
24106 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24109 # What is the maximum length of a command?
24110 max_cmd_len=$lt_cv_sys_max_cmd_len
24112 # Does compiler simultaneously support -c and -o options?
24113 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24115 # Must we lock files when doing compilation ?
24116 need_locks=$lt_need_locks
24118 # Do we need the lib prefix for modules?
24119 need_lib_prefix=$need_lib_prefix
24121 # Do we need a version for libraries?
24122 need_version=$need_version
24124 # Whether dlopen is supported.
24125 dlopen_support=$enable_dlopen
24127 # Whether dlopen of programs is supported.
24128 dlopen_self=$enable_dlopen_self
24130 # Whether dlopen of statically linked programs is supported.
24131 dlopen_self_static=$enable_dlopen_self_static
24133 # Compiler flag to prevent dynamic linking.
24134 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24136 # Compiler flag to turn off builtin functions.
24137 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24139 # Compiler flag to allow reflexive dlopens.
24140 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24142 # Compiler flag to generate shared objects directly from archives.
24143 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24145 # Compiler flag to generate thread-safe objects.
24146 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24148 # Library versioning type.
24149 version_type=$version_type
24151 # Format of library name prefix.
24152 libname_spec=$lt_libname_spec
24154 # List of archive names. First name is the real one, the rest are links.
24155 # The last name is the one that the linker finds with -lNAME.
24156 library_names_spec=$lt_library_names_spec
24158 # The coded name of the library, if different from the real name.
24159 soname_spec=$lt_soname_spec
24161 # Commands used to build and install an old-style archive.
24163 old_archive_cmds=$lt_old_archive_cmds_GCJ
24164 old_postinstall_cmds=$lt_old_postinstall_cmds
24165 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24167 # Create an old-style archive from a shared archive.
24168 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24170 # Create a temporary old-style archive to link instead of a shared archive.
24171 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24173 # Commands used to build and install a shared archive.
24174 archive_cmds=$lt_archive_cmds_GCJ
24175 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24176 postinstall_cmds=$lt_postinstall_cmds
24177 postuninstall_cmds=$lt_postuninstall_cmds
24179 # Commands used to build a loadable module (assumed same as above if empty)
24180 module_cmds=$lt_module_cmds_GCJ
24181 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24183 # Commands to strip libraries.
24184 old_striplib=$lt_old_striplib
24185 striplib=$lt_striplib
24187 # Dependencies to place before the objects being linked to create a
24189 predep_objects=$lt_predep_objects_GCJ
24191 # Dependencies to place after the objects being linked to create a
24193 postdep_objects=$lt_postdep_objects_GCJ
24195 # Dependencies to place before the objects being linked to create a
24197 predeps=$lt_predeps_GCJ
24199 # Dependencies to place after the objects being linked to create a
24201 postdeps=$lt_postdeps_GCJ
24203 # The library search path used internally by the compiler when linking
24204 # a shared library.
24205 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24207 # Method to check whether dependent libraries are shared objects.
24208 deplibs_check_method=$lt_deplibs_check_method
24210 # Command to use when deplibs_check_method == file_magic.
24211 file_magic_cmd=$lt_file_magic_cmd
24213 # Flag that allows shared libraries with undefined symbols to be built.
24214 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24216 # Flag that forces no undefined symbols.
24217 no_undefined_flag=$lt_no_undefined_flag_GCJ
24219 # Commands used to finish a libtool library installation in a directory.
24220 finish_cmds=$lt_finish_cmds
24222 # Same as above, but a single script fragment to be evaled but not shown.
24223 finish_eval=$lt_finish_eval
24225 # Take the output of nm and produce a listing of raw symbols and C names.
24226 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24228 # Transform the output of nm in a proper C declaration
24229 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24231 # Transform the output of nm in a C name address pair
24232 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24234 # This is the shared library runtime path variable.
24235 runpath_var=$runpath_var
24237 # This is the shared library path variable.
24238 shlibpath_var=$shlibpath_var
24240 # Is shlibpath searched before the hard-coded library search path?
24241 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24243 # How to hardcode a shared library path into an executable.
24244 hardcode_action=$hardcode_action_GCJ
24246 # Whether we should hardcode library paths into libraries.
24247 hardcode_into_libs=$hardcode_into_libs
24249 # Flag to hardcode \$libdir into a binary during linking.
24250 # This must work even if \$libdir does not exist.
24251 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24253 # If ld is used when linking, flag to hardcode \$libdir into
24254 # a binary during linking. This must work even if \$libdir does
24256 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24258 # Whether we need a single -rpath flag with a separated argument.
24259 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24261 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24262 # resulting binary.
24263 hardcode_direct=$hardcode_direct_GCJ
24265 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24266 # resulting binary.
24267 hardcode_minus_L=$hardcode_minus_L_GCJ
24269 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24270 # the resulting binary.
24271 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24273 # Set to yes if building a shared library automatically hardcodes DIR into the library
24274 # and all subsequent libraries and executables linked against it.
24275 hardcode_automatic=$hardcode_automatic_GCJ
24277 # Variables whose values should be saved in libtool wrapper scripts and
24278 # restored at relink time.
24279 variables_saved_for_relink="$variables_saved_for_relink"
24281 # Whether libtool must link a program against all its dependency libraries.
24282 link_all_deplibs=$link_all_deplibs_GCJ
24284 # Compile-time system search path for libraries
24285 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24287 # Run-time system search path for libraries
24288 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24290 # Fix the shell variable \$srcfile for the compiler.
24291 fix_srcfile_path="$fix_srcfile_path_GCJ"
24293 # Set to yes if exported symbols are required.
24294 always_export_symbols=$always_export_symbols_GCJ
24296 # The commands to list exported symbols.
24297 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24299 # The commands to extract the exported symbol list from a shared archive.
24300 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24302 # Symbols that should not be listed in the preloaded symbols.
24303 exclude_expsyms=$lt_exclude_expsyms_GCJ
24305 # Symbols that must always be exported.
24306 include_expsyms=$lt_include_expsyms_GCJ
24308 # ### END LIBTOOL TAG CONFIG: $tagname
24314 # If there is no Makefile yet, we rely on a make rule to execute
24315 # `config.status --recheck' to rerun these tests and create the
24316 # libtool script then.
24317 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24318 if test -f "$ltmain_in"; then
24319 test -f Makefile && make "$ltmain"
24325 ac_cpp='$CPP $CPPFLAGS'
24326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24339 ac_cpp='$CPP $CPPFLAGS'
24340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24345 # Source file extension for RC test sources.
24348 # Object file extension for compiled RC test sources.
24352 # Code to be used in simple compile tests
24353 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24355 # Code to be used in simple link tests
24356 lt_simple_link_test_code="$lt_simple_compile_test_code"
24358 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24360 # If no C compiler was specified, use CC.
24363 # Allow CC to be a program name with arguments.
24367 # Allow CC to be a program name with arguments.
24372 lt_cv_prog_compiler_c_o_RC=yes
24374 # The else clause should only fire when bootstrapping the
24375 # libtool distribution, otherwise you forgot to ship ltmain.sh
24376 # with your package, and you will get complaints that there are
24377 # no rules to generate ltmain.sh.
24378 if test -f "$ltmain"; then
24379 # See if we are running on zsh, and set the options which allow our commands through
24380 # without removal of \ escapes.
24381 if test -n "${ZSH_VERSION+set}" ; then
24382 setopt NO_GLOB_SUBST
24384 # Now quote all the things that may contain metacharacters while being
24385 # careful not to overquote the AC_SUBSTed values. We take copies of the
24386 # variables and quote the copies for generation of the libtool script.
24387 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24389 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24390 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24391 deplibs_check_method reload_flag reload_cmds need_locks \
24392 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24393 lt_cv_sys_global_symbol_to_c_name_address \
24394 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24395 old_postinstall_cmds old_postuninstall_cmds \
24399 lt_prog_compiler_wl_RC \
24400 lt_prog_compiler_pic_RC \
24401 lt_prog_compiler_static_RC \
24402 lt_prog_compiler_no_builtin_flag_RC \
24403 export_dynamic_flag_spec_RC \
24404 thread_safe_flag_spec_RC \
24405 whole_archive_flag_spec_RC \
24406 enable_shared_with_static_runtimes_RC \
24407 old_archive_cmds_RC \
24408 old_archive_from_new_cmds_RC \
24409 predep_objects_RC \
24410 postdep_objects_RC \
24413 compiler_lib_search_path_RC \
24415 archive_expsym_cmds_RC \
24416 postinstall_cmds_RC \
24417 postuninstall_cmds_RC \
24418 old_archive_from_expsyms_cmds_RC \
24419 allow_undefined_flag_RC \
24420 no_undefined_flag_RC \
24421 export_symbols_cmds_RC \
24422 hardcode_libdir_flag_spec_RC \
24423 hardcode_libdir_flag_spec_ld_RC \
24424 hardcode_libdir_separator_RC \
24425 hardcode_automatic_RC \
24427 module_expsym_cmds_RC \
24428 lt_cv_prog_compiler_c_o_RC \
24429 exclude_expsyms_RC \
24430 include_expsyms_RC; do
24433 old_archive_cmds_RC | \
24434 old_archive_from_new_cmds_RC | \
24435 archive_cmds_RC | \
24436 archive_expsym_cmds_RC | \
24438 module_expsym_cmds_RC | \
24439 old_archive_from_expsyms_cmds_RC | \
24440 export_symbols_cmds_RC | \
24441 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24442 postinstall_cmds | postuninstall_cmds | \
24443 old_postinstall_cmds | old_postuninstall_cmds | \
24444 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24445 # Double-quote double-evaled strings.
24446 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24449 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24455 *'\$0 --fallback-echo"')
24456 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24462 cat <<__EOF__ >> "$cfgfile"
24463 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24465 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24467 # Shell to use when invoking shell scripts.
24470 # Whether or not to build shared libraries.
24471 build_libtool_libs=$enable_shared
24473 # Whether or not to build static libraries.
24474 build_old_libs=$enable_static
24476 # Whether or not to add -lc for building shared libraries.
24477 build_libtool_need_lc=$archive_cmds_need_lc_RC
24479 # Whether or not to disallow shared libs when runtime libs are static
24480 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24482 # Whether or not to optimize for fast installation.
24483 fast_install=$enable_fast_install
24486 host_alias=$host_alias
24489 # An echo program that does not interpret backslashes.
24494 AR_FLAGS=$lt_AR_FLAGS
24499 # A language-specific compiler.
24502 # Is the compiler the GNU C compiler?
24508 # The linker used to build libraries.
24511 # Whether we need hard or soft links.
24514 # A BSD-compatible nm program.
24517 # A symbol stripping program
24520 # Used to examine libraries when file_magic_cmd begins "file"
24521 MAGIC_CMD=$MAGIC_CMD
24523 # Used on cygwin: DLL creation program.
24526 # Used on cygwin: object dumper.
24529 # Used on cygwin: assembler.
24532 # The name of the directory that contains temporary libtool files.
24535 # How to create reloadable object files.
24536 reload_flag=$lt_reload_flag
24537 reload_cmds=$lt_reload_cmds
24539 # How to pass a linker flag through the compiler.
24540 wl=$lt_lt_prog_compiler_wl_RC
24542 # Object file suffix (normally "o").
24543 objext="$ac_objext"
24545 # Old archive suffix (normally "a").
24548 # Shared library suffix (normally ".so").
24549 shrext_cmds='$shrext_cmds'
24551 # Executable file suffix (normally "").
24554 # Additional compiler flags for building library objects.
24555 pic_flag=$lt_lt_prog_compiler_pic_RC
24558 # What is the maximum length of a command?
24559 max_cmd_len=$lt_cv_sys_max_cmd_len
24561 # Does compiler simultaneously support -c and -o options?
24562 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24564 # Must we lock files when doing compilation ?
24565 need_locks=$lt_need_locks
24567 # Do we need the lib prefix for modules?
24568 need_lib_prefix=$need_lib_prefix
24570 # Do we need a version for libraries?
24571 need_version=$need_version
24573 # Whether dlopen is supported.
24574 dlopen_support=$enable_dlopen
24576 # Whether dlopen of programs is supported.
24577 dlopen_self=$enable_dlopen_self
24579 # Whether dlopen of statically linked programs is supported.
24580 dlopen_self_static=$enable_dlopen_self_static
24582 # Compiler flag to prevent dynamic linking.
24583 link_static_flag=$lt_lt_prog_compiler_static_RC
24585 # Compiler flag to turn off builtin functions.
24586 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24588 # Compiler flag to allow reflexive dlopens.
24589 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24591 # Compiler flag to generate shared objects directly from archives.
24592 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24594 # Compiler flag to generate thread-safe objects.
24595 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24597 # Library versioning type.
24598 version_type=$version_type
24600 # Format of library name prefix.
24601 libname_spec=$lt_libname_spec
24603 # List of archive names. First name is the real one, the rest are links.
24604 # The last name is the one that the linker finds with -lNAME.
24605 library_names_spec=$lt_library_names_spec
24607 # The coded name of the library, if different from the real name.
24608 soname_spec=$lt_soname_spec
24610 # Commands used to build and install an old-style archive.
24612 old_archive_cmds=$lt_old_archive_cmds_RC
24613 old_postinstall_cmds=$lt_old_postinstall_cmds
24614 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24616 # Create an old-style archive from a shared archive.
24617 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24619 # Create a temporary old-style archive to link instead of a shared archive.
24620 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24622 # Commands used to build and install a shared archive.
24623 archive_cmds=$lt_archive_cmds_RC
24624 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24625 postinstall_cmds=$lt_postinstall_cmds
24626 postuninstall_cmds=$lt_postuninstall_cmds
24628 # Commands used to build a loadable module (assumed same as above if empty)
24629 module_cmds=$lt_module_cmds_RC
24630 module_expsym_cmds=$lt_module_expsym_cmds_RC
24632 # Commands to strip libraries.
24633 old_striplib=$lt_old_striplib
24634 striplib=$lt_striplib
24636 # Dependencies to place before the objects being linked to create a
24638 predep_objects=$lt_predep_objects_RC
24640 # Dependencies to place after the objects being linked to create a
24642 postdep_objects=$lt_postdep_objects_RC
24644 # Dependencies to place before the objects being linked to create a
24646 predeps=$lt_predeps_RC
24648 # Dependencies to place after the objects being linked to create a
24650 postdeps=$lt_postdeps_RC
24652 # The library search path used internally by the compiler when linking
24653 # a shared library.
24654 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24656 # Method to check whether dependent libraries are shared objects.
24657 deplibs_check_method=$lt_deplibs_check_method
24659 # Command to use when deplibs_check_method == file_magic.
24660 file_magic_cmd=$lt_file_magic_cmd
24662 # Flag that allows shared libraries with undefined symbols to be built.
24663 allow_undefined_flag=$lt_allow_undefined_flag_RC
24665 # Flag that forces no undefined symbols.
24666 no_undefined_flag=$lt_no_undefined_flag_RC
24668 # Commands used to finish a libtool library installation in a directory.
24669 finish_cmds=$lt_finish_cmds
24671 # Same as above, but a single script fragment to be evaled but not shown.
24672 finish_eval=$lt_finish_eval
24674 # Take the output of nm and produce a listing of raw symbols and C names.
24675 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24677 # Transform the output of nm in a proper C declaration
24678 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24680 # Transform the output of nm in a C name address pair
24681 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24683 # This is the shared library runtime path variable.
24684 runpath_var=$runpath_var
24686 # This is the shared library path variable.
24687 shlibpath_var=$shlibpath_var
24689 # Is shlibpath searched before the hard-coded library search path?
24690 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24692 # How to hardcode a shared library path into an executable.
24693 hardcode_action=$hardcode_action_RC
24695 # Whether we should hardcode library paths into libraries.
24696 hardcode_into_libs=$hardcode_into_libs
24698 # Flag to hardcode \$libdir into a binary during linking.
24699 # This must work even if \$libdir does not exist.
24700 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24702 # If ld is used when linking, flag to hardcode \$libdir into
24703 # a binary during linking. This must work even if \$libdir does
24705 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24707 # Whether we need a single -rpath flag with a separated argument.
24708 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24710 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24711 # resulting binary.
24712 hardcode_direct=$hardcode_direct_RC
24714 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24715 # resulting binary.
24716 hardcode_minus_L=$hardcode_minus_L_RC
24718 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24719 # the resulting binary.
24720 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24722 # Set to yes if building a shared library automatically hardcodes DIR into the library
24723 # and all subsequent libraries and executables linked against it.
24724 hardcode_automatic=$hardcode_automatic_RC
24726 # Variables whose values should be saved in libtool wrapper scripts and
24727 # restored at relink time.
24728 variables_saved_for_relink="$variables_saved_for_relink"
24730 # Whether libtool must link a program against all its dependency libraries.
24731 link_all_deplibs=$link_all_deplibs_RC
24733 # Compile-time system search path for libraries
24734 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24736 # Run-time system search path for libraries
24737 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24739 # Fix the shell variable \$srcfile for the compiler.
24740 fix_srcfile_path="$fix_srcfile_path_RC"
24742 # Set to yes if exported symbols are required.
24743 always_export_symbols=$always_export_symbols_RC
24745 # The commands to list exported symbols.
24746 export_symbols_cmds=$lt_export_symbols_cmds_RC
24748 # The commands to extract the exported symbol list from a shared archive.
24749 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24751 # Symbols that should not be listed in the preloaded symbols.
24752 exclude_expsyms=$lt_exclude_expsyms_RC
24754 # Symbols that must always be exported.
24755 include_expsyms=$lt_include_expsyms_RC
24757 # ### END LIBTOOL TAG CONFIG: $tagname
24763 # If there is no Makefile yet, we rely on a make rule to execute
24764 # `config.status --recheck' to rerun these tests and create the
24765 # libtool script then.
24766 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24767 if test -f "$ltmain_in"; then
24768 test -f Makefile && make "$ltmain"
24774 ac_cpp='$CPP $CPPFLAGS'
24775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24784 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24785 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24786 { (exit 1); exit 1; }; }
24790 # Append the new tag name to the list of available tags.
24791 if test -n "$tagname" ; then
24792 available_tags="$available_tags $tagname"
24798 # Now substitute the updated list of available tags.
24799 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24800 mv "${ofile}T" "$ofile"
24804 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24805 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24806 { (exit 1); exit 1; }; }
24812 # This can be used to rebuild libtool when needed
24813 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24815 # Always use our own libtool.
24816 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24818 # Prevent multiple expansion
24840 if test "$lt_cv_dlopen_self" = "yes" ; then
24842 cat >>confdefs.h <<\_ACEOF
24843 #define CAN_DLOPEN_SELF 1
24848 etags_version=`$ETAGS --version 2>&1`
24849 case "$etags_version" in
24850 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24851 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24852 *) ETAGSFLAGS="" ;;
24854 ETAGSFLAGS=$ETAGSFLAGS
24857 if test "$WITH_LLVMGCCDIR" = "default" ; then
24858 LLVMGCC="llvm-gcc${EXEEXT}"
24859 LLVMGXX="llvm-g++${EXEEXT}"
24860 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24861 set dummy $LLVMGCC; ac_word=$2
24862 echo "$as_me:$LINENO: checking for $ac_word" >&5
24863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24864 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24865 echo $ECHO_N "(cached) $ECHO_C" >&6
24869 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24873 for as_dir in $PATH
24876 test -z "$as_dir" && as_dir=.
24877 for ac_exec_ext in '' $ac_executable_extensions; do
24878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24879 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24889 LLVMGCC=$ac_cv_path_LLVMGCC
24891 if test -n "$LLVMGCC"; then
24892 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24893 echo "${ECHO_T}$LLVMGCC" >&6
24895 echo "$as_me:$LINENO: result: no" >&5
24896 echo "${ECHO_T}no" >&6
24899 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24900 set dummy $LLVMGXX; ac_word=$2
24901 echo "$as_me:$LINENO: checking for $ac_word" >&5
24902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24903 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24904 echo $ECHO_N "(cached) $ECHO_C" >&6
24908 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24912 for as_dir in $PATH
24915 test -z "$as_dir" && as_dir=.
24916 for ac_exec_ext in '' $ac_executable_extensions; do
24917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24918 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24928 LLVMGXX=$ac_cv_path_LLVMGXX
24930 if test -n "$LLVMGXX"; then
24931 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24932 echo "${ECHO_T}$LLVMGXX" >&6
24934 echo "$as_me:$LINENO: result: no" >&5
24935 echo "${ECHO_T}no" >&6
24939 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24940 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24947 echo "$as_me:$LINENO: checking tool compatibility" >&5
24948 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24961 if test "$GCC" != "yes" && test "$ICC" != "yes"
24963 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24964 echo "$as_me: error: gcc|icc required but not found" >&2;}
24965 { (exit 1); exit 1; }; }
24968 if test "$GXX" != "yes" && test "$IXX" != "yes"
24970 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24971 echo "$as_me: error: g++|icc required but not found" >&2;}
24972 { (exit 1); exit 1; }; }
24975 if test "$GCC" = "yes"
24977 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
24978 if test "$gccmajor" -lt "3"
24980 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24981 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24982 { (exit 1); exit 1; }; }
24986 if test -z "$llvm_cv_gnu_make_command"
24988 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24989 echo "$as_me: error: GNU Make required but not found" >&2;}
24990 { (exit 1); exit 1; }; }
24993 echo "$as_me:$LINENO: result: ok" >&5
24994 echo "${ECHO_T}ok" >&6
24998 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24999 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25000 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25001 echo $ECHO_N "(cached) $ECHO_C" >&6
25003 ac_check_lib_save_LIBS=$LIBS
25005 cat >conftest.$ac_ext <<_ACEOF
25008 cat confdefs.h >>conftest.$ac_ext
25009 cat >>conftest.$ac_ext <<_ACEOF
25010 /* end confdefs.h. */
25012 /* Override any gcc2 internal prototype to avoid an error. */
25016 /* We use char because int might match the return type of a gcc2
25017 builtin and then its argument prototype would still apply. */
25027 rm -f conftest.$ac_objext conftest$ac_exeext
25028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25029 (eval $ac_link) 2>conftest.er1
25031 grep -v '^ *+' conftest.er1 >conftest.err
25033 cat conftest.err >&5
25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035 (exit $ac_status); } &&
25036 { ac_try='test -z "$ac_c_werror_flag"
25037 || test ! -s conftest.err'
25038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25039 (eval $ac_try) 2>&5
25041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042 (exit $ac_status); }; } &&
25043 { ac_try='test -s conftest$ac_exeext'
25044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25045 (eval $ac_try) 2>&5
25047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048 (exit $ac_status); }; }; then
25049 ac_cv_lib_elf_elf_begin=yes
25051 echo "$as_me: failed program was:" >&5
25052 sed 's/^/| /' conftest.$ac_ext >&5
25054 ac_cv_lib_elf_elf_begin=no
25056 rm -f conftest.err conftest.$ac_objext \
25057 conftest$ac_exeext conftest.$ac_ext
25058 LIBS=$ac_check_lib_save_LIBS
25060 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25061 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25062 if test $ac_cv_lib_elf_elf_begin = yes; then
25063 cat >>confdefs.h <<_ACEOF
25064 #define HAVE_LIBELF 1
25072 echo "$as_me:$LINENO: checking for sin in -lm" >&5
25073 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25074 if test "${ac_cv_lib_m_sin+set}" = set; then
25075 echo $ECHO_N "(cached) $ECHO_C" >&6
25077 ac_check_lib_save_LIBS=$LIBS
25079 cat >conftest.$ac_ext <<_ACEOF
25082 cat confdefs.h >>conftest.$ac_ext
25083 cat >>conftest.$ac_ext <<_ACEOF
25084 /* end confdefs.h. */
25086 /* Override any gcc2 internal prototype to avoid an error. */
25090 /* We use char because int might match the return type of a gcc2
25091 builtin and then its argument prototype would still apply. */
25101 rm -f conftest.$ac_objext conftest$ac_exeext
25102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25103 (eval $ac_link) 2>conftest.er1
25105 grep -v '^ *+' conftest.er1 >conftest.err
25107 cat conftest.err >&5
25108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); } &&
25110 { ac_try='test -z "$ac_c_werror_flag"
25111 || test ! -s conftest.err'
25112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25113 (eval $ac_try) 2>&5
25115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116 (exit $ac_status); }; } &&
25117 { ac_try='test -s conftest$ac_exeext'
25118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25119 (eval $ac_try) 2>&5
25121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122 (exit $ac_status); }; }; then
25123 ac_cv_lib_m_sin=yes
25125 echo "$as_me: failed program was:" >&5
25126 sed 's/^/| /' conftest.$ac_ext >&5
25130 rm -f conftest.err conftest.$ac_objext \
25131 conftest$ac_exeext conftest.$ac_ext
25132 LIBS=$ac_check_lib_save_LIBS
25134 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25135 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25136 if test $ac_cv_lib_m_sin = yes; then
25137 cat >>confdefs.h <<_ACEOF
25138 #define HAVE_LIBM 1
25146 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25147 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25148 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25149 echo $ECHO_N "(cached) $ECHO_C" >&6
25151 ac_func_search_save_LIBS=$LIBS
25152 ac_cv_search_lt_dlopen=no
25153 cat >conftest.$ac_ext <<_ACEOF
25156 cat confdefs.h >>conftest.$ac_ext
25157 cat >>conftest.$ac_ext <<_ACEOF
25158 /* end confdefs.h. */
25160 /* Override any gcc2 internal prototype to avoid an error. */
25164 /* We use char because int might match the return type of a gcc2
25165 builtin and then its argument prototype would still apply. */
25175 rm -f conftest.$ac_objext conftest$ac_exeext
25176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25177 (eval $ac_link) 2>conftest.er1
25179 grep -v '^ *+' conftest.er1 >conftest.err
25181 cat conftest.err >&5
25182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); } &&
25184 { ac_try='test -z "$ac_c_werror_flag"
25185 || test ! -s conftest.err'
25186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25187 (eval $ac_try) 2>&5
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); }; } &&
25191 { ac_try='test -s conftest$ac_exeext'
25192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193 (eval $ac_try) 2>&5
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); }; }; then
25197 ac_cv_search_lt_dlopen="none required"
25199 echo "$as_me: failed program was:" >&5
25200 sed 's/^/| /' conftest.$ac_ext >&5
25203 rm -f conftest.err conftest.$ac_objext \
25204 conftest$ac_exeext conftest.$ac_ext
25205 if test "$ac_cv_search_lt_dlopen" = no; then
25206 for ac_lib in ltdl; do
25207 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25208 cat >conftest.$ac_ext <<_ACEOF
25211 cat confdefs.h >>conftest.$ac_ext
25212 cat >>conftest.$ac_ext <<_ACEOF
25213 /* end confdefs.h. */
25215 /* Override any gcc2 internal prototype to avoid an error. */
25219 /* We use char because int might match the return type of a gcc2
25220 builtin and then its argument prototype would still apply. */
25230 rm -f conftest.$ac_objext conftest$ac_exeext
25231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25232 (eval $ac_link) 2>conftest.er1
25234 grep -v '^ *+' conftest.er1 >conftest.err
25236 cat conftest.err >&5
25237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238 (exit $ac_status); } &&
25239 { ac_try='test -z "$ac_c_werror_flag"
25240 || test ! -s conftest.err'
25241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25242 (eval $ac_try) 2>&5
25244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245 (exit $ac_status); }; } &&
25246 { ac_try='test -s conftest$ac_exeext'
25247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25248 (eval $ac_try) 2>&5
25250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); }; }; then
25252 ac_cv_search_lt_dlopen="-l$ac_lib"
25255 echo "$as_me: failed program was:" >&5
25256 sed 's/^/| /' conftest.$ac_ext >&5
25259 rm -f conftest.err conftest.$ac_objext \
25260 conftest$ac_exeext conftest.$ac_ext
25263 LIBS=$ac_func_search_save_LIBS
25265 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25266 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25267 if test "$ac_cv_search_lt_dlopen" != no; then
25268 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25270 cat >>confdefs.h <<\_ACEOF
25271 #define HAVE_LT_DLOPEN 1
25275 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25276 not be available" >&5
25277 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25278 not be available" >&2;}
25282 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25283 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25284 if test "${ac_cv_search_dlopen+set}" = set; then
25285 echo $ECHO_N "(cached) $ECHO_C" >&6
25287 ac_func_search_save_LIBS=$LIBS
25288 ac_cv_search_dlopen=no
25289 cat >conftest.$ac_ext <<_ACEOF
25292 cat confdefs.h >>conftest.$ac_ext
25293 cat >>conftest.$ac_ext <<_ACEOF
25294 /* end confdefs.h. */
25296 /* Override any gcc2 internal prototype to avoid an error. */
25300 /* We use char because int might match the return type of a gcc2
25301 builtin and then its argument prototype would still apply. */
25311 rm -f conftest.$ac_objext conftest$ac_exeext
25312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25313 (eval $ac_link) 2>conftest.er1
25315 grep -v '^ *+' conftest.er1 >conftest.err
25317 cat conftest.err >&5
25318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319 (exit $ac_status); } &&
25320 { ac_try='test -z "$ac_c_werror_flag"
25321 || test ! -s conftest.err'
25322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25323 (eval $ac_try) 2>&5
25325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); }; } &&
25327 { ac_try='test -s conftest$ac_exeext'
25328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25329 (eval $ac_try) 2>&5
25331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); }; }; then
25333 ac_cv_search_dlopen="none required"
25335 echo "$as_me: failed program was:" >&5
25336 sed 's/^/| /' conftest.$ac_ext >&5
25339 rm -f conftest.err conftest.$ac_objext \
25340 conftest$ac_exeext conftest.$ac_ext
25341 if test "$ac_cv_search_dlopen" = no; then
25342 for ac_lib in dl; do
25343 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25344 cat >conftest.$ac_ext <<_ACEOF
25347 cat confdefs.h >>conftest.$ac_ext
25348 cat >>conftest.$ac_ext <<_ACEOF
25349 /* end confdefs.h. */
25351 /* Override any gcc2 internal prototype to avoid an error. */
25355 /* We use char because int might match the return type of a gcc2
25356 builtin and then its argument prototype would still apply. */
25366 rm -f conftest.$ac_objext conftest$ac_exeext
25367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25368 (eval $ac_link) 2>conftest.er1
25370 grep -v '^ *+' conftest.er1 >conftest.err
25372 cat conftest.err >&5
25373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); } &&
25375 { ac_try='test -z "$ac_c_werror_flag"
25376 || test ! -s conftest.err'
25377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25378 (eval $ac_try) 2>&5
25380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381 (exit $ac_status); }; } &&
25382 { ac_try='test -s conftest$ac_exeext'
25383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25384 (eval $ac_try) 2>&5
25386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); }; }; then
25388 ac_cv_search_dlopen="-l$ac_lib"
25391 echo "$as_me: failed program was:" >&5
25392 sed 's/^/| /' conftest.$ac_ext >&5
25395 rm -f conftest.err conftest.$ac_objext \
25396 conftest$ac_exeext conftest.$ac_ext
25399 LIBS=$ac_func_search_save_LIBS
25401 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25402 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25403 if test "$ac_cv_search_dlopen" != no; then
25404 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25406 cat >>confdefs.h <<\_ACEOF
25407 #define HAVE_DLOPEN 1
25411 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25412 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25416 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25417 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25418 if test "${ac_cv_search_mallinfo+set}" = set; then
25419 echo $ECHO_N "(cached) $ECHO_C" >&6
25421 ac_func_search_save_LIBS=$LIBS
25422 ac_cv_search_mallinfo=no
25423 cat >conftest.$ac_ext <<_ACEOF
25426 cat confdefs.h >>conftest.$ac_ext
25427 cat >>conftest.$ac_ext <<_ACEOF
25428 /* end confdefs.h. */
25430 /* Override any gcc2 internal prototype to avoid an error. */
25434 /* We use char because int might match the return type of a gcc2
25435 builtin and then its argument prototype would still apply. */
25445 rm -f conftest.$ac_objext conftest$ac_exeext
25446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25447 (eval $ac_link) 2>conftest.er1
25449 grep -v '^ *+' conftest.er1 >conftest.err
25451 cat conftest.err >&5
25452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453 (exit $ac_status); } &&
25454 { ac_try='test -z "$ac_c_werror_flag"
25455 || test ! -s conftest.err'
25456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25457 (eval $ac_try) 2>&5
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); }; } &&
25461 { ac_try='test -s conftest$ac_exeext'
25462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25463 (eval $ac_try) 2>&5
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); }; }; then
25467 ac_cv_search_mallinfo="none required"
25469 echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25473 rm -f conftest.err conftest.$ac_objext \
25474 conftest$ac_exeext conftest.$ac_ext
25475 if test "$ac_cv_search_mallinfo" = no; then
25476 for ac_lib in malloc; do
25477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25478 cat >conftest.$ac_ext <<_ACEOF
25481 cat confdefs.h >>conftest.$ac_ext
25482 cat >>conftest.$ac_ext <<_ACEOF
25483 /* end confdefs.h. */
25485 /* Override any gcc2 internal prototype to avoid an error. */
25489 /* We use char because int might match the return type of a gcc2
25490 builtin and then its argument prototype would still apply. */
25500 rm -f conftest.$ac_objext conftest$ac_exeext
25501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25502 (eval $ac_link) 2>conftest.er1
25504 grep -v '^ *+' conftest.er1 >conftest.err
25506 cat conftest.err >&5
25507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); } &&
25509 { ac_try='test -z "$ac_c_werror_flag"
25510 || test ! -s conftest.err'
25511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25512 (eval $ac_try) 2>&5
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); }; } &&
25516 { ac_try='test -s conftest$ac_exeext'
25517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518 (eval $ac_try) 2>&5
25520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521 (exit $ac_status); }; }; then
25522 ac_cv_search_mallinfo="-l$ac_lib"
25525 echo "$as_me: failed program was:" >&5
25526 sed 's/^/| /' conftest.$ac_ext >&5
25529 rm -f conftest.err conftest.$ac_objext \
25530 conftest$ac_exeext conftest.$ac_ext
25533 LIBS=$ac_func_search_save_LIBS
25535 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25536 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25537 if test "$ac_cv_search_mallinfo" != no; then
25538 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25540 cat >>confdefs.h <<\_ACEOF
25541 #define HAVE_MALLINFO 1
25547 if test "$ENABLE_THREADS" -eq 1 ; then
25549 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25550 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25551 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25552 echo $ECHO_N "(cached) $ECHO_C" >&6
25554 ac_check_lib_save_LIBS=$LIBS
25555 LIBS="-lpthread $LIBS"
25556 cat >conftest.$ac_ext <<_ACEOF
25559 cat confdefs.h >>conftest.$ac_ext
25560 cat >>conftest.$ac_ext <<_ACEOF
25561 /* end confdefs.h. */
25563 /* Override any gcc2 internal prototype to avoid an error. */
25567 /* We use char because int might match the return type of a gcc2
25568 builtin and then its argument prototype would still apply. */
25569 char pthread_mutex_init ();
25573 pthread_mutex_init ();
25578 rm -f conftest.$ac_objext conftest$ac_exeext
25579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25580 (eval $ac_link) 2>conftest.er1
25582 grep -v '^ *+' conftest.er1 >conftest.err
25584 cat conftest.err >&5
25585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586 (exit $ac_status); } &&
25587 { ac_try='test -z "$ac_c_werror_flag"
25588 || test ! -s conftest.err'
25589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25590 (eval $ac_try) 2>&5
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); }; } &&
25594 { ac_try='test -s conftest$ac_exeext'
25595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25596 (eval $ac_try) 2>&5
25598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); }; }; then
25600 ac_cv_lib_pthread_pthread_mutex_init=yes
25602 echo "$as_me: failed program was:" >&5
25603 sed 's/^/| /' conftest.$ac_ext >&5
25605 ac_cv_lib_pthread_pthread_mutex_init=no
25607 rm -f conftest.err conftest.$ac_objext \
25608 conftest$ac_exeext conftest.$ac_ext
25609 LIBS=$ac_check_lib_save_LIBS
25611 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25612 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25613 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25614 cat >>confdefs.h <<_ACEOF
25615 #define HAVE_LIBPTHREAD 1
25618 LIBS="-lpthread $LIBS"
25622 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25623 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25624 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25625 echo $ECHO_N "(cached) $ECHO_C" >&6
25627 ac_func_search_save_LIBS=$LIBS
25628 ac_cv_search_pthread_mutex_lock=no
25629 cat >conftest.$ac_ext <<_ACEOF
25632 cat confdefs.h >>conftest.$ac_ext
25633 cat >>conftest.$ac_ext <<_ACEOF
25634 /* end confdefs.h. */
25636 /* Override any gcc2 internal prototype to avoid an error. */
25640 /* We use char because int might match the return type of a gcc2
25641 builtin and then its argument prototype would still apply. */
25642 char pthread_mutex_lock ();
25646 pthread_mutex_lock ();
25651 rm -f conftest.$ac_objext conftest$ac_exeext
25652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25653 (eval $ac_link) 2>conftest.er1
25655 grep -v '^ *+' conftest.er1 >conftest.err
25657 cat conftest.err >&5
25658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); } &&
25660 { ac_try='test -z "$ac_c_werror_flag"
25661 || test ! -s conftest.err'
25662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25663 (eval $ac_try) 2>&5
25665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666 (exit $ac_status); }; } &&
25667 { ac_try='test -s conftest$ac_exeext'
25668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25669 (eval $ac_try) 2>&5
25671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672 (exit $ac_status); }; }; then
25673 ac_cv_search_pthread_mutex_lock="none required"
25675 echo "$as_me: failed program was:" >&5
25676 sed 's/^/| /' conftest.$ac_ext >&5
25679 rm -f conftest.err conftest.$ac_objext \
25680 conftest$ac_exeext conftest.$ac_ext
25681 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25682 for ac_lib in pthread; do
25683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25684 cat >conftest.$ac_ext <<_ACEOF
25687 cat confdefs.h >>conftest.$ac_ext
25688 cat >>conftest.$ac_ext <<_ACEOF
25689 /* end confdefs.h. */
25691 /* Override any gcc2 internal prototype to avoid an error. */
25695 /* We use char because int might match the return type of a gcc2
25696 builtin and then its argument prototype would still apply. */
25697 char pthread_mutex_lock ();
25701 pthread_mutex_lock ();
25706 rm -f conftest.$ac_objext conftest$ac_exeext
25707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25708 (eval $ac_link) 2>conftest.er1
25710 grep -v '^ *+' conftest.er1 >conftest.err
25712 cat conftest.err >&5
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); } &&
25715 { ac_try='test -z "$ac_c_werror_flag"
25716 || test ! -s conftest.err'
25717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25718 (eval $ac_try) 2>&5
25720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721 (exit $ac_status); }; } &&
25722 { ac_try='test -s conftest$ac_exeext'
25723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25724 (eval $ac_try) 2>&5
25726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727 (exit $ac_status); }; }; then
25728 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25731 echo "$as_me: failed program was:" >&5
25732 sed 's/^/| /' conftest.$ac_ext >&5
25735 rm -f conftest.err conftest.$ac_objext \
25736 conftest$ac_exeext conftest.$ac_ext
25739 LIBS=$ac_func_search_save_LIBS
25741 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25742 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25743 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25744 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25746 cat >>confdefs.h <<\_ACEOF
25747 #define HAVE_PTHREAD_MUTEX_LOCK 1
25760 ac_header_dirent=no
25761 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25762 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25763 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25764 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25766 echo $ECHO_N "(cached) $ECHO_C" >&6
25768 cat >conftest.$ac_ext <<_ACEOF
25771 cat confdefs.h >>conftest.$ac_ext
25772 cat >>conftest.$ac_ext <<_ACEOF
25773 /* end confdefs.h. */
25774 #include <sys/types.h>
25786 rm -f conftest.$ac_objext
25787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25788 (eval $ac_compile) 2>conftest.er1
25790 grep -v '^ *+' conftest.er1 >conftest.err
25792 cat conftest.err >&5
25793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794 (exit $ac_status); } &&
25795 { ac_try='test -z "$ac_c_werror_flag"
25796 || test ! -s conftest.err'
25797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25798 (eval $ac_try) 2>&5
25800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801 (exit $ac_status); }; } &&
25802 { ac_try='test -s conftest.$ac_objext'
25803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25804 (eval $ac_try) 2>&5
25806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25807 (exit $ac_status); }; }; then
25808 eval "$as_ac_Header=yes"
25810 echo "$as_me: failed program was:" >&5
25811 sed 's/^/| /' conftest.$ac_ext >&5
25813 eval "$as_ac_Header=no"
25815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25820 cat >>confdefs.h <<_ACEOF
25821 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25824 ac_header_dirent=$ac_hdr; break
25828 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25829 if test $ac_header_dirent = dirent.h; then
25830 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25831 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25832 if test "${ac_cv_search_opendir+set}" = set; then
25833 echo $ECHO_N "(cached) $ECHO_C" >&6
25835 ac_func_search_save_LIBS=$LIBS
25836 ac_cv_search_opendir=no
25837 cat >conftest.$ac_ext <<_ACEOF
25840 cat confdefs.h >>conftest.$ac_ext
25841 cat >>conftest.$ac_ext <<_ACEOF
25842 /* end confdefs.h. */
25844 /* Override any gcc2 internal prototype to avoid an error. */
25848 /* We use char because int might match the return type of a gcc2
25849 builtin and then its argument prototype would still apply. */
25859 rm -f conftest.$ac_objext conftest$ac_exeext
25860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25861 (eval $ac_link) 2>conftest.er1
25863 grep -v '^ *+' conftest.er1 >conftest.err
25865 cat conftest.err >&5
25866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867 (exit $ac_status); } &&
25868 { ac_try='test -z "$ac_c_werror_flag"
25869 || test ! -s conftest.err'
25870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25871 (eval $ac_try) 2>&5
25873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); }; } &&
25875 { ac_try='test -s conftest$ac_exeext'
25876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25877 (eval $ac_try) 2>&5
25879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880 (exit $ac_status); }; }; then
25881 ac_cv_search_opendir="none required"
25883 echo "$as_me: failed program was:" >&5
25884 sed 's/^/| /' conftest.$ac_ext >&5
25887 rm -f conftest.err conftest.$ac_objext \
25888 conftest$ac_exeext conftest.$ac_ext
25889 if test "$ac_cv_search_opendir" = no; then
25890 for ac_lib in dir; do
25891 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25892 cat >conftest.$ac_ext <<_ACEOF
25895 cat confdefs.h >>conftest.$ac_ext
25896 cat >>conftest.$ac_ext <<_ACEOF
25897 /* end confdefs.h. */
25899 /* Override any gcc2 internal prototype to avoid an error. */
25903 /* We use char because int might match the return type of a gcc2
25904 builtin and then its argument prototype would still apply. */
25914 rm -f conftest.$ac_objext conftest$ac_exeext
25915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25916 (eval $ac_link) 2>conftest.er1
25918 grep -v '^ *+' conftest.er1 >conftest.err
25920 cat conftest.err >&5
25921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922 (exit $ac_status); } &&
25923 { ac_try='test -z "$ac_c_werror_flag"
25924 || test ! -s conftest.err'
25925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25926 (eval $ac_try) 2>&5
25928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25929 (exit $ac_status); }; } &&
25930 { ac_try='test -s conftest$ac_exeext'
25931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25932 (eval $ac_try) 2>&5
25934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935 (exit $ac_status); }; }; then
25936 ac_cv_search_opendir="-l$ac_lib"
25939 echo "$as_me: failed program was:" >&5
25940 sed 's/^/| /' conftest.$ac_ext >&5
25943 rm -f conftest.err conftest.$ac_objext \
25944 conftest$ac_exeext conftest.$ac_ext
25947 LIBS=$ac_func_search_save_LIBS
25949 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25950 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25951 if test "$ac_cv_search_opendir" != no; then
25952 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25957 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25958 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25959 if test "${ac_cv_search_opendir+set}" = set; then
25960 echo $ECHO_N "(cached) $ECHO_C" >&6
25962 ac_func_search_save_LIBS=$LIBS
25963 ac_cv_search_opendir=no
25964 cat >conftest.$ac_ext <<_ACEOF
25967 cat confdefs.h >>conftest.$ac_ext
25968 cat >>conftest.$ac_ext <<_ACEOF
25969 /* end confdefs.h. */
25971 /* Override any gcc2 internal prototype to avoid an error. */
25975 /* We use char because int might match the return type of a gcc2
25976 builtin and then its argument prototype would still apply. */
25986 rm -f conftest.$ac_objext conftest$ac_exeext
25987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25988 (eval $ac_link) 2>conftest.er1
25990 grep -v '^ *+' conftest.er1 >conftest.err
25992 cat conftest.err >&5
25993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994 (exit $ac_status); } &&
25995 { ac_try='test -z "$ac_c_werror_flag"
25996 || test ! -s conftest.err'
25997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25998 (eval $ac_try) 2>&5
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); }; } &&
26002 { ac_try='test -s conftest$ac_exeext'
26003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26004 (eval $ac_try) 2>&5
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); }; }; then
26008 ac_cv_search_opendir="none required"
26010 echo "$as_me: failed program was:" >&5
26011 sed 's/^/| /' conftest.$ac_ext >&5
26014 rm -f conftest.err conftest.$ac_objext \
26015 conftest$ac_exeext conftest.$ac_ext
26016 if test "$ac_cv_search_opendir" = no; then
26017 for ac_lib in x; do
26018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26019 cat >conftest.$ac_ext <<_ACEOF
26022 cat confdefs.h >>conftest.$ac_ext
26023 cat >>conftest.$ac_ext <<_ACEOF
26024 /* end confdefs.h. */
26026 /* Override any gcc2 internal prototype to avoid an error. */
26030 /* We use char because int might match the return type of a gcc2
26031 builtin and then its argument prototype would still apply. */
26041 rm -f conftest.$ac_objext conftest$ac_exeext
26042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26043 (eval $ac_link) 2>conftest.er1
26045 grep -v '^ *+' conftest.er1 >conftest.err
26047 cat conftest.err >&5
26048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049 (exit $ac_status); } &&
26050 { ac_try='test -z "$ac_c_werror_flag"
26051 || test ! -s conftest.err'
26052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26053 (eval $ac_try) 2>&5
26055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056 (exit $ac_status); }; } &&
26057 { ac_try='test -s conftest$ac_exeext'
26058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26059 (eval $ac_try) 2>&5
26061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26062 (exit $ac_status); }; }; then
26063 ac_cv_search_opendir="-l$ac_lib"
26066 echo "$as_me: failed program was:" >&5
26067 sed 's/^/| /' conftest.$ac_ext >&5
26070 rm -f conftest.err conftest.$ac_objext \
26071 conftest$ac_exeext conftest.$ac_ext
26074 LIBS=$ac_func_search_save_LIBS
26076 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26077 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26078 if test "$ac_cv_search_opendir" != no; then
26079 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26085 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26086 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26087 if test "${ac_cv_header_mmap_anon+set}" = set; then
26088 echo $ECHO_N "(cached) $ECHO_C" >&6
26091 ac_cpp='$CPP $CPPFLAGS'
26092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26096 cat >conftest.$ac_ext <<_ACEOF
26099 cat confdefs.h >>conftest.$ac_ext
26100 cat >>conftest.$ac_ext <<_ACEOF
26101 /* end confdefs.h. */
26102 #include <sys/mman.h>
26103 #include <unistd.h>
26108 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26113 rm -f conftest.$ac_objext
26114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26115 (eval $ac_compile) 2>conftest.er1
26117 grep -v '^ *+' conftest.er1 >conftest.err
26119 cat conftest.err >&5
26120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121 (exit $ac_status); } &&
26122 { ac_try='test -z "$ac_c_werror_flag"
26123 || test ! -s conftest.err'
26124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26125 (eval $ac_try) 2>&5
26127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128 (exit $ac_status); }; } &&
26129 { ac_try='test -s conftest.$ac_objext'
26130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26131 (eval $ac_try) 2>&5
26133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134 (exit $ac_status); }; }; then
26135 ac_cv_header_mmap_anon=yes
26137 echo "$as_me: failed program was:" >&5
26138 sed 's/^/| /' conftest.$ac_ext >&5
26140 ac_cv_header_mmap_anon=no
26142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26144 ac_cpp='$CPP $CPPFLAGS'
26145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26151 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26152 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26153 if test "$ac_cv_header_mmap_anon" = yes; then
26155 cat >>confdefs.h <<\_ACEOF
26156 #define HAVE_MMAP_ANONYMOUS 1
26161 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26162 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26163 if test "${ac_cv_header_stat_broken+set}" = set; then
26164 echo $ECHO_N "(cached) $ECHO_C" >&6
26166 cat >conftest.$ac_ext <<_ACEOF
26169 cat confdefs.h >>conftest.$ac_ext
26170 cat >>conftest.$ac_ext <<_ACEOF
26171 /* end confdefs.h. */
26172 #include <sys/types.h>
26173 #include <sys/stat.h>
26175 #if defined(S_ISBLK) && defined(S_IFDIR)
26176 # if S_ISBLK (S_IFDIR)
26181 #if defined(S_ISBLK) && defined(S_IFCHR)
26182 # if S_ISBLK (S_IFCHR)
26187 #if defined(S_ISLNK) && defined(S_IFREG)
26188 # if S_ISLNK (S_IFREG)
26193 #if defined(S_ISSOCK) && defined(S_IFREG)
26194 # if S_ISSOCK (S_IFREG)
26200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26201 $EGREP "You lose" >/dev/null 2>&1; then
26202 ac_cv_header_stat_broken=yes
26204 ac_cv_header_stat_broken=no
26209 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26210 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26211 if test $ac_cv_header_stat_broken = yes; then
26213 cat >>confdefs.h <<\_ACEOF
26214 #define STAT_MACROS_BROKEN 1
26219 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26220 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26221 if test "${ac_cv_header_stdc+set}" = set; then
26222 echo $ECHO_N "(cached) $ECHO_C" >&6
26224 cat >conftest.$ac_ext <<_ACEOF
26227 cat confdefs.h >>conftest.$ac_ext
26228 cat >>conftest.$ac_ext <<_ACEOF
26229 /* end confdefs.h. */
26230 #include <stdlib.h>
26231 #include <stdarg.h>
26232 #include <string.h>
26243 rm -f conftest.$ac_objext
26244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26245 (eval $ac_compile) 2>conftest.er1
26247 grep -v '^ *+' conftest.er1 >conftest.err
26249 cat conftest.err >&5
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); } &&
26252 { ac_try='test -z "$ac_c_werror_flag"
26253 || test ! -s conftest.err'
26254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26255 (eval $ac_try) 2>&5
26257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258 (exit $ac_status); }; } &&
26259 { ac_try='test -s conftest.$ac_objext'
26260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26261 (eval $ac_try) 2>&5
26263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264 (exit $ac_status); }; }; then
26265 ac_cv_header_stdc=yes
26267 echo "$as_me: failed program was:" >&5
26268 sed 's/^/| /' conftest.$ac_ext >&5
26270 ac_cv_header_stdc=no
26272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26274 if test $ac_cv_header_stdc = yes; then
26275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26276 cat >conftest.$ac_ext <<_ACEOF
26279 cat confdefs.h >>conftest.$ac_ext
26280 cat >>conftest.$ac_ext <<_ACEOF
26281 /* end confdefs.h. */
26282 #include <string.h>
26285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26286 $EGREP "memchr" >/dev/null 2>&1; then
26289 ac_cv_header_stdc=no
26295 if test $ac_cv_header_stdc = yes; then
26296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26297 cat >conftest.$ac_ext <<_ACEOF
26300 cat confdefs.h >>conftest.$ac_ext
26301 cat >>conftest.$ac_ext <<_ACEOF
26302 /* end confdefs.h. */
26303 #include <stdlib.h>
26306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26307 $EGREP "free" >/dev/null 2>&1; then
26310 ac_cv_header_stdc=no
26316 if test $ac_cv_header_stdc = yes; then
26317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26318 if test "$cross_compiling" = yes; then
26321 cat >conftest.$ac_ext <<_ACEOF
26324 cat confdefs.h >>conftest.$ac_ext
26325 cat >>conftest.$ac_ext <<_ACEOF
26326 /* end confdefs.h. */
26328 #if ((' ' & 0x0FF) == 0x020)
26329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26332 # define ISLOWER(c) \
26333 (('a' <= (c) && (c) <= 'i') \
26334 || ('j' <= (c) && (c) <= 'r') \
26335 || ('s' <= (c) && (c) <= 'z'))
26336 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26344 for (i = 0; i < 256; i++)
26345 if (XOR (islower (i), ISLOWER (i))
26346 || toupper (i) != TOUPPER (i))
26351 rm -f conftest$ac_exeext
26352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26353 (eval $ac_link) 2>&5
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26358 (eval $ac_try) 2>&5
26360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361 (exit $ac_status); }; }; then
26364 echo "$as_me: program exited with status $ac_status" >&5
26365 echo "$as_me: failed program was:" >&5
26366 sed 's/^/| /' conftest.$ac_ext >&5
26368 ( exit $ac_status )
26369 ac_cv_header_stdc=no
26371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26375 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26376 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26377 if test $ac_cv_header_stdc = yes; then
26379 cat >>confdefs.h <<\_ACEOF
26380 #define STDC_HEADERS 1
26385 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26386 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26387 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26388 echo $ECHO_N "(cached) $ECHO_C" >&6
26390 cat >conftest.$ac_ext <<_ACEOF
26393 cat confdefs.h >>conftest.$ac_ext
26394 cat >>conftest.$ac_ext <<_ACEOF
26395 /* end confdefs.h. */
26396 #include <sys/types.h>
26397 #include <sys/wait.h>
26398 #ifndef WEXITSTATUS
26399 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26402 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26410 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26415 rm -f conftest.$ac_objext
26416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26417 (eval $ac_compile) 2>conftest.er1
26419 grep -v '^ *+' conftest.er1 >conftest.err
26421 cat conftest.err >&5
26422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 (exit $ac_status); } &&
26424 { ac_try='test -z "$ac_c_werror_flag"
26425 || test ! -s conftest.err'
26426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26427 (eval $ac_try) 2>&5
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); }; } &&
26431 { ac_try='test -s conftest.$ac_objext'
26432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26433 (eval $ac_try) 2>&5
26435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436 (exit $ac_status); }; }; then
26437 ac_cv_header_sys_wait_h=yes
26439 echo "$as_me: failed program was:" >&5
26440 sed 's/^/| /' conftest.$ac_ext >&5
26442 ac_cv_header_sys_wait_h=no
26444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26446 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26447 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26448 if test $ac_cv_header_sys_wait_h = yes; then
26450 cat >>confdefs.h <<\_ACEOF
26451 #define HAVE_SYS_WAIT_H 1
26456 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26457 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26458 if test "${ac_cv_header_time+set}" = set; then
26459 echo $ECHO_N "(cached) $ECHO_C" >&6
26461 cat >conftest.$ac_ext <<_ACEOF
26464 cat confdefs.h >>conftest.$ac_ext
26465 cat >>conftest.$ac_ext <<_ACEOF
26466 /* end confdefs.h. */
26467 #include <sys/types.h>
26468 #include <sys/time.h>
26474 if ((struct tm *) 0)
26480 rm -f conftest.$ac_objext
26481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26482 (eval $ac_compile) 2>conftest.er1
26484 grep -v '^ *+' conftest.er1 >conftest.err
26486 cat conftest.err >&5
26487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488 (exit $ac_status); } &&
26489 { ac_try='test -z "$ac_c_werror_flag"
26490 || test ! -s conftest.err'
26491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26492 (eval $ac_try) 2>&5
26494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495 (exit $ac_status); }; } &&
26496 { ac_try='test -s conftest.$ac_objext'
26497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26498 (eval $ac_try) 2>&5
26500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501 (exit $ac_status); }; }; then
26502 ac_cv_header_time=yes
26504 echo "$as_me: failed program was:" >&5
26505 sed 's/^/| /' conftest.$ac_ext >&5
26507 ac_cv_header_time=no
26509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26511 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26512 echo "${ECHO_T}$ac_cv_header_time" >&6
26513 if test $ac_cv_header_time = yes; then
26515 cat >>confdefs.h <<\_ACEOF
26516 #define TIME_WITH_SYS_TIME 1
26528 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26532 echo "$as_me:$LINENO: checking for $ac_header" >&5
26533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26535 echo $ECHO_N "(cached) $ECHO_C" >&6
26537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26540 # Is the header compilable?
26541 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26543 cat >conftest.$ac_ext <<_ACEOF
26546 cat confdefs.h >>conftest.$ac_ext
26547 cat >>conftest.$ac_ext <<_ACEOF
26548 /* end confdefs.h. */
26549 $ac_includes_default
26550 #include <$ac_header>
26552 rm -f conftest.$ac_objext
26553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26554 (eval $ac_compile) 2>conftest.er1
26556 grep -v '^ *+' conftest.er1 >conftest.err
26558 cat conftest.err >&5
26559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560 (exit $ac_status); } &&
26561 { ac_try='test -z "$ac_c_werror_flag"
26562 || test ! -s conftest.err'
26563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26564 (eval $ac_try) 2>&5
26566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567 (exit $ac_status); }; } &&
26568 { ac_try='test -s conftest.$ac_objext'
26569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26570 (eval $ac_try) 2>&5
26572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573 (exit $ac_status); }; }; then
26574 ac_header_compiler=yes
26576 echo "$as_me: failed program was:" >&5
26577 sed 's/^/| /' conftest.$ac_ext >&5
26579 ac_header_compiler=no
26581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26583 echo "${ECHO_T}$ac_header_compiler" >&6
26585 # Is the header present?
26586 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26588 cat >conftest.$ac_ext <<_ACEOF
26591 cat confdefs.h >>conftest.$ac_ext
26592 cat >>conftest.$ac_ext <<_ACEOF
26593 /* end confdefs.h. */
26594 #include <$ac_header>
26596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26599 grep -v '^ *+' conftest.er1 >conftest.err
26601 cat conftest.err >&5
26602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26603 (exit $ac_status); } >/dev/null; then
26604 if test -s conftest.err; then
26605 ac_cpp_err=$ac_c_preproc_warn_flag
26606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26613 if test -z "$ac_cpp_err"; then
26614 ac_header_preproc=yes
26616 echo "$as_me: failed program was:" >&5
26617 sed 's/^/| /' conftest.$ac_ext >&5
26619 ac_header_preproc=no
26621 rm -f conftest.err conftest.$ac_ext
26622 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26623 echo "${ECHO_T}$ac_header_preproc" >&6
26625 # So? What about this header?
26626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26628 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26632 ac_header_preproc=yes
26635 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26637 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26638 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26639 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26641 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26642 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26645 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26649 ## ----------------------------------- ##
26650 ## Report this to llvmbugs@cs.uiuc.edu ##
26651 ## ----------------------------------- ##
26654 sed "s/^/$as_me: WARNING: /" >&2
26657 echo "$as_me:$LINENO: checking for $ac_header" >&5
26658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26660 echo $ECHO_N "(cached) $ECHO_C" >&6
26662 eval "$as_ac_Header=\$ac_header_preproc"
26664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26669 cat >>confdefs.h <<_ACEOF
26670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26683 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26687 echo "$as_me:$LINENO: checking for $ac_header" >&5
26688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26690 echo $ECHO_N "(cached) $ECHO_C" >&6
26692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26695 # Is the header compilable?
26696 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26698 cat >conftest.$ac_ext <<_ACEOF
26701 cat confdefs.h >>conftest.$ac_ext
26702 cat >>conftest.$ac_ext <<_ACEOF
26703 /* end confdefs.h. */
26704 $ac_includes_default
26705 #include <$ac_header>
26707 rm -f conftest.$ac_objext
26708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26709 (eval $ac_compile) 2>conftest.er1
26711 grep -v '^ *+' conftest.er1 >conftest.err
26713 cat conftest.err >&5
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); } &&
26716 { ac_try='test -z "$ac_c_werror_flag"
26717 || test ! -s conftest.err'
26718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26719 (eval $ac_try) 2>&5
26721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722 (exit $ac_status); }; } &&
26723 { ac_try='test -s conftest.$ac_objext'
26724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26725 (eval $ac_try) 2>&5
26727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728 (exit $ac_status); }; }; then
26729 ac_header_compiler=yes
26731 echo "$as_me: failed program was:" >&5
26732 sed 's/^/| /' conftest.$ac_ext >&5
26734 ac_header_compiler=no
26736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26738 echo "${ECHO_T}$ac_header_compiler" >&6
26740 # Is the header present?
26741 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26743 cat >conftest.$ac_ext <<_ACEOF
26746 cat confdefs.h >>conftest.$ac_ext
26747 cat >>conftest.$ac_ext <<_ACEOF
26748 /* end confdefs.h. */
26749 #include <$ac_header>
26751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26754 grep -v '^ *+' conftest.er1 >conftest.err
26756 cat conftest.err >&5
26757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26758 (exit $ac_status); } >/dev/null; then
26759 if test -s conftest.err; then
26760 ac_cpp_err=$ac_c_preproc_warn_flag
26761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26768 if test -z "$ac_cpp_err"; then
26769 ac_header_preproc=yes
26771 echo "$as_me: failed program was:" >&5
26772 sed 's/^/| /' conftest.$ac_ext >&5
26774 ac_header_preproc=no
26776 rm -f conftest.err conftest.$ac_ext
26777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26778 echo "${ECHO_T}$ac_header_preproc" >&6
26780 # So? What about this header?
26781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26787 ac_header_preproc=yes
26790 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26792 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26793 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26794 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26796 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26797 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26800 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26804 ## ----------------------------------- ##
26805 ## Report this to llvmbugs@cs.uiuc.edu ##
26806 ## ----------------------------------- ##
26809 sed "s/^/$as_me: WARNING: /" >&2
26812 echo "$as_me:$LINENO: checking for $ac_header" >&5
26813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26815 echo $ECHO_N "(cached) $ECHO_C" >&6
26817 eval "$as_ac_Header=\$ac_header_preproc"
26819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26824 cat >>confdefs.h <<_ACEOF
26825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26837 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26841 echo "$as_me:$LINENO: checking for $ac_header" >&5
26842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26844 echo $ECHO_N "(cached) $ECHO_C" >&6
26846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26849 # Is the header compilable?
26850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26852 cat >conftest.$ac_ext <<_ACEOF
26855 cat confdefs.h >>conftest.$ac_ext
26856 cat >>conftest.$ac_ext <<_ACEOF
26857 /* end confdefs.h. */
26858 $ac_includes_default
26859 #include <$ac_header>
26861 rm -f conftest.$ac_objext
26862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26863 (eval $ac_compile) 2>conftest.er1
26865 grep -v '^ *+' conftest.er1 >conftest.err
26867 cat conftest.err >&5
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); } &&
26870 { ac_try='test -z "$ac_c_werror_flag"
26871 || test ! -s conftest.err'
26872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26873 (eval $ac_try) 2>&5
26875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26876 (exit $ac_status); }; } &&
26877 { ac_try='test -s conftest.$ac_objext'
26878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26879 (eval $ac_try) 2>&5
26881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882 (exit $ac_status); }; }; then
26883 ac_header_compiler=yes
26885 echo "$as_me: failed program was:" >&5
26886 sed 's/^/| /' conftest.$ac_ext >&5
26888 ac_header_compiler=no
26890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26892 echo "${ECHO_T}$ac_header_compiler" >&6
26894 # Is the header present?
26895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26897 cat >conftest.$ac_ext <<_ACEOF
26900 cat confdefs.h >>conftest.$ac_ext
26901 cat >>conftest.$ac_ext <<_ACEOF
26902 /* end confdefs.h. */
26903 #include <$ac_header>
26905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26908 grep -v '^ *+' conftest.er1 >conftest.err
26910 cat conftest.err >&5
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); } >/dev/null; then
26913 if test -s conftest.err; then
26914 ac_cpp_err=$ac_c_preproc_warn_flag
26915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26922 if test -z "$ac_cpp_err"; then
26923 ac_header_preproc=yes
26925 echo "$as_me: failed program was:" >&5
26926 sed 's/^/| /' conftest.$ac_ext >&5
26928 ac_header_preproc=no
26930 rm -f conftest.err conftest.$ac_ext
26931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26932 echo "${ECHO_T}$ac_header_preproc" >&6
26934 # So? What about this header?
26935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26941 ac_header_preproc=yes
26944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26958 ## ----------------------------------- ##
26959 ## Report this to llvmbugs@cs.uiuc.edu ##
26960 ## ----------------------------------- ##
26963 sed "s/^/$as_me: WARNING: /" >&2
26966 echo "$as_me:$LINENO: checking for $ac_header" >&5
26967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26969 echo $ECHO_N "(cached) $ECHO_C" >&6
26971 eval "$as_ac_Header=\$ac_header_preproc"
26973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26978 cat >>confdefs.h <<_ACEOF
26979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26987 for ac_header in malloc/malloc.h
26989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26991 echo "$as_me:$LINENO: checking for $ac_header" >&5
26992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26994 echo $ECHO_N "(cached) $ECHO_C" >&6
26996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26999 # Is the header compilable?
27000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27002 cat >conftest.$ac_ext <<_ACEOF
27005 cat confdefs.h >>conftest.$ac_ext
27006 cat >>conftest.$ac_ext <<_ACEOF
27007 /* end confdefs.h. */
27008 $ac_includes_default
27009 #include <$ac_header>
27011 rm -f conftest.$ac_objext
27012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27013 (eval $ac_compile) 2>conftest.er1
27015 grep -v '^ *+' conftest.er1 >conftest.err
27017 cat conftest.err >&5
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019 (exit $ac_status); } &&
27020 { ac_try='test -z "$ac_c_werror_flag"
27021 || test ! -s conftest.err'
27022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27023 (eval $ac_try) 2>&5
27025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 (exit $ac_status); }; } &&
27027 { ac_try='test -s conftest.$ac_objext'
27028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27029 (eval $ac_try) 2>&5
27031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032 (exit $ac_status); }; }; then
27033 ac_header_compiler=yes
27035 echo "$as_me: failed program was:" >&5
27036 sed 's/^/| /' conftest.$ac_ext >&5
27038 ac_header_compiler=no
27040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27042 echo "${ECHO_T}$ac_header_compiler" >&6
27044 # Is the header present?
27045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27047 cat >conftest.$ac_ext <<_ACEOF
27050 cat confdefs.h >>conftest.$ac_ext
27051 cat >>conftest.$ac_ext <<_ACEOF
27052 /* end confdefs.h. */
27053 #include <$ac_header>
27055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27058 grep -v '^ *+' conftest.er1 >conftest.err
27060 cat conftest.err >&5
27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); } >/dev/null; then
27063 if test -s conftest.err; then
27064 ac_cpp_err=$ac_c_preproc_warn_flag
27065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27072 if test -z "$ac_cpp_err"; then
27073 ac_header_preproc=yes
27075 echo "$as_me: failed program was:" >&5
27076 sed 's/^/| /' conftest.$ac_ext >&5
27078 ac_header_preproc=no
27080 rm -f conftest.err conftest.$ac_ext
27081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27082 echo "${ECHO_T}$ac_header_preproc" >&6
27084 # So? What about this header?
27085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27091 ac_header_preproc=yes
27094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27108 ## ----------------------------------- ##
27109 ## Report this to llvmbugs@cs.uiuc.edu ##
27110 ## ----------------------------------- ##
27113 sed "s/^/$as_me: WARNING: /" >&2
27116 echo "$as_me:$LINENO: checking for $ac_header" >&5
27117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27119 echo $ECHO_N "(cached) $ECHO_C" >&6
27121 eval "$as_ac_Header=\$ac_header_preproc"
27123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27128 cat >>confdefs.h <<_ACEOF
27129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27136 if test "$ENABLE_THREADS" -eq 1 ; then
27138 for ac_header in pthread.h
27140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27142 echo "$as_me:$LINENO: checking for $ac_header" >&5
27143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27145 echo $ECHO_N "(cached) $ECHO_C" >&6
27147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27150 # Is the header compilable?
27151 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27153 cat >conftest.$ac_ext <<_ACEOF
27156 cat confdefs.h >>conftest.$ac_ext
27157 cat >>conftest.$ac_ext <<_ACEOF
27158 /* end confdefs.h. */
27159 $ac_includes_default
27160 #include <$ac_header>
27162 rm -f conftest.$ac_objext
27163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27164 (eval $ac_compile) 2>conftest.er1
27166 grep -v '^ *+' conftest.er1 >conftest.err
27168 cat conftest.err >&5
27169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170 (exit $ac_status); } &&
27171 { ac_try='test -z "$ac_c_werror_flag"
27172 || test ! -s conftest.err'
27173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27174 (eval $ac_try) 2>&5
27176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); }; } &&
27178 { ac_try='test -s conftest.$ac_objext'
27179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27180 (eval $ac_try) 2>&5
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); }; }; then
27184 ac_header_compiler=yes
27186 echo "$as_me: failed program was:" >&5
27187 sed 's/^/| /' conftest.$ac_ext >&5
27189 ac_header_compiler=no
27191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27193 echo "${ECHO_T}$ac_header_compiler" >&6
27195 # Is the header present?
27196 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27198 cat >conftest.$ac_ext <<_ACEOF
27201 cat confdefs.h >>conftest.$ac_ext
27202 cat >>conftest.$ac_ext <<_ACEOF
27203 /* end confdefs.h. */
27204 #include <$ac_header>
27206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27209 grep -v '^ *+' conftest.er1 >conftest.err
27211 cat conftest.err >&5
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); } >/dev/null; then
27214 if test -s conftest.err; then
27215 ac_cpp_err=$ac_c_preproc_warn_flag
27216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27223 if test -z "$ac_cpp_err"; then
27224 ac_header_preproc=yes
27226 echo "$as_me: failed program was:" >&5
27227 sed 's/^/| /' conftest.$ac_ext >&5
27229 ac_header_preproc=no
27231 rm -f conftest.err conftest.$ac_ext
27232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27233 echo "${ECHO_T}$ac_header_preproc" >&6
27235 # So? What about this header?
27236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27242 ac_header_preproc=yes
27245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27252 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27259 ## ----------------------------------- ##
27260 ## Report this to llvmbugs@cs.uiuc.edu ##
27261 ## ----------------------------------- ##
27264 sed "s/^/$as_me: WARNING: /" >&2
27267 echo "$as_me:$LINENO: checking for $ac_header" >&5
27268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27270 echo $ECHO_N "(cached) $ECHO_C" >&6
27272 eval "$as_ac_Header=\$ac_header_preproc"
27274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27279 cat >>confdefs.h <<_ACEOF
27280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27290 echo "$as_me:$LINENO: checking for pid_t" >&5
27291 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27292 if test "${ac_cv_type_pid_t+set}" = set; then
27293 echo $ECHO_N "(cached) $ECHO_C" >&6
27295 cat >conftest.$ac_ext <<_ACEOF
27298 cat confdefs.h >>conftest.$ac_ext
27299 cat >>conftest.$ac_ext <<_ACEOF
27300 /* end confdefs.h. */
27301 $ac_includes_default
27307 if (sizeof (pid_t))
27313 rm -f conftest.$ac_objext
27314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27315 (eval $ac_compile) 2>conftest.er1
27317 grep -v '^ *+' conftest.er1 >conftest.err
27319 cat conftest.err >&5
27320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321 (exit $ac_status); } &&
27322 { ac_try='test -z "$ac_c_werror_flag"
27323 || test ! -s conftest.err'
27324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27325 (eval $ac_try) 2>&5
27327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328 (exit $ac_status); }; } &&
27329 { ac_try='test -s conftest.$ac_objext'
27330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27331 (eval $ac_try) 2>&5
27333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334 (exit $ac_status); }; }; then
27335 ac_cv_type_pid_t=yes
27337 echo "$as_me: failed program was:" >&5
27338 sed 's/^/| /' conftest.$ac_ext >&5
27340 ac_cv_type_pid_t=no
27342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27344 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27345 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27346 if test $ac_cv_type_pid_t = yes; then
27350 cat >>confdefs.h <<_ACEOF
27356 echo "$as_me:$LINENO: checking for size_t" >&5
27357 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27358 if test "${ac_cv_type_size_t+set}" = set; then
27359 echo $ECHO_N "(cached) $ECHO_C" >&6
27361 cat >conftest.$ac_ext <<_ACEOF
27364 cat confdefs.h >>conftest.$ac_ext
27365 cat >>conftest.$ac_ext <<_ACEOF
27366 /* end confdefs.h. */
27367 $ac_includes_default
27373 if (sizeof (size_t))
27379 rm -f conftest.$ac_objext
27380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27381 (eval $ac_compile) 2>conftest.er1
27383 grep -v '^ *+' conftest.er1 >conftest.err
27385 cat conftest.err >&5
27386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387 (exit $ac_status); } &&
27388 { ac_try='test -z "$ac_c_werror_flag"
27389 || test ! -s conftest.err'
27390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27391 (eval $ac_try) 2>&5
27393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394 (exit $ac_status); }; } &&
27395 { ac_try='test -s conftest.$ac_objext'
27396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27397 (eval $ac_try) 2>&5
27399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400 (exit $ac_status); }; }; then
27401 ac_cv_type_size_t=yes
27403 echo "$as_me: failed program was:" >&5
27404 sed 's/^/| /' conftest.$ac_ext >&5
27406 ac_cv_type_size_t=no
27408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27410 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27411 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27412 if test $ac_cv_type_size_t = yes; then
27416 cat >>confdefs.h <<_ACEOF
27417 #define size_t unsigned
27422 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27423 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27424 if test "${ac_cv_type_signal+set}" = set; then
27425 echo $ECHO_N "(cached) $ECHO_C" >&6
27427 cat >conftest.$ac_ext <<_ACEOF
27430 cat confdefs.h >>conftest.$ac_ext
27431 cat >>conftest.$ac_ext <<_ACEOF
27432 /* end confdefs.h. */
27433 #include <sys/types.h>
27434 #include <signal.h>
27439 extern "C" void (*signal (int, void (*)(int)))(int);
27441 void (*signal ()) ();
27452 rm -f conftest.$ac_objext
27453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27454 (eval $ac_compile) 2>conftest.er1
27456 grep -v '^ *+' conftest.er1 >conftest.err
27458 cat conftest.err >&5
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); } &&
27461 { ac_try='test -z "$ac_c_werror_flag"
27462 || test ! -s conftest.err'
27463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27464 (eval $ac_try) 2>&5
27466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27467 (exit $ac_status); }; } &&
27468 { ac_try='test -s conftest.$ac_objext'
27469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27470 (eval $ac_try) 2>&5
27472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473 (exit $ac_status); }; }; then
27474 ac_cv_type_signal=void
27476 echo "$as_me: failed program was:" >&5
27477 sed 's/^/| /' conftest.$ac_ext >&5
27479 ac_cv_type_signal=int
27481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27483 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27484 echo "${ECHO_T}$ac_cv_type_signal" >&6
27486 cat >>confdefs.h <<_ACEOF
27487 #define RETSIGTYPE $ac_cv_type_signal
27491 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27492 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27493 if test "${ac_cv_struct_tm+set}" = set; then
27494 echo $ECHO_N "(cached) $ECHO_C" >&6
27496 cat >conftest.$ac_ext <<_ACEOF
27499 cat confdefs.h >>conftest.$ac_ext
27500 cat >>conftest.$ac_ext <<_ACEOF
27501 /* end confdefs.h. */
27502 #include <sys/types.h>
27508 struct tm *tp; tp->tm_sec;
27513 rm -f conftest.$ac_objext
27514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27515 (eval $ac_compile) 2>conftest.er1
27517 grep -v '^ *+' conftest.er1 >conftest.err
27519 cat conftest.err >&5
27520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521 (exit $ac_status); } &&
27522 { ac_try='test -z "$ac_c_werror_flag"
27523 || test ! -s conftest.err'
27524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27525 (eval $ac_try) 2>&5
27527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528 (exit $ac_status); }; } &&
27529 { ac_try='test -s conftest.$ac_objext'
27530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27531 (eval $ac_try) 2>&5
27533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); }; }; then
27535 ac_cv_struct_tm=time.h
27537 echo "$as_me: failed program was:" >&5
27538 sed 's/^/| /' conftest.$ac_ext >&5
27540 ac_cv_struct_tm=sys/time.h
27542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27544 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27545 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27546 if test $ac_cv_struct_tm = sys/time.h; then
27548 cat >>confdefs.h <<\_ACEOF
27549 #define TM_IN_SYS_TIME 1
27554 echo "$as_me:$LINENO: checking for int64_t" >&5
27555 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27556 if test "${ac_cv_type_int64_t+set}" = set; then
27557 echo $ECHO_N "(cached) $ECHO_C" >&6
27559 cat >conftest.$ac_ext <<_ACEOF
27562 cat confdefs.h >>conftest.$ac_ext
27563 cat >>conftest.$ac_ext <<_ACEOF
27564 /* end confdefs.h. */
27565 $ac_includes_default
27571 if (sizeof (int64_t))
27577 rm -f conftest.$ac_objext
27578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27579 (eval $ac_compile) 2>conftest.er1
27581 grep -v '^ *+' conftest.er1 >conftest.err
27583 cat conftest.err >&5
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); } &&
27586 { ac_try='test -z "$ac_c_werror_flag"
27587 || test ! -s conftest.err'
27588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27589 (eval $ac_try) 2>&5
27591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27592 (exit $ac_status); }; } &&
27593 { ac_try='test -s conftest.$ac_objext'
27594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27595 (eval $ac_try) 2>&5
27597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27598 (exit $ac_status); }; }; then
27599 ac_cv_type_int64_t=yes
27601 echo "$as_me: failed program was:" >&5
27602 sed 's/^/| /' conftest.$ac_ext >&5
27604 ac_cv_type_int64_t=no
27606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27608 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27609 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27610 if test $ac_cv_type_int64_t = yes; then
27612 cat >>confdefs.h <<_ACEOF
27613 #define HAVE_INT64_T 1
27618 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27619 echo "$as_me: error: Type int64_t required but not found" >&2;}
27620 { (exit 1); exit 1; }; }
27623 echo "$as_me:$LINENO: checking for uint64_t" >&5
27624 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27625 if test "${ac_cv_type_uint64_t+set}" = set; then
27626 echo $ECHO_N "(cached) $ECHO_C" >&6
27628 cat >conftest.$ac_ext <<_ACEOF
27631 cat confdefs.h >>conftest.$ac_ext
27632 cat >>conftest.$ac_ext <<_ACEOF
27633 /* end confdefs.h. */
27634 $ac_includes_default
27638 if ((uint64_t *) 0)
27640 if (sizeof (uint64_t))
27646 rm -f conftest.$ac_objext
27647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27648 (eval $ac_compile) 2>conftest.er1
27650 grep -v '^ *+' conftest.er1 >conftest.err
27652 cat conftest.err >&5
27653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654 (exit $ac_status); } &&
27655 { ac_try='test -z "$ac_c_werror_flag"
27656 || test ! -s conftest.err'
27657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27658 (eval $ac_try) 2>&5
27660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661 (exit $ac_status); }; } &&
27662 { ac_try='test -s conftest.$ac_objext'
27663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27664 (eval $ac_try) 2>&5
27666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667 (exit $ac_status); }; }; then
27668 ac_cv_type_uint64_t=yes
27670 echo "$as_me: failed program was:" >&5
27671 sed 's/^/| /' conftest.$ac_ext >&5
27673 ac_cv_type_uint64_t=no
27675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27677 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27678 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27679 if test $ac_cv_type_uint64_t = yes; then
27681 cat >>confdefs.h <<_ACEOF
27682 #define HAVE_UINT64_T 1
27687 echo "$as_me:$LINENO: checking for u_int64_t" >&5
27688 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27689 if test "${ac_cv_type_u_int64_t+set}" = set; then
27690 echo $ECHO_N "(cached) $ECHO_C" >&6
27692 cat >conftest.$ac_ext <<_ACEOF
27695 cat confdefs.h >>conftest.$ac_ext
27696 cat >>conftest.$ac_ext <<_ACEOF
27697 /* end confdefs.h. */
27698 $ac_includes_default
27702 if ((u_int64_t *) 0)
27704 if (sizeof (u_int64_t))
27710 rm -f conftest.$ac_objext
27711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27712 (eval $ac_compile) 2>conftest.er1
27714 grep -v '^ *+' conftest.er1 >conftest.err
27716 cat conftest.err >&5
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); } &&
27719 { ac_try='test -z "$ac_c_werror_flag"
27720 || test ! -s conftest.err'
27721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27722 (eval $ac_try) 2>&5
27724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725 (exit $ac_status); }; } &&
27726 { ac_try='test -s conftest.$ac_objext'
27727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27728 (eval $ac_try) 2>&5
27730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731 (exit $ac_status); }; }; then
27732 ac_cv_type_u_int64_t=yes
27734 echo "$as_me: failed program was:" >&5
27735 sed 's/^/| /' conftest.$ac_ext >&5
27737 ac_cv_type_u_int64_t=no
27739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27741 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27742 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27743 if test $ac_cv_type_u_int64_t = yes; then
27745 cat >>confdefs.h <<_ACEOF
27746 #define HAVE_U_INT64_T 1
27751 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27752 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27753 { (exit 1); exit 1; }; }
27767 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
27769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27770 echo "$as_me:$LINENO: checking for $ac_func" >&5
27771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27772 if eval "test \"\${$as_ac_var+set}\" = set"; then
27773 echo $ECHO_N "(cached) $ECHO_C" >&6
27775 cat >conftest.$ac_ext <<_ACEOF
27778 cat confdefs.h >>conftest.$ac_ext
27779 cat >>conftest.$ac_ext <<_ACEOF
27780 /* end confdefs.h. */
27781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27783 #define $ac_func innocuous_$ac_func
27785 /* System header to define __stub macros and hopefully few prototypes,
27786 which can conflict with char $ac_func (); below.
27787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27788 <limits.h> exists even on freestanding compilers. */
27791 # include <limits.h>
27793 # include <assert.h>
27798 /* Override any gcc2 internal prototype to avoid an error. */
27803 /* We use char because int might match the return type of a gcc2
27804 builtin and then its argument prototype would still apply. */
27806 /* The GNU C library defines this for functions which it implements
27807 to always fail with ENOSYS. Some functions are actually named
27808 something starting with __ and the normal name is an alias. */
27809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27812 char (*f) () = $ac_func;
27821 return f != $ac_func;
27826 rm -f conftest.$ac_objext conftest$ac_exeext
27827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27828 (eval $ac_link) 2>conftest.er1
27830 grep -v '^ *+' conftest.er1 >conftest.err
27832 cat conftest.err >&5
27833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27834 (exit $ac_status); } &&
27835 { ac_try='test -z "$ac_c_werror_flag"
27836 || test ! -s conftest.err'
27837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27838 (eval $ac_try) 2>&5
27840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27841 (exit $ac_status); }; } &&
27842 { ac_try='test -s conftest$ac_exeext'
27843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27844 (eval $ac_try) 2>&5
27846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847 (exit $ac_status); }; }; then
27848 eval "$as_ac_var=yes"
27850 echo "$as_me: failed program was:" >&5
27851 sed 's/^/| /' conftest.$ac_ext >&5
27853 eval "$as_ac_var=no"
27855 rm -f conftest.err conftest.$ac_objext \
27856 conftest$ac_exeext conftest.$ac_ext
27858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27859 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27860 if test `eval echo '${'$as_ac_var'}'` = yes; then
27861 cat >>confdefs.h <<_ACEOF
27862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27874 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
27876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27877 echo "$as_me:$LINENO: checking for $ac_func" >&5
27878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27879 if eval "test \"\${$as_ac_var+set}\" = set"; then
27880 echo $ECHO_N "(cached) $ECHO_C" >&6
27882 cat >conftest.$ac_ext <<_ACEOF
27885 cat confdefs.h >>conftest.$ac_ext
27886 cat >>conftest.$ac_ext <<_ACEOF
27887 /* end confdefs.h. */
27888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27890 #define $ac_func innocuous_$ac_func
27892 /* System header to define __stub macros and hopefully few prototypes,
27893 which can conflict with char $ac_func (); below.
27894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27895 <limits.h> exists even on freestanding compilers. */
27898 # include <limits.h>
27900 # include <assert.h>
27905 /* Override any gcc2 internal prototype to avoid an error. */
27910 /* We use char because int might match the return type of a gcc2
27911 builtin and then its argument prototype would still apply. */
27913 /* The GNU C library defines this for functions which it implements
27914 to always fail with ENOSYS. Some functions are actually named
27915 something starting with __ and the normal name is an alias. */
27916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27919 char (*f) () = $ac_func;
27928 return f != $ac_func;
27933 rm -f conftest.$ac_objext conftest$ac_exeext
27934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27935 (eval $ac_link) 2>conftest.er1
27937 grep -v '^ *+' conftest.er1 >conftest.err
27939 cat conftest.err >&5
27940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27941 (exit $ac_status); } &&
27942 { ac_try='test -z "$ac_c_werror_flag"
27943 || test ! -s conftest.err'
27944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27945 (eval $ac_try) 2>&5
27947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948 (exit $ac_status); }; } &&
27949 { ac_try='test -s conftest$ac_exeext'
27950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27951 (eval $ac_try) 2>&5
27953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954 (exit $ac_status); }; }; then
27955 eval "$as_ac_var=yes"
27957 echo "$as_me: failed program was:" >&5
27958 sed 's/^/| /' conftest.$ac_ext >&5
27960 eval "$as_ac_var=no"
27962 rm -f conftest.err conftest.$ac_objext \
27963 conftest$ac_exeext conftest.$ac_ext
27965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27967 if test `eval echo '${'$as_ac_var'}'` = yes; then
27968 cat >>confdefs.h <<_ACEOF
27969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27982 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
27984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27985 echo "$as_me:$LINENO: checking for $ac_func" >&5
27986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27987 if eval "test \"\${$as_ac_var+set}\" = set"; then
27988 echo $ECHO_N "(cached) $ECHO_C" >&6
27990 cat >conftest.$ac_ext <<_ACEOF
27993 cat confdefs.h >>conftest.$ac_ext
27994 cat >>conftest.$ac_ext <<_ACEOF
27995 /* end confdefs.h. */
27996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27998 #define $ac_func innocuous_$ac_func
28000 /* System header to define __stub macros and hopefully few prototypes,
28001 which can conflict with char $ac_func (); below.
28002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28003 <limits.h> exists even on freestanding compilers. */
28006 # include <limits.h>
28008 # include <assert.h>
28013 /* Override any gcc2 internal prototype to avoid an error. */
28018 /* We use char because int might match the return type of a gcc2
28019 builtin and then its argument prototype would still apply. */
28021 /* The GNU C library defines this for functions which it implements
28022 to always fail with ENOSYS. Some functions are actually named
28023 something starting with __ and the normal name is an alias. */
28024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28027 char (*f) () = $ac_func;
28036 return f != $ac_func;
28041 rm -f conftest.$ac_objext conftest$ac_exeext
28042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28043 (eval $ac_link) 2>conftest.er1
28045 grep -v '^ *+' conftest.er1 >conftest.err
28047 cat conftest.err >&5
28048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049 (exit $ac_status); } &&
28050 { ac_try='test -z "$ac_c_werror_flag"
28051 || test ! -s conftest.err'
28052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28053 (eval $ac_try) 2>&5
28055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056 (exit $ac_status); }; } &&
28057 { ac_try='test -s conftest$ac_exeext'
28058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28059 (eval $ac_try) 2>&5
28061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28062 (exit $ac_status); }; }; then
28063 eval "$as_ac_var=yes"
28065 echo "$as_me: failed program was:" >&5
28066 sed 's/^/| /' conftest.$ac_ext >&5
28068 eval "$as_ac_var=no"
28070 rm -f conftest.err conftest.$ac_objext \
28071 conftest$ac_exeext conftest.$ac_ext
28073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28075 if test `eval echo '${'$as_ac_var'}'` = yes; then
28076 cat >>confdefs.h <<_ACEOF
28077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28087 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28090 echo "$as_me:$LINENO: checking for $ac_func" >&5
28091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28092 if eval "test \"\${$as_ac_var+set}\" = set"; then
28093 echo $ECHO_N "(cached) $ECHO_C" >&6
28095 cat >conftest.$ac_ext <<_ACEOF
28098 cat confdefs.h >>conftest.$ac_ext
28099 cat >>conftest.$ac_ext <<_ACEOF
28100 /* end confdefs.h. */
28101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28103 #define $ac_func innocuous_$ac_func
28105 /* System header to define __stub macros and hopefully few prototypes,
28106 which can conflict with char $ac_func (); below.
28107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28108 <limits.h> exists even on freestanding compilers. */
28111 # include <limits.h>
28113 # include <assert.h>
28118 /* Override any gcc2 internal prototype to avoid an error. */
28123 /* We use char because int might match the return type of a gcc2
28124 builtin and then its argument prototype would still apply. */
28126 /* The GNU C library defines this for functions which it implements
28127 to always fail with ENOSYS. Some functions are actually named
28128 something starting with __ and the normal name is an alias. */
28129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28132 char (*f) () = $ac_func;
28141 return f != $ac_func;
28146 rm -f conftest.$ac_objext conftest$ac_exeext
28147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28148 (eval $ac_link) 2>conftest.er1
28150 grep -v '^ *+' conftest.er1 >conftest.err
28152 cat conftest.err >&5
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); } &&
28155 { ac_try='test -z "$ac_c_werror_flag"
28156 || test ! -s conftest.err'
28157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28158 (eval $ac_try) 2>&5
28160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 (exit $ac_status); }; } &&
28162 { ac_try='test -s conftest$ac_exeext'
28163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28164 (eval $ac_try) 2>&5
28166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167 (exit $ac_status); }; }; then
28168 eval "$as_ac_var=yes"
28170 echo "$as_me: failed program was:" >&5
28171 sed 's/^/| /' conftest.$ac_ext >&5
28173 eval "$as_ac_var=no"
28175 rm -f conftest.err conftest.$ac_objext \
28176 conftest$ac_exeext conftest.$ac_ext
28178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28180 if test `eval echo '${'$as_ac_var'}'` = yes; then
28181 cat >>confdefs.h <<_ACEOF
28182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28188 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28189 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28190 if test "${llvm_cv_c_printf_a+set}" = set; then
28191 echo $ECHO_N "(cached) $ECHO_C" >&6
28194 ac_cpp='$CPP $CPPFLAGS'
28195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28199 if test "$cross_compiling" = yes; then
28200 llvmac_cv_c_printf_a=no
28202 cat >conftest.$ac_ext <<_ACEOF
28206 cat confdefs.h >>conftest.$ac_ext
28207 cat >>conftest.$ac_ext <<_ACEOF
28208 /* end confdefs.h. */
28211 #include <stdlib.h>
28217 volatile double A, B;
28221 sprintf(Buffer, "%a", A);
28225 if (A != 0x1.999999999999ap-4)
28232 rm -f conftest$ac_exeext
28233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28234 (eval $ac_link) 2>&5
28236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28239 (eval $ac_try) 2>&5
28241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242 (exit $ac_status); }; }; then
28243 llvm_cv_c_printf_a=yes
28245 echo "$as_me: program exited with status $ac_status" >&5
28246 echo "$as_me: failed program was:" >&5
28247 sed 's/^/| /' conftest.$ac_ext >&5
28249 ( exit $ac_status )
28250 llvmac_cv_c_printf_a=no
28252 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28255 ac_cpp='$CPP $CPPFLAGS'
28256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28261 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28262 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28263 if test "$llvm_cv_c_printf_a" = "yes"; then
28265 cat >>confdefs.h <<\_ACEOF
28266 #define HAVE_PRINTF_A 1
28271 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28272 # for constant arguments. Useless!
28273 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28274 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28275 if test "${ac_cv_working_alloca_h+set}" = set; then
28276 echo $ECHO_N "(cached) $ECHO_C" >&6
28278 cat >conftest.$ac_ext <<_ACEOF
28281 cat confdefs.h >>conftest.$ac_ext
28282 cat >>conftest.$ac_ext <<_ACEOF
28283 /* end confdefs.h. */
28284 #include <alloca.h>
28288 char *p = (char *) alloca (2 * sizeof (int));
28293 rm -f conftest.$ac_objext conftest$ac_exeext
28294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28295 (eval $ac_link) 2>conftest.er1
28297 grep -v '^ *+' conftest.er1 >conftest.err
28299 cat conftest.err >&5
28300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301 (exit $ac_status); } &&
28302 { ac_try='test -z "$ac_c_werror_flag"
28303 || test ! -s conftest.err'
28304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28305 (eval $ac_try) 2>&5
28307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308 (exit $ac_status); }; } &&
28309 { ac_try='test -s conftest$ac_exeext'
28310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28311 (eval $ac_try) 2>&5
28313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314 (exit $ac_status); }; }; then
28315 ac_cv_working_alloca_h=yes
28317 echo "$as_me: failed program was:" >&5
28318 sed 's/^/| /' conftest.$ac_ext >&5
28320 ac_cv_working_alloca_h=no
28322 rm -f conftest.err conftest.$ac_objext \
28323 conftest$ac_exeext conftest.$ac_ext
28325 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28326 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28327 if test $ac_cv_working_alloca_h = yes; then
28329 cat >>confdefs.h <<\_ACEOF
28330 #define HAVE_ALLOCA_H 1
28335 echo "$as_me:$LINENO: checking for alloca" >&5
28336 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28337 if test "${ac_cv_func_alloca_works+set}" = set; then
28338 echo $ECHO_N "(cached) $ECHO_C" >&6
28340 cat >conftest.$ac_ext <<_ACEOF
28343 cat confdefs.h >>conftest.$ac_ext
28344 cat >>conftest.$ac_ext <<_ACEOF
28345 /* end confdefs.h. */
28347 # define alloca __builtin_alloca
28350 # include <malloc.h>
28351 # define alloca _alloca
28354 # include <alloca.h>
28359 # ifndef alloca /* predefined by HP cc +Olibcalls */
28370 char *p = (char *) alloca (1);
28375 rm -f conftest.$ac_objext conftest$ac_exeext
28376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28377 (eval $ac_link) 2>conftest.er1
28379 grep -v '^ *+' conftest.er1 >conftest.err
28381 cat conftest.err >&5
28382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383 (exit $ac_status); } &&
28384 { ac_try='test -z "$ac_c_werror_flag"
28385 || test ! -s conftest.err'
28386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28387 (eval $ac_try) 2>&5
28389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390 (exit $ac_status); }; } &&
28391 { ac_try='test -s conftest$ac_exeext'
28392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28393 (eval $ac_try) 2>&5
28395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396 (exit $ac_status); }; }; then
28397 ac_cv_func_alloca_works=yes
28399 echo "$as_me: failed program was:" >&5
28400 sed 's/^/| /' conftest.$ac_ext >&5
28402 ac_cv_func_alloca_works=no
28404 rm -f conftest.err conftest.$ac_objext \
28405 conftest$ac_exeext conftest.$ac_ext
28407 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28408 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28410 if test $ac_cv_func_alloca_works = yes; then
28412 cat >>confdefs.h <<\_ACEOF
28413 #define HAVE_ALLOCA 1
28417 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28418 # that cause trouble. Some versions do not even contain alloca or
28419 # contain a buggy version. If you still want to use their alloca,
28420 # use ar to extract alloca.o from them instead of compiling alloca.c.
28422 ALLOCA=alloca.$ac_objext
28424 cat >>confdefs.h <<\_ACEOF
28429 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28430 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28431 if test "${ac_cv_os_cray+set}" = set; then
28432 echo $ECHO_N "(cached) $ECHO_C" >&6
28434 cat >conftest.$ac_ext <<_ACEOF
28437 cat confdefs.h >>conftest.$ac_ext
28438 cat >>conftest.$ac_ext <<_ACEOF
28439 /* end confdefs.h. */
28440 #if defined(CRAY) && ! defined(CRAY2)
28447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28448 $EGREP "webecray" >/dev/null 2>&1; then
28456 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28457 echo "${ECHO_T}$ac_cv_os_cray" >&6
28458 if test $ac_cv_os_cray = yes; then
28459 for ac_func in _getb67 GETB67 getb67; do
28460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28461 echo "$as_me:$LINENO: checking for $ac_func" >&5
28462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28463 if eval "test \"\${$as_ac_var+set}\" = set"; then
28464 echo $ECHO_N "(cached) $ECHO_C" >&6
28466 cat >conftest.$ac_ext <<_ACEOF
28469 cat confdefs.h >>conftest.$ac_ext
28470 cat >>conftest.$ac_ext <<_ACEOF
28471 /* end confdefs.h. */
28472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28474 #define $ac_func innocuous_$ac_func
28476 /* System header to define __stub macros and hopefully few prototypes,
28477 which can conflict with char $ac_func (); below.
28478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28479 <limits.h> exists even on freestanding compilers. */
28482 # include <limits.h>
28484 # include <assert.h>
28489 /* Override any gcc2 internal prototype to avoid an error. */
28494 /* We use char because int might match the return type of a gcc2
28495 builtin and then its argument prototype would still apply. */
28497 /* The GNU C library defines this for functions which it implements
28498 to always fail with ENOSYS. Some functions are actually named
28499 something starting with __ and the normal name is an alias. */
28500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28503 char (*f) () = $ac_func;
28512 return f != $ac_func;
28517 rm -f conftest.$ac_objext conftest$ac_exeext
28518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28519 (eval $ac_link) 2>conftest.er1
28521 grep -v '^ *+' conftest.er1 >conftest.err
28523 cat conftest.err >&5
28524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); } &&
28526 { ac_try='test -z "$ac_c_werror_flag"
28527 || test ! -s conftest.err'
28528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28529 (eval $ac_try) 2>&5
28531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); }; } &&
28533 { ac_try='test -s conftest$ac_exeext'
28534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28535 (eval $ac_try) 2>&5
28537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 (exit $ac_status); }; }; then
28539 eval "$as_ac_var=yes"
28541 echo "$as_me: failed program was:" >&5
28542 sed 's/^/| /' conftest.$ac_ext >&5
28544 eval "$as_ac_var=no"
28546 rm -f conftest.err conftest.$ac_objext \
28547 conftest$ac_exeext conftest.$ac_ext
28549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28551 if test `eval echo '${'$as_ac_var'}'` = yes; then
28553 cat >>confdefs.h <<_ACEOF
28554 #define CRAY_STACKSEG_END $ac_func
28563 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28564 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28565 if test "${ac_cv_c_stack_direction+set}" = set; then
28566 echo $ECHO_N "(cached) $ECHO_C" >&6
28568 if test "$cross_compiling" = yes; then
28569 ac_cv_c_stack_direction=0
28571 cat >conftest.$ac_ext <<_ACEOF
28574 cat confdefs.h >>conftest.$ac_ext
28575 cat >>conftest.$ac_ext <<_ACEOF
28576 /* end confdefs.h. */
28578 find_stack_direction ()
28580 static char *addr = 0;
28585 return find_stack_direction ();
28588 return (&dummy > addr) ? 1 : -1;
28594 exit (find_stack_direction () < 0);
28597 rm -f conftest$ac_exeext
28598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28599 (eval $ac_link) 2>&5
28601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28604 (eval $ac_try) 2>&5
28606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 (exit $ac_status); }; }; then
28608 ac_cv_c_stack_direction=1
28610 echo "$as_me: program exited with status $ac_status" >&5
28611 echo "$as_me: failed program was:" >&5
28612 sed 's/^/| /' conftest.$ac_ext >&5
28614 ( exit $ac_status )
28615 ac_cv_c_stack_direction=-1
28617 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28620 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28621 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28623 cat >>confdefs.h <<_ACEOF
28624 #define STACK_DIRECTION $ac_cv_c_stack_direction
28631 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28632 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28633 if test "${ac_cv_func_rand48+set}" = set; then
28634 echo $ECHO_N "(cached) $ECHO_C" >&6
28637 ac_cpp='$CXXCPP $CPPFLAGS'
28638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28642 cat >conftest.$ac_ext <<_ACEOF
28645 cat confdefs.h >>conftest.$ac_ext
28646 cat >>conftest.$ac_ext <<_ACEOF
28647 /* end confdefs.h. */
28648 #include <stdlib.h>
28652 srand48(0);lrand48();drand48();
28657 rm -f conftest.$ac_objext
28658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28659 (eval $ac_compile) 2>conftest.er1
28661 grep -v '^ *+' conftest.er1 >conftest.err
28663 cat conftest.err >&5
28664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665 (exit $ac_status); } &&
28666 { ac_try='test -z "$ac_cxx_werror_flag"
28667 || test ! -s conftest.err'
28668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28669 (eval $ac_try) 2>&5
28671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672 (exit $ac_status); }; } &&
28673 { ac_try='test -s conftest.$ac_objext'
28674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28675 (eval $ac_try) 2>&5
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678 (exit $ac_status); }; }; then
28679 ac_cv_func_rand48=yes
28681 echo "$as_me: failed program was:" >&5
28682 sed 's/^/| /' conftest.$ac_ext >&5
28684 ac_cv_func_rand48=no
28686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28688 ac_cpp='$CPP $CPPFLAGS'
28689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28694 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28695 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28697 if test "$ac_cv_func_rand48" = "yes" ; then
28699 cat >>confdefs.h <<\_ACEOF
28700 #define HAVE_RAND48 1
28706 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28707 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28708 if test "${ac_cv_cxx_namespaces+set}" = set; then
28709 echo $ECHO_N "(cached) $ECHO_C" >&6
28712 ac_cpp='$CXXCPP $CPPFLAGS'
28713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28717 cat >conftest.$ac_ext <<_ACEOF
28720 cat confdefs.h >>conftest.$ac_ext
28721 cat >>conftest.$ac_ext <<_ACEOF
28722 /* end confdefs.h. */
28723 namespace Outer { namespace Inner { int i = 0; }}
28727 using namespace Outer::Inner; return i;
28732 rm -f conftest.$ac_objext
28733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28734 (eval $ac_compile) 2>conftest.er1
28736 grep -v '^ *+' conftest.er1 >conftest.err
28738 cat conftest.err >&5
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); } &&
28741 { ac_try='test -z "$ac_cxx_werror_flag"
28742 || test ! -s conftest.err'
28743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28744 (eval $ac_try) 2>&5
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); }; } &&
28748 { ac_try='test -s conftest.$ac_objext'
28749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28750 (eval $ac_try) 2>&5
28752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); }; }; then
28754 ac_cv_cxx_namespaces=yes
28756 echo "$as_me: failed program was:" >&5
28757 sed 's/^/| /' conftest.$ac_ext >&5
28759 ac_cv_cxx_namespaces=no
28761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28763 ac_cpp='$CPP $CPPFLAGS'
28764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28770 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28771 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28772 if test "$ac_cv_cxx_namespaces" = yes; then
28774 cat >>confdefs.h <<\_ACEOF
28775 #define HAVE_NAMESPACES
28780 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28781 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28782 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28783 echo $ECHO_N "(cached) $ECHO_C" >&6
28787 ac_cpp='$CXXCPP $CPPFLAGS'
28788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28792 cat >conftest.$ac_ext <<_ACEOF
28795 cat confdefs.h >>conftest.$ac_ext
28796 cat >>conftest.$ac_ext <<_ACEOF
28797 /* end confdefs.h. */
28798 #include <ext/hash_map>
28799 #ifdef HAVE_NAMESPACES
28800 using namespace std;
28805 hash_map<int, int> t;
28810 rm -f conftest.$ac_objext
28811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28812 (eval $ac_compile) 2>conftest.er1
28814 grep -v '^ *+' conftest.er1 >conftest.err
28816 cat conftest.err >&5
28817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818 (exit $ac_status); } &&
28819 { ac_try='test -z "$ac_cxx_werror_flag"
28820 || test ! -s conftest.err'
28821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28822 (eval $ac_try) 2>&5
28824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825 (exit $ac_status); }; } &&
28826 { ac_try='test -s conftest.$ac_objext'
28827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28828 (eval $ac_try) 2>&5
28830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28831 (exit $ac_status); }; }; then
28832 ac_cv_cxx_have_std_ext_hash_map=yes
28834 echo "$as_me: failed program was:" >&5
28835 sed 's/^/| /' conftest.$ac_ext >&5
28837 ac_cv_cxx_have_std_ext_hash_map=no
28839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28841 ac_cpp='$CPP $CPPFLAGS'
28842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28847 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28848 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28849 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28852 cat >>confdefs.h <<\_ACEOF
28853 #define HAVE_STD_EXT_HASH_MAP 1
28858 cat >>confdefs.h <<\_ACEOF
28859 #define HAVE_STD_EXT_HASH_MAP 0
28864 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28865 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28866 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28867 echo $ECHO_N "(cached) $ECHO_C" >&6
28871 ac_cpp='$CXXCPP $CPPFLAGS'
28872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28876 cat >conftest.$ac_ext <<_ACEOF
28879 cat confdefs.h >>conftest.$ac_ext
28880 cat >>conftest.$ac_ext <<_ACEOF
28881 /* end confdefs.h. */
28882 #include <ext/hash_map>
28883 #ifdef HAVE_NAMESPACES
28884 using namespace __gnu_cxx;
28889 hash_map<int,int> t;
28894 rm -f conftest.$ac_objext
28895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28896 (eval $ac_compile) 2>conftest.er1
28898 grep -v '^ *+' conftest.er1 >conftest.err
28900 cat conftest.err >&5
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); } &&
28903 { ac_try='test -z "$ac_cxx_werror_flag"
28904 || test ! -s conftest.err'
28905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28906 (eval $ac_try) 2>&5
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909 (exit $ac_status); }; } &&
28910 { ac_try='test -s conftest.$ac_objext'
28911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28912 (eval $ac_try) 2>&5
28914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); }; }; then
28916 ac_cv_cxx_have_gnu_ext_hash_map=yes
28918 echo "$as_me: failed program was:" >&5
28919 sed 's/^/| /' conftest.$ac_ext >&5
28921 ac_cv_cxx_have_gnu_ext_hash_map=no
28923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28925 ac_cpp='$CPP $CPPFLAGS'
28926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28931 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28932 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28933 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28936 cat >>confdefs.h <<\_ACEOF
28937 #define HAVE_GNU_EXT_HASH_MAP 1
28942 cat >>confdefs.h <<\_ACEOF
28943 #define HAVE_GNU_EXT_HASH_MAP 0
28948 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28949 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28950 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28951 echo $ECHO_N "(cached) $ECHO_C" >&6
28955 ac_cpp='$CXXCPP $CPPFLAGS'
28956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28960 cat >conftest.$ac_ext <<_ACEOF
28963 cat confdefs.h >>conftest.$ac_ext
28964 cat >>conftest.$ac_ext <<_ACEOF
28965 /* end confdefs.h. */
28966 #include <hash_map>
28970 hash_map<int,int> t;
28975 rm -f conftest.$ac_objext
28976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28977 (eval $ac_compile) 2>conftest.er1
28979 grep -v '^ *+' conftest.er1 >conftest.err
28981 cat conftest.err >&5
28982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28983 (exit $ac_status); } &&
28984 { ac_try='test -z "$ac_cxx_werror_flag"
28985 || test ! -s conftest.err'
28986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28987 (eval $ac_try) 2>&5
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); }; } &&
28991 { ac_try='test -s conftest.$ac_objext'
28992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28993 (eval $ac_try) 2>&5
28995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996 (exit $ac_status); }; }; then
28997 ac_cv_cxx_have_global_hash_map=yes
28999 echo "$as_me: failed program was:" >&5
29000 sed 's/^/| /' conftest.$ac_ext >&5
29002 ac_cv_cxx_have_global_hash_map=no
29004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29006 ac_cpp='$CPP $CPPFLAGS'
29007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29012 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29013 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
29014 if test "$ac_cv_cxx_have_global_hash_map" = yes
29017 cat >>confdefs.h <<\_ACEOF
29018 #define HAVE_GLOBAL_HASH_MAP 1
29023 cat >>confdefs.h <<\_ACEOF
29024 #define HAVE_GLOBAL_HASH_MAP 0
29029 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29030 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29031 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29032 echo $ECHO_N "(cached) $ECHO_C" >&6
29036 ac_cpp='$CXXCPP $CPPFLAGS'
29037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29041 cat >conftest.$ac_ext <<_ACEOF
29044 cat confdefs.h >>conftest.$ac_ext
29045 cat >>conftest.$ac_ext <<_ACEOF
29046 /* end confdefs.h. */
29047 #include <ext/hash_set>
29048 #ifdef HAVE_NAMESPACES
29049 using namespace std;
29059 rm -f conftest.$ac_objext
29060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29061 (eval $ac_compile) 2>conftest.er1
29063 grep -v '^ *+' conftest.er1 >conftest.err
29065 cat conftest.err >&5
29066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29067 (exit $ac_status); } &&
29068 { ac_try='test -z "$ac_cxx_werror_flag"
29069 || test ! -s conftest.err'
29070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29071 (eval $ac_try) 2>&5
29073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29074 (exit $ac_status); }; } &&
29075 { ac_try='test -s conftest.$ac_objext'
29076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29077 (eval $ac_try) 2>&5
29079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080 (exit $ac_status); }; }; then
29081 ac_cv_cxx_have_std_ext_hash_set=yes
29083 echo "$as_me: failed program was:" >&5
29084 sed 's/^/| /' conftest.$ac_ext >&5
29086 ac_cv_cxx_have_std_ext_hash_set=no
29088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29090 ac_cpp='$CPP $CPPFLAGS'
29091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29096 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29097 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29098 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29101 cat >>confdefs.h <<\_ACEOF
29102 #define HAVE_STD_EXT_HASH_SET 1
29107 cat >>confdefs.h <<\_ACEOF
29108 #define HAVE_STD_EXT_HASH_SET 0
29113 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29114 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29115 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29116 echo $ECHO_N "(cached) $ECHO_C" >&6
29120 ac_cpp='$CXXCPP $CPPFLAGS'
29121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29125 cat >conftest.$ac_ext <<_ACEOF
29128 cat confdefs.h >>conftest.$ac_ext
29129 cat >>conftest.$ac_ext <<_ACEOF
29130 /* end confdefs.h. */
29131 #include <ext/hash_set>
29132 #ifdef HAVE_NAMESPACES
29133 using namespace __gnu_cxx;
29143 rm -f conftest.$ac_objext
29144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29145 (eval $ac_compile) 2>conftest.er1
29147 grep -v '^ *+' conftest.er1 >conftest.err
29149 cat conftest.err >&5
29150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); } &&
29152 { ac_try='test -z "$ac_cxx_werror_flag"
29153 || test ! -s conftest.err'
29154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29155 (eval $ac_try) 2>&5
29157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158 (exit $ac_status); }; } &&
29159 { ac_try='test -s conftest.$ac_objext'
29160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29161 (eval $ac_try) 2>&5
29163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164 (exit $ac_status); }; }; then
29165 ac_cv_cxx_have_gnu_ext_hash_set=yes
29167 echo "$as_me: failed program was:" >&5
29168 sed 's/^/| /' conftest.$ac_ext >&5
29170 ac_cv_cxx_have_gnu_ext_hash_set=no
29172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29174 ac_cpp='$CPP $CPPFLAGS'
29175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29180 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29181 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29182 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29185 cat >>confdefs.h <<\_ACEOF
29186 #define HAVE_GNU_EXT_HASH_SET 1
29191 cat >>confdefs.h <<\_ACEOF
29192 #define HAVE_GNU_EXT_HASH_SET 0
29197 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29198 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29199 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29200 echo $ECHO_N "(cached) $ECHO_C" >&6
29204 ac_cpp='$CXXCPP $CPPFLAGS'
29205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29209 cat >conftest.$ac_ext <<_ACEOF
29212 cat confdefs.h >>conftest.$ac_ext
29213 cat >>conftest.$ac_ext <<_ACEOF
29214 /* end confdefs.h. */
29215 #include <hash_set>
29219 hash_set<int> t; return 0;
29224 rm -f conftest.$ac_objext
29225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29226 (eval $ac_compile) 2>conftest.er1
29228 grep -v '^ *+' conftest.er1 >conftest.err
29230 cat conftest.err >&5
29231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232 (exit $ac_status); } &&
29233 { ac_try='test -z "$ac_cxx_werror_flag"
29234 || test ! -s conftest.err'
29235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29236 (eval $ac_try) 2>&5
29238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239 (exit $ac_status); }; } &&
29240 { ac_try='test -s conftest.$ac_objext'
29241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29242 (eval $ac_try) 2>&5
29244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245 (exit $ac_status); }; }; then
29246 ac_cv_cxx_have_global_hash_set=yes
29248 echo "$as_me: failed program was:" >&5
29249 sed 's/^/| /' conftest.$ac_ext >&5
29251 ac_cv_cxx_have_global_hash_set=no
29253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29255 ac_cpp='$CPP $CPPFLAGS'
29256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29261 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29262 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29263 if test "$ac_cv_cxx_have_global_hash_set" = yes
29266 cat >>confdefs.h <<\_ACEOF
29267 #define HAVE_GLOBAL_HASH_SET 1
29272 cat >>confdefs.h <<\_ACEOF
29273 #define HAVE_GLOBAL_HASH_SET 0
29278 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29279 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29280 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29281 echo $ECHO_N "(cached) $ECHO_C" >&6
29285 ac_cpp='$CXXCPP $CPPFLAGS'
29286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29290 cat >conftest.$ac_ext <<_ACEOF
29293 cat confdefs.h >>conftest.$ac_ext
29294 cat >>conftest.$ac_ext <<_ACEOF
29295 /* end confdefs.h. */
29296 #include <iterator>
29297 #ifdef HAVE_NAMESPACES
29298 using namespace std;
29303 iterator<int,int,int> t; return 0;
29308 rm -f conftest.$ac_objext
29309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29310 (eval $ac_compile) 2>conftest.er1
29312 grep -v '^ *+' conftest.er1 >conftest.err
29314 cat conftest.err >&5
29315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316 (exit $ac_status); } &&
29317 { ac_try='test -z "$ac_cxx_werror_flag"
29318 || test ! -s conftest.err'
29319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29320 (eval $ac_try) 2>&5
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); }; } &&
29324 { ac_try='test -s conftest.$ac_objext'
29325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29326 (eval $ac_try) 2>&5
29328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329 (exit $ac_status); }; }; then
29330 ac_cv_cxx_have_std_iterator=yes
29332 echo "$as_me: failed program was:" >&5
29333 sed 's/^/| /' conftest.$ac_ext >&5
29335 ac_cv_cxx_have_std_iterator=no
29337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29339 ac_cpp='$CPP $CPPFLAGS'
29340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29346 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29347 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29348 if test "$ac_cv_cxx_have_std_iterator" = yes
29351 cat >>confdefs.h <<\_ACEOF
29352 #define HAVE_STD_ITERATOR 1
29357 cat >>confdefs.h <<\_ACEOF
29358 #define HAVE_STD_ITERATOR 0
29363 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29364 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29365 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29366 echo $ECHO_N "(cached) $ECHO_C" >&6
29370 ac_cpp='$CXXCPP $CPPFLAGS'
29371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29375 cat >conftest.$ac_ext <<_ACEOF
29378 cat confdefs.h >>conftest.$ac_ext
29379 cat >>conftest.$ac_ext <<_ACEOF
29380 /* end confdefs.h. */
29381 #include <iterator>
29382 #ifdef HAVE_NAMESPACES
29383 using namespace std;
29388 bidirectional_iterator<int,int> t; return 0;
29393 rm -f conftest.$ac_objext
29394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29395 (eval $ac_compile) 2>conftest.er1
29397 grep -v '^ *+' conftest.er1 >conftest.err
29399 cat conftest.err >&5
29400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 (exit $ac_status); } &&
29402 { ac_try='test -z "$ac_cxx_werror_flag"
29403 || test ! -s conftest.err'
29404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405 (eval $ac_try) 2>&5
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); }; } &&
29409 { ac_try='test -s conftest.$ac_objext'
29410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411 (eval $ac_try) 2>&5
29413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414 (exit $ac_status); }; }; then
29415 ac_cv_cxx_have_bi_iterator=yes
29417 echo "$as_me: failed program was:" >&5
29418 sed 's/^/| /' conftest.$ac_ext >&5
29420 ac_cv_cxx_have_bi_iterator=no
29422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29424 ac_cpp='$CPP $CPPFLAGS'
29425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29431 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29432 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29433 if test "$ac_cv_cxx_have_bi_iterator" = yes
29436 cat >>confdefs.h <<\_ACEOF
29437 #define HAVE_BI_ITERATOR 1
29442 cat >>confdefs.h <<\_ACEOF
29443 #define HAVE_BI_ITERATOR 0
29448 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29449 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29450 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29451 echo $ECHO_N "(cached) $ECHO_C" >&6
29455 ac_cpp='$CXXCPP $CPPFLAGS'
29456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29460 cat >conftest.$ac_ext <<_ACEOF
29463 cat confdefs.h >>conftest.$ac_ext
29464 cat >>conftest.$ac_ext <<_ACEOF
29465 /* end confdefs.h. */
29466 #include <iterator>
29467 #ifdef HAVE_NAMESPACES
29468 using namespace std;
29473 forward_iterator<int,int> t; return 0;
29478 rm -f conftest.$ac_objext
29479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29480 (eval $ac_compile) 2>conftest.er1
29482 grep -v '^ *+' conftest.er1 >conftest.err
29484 cat conftest.err >&5
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); } &&
29487 { ac_try='test -z "$ac_cxx_werror_flag"
29488 || test ! -s conftest.err'
29489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29490 (eval $ac_try) 2>&5
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); }; } &&
29494 { ac_try='test -s conftest.$ac_objext'
29495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29496 (eval $ac_try) 2>&5
29498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499 (exit $ac_status); }; }; then
29500 ac_cv_cxx_have_fwd_iterator=yes
29502 echo "$as_me: failed program was:" >&5
29503 sed 's/^/| /' conftest.$ac_ext >&5
29505 ac_cv_cxx_have_fwd_iterator=no
29507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29509 ac_cpp='$CPP $CPPFLAGS'
29510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29516 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29517 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29518 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29521 cat >>confdefs.h <<\_ACEOF
29522 #define HAVE_FWD_ITERATOR 1
29527 cat >>confdefs.h <<\_ACEOF
29528 #define HAVE_FWD_ITERATOR 0
29534 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29535 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29536 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29537 echo $ECHO_N "(cached) $ECHO_C" >&6
29540 ac_cpp='$CXXCPP $CPPFLAGS'
29541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29545 cat >conftest.$ac_ext <<_ACEOF
29548 cat confdefs.h >>conftest.$ac_ext
29549 cat >>conftest.$ac_ext <<_ACEOF
29550 /* end confdefs.h. */
29560 rm -f conftest.$ac_objext
29561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29562 (eval $ac_compile) 2>conftest.er1
29564 grep -v '^ *+' conftest.er1 >conftest.err
29566 cat conftest.err >&5
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); } &&
29569 { ac_try='test -z "$ac_cxx_werror_flag"
29570 || test ! -s conftest.err'
29571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29572 (eval $ac_try) 2>&5
29574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575 (exit $ac_status); }; } &&
29576 { ac_try='test -s conftest.$ac_objext'
29577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29578 (eval $ac_try) 2>&5
29580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581 (exit $ac_status); }; }; then
29582 ac_cv_func_isnan_in_math_h=yes
29584 echo "$as_me: failed program was:" >&5
29585 sed 's/^/| /' conftest.$ac_ext >&5
29587 ac_cv_func_isnan_in_math_h=no
29589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29591 ac_cpp='$CPP $CPPFLAGS'
29592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29597 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29598 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29601 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29603 cat >>confdefs.h <<\_ACEOF
29604 #define HAVE_ISNAN_IN_MATH_H 1
29609 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29610 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29611 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29612 echo $ECHO_N "(cached) $ECHO_C" >&6
29615 ac_cpp='$CXXCPP $CPPFLAGS'
29616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29620 cat >conftest.$ac_ext <<_ACEOF
29623 cat confdefs.h >>conftest.$ac_ext
29624 cat >>conftest.$ac_ext <<_ACEOF
29625 /* end confdefs.h. */
29635 rm -f conftest.$ac_objext
29636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29637 (eval $ac_compile) 2>conftest.er1
29639 grep -v '^ *+' conftest.er1 >conftest.err
29641 cat conftest.err >&5
29642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 (exit $ac_status); } &&
29644 { ac_try='test -z "$ac_cxx_werror_flag"
29645 || test ! -s conftest.err'
29646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29647 (eval $ac_try) 2>&5
29649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650 (exit $ac_status); }; } &&
29651 { ac_try='test -s conftest.$ac_objext'
29652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29653 (eval $ac_try) 2>&5
29655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656 (exit $ac_status); }; }; then
29657 ac_cv_func_isnan_in_cmath=yes
29659 echo "$as_me: failed program was:" >&5
29660 sed 's/^/| /' conftest.$ac_ext >&5
29662 ac_cv_func_isnan_in_cmath=no
29664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29666 ac_cpp='$CPP $CPPFLAGS'
29667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29672 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29673 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29675 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29677 cat >>confdefs.h <<\_ACEOF
29678 #define HAVE_ISNAN_IN_CMATH 1
29683 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29684 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29685 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29686 echo $ECHO_N "(cached) $ECHO_C" >&6
29689 ac_cpp='$CXXCPP $CPPFLAGS'
29690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29694 cat >conftest.$ac_ext <<_ACEOF
29697 cat confdefs.h >>conftest.$ac_ext
29698 cat >>conftest.$ac_ext <<_ACEOF
29699 /* end confdefs.h. */
29704 float f; std::isnan(f);
29709 rm -f conftest.$ac_objext
29710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29711 (eval $ac_compile) 2>conftest.er1
29713 grep -v '^ *+' conftest.er1 >conftest.err
29715 cat conftest.err >&5
29716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); } &&
29718 { ac_try='test -z "$ac_cxx_werror_flag"
29719 || test ! -s conftest.err'
29720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29721 (eval $ac_try) 2>&5
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); }; } &&
29725 { ac_try='test -s conftest.$ac_objext'
29726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29727 (eval $ac_try) 2>&5
29729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29730 (exit $ac_status); }; }; then
29731 ac_cv_func_std_isnan_in_cmath=yes
29733 echo "$as_me: failed program was:" >&5
29734 sed 's/^/| /' conftest.$ac_ext >&5
29736 ac_cv_func_std_isnan_in_cmath=no
29738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29740 ac_cpp='$CPP $CPPFLAGS'
29741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29746 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29747 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29749 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29751 cat >>confdefs.h <<\_ACEOF
29752 #define HAVE_STD_ISNAN_IN_CMATH 1
29758 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29759 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29760 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29761 echo $ECHO_N "(cached) $ECHO_C" >&6
29764 ac_cpp='$CXXCPP $CPPFLAGS'
29765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29769 cat >conftest.$ac_ext <<_ACEOF
29772 cat confdefs.h >>conftest.$ac_ext
29773 cat >>conftest.$ac_ext <<_ACEOF
29774 /* end confdefs.h. */
29784 rm -f conftest.$ac_objext
29785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29786 (eval $ac_compile) 2>conftest.er1
29788 grep -v '^ *+' conftest.er1 >conftest.err
29790 cat conftest.err >&5
29791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792 (exit $ac_status); } &&
29793 { ac_try='test -z "$ac_cxx_werror_flag"
29794 || test ! -s conftest.err'
29795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29796 (eval $ac_try) 2>&5
29798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29799 (exit $ac_status); }; } &&
29800 { ac_try='test -s conftest.$ac_objext'
29801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29802 (eval $ac_try) 2>&5
29804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29805 (exit $ac_status); }; }; then
29806 ac_cv_func_isinf_in_math_h=yes
29808 echo "$as_me: failed program was:" >&5
29809 sed 's/^/| /' conftest.$ac_ext >&5
29811 ac_cv_func_isinf_in_math_h=no
29813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29815 ac_cpp='$CPP $CPPFLAGS'
29816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29821 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29822 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29824 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29826 cat >>confdefs.h <<\_ACEOF
29827 #define HAVE_ISINF_IN_MATH_H 1
29832 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29833 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29834 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29835 echo $ECHO_N "(cached) $ECHO_C" >&6
29838 ac_cpp='$CXXCPP $CPPFLAGS'
29839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29843 cat >conftest.$ac_ext <<_ACEOF
29846 cat confdefs.h >>conftest.$ac_ext
29847 cat >>conftest.$ac_ext <<_ACEOF
29848 /* end confdefs.h. */
29858 rm -f conftest.$ac_objext
29859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29860 (eval $ac_compile) 2>conftest.er1
29862 grep -v '^ *+' conftest.er1 >conftest.err
29864 cat conftest.err >&5
29865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866 (exit $ac_status); } &&
29867 { ac_try='test -z "$ac_cxx_werror_flag"
29868 || test ! -s conftest.err'
29869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29870 (eval $ac_try) 2>&5
29872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873 (exit $ac_status); }; } &&
29874 { ac_try='test -s conftest.$ac_objext'
29875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29876 (eval $ac_try) 2>&5
29878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879 (exit $ac_status); }; }; then
29880 ac_cv_func_isinf_in_cmath=yes
29882 echo "$as_me: failed program was:" >&5
29883 sed 's/^/| /' conftest.$ac_ext >&5
29885 ac_cv_func_isinf_in_cmath=no
29887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29889 ac_cpp='$CPP $CPPFLAGS'
29890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29895 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29896 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29898 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29900 cat >>confdefs.h <<\_ACEOF
29901 #define HAVE_ISINF_IN_CMATH 1
29906 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29907 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29908 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29909 echo $ECHO_N "(cached) $ECHO_C" >&6
29912 ac_cpp='$CXXCPP $CPPFLAGS'
29913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29917 cat >conftest.$ac_ext <<_ACEOF
29920 cat confdefs.h >>conftest.$ac_ext
29921 cat >>conftest.$ac_ext <<_ACEOF
29922 /* end confdefs.h. */
29927 float f; std::isinf(f)}
29932 rm -f conftest.$ac_objext
29933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29934 (eval $ac_compile) 2>conftest.er1
29936 grep -v '^ *+' conftest.er1 >conftest.err
29938 cat conftest.err >&5
29939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940 (exit $ac_status); } &&
29941 { ac_try='test -z "$ac_cxx_werror_flag"
29942 || test ! -s conftest.err'
29943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29944 (eval $ac_try) 2>&5
29946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947 (exit $ac_status); }; } &&
29948 { ac_try='test -s conftest.$ac_objext'
29949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29950 (eval $ac_try) 2>&5
29952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953 (exit $ac_status); }; }; then
29954 ac_cv_func_std_isinf_in_cmath=yes
29956 echo "$as_me: failed program was:" >&5
29957 sed 's/^/| /' conftest.$ac_ext >&5
29959 ac_cv_func_std_isinf_in_cmath=no
29961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29963 ac_cpp='$CPP $CPPFLAGS'
29964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29969 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29970 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29972 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29974 cat >>confdefs.h <<\_ACEOF
29975 #define HAVE_STD_ISINF_IN_CMATH 1
29980 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29981 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29982 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29983 echo $ECHO_N "(cached) $ECHO_C" >&6
29986 ac_cpp='$CXXCPP $CPPFLAGS'
29987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29991 cat >conftest.$ac_ext <<_ACEOF
29994 cat confdefs.h >>conftest.$ac_ext
29995 cat >>conftest.$ac_ext <<_ACEOF
29996 /* end confdefs.h. */
29997 #include <ieeefp.h>
30001 float f; finite(f);
30006 rm -f conftest.$ac_objext
30007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30008 (eval $ac_compile) 2>conftest.er1
30010 grep -v '^ *+' conftest.er1 >conftest.err
30012 cat conftest.err >&5
30013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014 (exit $ac_status); } &&
30015 { ac_try='test -z "$ac_cxx_werror_flag"
30016 || test ! -s conftest.err'
30017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30018 (eval $ac_try) 2>&5
30020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021 (exit $ac_status); }; } &&
30022 { ac_try='test -s conftest.$ac_objext'
30023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30024 (eval $ac_try) 2>&5
30026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30027 (exit $ac_status); }; }; then
30028 ac_cv_func_finite_in_ieeefp_h=yes
30030 echo "$as_me: failed program was:" >&5
30031 sed 's/^/| /' conftest.$ac_ext >&5
30033 ac_cv_func_finite_in_ieeefp_h=no
30035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30037 ac_cpp='$CPP $CPPFLAGS'
30038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30043 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30044 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30046 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30048 cat >>confdefs.h <<\_ACEOF
30049 #define HAVE_FINITE_IN_IEEEFP_H 1
30058 for ac_header in stdlib.h unistd.h
30060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30062 echo "$as_me:$LINENO: checking for $ac_header" >&5
30063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30065 echo $ECHO_N "(cached) $ECHO_C" >&6
30067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30070 # Is the header compilable?
30071 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30073 cat >conftest.$ac_ext <<_ACEOF
30076 cat confdefs.h >>conftest.$ac_ext
30077 cat >>conftest.$ac_ext <<_ACEOF
30078 /* end confdefs.h. */
30079 $ac_includes_default
30080 #include <$ac_header>
30082 rm -f conftest.$ac_objext
30083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30084 (eval $ac_compile) 2>conftest.er1
30086 grep -v '^ *+' conftest.er1 >conftest.err
30088 cat conftest.err >&5
30089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090 (exit $ac_status); } &&
30091 { ac_try='test -z "$ac_c_werror_flag"
30092 || test ! -s conftest.err'
30093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30094 (eval $ac_try) 2>&5
30096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097 (exit $ac_status); }; } &&
30098 { ac_try='test -s conftest.$ac_objext'
30099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30100 (eval $ac_try) 2>&5
30102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103 (exit $ac_status); }; }; then
30104 ac_header_compiler=yes
30106 echo "$as_me: failed program was:" >&5
30107 sed 's/^/| /' conftest.$ac_ext >&5
30109 ac_header_compiler=no
30111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30112 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30113 echo "${ECHO_T}$ac_header_compiler" >&6
30115 # Is the header present?
30116 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30118 cat >conftest.$ac_ext <<_ACEOF
30121 cat confdefs.h >>conftest.$ac_ext
30122 cat >>conftest.$ac_ext <<_ACEOF
30123 /* end confdefs.h. */
30124 #include <$ac_header>
30126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30129 grep -v '^ *+' conftest.er1 >conftest.err
30131 cat conftest.err >&5
30132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30133 (exit $ac_status); } >/dev/null; then
30134 if test -s conftest.err; then
30135 ac_cpp_err=$ac_c_preproc_warn_flag
30136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30143 if test -z "$ac_cpp_err"; then
30144 ac_header_preproc=yes
30146 echo "$as_me: failed program was:" >&5
30147 sed 's/^/| /' conftest.$ac_ext >&5
30149 ac_header_preproc=no
30151 rm -f conftest.err conftest.$ac_ext
30152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30153 echo "${ECHO_T}$ac_header_preproc" >&6
30155 # So? What about this header?
30156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30162 ac_header_preproc=yes
30165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30168 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30172 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30179 ## ----------------------------------- ##
30180 ## Report this to llvmbugs@cs.uiuc.edu ##
30181 ## ----------------------------------- ##
30184 sed "s/^/$as_me: WARNING: /" >&2
30187 echo "$as_me:$LINENO: checking for $ac_header" >&5
30188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30190 echo $ECHO_N "(cached) $ECHO_C" >&6
30192 eval "$as_ac_Header=\$ac_header_preproc"
30194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30199 cat >>confdefs.h <<_ACEOF
30200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30208 for ac_func in getpagesize
30210 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30211 echo "$as_me:$LINENO: checking for $ac_func" >&5
30212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30213 if eval "test \"\${$as_ac_var+set}\" = set"; then
30214 echo $ECHO_N "(cached) $ECHO_C" >&6
30216 cat >conftest.$ac_ext <<_ACEOF
30219 cat confdefs.h >>conftest.$ac_ext
30220 cat >>conftest.$ac_ext <<_ACEOF
30221 /* end confdefs.h. */
30222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30224 #define $ac_func innocuous_$ac_func
30226 /* System header to define __stub macros and hopefully few prototypes,
30227 which can conflict with char $ac_func (); below.
30228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30229 <limits.h> exists even on freestanding compilers. */
30232 # include <limits.h>
30234 # include <assert.h>
30239 /* Override any gcc2 internal prototype to avoid an error. */
30244 /* We use char because int might match the return type of a gcc2
30245 builtin and then its argument prototype would still apply. */
30247 /* The GNU C library defines this for functions which it implements
30248 to always fail with ENOSYS. Some functions are actually named
30249 something starting with __ and the normal name is an alias. */
30250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30253 char (*f) () = $ac_func;
30262 return f != $ac_func;
30267 rm -f conftest.$ac_objext conftest$ac_exeext
30268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30269 (eval $ac_link) 2>conftest.er1
30271 grep -v '^ *+' conftest.er1 >conftest.err
30273 cat conftest.err >&5
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); } &&
30276 { ac_try='test -z "$ac_c_werror_flag"
30277 || test ! -s conftest.err'
30278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30279 (eval $ac_try) 2>&5
30281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282 (exit $ac_status); }; } &&
30283 { ac_try='test -s conftest$ac_exeext'
30284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30285 (eval $ac_try) 2>&5
30287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288 (exit $ac_status); }; }; then
30289 eval "$as_ac_var=yes"
30291 echo "$as_me: failed program was:" >&5
30292 sed 's/^/| /' conftest.$ac_ext >&5
30294 eval "$as_ac_var=no"
30296 rm -f conftest.err conftest.$ac_objext \
30297 conftest$ac_exeext conftest.$ac_ext
30299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30301 if test `eval echo '${'$as_ac_var'}'` = yes; then
30302 cat >>confdefs.h <<_ACEOF
30303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30309 echo "$as_me:$LINENO: checking for working mmap" >&5
30310 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30311 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30312 echo $ECHO_N "(cached) $ECHO_C" >&6
30314 if test "$cross_compiling" = yes; then
30315 ac_cv_func_mmap_fixed_mapped=no
30317 cat >conftest.$ac_ext <<_ACEOF
30320 cat confdefs.h >>conftest.$ac_ext
30321 cat >>conftest.$ac_ext <<_ACEOF
30322 /* end confdefs.h. */
30323 $ac_includes_default
30324 /* malloc might have been renamed as rpl_malloc. */
30327 /* Thanks to Mike Haertel and Jim Avera for this test.
30328 Here is a matrix of mmap possibilities:
30329 mmap private not fixed
30330 mmap private fixed at somewhere currently unmapped
30331 mmap private fixed at somewhere already mapped
30332 mmap shared not fixed
30333 mmap shared fixed at somewhere currently unmapped
30334 mmap shared fixed at somewhere already mapped
30335 For private mappings, we should verify that changes cannot be read()
30336 back from the file, nor mmap's back from the file at a different
30337 address. (There have been systems where private was not correctly
30338 implemented like the infamous i386 svr4.0, and systems where the
30339 VM page cache was not coherent with the file system buffer cache
30340 like early versions of FreeBSD and possibly contemporary NetBSD.)
30341 For shared mappings, we should conversely verify that changes get
30342 propagated back to all the places they're supposed to be.
30344 Grep wants private fixed already mapped.
30345 The main things grep needs to know about mmap are:
30346 * does it exist and is it safe to write into the mmap'd area
30347 * how to use it (BSD variants) */
30350 #include <sys/mman.h>
30352 #if !STDC_HEADERS && !HAVE_STDLIB_H
30356 /* This mess was copied from the GNU getpagesize.h. */
30357 #if !HAVE_GETPAGESIZE
30358 /* Assume that all systems that can run configure have sys/param.h. */
30359 # if !HAVE_SYS_PARAM_H
30360 # define HAVE_SYS_PARAM_H 1
30363 # ifdef _SC_PAGESIZE
30364 # define getpagesize() sysconf(_SC_PAGESIZE)
30365 # else /* no _SC_PAGESIZE */
30366 # if HAVE_SYS_PARAM_H
30367 # include <sys/param.h>
30368 # ifdef EXEC_PAGESIZE
30369 # define getpagesize() EXEC_PAGESIZE
30370 # else /* no EXEC_PAGESIZE */
30372 # define getpagesize() NBPG * CLSIZE
30375 # endif /* no CLSIZE */
30376 # else /* no NBPG */
30378 # define getpagesize() NBPC
30379 # else /* no NBPC */
30381 # define getpagesize() PAGESIZE
30382 # endif /* PAGESIZE */
30383 # endif /* no NBPC */
30384 # endif /* no NBPG */
30385 # endif /* no EXEC_PAGESIZE */
30386 # else /* no HAVE_SYS_PARAM_H */
30387 # define getpagesize() 8192 /* punt totally */
30388 # endif /* no HAVE_SYS_PARAM_H */
30389 # endif /* no _SC_PAGESIZE */
30391 #endif /* no HAVE_GETPAGESIZE */
30396 char *data, *data2, *data3;
30400 pagesize = getpagesize ();
30402 /* First, make a file with some known garbage in it. */
30403 data = (char *) malloc (pagesize);
30406 for (i = 0; i < pagesize; ++i)
30407 *(data + i) = rand ();
30409 fd = creat ("conftest.mmap", 0600);
30412 if (write (fd, data, pagesize) != pagesize)
30416 /* Next, try to mmap the file at a fixed address which already has
30417 something else allocated at it. If we can, also make sure that
30418 we see the same garbage. */
30419 fd = open ("conftest.mmap", O_RDWR);
30422 data2 = (char *) malloc (2 * pagesize);
30425 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30426 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30427 MAP_PRIVATE | MAP_FIXED, fd, 0L))
30429 for (i = 0; i < pagesize; ++i)
30430 if (*(data + i) != *(data2 + i))
30433 /* Finally, make sure that changes to the mapped area do not
30434 percolate back to the file as seen by read(). (This is a bug on
30435 some variants of i386 svr4.0.) */
30436 for (i = 0; i < pagesize; ++i)
30437 *(data2 + i) = *(data2 + i) + 1;
30438 data3 = (char *) malloc (pagesize);
30441 if (read (fd, data3, pagesize) != pagesize)
30443 for (i = 0; i < pagesize; ++i)
30444 if (*(data + i) != *(data3 + i))
30450 rm -f conftest$ac_exeext
30451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30452 (eval $ac_link) 2>&5
30454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30457 (eval $ac_try) 2>&5
30459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30460 (exit $ac_status); }; }; then
30461 ac_cv_func_mmap_fixed_mapped=yes
30463 echo "$as_me: program exited with status $ac_status" >&5
30464 echo "$as_me: failed program was:" >&5
30465 sed 's/^/| /' conftest.$ac_ext >&5
30467 ( exit $ac_status )
30468 ac_cv_func_mmap_fixed_mapped=no
30470 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30473 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30474 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30475 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30477 cat >>confdefs.h <<\_ACEOF
30478 #define HAVE_MMAP 1
30482 rm -f conftest.mmap
30484 echo "$as_me:$LINENO: checking for mmap of files" >&5
30485 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30486 if test "${ac_cv_func_mmap_file+set}" = set; then
30487 echo $ECHO_N "(cached) $ECHO_C" >&6
30490 ac_cpp='$CPP $CPPFLAGS'
30491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30495 if test "$cross_compiling" = yes; then
30496 ac_cv_func_mmap_file=no
30498 cat >conftest.$ac_ext <<_ACEOF
30502 cat confdefs.h >>conftest.$ac_ext
30503 cat >>conftest.$ac_ext <<_ACEOF
30504 /* end confdefs.h. */
30506 #include <sys/types.h>
30507 #include <sys/mman.h>
30515 fd = creat ("foo",0777);
30516 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30518 return (fd != (int) MAP_FAILED);
30523 rm -f conftest$ac_exeext
30524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30525 (eval $ac_link) 2>&5
30527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30530 (eval $ac_try) 2>&5
30532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533 (exit $ac_status); }; }; then
30534 ac_cv_func_mmap_file=yes
30536 echo "$as_me: program exited with status $ac_status" >&5
30537 echo "$as_me: failed program was:" >&5
30538 sed 's/^/| /' conftest.$ac_ext >&5
30540 ( exit $ac_status )
30541 ac_cv_func_mmap_file=no
30543 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30546 ac_cpp='$CPP $CPPFLAGS'
30547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30553 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30554 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30555 if test "$ac_cv_func_mmap_file" = yes; then
30557 cat >>confdefs.h <<\_ACEOF
30558 #define HAVE_MMAP_FILE
30565 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30566 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30567 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30568 echo $ECHO_N "(cached) $ECHO_C" >&6
30570 if test "$llvm_cv_os_type" = "Interix" ; then
30571 ac_cv_need_dev_zero_for_mmap=yes
30573 ac_cv_need_dev_zero_for_mmap=no
30577 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30578 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30579 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30581 cat >>confdefs.h <<\_ACEOF
30582 #define NEED_DEV_ZERO_FOR_MMAP 1
30586 echo "$as_me:$LINENO: checking for mprotect" >&5
30587 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30588 if test "${ac_cv_func_mprotect+set}" = set; then
30589 echo $ECHO_N "(cached) $ECHO_C" >&6
30591 cat >conftest.$ac_ext <<_ACEOF
30594 cat confdefs.h >>conftest.$ac_ext
30595 cat >>conftest.$ac_ext <<_ACEOF
30596 /* end confdefs.h. */
30597 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30599 #define mprotect innocuous_mprotect
30601 /* System header to define __stub macros and hopefully few prototypes,
30602 which can conflict with char mprotect (); below.
30603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30604 <limits.h> exists even on freestanding compilers. */
30607 # include <limits.h>
30609 # include <assert.h>
30614 /* Override any gcc2 internal prototype to avoid an error. */
30619 /* We use char because int might match the return type of a gcc2
30620 builtin and then its argument prototype would still apply. */
30622 /* The GNU C library defines this for functions which it implements
30623 to always fail with ENOSYS. Some functions are actually named
30624 something starting with __ and the normal name is an alias. */
30625 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30628 char (*f) () = mprotect;
30637 return f != mprotect;
30642 rm -f conftest.$ac_objext conftest$ac_exeext
30643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30644 (eval $ac_link) 2>conftest.er1
30646 grep -v '^ *+' conftest.er1 >conftest.err
30648 cat conftest.err >&5
30649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30650 (exit $ac_status); } &&
30651 { ac_try='test -z "$ac_c_werror_flag"
30652 || test ! -s conftest.err'
30653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30654 (eval $ac_try) 2>&5
30656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30657 (exit $ac_status); }; } &&
30658 { ac_try='test -s conftest$ac_exeext'
30659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30660 (eval $ac_try) 2>&5
30662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30663 (exit $ac_status); }; }; then
30664 ac_cv_func_mprotect=yes
30666 echo "$as_me: failed program was:" >&5
30667 sed 's/^/| /' conftest.$ac_ext >&5
30669 ac_cv_func_mprotect=no
30671 rm -f conftest.err conftest.$ac_objext \
30672 conftest$ac_exeext conftest.$ac_ext
30674 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30675 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30676 if test $ac_cv_func_mprotect = yes; then
30679 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30680 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30681 { (exit 1); exit 1; }; }
30685 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30687 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30688 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30690 if test "$ac_cv_func_mmap_file" = "no"
30692 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30693 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30697 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30698 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30699 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30700 echo $ECHO_N "(cached) $ECHO_C" >&6
30702 llvm_cv_llvmgcc_sanity="no"
30703 if test -x "$LLVMGCC" ; then
30704 cp /dev/null conftest.c
30705 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
30706 if test $? -eq 0 ; then
30707 llvm_cv_llvmgcc_sanity="yes"
30712 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30713 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30715 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30716 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30717 LLVMCC1=$llvmcc1path
30719 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30720 LLVMCC1PLUS=$llvmcc1pluspath
30722 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30723 LLVMGCCDIR=$llvmgccdir
30725 llvmgccversion=`"$LLVMGCC" -v 2>&1 | grep '^gcc version' | sed 's/^gcc version \([0-9.]*\).*/\1/'`
30726 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
30727 LLVMGCC_VERSION=$llvmgccversion
30729 LLVMGCC_MAJVERS=$llvmgccmajvers
30733 SHLIBEXT=$libltdl_cv_shlibext
30736 # Translate the various configuration directories and other basic
30737 # information into substitutions that will end up in Makefile.config.in
30738 # that these configured values can be used by the makefiles
30739 eval LLVM_PREFIX="${prefix}";
30740 eval LLVM_BINDIR="${prefix}/bin";
30741 eval LLVM_LIBDIR="${prefix}/lib";
30742 eval LLVM_DATADIR="${prefix}/share/llvm";
30743 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30744 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30745 eval LLVM_INCLUDEDIR="${prefix}/include";
30746 eval LLVM_INFODIR="${prefix}/info";
30747 eval LLVM_MANDIR="${prefix}/man";
30748 LLVM_CONFIGTIME=`date`
30760 # Place the various directores into the config.h file as #defines so that we
30761 # can know about the installation paths within LLVM.
30763 cat >>confdefs.h <<_ACEOF
30764 #define LLVM_PREFIX "$LLVM_PREFIX"
30768 cat >>confdefs.h <<_ACEOF
30769 #define LLVM_BINDIR "$LLVM_BINDIR"
30773 cat >>confdefs.h <<_ACEOF
30774 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30778 cat >>confdefs.h <<_ACEOF
30779 #define LLVM_DATADIR "$LLVM_DATADIR"
30783 cat >>confdefs.h <<_ACEOF
30784 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30788 cat >>confdefs.h <<_ACEOF
30789 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30793 cat >>confdefs.h <<_ACEOF
30794 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30798 cat >>confdefs.h <<_ACEOF
30799 #define LLVM_INFODIR "$LLVM_INFODIR"
30803 cat >>confdefs.h <<_ACEOF
30804 #define LLVM_MANDIR "$LLVM_MANDIR"
30808 cat >>confdefs.h <<_ACEOF
30809 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30814 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30816 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30818 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30820 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30822 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30825 ac_config_files="$ac_config_files Makefile.config"
30828 ac_config_files="$ac_config_files docs/doxygen.cfg"
30831 ac_config_files="$ac_config_files utils/llvm-config/llvm-config.in"
30834 ac_config_commands="$ac_config_commands setup"
30836 ac_config_commands="$ac_config_commands Makefile"
30839 ac_config_commands="$ac_config_commands Makefile.common"
30842 ac_config_commands="$ac_config_commands examples/Makefile"
30845 ac_config_commands="$ac_config_commands lib/Makefile"
30848 ac_config_commands="$ac_config_commands runtime/Makefile"
30851 ac_config_commands="$ac_config_commands test/Makefile"
30854 ac_config_commands="$ac_config_commands test/Makefile.tests"
30857 ac_config_commands="$ac_config_commands tools/Makefile"
30860 ac_config_commands="$ac_config_commands utils/Makefile"
30863 ac_config_commands="$ac_config_commands projects/Makefile"
30867 cat >confcache <<\_ACEOF
30868 # This file is a shell script that caches the results of configure
30869 # tests run on this system so they can be shared between configure
30870 # scripts and configure runs, see configure's option --config-cache.
30871 # It is not useful on other systems. If it contains results you don't
30872 # want to keep, you may remove or edit it.
30874 # config.status only pays attention to the cache file if you give it
30875 # the --recheck option to rerun configure.
30877 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30878 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30879 # following values.
30883 # The following way of writing the cache mishandles newlines in values,
30884 # but we know of no workaround that is simple, portable, and efficient.
30885 # So, don't put newlines in cache variables' values.
30886 # Ultrix sh set writes to stderr and can't be redirected directly,
30887 # and sets the high bit in the cache file unless we assign to the vars.
30890 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30892 # `set' does not quote correctly, so add quotes (double-quote
30893 # substitution turns \\\\ into \\, and sed turns \\ into \).
30896 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30899 # `set' quotes correctly as required by POSIX, so do not add quotes.
30901 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30908 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30910 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30912 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30913 if test -w $cache_file; then
30914 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30915 cat confcache >$cache_file
30917 echo "not updating unwritable cache $cache_file"
30922 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30923 # Let make expand exec_prefix.
30924 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30926 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30927 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30928 # trailing colons and then remove the whole line if VPATH becomes empty
30929 # (actually we leave an empty line to preserve line numbers).
30930 if test "x$srcdir" = x.; then
30931 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30932 s/:*\$(srcdir):*/:/;
30933 s/:*\${srcdir}:*/:/;
30935 s/^\([^=]*=[ ]*\):*/\1/;
30941 DEFS=-DHAVE_CONFIG_H
30945 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30946 # 1. Remove the extension, and $U if already installed.
30947 ac_i=`echo "$ac_i" |
30948 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30950 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30951 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30953 LIBOBJS=$ac_libobjs
30955 LTLIBOBJS=$ac_ltlibobjs
30958 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30959 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30960 Usually this means the macro was only invoked conditionally." >&5
30961 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30962 Usually this means the macro was only invoked conditionally." >&2;}
30963 { (exit 1); exit 1; }; }
30965 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30966 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30967 Usually this means the macro was only invoked conditionally." >&5
30968 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30969 Usually this means the macro was only invoked conditionally." >&2;}
30970 { (exit 1); exit 1; }; }
30973 : ${CONFIG_STATUS=./config.status}
30974 ac_clean_files_save=$ac_clean_files
30975 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30976 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30977 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30978 cat >$CONFIG_STATUS <<_ACEOF
30980 # Generated by $as_me.
30981 # Run this file to recreate the current configuration.
30982 # Compiler output produced by configure, useful for debugging
30983 # configure, is in config.log if it exists.
30986 ac_cs_recheck=false
30988 SHELL=\${CONFIG_SHELL-$SHELL}
30991 cat >>$CONFIG_STATUS <<\_ACEOF
30992 ## --------------------- ##
30993 ## M4sh Initialization. ##
30994 ## --------------------- ##
30996 # Be Bourne compatible
30997 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31000 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31001 # is contrary to our usage. Disable this feature.
31002 alias -g '${1+"$@"}'='"$@"'
31003 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31006 DUALCASE=1; export DUALCASE # for MKS sh
31008 # Support unset when possible.
31009 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31016 # Work around bugs in pre-3.0 UWIN ksh.
31017 $as_unset ENV MAIL MAILPATH
31024 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31025 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31026 LC_TELEPHONE LC_TIME
31028 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31029 eval $as_var=C; export $as_var
31035 # Required to use basename.
31036 if expr a : '\(a\)' >/dev/null 2>&1; then
31042 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31043 as_basename=basename
31049 # Name of the executable.
31050 as_me=`$as_basename "$0" ||
31051 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31052 X"$0" : 'X\(//\)$' \| \
31053 X"$0" : 'X\(/\)$' \| \
31054 . : '\(.\)' 2>/dev/null ||
31056 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31057 /^X\/\(\/\/\)$/{ s//\1/; q; }
31058 /^X\/\(\/\).*/{ s//\1/; q; }
31062 # PATH needs CR, and LINENO needs CR and PATH.
31063 # Avoid depending upon Character Ranges.
31064 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31065 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31066 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31067 as_cr_digits='0123456789'
31068 as_cr_alnum=$as_cr_Letters$as_cr_digits
31070 # The user is always right.
31071 if test "${PATH_SEPARATOR+set}" != set; then
31072 echo "#! /bin/sh" >conf$$.sh
31073 echo "exit 0" >>conf$$.sh
31075 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31084 as_lineno_1=$LINENO
31085 as_lineno_2=$LINENO
31086 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31087 test "x$as_lineno_1" != "x$as_lineno_2" &&
31088 test "x$as_lineno_3" = "x$as_lineno_2" || {
31089 # Find who we are. Look in the path if we contain no path at all
31092 *[\\/]* ) as_myself=$0 ;;
31093 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31094 for as_dir in $PATH
31097 test -z "$as_dir" && as_dir=.
31098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31103 # We did not find ourselves, most probably we were run as `sh COMMAND'
31104 # in which case we are not to be found in the path.
31105 if test "x$as_myself" = x; then
31108 if test ! -f "$as_myself"; then
31109 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31110 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31111 { (exit 1); exit 1; }; }
31113 case $CONFIG_SHELL in
31115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31116 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31119 test -z "$as_dir" && as_dir=.
31120 for as_base in sh bash ksh sh5; do
31123 if ("$as_dir/$as_base" -c '
31124 as_lineno_1=$LINENO
31125 as_lineno_2=$LINENO
31126 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31127 test "x$as_lineno_1" != "x$as_lineno_2" &&
31128 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
31129 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31130 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31131 CONFIG_SHELL=$as_dir/$as_base
31132 export CONFIG_SHELL
31133 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31141 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31142 # uniformly replaced by the line number. The first 'sed' inserts a
31143 # line-number line before each line; the second 'sed' does the real
31144 # work. The second script uses 'N' to pair each line-number line
31145 # with the numbered line, and appends trailing '-' during
31146 # substitution so that $LINENO is not a special case at line end.
31147 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31148 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31149 sed '=' <$as_myself |
31154 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31157 s,^['$as_cr_digits']*\n,,
31158 ' >$as_me.lineno &&
31159 chmod +x $as_me.lineno ||
31160 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31161 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31162 { (exit 1); exit 1; }; }
31164 # Don't try to exec as it changes $[0], causing all sort of problems
31165 # (the dirname of $[0] is not the place where we might find the
31166 # original and so on. Autoconf is especially sensible to this).
31168 # Exit status is that of the last command.
31173 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31174 *c*,-n*) ECHO_N= ECHO_C='
31176 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31177 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31180 if expr a : '\(a\)' >/dev/null 2>&1; then
31186 rm -f conf$$ conf$$.exe conf$$.file
31188 if ln -s conf$$.file conf$$ 2>/dev/null; then
31189 # We could just check for DJGPP; but this test a) works b) is more generic
31190 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31191 if test -f conf$$.exe; then
31192 # Don't use ln at all; we don't have any links
31197 elif ln conf$$.file conf$$ 2>/dev/null; then
31202 rm -f conf$$ conf$$.exe conf$$.file
31204 if mkdir -p . 2>/dev/null; then
31207 test -d ./-p && rmdir ./-p
31211 as_executable_p="test -f"
31213 # Sed expression to map a string onto a valid CPP name.
31214 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31216 # Sed expression to map a string onto a valid variable name.
31217 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31221 # We need space, tab and new line, in precisely that order.
31231 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31232 # report actual input values of CONFIG_FILES etc. instead of their
31233 # values after options handling. Logging --version etc. is OK.
31237 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31238 ## Running $as_me. ##
31243 This file was extended by llvm $as_me 1.7, which was
31244 generated by GNU Autoconf 2.59. Invocation command line was
31246 CONFIG_FILES = $CONFIG_FILES
31247 CONFIG_HEADERS = $CONFIG_HEADERS
31248 CONFIG_LINKS = $CONFIG_LINKS
31249 CONFIG_COMMANDS = $CONFIG_COMMANDS
31253 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31257 # Files that config.status was made for.
31258 if test -n "$ac_config_files"; then
31259 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31262 if test -n "$ac_config_headers"; then
31263 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31266 if test -n "$ac_config_links"; then
31267 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31270 if test -n "$ac_config_commands"; then
31271 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31274 cat >>$CONFIG_STATUS <<\_ACEOF
31277 \`$as_me' instantiates files from templates according to the
31278 current configuration.
31280 Usage: $0 [OPTIONS] [FILE]...
31282 -h, --help print this help, then exit
31283 -V, --version print version number, then exit
31284 -q, --quiet do not print progress messages
31285 -d, --debug don't remove temporary files
31286 --recheck update $as_me by reconfiguring in the same conditions
31287 --file=FILE[:TEMPLATE]
31288 instantiate the configuration file FILE
31289 --header=FILE[:TEMPLATE]
31290 instantiate the configuration header FILE
31292 Configuration files:
31295 Configuration headers:
31298 Configuration commands:
31301 Report bugs to <bug-autoconf@gnu.org>."
31304 cat >>$CONFIG_STATUS <<_ACEOF
31306 llvm config.status 1.7
31307 configured by $0, generated by GNU Autoconf 2.59,
31308 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31310 Copyright (C) 2003 Free Software Foundation, Inc.
31311 This config.status script is free software; the Free Software Foundation
31312 gives unlimited permission to copy, distribute and modify it."
31317 cat >>$CONFIG_STATUS <<\_ACEOF
31318 # If no file are specified by the user, then we need to provide default
31319 # value. By we need to know if files were specified by the user.
31325 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31326 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31334 *) # This is not an option, so the user has probably given explicit
31337 ac_need_defaults=false;;
31341 # Handling of the options.
31343 cat >>$CONFIG_STATUS <<\_ACEOF
31344 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31346 --version | --vers* | -V )
31347 echo "$ac_cs_version"; exit 0 ;;
31349 # Conflict between --help and --header
31350 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31351 Try \`$0 --help' for more information." >&5
31352 echo "$as_me: error: ambiguous option: $1
31353 Try \`$0 --help' for more information." >&2;}
31354 { (exit 1); exit 1; }; };;
31355 --help | --hel | -h )
31356 echo "$ac_cs_usage"; exit 0 ;;
31357 --debug | --d* | -d )
31359 --file | --fil | --fi | --f )
31361 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31362 ac_need_defaults=false;;
31363 --header | --heade | --head | --hea )
31365 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31366 ac_need_defaults=false;;
31367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31368 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31371 # This is an error.
31372 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31373 Try \`$0 --help' for more information." >&5
31374 echo "$as_me: error: unrecognized option: $1
31375 Try \`$0 --help' for more information." >&2;}
31376 { (exit 1); exit 1; }; } ;;
31378 *) ac_config_targets="$ac_config_targets $1" ;;
31384 ac_configure_extra_args=
31386 if $ac_cs_silent; then
31388 ac_configure_extra_args="$ac_configure_extra_args --silent"
31392 cat >>$CONFIG_STATUS <<_ACEOF
31393 if \$ac_cs_recheck; then
31394 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31395 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31400 cat >>$CONFIG_STATUS <<_ACEOF
31402 # INIT-COMMANDS section.
31405 llvm_src="${srcdir}"
31411 cat >>$CONFIG_STATUS <<\_ACEOF
31412 for ac_config_target in $ac_config_targets
31414 case "$ac_config_target" in
31415 # Handling of arguments.
31416 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31417 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31418 "utils/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES utils/llvm-config/llvm-config.in" ;;
31419 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31420 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31421 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31422 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31423 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31424 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31425 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31426 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31427 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31428 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31429 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31430 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31431 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31432 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31433 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31434 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31435 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31436 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31437 { (exit 1); exit 1; }; };;
31441 # If the user did not use the arguments to specify the items to instantiate,
31442 # then the envvar interface is used. Set only those that are not.
31443 # We use the long form for the default assignment because of an extremely
31444 # bizarre bug on SunOS 4.1.3.
31445 if $ac_need_defaults; then
31446 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31447 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31448 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31451 # Have a temporary directory for convenience. Make it in the build tree
31452 # simply because there is no reason to put it here, and in addition,
31453 # creating and moving files from /tmp can sometimes cause problems.
31454 # Create a temporary directory, and hook for its removal unless debugging.
31457 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31458 trap '{ (exit 1); exit 1; }' 1 2 13 15
31461 # Create a (secure) tmp directory for tmp files.
31464 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31465 test -n "$tmp" && test -d "$tmp"
31468 tmp=./confstat$$-$RANDOM
31469 (umask 077 && mkdir $tmp)
31472 echo "$me: cannot create a temporary directory in ." >&2
31473 { (exit 1); exit 1; }
31478 cat >>$CONFIG_STATUS <<_ACEOF
31481 # CONFIG_FILES section.
31484 # No need to generate the scripts if there are no CONFIG_FILES.
31485 # This happens for instance when ./config.status config.h
31486 if test -n "\$CONFIG_FILES"; then
31487 # Protect against being on the right side of a sed subst in config.status.
31488 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31489 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31490 s,@SHELL@,$SHELL,;t t
31491 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31492 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31493 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31494 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31495 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31496 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31497 s,@exec_prefix@,$exec_prefix,;t t
31498 s,@prefix@,$prefix,;t t
31499 s,@program_transform_name@,$program_transform_name,;t t
31500 s,@bindir@,$bindir,;t t
31501 s,@sbindir@,$sbindir,;t t
31502 s,@libexecdir@,$libexecdir,;t t
31503 s,@datadir@,$datadir,;t t
31504 s,@sysconfdir@,$sysconfdir,;t t
31505 s,@sharedstatedir@,$sharedstatedir,;t t
31506 s,@localstatedir@,$localstatedir,;t t
31507 s,@libdir@,$libdir,;t t
31508 s,@includedir@,$includedir,;t t
31509 s,@oldincludedir@,$oldincludedir,;t t
31510 s,@infodir@,$infodir,;t t
31511 s,@mandir@,$mandir,;t t
31512 s,@build_alias@,$build_alias,;t t
31513 s,@host_alias@,$host_alias,;t t
31514 s,@target_alias@,$target_alias,;t t
31515 s,@DEFS@,$DEFS,;t t
31516 s,@ECHO_C@,$ECHO_C,;t t
31517 s,@ECHO_N@,$ECHO_N,;t t
31518 s,@ECHO_T@,$ECHO_T,;t t
31519 s,@LIBS@,$LIBS,;t t
31520 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31521 s,@subdirs@,$subdirs,;t t
31522 s,@build@,$build,;t t
31523 s,@build_cpu@,$build_cpu,;t t
31524 s,@build_vendor@,$build_vendor,;t t
31525 s,@build_os@,$build_os,;t t
31526 s,@host@,$host,;t t
31527 s,@host_cpu@,$host_cpu,;t t
31528 s,@host_vendor@,$host_vendor,;t t
31529 s,@host_os@,$host_os,;t t
31530 s,@target@,$target,;t t
31531 s,@target_cpu@,$target_cpu,;t t
31532 s,@target_vendor@,$target_vendor,;t t
31533 s,@target_os@,$target_os,;t t
31535 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31536 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31537 s,@ARCH@,$ARCH,;t t
31538 s,@ENDIAN@,$ENDIAN,;t t
31540 s,@CFLAGS@,$CFLAGS,;t t
31541 s,@LDFLAGS@,$LDFLAGS,;t t
31542 s,@CPPFLAGS@,$CPPFLAGS,;t t
31543 s,@ac_ct_CC@,$ac_ct_CC,;t t
31544 s,@EXEEXT@,$EXEEXT,;t t
31545 s,@OBJEXT@,$OBJEXT,;t t
31546 s,@CVSBUILD@,$CVSBUILD,;t t
31547 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31548 s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
31549 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31551 s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
31552 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31553 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31554 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31557 s,@CXXFLAGS@,$CXXFLAGS,;t t
31558 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31560 s,@LEXLIB@,$LEXLIB,;t t
31561 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31562 s,@FLEX@,$FLEX,;t t
31563 s,@YACC@,$YACC,;t t
31564 s,@BISON@,$BISON,;t t
31565 s,@ifGNUmake@,$ifGNUmake,;t t
31566 s,@LN_S@,$LN_S,;t t
31569 s,@DATE@,$DATE,;t t
31570 s,@FIND@,$FIND,;t t
31571 s,@GREP@,$GREP,;t t
31572 s,@MKDIR@,$MKDIR,;t t
31574 s,@RANLIB@,$RANLIB,;t t
31575 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31579 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31581 s,@PERL@,$PERL,;t t
31582 s,@HAVE_PERL@,$HAVE_PERL,;t t
31583 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31584 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31585 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31586 s,@BZIP2@,$BZIP2,;t t
31588 s,@DOXYGEN@,$DOXYGEN,;t t
31589 s,@ETAGS@,$ETAGS,;t t
31590 s,@GROFF@,$GROFF,;t t
31591 s,@GZIP@,$GZIP,;t t
31592 s,@POD2HTML@,$POD2HTML,;t t
31593 s,@POD2MAN@,$POD2MAN,;t t
31594 s,@RUNTEST@,$RUNTEST,;t t
31595 s,@TCLSH@,$TCLSH,;t t
31597 s,@EGREP@,$EGREP,;t t
31598 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31599 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31600 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31601 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31602 s,@LIBADD_DL@,$LIBADD_DL,;t t
31603 s,@ECHO@,$ECHO,;t t
31605 s,@ac_ct_AR@,$ac_ct_AR,;t t
31606 s,@STRIP@,$STRIP,;t t
31607 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31608 s,@CXXCPP@,$CXXCPP,;t t
31610 s,@FFLAGS@,$FFLAGS,;t t
31611 s,@ac_ct_F77@,$ac_ct_F77,;t t
31612 s,@LIBTOOL@,$LIBTOOL,;t t
31613 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31614 s,@LLVMGCC@,$LLVMGCC,;t t
31615 s,@LLVMGXX@,$LLVMGXX,;t t
31616 s,@ALLOCA@,$ALLOCA,;t t
31617 s,@MMAP_FILE@,$MMAP_FILE,;t t
31618 s,@LLVMCC1@,$LLVMCC1,;t t
31619 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31620 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31621 s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
31622 s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
31623 s,@SHLIBEXT@,$SHLIBEXT,;t t
31624 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31625 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31626 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31627 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31628 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31629 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31630 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31631 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31632 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31633 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31634 s,@LIBOBJS@,$LIBOBJS,;t t
31635 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31640 cat >>$CONFIG_STATUS <<\_ACEOF
31641 # Split the substitutions into bite-sized pieces for seds with
31642 # small command number limits, like on Digital OSF/1 and HP-UX.
31643 ac_max_sed_lines=48
31644 ac_sed_frag=1 # Number of current file.
31645 ac_beg=1 # First line for current file.
31646 ac_end=$ac_max_sed_lines # Line after last line for current file.
31649 while $ac_more_lines; do
31650 if test $ac_beg -gt 1; then
31651 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31653 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31655 if test ! -s $tmp/subs.frag; then
31656 ac_more_lines=false
31658 # The purpose of the label and of the branching condition is to
31659 # speed up the sed processing (if there are no `@' at all, there
31660 # is no need to browse any of the substitutions).
31661 # These are the two extra sed commands mentioned above.
31663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31664 if test -z "$ac_sed_cmds"; then
31665 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31667 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31669 ac_sed_frag=`expr $ac_sed_frag + 1`
31671 ac_end=`expr $ac_end + $ac_max_sed_lines`
31674 if test -z "$ac_sed_cmds"; then
31677 fi # test -n "$CONFIG_FILES"
31680 cat >>$CONFIG_STATUS <<\_ACEOF
31681 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31682 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31684 - | *:- | *:-:* ) # input from stdin
31686 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31687 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31688 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31689 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31690 * ) ac_file_in=$ac_file.in ;;
31693 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31694 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31695 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31696 X"$ac_file" : 'X\(//\)[^/]' \| \
31697 X"$ac_file" : 'X\(//\)$' \| \
31698 X"$ac_file" : 'X\(/\)' \| \
31699 . : '\(.\)' 2>/dev/null ||
31701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31703 /^X\(\/\/\)$/{ s//\1/; q; }
31704 /^X\(\/\).*/{ s//\1/; q; }
31706 { if $as_mkdir_p; then
31711 while test ! -d "$as_dir"; do
31712 as_dirs="$as_dir $as_dirs"
31713 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31715 X"$as_dir" : 'X\(//\)[^/]' \| \
31716 X"$as_dir" : 'X\(//\)$' \| \
31717 X"$as_dir" : 'X\(/\)' \| \
31718 . : '\(.\)' 2>/dev/null ||
31720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31722 /^X\(\/\/\)$/{ s//\1/; q; }
31723 /^X\(\/\).*/{ s//\1/; q; }
31726 test ! -n "$as_dirs" || mkdir $as_dirs
31727 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31728 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31729 { (exit 1); exit 1; }; }; }
31733 if test "$ac_dir" != .; then
31734 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31735 # A "../" for each directory in $ac_dir_suffix.
31736 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31738 ac_dir_suffix= ac_top_builddir=
31742 .) # No --srcdir option. We are building in place.
31744 if test -z "$ac_top_builddir"; then
31747 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31749 [\\/]* | ?:[\\/]* ) # Absolute path.
31750 ac_srcdir=$srcdir$ac_dir_suffix;
31751 ac_top_srcdir=$srcdir ;;
31752 *) # Relative path.
31753 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31754 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31757 # Do not use `cd foo && pwd` to compute absolute paths, because
31758 # the directories may not exist.
31760 .) ac_abs_builddir="$ac_dir";;
31763 .) ac_abs_builddir=`pwd`;;
31764 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31765 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31768 case $ac_abs_builddir in
31769 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31771 case ${ac_top_builddir}. in
31772 .) ac_abs_top_builddir=$ac_abs_builddir;;
31773 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31774 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31777 case $ac_abs_builddir in
31778 .) ac_abs_srcdir=$ac_srcdir;;
31781 .) ac_abs_srcdir=$ac_abs_builddir;;
31782 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31783 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31786 case $ac_abs_builddir in
31787 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31789 case $ac_top_srcdir in
31790 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31791 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31792 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31798 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31799 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31802 if test x"$ac_file" != x-; then
31803 { echo "$as_me:$LINENO: creating $ac_file" >&5
31804 echo "$as_me: creating $ac_file" >&6;}
31807 # Let's still pretend it is `configure' which instantiates (i.e., don't
31808 # use $as_me), people would be surprised to read:
31809 # /* config.h. Generated by config.status. */
31810 if test x"$ac_file" = x-; then
31813 configure_input="$ac_file. "
31815 configure_input=$configure_input"Generated from `echo $ac_file_in |
31816 sed 's,.*/,,'` by configure."
31818 # First look for the input files in the build tree, otherwise in the
31820 ac_file_inputs=`IFS=:
31821 for f in $ac_file_in; do
31823 -) echo $tmp/stdin ;;
31825 # Absolute (can't be DOS-style, as IFS=:)
31826 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31827 echo "$as_me: error: cannot find input file: $f" >&2;}
31828 { (exit 1); exit 1; }; }
31831 if test -f "$f"; then
31834 elif test -f "$srcdir/$f"; then
31839 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31840 echo "$as_me: error: cannot find input file: $f" >&2;}
31841 { (exit 1); exit 1; }; }
31844 done` || { (exit 1); exit 1; }
31846 cat >>$CONFIG_STATUS <<_ACEOF
31850 cat >>$CONFIG_STATUS <<\_ACEOF
31852 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31853 s,@configure_input@,$configure_input,;t t
31854 s,@srcdir@,$ac_srcdir,;t t
31855 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31856 s,@top_srcdir@,$ac_top_srcdir,;t t
31857 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31858 s,@builddir@,$ac_builddir,;t t
31859 s,@abs_builddir@,$ac_abs_builddir,;t t
31860 s,@top_builddir@,$ac_top_builddir,;t t
31861 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31862 s,@INSTALL@,$ac_INSTALL,;t t
31863 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31865 if test x"$ac_file" != x-; then
31866 mv $tmp/out $ac_file
31874 cat >>$CONFIG_STATUS <<\_ACEOF
31877 # CONFIG_HEADER section.
31880 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31881 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31883 # ac_d sets the value in "#define NAME VALUE" lines.
31884 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31885 ac_dB='[ ].*$,\1#\2'
31888 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31889 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31890 ac_uB='$,\1#\2define\3'
31894 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31895 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31897 - | *:- | *:-:* ) # input from stdin
31899 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31900 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31901 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31902 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31903 * ) ac_file_in=$ac_file.in ;;
31906 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31907 echo "$as_me: creating $ac_file" >&6;}
31909 # First look for the input files in the build tree, otherwise in the
31911 ac_file_inputs=`IFS=:
31912 for f in $ac_file_in; do
31914 -) echo $tmp/stdin ;;
31916 # Absolute (can't be DOS-style, as IFS=:)
31917 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31918 echo "$as_me: error: cannot find input file: $f" >&2;}
31919 { (exit 1); exit 1; }; }
31920 # Do quote $f, to prevent DOS paths from being IFS'd.
31923 if test -f "$f"; then
31926 elif test -f "$srcdir/$f"; then
31931 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31932 echo "$as_me: error: cannot find input file: $f" >&2;}
31933 { (exit 1); exit 1; }; }
31936 done` || { (exit 1); exit 1; }
31937 # Remove the trailing spaces.
31938 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31942 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31943 # `conftest.undefs', that substitutes the proper values into
31944 # config.h.in to produce config.h. The first handles `#define'
31945 # templates, and the second `#undef' templates.
31946 # And first: Protect against being on the right side of a sed subst in
31947 # config.status. Protect against being in an unquoted here document
31948 # in config.status.
31949 rm -f conftest.defines conftest.undefs
31950 # Using a here document instead of a string reduces the quoting nightmare.
31951 # Putting comments in sed scripts is not portable.
31953 # `end' is used to avoid that the second main sed command (meant for
31954 # 0-ary CPP macros) applies to n-ary macro definitions.
31955 # See the Autoconf documentation for `clear'.
31956 cat >confdef2sed.sed <<\_ACEOF
31961 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31963 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31966 # If some macros were called several times there might be several times
31967 # the same #defines, which is useless. Nevertheless, we may not want to
31968 # sort them, since we want the *last* AC-DEFINE to be honored.
31969 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31970 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31971 rm -f confdef2sed.sed
31973 # This sed command replaces #undef with comments. This is necessary, for
31974 # example, in the case of _POSIX_SOURCE, which is predefined and required
31975 # on some systems where configure will not decide to define it.
31976 cat >>conftest.undefs <<\_ACEOF
31977 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31980 # Break up conftest.defines because some shells have a limit on the size
31981 # of here documents, and old seds have small limits too (100 cmds).
31982 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31983 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31984 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31985 echo ' :' >>$CONFIG_STATUS
31986 rm -f conftest.tail
31987 while grep . conftest.defines >/dev/null
31989 # Write a limited-size here document to $tmp/defines.sed.
31990 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31991 # Speed up: don't consider the non `#define' lines.
31992 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31993 # Work around the forget-to-reset-the-flag bug.
31994 echo 't clr' >>$CONFIG_STATUS
31995 echo ': clr' >>$CONFIG_STATUS
31996 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31998 sed -f $tmp/defines.sed $tmp/in >$tmp/out
32000 mv $tmp/out $tmp/in
32002 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32003 rm -f conftest.defines
32004 mv conftest.tail conftest.defines
32006 rm -f conftest.defines
32007 echo ' fi # grep' >>$CONFIG_STATUS
32008 echo >>$CONFIG_STATUS
32010 # Break up conftest.undefs because some shells have a limit on the size
32011 # of here documents, and old seds have small limits too (100 cmds).
32012 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
32013 rm -f conftest.tail
32014 while grep . conftest.undefs >/dev/null
32016 # Write a limited-size here document to $tmp/undefs.sed.
32017 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32018 # Speed up: don't consider the non `#undef'
32019 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
32020 # Work around the forget-to-reset-the-flag bug.
32021 echo 't clr' >>$CONFIG_STATUS
32022 echo ': clr' >>$CONFIG_STATUS
32023 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32025 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32027 mv $tmp/out $tmp/in
32029 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32030 rm -f conftest.undefs
32031 mv conftest.tail conftest.undefs
32033 rm -f conftest.undefs
32035 cat >>$CONFIG_STATUS <<\_ACEOF
32036 # Let's still pretend it is `configure' which instantiates (i.e., don't
32037 # use $as_me), people would be surprised to read:
32038 # /* config.h. Generated by config.status. */
32039 if test x"$ac_file" = x-; then
32040 echo "/* Generated by configure. */" >$tmp/config.h
32042 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32044 cat $tmp/in >>$tmp/config.h
32046 if test x"$ac_file" != x-; then
32047 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32048 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32049 echo "$as_me: $ac_file is unchanged" >&6;}
32051 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32052 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32053 X"$ac_file" : 'X\(//\)[^/]' \| \
32054 X"$ac_file" : 'X\(//\)$' \| \
32055 X"$ac_file" : 'X\(/\)' \| \
32056 . : '\(.\)' 2>/dev/null ||
32058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32060 /^X\(\/\/\)$/{ s//\1/; q; }
32061 /^X\(\/\).*/{ s//\1/; q; }
32063 { if $as_mkdir_p; then
32068 while test ! -d "$as_dir"; do
32069 as_dirs="$as_dir $as_dirs"
32070 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32071 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32072 X"$as_dir" : 'X\(//\)[^/]' \| \
32073 X"$as_dir" : 'X\(//\)$' \| \
32074 X"$as_dir" : 'X\(/\)' \| \
32075 . : '\(.\)' 2>/dev/null ||
32077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32079 /^X\(\/\/\)$/{ s//\1/; q; }
32080 /^X\(\/\).*/{ s//\1/; q; }
32083 test ! -n "$as_dirs" || mkdir $as_dirs
32084 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32085 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32086 { (exit 1); exit 1; }; }; }
32089 mv $tmp/config.h $ac_file
32093 rm -f $tmp/config.h
32097 cat >>$CONFIG_STATUS <<\_ACEOF
32100 # CONFIG_COMMANDS section.
32102 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32103 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32104 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32105 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32106 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32107 X"$ac_dest" : 'X\(//\)[^/]' \| \
32108 X"$ac_dest" : 'X\(//\)$' \| \
32109 X"$ac_dest" : 'X\(/\)' \| \
32110 . : '\(.\)' 2>/dev/null ||
32112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32114 /^X\(\/\/\)$/{ s//\1/; q; }
32115 /^X\(\/\).*/{ s//\1/; q; }
32117 { if $as_mkdir_p; then
32122 while test ! -d "$as_dir"; do
32123 as_dirs="$as_dir $as_dirs"
32124 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32125 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32126 X"$as_dir" : 'X\(//\)[^/]' \| \
32127 X"$as_dir" : 'X\(//\)$' \| \
32128 X"$as_dir" : 'X\(/\)' \| \
32129 . : '\(.\)' 2>/dev/null ||
32131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32132 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32133 /^X\(\/\/\)$/{ s//\1/; q; }
32134 /^X\(\/\).*/{ s//\1/; q; }
32137 test ! -n "$as_dirs" || mkdir $as_dirs
32138 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32139 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32140 { (exit 1); exit 1; }; }; }
32144 if test "$ac_dir" != .; then
32145 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32146 # A "../" for each directory in $ac_dir_suffix.
32147 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32149 ac_dir_suffix= ac_top_builddir=
32153 .) # No --srcdir option. We are building in place.
32155 if test -z "$ac_top_builddir"; then
32158 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32160 [\\/]* | ?:[\\/]* ) # Absolute path.
32161 ac_srcdir=$srcdir$ac_dir_suffix;
32162 ac_top_srcdir=$srcdir ;;
32163 *) # Relative path.
32164 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32165 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32168 # Do not use `cd foo && pwd` to compute absolute paths, because
32169 # the directories may not exist.
32171 .) ac_abs_builddir="$ac_dir";;
32174 .) ac_abs_builddir=`pwd`;;
32175 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32176 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32179 case $ac_abs_builddir in
32180 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32182 case ${ac_top_builddir}. in
32183 .) ac_abs_top_builddir=$ac_abs_builddir;;
32184 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32185 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32188 case $ac_abs_builddir in
32189 .) ac_abs_srcdir=$ac_srcdir;;
32192 .) ac_abs_srcdir=$ac_abs_builddir;;
32193 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32194 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32197 case $ac_abs_builddir in
32198 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32200 case $ac_top_srcdir in
32201 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32202 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32203 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32208 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32209 echo "$as_me: executing $ac_dest commands" >&6;}
32211 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32212 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32213 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32214 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32215 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32216 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32217 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32218 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32219 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32220 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32221 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32222 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32223 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32224 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32225 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32226 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32227 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32228 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32229 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32230 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32235 cat >>$CONFIG_STATUS <<\_ACEOF
32237 { (exit 0); exit 0; }
32239 chmod +x $CONFIG_STATUS
32240 ac_clean_files=$ac_clean_files_save
32243 # configure is writing to config.log, and then calls config.status.
32244 # config.status does its own redirection, appending to config.log.
32245 # Unfortunately, on DOS this fails, as config.log is still kept open
32246 # by configure, so config.status won't be able to write to it; its
32247 # output is simply discarded. So we exec the FD to /dev/null,
32248 # effectively closing config.log, so it can be properly (re)opened and
32249 # appended to by config.status. When coming back to configure, we
32250 # need to make the FD available again.
32251 if test "$no_create" != yes; then
32253 ac_config_status_args=
32254 test "$silent" = yes &&
32255 ac_config_status_args="$ac_config_status_args --quiet"
32257 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32259 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32260 # would make configure fail if this is the last instruction.
32261 $ac_cs_success || { (exit 1); exit 1; }
32265 # CONFIG_SUBDIRS section.
32267 if test "$no_recursion" != yes; then
32269 # Remove --cache-file and --srcdir arguments so they do not pile up.
32270 ac_sub_configure_args=
32272 for ac_arg in $ac_configure_args; do
32273 if test -n "$ac_prev"; then
32278 -cache-file | --cache-file | --cache-fil | --cache-fi \
32279 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32280 ac_prev=cache_file ;;
32281 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32282 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32285 --config-cache | -C)
32287 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32289 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32291 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32293 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32295 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32299 # Always prepend --prefix to ensure using the same prefix
32300 # in subdir configurations.
32301 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32304 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32306 # Do not complain, so a configure script can configure whichever
32307 # parts of a large source tree are present.
32308 test -d $srcdir/$ac_dir || continue
32310 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32311 echo "$as_me: configuring in $ac_dir" >&6;}
32312 { if $as_mkdir_p; then
32317 while test ! -d "$as_dir"; do
32318 as_dirs="$as_dir $as_dirs"
32319 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32321 X"$as_dir" : 'X\(//\)[^/]' \| \
32322 X"$as_dir" : 'X\(//\)$' \| \
32323 X"$as_dir" : 'X\(/\)' \| \
32324 . : '\(.\)' 2>/dev/null ||
32326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32327 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32328 /^X\(\/\/\)$/{ s//\1/; q; }
32329 /^X\(\/\).*/{ s//\1/; q; }
32332 test ! -n "$as_dirs" || mkdir $as_dirs
32333 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32334 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32335 { (exit 1); exit 1; }; }; }
32339 if test "$ac_dir" != .; then
32340 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32341 # A "../" for each directory in $ac_dir_suffix.
32342 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32344 ac_dir_suffix= ac_top_builddir=
32348 .) # No --srcdir option. We are building in place.
32350 if test -z "$ac_top_builddir"; then
32353 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32355 [\\/]* | ?:[\\/]* ) # Absolute path.
32356 ac_srcdir=$srcdir$ac_dir_suffix;
32357 ac_top_srcdir=$srcdir ;;
32358 *) # Relative path.
32359 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32360 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32363 # Do not use `cd foo && pwd` to compute absolute paths, because
32364 # the directories may not exist.
32366 .) ac_abs_builddir="$ac_dir";;
32369 .) ac_abs_builddir=`pwd`;;
32370 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32371 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32374 case $ac_abs_builddir in
32375 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32377 case ${ac_top_builddir}. in
32378 .) ac_abs_top_builddir=$ac_abs_builddir;;
32379 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32380 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32383 case $ac_abs_builddir in
32384 .) ac_abs_srcdir=$ac_srcdir;;
32387 .) ac_abs_srcdir=$ac_abs_builddir;;
32388 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32389 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32392 case $ac_abs_builddir in
32393 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32395 case $ac_top_srcdir in
32396 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32397 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32398 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32405 # Check for guested configure; otherwise get Cygnus style configure.
32406 if test -f $ac_srcdir/configure.gnu; then
32407 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32408 elif test -f $ac_srcdir/configure; then
32409 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32410 elif test -f $ac_srcdir/configure.in; then
32411 ac_sub_configure=$ac_configure
32413 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32414 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32418 # The recursion is here.
32419 if test -n "$ac_sub_configure"; then
32420 # Make the cache file name correct relative to the subdirectory.
32421 case $cache_file in
32422 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32423 *) # Relative path.
32424 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32427 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32428 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32429 # The eval makes quoting arguments work.
32430 eval $ac_sub_configure $ac_sub_configure_args \
32431 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32432 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32433 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32434 { (exit 1); exit 1; }; }
32442 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32443 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32444 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32445 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32446 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32447 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32448 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32449 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32450 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32451 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32452 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}