2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.7cvs.
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.7cvs'
429 PACKAGE_STRING='llvm 1.7cvs'
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 ENABLE_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.7cvs 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.7cvs:";;
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1039 --enable-debug-runtime
1040 --enable-jit Enable Just In Time Compiling (default is YES)
1041 --enable-doxygen Build doxygen documentation (default is NO)
1042 --enable-threads Use threads if available (default is YES)
1043 --enable-target Build specific host targets:
1044 all,host-only,{target-name} (default=all)
1045 --enable-ltdl-install install libltdl
1046 --enable-shared[=PKGS]
1047 build shared libraries [default=yes]
1048 --enable-static[=PKGS]
1049 build static libraries [default=yes]
1050 --enable-fast-install[=PKGS]
1051 optimize for fast installation [default=yes]
1052 --disable-libtool-lock avoid locking (might break parallel builds)
1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1057 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1059 --with-tclinclude directory where tcl headers are
1060 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1061 --with-pic try to use only PIC/non-PIC objects [default=use
1064 include additional configurations [automatic]
1066 Some influential environment variables:
1067 CC C compiler command
1068 CFLAGS C compiler flags
1069 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1070 nonstandard directory <lib dir>
1071 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072 headers in a nonstandard directory <include dir>
1074 CXX C++ compiler command
1075 CXXFLAGS C++ compiler flags
1076 CXXCPP C++ preprocessor
1077 F77 Fortran 77 compiler command
1078 FFLAGS Fortran 77 compiler flags
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1083 Report bugs to <llvmbugs@cs.uiuc.edu>.
1087 if test "$ac_init_help" = "recursive"; then
1088 # If there are subdirs, report their specific --help.
1090 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091 test -d $ac_dir || continue
1094 if test "$ac_dir" != .; then
1095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096 # A "../" for each directory in $ac_dir_suffix.
1097 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1099 ac_dir_suffix= ac_top_builddir=
1103 .) # No --srcdir option. We are building in place.
1105 if test -z "$ac_top_builddir"; then
1108 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1110 [\\/]* | ?:[\\/]* ) # Absolute path.
1111 ac_srcdir=$srcdir$ac_dir_suffix;
1112 ac_top_srcdir=$srcdir ;;
1114 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118 # Do not use `cd foo && pwd` to compute absolute paths, because
1119 # the directories may not exist.
1121 .) ac_abs_builddir="$ac_dir";;
1124 .) ac_abs_builddir=`pwd`;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1132 case ${ac_top_builddir}. in
1133 .) ac_abs_top_builddir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138 case $ac_abs_builddir in
1139 .) ac_abs_srcdir=$ac_srcdir;;
1142 .) ac_abs_srcdir=$ac_abs_builddir;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147 case $ac_abs_builddir in
1148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1150 case $ac_top_srcdir in
1151 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1158 # Check for guested configure; otherwise get Cygnus style configure.
1159 if test -f $ac_srcdir/configure.gnu; then
1161 $SHELL $ac_srcdir/configure.gnu --help=recursive
1162 elif test -f $ac_srcdir/configure; then
1164 $SHELL $ac_srcdir/configure --help=recursive
1165 elif test -f $ac_srcdir/configure.ac ||
1166 test -f $ac_srcdir/configure.in; then
1168 $ac_configure --help
1170 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1176 test -n "$ac_init_help" && exit 0
1177 if $ac_init_version; then
1179 llvm configure 1.7cvs
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.7cvs, 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
2984 # Check whether --enable-optimized or --disable-optimized was given.
2985 if test "${enable_optimized+set}" = set; then
2986 enableval="$enable_optimized"
2991 if test ${enableval} = "no" ; then
2995 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2999 # Check whether --enable-assertions or --disable-assertions was given.
3000 if test "${enable_assertions+set}" = set; then
3001 enableval="$enable_assertions"
3006 if test ${enableval} = "no" ; then
3010 ENABLE_ASSERTIONS=ENABLE_ASSERTIONS=1
3014 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3015 if test "${enable_debug_runtime+set}" = set; then
3016 enableval="$enable_debug_runtime"
3021 if test ${enableval} = "no" ; then
3025 DEBUG_RUNTIME=DEBUG_RUNTIME=1
3029 # Check whether --enable-jit or --disable-jit was given.
3030 if test "${enable_jit+set}" = set; then
3031 enableval="$enable_jit"
3036 if test ${enableval} = "no"
3041 case "$llvm_cv_target_arch" in
3042 x86) TARGET_HAS_JIT=1
3044 Sparc) TARGET_HAS_JIT=1
3046 PowerPC) TARGET_HAS_JIT=1
3048 x86_64) TARGET_HAS_JIT=0
3050 Alpha) TARGET_HAS_JIT=1
3052 IA64) TARGET_HAS_JIT=0
3059 # Check whether --enable-doxygen or --disable-doxygen was given.
3060 if test "${enable_doxygen+set}" = set; then
3061 enableval="$enable_doxygen"
3066 case "$enableval" in
3067 yes) ENABLE_DOXYGEN=1
3069 no) ENABLE_DOXYGEN=0
3071 default) ENABLE_DOXYGEN=0
3073 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3074 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3075 { (exit 1); exit 1; }; } ;;
3078 # Check whether --enable-threads or --disable-threads was given.
3079 if test "${enable_threads+set}" = set; then
3080 enableval="$enable_threads"
3085 case "$enableval" in
3086 yes) ENABLE_THREADS=1
3088 no) ENABLE_THREADS=0
3090 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3091 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3092 { (exit 1); exit 1; }; } ;;
3095 cat >>confdefs.h <<_ACEOF
3096 #define ENABLE_THREADS $ENABLE_THREADS
3101 # Check whether --enable-targets or --disable-targets was given.
3102 if test "${enable_targets+set}" = set; then
3103 enableval="$enable_targets"
3108 case "$enableval" in
3109 all) TARGETS_TO_BUILD="X86 Sparc SparcV9 PowerPC Alpha IA64" ;;
3111 case "$llvm_cv_target_arch" in
3112 x86) TARGETS_TO_BUILD="X86" ;;
3113 x86_64) TARGETS_TO_BUILD="X86" ;;
3114 Sparc) TARGETS_TO_BUILD="Sparc SparcV9" ;;
3115 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3116 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3117 IA64) TARGETS_TO_BUILD="IA64" ;;
3118 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3119 echo "$as_me: error: Can not set target to build" >&2;}
3120 { (exit 1); exit 1; }; } ;;
3123 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3125 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3126 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3127 sparc) TARGETS_TO_BUILD="Sparc SparcV9 $TARGETS_TO_BUILD" ;;
3128 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3129 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3130 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3131 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3132 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3133 { (exit 1); exit 1; }; } ;;
3138 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3139 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3143 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3144 if test "${with_llvmgccdir+set}" = set; then
3145 withval="$with_llvmgccdir"
3151 default) WITH_LLVMGCCDIR=default ;;
3152 /*) WITH_LLVMGCCDIR=$withval ;;
3153 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3154 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3155 { (exit 1); exit 1; }; } ;;
3161 ac_cpp='$CPP $CPPFLAGS'
3162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3165 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3166 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3167 # On Suns, sometimes $CPP names a directory.
3168 if test -n "$CPP" && test -d "$CPP"; then
3171 if test -z "$CPP"; then
3172 if test "${ac_cv_prog_CPP+set}" = set; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 # Double quotes because CPP needs to be expanded
3176 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3179 for ac_c_preproc_warn_flag in '' yes
3181 # Use a header file that comes with gcc, so configuring glibc
3182 # with a fresh cross-compiler works.
3183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3184 # <limits.h> exists even on freestanding compilers.
3185 # On the NeXT, cc -E runs the code through the compiler's parser,
3186 # not just through cpp. "Syntax error" is here to catch this case.
3187 cat >conftest.$ac_ext <<_ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h. */
3194 # include <limits.h>
3196 # include <assert.h>
3200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3203 grep -v '^ *+' conftest.er1 >conftest.err
3205 cat conftest.err >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } >/dev/null; then
3208 if test -s conftest.err; then
3209 ac_cpp_err=$ac_c_preproc_warn_flag
3210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3217 if test -z "$ac_cpp_err"; then
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3223 # Broken: fails on valid input.
3226 rm -f conftest.err conftest.$ac_ext
3228 # OK, works on sane cases. Now check whether non-existent headers
3229 # can be detected and how.
3230 cat >conftest.$ac_ext <<_ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3236 #include <ac_nonexistent.h>
3238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3241 grep -v '^ *+' conftest.er1 >conftest.err
3243 cat conftest.err >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } >/dev/null; then
3246 if test -s conftest.err; then
3247 ac_cpp_err=$ac_c_preproc_warn_flag
3248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3255 if test -z "$ac_cpp_err"; then
3256 # Broken: success on invalid input.
3259 echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3262 # Passes both tests.
3266 rm -f conftest.err conftest.$ac_ext
3269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3270 rm -f conftest.err conftest.$ac_ext
3271 if $ac_preproc_ok; then
3283 echo "$as_me:$LINENO: result: $CPP" >&5
3284 echo "${ECHO_T}$CPP" >&6
3286 for ac_c_preproc_warn_flag in '' yes
3288 # Use a header file that comes with gcc, so configuring glibc
3289 # with a fresh cross-compiler works.
3290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3291 # <limits.h> exists even on freestanding compilers.
3292 # On the NeXT, cc -E runs the code through the compiler's parser,
3293 # not just through cpp. "Syntax error" is here to catch this case.
3294 cat >conftest.$ac_ext <<_ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3301 # include <limits.h>
3303 # include <assert.h>
3307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3310 grep -v '^ *+' conftest.er1 >conftest.err
3312 cat conftest.err >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } >/dev/null; then
3315 if test -s conftest.err; then
3316 ac_cpp_err=$ac_c_preproc_warn_flag
3317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3324 if test -z "$ac_cpp_err"; then
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3330 # Broken: fails on valid input.
3333 rm -f conftest.err conftest.$ac_ext
3335 # OK, works on sane cases. Now check whether non-existent headers
3336 # can be detected and how.
3337 cat >conftest.$ac_ext <<_ACEOF
3340 cat confdefs.h >>conftest.$ac_ext
3341 cat >>conftest.$ac_ext <<_ACEOF
3342 /* end confdefs.h. */
3343 #include <ac_nonexistent.h>
3345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3348 grep -v '^ *+' conftest.er1 >conftest.err
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } >/dev/null; then
3353 if test -s conftest.err; then
3354 ac_cpp_err=$ac_c_preproc_warn_flag
3355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3362 if test -z "$ac_cpp_err"; then
3363 # Broken: success on invalid input.
3366 echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3369 # Passes both tests.
3373 rm -f conftest.err conftest.$ac_ext
3376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3377 rm -f conftest.err conftest.$ac_ext
3378 if $ac_preproc_ok; then
3381 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3382 See \`config.log' for more details." >&5
3383 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3384 See \`config.log' for more details." >&2;}
3385 { (exit 1); exit 1; }; }
3389 ac_cpp='$CPP $CPPFLAGS'
3390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 ac_cpp='$CPP $CPPFLAGS'
3396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399 if test -n "$ac_tool_prefix"; then
3402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3403 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3404 echo "$as_me:$LINENO: checking for $ac_word" >&5
3405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3406 if test "${ac_cv_prog_CC+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 if test -n "$CC"; then
3410 ac_cv_prog_CC="$CC" # Let the user override the test.
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 test -z "$as_dir" && as_dir=.
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3419 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 if test -n "$CC"; then
3430 echo "$as_me:$LINENO: result: $CC" >&5
3431 echo "${ECHO_T}$CC" >&6
3433 echo "$as_me:$LINENO: result: no" >&5
3434 echo "${ECHO_T}no" >&6
3437 test -n "$CC" && break
3440 if test -z "$CC"; then
3444 # Extract the first word of "$ac_prog", so it can be a program name with args.
3445 set dummy $ac_prog; ac_word=$2
3446 echo "$as_me:$LINENO: checking for $ac_word" >&5
3447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3448 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 if test -n "$ac_ct_CC"; then
3452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 test -z "$as_dir" && as_dir=.
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3461 ac_cv_prog_ac_ct_CC="$ac_prog"
3462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3471 if test -n "$ac_ct_CC"; then
3472 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3473 echo "${ECHO_T}$ac_ct_CC" >&6
3475 echo "$as_me:$LINENO: result: no" >&5
3476 echo "${ECHO_T}no" >&6
3479 test -n "$ac_ct_CC" && break
3486 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3487 See \`config.log' for more details." >&5
3488 echo "$as_me: error: no acceptable C compiler found in \$PATH
3489 See \`config.log' for more details." >&2;}
3490 { (exit 1); exit 1; }; }
3492 # Provide some information about the compiler.
3493 echo "$as_me:$LINENO:" \
3494 "checking for C compiler version" >&5
3495 ac_compiler=`set X $ac_compile; echo $2`
3496 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3497 (eval $ac_compiler --version </dev/null >&5) 2>&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }
3501 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3502 (eval $ac_compiler -v </dev/null >&5) 2>&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }
3506 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3507 (eval $ac_compiler -V </dev/null >&5) 2>&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }
3512 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3513 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3514 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 cat >conftest.$ac_ext <<_ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3535 rm -f conftest.$ac_objext
3536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3537 (eval $ac_compile) 2>conftest.er1
3539 grep -v '^ *+' conftest.er1 >conftest.err
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
3544 { ac_try='test -z "$ac_c_werror_flag"
3545 || test ! -s conftest.err'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; } &&
3551 { ac_try='test -s conftest.$ac_objext'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; }; then
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3565 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3568 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3569 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3570 GCC=`test $ac_compiler_gnu = yes && echo yes`
3571 ac_test_CFLAGS=${CFLAGS+set}
3572 ac_save_CFLAGS=$CFLAGS
3574 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3575 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3576 if test "${ac_cv_prog_cc_g+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 cat >conftest.$ac_ext <<_ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3594 rm -f conftest.$ac_objext
3595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3596 (eval $ac_compile) 2>conftest.er1
3598 grep -v '^ *+' conftest.er1 >conftest.err
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } &&
3603 { ac_try='test -z "$ac_c_werror_flag"
3604 || test ! -s conftest.err'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; } &&
3610 { ac_try='test -s conftest.$ac_objext'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; }; then
3618 echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3625 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3626 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3627 if test "$ac_test_CFLAGS" = set; then
3628 CFLAGS=$ac_save_CFLAGS
3629 elif test $ac_cv_prog_cc_g = yes; then
3630 if test "$GCC" = yes; then
3636 if test "$GCC" = yes; then
3642 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3643 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3644 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 ac_cv_prog_cc_stdc=no
3649 cat >conftest.$ac_ext <<_ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3657 #include <sys/types.h>
3658 #include <sys/stat.h>
3659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3660 struct buf { int x; };
3661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3662 static char *e (p, i)
3668 static char *f (char * (*g) (char **, int), char **p, ...)
3673 s = g (p, va_arg (v,int));
3678 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3679 function prototypes and stuff, but not '\xHH' hex character constants.
3680 These don't provoke an error unfortunately, instead are silently treated
3681 as 'x'. The following induces an error, until -std1 is added to get
3682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3683 array size at least. It's necessary to write '\x00'==0 to get something
3684 that's true only with -std1. */
3685 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3687 int test (int i, double x);
3688 struct s1 {int (*f) (int a);};
3689 struct s2 {int (*f) (double a);};
3690 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3696 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3701 # Don't try gcc -ansi; that turns off useful extensions and
3702 # breaks some systems' header files.
3703 # AIX -qlanglvl=ansi
3704 # Ultrix and OSF/1 -std1
3705 # HP-UX 10.20 and later -Ae
3706 # HP-UX older versions -Aa -D_HPUX_SOURCE
3707 # SVR4 -Xc -D__EXTENSIONS__
3708 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3710 CC="$ac_save_CC $ac_arg"
3711 rm -f conftest.$ac_objext
3712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3713 (eval $ac_compile) 2>conftest.er1
3715 grep -v '^ *+' conftest.er1 >conftest.err
3717 cat conftest.err >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } &&
3720 { ac_try='test -z "$ac_c_werror_flag"
3721 || test ! -s conftest.err'
3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; } &&
3727 { ac_try='test -s conftest.$ac_objext'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
3733 ac_cv_prog_cc_stdc=$ac_arg
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3740 rm -f conftest.err conftest.$ac_objext
3742 rm -f conftest.$ac_ext conftest.$ac_objext
3747 case "x$ac_cv_prog_cc_stdc" in
3749 echo "$as_me:$LINENO: result: none needed" >&5
3750 echo "${ECHO_T}none needed" >&6 ;;
3752 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3753 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3754 CC="$CC $ac_cv_prog_cc_stdc" ;;
3757 # Some people use a C++ compiler to compile C. Since we use `exit',
3758 # in C++ we need to declare it. In case someone uses the same compiler
3759 # for both compiling C and C++ we need to have the C++ compiler decide
3760 # the declaration of exit, since it's the most demanding environment.
3761 cat >conftest.$ac_ext <<_ACEOF
3766 rm -f conftest.$ac_objext
3767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3768 (eval $ac_compile) 2>conftest.er1
3770 grep -v '^ *+' conftest.er1 >conftest.err
3772 cat conftest.err >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } &&
3775 { ac_try='test -z "$ac_c_werror_flag"
3776 || test ! -s conftest.err'
3777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; } &&
3782 { ac_try='test -s conftest.$ac_objext'
3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; }; then
3788 for ac_declaration in \
3790 'extern "C" void std::exit (int) throw (); using std::exit;' \
3791 'extern "C" void std::exit (int); using std::exit;' \
3792 'extern "C" void exit (int) throw ();' \
3793 'extern "C" void exit (int);' \
3796 cat >conftest.$ac_ext <<_ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h. */
3812 rm -f conftest.$ac_objext
3813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3814 (eval $ac_compile) 2>conftest.er1
3816 grep -v '^ *+' conftest.er1 >conftest.err
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } &&
3821 { ac_try='test -z "$ac_c_werror_flag"
3822 || test ! -s conftest.err'
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; } &&
3828 { ac_try='test -s conftest.$ac_objext'
3829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; }; then
3836 echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3842 cat >conftest.$ac_ext <<_ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3857 rm -f conftest.$ac_objext
3858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3859 (eval $ac_compile) 2>conftest.er1
3861 grep -v '^ *+' conftest.er1 >conftest.err
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } &&
3866 { ac_try='test -z "$ac_c_werror_flag"
3867 || test ! -s conftest.err'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3888 if test -n "$ac_declaration"; then
3889 echo '#ifdef __cplusplus' >>confdefs.h
3890 echo $ac_declaration >>confdefs.h
3891 echo '#endif' >>confdefs.h
3895 echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3901 ac_cpp='$CPP $CPPFLAGS'
3902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3907 ac_cpp='$CXXCPP $CPPFLAGS'
3908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3911 if test -n "$ac_tool_prefix"; then
3912 for ac_prog in $CCC g++
3914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3916 echo "$as_me:$LINENO: checking for $ac_word" >&5
3917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3918 if test "${ac_cv_prog_CXX+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 if test -n "$CXX"; then
3922 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 test -z "$as_dir" && as_dir=.
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3931 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 if test -n "$CXX"; then
3942 echo "$as_me:$LINENO: result: $CXX" >&5
3943 echo "${ECHO_T}$CXX" >&6
3945 echo "$as_me:$LINENO: result: no" >&5
3946 echo "${ECHO_T}no" >&6
3949 test -n "$CXX" && break
3952 if test -z "$CXX"; then
3954 for ac_prog in $CCC g++
3956 # Extract the first word of "$ac_prog", so it can be a program name with args.
3957 set dummy $ac_prog; ac_word=$2
3958 echo "$as_me:$LINENO: checking for $ac_word" >&5
3959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3960 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 if test -n "$ac_ct_CXX"; then
3964 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 test -z "$as_dir" && as_dir=.
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3973 ac_cv_prog_ac_ct_CXX="$ac_prog"
3974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3983 if test -n "$ac_ct_CXX"; then
3984 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3985 echo "${ECHO_T}$ac_ct_CXX" >&6
3987 echo "$as_me:$LINENO: result: no" >&5
3988 echo "${ECHO_T}no" >&6
3991 test -n "$ac_ct_CXX" && break
3993 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3999 # Provide some information about the compiler.
4000 echo "$as_me:$LINENO:" \
4001 "checking for C++ compiler version" >&5
4002 ac_compiler=`set X $ac_compile; echo $2`
4003 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4004 (eval $ac_compiler --version </dev/null >&5) 2>&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }
4008 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4009 (eval $ac_compiler -v </dev/null >&5) 2>&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }
4013 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4014 (eval $ac_compiler -V </dev/null >&5) 2>&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }
4019 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4020 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4021 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 cat >conftest.$ac_ext <<_ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4042 rm -f conftest.$ac_objext
4043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4044 (eval $ac_compile) 2>conftest.er1
4046 grep -v '^ *+' conftest.er1 >conftest.err
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } &&
4051 { ac_try='test -z "$ac_cxx_werror_flag"
4052 || test ! -s conftest.err'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; } &&
4058 { ac_try='test -s conftest.$ac_objext'
4059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; }; then
4066 echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4072 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4075 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4076 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4077 GXX=`test $ac_compiler_gnu = yes && echo yes`
4078 ac_test_CXXFLAGS=${CXXFLAGS+set}
4079 ac_save_CXXFLAGS=$CXXFLAGS
4081 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4082 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4083 if test "${ac_cv_prog_cxx_g+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 cat >conftest.$ac_ext <<_ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4101 rm -f conftest.$ac_objext
4102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4103 (eval $ac_compile) 2>conftest.er1
4105 grep -v '^ *+' conftest.er1 >conftest.err
4107 cat conftest.err >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); } &&
4110 { ac_try='test -z "$ac_cxx_werror_flag"
4111 || test ! -s conftest.err'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; } &&
4117 { ac_try='test -s conftest.$ac_objext'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; }; then
4123 ac_cv_prog_cxx_g=yes
4125 echo "$as_me: failed program was:" >&5
4126 sed 's/^/| /' conftest.$ac_ext >&5
4130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4133 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4134 if test "$ac_test_CXXFLAGS" = set; then
4135 CXXFLAGS=$ac_save_CXXFLAGS
4136 elif test $ac_cv_prog_cxx_g = yes; then
4137 if test "$GXX" = yes; then
4143 if test "$GXX" = yes; then
4149 for ac_declaration in \
4151 'extern "C" void std::exit (int) throw (); using std::exit;' \
4152 'extern "C" void std::exit (int); using std::exit;' \
4153 'extern "C" void exit (int) throw ();' \
4154 'extern "C" void exit (int);' \
4157 cat >conftest.$ac_ext <<_ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h. */
4173 rm -f conftest.$ac_objext
4174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4175 (eval $ac_compile) 2>conftest.er1
4177 grep -v '^ *+' conftest.er1 >conftest.err
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } &&
4182 { ac_try='test -z "$ac_cxx_werror_flag"
4183 || test ! -s conftest.err'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest.$ac_objext'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4197 echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4203 cat >conftest.$ac_ext <<_ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4218 rm -f conftest.$ac_objext
4219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4220 (eval $ac_compile) 2>conftest.er1
4222 grep -v '^ *+' conftest.er1 >conftest.err
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
4227 { ac_try='test -z "$ac_cxx_werror_flag"
4228 || test ! -s conftest.err'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4249 if test -n "$ac_declaration"; then
4250 echo '#ifdef __cplusplus' >>confdefs.h
4251 echo $ac_declaration >>confdefs.h
4252 echo '#endif' >>confdefs.h
4256 ac_cpp='$CPP $CPPFLAGS'
4257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261 echo "$as_me:$LINENO: checking " >&5
4262 echo $ECHO_N "checking ... $ECHO_C" >&6
4263 if test "${ac_cv_has_flex+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 for ac_prog in flex lex
4268 # Extract the first word of "$ac_prog", so it can be a program name with args.
4269 set dummy $ac_prog; ac_word=$2
4270 echo "$as_me:$LINENO: checking for $ac_word" >&5
4271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4272 if test "${ac_cv_prog_LEX+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 if test -n "$LEX"; then
4276 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285 ac_cv_prog_LEX="$ac_prog"
4286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 if test -n "$LEX"; then
4296 echo "$as_me:$LINENO: result: $LEX" >&5
4297 echo "${ECHO_T}$LEX" >&6
4299 echo "$as_me:$LINENO: result: no" >&5
4300 echo "${ECHO_T}no" >&6
4303 test -n "$LEX" && break
4305 test -n "$LEX" || LEX=":"
4307 if test -z "$LEXLIB"
4309 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4310 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4311 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 ac_check_lib_save_LIBS=$LIBS
4316 cat >conftest.$ac_ext <<_ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4323 /* Override any gcc2 internal prototype to avoid an error. */
4327 /* We use char because int might match the return type of a gcc2
4328 builtin and then its argument prototype would still apply. */
4338 rm -f conftest.$ac_objext conftest$ac_exeext
4339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4340 (eval $ac_link) 2>conftest.er1
4342 grep -v '^ *+' conftest.er1 >conftest.err
4344 cat conftest.err >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } &&
4347 { ac_try='test -z "$ac_c_werror_flag"
4348 || test ! -s conftest.err'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; } &&
4354 { ac_try='test -s conftest$ac_exeext'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_cv_lib_fl_yywrap=yes
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4365 ac_cv_lib_fl_yywrap=no
4367 rm -f conftest.err conftest.$ac_objext \
4368 conftest$ac_exeext conftest.$ac_ext
4369 LIBS=$ac_check_lib_save_LIBS
4371 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4372 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4373 if test $ac_cv_lib_fl_yywrap = yes; then
4376 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4377 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4378 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 ac_check_lib_save_LIBS=$LIBS
4383 cat >conftest.$ac_ext <<_ACEOF
4386 cat confdefs.h >>conftest.$ac_ext
4387 cat >>conftest.$ac_ext <<_ACEOF
4388 /* end confdefs.h. */
4390 /* Override any gcc2 internal prototype to avoid an error. */
4394 /* We use char because int might match the return type of a gcc2
4395 builtin and then its argument prototype would still apply. */
4405 rm -f conftest.$ac_objext conftest$ac_exeext
4406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4407 (eval $ac_link) 2>conftest.er1
4409 grep -v '^ *+' conftest.er1 >conftest.err
4411 cat conftest.err >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try='test -z "$ac_c_werror_flag"
4415 || test ! -s conftest.err'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; } &&
4421 { ac_try='test -s conftest$ac_exeext'
4422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
4427 ac_cv_lib_l_yywrap=yes
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4432 ac_cv_lib_l_yywrap=no
4434 rm -f conftest.err conftest.$ac_objext \
4435 conftest$ac_exeext conftest.$ac_ext
4436 LIBS=$ac_check_lib_save_LIBS
4438 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4439 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4440 if test $ac_cv_lib_l_yywrap = yes; then
4448 if test "x$LEX" != "x:"; then
4449 echo "$as_me:$LINENO: checking lex output file root" >&5
4450 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4451 if test "${ac_cv_prog_lex_root+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 # The minimal lex program is just a single line: %%. But some broken lexes
4455 # (Solaris, I think it was) want two %% lines, so accommodate them.
4456 cat >conftest.l <<_ACEOF
4460 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4461 (eval $LEX conftest.l) 2>&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }
4465 if test -f lex.yy.c; then
4466 ac_cv_prog_lex_root=lex.yy
4467 elif test -f lexyy.c; then
4468 ac_cv_prog_lex_root=lexyy
4470 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4471 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4472 { (exit 1); exit 1; }; }
4475 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4476 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4478 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4480 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4481 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4482 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 # POSIX says lex can declare yytext either as a pointer or an array; the
4486 # default is implementation-dependent. Figure out which it is, since
4487 # not all implementations provide the %pointer and %array declarations.
4488 ac_cv_prog_lex_yytext_pointer=no
4489 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4491 LIBS="$LIBS $LEXLIB"
4492 cat >conftest.$ac_ext <<_ACEOF
4493 `cat $LEX_OUTPUT_ROOT.c`
4495 rm -f conftest.$ac_objext conftest$ac_exeext
4496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4497 (eval $ac_link) 2>conftest.er1
4499 grep -v '^ *+' conftest.er1 >conftest.err
4501 cat conftest.err >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } &&
4504 { ac_try='test -z "$ac_c_werror_flag"
4505 || test ! -s conftest.err'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; } &&
4511 { ac_try='test -s conftest$ac_exeext'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; }; then
4517 ac_cv_prog_lex_yytext_pointer=yes
4519 echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.$ac_ext >&5
4523 rm -f conftest.err conftest.$ac_objext \
4524 conftest$ac_exeext conftest.$ac_ext
4526 rm -f "${LEX_OUTPUT_ROOT}.c"
4529 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4530 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4531 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4533 cat >>confdefs.h <<\_ACEOF
4534 #define YYTEXT_POINTER 1
4542 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4543 echo "${ECHO_T}$ac_cv_has_flex" >&6
4544 if test "$LEX" != "flex"; then
4545 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4546 echo "$as_me: error: flex not found but required" >&2;}
4547 { (exit 1); exit 1; }; }
4553 echo "$as_me:$LINENO: checking " >&5
4554 echo $ECHO_N "checking ... $ECHO_C" >&6
4555 if test "${llvm_cv_has_bison+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 for ac_prog in 'bison -y' byacc
4560 # Extract the first word of "$ac_prog", so it can be a program name with args.
4561 set dummy $ac_prog; ac_word=$2
4562 echo "$as_me:$LINENO: checking for $ac_word" >&5
4563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4564 if test "${ac_cv_prog_YACC+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 if test -n "$YACC"; then
4568 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4577 ac_cv_prog_YACC="$ac_prog"
4578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 YACC=$ac_cv_prog_YACC
4587 if test -n "$YACC"; then
4588 echo "$as_me:$LINENO: result: $YACC" >&5
4589 echo "${ECHO_T}$YACC" >&6
4591 echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6
4595 test -n "$YACC" && break
4597 test -n "$YACC" || YACC="yacc"
4600 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4601 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4602 if test "$YACC" != "bison -y"; then
4603 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4604 echo "$as_me: error: bison not found but required" >&2;}
4605 { (exit 1); exit 1; }; }
4611 echo "$as_me:$LINENO: checking for GNU make" >&5
4612 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4613 if test "${llvm_cv_gnu_make_command+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 llvm_cv_gnu_make_command=''
4617 for a in "$MAKE" make gmake gnumake ; do
4618 if test -z "$a" ; then continue ; fi ;
4619 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4621 llvm_cv_gnu_make_command=$a ;
4626 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4627 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4628 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4632 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4633 echo "${ECHO_T}\"Not found\"" >&6;
4637 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4638 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4640 if test "$LN_S" = "ln -s"; then
4641 echo "$as_me:$LINENO: result: yes" >&5
4642 echo "${ECHO_T}yes" >&6
4644 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4645 echo "${ECHO_T}no, using $LN_S" >&6
4648 # Extract the first word of "cmp", so it can be a program name with args.
4649 set dummy cmp; ac_word=$2
4650 echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4652 if test "${ac_cv_path_CMP+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4667 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4680 if test -n "$CMP"; then
4681 echo "$as_me:$LINENO: result: $CMP" >&5
4682 echo "${ECHO_T}$CMP" >&6
4684 echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6
4688 # Extract the first word of "cp", so it can be a program name with args.
4689 set dummy cp; ac_word=$2
4690 echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4692 if test "${ac_cv_path_CP+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4720 if test -n "$CP"; then
4721 echo "$as_me:$LINENO: result: $CP" >&5
4722 echo "${ECHO_T}$CP" >&6
4724 echo "$as_me:$LINENO: result: no" >&5
4725 echo "${ECHO_T}no" >&6
4728 # Extract the first word of "date", so it can be a program name with args.
4729 set dummy date; ac_word=$2
4730 echo "$as_me:$LINENO: checking for $ac_word" >&5
4731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4732 if test "${ac_cv_path_DATE+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4758 DATE=$ac_cv_path_DATE
4760 if test -n "$DATE"; then
4761 echo "$as_me:$LINENO: result: $DATE" >&5
4762 echo "${ECHO_T}$DATE" >&6
4764 echo "$as_me:$LINENO: result: no" >&5
4765 echo "${ECHO_T}no" >&6
4768 # Extract the first word of "find", so it can be a program name with args.
4769 set dummy find; ac_word=$2
4770 echo "$as_me:$LINENO: checking for $ac_word" >&5
4771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4772 if test "${ac_cv_path_FIND+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4798 FIND=$ac_cv_path_FIND
4800 if test -n "$FIND"; then
4801 echo "$as_me:$LINENO: result: $FIND" >&5
4802 echo "${ECHO_T}$FIND" >&6
4804 echo "$as_me:$LINENO: result: no" >&5
4805 echo "${ECHO_T}no" >&6
4808 # Extract the first word of "grep", so it can be a program name with args.
4809 set dummy grep; ac_word=$2
4810 echo "$as_me:$LINENO: checking for $ac_word" >&5
4811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4812 if test "${ac_cv_path_GREP+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4827 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4838 GREP=$ac_cv_path_GREP
4840 if test -n "$GREP"; then
4841 echo "$as_me:$LINENO: result: $GREP" >&5
4842 echo "${ECHO_T}$GREP" >&6
4844 echo "$as_me:$LINENO: result: no" >&5
4845 echo "${ECHO_T}no" >&6
4848 # Extract the first word of "mkdir", so it can be a program name with args.
4849 set dummy mkdir; ac_word=$2
4850 echo "$as_me:$LINENO: checking for $ac_word" >&5
4851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4852 if test "${ac_cv_path_MKDIR+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4867 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4878 MKDIR=$ac_cv_path_MKDIR
4880 if test -n "$MKDIR"; then
4881 echo "$as_me:$LINENO: result: $MKDIR" >&5
4882 echo "${ECHO_T}$MKDIR" >&6
4884 echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6
4888 # Extract the first word of "mv", so it can be a program name with args.
4889 set dummy mv; ac_word=$2
4890 echo "$as_me:$LINENO: checking for $ac_word" >&5
4891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4892 if test "${ac_cv_path_MV+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4907 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4920 if test -n "$MV"; then
4921 echo "$as_me:$LINENO: result: $MV" >&5
4922 echo "${ECHO_T}$MV" >&6
4924 echo "$as_me:$LINENO: result: no" >&5
4925 echo "${ECHO_T}no" >&6
4928 if test -n "$ac_tool_prefix"; then
4929 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4930 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4931 echo "$as_me:$LINENO: checking for $ac_word" >&5
4932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4933 if test "${ac_cv_prog_RANLIB+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 if test -n "$RANLIB"; then
4937 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4946 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 RANLIB=$ac_cv_prog_RANLIB
4956 if test -n "$RANLIB"; then
4957 echo "$as_me:$LINENO: result: $RANLIB" >&5
4958 echo "${ECHO_T}$RANLIB" >&6
4960 echo "$as_me:$LINENO: result: no" >&5
4961 echo "${ECHO_T}no" >&6
4965 if test -z "$ac_cv_prog_RANLIB"; then
4966 ac_ct_RANLIB=$RANLIB
4967 # Extract the first word of "ranlib", so it can be a program name with args.
4968 set dummy ranlib; ac_word=$2
4969 echo "$as_me:$LINENO: checking for $ac_word" >&5
4970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4971 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 if test -n "$ac_ct_RANLIB"; then
4975 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984 ac_cv_prog_ac_ct_RANLIB="ranlib"
4985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4991 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4994 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4995 if test -n "$ac_ct_RANLIB"; then
4996 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4997 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4999 echo "$as_me:$LINENO: result: no" >&5
5000 echo "${ECHO_T}no" >&6
5003 RANLIB=$ac_ct_RANLIB
5005 RANLIB="$ac_cv_prog_RANLIB"
5008 # Extract the first word of "rm", so it can be a program name with args.
5009 set dummy rm; ac_word=$2
5010 echo "$as_me:$LINENO: checking for $ac_word" >&5
5011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5012 if test "${ac_cv_path_RM+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 test -z "$as_dir" && as_dir=.
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5027 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5040 if test -n "$RM"; then
5041 echo "$as_me:$LINENO: result: $RM" >&5
5042 echo "${ECHO_T}$RM" >&6
5044 echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6
5048 # Extract the first word of "sed", so it can be a program name with args.
5049 set dummy sed; ac_word=$2
5050 echo "$as_me:$LINENO: checking for $ac_word" >&5
5051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5052 if test "${ac_cv_path_SED+set}" = set; then
5053 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5080 if test -n "$SED"; then
5081 echo "$as_me:$LINENO: result: $SED" >&5
5082 echo "${ECHO_T}$SED" >&6
5084 echo "$as_me:$LINENO: result: no" >&5
5085 echo "${ECHO_T}no" >&6
5088 # Extract the first word of "tar", so it can be a program name with args.
5089 set dummy tar; ac_word=$2
5090 echo "$as_me:$LINENO: checking for $ac_word" >&5
5091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5092 if test "${ac_cv_path_TAR+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5120 if test -n "$TAR"; then
5121 echo "$as_me:$LINENO: result: $TAR" >&5
5122 echo "${ECHO_T}$TAR" >&6
5124 echo "$as_me:$LINENO: result: no" >&5
5125 echo "${ECHO_T}no" >&6
5128 # Extract the first word of "Graphviz", so it can be a program name with args.
5129 set dummy Graphviz; ac_word=$2
5130 echo "$as_me:$LINENO: checking for $ac_word" >&5
5131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5132 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 test -z "$as_dir" && as_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5147 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5158 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5160 if test -n "$GRAPHVIZ"; then
5161 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5162 echo "${ECHO_T}$GRAPHVIZ" >&6
5164 echo "$as_me:$LINENO: result: no" >&5
5165 echo "${ECHO_T}no" >&6
5168 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5170 cat >>confdefs.h <<\_ACEOF
5171 #define HAVE_GRAPHVIZ 1
5175 cat >>confdefs.h <<_ACEOF
5176 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5180 # Extract the first word of "gv", so it can be a program name with args.
5181 set dummy gv; ac_word=$2
5182 echo "$as_me:$LINENO: checking for $ac_word" >&5
5183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5184 if test "${ac_cv_path_GV+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5212 if test -n "$GV"; then
5213 echo "$as_me:$LINENO: result: $GV" >&5
5214 echo "${ECHO_T}$GV" >&6
5216 echo "$as_me:$LINENO: result: no" >&5
5217 echo "${ECHO_T}no" >&6
5220 if test "$GV" != "echo gv" ; then
5222 cat >>confdefs.h <<\_ACEOF
5227 cat >>confdefs.h <<_ACEOF
5228 #define LLVM_PATH_GV "$GV"
5234 # Extract the first word of "perl", so it can be a program name with args.
5235 set dummy perl; ac_word=$2
5236 echo "$as_me:$LINENO: checking for $ac_word" >&5
5237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5238 if test "${ac_cv_path_PERL+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5264 PERL=$ac_cv_path_PERL
5266 if test -n "$PERL"; then
5267 echo "$as_me:$LINENO: result: $PERL" >&5
5268 echo "${ECHO_T}$PERL" >&6
5270 echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6
5274 if test "$PERL" != "none"; then
5275 echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5276 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5277 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5278 echo "$as_me:$LINENO: result: yes" >&5
5279 echo "${ECHO_T}yes" >&6
5282 echo "$as_me:$LINENO: result: not found" >&5
5283 echo "${ECHO_T}not found" >&6
5288 if test x"$PERL" = xnone; then
5296 # Find a good install program. We prefer a C program (faster),
5297 # so one script is as good as another. But avoid the broken or
5298 # incompatible versions:
5299 # SysV /etc/install, /usr/sbin/install
5300 # SunOS /usr/etc/install
5301 # IRIX /sbin/install
5303 # AmigaOS /C/install, which installs bootblocks on floppy discs
5304 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5305 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5306 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5307 # OS/2's system install, which has a completely different semantic
5308 # ./install, which can be erroneously created by make from ./install.sh.
5309 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5310 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5311 if test -z "$INSTALL"; then
5312 if test "${ac_cv_path_install+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 test -z "$as_dir" && as_dir=.
5320 # Account for people who put trailing slashes in PATH elements.
5322 ./ | .// | /cC/* | \
5323 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5324 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5327 # OSF1 and SCO ODT 3.0 have their own names for install.
5328 # Don't use installbsd from OSF since it installs stuff as root
5330 for ac_prog in ginstall scoinst install; do
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5333 if test $ac_prog = install &&
5334 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5335 # AIX install. It has an incompatible calling convention.
5337 elif test $ac_prog = install &&
5338 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5339 # program-specific install script used by HP pwplus--don't use.
5342 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5354 if test "${ac_cv_path_install+set}" = set; then
5355 INSTALL=$ac_cv_path_install
5357 # As a last resort, use the slow shell script. We don't cache a
5358 # path for INSTALL within a source directory, because that will
5359 # break other packages using the cache if that directory is
5360 # removed, or if the path is relative.
5361 INSTALL=$ac_install_sh
5364 echo "$as_me:$LINENO: result: $INSTALL" >&5
5365 echo "${ECHO_T}$INSTALL" >&6
5367 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5368 # It thinks the first close brace ends the variable substitution.
5369 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5371 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5373 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5376 # Extract the first word of "bzip2", so it can be a program name with args.
5377 set dummy bzip2; ac_word=$2
5378 echo "$as_me:$LINENO: checking for $ac_word" >&5
5379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5380 if test "${ac_cv_path_BZIP2+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5395 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5406 BZIP2=$ac_cv_path_BZIP2
5408 if test -n "$BZIP2"; then
5409 echo "$as_me:$LINENO: result: $BZIP2" >&5
5410 echo "${ECHO_T}$BZIP2" >&6
5412 echo "$as_me:$LINENO: result: no" >&5
5413 echo "${ECHO_T}no" >&6
5416 # Extract the first word of "dot", so it can be a program name with args.
5417 set dummy dot; ac_word=$2
5418 echo "$as_me:$LINENO: checking for $ac_word" >&5
5419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5420 if test "${ac_cv_path_DOT+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5448 if test -n "$DOT"; then
5449 echo "$as_me:$LINENO: result: $DOT" >&5
5450 echo "${ECHO_T}$DOT" >&6
5452 echo "$as_me:$LINENO: result: no" >&5
5453 echo "${ECHO_T}no" >&6
5456 # Extract the first word of "doxygen", so it can be a program name with args.
5457 set dummy doxygen; ac_word=$2
5458 echo "$as_me:$LINENO: checking for $ac_word" >&5
5459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5460 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 test -z "$as_dir" && as_dir=.
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5475 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5486 DOXYGEN=$ac_cv_path_DOXYGEN
5488 if test -n "$DOXYGEN"; then
5489 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5490 echo "${ECHO_T}$DOXYGEN" >&6
5492 echo "$as_me:$LINENO: result: no" >&5
5493 echo "${ECHO_T}no" >&6
5496 # Extract the first word of "etags", so it can be a program name with args.
5497 set dummy etags; ac_word=$2
5498 echo "$as_me:$LINENO: checking for $ac_word" >&5
5499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5500 if test "${ac_cv_path_ETAGS+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5505 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5515 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5526 ETAGS=$ac_cv_path_ETAGS
5528 if test -n "$ETAGS"; then
5529 echo "$as_me:$LINENO: result: $ETAGS" >&5
5530 echo "${ECHO_T}$ETAGS" >&6
5532 echo "$as_me:$LINENO: result: no" >&5
5533 echo "${ECHO_T}no" >&6
5536 # Extract the first word of "groff", so it can be a program name with args.
5537 set dummy groff; ac_word=$2
5538 echo "$as_me:$LINENO: checking for $ac_word" >&5
5539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5540 if test "${ac_cv_path_GROFF+set}" = set; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 test -z "$as_dir" && as_dir=.
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5555 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5566 GROFF=$ac_cv_path_GROFF
5568 if test -n "$GROFF"; then
5569 echo "$as_me:$LINENO: result: $GROFF" >&5
5570 echo "${ECHO_T}$GROFF" >&6
5572 echo "$as_me:$LINENO: result: no" >&5
5573 echo "${ECHO_T}no" >&6
5576 # Extract the first word of "gzip", so it can be a program name with args.
5577 set dummy gzip; ac_word=$2
5578 echo "$as_me:$LINENO: checking for $ac_word" >&5
5579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5580 if test "${ac_cv_path_GZIP+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5585 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 test -z "$as_dir" && as_dir=.
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5595 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5606 GZIP=$ac_cv_path_GZIP
5608 if test -n "$GZIP"; then
5609 echo "$as_me:$LINENO: result: $GZIP" >&5
5610 echo "${ECHO_T}$GZIP" >&6
5612 echo "$as_me:$LINENO: result: no" >&5
5613 echo "${ECHO_T}no" >&6
5616 # Extract the first word of "pod2html", so it can be a program name with args.
5617 set dummy pod2html; ac_word=$2
5618 echo "$as_me:$LINENO: checking for $ac_word" >&5
5619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5620 if test "${ac_cv_path_POD2HTML+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5625 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5635 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5646 POD2HTML=$ac_cv_path_POD2HTML
5648 if test -n "$POD2HTML"; then
5649 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5650 echo "${ECHO_T}$POD2HTML" >&6
5652 echo "$as_me:$LINENO: result: no" >&5
5653 echo "${ECHO_T}no" >&6
5656 # Extract the first word of "pod2man", so it can be a program name with args.
5657 set dummy pod2man; ac_word=$2
5658 echo "$as_me:$LINENO: checking for $ac_word" >&5
5659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5660 if test "${ac_cv_path_POD2MAN+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 test -z "$as_dir" && as_dir=.
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5675 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5686 POD2MAN=$ac_cv_path_POD2MAN
5688 if test -n "$POD2MAN"; then
5689 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5690 echo "${ECHO_T}$POD2MAN" >&6
5692 echo "$as_me:$LINENO: result: no" >&5
5693 echo "${ECHO_T}no" >&6
5696 # Extract the first word of "runtest", so it can be a program name with args.
5697 set dummy runtest; ac_word=$2
5698 echo "$as_me:$LINENO: checking for $ac_word" >&5
5699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5700 if test "${ac_cv_path_RUNTEST+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5715 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5726 RUNTEST=$ac_cv_path_RUNTEST
5728 if test -n "$RUNTEST"; then
5729 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5730 echo "${ECHO_T}$RUNTEST" >&6
5732 echo "$as_me:$LINENO: result: no" >&5
5733 echo "${ECHO_T}no" >&6
5738 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5739 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5741 # Check whether --with-tclinclude or --without-tclinclude was given.
5742 if test "${with_tclinclude+set}" = set; then
5743 withval="$with_tclinclude"
5744 with_tclinclude=${withval}
5748 if test "${ac_cv_path_tclsh+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 if test x"${with_tclinclude}" != x ; then
5753 if test -f ${with_tclinclude}/tclsh ; then
5754 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5755 elif test -f ${with_tclinclude}/src/tclsh ; then
5756 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5758 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5759 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5760 { (exit 1); exit 1; }; }
5764 if test x"${ac_cv_path_tclsh}" = x ; then
5765 echo "$as_me:$LINENO: result: none" >&5
5766 echo "${ECHO_T}none" >&6
5767 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
5769 # Extract the first word of "$ac_prog", so it can be a program name with args.
5770 set dummy $ac_prog; ac_word=$2
5771 echo "$as_me:$LINENO: checking for $ac_word" >&5
5772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5773 if test "${ac_cv_path_TCLSH+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 test -z "$as_dir" && as_dir=.
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5788 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5798 TCLSH=$ac_cv_path_TCLSH
5800 if test -n "$TCLSH"; then
5801 echo "$as_me:$LINENO: result: $TCLSH" >&5
5802 echo "${ECHO_T}$TCLSH" >&6
5804 echo "$as_me:$LINENO: result: no" >&5
5805 echo "${ECHO_T}no" >&6
5808 test -n "$TCLSH" && break
5811 if test x"${TCLSH}" = x ; then
5812 ac_cv_path_tclsh='';
5814 ac_cv_path_tclsh="${TCLSH}";
5817 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5818 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5819 TCLSH="${ac_cv_path_tclsh}"
5825 # Extract the first word of "zip", so it can be a program name with args.
5826 set dummy zip; ac_word=$2
5827 echo "$as_me:$LINENO: checking for $ac_word" >&5
5828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5829 if test "${ac_cv_path_ZIP+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 test -z "$as_dir" && as_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5844 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5857 if test -n "$ZIP"; then
5858 echo "$as_me:$LINENO: result: $ZIP" >&5
5859 echo "${ECHO_T}$ZIP" >&6
5861 echo "$as_me:$LINENO: result: no" >&5
5862 echo "${ECHO_T}no" >&6
5866 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5867 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5868 if test "${llvm_cv_link_use_r+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 ac_cpp='$CPP $CPPFLAGS'
5873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5878 CFLAGS="$CFLAGS -Wl,-R."
5879 cat >conftest.$ac_ext <<_ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5889 int main() { return 0; }
5894 rm -f conftest.$ac_objext conftest$ac_exeext
5895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5896 (eval $ac_link) 2>conftest.er1
5898 grep -v '^ *+' conftest.er1 >conftest.err
5900 cat conftest.err >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } &&
5903 { ac_try='test -z "$ac_c_werror_flag"
5904 || test ! -s conftest.err'
5905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }; } &&
5910 { ac_try='test -s conftest$ac_exeext'
5911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; }; then
5916 llvm_cv_link_use_r=yes
5918 echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5921 llvm_cv_link_use_r=no
5923 rm -f conftest.err conftest.$ac_objext \
5924 conftest$ac_exeext conftest.$ac_ext
5927 ac_cpp='$CPP $CPPFLAGS'
5928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5934 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5935 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5936 if test "$llvm_cv_link_use_r" = yes ; then
5938 cat >>confdefs.h <<\_ACEOF
5939 #define HAVE_LINK_R 1
5947 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5948 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5949 if test "${ac_cv_c_const+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 cat >conftest.$ac_ext <<_ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5962 /* FIXME: Include the comments suggested by Paul. */
5964 /* Ultrix mips cc rejects this. */
5965 typedef int charset[2];
5967 /* SunOS 4.1.1 cc rejects this. */
5968 char const *const *ccp;
5970 /* NEC SVR4.0.2 mips cc rejects this. */
5971 struct point {int x, y;};
5972 static struct point const zero = {0,0};
5973 /* AIX XL C 1.02.0.0 rejects this.
5974 It does not let you subtract one const X* pointer from another in
5975 an arm of an if-expression whose if-part is not a constant
5977 const char *g = "string";
5978 ccp = &g + (g ? g-g : 0);
5979 /* HPUX 7.0 cc rejects these. */
5982 ccp = (char const *const *) p;
5983 { /* SCO 3.2v4 cc rejects this. */
5985 char const *s = 0 ? (char *) 0 : (char const *) 0;
5989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5991 const int *foo = &x[0];
5994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5995 typedef const int *iptr;
5999 { /* AIX XL C 1.02.0.0 rejects this saying
6000 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6001 struct s { int j; const int *ap[3]; };
6002 struct s *b; b->j = 5;
6004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6013 rm -f conftest.$ac_objext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>conftest.er1
6017 grep -v '^ *+' conftest.er1 >conftest.err
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -z "$ac_c_werror_flag"
6023 || test ! -s conftest.err'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; } &&
6029 { ac_try='test -s conftest.$ac_objext'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6044 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6045 echo "${ECHO_T}$ac_cv_c_const" >&6
6046 if test $ac_cv_c_const = no; then
6048 cat >>confdefs.h <<\_ACEOF
6055 echo "$as_me:$LINENO: checking for egrep" >&5
6056 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6057 if test "${ac_cv_prog_egrep+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6061 then ac_cv_prog_egrep='grep -E'
6062 else ac_cv_prog_egrep='egrep'
6065 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6066 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6067 EGREP=$ac_cv_prog_egrep
6070 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6071 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6072 if test "${ac_cv_header_stdc+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 cat >conftest.$ac_ext <<_ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h. */
6094 rm -f conftest.$ac_objext
6095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6096 (eval $ac_compile) 2>conftest.er1
6098 grep -v '^ *+' conftest.er1 >conftest.err
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } &&
6103 { ac_try='test -z "$ac_c_werror_flag"
6104 || test ! -s conftest.err'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; } &&
6110 { ac_try='test -s conftest.$ac_objext'
6111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; }; then
6116 ac_cv_header_stdc=yes
6118 echo "$as_me: failed program was:" >&5
6119 sed 's/^/| /' conftest.$ac_ext >&5
6121 ac_cv_header_stdc=no
6123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6125 if test $ac_cv_header_stdc = yes; then
6126 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6127 cat >conftest.$ac_ext <<_ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6137 $EGREP "memchr" >/dev/null 2>&1; then
6140 ac_cv_header_stdc=no
6146 if test $ac_cv_header_stdc = yes; then
6147 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6148 cat >conftest.$ac_ext <<_ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6158 $EGREP "free" >/dev/null 2>&1; then
6161 ac_cv_header_stdc=no
6167 if test $ac_cv_header_stdc = yes; then
6168 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6169 if test "$cross_compiling" = yes; then
6172 cat >conftest.$ac_ext <<_ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6179 #if ((' ' & 0x0FF) == 0x020)
6180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6183 # define ISLOWER(c) \
6184 (('a' <= (c) && (c) <= 'i') \
6185 || ('j' <= (c) && (c) <= 'r') \
6186 || ('s' <= (c) && (c) <= 'z'))
6187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6195 for (i = 0; i < 256; i++)
6196 if (XOR (islower (i), ISLOWER (i))
6197 || toupper (i) != TOUPPER (i))
6202 rm -f conftest$ac_exeext
6203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6204 (eval $ac_link) 2>&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; }; then
6215 echo "$as_me: program exited with status $ac_status" >&5
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6220 ac_cv_header_stdc=no
6222 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6226 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6227 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6228 if test $ac_cv_header_stdc = yes; then
6230 cat >>confdefs.h <<\_ACEOF
6231 #define STDC_HEADERS 1
6242 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6243 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6244 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6245 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 cat >conftest.$ac_ext <<_ACEOF
6252 cat confdefs.h >>conftest.$ac_ext
6253 cat >>conftest.$ac_ext <<_ACEOF
6254 /* end confdefs.h. */
6255 #include <sys/types.h>
6267 rm -f conftest.$ac_objext
6268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6269 (eval $ac_compile) 2>conftest.er1
6271 grep -v '^ *+' conftest.er1 >conftest.err
6273 cat conftest.err >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } &&
6276 { ac_try='test -z "$ac_c_werror_flag"
6277 || test ! -s conftest.err'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; } &&
6283 { ac_try='test -s conftest.$ac_objext'
6284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; }; then
6289 eval "$as_ac_Header=yes"
6291 echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6294 eval "$as_ac_Header=no"
6296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6301 cat >>confdefs.h <<_ACEOF
6302 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6305 ac_header_dirent=$ac_hdr; break
6309 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6310 if test $ac_header_dirent = dirent.h; then
6311 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6312 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6313 if test "${ac_cv_search_opendir+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 ac_func_search_save_LIBS=$LIBS
6317 ac_cv_search_opendir=no
6318 cat >conftest.$ac_ext <<_ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6325 /* Override any gcc2 internal prototype to avoid an error. */
6329 /* We use char because int might match the return type of a gcc2
6330 builtin and then its argument prototype would still apply. */
6340 rm -f conftest.$ac_objext conftest$ac_exeext
6341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6342 (eval $ac_link) 2>conftest.er1
6344 grep -v '^ *+' conftest.er1 >conftest.err
6346 cat conftest.err >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } &&
6349 { ac_try='test -z "$ac_c_werror_flag"
6350 || test ! -s conftest.err'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; } &&
6356 { ac_try='test -s conftest$ac_exeext'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; }; then
6362 ac_cv_search_opendir="none required"
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6368 rm -f conftest.err conftest.$ac_objext \
6369 conftest$ac_exeext conftest.$ac_ext
6370 if test "$ac_cv_search_opendir" = no; then
6371 for ac_lib in dir; do
6372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6373 cat >conftest.$ac_ext <<_ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6380 /* Override any gcc2 internal prototype to avoid an error. */
6384 /* We use char because int might match the return type of a gcc2
6385 builtin and then its argument prototype would still apply. */
6395 rm -f conftest.$ac_objext conftest$ac_exeext
6396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6397 (eval $ac_link) 2>conftest.er1
6399 grep -v '^ *+' conftest.er1 >conftest.err
6401 cat conftest.err >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } &&
6404 { ac_try='test -z "$ac_c_werror_flag"
6405 || test ! -s conftest.err'
6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; } &&
6411 { ac_try='test -s conftest$ac_exeext'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; }; then
6417 ac_cv_search_opendir="-l$ac_lib"
6420 echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.$ac_ext >&5
6424 rm -f conftest.err conftest.$ac_objext \
6425 conftest$ac_exeext conftest.$ac_ext
6428 LIBS=$ac_func_search_save_LIBS
6430 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6431 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6432 if test "$ac_cv_search_opendir" != no; then
6433 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6438 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6439 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6440 if test "${ac_cv_search_opendir+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 ac_func_search_save_LIBS=$LIBS
6444 ac_cv_search_opendir=no
6445 cat >conftest.$ac_ext <<_ACEOF
6448 cat confdefs.h >>conftest.$ac_ext
6449 cat >>conftest.$ac_ext <<_ACEOF
6450 /* end confdefs.h. */
6452 /* Override any gcc2 internal prototype to avoid an error. */
6456 /* We use char because int might match the return type of a gcc2
6457 builtin and then its argument prototype would still apply. */
6467 rm -f conftest.$ac_objext conftest$ac_exeext
6468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6469 (eval $ac_link) 2>conftest.er1
6471 grep -v '^ *+' conftest.er1 >conftest.err
6473 cat conftest.err >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } &&
6476 { ac_try='test -z "$ac_c_werror_flag"
6477 || test ! -s conftest.err'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; } &&
6483 { ac_try='test -s conftest$ac_exeext'
6484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; }; then
6489 ac_cv_search_opendir="none required"
6491 echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6495 rm -f conftest.err conftest.$ac_objext \
6496 conftest$ac_exeext conftest.$ac_ext
6497 if test "$ac_cv_search_opendir" = no; then
6499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6500 cat >conftest.$ac_ext <<_ACEOF
6503 cat confdefs.h >>conftest.$ac_ext
6504 cat >>conftest.$ac_ext <<_ACEOF
6505 /* end confdefs.h. */
6507 /* Override any gcc2 internal prototype to avoid an error. */
6511 /* We use char because int might match the return type of a gcc2
6512 builtin and then its argument prototype would still apply. */
6522 rm -f conftest.$ac_objext conftest$ac_exeext
6523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6524 (eval $ac_link) 2>conftest.er1
6526 grep -v '^ *+' conftest.er1 >conftest.err
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } &&
6531 { ac_try='test -z "$ac_c_werror_flag"
6532 || test ! -s conftest.err'
6533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }; } &&
6538 { ac_try='test -s conftest$ac_exeext'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; }; then
6544 ac_cv_search_opendir="-l$ac_lib"
6547 echo "$as_me: failed program was:" >&5
6548 sed 's/^/| /' conftest.$ac_ext >&5
6551 rm -f conftest.err conftest.$ac_objext \
6552 conftest$ac_exeext conftest.$ac_ext
6555 LIBS=$ac_func_search_save_LIBS
6557 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6558 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6559 if test "$ac_cv_search_opendir" != no; then
6560 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6566 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6576 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6577 inttypes.h stdint.h unistd.h
6579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6580 echo "$as_me:$LINENO: checking for $ac_header" >&5
6581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 cat >conftest.$ac_ext <<_ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6591 $ac_includes_default
6593 #include <$ac_header>
6595 rm -f conftest.$ac_objext
6596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6597 (eval $ac_compile) 2>conftest.er1
6599 grep -v '^ *+' conftest.er1 >conftest.err
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -z "$ac_c_werror_flag"
6605 || test ! -s conftest.err'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; } &&
6611 { ac_try='test -s conftest.$ac_objext'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
6617 eval "$as_ac_Header=yes"
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6622 eval "$as_ac_Header=no"
6624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6629 cat >>confdefs.h <<_ACEOF
6630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6639 for ac_header in dlfcn.h
6641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6643 echo "$as_me:$LINENO: checking for $ac_header" >&5
6644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6651 # Is the header compilable?
6652 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6654 cat >conftest.$ac_ext <<_ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6660 $ac_includes_default
6661 #include <$ac_header>
6663 rm -f conftest.$ac_objext
6664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6665 (eval $ac_compile) 2>conftest.er1
6667 grep -v '^ *+' conftest.er1 >conftest.err
6669 cat conftest.err >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } &&
6672 { ac_try='test -z "$ac_c_werror_flag"
6673 || test ! -s conftest.err'
6674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; } &&
6679 { ac_try='test -s conftest.$ac_objext'
6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; }; then
6685 ac_header_compiler=yes
6687 echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6690 ac_header_compiler=no
6692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6693 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6694 echo "${ECHO_T}$ac_header_compiler" >&6
6696 # Is the header present?
6697 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6699 cat >conftest.$ac_ext <<_ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h. */
6705 #include <$ac_header>
6707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6710 grep -v '^ *+' conftest.er1 >conftest.err
6712 cat conftest.err >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } >/dev/null; then
6715 if test -s conftest.err; then
6716 ac_cpp_err=$ac_c_preproc_warn_flag
6717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6724 if test -z "$ac_cpp_err"; then
6725 ac_header_preproc=yes
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6730 ac_header_preproc=no
6732 rm -f conftest.err conftest.$ac_ext
6733 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6734 echo "${ECHO_T}$ac_header_preproc" >&6
6736 # So? What about this header?
6737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6742 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6743 ac_header_preproc=yes
6746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6749 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6750 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6751 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6752 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6753 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6756 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6757 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6760 ## ----------------------------------- ##
6761 ## Report this to llvmbugs@cs.uiuc.edu ##
6762 ## ----------------------------------- ##
6765 sed "s/^/$as_me: WARNING: /" >&2
6768 echo "$as_me:$LINENO: checking for $ac_header" >&5
6769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 eval "$as_ac_Header=\$ac_header_preproc"
6775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6780 cat >>confdefs.h <<_ACEOF
6781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6788 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6789 if test "${enable_ltdl_install+set}" = set; then
6790 enableval="$enable_ltdl_install"
6796 if test x"${enable_ltdl_install-no}" != xno; then
6798 INSTALL_LTDL_FALSE='#'
6800 INSTALL_LTDL_TRUE='#'
6806 if test x"${enable_ltdl_convenience-no}" != xno; then
6807 CONVENIENCE_LTDL_TRUE=
6808 CONVENIENCE_LTDL_FALSE='#'
6810 CONVENIENCE_LTDL_TRUE='#'
6811 CONVENIENCE_LTDL_FALSE=
6815 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6816 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6818 libname_spec='lib$name'
6826 shlibpath_overrides_runpath=unknown
6828 dynamic_linker="$host_os ld.so"
6829 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6830 if test "$GCC" = yes; then
6831 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6832 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6833 # if the path contains ";" then we assume it to be the separator
6834 # otherwise default to the standard path separator (i.e. ":") - it is
6835 # assumed that no part of a normal pathname contains ";" but that should
6836 # okay in the real world where ";" in dirpaths is itself problematic.
6837 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6839 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6842 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6844 need_lib_prefix=unknown
6845 hardcode_into_libs=no
6847 # when you set need_version to no, make sure it does not cause -set_version
6848 # flags to be left without arguments
6849 need_version=unknown
6854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6855 shlibpath_var=LIBPATH
6857 # AIX 3 has no versioning support, so we append a major version to the name.
6858 soname_spec='${libname}${release}${shared_ext}$major'
6865 hardcode_into_libs=yes
6866 if test "$host_cpu" = ia64; then
6867 # AIX 5 supports IA64
6868 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6869 shlibpath_var=LD_LIBRARY_PATH
6871 # With GCC up to 2.95.x, collect2 would create an import file
6872 # for dependence libraries. The import file would start with
6873 # the line `#! .'. This would cause the generated library to
6874 # depend on `.', always an invalid library. This was fixed in
6875 # development snapshots of GCC prior to 3.0.
6877 aix4 | aix4.[01] | aix4.[01].*)
6878 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6880 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6887 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6888 # soname into executable. Probably we can add versioning support to
6889 # collect2, so additional links can be useful in future.
6890 if test "$aix_use_runtimelinking" = yes; then
6891 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6892 # instead of lib<name>.a to let people know that these are not
6893 # typical AIX shared libraries.
6894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6896 # We preserve .a as extension for shared libraries through AIX4.2
6897 # and later when we are not doing run time linking.
6898 library_names_spec='${libname}${release}.a $libname.a'
6899 soname_spec='${libname}${release}${shared_ext}$major'
6901 shlibpath_var=LIBPATH
6906 library_names_spec='$libname.ixlibrary $libname.a'
6907 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6908 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'
6912 library_names_spec='${libname}${shared_ext}'
6913 dynamic_linker="$host_os ld.so"
6914 shlibpath_var=LIBRARY_PATH
6920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6921 soname_spec='${libname}${release}${shared_ext}$major'
6922 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6923 shlibpath_var=LD_LIBRARY_PATH
6924 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6925 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6926 # the default ld.so.conf also contains /usr/contrib/lib and
6927 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6928 # libtool to hard-code these into programs
6931 cygwin* | mingw* | pw32*)
6932 version_type=windows
6937 case $GCC,$host_os in
6938 yes,cygwin* | yes,mingw* | yes,pw32*)
6939 library_names_spec='$libname.dll.a'
6940 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6941 postinstall_cmds='base_file=`basename \${file}`~
6942 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6943 dldir=$destdir/`dirname \$dlpath`~
6944 test -d \$dldir || mkdir -p \$dldir~
6945 $install_prog $dir/$dlname \$dldir/$dlname'
6946 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6947 dlpath=$dir/\$dldll~
6949 shlibpath_overrides_runpath=yes
6953 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6954 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6955 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6958 # MinGW DLLs use traditional 'lib' prefix
6959 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6960 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6961 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6962 # It is most probably a Windows format PATH printed by
6963 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6964 # path with ; separators, and with drive letters. We can handle the
6965 # drive letters (cygwin fileutils understands them), so leave them,
6966 # especially as we might pass files found there to a mingw objdump,
6967 # which wouldn't understand a cygwinified path. Ahh.
6968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6974 # pw32 DLLs use 'pw' prefix rather than 'lib'
6975 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6981 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6984 dynamic_linker='Win32 ld.exe'
6985 # FIXME: first we should search . and the directory the executable is in
6989 darwin* | rhapsody*)
6990 dynamic_linker="$host_os dyld"
6994 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6995 soname_spec='${libname}${release}${major}$shared_ext'
6996 shlibpath_overrides_runpath=yes
6997 shlibpath_var=DYLD_LIBRARY_PATH
6998 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6999 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7000 if test "$GCC" = yes; then
7001 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"`
7003 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7005 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7013 soname_spec='${libname}${release}${shared_ext}$major'
7014 shlibpath_var=LD_LIBRARY_PATH
7025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7026 soname_spec='${libname}${release}${shared_ext}$major'
7027 shlibpath_var=LD_LIBRARY_PATH
7028 shlibpath_overrides_runpath=no
7029 hardcode_into_libs=yes
7030 dynamic_linker='GNU ld.so'
7034 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7035 version_type=freebsd-$objformat
7036 case $version_type in
7038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7043 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7047 shlibpath_var=LD_LIBRARY_PATH
7050 shlibpath_overrides_runpath=yes
7052 freebsd3.01* | freebsdelf3.01*)
7053 shlibpath_overrides_runpath=yes
7054 hardcode_into_libs=yes
7057 shlibpath_overrides_runpath=no
7058 hardcode_into_libs=yes
7067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7068 soname_spec='${libname}${release}${shared_ext}$major'
7069 shlibpath_var=LD_LIBRARY_PATH
7070 hardcode_into_libs=yes
7073 hpux9* | hpux10* | hpux11*)
7074 # Give a soname corresponding to the major version so that dld.sl refuses to
7075 # link against other versions.
7082 hardcode_into_libs=yes
7083 dynamic_linker="$host_os dld.so"
7084 shlibpath_var=LD_LIBRARY_PATH
7085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7087 soname_spec='${libname}${release}${shared_ext}$major'
7088 if test "X$HPUX_IA64_MODE" = X32; then
7089 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7091 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7097 hardcode_into_libs=yes
7098 dynamic_linker="$host_os dld.sl"
7099 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7102 soname_spec='${libname}${release}${shared_ext}$major'
7103 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7108 dynamic_linker="$host_os dld.sl"
7109 shlibpath_var=SHLIB_PATH
7110 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7112 soname_spec='${libname}${release}${shared_ext}$major'
7115 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7116 postinstall_cmds='chmod 555 $lib'
7119 irix5* | irix6* | nonstopux*)
7121 nonstopux*) version_type=nonstopux ;;
7123 if test "$lt_cv_prog_gnu_ld" = yes; then
7131 soname_spec='${libname}${release}${shared_ext}$major'
7132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7134 irix5* | nonstopux*)
7138 case $LD in # libtool.m4 will add one of these switches to LD
7139 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7140 libsuff= shlibsuff= libmagic=32-bit;;
7141 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7142 libsuff=32 shlibsuff=N32 libmagic=N32;;
7143 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7144 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7145 *) libsuff= shlibsuff= libmagic=never-match;;
7149 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7150 shlibpath_overrides_runpath=no
7151 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7152 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7153 hardcode_into_libs=yes
7156 # No shared lib support for Linux oldld, aout, or coff.
7157 linux*oldld* | linux*aout* | linux*coff*)
7161 # This must be Linux ELF.
7166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7167 soname_spec='${libname}${release}${shared_ext}$major'
7168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7169 shlibpath_var=LD_LIBRARY_PATH
7170 shlibpath_overrides_runpath=no
7171 # This implies no fast_install, which is unacceptable.
7172 # Some rework will be needed to allow for fast_install
7173 # before this can be enabled.
7174 hardcode_into_libs=yes
7176 # Append ld.so.conf contents to the search path
7177 if test -f /etc/ld.so.conf; then
7178 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7179 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7182 # We used to test for /lib/ld.so.1 and disable shared libraries on
7183 # powerpc, because MkLinux only supported shared libraries with the
7184 # GNU dynamic linker. Since this was broken with cross compilers,
7185 # most powerpc-linux boxes support dynamic linking these days and
7186 # people can always --disable-shared, the test was removed, and we
7187 # assume the GNU/Linux dynamic linker is in use.
7188 dynamic_linker='GNU/Linux ld.so'
7195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7196 soname_spec='${libname}${release}${shared_ext}$major'
7197 shlibpath_var=LD_LIBRARY_PATH
7198 shlibpath_overrides_runpath=no
7199 hardcode_into_libs=yes
7200 dynamic_linker='GNU ld.so'
7207 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7210 dynamic_linker='NetBSD (a.out) ld.so'
7212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7213 soname_spec='${libname}${release}${shared_ext}$major'
7214 dynamic_linker='NetBSD ld.elf_so'
7216 shlibpath_var=LD_LIBRARY_PATH
7217 shlibpath_overrides_runpath=yes
7218 hardcode_into_libs=yes
7223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7224 shlibpath_var=LD_LIBRARY_PATH
7225 shlibpath_overrides_runpath=yes
7232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7233 soname_spec='${libname}${release}${shared_ext}$major'
7234 shlibpath_var=LD_LIBRARY_PATH
7235 shlibpath_overrides_runpath=yes
7242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7244 shlibpath_var=LD_LIBRARY_PATH
7245 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7247 openbsd2.[89] | openbsd2.[89].*)
7248 shlibpath_overrides_runpath=no
7251 shlibpath_overrides_runpath=yes
7255 shlibpath_overrides_runpath=yes
7260 libname_spec='$name'
7263 library_names_spec='$libname${shared_ext} $libname.a'
7264 dynamic_linker='OS/2 ld.exe'
7265 shlibpath_var=LIBPATH
7268 osf3* | osf4* | osf5*)
7272 soname_spec='${libname}${release}${shared_ext}$major'
7273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7274 shlibpath_var=LD_LIBRARY_PATH
7275 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7276 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7281 soname_spec='${libname}${release}${shared_ext}$major'
7282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7283 shlibpath_var=LD_LIBRARY_PATH
7290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7291 soname_spec='${libname}${release}${shared_ext}$major'
7292 shlibpath_var=LD_LIBRARY_PATH
7293 shlibpath_overrides_runpath=yes
7294 hardcode_into_libs=yes
7295 # ldd complains unless libraries are executable
7296 postinstall_cmds='chmod +x $lib'
7301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7302 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7303 shlibpath_var=LD_LIBRARY_PATH
7304 shlibpath_overrides_runpath=yes
7305 if test "$with_gnu_ld" = yes; then
7311 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7314 soname_spec='${libname}${release}${shared_ext}$major'
7315 shlibpath_var=LD_LIBRARY_PATH
7316 case $host_vendor in
7318 shlibpath_overrides_runpath=no
7320 export_dynamic_flag_spec='${wl}-Blargedynsym'
7321 runpath_var=LD_RUN_PATH
7329 shlibpath_overrides_runpath=no
7330 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7336 if test -d /usr/nec ;then
7338 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7339 soname_spec='$libname${shared_ext}.$major'
7340 shlibpath_var=LD_LIBRARY_PATH
7346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7347 soname_spec='${libname}${release}${shared_ext}$major'
7348 shlibpath_var=LD_LIBRARY_PATH
7355 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7356 echo "${ECHO_T}$dynamic_linker" >&6
7357 test "$dynamic_linker" = no && can_build_shared=no
7360 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7361 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7362 if test "${libltdl_cv_shlibext+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 eval libltdl_cv_shlibext=$shrext_cmds
7370 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7371 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7372 if test -n "$libltdl_cv_shlibext"; then
7374 cat >>confdefs.h <<_ACEOF
7375 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7381 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7382 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7383 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 libltdl_cv_shlibpath_var="$shlibpath_var"
7388 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7389 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7390 if test -n "$libltdl_cv_shlibpath_var"; then
7392 cat >>confdefs.h <<_ACEOF
7393 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7399 echo "$as_me:$LINENO: checking for the default library search path" >&5
7400 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7401 if test "${libltdl_cv_sys_search_path+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7406 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7407 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7408 if test -n "$libltdl_cv_sys_search_path"; then
7410 for dir in $libltdl_cv_sys_search_path; do
7411 if test -z "$sys_search_path"; then
7412 sys_search_path="$dir"
7414 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7418 cat >>confdefs.h <<_ACEOF
7419 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7424 echo "$as_me:$LINENO: checking for objdir" >&5
7425 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7426 if test "${libltdl_cv_objdir+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 libltdl_cv_objdir="$objdir"
7430 if test -n "$objdir"; then
7433 rm -f .libs 2>/dev/null
7434 mkdir .libs 2>/dev/null
7435 if test -d .libs; then
7436 libltdl_cv_objdir=.libs
7438 # MS-DOS does not allow filenames that begin with a dot.
7439 libltdl_cv_objdir=_libs
7441 rmdir .libs 2>/dev/null
7445 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7446 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7448 cat >>confdefs.h <<_ACEOF
7449 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7453 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7454 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7455 if test "${lt_cv_path_NM+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 if test -n "$NM"; then
7459 # Let the user override the test.
7462 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7463 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7465 test -z "$ac_dir" && ac_dir=.
7466 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7467 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7468 # Check to see if the nm accepts a BSD-compat flag.
7469 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7470 # nm: unknown option "B" ignored
7471 # Tru64's nm complains that /dev/null is an invalid object file
7472 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7473 */dev/null* | *'Invalid file or object type'*)
7474 lt_cv_path_NM="$tmp_nm -B"
7478 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7480 lt_cv_path_NM="$tmp_nm -p"
7484 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7485 continue # so that we can try to find one that supports BSD flags
7492 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7495 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7496 echo "${ECHO_T}$lt_cv_path_NM" >&6
7503 # Check for command to grab the raw symbol name followed by C symbol from nm.
7504 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7505 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7506 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 # These are sane defaults that work on at least a few old systems.
7511 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7513 # Character class describing NM global symbol codes.
7514 symcode='[BCDEGRST]'
7516 # Regexp to match symbols that can be accessed directly from C.
7517 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7519 # Transform the above into a raw symbol and a C symbol.
7520 symxfrm='\1 \2\3 \3'
7522 # Transform an extracted symbol line into a proper C declaration
7523 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7525 # Transform an extracted symbol line into symbol name and symbol address
7526 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'"
7528 # Define system-specific variables.
7533 cygwin* | mingw* | pw32*)
7534 symcode='[ABCDGISTW]'
7536 hpux*) # Its linker distinguishes data from code symbols
7537 if test "$host_cpu" = ia64; then
7538 symcode='[ABCDEGRST]'
7540 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7541 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'"
7544 if test "$host_cpu" = ia64; then
7545 symcode='[ABCDGIRSTW]'
7546 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7547 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'"
7551 symcode='[BCDEGRST]'
7554 symcode='[BCDEGQRST]'
7564 # Handle CRLF in mingw tool chain
7568 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7572 # If we're using GNU nm, then use its standard symbol codes.
7573 case `$NM -V 2>&1` in
7574 *GNU* | *'with BFD'*)
7575 symcode='[ABCDGIRSTW]' ;;
7578 # Try without a prefix undercore, then with it.
7579 for ac_symprfx in "" "_"; do
7581 # Write the raw and C identifiers.
7582 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7584 # Check to see that the pipe works correctly.
7588 cat > conftest.$ac_ext <<EOF
7593 void nm_test_func(){}
7597 int main(){nm_test_var='a';nm_test_func();return(0);}
7600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7601 (eval $ac_compile) 2>&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; then
7605 # Now try to grab the symbols.
7607 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7608 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } && test -s "$nlist"; then
7612 # Try sorting and uniquifying the output.
7613 if sort "$nlist" | uniq > "$nlist"T; then
7614 mv -f "$nlist"T "$nlist"
7619 # Make sure that we snagged all the symbols we need.
7620 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7621 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7622 cat <<EOF > conftest.$ac_ext
7628 # Now generate the symbol file.
7629 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7631 cat <<EOF >> conftest.$ac_ext
7632 #if defined (__STDC__) && __STDC__
7633 # define lt_ptr_t void *
7635 # define lt_ptr_t char *
7639 /* The mapping between symbol names and symbols. */
7644 lt_preloaded_symbols[] =
7647 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7648 cat <<\EOF >> conftest.$ac_ext
7656 # Now try linking the two files.
7657 mv conftest.$ac_objext conftstm.$ac_objext
7658 lt_save_LIBS="$LIBS"
7659 lt_save_CFLAGS="$CFLAGS"
7660 LIBS="conftstm.$ac_objext"
7661 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7663 (eval $ac_link) 2>&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7669 LIBS="$lt_save_LIBS"
7670 CFLAGS="$lt_save_CFLAGS"
7672 echo "cannot find nm_test_func in $nlist" >&5
7675 echo "cannot find nm_test_var in $nlist" >&5
7678 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7681 echo "$progname: failed program was:" >&5
7682 cat conftest.$ac_ext >&5
7684 rm -f conftest* conftst*
7686 # Do not use the global_symbol_pipe unless it works.
7687 if test "$pipe_works" = yes; then
7690 lt_cv_sys_global_symbol_pipe=
7696 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7697 lt_cv_sys_global_symbol_to_cdecl=
7699 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7700 echo "$as_me:$LINENO: result: failed" >&5
7701 echo "${ECHO_T}failed" >&6
7703 echo "$as_me:$LINENO: result: ok" >&5
7704 echo "${ECHO_T}ok" >&6
7708 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7709 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7710 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7714 libltdl_cv_preloaded_symbols=yes
7716 libltdl_cv_preloaded_symbols=no
7720 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7721 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7722 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7724 cat >>confdefs.h <<\_ACEOF
7725 #define HAVE_PRELOADED_SYMBOLS 1
7733 ac_cpp='$CPP $CPPFLAGS'
7734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7739 echo "$as_me:$LINENO: checking for shl_load" >&5
7740 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7741 if test "${ac_cv_func_shl_load+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 cat >conftest.$ac_ext <<_ACEOF
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h. */
7750 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7752 #define shl_load innocuous_shl_load
7754 /* System header to define __stub macros and hopefully few prototypes,
7755 which can conflict with char shl_load (); below.
7756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7757 <limits.h> exists even on freestanding compilers. */
7760 # include <limits.h>
7762 # include <assert.h>
7767 /* Override any gcc2 internal prototype to avoid an error. */
7772 /* We use char because int might match the return type of a gcc2
7773 builtin and then its argument prototype would still apply. */
7775 /* The GNU C library defines this for functions which it implements
7776 to always fail with ENOSYS. Some functions are actually named
7777 something starting with __ and the normal name is an alias. */
7778 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7781 char (*f) () = shl_load;
7790 return f != shl_load;
7795 rm -f conftest.$ac_objext conftest$ac_exeext
7796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7797 (eval $ac_link) 2>conftest.er1
7799 grep -v '^ *+' conftest.er1 >conftest.err
7801 cat conftest.err >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } &&
7804 { ac_try='test -z "$ac_c_werror_flag"
7805 || test ! -s conftest.err'
7806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }; } &&
7811 { ac_try='test -s conftest$ac_exeext'
7812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); }; }; then
7817 ac_cv_func_shl_load=yes
7819 echo "$as_me: failed program was:" >&5
7820 sed 's/^/| /' conftest.$ac_ext >&5
7822 ac_cv_func_shl_load=no
7824 rm -f conftest.err conftest.$ac_objext \
7825 conftest$ac_exeext conftest.$ac_ext
7827 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7828 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7829 if test $ac_cv_func_shl_load = yes; then
7831 cat >>confdefs.h <<\_ACEOF
7832 #define HAVE_SHL_LOAD 1
7836 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7837 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7838 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 ac_check_lib_save_LIBS=$LIBS
7843 cat >conftest.$ac_ext <<_ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7850 /* Override any gcc2 internal prototype to avoid an error. */
7854 /* We use char because int might match the return type of a gcc2
7855 builtin and then its argument prototype would still apply. */
7865 rm -f conftest.$ac_objext conftest$ac_exeext
7866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7867 (eval $ac_link) 2>conftest.er1
7869 grep -v '^ *+' conftest.er1 >conftest.err
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } &&
7874 { ac_try='test -z "$ac_c_werror_flag"
7875 || test ! -s conftest.err'
7876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; } &&
7881 { ac_try='test -s conftest$ac_exeext'
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; }; then
7887 ac_cv_lib_dld_shl_load=yes
7889 echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7892 ac_cv_lib_dld_shl_load=no
7894 rm -f conftest.err conftest.$ac_objext \
7895 conftest$ac_exeext conftest.$ac_ext
7896 LIBS=$ac_check_lib_save_LIBS
7898 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7899 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7900 if test $ac_cv_lib_dld_shl_load = yes; then
7902 cat >>confdefs.h <<\_ACEOF
7903 #define HAVE_SHL_LOAD 1
7906 LIBADD_DL="$LIBADD_DL -ldld"
7908 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7909 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7910 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 ac_check_lib_save_LIBS=$LIBS
7915 cat >conftest.$ac_ext <<_ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7922 /* Override any gcc2 internal prototype to avoid an error. */
7926 /* We use char because int might match the return type of a gcc2
7927 builtin and then its argument prototype would still apply. */
7937 rm -f conftest.$ac_objext conftest$ac_exeext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7939 (eval $ac_link) 2>conftest.er1
7941 grep -v '^ *+' conftest.er1 >conftest.err
7943 cat conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try='test -z "$ac_c_werror_flag"
7947 || test ! -s conftest.err'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; } &&
7953 { ac_try='test -s conftest$ac_exeext'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; }; then
7959 ac_cv_lib_dl_dlopen=yes
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7964 ac_cv_lib_dl_dlopen=no
7966 rm -f conftest.err conftest.$ac_objext \
7967 conftest$ac_exeext conftest.$ac_ext
7968 LIBS=$ac_check_lib_save_LIBS
7970 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7971 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7972 if test $ac_cv_lib_dl_dlopen = yes; then
7974 cat >>confdefs.h <<\_ACEOF
7975 #define HAVE_LIBDL 1
7978 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7980 cat >conftest.$ac_ext <<_ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7998 rm -f conftest.$ac_objext conftest$ac_exeext
7999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8000 (eval $ac_link) 2>conftest.er1
8002 grep -v '^ *+' conftest.er1 >conftest.err
8004 cat conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } &&
8007 { ac_try='test -z "$ac_c_werror_flag"
8008 || test ! -s conftest.err'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; } &&
8014 { ac_try='test -s conftest$ac_exeext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8021 cat >>confdefs.h <<\_ACEOF
8022 #define HAVE_LIBDL 1
8024 libltdl_cv_func_dlopen="yes"
8026 echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8029 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8030 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8031 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8032 echo $ECHO_N "(cached) $ECHO_C" >&6
8034 ac_check_lib_save_LIBS=$LIBS
8036 cat >conftest.$ac_ext <<_ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h. */
8043 /* Override any gcc2 internal prototype to avoid an error. */
8047 /* We use char because int might match the return type of a gcc2
8048 builtin and then its argument prototype would still apply. */
8058 rm -f conftest.$ac_objext conftest$ac_exeext
8059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8060 (eval $ac_link) 2>conftest.er1
8062 grep -v '^ *+' conftest.er1 >conftest.err
8064 cat conftest.err >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } &&
8067 { ac_try='test -z "$ac_c_werror_flag"
8068 || test ! -s conftest.err'
8069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }; } &&
8074 { ac_try='test -s conftest$ac_exeext'
8075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); }; }; then
8080 ac_cv_lib_svld_dlopen=yes
8082 echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8085 ac_cv_lib_svld_dlopen=no
8087 rm -f conftest.err conftest.$ac_objext \
8088 conftest$ac_exeext conftest.$ac_ext
8089 LIBS=$ac_check_lib_save_LIBS
8091 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8092 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8093 if test $ac_cv_lib_svld_dlopen = yes; then
8095 cat >>confdefs.h <<\_ACEOF
8096 #define HAVE_LIBDL 1
8099 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8101 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8102 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8103 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8106 ac_check_lib_save_LIBS=$LIBS
8108 cat >conftest.$ac_ext <<_ACEOF
8111 cat confdefs.h >>conftest.$ac_ext
8112 cat >>conftest.$ac_ext <<_ACEOF
8113 /* end confdefs.h. */
8115 /* Override any gcc2 internal prototype to avoid an error. */
8119 /* We use char because int might match the return type of a gcc2
8120 builtin and then its argument prototype would still apply. */
8130 rm -f conftest.$ac_objext conftest$ac_exeext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8132 (eval $ac_link) 2>conftest.er1
8134 grep -v '^ *+' conftest.er1 >conftest.err
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } &&
8139 { ac_try='test -z "$ac_c_werror_flag"
8140 || test ! -s conftest.err'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; } &&
8146 { ac_try='test -s conftest$ac_exeext'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_cv_lib_dld_dld_link=yes
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8157 ac_cv_lib_dld_dld_link=no
8159 rm -f conftest.err conftest.$ac_objext \
8160 conftest$ac_exeext conftest.$ac_ext
8161 LIBS=$ac_check_lib_save_LIBS
8163 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8164 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8165 if test $ac_cv_lib_dld_dld_link = yes; then
8167 cat >>confdefs.h <<\_ACEOF
8171 LIBADD_DL="$LIBADD_DL -ldld"
8173 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8174 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8175 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 cat >conftest.$ac_ext <<_ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h. */
8184 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8186 #define _dyld_func_lookup innocuous__dyld_func_lookup
8188 /* System header to define __stub macros and hopefully few prototypes,
8189 which can conflict with char _dyld_func_lookup (); below.
8190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8191 <limits.h> exists even on freestanding compilers. */
8194 # include <limits.h>
8196 # include <assert.h>
8199 #undef _dyld_func_lookup
8201 /* Override any gcc2 internal prototype to avoid an error. */
8206 /* We use char because int might match the return type of a gcc2
8207 builtin and then its argument prototype would still apply. */
8208 char _dyld_func_lookup ();
8209 /* The GNU C library defines this for functions which it implements
8210 to always fail with ENOSYS. Some functions are actually named
8211 something starting with __ and the normal name is an alias. */
8212 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8215 char (*f) () = _dyld_func_lookup;
8224 return f != _dyld_func_lookup;
8229 rm -f conftest.$ac_objext conftest$ac_exeext
8230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8231 (eval $ac_link) 2>conftest.er1
8233 grep -v '^ *+' conftest.er1 >conftest.err
8235 cat conftest.err >&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); } &&
8238 { ac_try='test -z "$ac_c_werror_flag"
8239 || test ! -s conftest.err'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; } &&
8245 { ac_try='test -s conftest$ac_exeext'
8246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); }; }; then
8251 ac_cv_func__dyld_func_lookup=yes
8253 echo "$as_me: failed program was:" >&5
8254 sed 's/^/| /' conftest.$ac_ext >&5
8256 ac_cv_func__dyld_func_lookup=no
8258 rm -f conftest.err conftest.$ac_objext \
8259 conftest$ac_exeext conftest.$ac_ext
8261 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8262 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8263 if test $ac_cv_func__dyld_func_lookup = yes; then
8265 cat >>confdefs.h <<\_ACEOF
8279 rm -f conftest.err conftest.$ac_objext \
8280 conftest$ac_exeext conftest.$ac_ext
8291 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8293 lt_save_LIBS="$LIBS"
8294 LIBS="$LIBS $LIBADD_DL"
8296 for ac_func in dlerror
8298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8299 echo "$as_me:$LINENO: checking for $ac_func" >&5
8300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8301 if eval "test \"\${$as_ac_var+set}\" = set"; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 cat >conftest.$ac_ext <<_ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8312 #define $ac_func innocuous_$ac_func
8314 /* System header to define __stub macros and hopefully few prototypes,
8315 which can conflict with char $ac_func (); below.
8316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8317 <limits.h> exists even on freestanding compilers. */
8320 # include <limits.h>
8322 # include <assert.h>
8327 /* Override any gcc2 internal prototype to avoid an error. */
8332 /* We use char because int might match the return type of a gcc2
8333 builtin and then its argument prototype would still apply. */
8335 /* The GNU C library defines this for functions which it implements
8336 to always fail with ENOSYS. Some functions are actually named
8337 something starting with __ and the normal name is an alias. */
8338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8341 char (*f) () = $ac_func;
8350 return f != $ac_func;
8355 rm -f conftest.$ac_objext conftest$ac_exeext
8356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8357 (eval $ac_link) 2>conftest.er1
8359 grep -v '^ *+' conftest.er1 >conftest.err
8361 cat conftest.err >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } &&
8364 { ac_try='test -z "$ac_c_werror_flag"
8365 || test ! -s conftest.err'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; } &&
8371 { ac_try='test -s conftest$ac_exeext'
8372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8377 eval "$as_ac_var=yes"
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 eval "$as_ac_var=no"
8384 rm -f conftest.err conftest.$ac_objext \
8385 conftest$ac_exeext conftest.$ac_ext
8387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8389 if test `eval echo '${'$as_ac_var'}'` = yes; then
8390 cat >>confdefs.h <<_ACEOF
8391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8397 LIBS="$lt_save_LIBS"
8400 ac_cpp='$CPP $CPPFLAGS'
8401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8407 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8408 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8409 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 ac_cv_sys_symbol_underscore=no
8413 cat > conftest.$ac_ext <<EOF
8414 void nm_test_func(){}
8415 int main(){nm_test_func;return 0;}
8417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8418 (eval $ac_compile) 2>&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; then
8422 # Now try to grab the symbols.
8423 ac_nlist=conftest.nm
8424 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8425 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } && test -s "$ac_nlist"; then
8429 # See whether the symbols have a leading underscore.
8430 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8431 ac_cv_sys_symbol_underscore=yes
8433 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8436 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8440 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8443 echo "configure: failed program was:" >&5
8449 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8450 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8453 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8454 if test x"$libltdl_cv_func_dlopen" = xyes ||
8455 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8456 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8457 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8458 if test "${libltdl_cv_need_uscore+set}" = set; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8461 libltdl_cv_need_uscore=unknown
8463 LIBS="$LIBS $LIBADD_DL"
8464 if test "$cross_compiling" = yes; then :
8465 libltdl_cv_need_uscore=cross
8467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8468 lt_status=$lt_dlunknown
8469 cat > conftest.$ac_ext <<EOF
8470 #line 8470 "configure"
8471 #include "confdefs.h"
8480 # define LT_DLGLOBAL RTLD_GLOBAL
8483 # define LT_DLGLOBAL DL_GLOBAL
8485 # define LT_DLGLOBAL 0
8489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8490 find out it does not work in some platform. */
8491 #ifndef LT_DLLAZY_OR_NOW
8493 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8496 # define LT_DLLAZY_OR_NOW DL_LAZY
8499 # define LT_DLLAZY_OR_NOW RTLD_NOW
8502 # define LT_DLLAZY_OR_NOW DL_NOW
8504 # define LT_DLLAZY_OR_NOW 0
8512 extern "C" void exit (int);
8515 void fnord() { int i=42;}
8518 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8519 int status = $lt_dlunknown;
8523 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8524 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8525 /* dlclose (self); */
8531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8532 (eval $ac_link) 2>&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8536 (./conftest; exit; ) 2>/dev/null
8539 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8540 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8544 # compilation failed
8553 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8554 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8558 if test x"$libltdl_cv_need_uscore" = xyes; then
8560 cat >>confdefs.h <<\_ACEOF
8561 #define NEED_USCORE 1
8567 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8568 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8569 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 # PORTME does your system automatically load deplibs for dlopen?
8573 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8574 # For now, we just catch OSes we know something about -- in the
8575 # future, we'll try test this programmatically.
8576 libltdl_cv_sys_dlopen_deplibs=unknown
8578 aix3*|aix4.1.*|aix4.2.*)
8579 # Unknown whether this is true for these versions of AIX, but
8580 # we want this `case' here to explicitly catch those versions.
8581 libltdl_cv_sys_dlopen_deplibs=unknown
8584 libltdl_cv_sys_dlopen_deplibs=yes
8587 # Assuming the user has installed a libdl from somewhere, this is true
8588 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8589 libltdl_cv_sys_dlopen_deplibs=yes
8591 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8592 # GNU and its variants, using gnu ld.so (Glibc)
8593 libltdl_cv_sys_dlopen_deplibs=yes
8596 libltdl_cv_sys_dlopen_deplibs=yes
8598 irix[12345]*|irix6.[01]*)
8599 # Catch all versions of IRIX before 6.2, and indicate that we don't
8600 # know how it worked for any of those versions.
8601 libltdl_cv_sys_dlopen_deplibs=unknown
8604 # The case above catches anything before 6.2, and it's known that
8605 # at 6.2 and later dlopen does load deplibs.
8606 libltdl_cv_sys_dlopen_deplibs=yes
8609 libltdl_cv_sys_dlopen_deplibs=yes
8612 libltdl_cv_sys_dlopen_deplibs=yes
8615 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8616 # it did *not* use an RPATH in a shared library to find objects the
8617 # library depends on, so we explictly say `no'.
8618 libltdl_cv_sys_dlopen_deplibs=no
8620 osf5.0|osf5.0a|osf5.1)
8621 # dlopen *does* load deplibs and with the right loader patch applied
8622 # it even uses RPATH in a shared library to search for shared objects
8623 # that the library depends on, but there's no easy way to know if that
8624 # patch is installed. Since this is the case, all we can really
8625 # say is unknown -- it depends on the patch being installed. If
8626 # it is, this changes to `yes'. Without it, it would be `no'.
8627 libltdl_cv_sys_dlopen_deplibs=unknown
8630 # the two cases above should catch all versions of osf <= 5.1. Read
8631 # the comments above for what we know about them.
8632 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8633 # is used to find them so we can finally say `yes'.
8634 libltdl_cv_sys_dlopen_deplibs=yes
8637 libltdl_cv_sys_dlopen_deplibs=yes
8642 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8643 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8644 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8646 cat >>confdefs.h <<\_ACEOF
8647 #define LTDL_DLOPEN_DEPLIBS 1
8653 for ac_header in argz.h
8655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8657 echo "$as_me:$LINENO: checking for $ac_header" >&5
8658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
8662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8665 # Is the header compilable?
8666 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8668 cat >conftest.$ac_ext <<_ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 $ac_includes_default
8675 #include <$ac_header>
8677 rm -f conftest.$ac_objext
8678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8679 (eval $ac_compile) 2>conftest.er1
8681 grep -v '^ *+' conftest.er1 >conftest.err
8683 cat conftest.err >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } &&
8686 { ac_try='test -z "$ac_c_werror_flag"
8687 || test ! -s conftest.err'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; } &&
8693 { ac_try='test -s conftest.$ac_objext'
8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8699 ac_header_compiler=yes
8701 echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.$ac_ext >&5
8704 ac_header_compiler=no
8706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8708 echo "${ECHO_T}$ac_header_compiler" >&6
8710 # Is the header present?
8711 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8713 cat >conftest.$ac_ext <<_ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h. */
8719 #include <$ac_header>
8721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8724 grep -v '^ *+' conftest.er1 >conftest.err
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } >/dev/null; then
8729 if test -s conftest.err; then
8730 ac_cpp_err=$ac_c_preproc_warn_flag
8731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8738 if test -z "$ac_cpp_err"; then
8739 ac_header_preproc=yes
8741 echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.$ac_ext >&5
8744 ac_header_preproc=no
8746 rm -f conftest.err conftest.$ac_ext
8747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8748 echo "${ECHO_T}$ac_header_preproc" >&6
8750 # So? What about this header?
8751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8757 ac_header_preproc=yes
8760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8763 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8767 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8774 ## ----------------------------------- ##
8775 ## Report this to llvmbugs@cs.uiuc.edu ##
8776 ## ----------------------------------- ##
8779 sed "s/^/$as_me: WARNING: /" >&2
8782 echo "$as_me:$LINENO: checking for $ac_header" >&5
8783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 eval "$as_ac_Header=\$ac_header_preproc"
8789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8794 cat >>confdefs.h <<_ACEOF
8795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8803 echo "$as_me:$LINENO: checking for error_t" >&5
8804 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8805 if test "${ac_cv_type_error_t+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8808 cat >conftest.$ac_ext <<_ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h. */
8823 if (sizeof (error_t))
8829 rm -f conftest.$ac_objext
8830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8831 (eval $ac_compile) 2>conftest.er1
8833 grep -v '^ *+' conftest.er1 >conftest.err
8835 cat conftest.err >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } &&
8838 { ac_try='test -z "$ac_c_werror_flag"
8839 || test ! -s conftest.err'
8840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; } &&
8845 { ac_try='test -s conftest.$ac_objext'
8846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); }; }; then
8851 ac_cv_type_error_t=yes
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8856 ac_cv_type_error_t=no
8858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8860 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8861 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8862 if test $ac_cv_type_error_t = yes; then
8864 cat >>confdefs.h <<_ACEOF
8865 #define HAVE_ERROR_T 1
8871 cat >>confdefs.h <<\_ACEOF
8883 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8886 echo "$as_me:$LINENO: checking for $ac_func" >&5
8887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8888 if eval "test \"\${$as_ac_var+set}\" = set"; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8891 cat >conftest.$ac_ext <<_ACEOF
8894 cat confdefs.h >>conftest.$ac_ext
8895 cat >>conftest.$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8899 #define $ac_func innocuous_$ac_func
8901 /* System header to define __stub macros and hopefully few prototypes,
8902 which can conflict with char $ac_func (); below.
8903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8904 <limits.h> exists even on freestanding compilers. */
8907 # include <limits.h>
8909 # include <assert.h>
8914 /* Override any gcc2 internal prototype to avoid an error. */
8919 /* We use char because int might match the return type of a gcc2
8920 builtin and then its argument prototype would still apply. */
8922 /* The GNU C library defines this for functions which it implements
8923 to always fail with ENOSYS. Some functions are actually named
8924 something starting with __ and the normal name is an alias. */
8925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8928 char (*f) () = $ac_func;
8937 return f != $ac_func;
8942 rm -f conftest.$ac_objext conftest$ac_exeext
8943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8944 (eval $ac_link) 2>conftest.er1
8946 grep -v '^ *+' conftest.er1 >conftest.err
8948 cat conftest.err >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
8951 { ac_try='test -z "$ac_c_werror_flag"
8952 || test ! -s conftest.err'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; } &&
8958 { ac_try='test -s conftest$ac_exeext'
8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8964 eval "$as_ac_var=yes"
8966 echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8969 eval "$as_ac_var=no"
8971 rm -f conftest.err conftest.$ac_objext \
8972 conftest$ac_exeext conftest.$ac_ext
8974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8976 if test `eval echo '${'$as_ac_var'}'` = yes; then
8977 cat >>confdefs.h <<_ACEOF
8978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9011 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9016 echo "$as_me:$LINENO: checking for $ac_header" >&5
9017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9024 # Is the header compilable?
9025 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9027 cat >conftest.$ac_ext <<_ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9033 $ac_includes_default
9034 #include <$ac_header>
9036 rm -f conftest.$ac_objext
9037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9038 (eval $ac_compile) 2>conftest.er1
9040 grep -v '^ *+' conftest.er1 >conftest.err
9042 cat conftest.err >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } &&
9045 { ac_try='test -z "$ac_c_werror_flag"
9046 || test ! -s conftest.err'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; } &&
9052 { ac_try='test -s conftest.$ac_objext'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; }; then
9058 ac_header_compiler=yes
9060 echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9063 ac_header_compiler=no
9065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9066 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9067 echo "${ECHO_T}$ac_header_compiler" >&6
9069 # Is the header present?
9070 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9072 cat >conftest.$ac_ext <<_ACEOF
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h. */
9078 #include <$ac_header>
9080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9083 grep -v '^ *+' conftest.er1 >conftest.err
9085 cat conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } >/dev/null; then
9088 if test -s conftest.err; then
9089 ac_cpp_err=$ac_c_preproc_warn_flag
9090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9097 if test -z "$ac_cpp_err"; then
9098 ac_header_preproc=yes
9100 echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9103 ac_header_preproc=no
9105 rm -f conftest.err conftest.$ac_ext
9106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9107 echo "${ECHO_T}$ac_header_preproc" >&6
9109 # So? What about this header?
9110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9115 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9116 ac_header_preproc=yes
9119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9122 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9123 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9124 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9125 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9126 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9129 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9130 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9133 ## ----------------------------------- ##
9134 ## Report this to llvmbugs@cs.uiuc.edu ##
9135 ## ----------------------------------- ##
9138 sed "s/^/$as_me: WARNING: /" >&2
9141 echo "$as_me:$LINENO: checking for $ac_header" >&5
9142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 eval "$as_ac_Header=\$ac_header_preproc"
9148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9153 cat >>confdefs.h <<_ACEOF
9154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9165 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9169 echo "$as_me:$LINENO: checking for $ac_header" >&5
9170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9177 # Is the header compilable?
9178 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9180 cat >conftest.$ac_ext <<_ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9186 $ac_includes_default
9187 #include <$ac_header>
9189 rm -f conftest.$ac_objext
9190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9191 (eval $ac_compile) 2>conftest.er1
9193 grep -v '^ *+' conftest.er1 >conftest.err
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try='test -z "$ac_c_werror_flag"
9199 || test ! -s conftest.err'
9200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; } &&
9205 { ac_try='test -s conftest.$ac_objext'
9206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; }; then
9211 ac_header_compiler=yes
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9216 ac_header_compiler=no
9218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9219 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9220 echo "${ECHO_T}$ac_header_compiler" >&6
9222 # Is the header present?
9223 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9225 cat >conftest.$ac_ext <<_ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h. */
9231 #include <$ac_header>
9233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9236 grep -v '^ *+' conftest.er1 >conftest.err
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } >/dev/null; then
9241 if test -s conftest.err; then
9242 ac_cpp_err=$ac_c_preproc_warn_flag
9243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9250 if test -z "$ac_cpp_err"; then
9251 ac_header_preproc=yes
9253 echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9256 ac_header_preproc=no
9258 rm -f conftest.err conftest.$ac_ext
9259 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9260 echo "${ECHO_T}$ac_header_preproc" >&6
9262 # So? What about this header?
9263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9266 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9268 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9269 ac_header_preproc=yes
9272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9273 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9275 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9276 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9277 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9279 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9283 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9286 ## ----------------------------------- ##
9287 ## Report this to llvmbugs@cs.uiuc.edu ##
9288 ## ----------------------------------- ##
9291 sed "s/^/$as_me: WARNING: /" >&2
9294 echo "$as_me:$LINENO: checking for $ac_header" >&5
9295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9299 eval "$as_ac_Header=\$ac_header_preproc"
9301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9306 cat >>confdefs.h <<_ACEOF
9307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9316 for ac_header in string.h strings.h
9318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9320 echo "$as_me:$LINENO: checking for $ac_header" >&5
9321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9328 # Is the header compilable?
9329 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9331 cat >conftest.$ac_ext <<_ACEOF
9334 cat confdefs.h >>conftest.$ac_ext
9335 cat >>conftest.$ac_ext <<_ACEOF
9336 /* end confdefs.h. */
9337 $ac_includes_default
9338 #include <$ac_header>
9340 rm -f conftest.$ac_objext
9341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9342 (eval $ac_compile) 2>conftest.er1
9344 grep -v '^ *+' conftest.er1 >conftest.err
9346 cat conftest.err >&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } &&
9349 { ac_try='test -z "$ac_c_werror_flag"
9350 || test ! -s conftest.err'
9351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; } &&
9356 { ac_try='test -s conftest.$ac_objext'
9357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; }; then
9362 ac_header_compiler=yes
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9367 ac_header_compiler=no
9369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9371 echo "${ECHO_T}$ac_header_compiler" >&6
9373 # Is the header present?
9374 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9376 cat >conftest.$ac_ext <<_ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9382 #include <$ac_header>
9384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9387 grep -v '^ *+' conftest.er1 >conftest.err
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } >/dev/null; then
9392 if test -s conftest.err; then
9393 ac_cpp_err=$ac_c_preproc_warn_flag
9394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9401 if test -z "$ac_cpp_err"; then
9402 ac_header_preproc=yes
9404 echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9407 ac_header_preproc=no
9409 rm -f conftest.err conftest.$ac_ext
9410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9411 echo "${ECHO_T}$ac_header_preproc" >&6
9413 # So? What about this header?
9414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9420 ac_header_preproc=yes
9423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9437 ## ----------------------------------- ##
9438 ## Report this to llvmbugs@cs.uiuc.edu ##
9439 ## ----------------------------------- ##
9442 sed "s/^/$as_me: WARNING: /" >&2
9445 echo "$as_me:$LINENO: checking for $ac_header" >&5
9446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9450 eval "$as_ac_Header=\$ac_header_preproc"
9452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9457 cat >>confdefs.h <<_ACEOF
9458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9468 for ac_func in strchr index
9470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9471 echo "$as_me:$LINENO: checking for $ac_func" >&5
9472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9473 if eval "test \"\${$as_ac_var+set}\" = set"; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9476 cat >conftest.$ac_ext <<_ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9484 #define $ac_func innocuous_$ac_func
9486 /* System header to define __stub macros and hopefully few prototypes,
9487 which can conflict with char $ac_func (); below.
9488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9489 <limits.h> exists even on freestanding compilers. */
9492 # include <limits.h>
9494 # include <assert.h>
9499 /* Override any gcc2 internal prototype to avoid an error. */
9504 /* We use char because int might match the return type of a gcc2
9505 builtin and then its argument prototype would still apply. */
9507 /* The GNU C library defines this for functions which it implements
9508 to always fail with ENOSYS. Some functions are actually named
9509 something starting with __ and the normal name is an alias. */
9510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9513 char (*f) () = $ac_func;
9522 return f != $ac_func;
9527 rm -f conftest.$ac_objext conftest$ac_exeext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529 (eval $ac_link) 2>conftest.er1
9531 grep -v '^ *+' conftest.er1 >conftest.err
9533 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
9536 { ac_try='test -z "$ac_c_werror_flag"
9537 || test ! -s conftest.err'
9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; } &&
9543 { ac_try='test -s conftest$ac_exeext'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
9549 eval "$as_ac_var=yes"
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 eval "$as_ac_var=no"
9556 rm -f conftest.err conftest.$ac_objext \
9557 conftest$ac_exeext conftest.$ac_ext
9559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9561 if test `eval echo '${'$as_ac_var'}'` = yes; then
9562 cat >>confdefs.h <<_ACEOF
9563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9571 for ac_func in strrchr rindex
9573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9574 echo "$as_me:$LINENO: checking for $ac_func" >&5
9575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9576 if eval "test \"\${$as_ac_var+set}\" = set"; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9579 cat >conftest.$ac_ext <<_ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9587 #define $ac_func innocuous_$ac_func
9589 /* System header to define __stub macros and hopefully few prototypes,
9590 which can conflict with char $ac_func (); below.
9591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9592 <limits.h> exists even on freestanding compilers. */
9595 # include <limits.h>
9597 # include <assert.h>
9602 /* Override any gcc2 internal prototype to avoid an error. */
9607 /* We use char because int might match the return type of a gcc2
9608 builtin and then its argument prototype would still apply. */
9610 /* The GNU C library defines this for functions which it implements
9611 to always fail with ENOSYS. Some functions are actually named
9612 something starting with __ and the normal name is an alias. */
9613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9616 char (*f) () = $ac_func;
9625 return f != $ac_func;
9630 rm -f conftest.$ac_objext conftest$ac_exeext
9631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9632 (eval $ac_link) 2>conftest.er1
9634 grep -v '^ *+' conftest.er1 >conftest.err
9636 cat conftest.err >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } &&
9639 { ac_try='test -z "$ac_c_werror_flag"
9640 || test ! -s conftest.err'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; } &&
9646 { ac_try='test -s conftest$ac_exeext'
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; }; then
9652 eval "$as_ac_var=yes"
9654 echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9657 eval "$as_ac_var=no"
9659 rm -f conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9664 if test `eval echo '${'$as_ac_var'}'` = yes; then
9665 cat >>confdefs.h <<_ACEOF
9666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9674 for ac_func in memcpy bcopy
9676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9677 echo "$as_me:$LINENO: checking for $ac_func" >&5
9678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9679 if eval "test \"\${$as_ac_var+set}\" = set"; then
9680 echo $ECHO_N "(cached) $ECHO_C" >&6
9682 cat >conftest.$ac_ext <<_ACEOF
9685 cat confdefs.h >>conftest.$ac_ext
9686 cat >>conftest.$ac_ext <<_ACEOF
9687 /* end confdefs.h. */
9688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9690 #define $ac_func innocuous_$ac_func
9692 /* System header to define __stub macros and hopefully few prototypes,
9693 which can conflict with char $ac_func (); below.
9694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9695 <limits.h> exists even on freestanding compilers. */
9698 # include <limits.h>
9700 # include <assert.h>
9705 /* Override any gcc2 internal prototype to avoid an error. */
9710 /* We use char because int might match the return type of a gcc2
9711 builtin and then its argument prototype would still apply. */
9713 /* The GNU C library defines this for functions which it implements
9714 to always fail with ENOSYS. Some functions are actually named
9715 something starting with __ and the normal name is an alias. */
9716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9719 char (*f) () = $ac_func;
9728 return f != $ac_func;
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9735 (eval $ac_link) 2>conftest.er1
9737 grep -v '^ *+' conftest.er1 >conftest.err
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } &&
9742 { ac_try='test -z "$ac_c_werror_flag"
9743 || test ! -s conftest.err'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try='test -s conftest$ac_exeext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 eval "$as_ac_var=yes"
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9760 eval "$as_ac_var=no"
9762 rm -f conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9767 if test `eval echo '${'$as_ac_var'}'` = yes; then
9768 cat >>confdefs.h <<_ACEOF
9769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9777 for ac_func in memmove strcmp
9779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9780 echo "$as_me:$LINENO: checking for $ac_func" >&5
9781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9782 if eval "test \"\${$as_ac_var+set}\" = set"; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 cat >conftest.$ac_ext <<_ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h. */
9791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9793 #define $ac_func innocuous_$ac_func
9795 /* System header to define __stub macros and hopefully few prototypes,
9796 which can conflict with char $ac_func (); below.
9797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9798 <limits.h> exists even on freestanding compilers. */
9801 # include <limits.h>
9803 # include <assert.h>
9808 /* Override any gcc2 internal prototype to avoid an error. */
9813 /* We use char because int might match the return type of a gcc2
9814 builtin and then its argument prototype would still apply. */
9816 /* The GNU C library defines this for functions which it implements
9817 to always fail with ENOSYS. Some functions are actually named
9818 something starting with __ and the normal name is an alias. */
9819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9822 char (*f) () = $ac_func;
9831 return f != $ac_func;
9836 rm -f conftest.$ac_objext conftest$ac_exeext
9837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9838 (eval $ac_link) 2>conftest.er1
9840 grep -v '^ *+' conftest.er1 >conftest.err
9842 cat conftest.err >&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); } &&
9845 { ac_try='test -z "$ac_c_werror_flag"
9846 || test ! -s conftest.err'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; } &&
9852 { ac_try='test -s conftest$ac_exeext'
9853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); }; }; then
9858 eval "$as_ac_var=yes"
9860 echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.$ac_ext >&5
9863 eval "$as_ac_var=no"
9865 rm -f conftest.err conftest.$ac_objext \
9866 conftest$ac_exeext conftest.$ac_ext
9868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9870 if test `eval echo '${'$as_ac_var'}'` = yes; then
9871 cat >>confdefs.h <<_ACEOF
9872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9881 for ac_func in closedir opendir readdir
9883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9884 echo "$as_me:$LINENO: checking for $ac_func" >&5
9885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9886 if eval "test \"\${$as_ac_var+set}\" = set"; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 cat >conftest.$ac_ext <<_ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h. */
9895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9897 #define $ac_func innocuous_$ac_func
9899 /* System header to define __stub macros and hopefully few prototypes,
9900 which can conflict with char $ac_func (); below.
9901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9902 <limits.h> exists even on freestanding compilers. */
9905 # include <limits.h>
9907 # include <assert.h>
9912 /* Override any gcc2 internal prototype to avoid an error. */
9917 /* We use char because int might match the return type of a gcc2
9918 builtin and then its argument prototype would still apply. */
9920 /* The GNU C library defines this for functions which it implements
9921 to always fail with ENOSYS. Some functions are actually named
9922 something starting with __ and the normal name is an alias. */
9923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9926 char (*f) () = $ac_func;
9935 return f != $ac_func;
9940 rm -f conftest.$ac_objext conftest$ac_exeext
9941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9942 (eval $ac_link) 2>conftest.er1
9944 grep -v '^ *+' conftest.er1 >conftest.err
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try='test -z "$ac_c_werror_flag"
9950 || test ! -s conftest.err'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest$ac_exeext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9962 eval "$as_ac_var=yes"
9964 echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9967 eval "$as_ac_var=no"
9969 rm -f conftest.err conftest.$ac_objext \
9970 conftest$ac_exeext conftest.$ac_ext
9972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9974 if test `eval echo '${'$as_ac_var'}'` = yes; then
9975 cat >>confdefs.h <<_ACEOF
9976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9983 # Check whether --enable-shared or --disable-shared was given.
9984 if test "${enable_shared+set}" = set; then
9985 enableval="$enable_shared"
9986 p=${PACKAGE-default}
9988 yes) enable_shared=yes ;;
9989 no) enable_shared=no ;;
9992 # Look at the argument we got. We use all the common list separators.
9993 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9994 for pkg in $enableval; do
9996 if test "X$pkg" = "X$p"; then
10007 # Check whether --enable-static or --disable-static was given.
10008 if test "${enable_static+set}" = set; then
10009 enableval="$enable_static"
10010 p=${PACKAGE-default}
10012 yes) enable_static=yes ;;
10013 no) enable_static=no ;;
10016 # Look at the argument we got. We use all the common list separators.
10017 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10018 for pkg in $enableval; do
10020 if test "X$pkg" = "X$p"; then
10031 # Check whether --enable-fast-install or --disable-fast-install was given.
10032 if test "${enable_fast_install+set}" = set; then
10033 enableval="$enable_fast_install"
10034 p=${PACKAGE-default}
10036 yes) enable_fast_install=yes ;;
10037 no) enable_fast_install=no ;;
10039 enable_fast_install=no
10040 # Look at the argument we got. We use all the common list separators.
10041 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10042 for pkg in $enableval; do
10044 if test "X$pkg" = "X$p"; then
10045 enable_fast_install=yes
10052 enable_fast_install=yes
10055 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10056 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10057 if test "${lt_cv_path_SED+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10060 # Loop through the user's path and test for sed and gsed.
10061 # Then use that list of sed's as ones to test for truncation.
10062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10063 for as_dir in $PATH
10066 test -z "$as_dir" && as_dir=.
10067 for lt_ac_prog in sed gsed; do
10068 for ac_exec_ext in '' $ac_executable_extensions; do
10069 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10070 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10077 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10078 # along with /bin/sed that truncates output.
10079 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10080 test ! -f $lt_ac_sed && break
10081 cat /dev/null > conftest.in
10083 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10084 # Check for GNU sed and select it if it is found.
10085 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10086 lt_cv_path_SED=$lt_ac_sed
10090 cat conftest.in conftest.in >conftest.tmp
10091 mv conftest.tmp conftest.in
10092 cp conftest.in conftest.nl
10094 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10095 cmp -s conftest.out conftest.nl || break
10096 # 10000 chars as input seems more than enough
10097 test $lt_ac_count -gt 10 && break
10098 lt_ac_count=`expr $lt_ac_count + 1`
10099 if test $lt_ac_count -gt $lt_ac_max; then
10100 lt_ac_max=$lt_ac_count
10101 lt_cv_path_SED=$lt_ac_sed
10108 SED=$lt_cv_path_SED
10109 echo "$as_me:$LINENO: result: $SED" >&5
10110 echo "${ECHO_T}$SED" >&6
10113 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10114 if test "${with_gnu_ld+set}" = set; then
10115 withval="$with_gnu_ld"
10116 test "$withval" = no || with_gnu_ld=yes
10121 if test "$GCC" = yes; then
10122 # Check if gcc -print-prog-name=ld gives a path.
10123 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10124 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10127 # gcc leaves a trailing carriage return which upsets mingw
10128 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10130 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10133 # Accept absolute paths.
10135 re_direlt='/[^/][^/]*/\.\./'
10136 # Canonicalize the pathname of ld
10137 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10138 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10139 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10141 test -z "$LD" && LD="$ac_prog"
10144 # If it fails, then pretend we aren't using GCC.
10148 # If it is relative, then search for the first ld in PATH.
10149 with_gnu_ld=unknown
10152 elif test "$with_gnu_ld" = yes; then
10153 echo "$as_me:$LINENO: checking for GNU ld" >&5
10154 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10156 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10157 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10159 if test "${lt_cv_path_LD+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10162 if test -z "$LD"; then
10163 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10164 for ac_dir in $PATH; do
10166 test -z "$ac_dir" && ac_dir=.
10167 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10168 lt_cv_path_LD="$ac_dir/$ac_prog"
10169 # Check to see if the program is GNU ld. I'd rather use --version,
10170 # but apparently some GNU ld's only accept -v.
10171 # Break only if it was the GNU/non-GNU ld that we prefer.
10172 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10173 *GNU* | *'with BFD'*)
10174 test "$with_gnu_ld" != no && break
10177 test "$with_gnu_ld" != yes && break
10184 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10188 LD="$lt_cv_path_LD"
10189 if test -n "$LD"; then
10190 echo "$as_me:$LINENO: result: $LD" >&5
10191 echo "${ECHO_T}$LD" >&6
10193 echo "$as_me:$LINENO: result: no" >&5
10194 echo "${ECHO_T}no" >&6
10196 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10197 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10198 { (exit 1); exit 1; }; }
10199 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10200 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10201 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10204 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10205 case `$LD -v 2>&1 </dev/null` in
10206 *GNU* | *'with BFD'*)
10207 lt_cv_prog_gnu_ld=yes
10210 lt_cv_prog_gnu_ld=no
10214 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10215 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10216 with_gnu_ld=$lt_cv_prog_gnu_ld
10219 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10220 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10221 if test "${lt_cv_ld_reload_flag+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 lt_cv_ld_reload_flag='-r'
10226 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10227 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10228 reload_flag=$lt_cv_ld_reload_flag
10229 case $reload_flag in
10231 *) reload_flag=" $reload_flag" ;;
10233 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10236 if test "$GCC" = yes; then
10237 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10239 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10244 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10245 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10246 if test "${lt_cv_deplibs_check_method+set}" = set; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 lt_cv_file_magic_cmd='$MAGIC_CMD'
10250 lt_cv_file_magic_test_file=
10251 lt_cv_deplibs_check_method='unknown'
10252 # Need to set the preceding variable on all platforms that support
10253 # interlibrary dependencies.
10254 # 'none' -- dependencies not supported.
10255 # `unknown' -- same as none, but documents that we really don't know.
10256 # 'pass_all' -- all dependencies passed with no checks.
10257 # 'test_compile' -- check by making test program.
10258 # 'file_magic [[regex]]' -- check by looking for files in library path
10259 # which responds to the $file_magic_cmd with a given extended regex.
10260 # If you have `file' or equivalent on your system and you're not sure
10261 # whether `pass_all' will *always* work, you probably want this one.
10265 lt_cv_deplibs_check_method=pass_all
10269 lt_cv_deplibs_check_method=pass_all
10273 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10274 lt_cv_file_magic_cmd='/usr/bin/file -L'
10275 lt_cv_file_magic_test_file=/shlib/libc.so
10279 # func_win32_libid is a shell function defined in ltmain.sh
10280 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10281 lt_cv_file_magic_cmd='func_win32_libid'
10285 # Base MSYS/MinGW do not provide the 'file' command needed by
10286 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10287 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10288 lt_cv_file_magic_cmd='$OBJDUMP -f'
10291 darwin* | rhapsody*)
10292 lt_cv_deplibs_check_method=pass_all
10295 freebsd* | kfreebsd*-gnu)
10296 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10299 # Not sure whether the presence of OpenBSD here was a mistake.
10300 # Let's accept both of them until this is cleared up.
10301 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10302 lt_cv_file_magic_cmd=/usr/bin/file
10303 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10307 lt_cv_deplibs_check_method=pass_all
10312 lt_cv_deplibs_check_method=pass_all
10315 hpux10.20* | hpux11*)
10316 lt_cv_file_magic_cmd=/usr/bin/file
10317 case "$host_cpu" in
10319 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10320 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10323 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]'
10324 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10327 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10328 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10333 irix5* | irix6* | nonstopux*)
10335 *-32|*"-32 ") libmagic=32-bit;;
10336 *-n32|*"-n32 ") libmagic=N32;;
10337 *-64|*"-64 ") libmagic=64-bit;;
10338 *) libmagic=never-match;;
10340 lt_cv_deplibs_check_method=pass_all
10343 # This must be Linux ELF.
10345 lt_cv_deplibs_check_method=pass_all
10349 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10358 lt_cv_file_magic_cmd=/usr/bin/file
10359 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10363 lt_cv_deplibs_check_method=unknown
10367 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10374 osf3* | osf4* | osf5*)
10375 lt_cv_deplibs_check_method=pass_all
10379 lt_cv_deplibs_check_method=pass_all
10383 lt_cv_deplibs_check_method=pass_all
10386 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10387 case $host_vendor in
10389 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]'
10390 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10393 lt_cv_deplibs_check_method=pass_all
10396 lt_cv_file_magic_cmd='/bin/file'
10397 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10400 lt_cv_file_magic_cmd='/bin/file'
10401 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10402 lt_cv_file_magic_test_file=/lib/libc.so
10405 lt_cv_deplibs_check_method=pass_all
10410 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10411 lt_cv_deplibs_check_method=pass_all
10416 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10417 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10418 file_magic_cmd=$lt_cv_file_magic_cmd
10419 deplibs_check_method=$lt_cv_deplibs_check_method
10420 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10424 # If no C compiler was specified, use CC.
10427 # Allow CC to be a program name with arguments.
10430 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10431 if test "${enable_libtool_lock+set}" = set; then
10432 enableval="$enable_libtool_lock"
10435 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10437 # Some flags need to be propagated to the compiler or linker for good
10441 # Find out which ABI we are using.
10442 echo 'int i;' > conftest.$ac_ext
10443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444 (eval $ac_compile) 2>&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); }; then
10448 case `/usr/bin/file conftest.$ac_objext` in
10450 HPUX_IA64_MODE="32"
10453 HPUX_IA64_MODE="64"
10460 # Find out which ABI we are using.
10461 echo '#line 10461 "configure"' > conftest.$ac_ext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10463 (eval $ac_compile) 2>&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; then
10467 if test "$lt_cv_prog_gnu_ld" = yes; then
10468 case `/usr/bin/file conftest.$ac_objext` in
10470 LD="${LD-ld} -melf32bsmip"
10473 LD="${LD-ld} -melf32bmipn32"
10476 LD="${LD-ld} -melf64bmip"
10480 case `/usr/bin/file conftest.$ac_objext` in
10496 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10497 # Find out which ABI we are using.
10498 echo 'int i;' > conftest.$ac_ext
10499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10500 (eval $ac_compile) 2>&5
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); }; then
10504 case "`/usr/bin/file conftest.o`" in
10508 LD="${LD-ld} -m elf_i386"
10510 ppc64-*linux*|powerpc64-*linux*)
10511 LD="${LD-ld} -m elf32ppclinux"
10514 LD="${LD-ld} -m elf_s390"
10517 LD="${LD-ld} -m elf32_sparc"
10524 LD="${LD-ld} -m elf_x86_64"
10526 ppc*-*linux*|powerpc*-*linux*)
10527 LD="${LD-ld} -m elf64ppc"
10530 LD="${LD-ld} -m elf64_s390"
10533 LD="${LD-ld} -m elf64_sparc"
10543 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10544 SAVE_CFLAGS="$CFLAGS"
10545 CFLAGS="$CFLAGS -belf"
10546 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10547 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10548 if test "${lt_cv_cc_needs_belf+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 ac_cpp='$CPP $CPPFLAGS'
10553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10557 cat >conftest.$ac_ext <<_ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h. */
10565 rm -f conftest.$ac_objext conftest$ac_exeext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10567 (eval $ac_link) 2>conftest.er1
10569 grep -v '^ *+' conftest.er1 >conftest.err
10571 cat conftest.err >&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } &&
10574 { ac_try='test -z "$ac_c_werror_flag"
10575 || test ! -s conftest.err'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; } &&
10581 { ac_try='test -s conftest$ac_exeext'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; }; then
10587 lt_cv_cc_needs_belf=yes
10589 echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10592 lt_cv_cc_needs_belf=no
10594 rm -f conftest.err conftest.$ac_objext \
10595 conftest$ac_exeext conftest.$ac_ext
10597 ac_cpp='$CPP $CPPFLAGS'
10598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10603 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10604 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10605 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10606 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10607 CFLAGS="$SAVE_CFLAGS"
10613 need_locks="$enable_libtool_lock"
10618 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10619 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10620 (test "X$CXX" != "Xg++"))) ; then
10622 ac_cpp='$CXXCPP $CPPFLAGS'
10623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10626 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10627 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10628 if test -z "$CXXCPP"; then
10629 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10632 # Double quotes because CXXCPP needs to be expanded
10633 for CXXCPP in "$CXX -E" "/lib/cpp"
10635 ac_preproc_ok=false
10636 for ac_cxx_preproc_warn_flag in '' yes
10638 # Use a header file that comes with gcc, so configuring glibc
10639 # with a fresh cross-compiler works.
10640 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10641 # <limits.h> exists even on freestanding compilers.
10642 # On the NeXT, cc -E runs the code through the compiler's parser,
10643 # not just through cpp. "Syntax error" is here to catch this case.
10644 cat >conftest.$ac_ext <<_ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10651 # include <limits.h>
10653 # include <assert.h>
10657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10660 grep -v '^ *+' conftest.er1 >conftest.err
10662 cat conftest.err >&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } >/dev/null; then
10665 if test -s conftest.err; then
10666 ac_cpp_err=$ac_cxx_preproc_warn_flag
10667 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10674 if test -z "$ac_cpp_err"; then
10677 echo "$as_me: failed program was:" >&5
10678 sed 's/^/| /' conftest.$ac_ext >&5
10680 # Broken: fails on valid input.
10683 rm -f conftest.err conftest.$ac_ext
10685 # OK, works on sane cases. Now check whether non-existent headers
10686 # can be detected and how.
10687 cat >conftest.$ac_ext <<_ACEOF
10690 cat confdefs.h >>conftest.$ac_ext
10691 cat >>conftest.$ac_ext <<_ACEOF
10692 /* end confdefs.h. */
10693 #include <ac_nonexistent.h>
10695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10698 grep -v '^ *+' conftest.er1 >conftest.err
10700 cat conftest.err >&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } >/dev/null; then
10703 if test -s conftest.err; then
10704 ac_cpp_err=$ac_cxx_preproc_warn_flag
10705 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10712 if test -z "$ac_cpp_err"; then
10713 # Broken: success on invalid input.
10716 echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10719 # Passes both tests.
10723 rm -f conftest.err conftest.$ac_ext
10726 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10727 rm -f conftest.err conftest.$ac_ext
10728 if $ac_preproc_ok; then
10733 ac_cv_prog_CXXCPP=$CXXCPP
10736 CXXCPP=$ac_cv_prog_CXXCPP
10738 ac_cv_prog_CXXCPP=$CXXCPP
10740 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10741 echo "${ECHO_T}$CXXCPP" >&6
10742 ac_preproc_ok=false
10743 for ac_cxx_preproc_warn_flag in '' yes
10745 # Use a header file that comes with gcc, so configuring glibc
10746 # with a fresh cross-compiler works.
10747 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10748 # <limits.h> exists even on freestanding compilers.
10749 # On the NeXT, cc -E runs the code through the compiler's parser,
10750 # not just through cpp. "Syntax error" is here to catch this case.
10751 cat >conftest.$ac_ext <<_ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10758 # include <limits.h>
10760 # include <assert.h>
10764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10767 grep -v '^ *+' conftest.er1 >conftest.err
10769 cat conftest.err >&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } >/dev/null; then
10772 if test -s conftest.err; then
10773 ac_cpp_err=$ac_cxx_preproc_warn_flag
10774 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10781 if test -z "$ac_cpp_err"; then
10784 echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10787 # Broken: fails on valid input.
10790 rm -f conftest.err conftest.$ac_ext
10792 # OK, works on sane cases. Now check whether non-existent headers
10793 # can be detected and how.
10794 cat >conftest.$ac_ext <<_ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10800 #include <ac_nonexistent.h>
10802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10805 grep -v '^ *+' conftest.er1 >conftest.err
10807 cat conftest.err >&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } >/dev/null; then
10810 if test -s conftest.err; then
10811 ac_cpp_err=$ac_cxx_preproc_warn_flag
10812 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10819 if test -z "$ac_cpp_err"; then
10820 # Broken: success on invalid input.
10823 echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.$ac_ext >&5
10826 # Passes both tests.
10830 rm -f conftest.err conftest.$ac_ext
10833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10834 rm -f conftest.err conftest.$ac_ext
10835 if $ac_preproc_ok; then
10838 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10839 See \`config.log' for more details." >&5
10840 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10841 See \`config.log' for more details." >&2;}
10842 { (exit 1); exit 1; }; }
10846 ac_cpp='$CXXCPP $CPPFLAGS'
10847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10855 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10856 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10857 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10858 if test -n "$ac_tool_prefix"; then
10859 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10861 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10862 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10863 echo "$as_me:$LINENO: checking for $ac_word" >&5
10864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10865 if test "${ac_cv_prog_F77+set}" = set; then
10866 echo $ECHO_N "(cached) $ECHO_C" >&6
10868 if test -n "$F77"; then
10869 ac_cv_prog_F77="$F77" # Let the user override the test.
10871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872 for as_dir in $PATH
10875 test -z "$as_dir" && as_dir=.
10876 for ac_exec_ext in '' $ac_executable_extensions; do
10877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10878 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10887 F77=$ac_cv_prog_F77
10888 if test -n "$F77"; then
10889 echo "$as_me:$LINENO: result: $F77" >&5
10890 echo "${ECHO_T}$F77" >&6
10892 echo "$as_me:$LINENO: result: no" >&5
10893 echo "${ECHO_T}no" >&6
10896 test -n "$F77" && break
10899 if test -z "$F77"; then
10901 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10903 # Extract the first word of "$ac_prog", so it can be a program name with args.
10904 set dummy $ac_prog; ac_word=$2
10905 echo "$as_me:$LINENO: checking for $ac_word" >&5
10906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10907 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10910 if test -n "$ac_ct_F77"; then
10911 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914 for as_dir in $PATH
10917 test -z "$as_dir" && as_dir=.
10918 for ac_exec_ext in '' $ac_executable_extensions; do
10919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10920 ac_cv_prog_ac_ct_F77="$ac_prog"
10921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10929 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10930 if test -n "$ac_ct_F77"; then
10931 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10932 echo "${ECHO_T}$ac_ct_F77" >&6
10934 echo "$as_me:$LINENO: result: no" >&5
10935 echo "${ECHO_T}no" >&6
10938 test -n "$ac_ct_F77" && break
10945 # Provide some information about the compiler.
10946 echo "$as_me:10946:" \
10947 "checking for Fortran 77 compiler version" >&5
10948 ac_compiler=`set X $ac_compile; echo $2`
10949 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10950 (eval $ac_compiler --version </dev/null >&5) 2>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }
10954 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10955 (eval $ac_compiler -v </dev/null >&5) 2>&5
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }
10959 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10960 (eval $ac_compiler -V </dev/null >&5) 2>&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }
10966 # If we don't use `.F' as extension, the preprocessor is not run on the
10967 # input file. (Note that this only needs to work for GNU compilers.)
10968 ac_save_ext=$ac_ext
10970 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10971 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10972 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 cat >conftest.$ac_ext <<_ACEOF
10983 rm -f conftest.$ac_objext
10984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10985 (eval $ac_compile) 2>conftest.er1
10987 grep -v '^ *+' conftest.er1 >conftest.err
10989 cat conftest.err >&5
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } &&
10992 { ac_try='test -z "$ac_f77_werror_flag"
10993 || test ! -s conftest.err'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; } &&
10999 { ac_try='test -s conftest.$ac_objext'
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; }; then
11005 ac_compiler_gnu=yes
11007 echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11013 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11016 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11017 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11018 ac_ext=$ac_save_ext
11019 ac_test_FFLAGS=${FFLAGS+set}
11020 ac_save_FFLAGS=$FFLAGS
11022 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11023 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11024 if test "${ac_cv_prog_f77_g+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11028 cat >conftest.$ac_ext <<_ACEOF
11033 rm -f conftest.$ac_objext
11034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11035 (eval $ac_compile) 2>conftest.er1
11037 grep -v '^ *+' conftest.er1 >conftest.err
11039 cat conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try='test -z "$ac_f77_werror_flag"
11043 || test ! -s conftest.err'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; } &&
11049 { ac_try='test -s conftest.$ac_objext'
11050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11051 (eval $ac_try) 2>&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; }; then
11055 ac_cv_prog_f77_g=yes
11057 echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11060 ac_cv_prog_f77_g=no
11062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11065 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11066 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11067 if test "$ac_test_FFLAGS" = set; then
11068 FFLAGS=$ac_save_FFLAGS
11069 elif test $ac_cv_prog_f77_g = yes; then
11070 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11076 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11083 G77=`test $ac_compiler_gnu = yes && echo yes`
11085 ac_cpp='$CPP $CPPFLAGS'
11086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11092 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11094 # find the maximum length of command line arguments
11095 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11096 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11097 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11105 # On DJGPP, this test can blow up pretty badly due to problems in libc
11106 # (any single argument exceeding 2000 bytes causes a buffer overrun
11107 # during glob expansion). Even if it were fixed, the result of this
11108 # check would be larger than it should be.
11109 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11113 # Under GNU Hurd, this test is not required because there is
11114 # no limit to the length of command line arguments.
11115 # Libtool will interpret -1 as no limit whatsoever
11116 lt_cv_sys_max_cmd_len=-1;
11120 # On Win9x/ME, this test blows up -- it succeeds, but takes
11121 # about 5 minutes as the teststring grows exponentially.
11122 # Worse, since 9x/ME are not pre-emptively multitasking,
11123 # you end up with a "frozen" computer, even though with patience
11124 # the test eventually succeeds (with a max line length of 256k).
11125 # Instead, let's just punt: use the minimum linelength reported by
11126 # all of the supported platforms: 8192 (on NT/2K/XP).
11127 lt_cv_sys_max_cmd_len=8192;
11131 # On AmigaOS with pdksh, this test takes hours, literally.
11132 # So we just punt and use a minimum line length of 8192.
11133 lt_cv_sys_max_cmd_len=8192;
11136 netbsd* | freebsd* | openbsd* | darwin* )
11137 # This has been around since 386BSD, at least. Likely further.
11138 if test -x /sbin/sysctl; then
11139 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11140 elif test -x /usr/sbin/sysctl; then
11141 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11143 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11145 # And add a safety zone
11146 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11150 # If test is not a shell built-in, we'll probably end up computing a
11151 # maximum length that is only half of the actual maximum length, but
11153 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11154 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11155 = "XX$teststring") >/dev/null 2>&1 &&
11156 new_result=`expr "X$teststring" : ".*" 2>&1` &&
11157 lt_cv_sys_max_cmd_len=$new_result &&
11158 test $i != 17 # 1/2 MB should be enough
11161 teststring=$teststring$teststring
11164 # Add a significant safety factor because C++ compilers can tack on massive
11165 # amounts of additional arguments before passing them to the linker.
11166 # It appears as though 1/2 is a usable value.
11167 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11173 if test -n $lt_cv_sys_max_cmd_len ; then
11174 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11175 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11177 echo "$as_me:$LINENO: result: none" >&5
11178 echo "${ECHO_T}none" >&6
11184 # Check for command to grab the raw symbol name followed by C symbol from nm.
11185 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11186 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11187 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11191 # These are sane defaults that work on at least a few old systems.
11192 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11194 # Character class describing NM global symbol codes.
11195 symcode='[BCDEGRST]'
11197 # Regexp to match symbols that can be accessed directly from C.
11198 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11200 # Transform the above into a raw symbol and a C symbol.
11201 symxfrm='\1 \2\3 \3'
11203 # Transform an extracted symbol line into a proper C declaration
11204 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11206 # Transform an extracted symbol line into symbol name and symbol address
11207 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'"
11209 # Define system-specific variables.
11214 cygwin* | mingw* | pw32*)
11215 symcode='[ABCDGISTW]'
11217 hpux*) # Its linker distinguishes data from code symbols
11218 if test "$host_cpu" = ia64; then
11219 symcode='[ABCDEGRST]'
11221 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11222 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'"
11225 if test "$host_cpu" = ia64; then
11226 symcode='[ABCDGIRSTW]'
11227 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11228 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'"
11231 irix* | nonstopux*)
11232 symcode='[BCDEGRST]'
11235 symcode='[BCDEGQRST]'
11245 # Handle CRLF in mingw tool chain
11249 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11253 # If we're using GNU nm, then use its standard symbol codes.
11254 case `$NM -V 2>&1` in
11255 *GNU* | *'with BFD'*)
11256 symcode='[ABCDGIRSTW]' ;;
11259 # Try without a prefix undercore, then with it.
11260 for ac_symprfx in "" "_"; do
11262 # Write the raw and C identifiers.
11263 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11265 # Check to see that the pipe works correctly.
11269 cat > conftest.$ac_ext <<EOF
11274 void nm_test_func(){}
11278 int main(){nm_test_var='a';nm_test_func();return(0);}
11281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11282 (eval $ac_compile) 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; then
11286 # Now try to grab the symbols.
11288 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11289 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } && test -s "$nlist"; then
11293 # Try sorting and uniquifying the output.
11294 if sort "$nlist" | uniq > "$nlist"T; then
11295 mv -f "$nlist"T "$nlist"
11300 # Make sure that we snagged all the symbols we need.
11301 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11302 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11303 cat <<EOF > conftest.$ac_ext
11309 # Now generate the symbol file.
11310 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11312 cat <<EOF >> conftest.$ac_ext
11313 #if defined (__STDC__) && __STDC__
11314 # define lt_ptr_t void *
11316 # define lt_ptr_t char *
11320 /* The mapping between symbol names and symbols. */
11325 lt_preloaded_symbols[] =
11328 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11329 cat <<\EOF >> conftest.$ac_ext
11337 # Now try linking the two files.
11338 mv conftest.$ac_objext conftstm.$ac_objext
11339 lt_save_LIBS="$LIBS"
11340 lt_save_CFLAGS="$CFLAGS"
11341 LIBS="conftstm.$ac_objext"
11342 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11344 (eval $ac_link) 2>&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11350 LIBS="$lt_save_LIBS"
11351 CFLAGS="$lt_save_CFLAGS"
11353 echo "cannot find nm_test_func in $nlist" >&5
11356 echo "cannot find nm_test_var in $nlist" >&5
11359 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11362 echo "$progname: failed program was:" >&5
11363 cat conftest.$ac_ext >&5
11365 rm -f conftest* conftst*
11367 # Do not use the global_symbol_pipe unless it works.
11368 if test "$pipe_works" = yes; then
11371 lt_cv_sys_global_symbol_pipe=
11377 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11378 lt_cv_sys_global_symbol_to_cdecl=
11380 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11381 echo "$as_me:$LINENO: result: failed" >&5
11382 echo "${ECHO_T}failed" >&6
11384 echo "$as_me:$LINENO: result: ok" >&5
11385 echo "${ECHO_T}ok" >&6
11388 echo "$as_me:$LINENO: checking for objdir" >&5
11389 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11390 if test "${lt_cv_objdir+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11393 rm -f .libs 2>/dev/null
11394 mkdir .libs 2>/dev/null
11395 if test -d .libs; then
11398 # MS-DOS does not allow filenames that begin with a dot.
11401 rmdir .libs 2>/dev/null
11403 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11404 echo "${ECHO_T}$lt_cv_objdir" >&6
11405 objdir=$lt_cv_objdir
11413 # AIX sometimes has problems with the GCC collect2 program. For some
11414 # reason, if we set the COLLECT_NAMES environment variable, the problems
11415 # vanish in a puff of smoke.
11416 if test "X${COLLECT_NAMES+set}" != Xset; then
11418 export COLLECT_NAMES
11423 # Sed substitution that helps us do robust quoting. It backslashifies
11424 # metacharacters that are still active within double-quoted strings.
11425 Xsed='sed -e s/^X//'
11426 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11428 # Same as above, but do not quote variable references.
11429 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11431 # Sed substitution to delay expansion of an escaped shell variable in a
11432 # double_quote_subst'ed string.
11433 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11435 # Sed substitution to avoid accidental globbing in evaled expressions
11436 no_glob_subst='s/\*/\\\*/g'
11441 # Global variables:
11442 default_ofile=mklib
11443 can_build_shared=yes
11445 # All known linkers require a `.a' archive for static linking (except M$VC,
11446 # which needs '.lib').
11448 ltmain="$ac_aux_dir/ltmain.sh"
11449 ofile="$default_ofile"
11450 with_gnu_ld="$lt_cv_prog_gnu_ld"
11452 if test -n "$ac_tool_prefix"; then
11453 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11454 set dummy ${ac_tool_prefix}ar; ac_word=$2
11455 echo "$as_me:$LINENO: checking for $ac_word" >&5
11456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11457 if test "${ac_cv_prog_AR+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 if test -n "$AR"; then
11461 ac_cv_prog_AR="$AR" # Let the user override the test.
11463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11464 for as_dir in $PATH
11467 test -z "$as_dir" && as_dir=.
11468 for ac_exec_ext in '' $ac_executable_extensions; do
11469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11470 ac_cv_prog_AR="${ac_tool_prefix}ar"
11471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11480 if test -n "$AR"; then
11481 echo "$as_me:$LINENO: result: $AR" >&5
11482 echo "${ECHO_T}$AR" >&6
11484 echo "$as_me:$LINENO: result: no" >&5
11485 echo "${ECHO_T}no" >&6
11489 if test -z "$ac_cv_prog_AR"; then
11491 # Extract the first word of "ar", so it can be a program name with args.
11492 set dummy ar; ac_word=$2
11493 echo "$as_me:$LINENO: checking for $ac_word" >&5
11494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11495 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 if test -n "$ac_ct_AR"; then
11499 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11502 for as_dir in $PATH
11505 test -z "$as_dir" && as_dir=.
11506 for ac_exec_ext in '' $ac_executable_extensions; do
11507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11508 ac_cv_prog_ac_ct_AR="ar"
11509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11515 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11518 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11519 if test -n "$ac_ct_AR"; then
11520 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11521 echo "${ECHO_T}$ac_ct_AR" >&6
11523 echo "$as_me:$LINENO: result: no" >&5
11524 echo "${ECHO_T}no" >&6
11529 AR="$ac_cv_prog_AR"
11532 if test -n "$ac_tool_prefix"; then
11533 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11534 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11535 echo "$as_me:$LINENO: checking for $ac_word" >&5
11536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11537 if test "${ac_cv_prog_RANLIB+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11540 if test -n "$RANLIB"; then
11541 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544 for as_dir in $PATH
11547 test -z "$as_dir" && as_dir=.
11548 for ac_exec_ext in '' $ac_executable_extensions; do
11549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11550 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11559 RANLIB=$ac_cv_prog_RANLIB
11560 if test -n "$RANLIB"; then
11561 echo "$as_me:$LINENO: result: $RANLIB" >&5
11562 echo "${ECHO_T}$RANLIB" >&6
11564 echo "$as_me:$LINENO: result: no" >&5
11565 echo "${ECHO_T}no" >&6
11569 if test -z "$ac_cv_prog_RANLIB"; then
11570 ac_ct_RANLIB=$RANLIB
11571 # Extract the first word of "ranlib", so it can be a program name with args.
11572 set dummy ranlib; ac_word=$2
11573 echo "$as_me:$LINENO: checking for $ac_word" >&5
11574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11575 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11578 if test -n "$ac_ct_RANLIB"; then
11579 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11582 for as_dir in $PATH
11585 test -z "$as_dir" && as_dir=.
11586 for ac_exec_ext in '' $ac_executable_extensions; do
11587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11588 ac_cv_prog_ac_ct_RANLIB="ranlib"
11589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11595 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11598 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11599 if test -n "$ac_ct_RANLIB"; then
11600 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11601 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11603 echo "$as_me:$LINENO: result: no" >&5
11604 echo "${ECHO_T}no" >&6
11607 RANLIB=$ac_ct_RANLIB
11609 RANLIB="$ac_cv_prog_RANLIB"
11612 if test -n "$ac_tool_prefix"; then
11613 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11614 set dummy ${ac_tool_prefix}strip; ac_word=$2
11615 echo "$as_me:$LINENO: checking for $ac_word" >&5
11616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11617 if test "${ac_cv_prog_STRIP+set}" = set; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11620 if test -n "$STRIP"; then
11621 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624 for as_dir in $PATH
11627 test -z "$as_dir" && as_dir=.
11628 for ac_exec_ext in '' $ac_executable_extensions; do
11629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11630 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11639 STRIP=$ac_cv_prog_STRIP
11640 if test -n "$STRIP"; then
11641 echo "$as_me:$LINENO: result: $STRIP" >&5
11642 echo "${ECHO_T}$STRIP" >&6
11644 echo "$as_me:$LINENO: result: no" >&5
11645 echo "${ECHO_T}no" >&6
11649 if test -z "$ac_cv_prog_STRIP"; then
11651 # Extract the first word of "strip", so it can be a program name with args.
11652 set dummy strip; ac_word=$2
11653 echo "$as_me:$LINENO: checking for $ac_word" >&5
11654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11655 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 if test -n "$ac_ct_STRIP"; then
11659 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11662 for as_dir in $PATH
11665 test -z "$as_dir" && as_dir=.
11666 for ac_exec_ext in '' $ac_executable_extensions; do
11667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11668 ac_cv_prog_ac_ct_STRIP="strip"
11669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11675 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11678 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11679 if test -n "$ac_ct_STRIP"; then
11680 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11681 echo "${ECHO_T}$ac_ct_STRIP" >&6
11683 echo "$as_me:$LINENO: result: no" >&5
11684 echo "${ECHO_T}no" >&6
11689 STRIP="$ac_cv_prog_STRIP"
11694 old_CFLAGS="$CFLAGS"
11696 # Set sane defaults for various variables
11697 test -z "$AR" && AR=ar
11698 test -z "$AR_FLAGS" && AR_FLAGS=cru
11699 test -z "$AS" && AS=as
11700 test -z "$CC" && CC=cc
11701 test -z "$LTCC" && LTCC=$CC
11702 test -z "$DLLTOOL" && DLLTOOL=dlltool
11703 test -z "$LD" && LD=ld
11704 test -z "$LN_S" && LN_S="ln -s"
11705 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11706 test -z "$NM" && NM=nm
11707 test -z "$SED" && SED=sed
11708 test -z "$OBJDUMP" && OBJDUMP=objdump
11709 test -z "$RANLIB" && RANLIB=:
11710 test -z "$STRIP" && STRIP=:
11711 test -z "$ac_objext" && ac_objext=o
11713 # Determine commands to create old-style static archives.
11714 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11715 old_postinstall_cmds='chmod 644 $oldlib'
11716 old_postuninstall_cmds=
11718 if test -n "$RANLIB"; then
11721 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11724 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11727 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11730 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11732 # Only perform the check for file, if the check method requires it
11733 case $deplibs_check_method in
11735 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11736 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11737 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11738 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
11743 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11746 lt_save_MAGIC_CMD="$MAGIC_CMD"
11747 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11748 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11749 for ac_dir in $ac_dummy; do
11751 test -z "$ac_dir" && ac_dir=.
11752 if test -f $ac_dir/${ac_tool_prefix}file; then
11753 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11754 if test -n "$file_magic_test_file"; then
11755 case $deplibs_check_method in
11757 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11758 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11759 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11760 $EGREP "$file_magic_regex" > /dev/null; then
11765 *** Warning: the command libtool uses to detect shared libraries,
11766 *** $file_magic_cmd, produces output that libtool cannot recognize.
11767 *** The result is that libtool may fail to recognize shared libraries
11768 *** as such. This will affect the creation of libtool libraries that
11769 *** depend on shared libraries, but programs linked with such libtool
11770 *** libraries will work regardless of this problem. Nevertheless, you
11771 *** may want to report the problem to your system manager and/or to
11772 *** bug-libtool@gnu.org
11782 MAGIC_CMD="$lt_save_MAGIC_CMD"
11787 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11788 if test -n "$MAGIC_CMD"; then
11789 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11790 echo "${ECHO_T}$MAGIC_CMD" >&6
11792 echo "$as_me:$LINENO: result: no" >&5
11793 echo "${ECHO_T}no" >&6
11796 if test -z "$lt_cv_path_MAGIC_CMD"; then
11797 if test -n "$ac_tool_prefix"; then
11798 echo "$as_me:$LINENO: checking for file" >&5
11799 echo $ECHO_N "checking for file... $ECHO_C" >&6
11800 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11808 lt_save_MAGIC_CMD="$MAGIC_CMD"
11809 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11810 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11811 for ac_dir in $ac_dummy; do
11813 test -z "$ac_dir" && ac_dir=.
11814 if test -f $ac_dir/file; then
11815 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11816 if test -n "$file_magic_test_file"; then
11817 case $deplibs_check_method in
11819 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11820 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11821 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11822 $EGREP "$file_magic_regex" > /dev/null; then
11827 *** Warning: the command libtool uses to detect shared libraries,
11828 *** $file_magic_cmd, produces output that libtool cannot recognize.
11829 *** The result is that libtool may fail to recognize shared libraries
11830 *** as such. This will affect the creation of libtool libraries that
11831 *** depend on shared libraries, but programs linked with such libtool
11832 *** libraries will work regardless of this problem. Nevertheless, you
11833 *** may want to report the problem to your system manager and/or to
11834 *** bug-libtool@gnu.org
11844 MAGIC_CMD="$lt_save_MAGIC_CMD"
11849 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11850 if test -n "$MAGIC_CMD"; then
11851 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11852 echo "${ECHO_T}$MAGIC_CMD" >&6
11854 echo "$as_me:$LINENO: result: no" >&5
11855 echo "${ECHO_T}no" >&6
11868 enable_win32_dll=no
11870 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11871 if test "${enable_libtool_lock+set}" = set; then
11872 enableval="$enable_libtool_lock"
11875 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11878 # Check whether --with-pic or --without-pic was given.
11879 if test "${with_pic+set}" = set; then
11880 withval="$with_pic"
11881 pic_mode="$withval"
11885 test -z "$pic_mode" && pic_mode=default
11887 # Use C for the default configuration in the libtool script
11891 ac_cpp='$CPP $CPPFLAGS'
11892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11897 # Source file extension for C test sources.
11900 # Object file extension for compiled C test sources.
11904 # Code to be used in simple compile tests
11905 lt_simple_compile_test_code="int some_variable = 0;\n"
11907 # Code to be used in simple link tests
11908 lt_simple_link_test_code='int main(){return(0);}\n'
11911 # If no C compiler was specified, use CC.
11914 # Allow CC to be a program name with arguments.
11919 # Check for any special shared library compilation flags.
11922 if test "$GCC" = no; then
11925 lt_prog_cc_shlib='-belf'
11929 if test -n "$lt_prog_cc_shlib"; then
11930 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11931 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11932 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11934 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11935 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11936 lt_cv_prog_cc_can_build_shared=no
11942 # Check to make sure the static flag actually works.
11944 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11945 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11946 if test "${lt_prog_compiler_static_works+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 lt_prog_compiler_static_works=no
11950 save_LDFLAGS="$LDFLAGS"
11951 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11952 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11953 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11954 # The compiler can only warn and ignore the option if not recognized
11955 # So say no if there are warnings
11956 if test -s conftest.err; then
11957 # Append any errors to the config.log.
11958 cat conftest.err 1>&5
11960 lt_prog_compiler_static_works=yes
11964 LDFLAGS="$save_LDFLAGS"
11967 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11968 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11970 if test x"$lt_prog_compiler_static_works" = xyes; then
11973 lt_prog_compiler_static=
11979 lt_prog_compiler_no_builtin_flag=
11981 if test "$GCC" = yes; then
11982 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11985 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11986 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11987 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11990 lt_cv_prog_compiler_rtti_exceptions=no
11991 ac_outfile=conftest.$ac_objext
11992 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11993 lt_compiler_flag="-fno-rtti -fno-exceptions"
11994 # Insert the option either (1) after the last *FLAGS variable, or
11995 # (2) before a word containing "conftest.", or (3) at the end.
11996 # Note that $ac_compile itself does not contain backslashes and begins
11997 # with a dollar sign (not a hyphen), so the echo should work correctly.
11998 # The option is referenced via a variable to avoid confusing sed.
11999 lt_compile=`echo "$ac_compile" | $SED \
12000 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12002 -e 's:$: $lt_compiler_flag:'`
12003 (eval echo "\"\$as_me:12003: $lt_compile\"" >&5)
12004 (eval "$lt_compile" 2>conftest.err)
12006 cat conftest.err >&5
12007 echo "$as_me:12007: \$? = $ac_status" >&5
12008 if (exit $ac_status) && test -s "$ac_outfile"; then
12009 # The compiler can only warn and ignore the option if not recognized
12010 # So say no if there are warnings
12011 if test ! -s conftest.err; then
12012 lt_cv_prog_compiler_rtti_exceptions=yes
12018 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12019 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12021 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12022 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12029 lt_prog_compiler_wl=
12030 lt_prog_compiler_pic=
12031 lt_prog_compiler_static=
12033 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12034 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12036 if test "$GCC" = yes; then
12037 lt_prog_compiler_wl='-Wl,'
12038 lt_prog_compiler_static='-static'
12042 # All AIX code is PIC.
12043 if test "$host_cpu" = ia64; then
12044 # AIX 5 now supports IA64 processor
12045 lt_prog_compiler_static='-Bstatic'
12050 # FIXME: we need at least 68020 code to build shared libraries, but
12051 # adding the `-m68020' flag to GCC prevents building anything better,
12053 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12056 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12057 # PIC is the default for these OSes.
12060 mingw* | pw32* | os2*)
12061 # This hack is so that the source file can tell whether it is being
12062 # built for inclusion in a dll (and should export symbols for example).
12063 lt_prog_compiler_pic='-DDLL_EXPORT'
12066 darwin* | rhapsody*)
12067 # PIC is the default on this platform
12068 # Common symbols not allowed in MH_DYLIB files
12069 lt_prog_compiler_pic='-fno-common'
12073 # Just because we use GCC doesn't mean we suddenly get shared libraries
12074 # on systems that don't support them.
12075 lt_prog_compiler_can_build_shared=no
12080 if test -d /usr/nec; then
12081 lt_prog_compiler_pic=-Kconform_pic
12086 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12087 # not for PA HP-UX.
12088 case "$host_cpu" in
12093 lt_prog_compiler_pic='-fPIC'
12099 lt_prog_compiler_pic='-fPIC'
12103 # PORTME Check for flag to pass linker flags through the system compiler.
12106 lt_prog_compiler_wl='-Wl,'
12107 if test "$host_cpu" = ia64; then
12108 # AIX 5 now supports IA64 processor
12109 lt_prog_compiler_static='-Bstatic'
12111 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12115 # PIC is the default on this platform
12116 # Common symbols not allowed in MH_DYLIB files
12117 case "$cc_basename" in
12119 lt_prog_compiler_pic='-qnocommon'
12120 lt_prog_compiler_wl='-Wl,'
12125 mingw* | pw32* | os2*)
12126 # This hack is so that the source file can tell whether it is being
12127 # built for inclusion in a dll (and should export symbols for example).
12128 lt_prog_compiler_pic='-DDLL_EXPORT'
12131 hpux9* | hpux10* | hpux11*)
12132 lt_prog_compiler_wl='-Wl,'
12133 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12134 # not for PA HP-UX.
12135 case "$host_cpu" in
12140 lt_prog_compiler_pic='+Z'
12143 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12144 lt_prog_compiler_static='${wl}-a ${wl}archive'
12147 irix5* | irix6* | nonstopux*)
12148 lt_prog_compiler_wl='-Wl,'
12149 # PIC (with -KPIC) is the default.
12150 lt_prog_compiler_static='-non_shared'
12154 lt_prog_compiler_pic='-KPIC'
12155 lt_prog_compiler_static='-Bstatic'
12161 lt_prog_compiler_wl='-Wl,'
12162 lt_prog_compiler_pic='-KPIC'
12163 lt_prog_compiler_static='-static'
12166 lt_prog_compiler_wl='-Wl,'
12167 # All Alpha code is PIC.
12168 lt_prog_compiler_static='-non_shared'
12173 osf3* | osf4* | osf5*)
12174 lt_prog_compiler_wl='-Wl,'
12175 # All OSF/1 code is PIC.
12176 lt_prog_compiler_static='-non_shared'
12180 lt_prog_compiler_pic='-Kpic'
12181 lt_prog_compiler_static='-dn'
12185 lt_prog_compiler_wl='-Wl,'
12186 lt_prog_compiler_pic='-KPIC'
12187 lt_prog_compiler_static='-Bstatic'
12191 lt_prog_compiler_wl='-Qoption ld '
12192 lt_prog_compiler_pic='-PIC'
12193 lt_prog_compiler_static='-Bstatic'
12196 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12197 lt_prog_compiler_wl='-Wl,'
12198 lt_prog_compiler_pic='-KPIC'
12199 lt_prog_compiler_static='-Bstatic'
12203 if test -d /usr/nec ;then
12204 lt_prog_compiler_pic='-Kconform_pic'
12205 lt_prog_compiler_static='-Bstatic'
12210 lt_prog_compiler_pic='-pic'
12211 lt_prog_compiler_static='-Bstatic'
12215 lt_prog_compiler_can_build_shared=no
12220 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12221 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12224 # Check to make sure the PIC flag actually works.
12226 if test -n "$lt_prog_compiler_pic"; then
12228 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12229 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12230 if test "${lt_prog_compiler_pic_works+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 lt_prog_compiler_pic_works=no
12234 ac_outfile=conftest.$ac_objext
12235 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12236 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12237 # Insert the option either (1) after the last *FLAGS variable, or
12238 # (2) before a word containing "conftest.", or (3) at the end.
12239 # Note that $ac_compile itself does not contain backslashes and begins
12240 # with a dollar sign (not a hyphen), so the echo should work correctly.
12241 # The option is referenced via a variable to avoid confusing sed.
12242 lt_compile=`echo "$ac_compile" | $SED \
12243 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12244 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12245 -e 's:$: $lt_compiler_flag:'`
12246 (eval echo "\"\$as_me:12246: $lt_compile\"" >&5)
12247 (eval "$lt_compile" 2>conftest.err)
12249 cat conftest.err >&5
12250 echo "$as_me:12250: \$? = $ac_status" >&5
12251 if (exit $ac_status) && test -s "$ac_outfile"; then
12252 # The compiler can only warn and ignore the option if not recognized
12253 # So say no if there are warnings
12254 if test ! -s conftest.err; then
12255 lt_prog_compiler_pic_works=yes
12261 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12262 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12264 if test x"$lt_prog_compiler_pic_works" = xyes; then
12265 case $lt_prog_compiler_pic in
12267 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12270 lt_prog_compiler_pic=
12271 lt_prog_compiler_can_build_shared=no
12276 # For platforms which do not support PIC, -DPIC is meaningless:
12278 lt_prog_compiler_pic=
12281 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12285 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12286 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12287 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 lt_cv_prog_compiler_c_o=no
12291 $rm -r conftest 2>/dev/null
12295 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12297 lt_compiler_flag="-o out/conftest2.$ac_objext"
12298 # Insert the option either (1) after the last *FLAGS variable, or
12299 # (2) before a word containing "conftest.", or (3) at the end.
12300 # Note that $ac_compile itself does not contain backslashes and begins
12301 # with a dollar sign (not a hyphen), so the echo should work correctly.
12302 lt_compile=`echo "$ac_compile" | $SED \
12303 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12305 -e 's:$: $lt_compiler_flag:'`
12306 (eval echo "\"\$as_me:12306: $lt_compile\"" >&5)
12307 (eval "$lt_compile" 2>out/conftest.err)
12309 cat out/conftest.err >&5
12310 echo "$as_me:12310: \$? = $ac_status" >&5
12311 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12313 # The compiler can only warn and ignore the option if not recognized
12314 # So say no if there are warnings
12315 if test ! -s out/conftest.err; then
12316 lt_cv_prog_compiler_c_o=yes
12321 # SGI C++ compiler will create directory out/ii_files/ for
12322 # template instantiation
12323 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12324 $rm out/* && rmdir out
12330 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12331 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12334 hard_links="nottested"
12335 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12336 # do not overwrite the value of need_locks provided by the user
12337 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12338 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12341 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12343 ln conftest.a conftest.b 2>&5 || hard_links=no
12344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12345 echo "$as_me:$LINENO: result: $hard_links" >&5
12346 echo "${ECHO_T}$hard_links" >&6
12347 if test "$hard_links" = no; then
12348 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12349 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12356 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12357 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12360 allow_undefined_flag=
12361 enable_shared_with_static_runtimes=no
12363 archive_expsym_cmds=
12364 old_archive_From_new_cmds=
12365 old_archive_from_expsyms_cmds=
12366 export_dynamic_flag_spec=
12367 whole_archive_flag_spec=
12368 thread_safe_flag_spec=
12369 hardcode_libdir_flag_spec=
12370 hardcode_libdir_flag_spec_ld=
12371 hardcode_libdir_separator=
12373 hardcode_minus_L=no
12374 hardcode_shlibpath_var=unsupported
12375 link_all_deplibs=unknown
12376 hardcode_automatic=no
12378 module_expsym_cmds=
12379 always_export_symbols=no
12380 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12381 # include_expsyms should be a list of space-separated symbols to be *always*
12382 # included in the symbol list
12384 # exclude_expsyms can be an extended regexp of symbols to exclude
12385 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12386 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12387 # as well as any symbol that contains `d'.
12388 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12389 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12390 # platforms (ab)use it in PIC code, but their linkers get confused if
12391 # the symbol is explicitly referenced. Since portable code cannot
12392 # rely on this symbol name, it's probably fine to never include it in
12393 # preloaded symbol tables.
12394 extract_expsyms_cmds=
12397 cygwin* | mingw* | pw32*)
12398 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12399 # When not using gcc, we currently assume that we are using
12400 # Microsoft Visual C++.
12401 if test "$GCC" != yes; then
12411 if test "$with_gnu_ld" = yes; then
12412 # If archive_cmds runs LD, not CC, wlarc should be empty
12415 # See if GNU ld supports shared libraries.
12417 aix3* | aix4* | aix5*)
12418 # On AIX/PPC, the GNU linker is very broken
12419 if test "$host_cpu" != ia64; then
12423 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12424 *** to be unable to reliably create shared libraries on AIX.
12425 *** Therefore, libtool is disabling shared libraries support. If you
12426 *** really care for shared libraries, you may want to modify your PATH
12427 *** so that a non-GNU linker is found, and then restart.
12434 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)'
12435 hardcode_libdir_flag_spec='-L$libdir'
12436 hardcode_minus_L=yes
12438 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12439 # that the semantics of dynamic libraries on AmigaOS, at least up
12440 # to version 4, is to share data among multiple programs linked
12441 # with the same dynamic library. Since this doesn't match the
12442 # behavior of shared libraries on other platforms, we can't use
12448 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12449 allow_undefined_flag=unsupported
12450 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12451 # support --undefined. This deserves some investigation. FIXME
12452 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12458 cygwin* | mingw* | pw32*)
12459 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12460 # as there is no search path for DLLs.
12461 hardcode_libdir_flag_spec='-L$libdir'
12462 allow_undefined_flag=unsupported
12463 always_export_symbols=no
12464 enable_shared_with_static_runtimes=yes
12465 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12467 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12469 # If the export-symbols file already is a .def file (1st line
12470 # is EXPORTS), use it as is; otherwise, prepend...
12471 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12472 cp $export_symbols $output_objdir/$soname.def;
12474 echo EXPORTS > $output_objdir/$soname.def;
12475 cat $export_symbols >> $output_objdir/$soname.def;
12477 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12484 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12485 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12489 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12494 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12498 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12499 *** create shared libraries on Solaris systems. Therefore, libtool
12500 *** is disabling shared libraries support. We urge you to upgrade GNU
12501 *** binutils to release 2.9.1 or newer. Another option is to modify
12502 *** your PATH or compiler configuration so that the native linker is
12503 *** used, and then restart.
12506 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12508 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12515 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12517 hardcode_direct=yes
12518 hardcode_shlibpath_var=no
12522 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12523 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12524 archive_cmds="$tmp_archive_cmds"
12525 supports_anon_versioning=no
12526 case `$LD -v 2>/dev/null` in
12527 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12528 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12529 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12530 *\ 2.11.*) ;; # other 2.11 versions
12531 *) supports_anon_versioning=yes ;;
12533 if test $supports_anon_versioning = yes; then
12534 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12535 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12536 $echo "local: *; };" >> $output_objdir/$libname.ver~
12537 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12539 archive_expsym_cmds="$tmp_archive_cmds"
12547 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12548 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12549 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12556 if test "$ld_shlibs" = yes; then
12557 runpath_var=LD_RUN_PATH
12558 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12559 export_dynamic_flag_spec='${wl}--export-dynamic'
12560 # ancient GNU ld didn't support --whole-archive et. al.
12561 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12562 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12564 whole_archive_flag_spec=
12568 # PORTME fill in a description of your system's linker (not GNU ld)
12571 allow_undefined_flag=unsupported
12572 always_export_symbols=yes
12573 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'
12574 # Note: this linker hardcodes the directories in LIBPATH if there
12575 # are no directories specified by -L.
12576 hardcode_minus_L=yes
12577 if test "$GCC" = yes && test -z "$link_static_flag"; then
12578 # Neither direct hardcoding nor static linking is supported with a
12580 hardcode_direct=unsupported
12585 if test "$host_cpu" = ia64; then
12586 # On IA64, the linker does run time linking by default, so we don't
12587 # have to do anything special.
12588 aix_use_runtimelinking=no
12589 exp_sym_flag='-Bexport'
12592 # If we're using GNU nm, then we don't want the "-C" option.
12593 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12594 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12595 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'
12597 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'
12599 aix_use_runtimelinking=no
12601 # Test if we are trying to use run time linking or normal
12602 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12603 # need to do runtime linking.
12604 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12605 for ld_flag in $LDFLAGS; do
12606 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12607 aix_use_runtimelinking=yes
12613 exp_sym_flag='-bexport'
12614 no_entry_flag='-bnoentry'
12617 # When large executables or shared objects are built, AIX ld can
12618 # have problems creating the table of contents. If linking a library
12619 # or program results in "error TOC overflow" add -mminimal-toc to
12620 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12621 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12624 hardcode_direct=yes
12625 hardcode_libdir_separator=':'
12626 link_all_deplibs=yes
12628 if test "$GCC" = yes; then
12629 case $host_os in aix4.012|aix4.012.*)
12630 # We only want to do this on AIX 4.2 and lower, the check
12631 # below for broken collect2 doesn't work under 4.3+
12632 collect2name=`${CC} -print-prog-name=collect2`
12633 if test -f "$collect2name" && \
12634 strings "$collect2name" | grep resolve_lib_name >/dev/null
12636 # We have reworked collect2
12637 hardcode_direct=yes
12639 # We have old collect2
12640 hardcode_direct=unsupported
12641 # It fails to find uninstalled libraries when the uninstalled
12642 # path is not listed in the libpath. Setting hardcode_minus_L
12643 # to unsupported forces relinking
12644 hardcode_minus_L=yes
12645 hardcode_libdir_flag_spec='-L$libdir'
12646 hardcode_libdir_separator=
12649 shared_flag='-shared'
12652 if test "$host_cpu" = ia64; then
12653 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12654 # chokes on -Wl,-G. The following line is correct:
12657 if test "$aix_use_runtimelinking" = yes; then
12658 shared_flag='${wl}-G'
12660 shared_flag='${wl}-bM:SRE'
12665 # It seems that -bexpall does not export symbols beginning with
12666 # underscore (_), so it is better to generate a list of symbols to export.
12667 always_export_symbols=yes
12668 if test "$aix_use_runtimelinking" = yes; then
12669 # Warning - without using the other runtime loading flags (-brtl),
12670 # -berok will link without error, but may produce a broken library.
12671 allow_undefined_flag='-berok'
12672 # Determine the default libpath from the value encoded in an empty executable.
12673 cat >conftest.$ac_ext <<_ACEOF
12676 cat confdefs.h >>conftest.$ac_ext
12677 cat >>conftest.$ac_ext <<_ACEOF
12678 /* end confdefs.h. */
12688 rm -f conftest.$ac_objext conftest$ac_exeext
12689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12690 (eval $ac_link) 2>conftest.er1
12692 grep -v '^ *+' conftest.er1 >conftest.err
12694 cat conftest.err >&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } &&
12697 { ac_try='test -z "$ac_c_werror_flag"
12698 || test ! -s conftest.err'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; } &&
12704 { ac_try='test -s conftest$ac_exeext'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12711 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12713 # Check for a 64-bit object if we didn't find anything.
12714 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; }
12717 echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12721 rm -f conftest.err conftest.$ac_objext \
12722 conftest$ac_exeext conftest.$ac_ext
12723 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12725 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12726 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"
12728 if test "$host_cpu" = ia64; then
12729 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12730 allow_undefined_flag="-z nodefs"
12731 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"
12733 # Determine the default libpath from the value encoded in an empty executable.
12734 cat >conftest.$ac_ext <<_ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h. */
12749 rm -f conftest.$ac_objext conftest$ac_exeext
12750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12751 (eval $ac_link) 2>conftest.er1
12753 grep -v '^ *+' conftest.er1 >conftest.err
12755 cat conftest.err >&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); } &&
12758 { ac_try='test -z "$ac_c_werror_flag"
12759 || test ! -s conftest.err'
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; } &&
12765 { ac_try='test -s conftest$ac_exeext'
12766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767 (eval $ac_try) 2>&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; }; then
12772 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12774 # Check for a 64-bit object if we didn't find anything.
12775 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; }
12778 echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12782 rm -f conftest.err conftest.$ac_objext \
12783 conftest$ac_exeext conftest.$ac_ext
12784 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12786 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12787 # Warning - without using the other run time loading flags,
12788 # -berok will link without error, but may produce a broken library.
12789 no_undefined_flag=' ${wl}-bernotok'
12790 allow_undefined_flag=' ${wl}-berok'
12791 # -bexpall does not export symbols beginning with underscore (_)
12792 always_export_symbols=yes
12793 # Exported symbols can be pulled into shared objects from archives
12794 whole_archive_flag_spec=' '
12795 archive_cmds_need_lc=yes
12796 # This is similar to how AIX traditionally builds it's shared libraries.
12797 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'
12803 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)'
12804 hardcode_libdir_flag_spec='-L$libdir'
12805 hardcode_minus_L=yes
12806 # see comment about different semantics on the GNU ld section
12811 export_dynamic_flag_spec=-rdynamic
12814 cygwin* | mingw* | pw32*)
12815 # When not using gcc, we currently assume that we are using
12816 # Microsoft Visual C++.
12817 # hardcode_libdir_flag_spec is actually meaningless, as there is
12818 # no search path for DLLs.
12819 hardcode_libdir_flag_spec=' '
12820 allow_undefined_flag=unsupported
12821 # Tell ltmain to make .lib files, not .a files.
12823 # Tell ltmain to make .dll files, not .so files.
12825 # FIXME: Setting linknames here is a bad hack.
12826 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12827 # The linker will automatically build a .lib file if we build a DLL.
12828 old_archive_From_new_cmds='true'
12829 # FIXME: Should let the user specify the lib program.
12830 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12831 fix_srcfile_path='`cygpath -w "$srcfile"`'
12832 enable_shared_with_static_runtimes=yes
12835 darwin* | rhapsody*)
12837 rhapsody* | darwin1.[012])
12838 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12841 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12842 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12844 case ${MACOSX_DEPLOYMENT_TARGET} in
12846 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12849 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12855 archive_cmds_need_lc=no
12857 hardcode_automatic=yes
12858 hardcode_shlibpath_var=unsupported
12859 whole_archive_flag_spec=''
12860 link_all_deplibs=yes
12861 if test "$GCC" = yes ; then
12862 output_verbose_link_cmd='echo'
12863 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12864 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12865 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12866 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}'
12867 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}'
12869 case "$cc_basename" in
12871 output_verbose_link_cmd='echo'
12872 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12873 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12874 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12875 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}'
12876 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}'
12886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12887 hardcode_libdir_flag_spec='-L$libdir'
12888 hardcode_shlibpath_var=no
12895 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12896 # support. Future versions do this automatically, but an explicit c++rt0.o
12897 # does not break anything, and helps significantly (at the cost of a little
12900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12901 hardcode_libdir_flag_spec='-R$libdir'
12902 hardcode_direct=yes
12903 hardcode_shlibpath_var=no
12906 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12908 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12909 hardcode_direct=yes
12910 hardcode_minus_L=yes
12911 hardcode_shlibpath_var=no
12914 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12915 freebsd* | kfreebsd*-gnu)
12916 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12917 hardcode_libdir_flag_spec='-R$libdir'
12918 hardcode_direct=yes
12919 hardcode_shlibpath_var=no
12923 if test "$GCC" = yes; then
12924 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'
12926 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'
12928 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12929 hardcode_libdir_separator=:
12930 hardcode_direct=yes
12932 # hardcode_minus_L: Not really in the search PATH,
12933 # but as the default location of the library.
12934 hardcode_minus_L=yes
12935 export_dynamic_flag_spec='${wl}-E'
12939 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12940 case "$host_cpu" in
12942 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12945 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12949 case "$host_cpu" in
12951 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12954 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12958 if test "$with_gnu_ld" = no; then
12959 case "$host_cpu" in
12961 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12962 hardcode_libdir_flag_spec_ld='+b $libdir'
12963 hardcode_libdir_separator=:
12965 hardcode_shlibpath_var=no
12968 hardcode_libdir_flag_spec='-L$libdir'
12970 hardcode_shlibpath_var=no
12972 # hardcode_minus_L: Not really in the search PATH,
12973 # but as the default location of the library.
12974 hardcode_minus_L=yes
12977 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12978 hardcode_libdir_separator=:
12979 hardcode_direct=yes
12980 export_dynamic_flag_spec='${wl}-E'
12982 # hardcode_minus_L: Not really in the search PATH,
12983 # but as the default location of the library.
12984 hardcode_minus_L=yes
12990 irix5* | irix6* | nonstopux*)
12991 if test "$GCC" = yes; then
12992 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'
12994 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'
12995 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12998 hardcode_libdir_separator=:
12999 link_all_deplibs=yes
13003 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13004 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13006 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13008 hardcode_libdir_flag_spec='-R$libdir'
13009 hardcode_direct=yes
13010 hardcode_shlibpath_var=no
13014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13015 hardcode_direct=yes
13016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13017 hardcode_libdir_separator=:
13018 hardcode_shlibpath_var=no
13022 hardcode_direct=yes
13023 hardcode_shlibpath_var=no
13024 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13025 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13026 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13027 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13028 export_dynamic_flag_spec='${wl}-E'
13031 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13032 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13033 hardcode_libdir_flag_spec='-R$libdir'
13036 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13037 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13044 hardcode_libdir_flag_spec='-L$libdir'
13045 hardcode_minus_L=yes
13046 allow_undefined_flag=unsupported
13047 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'
13048 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13052 if test "$GCC" = yes; then
13053 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13054 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'
13056 allow_undefined_flag=' -expect_unresolved \*'
13057 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'
13059 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13060 hardcode_libdir_separator=:
13063 osf4* | osf5*) # as osf3* with the addition of -msym flag
13064 if test "$GCC" = yes; then
13065 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13066 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'
13067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13069 allow_undefined_flag=' -expect_unresolved \*'
13070 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'
13071 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13072 $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'
13074 # Both c and cxx compiler support -rpath directly
13075 hardcode_libdir_flag_spec='-rpath $libdir'
13077 hardcode_libdir_separator=:
13081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13082 hardcode_shlibpath_var=no
13083 export_dynamic_flag_spec='${wl}-Bexport'
13084 runpath_var=LD_RUN_PATH
13085 hardcode_runpath_var=yes
13089 no_undefined_flag=' -z text'
13090 if test "$GCC" = yes; then
13091 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13092 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13093 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13095 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13096 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13097 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13099 hardcode_libdir_flag_spec='-R$libdir'
13100 hardcode_shlibpath_var=no
13102 solaris2.[0-5] | solaris2.[0-5].*) ;;
13103 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13104 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13106 link_all_deplibs=yes
13110 if test "x$host_vendor" = xsequent; then
13111 # Use $CC to link under sequent, because it throws in some extra .o
13112 # files that make .init and .fini sections work.
13113 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13115 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13117 hardcode_libdir_flag_spec='-L$libdir'
13118 hardcode_direct=yes
13119 hardcode_minus_L=yes
13120 hardcode_shlibpath_var=no
13124 case $host_vendor in
13126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13127 hardcode_direct=yes # is this really true???
13130 ## LD is ld it makes a PLAMLIB
13131 ## CC just makes a GrossModule.
13132 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13133 reload_cmds='$CC -r -o $output$reload_objs'
13137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13138 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13141 runpath_var='LD_RUN_PATH'
13142 hardcode_shlibpath_var=no
13146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13147 hardcode_shlibpath_var=no
13148 export_dynamic_flag_spec='-Bexport'
13152 if test -d /usr/nec; then
13153 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13154 hardcode_shlibpath_var=no
13155 runpath_var=LD_RUN_PATH
13156 hardcode_runpath_var=yes
13162 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13163 hardcode_direct=yes
13164 hardcode_minus_L=no
13165 hardcode_shlibpath_var=no
13166 hardcode_runpath_var=yes
13167 runpath_var=LD_RUN_PATH
13170 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13171 no_undefined_flag='${wl}-z ${wl}text'
13172 if test "$GCC" = yes; then
13173 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13175 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13177 runpath_var='LD_RUN_PATH'
13178 hardcode_shlibpath_var=no
13182 no_undefined_flag=' -z text'
13183 # $CC -shared without GNU ld will not create a library from C++
13184 # object files and a static libstdc++, better avoid it by now
13185 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13186 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13187 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13188 hardcode_libdir_flag_spec=
13189 hardcode_shlibpath_var=no
13190 runpath_var='LD_RUN_PATH'
13194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13195 hardcode_libdir_flag_spec='-L$libdir'
13196 hardcode_shlibpath_var=no
13205 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13206 echo "${ECHO_T}$ld_shlibs" >&6
13207 test "$ld_shlibs" = no && can_build_shared=no
13209 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13210 if test "$GCC" = yes; then
13211 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13215 # Do we need to explicitly link libc?
13217 case "x$archive_cmds_need_lc" in
13219 # Assume -lc should be added
13220 archive_cmds_need_lc=yes
13222 if test "$enable_shared" = yes && test "$GCC" = yes; then
13223 case $archive_cmds in
13225 # FIXME: we may have to deal with multi-command sequences.
13228 # Test whether the compiler implicitly links with -lc since on some
13229 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13230 # to ld, don't add -lc before -lgcc.
13231 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13232 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13234 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13237 (eval $ac_compile) 2>&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } 2>conftest.err; then
13243 libobjs=conftest.$ac_objext
13245 wl=$lt_prog_compiler_wl
13251 lt_save_allow_undefined_flag=$allow_undefined_flag
13252 allow_undefined_flag=
13253 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13254 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }
13259 archive_cmds_need_lc=no
13261 archive_cmds_need_lc=yes
13263 allow_undefined_flag=$lt_save_allow_undefined_flag
13265 cat conftest.err 1>&5
13268 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13269 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13276 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13277 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13278 library_names_spec=
13279 libname_spec='lib$name'
13283 postuninstall_cmds=
13287 shlibpath_overrides_runpath=unknown
13289 dynamic_linker="$host_os ld.so"
13290 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13291 if test "$GCC" = yes; then
13292 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13293 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13294 # if the path contains ";" then we assume it to be the separator
13295 # otherwise default to the standard path separator (i.e. ":") - it is
13296 # assumed that no part of a normal pathname contains ";" but that should
13297 # okay in the real world where ";" in dirpaths is itself problematic.
13298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13303 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13305 need_lib_prefix=unknown
13306 hardcode_into_libs=no
13308 # when you set need_version to no, make sure it does not cause -set_version
13309 # flags to be left without arguments
13310 need_version=unknown
13315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13316 shlibpath_var=LIBPATH
13318 # AIX 3 has no versioning support, so we append a major version to the name.
13319 soname_spec='${libname}${release}${shared_ext}$major'
13326 hardcode_into_libs=yes
13327 if test "$host_cpu" = ia64; then
13328 # AIX 5 supports IA64
13329 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13330 shlibpath_var=LD_LIBRARY_PATH
13332 # With GCC up to 2.95.x, collect2 would create an import file
13333 # for dependence libraries. The import file would start with
13334 # the line `#! .'. This would cause the generated library to
13335 # depend on `.', always an invalid library. This was fixed in
13336 # development snapshots of GCC prior to 3.0.
13338 aix4 | aix4.[01] | aix4.[01].*)
13339 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13341 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13344 can_build_shared=no
13348 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13349 # soname into executable. Probably we can add versioning support to
13350 # collect2, so additional links can be useful in future.
13351 if test "$aix_use_runtimelinking" = yes; then
13352 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13353 # instead of lib<name>.a to let people know that these are not
13354 # typical AIX shared libraries.
13355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13357 # We preserve .a as extension for shared libraries through AIX4.2
13358 # and later when we are not doing run time linking.
13359 library_names_spec='${libname}${release}.a $libname.a'
13360 soname_spec='${libname}${release}${shared_ext}$major'
13362 shlibpath_var=LIBPATH
13367 library_names_spec='$libname.ixlibrary $libname.a'
13368 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13369 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'
13373 library_names_spec='${libname}${shared_ext}'
13374 dynamic_linker="$host_os ld.so"
13375 shlibpath_var=LIBRARY_PATH
13381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13382 soname_spec='${libname}${release}${shared_ext}$major'
13383 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13384 shlibpath_var=LD_LIBRARY_PATH
13385 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13386 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13387 # the default ld.so.conf also contains /usr/contrib/lib and
13388 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13389 # libtool to hard-code these into programs
13392 cygwin* | mingw* | pw32*)
13393 version_type=windows
13398 case $GCC,$host_os in
13399 yes,cygwin* | yes,mingw* | yes,pw32*)
13400 library_names_spec='$libname.dll.a'
13401 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13402 postinstall_cmds='base_file=`basename \${file}`~
13403 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13404 dldir=$destdir/`dirname \$dlpath`~
13405 test -d \$dldir || mkdir -p \$dldir~
13406 $install_prog $dir/$dlname \$dldir/$dlname'
13407 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13408 dlpath=$dir/\$dldll~
13410 shlibpath_overrides_runpath=yes
13414 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13415 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13416 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13419 # MinGW DLLs use traditional 'lib' prefix
13420 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13421 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13422 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13423 # It is most probably a Windows format PATH printed by
13424 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13425 # path with ; separators, and with drive letters. We can handle the
13426 # drive letters (cygwin fileutils understands them), so leave them,
13427 # especially as we might pass files found there to a mingw objdump,
13428 # which wouldn't understand a cygwinified path. Ahh.
13429 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13431 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13435 # pw32 DLLs use 'pw' prefix rather than 'lib'
13436 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13442 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13445 dynamic_linker='Win32 ld.exe'
13446 # FIXME: first we should search . and the directory the executable is in
13450 darwin* | rhapsody*)
13451 dynamic_linker="$host_os dyld"
13452 version_type=darwin
13455 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13456 soname_spec='${libname}${release}${major}$shared_ext'
13457 shlibpath_overrides_runpath=yes
13458 shlibpath_var=DYLD_LIBRARY_PATH
13459 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13460 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13461 if test "$GCC" = yes; then
13462 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"`
13464 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13466 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13474 soname_spec='${libname}${release}${shared_ext}$major'
13475 shlibpath_var=LD_LIBRARY_PATH
13486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13487 soname_spec='${libname}${release}${shared_ext}$major'
13488 shlibpath_var=LD_LIBRARY_PATH
13489 shlibpath_overrides_runpath=no
13490 hardcode_into_libs=yes
13491 dynamic_linker='GNU ld.so'
13495 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13496 version_type=freebsd-$objformat
13497 case $version_type in
13499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13504 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13508 shlibpath_var=LD_LIBRARY_PATH
13511 shlibpath_overrides_runpath=yes
13513 freebsd3.01* | freebsdelf3.01*)
13514 shlibpath_overrides_runpath=yes
13515 hardcode_into_libs=yes
13518 shlibpath_overrides_runpath=no
13519 hardcode_into_libs=yes
13528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13529 soname_spec='${libname}${release}${shared_ext}$major'
13530 shlibpath_var=LD_LIBRARY_PATH
13531 hardcode_into_libs=yes
13534 hpux9* | hpux10* | hpux11*)
13535 # Give a soname corresponding to the major version so that dld.sl refuses to
13536 # link against other versions.
13540 case "$host_cpu" in
13543 hardcode_into_libs=yes
13544 dynamic_linker="$host_os dld.so"
13545 shlibpath_var=LD_LIBRARY_PATH
13546 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13548 soname_spec='${libname}${release}${shared_ext}$major'
13549 if test "X$HPUX_IA64_MODE" = X32; then
13550 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13552 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13554 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13558 hardcode_into_libs=yes
13559 dynamic_linker="$host_os dld.sl"
13560 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13561 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13563 soname_spec='${libname}${release}${shared_ext}$major'
13564 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13565 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13569 dynamic_linker="$host_os dld.sl"
13570 shlibpath_var=SHLIB_PATH
13571 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13573 soname_spec='${libname}${release}${shared_ext}$major'
13576 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13577 postinstall_cmds='chmod 555 $lib'
13580 irix5* | irix6* | nonstopux*)
13582 nonstopux*) version_type=nonstopux ;;
13584 if test "$lt_cv_prog_gnu_ld" = yes; then
13592 soname_spec='${libname}${release}${shared_ext}$major'
13593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13595 irix5* | nonstopux*)
13596 libsuff= shlibsuff=
13599 case $LD in # libtool.m4 will add one of these switches to LD
13600 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13601 libsuff= shlibsuff= libmagic=32-bit;;
13602 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13603 libsuff=32 shlibsuff=N32 libmagic=N32;;
13604 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13605 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13606 *) libsuff= shlibsuff= libmagic=never-match;;
13610 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13611 shlibpath_overrides_runpath=no
13612 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13613 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13614 hardcode_into_libs=yes
13617 # No shared lib support for Linux oldld, aout, or coff.
13618 linux*oldld* | linux*aout* | linux*coff*)
13622 # This must be Linux ELF.
13627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13628 soname_spec='${libname}${release}${shared_ext}$major'
13629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13630 shlibpath_var=LD_LIBRARY_PATH
13631 shlibpath_overrides_runpath=no
13632 # This implies no fast_install, which is unacceptable.
13633 # Some rework will be needed to allow for fast_install
13634 # before this can be enabled.
13635 hardcode_into_libs=yes
13637 # Append ld.so.conf contents to the search path
13638 if test -f /etc/ld.so.conf; then
13639 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13640 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13643 # We used to test for /lib/ld.so.1 and disable shared libraries on
13644 # powerpc, because MkLinux only supported shared libraries with the
13645 # GNU dynamic linker. Since this was broken with cross compilers,
13646 # most powerpc-linux boxes support dynamic linking these days and
13647 # people can always --disable-shared, the test was removed, and we
13648 # assume the GNU/Linux dynamic linker is in use.
13649 dynamic_linker='GNU/Linux ld.so'
13656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13657 soname_spec='${libname}${release}${shared_ext}$major'
13658 shlibpath_var=LD_LIBRARY_PATH
13659 shlibpath_overrides_runpath=no
13660 hardcode_into_libs=yes
13661 dynamic_linker='GNU ld.so'
13668 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13671 dynamic_linker='NetBSD (a.out) ld.so'
13673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13674 soname_spec='${libname}${release}${shared_ext}$major'
13675 dynamic_linker='NetBSD ld.elf_so'
13677 shlibpath_var=LD_LIBRARY_PATH
13678 shlibpath_overrides_runpath=yes
13679 hardcode_into_libs=yes
13684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13685 shlibpath_var=LD_LIBRARY_PATH
13686 shlibpath_overrides_runpath=yes
13693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13694 soname_spec='${libname}${release}${shared_ext}$major'
13695 shlibpath_var=LD_LIBRARY_PATH
13696 shlibpath_overrides_runpath=yes
13703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13705 shlibpath_var=LD_LIBRARY_PATH
13706 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13708 openbsd2.[89] | openbsd2.[89].*)
13709 shlibpath_overrides_runpath=no
13712 shlibpath_overrides_runpath=yes
13716 shlibpath_overrides_runpath=yes
13721 libname_spec='$name'
13724 library_names_spec='$libname${shared_ext} $libname.a'
13725 dynamic_linker='OS/2 ld.exe'
13726 shlibpath_var=LIBPATH
13729 osf3* | osf4* | osf5*)
13733 soname_spec='${libname}${release}${shared_ext}$major'
13734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13735 shlibpath_var=LD_LIBRARY_PATH
13736 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13737 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13742 soname_spec='${libname}${release}${shared_ext}$major'
13743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13744 shlibpath_var=LD_LIBRARY_PATH
13751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13752 soname_spec='${libname}${release}${shared_ext}$major'
13753 shlibpath_var=LD_LIBRARY_PATH
13754 shlibpath_overrides_runpath=yes
13755 hardcode_into_libs=yes
13756 # ldd complains unless libraries are executable
13757 postinstall_cmds='chmod +x $lib'
13762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13763 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13764 shlibpath_var=LD_LIBRARY_PATH
13765 shlibpath_overrides_runpath=yes
13766 if test "$with_gnu_ld" = yes; then
13772 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13775 soname_spec='${libname}${release}${shared_ext}$major'
13776 shlibpath_var=LD_LIBRARY_PATH
13777 case $host_vendor in
13779 shlibpath_overrides_runpath=no
13781 export_dynamic_flag_spec='${wl}-Blargedynsym'
13782 runpath_var=LD_RUN_PATH
13790 shlibpath_overrides_runpath=no
13791 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13797 if test -d /usr/nec ;then
13799 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13800 soname_spec='$libname${shared_ext}.$major'
13801 shlibpath_var=LD_LIBRARY_PATH
13807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13808 soname_spec='${libname}${release}${shared_ext}$major'
13809 shlibpath_var=LD_LIBRARY_PATH
13816 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13817 echo "${ECHO_T}$dynamic_linker" >&6
13818 test "$dynamic_linker" = no && can_build_shared=no
13820 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13821 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13823 if test -n "$hardcode_libdir_flag_spec" || \
13824 test -n "$runpath_var" || \
13825 test "X$hardcode_automatic" = "Xyes" ; then
13827 # We can hardcode non-existant directories.
13828 if test "$hardcode_direct" != no &&
13829 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13830 # have to relink, otherwise we might link with an installed library
13831 # when we should be linking with a yet-to-be-installed one
13832 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13833 test "$hardcode_minus_L" != no; then
13834 # Linking always hardcodes the temporary library directory.
13835 hardcode_action=relink
13837 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13838 hardcode_action=immediate
13841 # We cannot hardcode anything, or else we can only hardcode existing
13843 hardcode_action=unsupported
13845 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13846 echo "${ECHO_T}$hardcode_action" >&6
13848 if test "$hardcode_action" = relink; then
13849 # Fast installation is not supported
13850 enable_fast_install=no
13851 elif test "$shlibpath_overrides_runpath" = yes ||
13852 test "$enable_shared" = no; then
13853 # Fast installation is not necessary
13854 enable_fast_install=needless
13859 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13860 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13861 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13862 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13863 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13864 echo "$as_me:$LINENO: result: yes" >&5
13865 echo "${ECHO_T}yes" >&6
13867 # FIXME - insert some real tests, host_os isn't really good enough
13870 if test -n "$STRIP" ; then
13871 striplib="$STRIP -x"
13872 echo "$as_me:$LINENO: result: yes" >&5
13873 echo "${ECHO_T}yes" >&6
13875 echo "$as_me:$LINENO: result: no" >&5
13876 echo "${ECHO_T}no" >&6
13880 echo "$as_me:$LINENO: result: no" >&5
13881 echo "${ECHO_T}no" >&6
13886 if test "x$enable_dlopen" != xyes; then
13887 enable_dlopen=unknown
13888 enable_dlopen_self=unknown
13889 enable_dlopen_self_static=unknown
13896 lt_cv_dlopen="load_add_on"
13898 lt_cv_dlopen_self=yes
13902 lt_cv_dlopen="LoadLibrary"
13907 lt_cv_dlopen="dlopen"
13912 # if libdl is installed we need to link against it
13913 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13914 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13915 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13916 echo $ECHO_N "(cached) $ECHO_C" >&6
13918 ac_check_lib_save_LIBS=$LIBS
13920 cat >conftest.$ac_ext <<_ACEOF
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h. */
13927 /* Override any gcc2 internal prototype to avoid an error. */
13931 /* We use char because int might match the return type of a gcc2
13932 builtin and then its argument prototype would still apply. */
13942 rm -f conftest.$ac_objext conftest$ac_exeext
13943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13944 (eval $ac_link) 2>conftest.er1
13946 grep -v '^ *+' conftest.er1 >conftest.err
13948 cat conftest.err >&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } &&
13951 { ac_try='test -z "$ac_c_werror_flag"
13952 || test ! -s conftest.err'
13953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954 (eval $ac_try) 2>&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; } &&
13958 { ac_try='test -s conftest$ac_exeext'
13959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960 (eval $ac_try) 2>&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; }; then
13964 ac_cv_lib_dl_dlopen=yes
13966 echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13969 ac_cv_lib_dl_dlopen=no
13971 rm -f conftest.err conftest.$ac_objext \
13972 conftest$ac_exeext conftest.$ac_ext
13973 LIBS=$ac_check_lib_save_LIBS
13975 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13976 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13977 if test $ac_cv_lib_dl_dlopen = yes; then
13978 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13981 lt_cv_dlopen="dyld"
13983 lt_cv_dlopen_self=yes
13990 echo "$as_me:$LINENO: checking for shl_load" >&5
13991 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13992 if test "${ac_cv_func_shl_load+set}" = set; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13995 cat >conftest.$ac_ext <<_ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14001 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14003 #define shl_load innocuous_shl_load
14005 /* System header to define __stub macros and hopefully few prototypes,
14006 which can conflict with char shl_load (); below.
14007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14008 <limits.h> exists even on freestanding compilers. */
14011 # include <limits.h>
14013 # include <assert.h>
14018 /* Override any gcc2 internal prototype to avoid an error. */
14023 /* We use char because int might match the return type of a gcc2
14024 builtin and then its argument prototype would still apply. */
14026 /* The GNU C library defines this for functions which it implements
14027 to always fail with ENOSYS. Some functions are actually named
14028 something starting with __ and the normal name is an alias. */
14029 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14032 char (*f) () = shl_load;
14041 return f != shl_load;
14046 rm -f conftest.$ac_objext conftest$ac_exeext
14047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14048 (eval $ac_link) 2>conftest.er1
14050 grep -v '^ *+' conftest.er1 >conftest.err
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } &&
14055 { ac_try='test -z "$ac_c_werror_flag"
14056 || test ! -s conftest.err'
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; } &&
14062 { ac_try='test -s conftest$ac_exeext'
14063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064 (eval $ac_try) 2>&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; }; then
14068 ac_cv_func_shl_load=yes
14070 echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14073 ac_cv_func_shl_load=no
14075 rm -f conftest.err conftest.$ac_objext \
14076 conftest$ac_exeext conftest.$ac_ext
14078 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14079 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14080 if test $ac_cv_func_shl_load = yes; then
14081 lt_cv_dlopen="shl_load"
14083 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14084 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14085 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14088 ac_check_lib_save_LIBS=$LIBS
14090 cat >conftest.$ac_ext <<_ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h. */
14097 /* Override any gcc2 internal prototype to avoid an error. */
14101 /* We use char because int might match the return type of a gcc2
14102 builtin and then its argument prototype would still apply. */
14112 rm -f conftest.$ac_objext conftest$ac_exeext
14113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14114 (eval $ac_link) 2>conftest.er1
14116 grep -v '^ *+' conftest.er1 >conftest.err
14118 cat conftest.err >&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); } &&
14121 { ac_try='test -z "$ac_c_werror_flag"
14122 || test ! -s conftest.err'
14123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14124 (eval $ac_try) 2>&5
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; } &&
14128 { ac_try='test -s conftest$ac_exeext'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
14134 ac_cv_lib_dld_shl_load=yes
14136 echo "$as_me: failed program was:" >&5
14137 sed 's/^/| /' conftest.$ac_ext >&5
14139 ac_cv_lib_dld_shl_load=no
14141 rm -f conftest.err conftest.$ac_objext \
14142 conftest$ac_exeext conftest.$ac_ext
14143 LIBS=$ac_check_lib_save_LIBS
14145 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14146 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14147 if test $ac_cv_lib_dld_shl_load = yes; then
14148 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14150 echo "$as_me:$LINENO: checking for dlopen" >&5
14151 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14152 if test "${ac_cv_func_dlopen+set}" = set; then
14153 echo $ECHO_N "(cached) $ECHO_C" >&6
14155 cat >conftest.$ac_ext <<_ACEOF
14158 cat confdefs.h >>conftest.$ac_ext
14159 cat >>conftest.$ac_ext <<_ACEOF
14160 /* end confdefs.h. */
14161 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14163 #define dlopen innocuous_dlopen
14165 /* System header to define __stub macros and hopefully few prototypes,
14166 which can conflict with char dlopen (); below.
14167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14168 <limits.h> exists even on freestanding compilers. */
14171 # include <limits.h>
14173 # include <assert.h>
14178 /* Override any gcc2 internal prototype to avoid an error. */
14183 /* We use char because int might match the return type of a gcc2
14184 builtin and then its argument prototype would still apply. */
14186 /* The GNU C library defines this for functions which it implements
14187 to always fail with ENOSYS. Some functions are actually named
14188 something starting with __ and the normal name is an alias. */
14189 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14192 char (*f) () = dlopen;
14201 return f != dlopen;
14206 rm -f conftest.$ac_objext conftest$ac_exeext
14207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14208 (eval $ac_link) 2>conftest.er1
14210 grep -v '^ *+' conftest.er1 >conftest.err
14212 cat conftest.err >&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } &&
14215 { ac_try='test -z "$ac_c_werror_flag"
14216 || test ! -s conftest.err'
14217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218 (eval $ac_try) 2>&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; } &&
14222 { ac_try='test -s conftest$ac_exeext'
14223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
14228 ac_cv_func_dlopen=yes
14230 echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14233 ac_cv_func_dlopen=no
14235 rm -f conftest.err conftest.$ac_objext \
14236 conftest$ac_exeext conftest.$ac_ext
14238 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14239 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14240 if test $ac_cv_func_dlopen = yes; then
14241 lt_cv_dlopen="dlopen"
14243 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14244 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14245 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14248 ac_check_lib_save_LIBS=$LIBS
14250 cat >conftest.$ac_ext <<_ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h. */
14257 /* Override any gcc2 internal prototype to avoid an error. */
14261 /* We use char because int might match the return type of a gcc2
14262 builtin and then its argument prototype would still apply. */
14272 rm -f conftest.$ac_objext conftest$ac_exeext
14273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14274 (eval $ac_link) 2>conftest.er1
14276 grep -v '^ *+' conftest.er1 >conftest.err
14278 cat conftest.err >&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } &&
14281 { ac_try='test -z "$ac_c_werror_flag"
14282 || test ! -s conftest.err'
14283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; } &&
14288 { ac_try='test -s conftest$ac_exeext'
14289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290 (eval $ac_try) 2>&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; }; then
14294 ac_cv_lib_dl_dlopen=yes
14296 echo "$as_me: failed program was:" >&5
14297 sed 's/^/| /' conftest.$ac_ext >&5
14299 ac_cv_lib_dl_dlopen=no
14301 rm -f conftest.err conftest.$ac_objext \
14302 conftest$ac_exeext conftest.$ac_ext
14303 LIBS=$ac_check_lib_save_LIBS
14305 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14306 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14307 if test $ac_cv_lib_dl_dlopen = yes; then
14308 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14310 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14311 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14312 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14315 ac_check_lib_save_LIBS=$LIBS
14316 LIBS="-lsvld $LIBS"
14317 cat >conftest.$ac_ext <<_ACEOF
14320 cat confdefs.h >>conftest.$ac_ext
14321 cat >>conftest.$ac_ext <<_ACEOF
14322 /* end confdefs.h. */
14324 /* Override any gcc2 internal prototype to avoid an error. */
14328 /* We use char because int might match the return type of a gcc2
14329 builtin and then its argument prototype would still apply. */
14339 rm -f conftest.$ac_objext conftest$ac_exeext
14340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14341 (eval $ac_link) 2>conftest.er1
14343 grep -v '^ *+' conftest.er1 >conftest.err
14345 cat conftest.err >&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
14348 { ac_try='test -z "$ac_c_werror_flag"
14349 || test ! -s conftest.err'
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; } &&
14355 { ac_try='test -s conftest$ac_exeext'
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
14361 ac_cv_lib_svld_dlopen=yes
14363 echo "$as_me: failed program was:" >&5
14364 sed 's/^/| /' conftest.$ac_ext >&5
14366 ac_cv_lib_svld_dlopen=no
14368 rm -f conftest.err conftest.$ac_objext \
14369 conftest$ac_exeext conftest.$ac_ext
14370 LIBS=$ac_check_lib_save_LIBS
14372 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14373 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14374 if test $ac_cv_lib_svld_dlopen = yes; then
14375 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14377 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14378 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14379 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14380 echo $ECHO_N "(cached) $ECHO_C" >&6
14382 ac_check_lib_save_LIBS=$LIBS
14384 cat >conftest.$ac_ext <<_ACEOF
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14391 /* Override any gcc2 internal prototype to avoid an error. */
14395 /* We use char because int might match the return type of a gcc2
14396 builtin and then its argument prototype would still apply. */
14406 rm -f conftest.$ac_objext conftest$ac_exeext
14407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14408 (eval $ac_link) 2>conftest.er1
14410 grep -v '^ *+' conftest.er1 >conftest.err
14412 cat conftest.err >&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } &&
14415 { ac_try='test -z "$ac_c_werror_flag"
14416 || test ! -s conftest.err'
14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418 (eval $ac_try) 2>&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; } &&
14422 { ac_try='test -s conftest$ac_exeext'
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; }; then
14428 ac_cv_lib_dld_dld_link=yes
14430 echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.$ac_ext >&5
14433 ac_cv_lib_dld_dld_link=no
14435 rm -f conftest.err conftest.$ac_objext \
14436 conftest$ac_exeext conftest.$ac_ext
14437 LIBS=$ac_check_lib_save_LIBS
14439 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14440 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14441 if test $ac_cv_lib_dld_dld_link = yes; then
14442 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14463 if test "x$lt_cv_dlopen" != xno; then
14469 case $lt_cv_dlopen in
14471 save_CPPFLAGS="$CPPFLAGS"
14472 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14474 save_LDFLAGS="$LDFLAGS"
14475 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14478 LIBS="$lt_cv_dlopen_libs $LIBS"
14480 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14481 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14482 if test "${lt_cv_dlopen_self+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14485 if test "$cross_compiling" = yes; then :
14486 lt_cv_dlopen_self=cross
14488 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14489 lt_status=$lt_dlunknown
14490 cat > conftest.$ac_ext <<EOF
14491 #line 14491 "configure"
14492 #include "confdefs.h"
14501 # define LT_DLGLOBAL RTLD_GLOBAL
14504 # define LT_DLGLOBAL DL_GLOBAL
14506 # define LT_DLGLOBAL 0
14510 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14511 find out it does not work in some platform. */
14512 #ifndef LT_DLLAZY_OR_NOW
14514 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14517 # define LT_DLLAZY_OR_NOW DL_LAZY
14520 # define LT_DLLAZY_OR_NOW RTLD_NOW
14523 # define LT_DLLAZY_OR_NOW DL_NOW
14525 # define LT_DLLAZY_OR_NOW 0
14533 extern "C" void exit (int);
14536 void fnord() { int i=42;}
14539 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14540 int status = $lt_dlunknown;
14544 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14545 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14546 /* dlclose (self); */
14552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14553 (eval $ac_link) 2>&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14557 (./conftest; exit; ) 2>/dev/null
14559 case x$lt_status in
14560 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14561 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14562 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14565 # compilation failed
14566 lt_cv_dlopen_self=no
14573 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14574 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14576 if test "x$lt_cv_dlopen_self" = xyes; then
14577 LDFLAGS="$LDFLAGS $link_static_flag"
14578 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14579 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14580 if test "${lt_cv_dlopen_self_static+set}" = set; then
14581 echo $ECHO_N "(cached) $ECHO_C" >&6
14583 if test "$cross_compiling" = yes; then :
14584 lt_cv_dlopen_self_static=cross
14586 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14587 lt_status=$lt_dlunknown
14588 cat > conftest.$ac_ext <<EOF
14589 #line 14589 "configure"
14590 #include "confdefs.h"
14599 # define LT_DLGLOBAL RTLD_GLOBAL
14602 # define LT_DLGLOBAL DL_GLOBAL
14604 # define LT_DLGLOBAL 0
14608 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14609 find out it does not work in some platform. */
14610 #ifndef LT_DLLAZY_OR_NOW
14612 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14615 # define LT_DLLAZY_OR_NOW DL_LAZY
14618 # define LT_DLLAZY_OR_NOW RTLD_NOW
14621 # define LT_DLLAZY_OR_NOW DL_NOW
14623 # define LT_DLLAZY_OR_NOW 0
14631 extern "C" void exit (int);
14634 void fnord() { int i=42;}
14637 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14638 int status = $lt_dlunknown;
14642 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14643 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14644 /* dlclose (self); */
14650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14651 (eval $ac_link) 2>&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14655 (./conftest; exit; ) 2>/dev/null
14657 case x$lt_status in
14658 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14659 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14660 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14663 # compilation failed
14664 lt_cv_dlopen_self_static=no
14671 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14672 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14675 CPPFLAGS="$save_CPPFLAGS"
14676 LDFLAGS="$save_LDFLAGS"
14681 case $lt_cv_dlopen_self in
14682 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14683 *) enable_dlopen_self=unknown ;;
14686 case $lt_cv_dlopen_self_static in
14687 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14688 *) enable_dlopen_self_static=unknown ;;
14693 # Report which librarie types wil actually be built
14694 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14695 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14696 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14697 echo "${ECHO_T}$can_build_shared" >&6
14699 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14700 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14701 test "$can_build_shared" = "no" && enable_shared=no
14703 # On AIX, shared libraries and static libraries use the same namespace, and
14704 # are all built from PIC.
14707 test "$enable_shared" = yes && enable_static=no
14708 if test -n "$RANLIB"; then
14709 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14710 postinstall_cmds='$RANLIB $lib'
14715 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14716 test "$enable_shared" = yes && enable_static=no
14720 echo "$as_me:$LINENO: result: $enable_shared" >&5
14721 echo "${ECHO_T}$enable_shared" >&6
14723 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14724 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14725 # Make sure either enable_shared or enable_static is yes.
14726 test "$enable_shared" = yes || enable_static=yes
14727 echo "$as_me:$LINENO: result: $enable_static" >&5
14728 echo "${ECHO_T}$enable_static" >&6
14730 # The else clause should only fire when bootstrapping the
14731 # libtool distribution, otherwise you forgot to ship ltmain.sh
14732 # with your package, and you will get complaints that there are
14733 # no rules to generate ltmain.sh.
14734 if test -f "$ltmain"; then
14735 # See if we are running on zsh, and set the options which allow our commands through
14736 # without removal of \ escapes.
14737 if test -n "${ZSH_VERSION+set}" ; then
14738 setopt NO_GLOB_SUBST
14740 # Now quote all the things that may contain metacharacters while being
14741 # careful not to overquote the AC_SUBSTed values. We take copies of the
14742 # variables and quote the copies for generation of the libtool script.
14743 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14745 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14746 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14747 deplibs_check_method reload_flag reload_cmds need_locks \
14748 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14749 lt_cv_sys_global_symbol_to_c_name_address \
14750 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14751 old_postinstall_cmds old_postuninstall_cmds \
14755 lt_prog_compiler_wl \
14756 lt_prog_compiler_pic \
14757 lt_prog_compiler_static \
14758 lt_prog_compiler_no_builtin_flag \
14759 export_dynamic_flag_spec \
14760 thread_safe_flag_spec \
14761 whole_archive_flag_spec \
14762 enable_shared_with_static_runtimes \
14764 old_archive_from_new_cmds \
14769 compiler_lib_search_path \
14771 archive_expsym_cmds \
14773 postuninstall_cmds \
14774 old_archive_from_expsyms_cmds \
14775 allow_undefined_flag \
14776 no_undefined_flag \
14777 export_symbols_cmds \
14778 hardcode_libdir_flag_spec \
14779 hardcode_libdir_flag_spec_ld \
14780 hardcode_libdir_separator \
14781 hardcode_automatic \
14783 module_expsym_cmds \
14784 lt_cv_prog_compiler_c_o \
14786 include_expsyms; do
14789 old_archive_cmds | \
14790 old_archive_from_new_cmds | \
14792 archive_expsym_cmds | \
14794 module_expsym_cmds | \
14795 old_archive_from_expsyms_cmds | \
14796 export_symbols_cmds | \
14797 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14798 postinstall_cmds | postuninstall_cmds | \
14799 old_postinstall_cmds | old_postuninstall_cmds | \
14800 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14801 # Double-quote double-evaled strings.
14802 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14805 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14811 *'\$0 --fallback-echo"')
14812 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14816 cfgfile="${ofile}T"
14817 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14819 { echo "$as_me:$LINENO: creating $ofile" >&5
14820 echo "$as_me: creating $ofile" >&6;}
14822 cat <<__EOF__ >> "$cfgfile"
14825 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14826 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14827 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14829 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14830 # Free Software Foundation, Inc.
14832 # This file is part of GNU Libtool:
14833 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14835 # This program is free software; you can redistribute it and/or modify
14836 # it under the terms of the GNU General Public License as published by
14837 # the Free Software Foundation; either version 2 of the License, or
14838 # (at your option) any later version.
14840 # This program is distributed in the hope that it will be useful, but
14841 # WITHOUT ANY WARRANTY; without even the implied warranty of
14842 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14843 # General Public License for more details.
14845 # You should have received a copy of the GNU General Public License
14846 # along with this program; if not, write to the Free Software
14847 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14849 # As a special exception to the GNU General Public License, if you
14850 # distribute this file as part of a program that contains a
14851 # configuration script generated by Autoconf, you may include it under
14852 # the same distribution terms that you use for the rest of that program.
14854 # A sed program that does not truncate output.
14857 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14858 Xsed="$SED -e s/^X//"
14860 # The HP-UX ksh and POSIX shell print the target directory to stdout
14861 # if CDPATH is set.
14862 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14864 # The names of the tagged configurations supported by this script.
14867 # ### BEGIN LIBTOOL CONFIG
14869 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14871 # Shell to use when invoking shell scripts.
14874 # Whether or not to build shared libraries.
14875 build_libtool_libs=$enable_shared
14877 # Whether or not to build static libraries.
14878 build_old_libs=$enable_static
14880 # Whether or not to add -lc for building shared libraries.
14881 build_libtool_need_lc=$archive_cmds_need_lc
14883 # Whether or not to disallow shared libs when runtime libs are static
14884 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14886 # Whether or not to optimize for fast installation.
14887 fast_install=$enable_fast_install
14890 host_alias=$host_alias
14893 # An echo program that does not interpret backslashes.
14898 AR_FLAGS=$lt_AR_FLAGS
14903 # A language-specific compiler.
14906 # Is the compiler the GNU C compiler?
14912 # The linker used to build libraries.
14915 # Whether we need hard or soft links.
14918 # A BSD-compatible nm program.
14921 # A symbol stripping program
14924 # Used to examine libraries when file_magic_cmd begins "file"
14925 MAGIC_CMD=$MAGIC_CMD
14927 # Used on cygwin: DLL creation program.
14930 # Used on cygwin: object dumper.
14933 # Used on cygwin: assembler.
14936 # The name of the directory that contains temporary libtool files.
14939 # How to create reloadable object files.
14940 reload_flag=$lt_reload_flag
14941 reload_cmds=$lt_reload_cmds
14943 # How to pass a linker flag through the compiler.
14944 wl=$lt_lt_prog_compiler_wl
14946 # Object file suffix (normally "o").
14947 objext="$ac_objext"
14949 # Old archive suffix (normally "a").
14952 # Shared library suffix (normally ".so").
14953 shrext_cmds='$shrext_cmds'
14955 # Executable file suffix (normally "").
14958 # Additional compiler flags for building library objects.
14959 pic_flag=$lt_lt_prog_compiler_pic
14962 # What is the maximum length of a command?
14963 max_cmd_len=$lt_cv_sys_max_cmd_len
14965 # Does compiler simultaneously support -c and -o options?
14966 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14968 # Must we lock files when doing compilation ?
14969 need_locks=$lt_need_locks
14971 # Do we need the lib prefix for modules?
14972 need_lib_prefix=$need_lib_prefix
14974 # Do we need a version for libraries?
14975 need_version=$need_version
14977 # Whether dlopen is supported.
14978 dlopen_support=$enable_dlopen
14980 # Whether dlopen of programs is supported.
14981 dlopen_self=$enable_dlopen_self
14983 # Whether dlopen of statically linked programs is supported.
14984 dlopen_self_static=$enable_dlopen_self_static
14986 # Compiler flag to prevent dynamic linking.
14987 link_static_flag=$lt_lt_prog_compiler_static
14989 # Compiler flag to turn off builtin functions.
14990 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14992 # Compiler flag to allow reflexive dlopens.
14993 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14995 # Compiler flag to generate shared objects directly from archives.
14996 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14998 # Compiler flag to generate thread-safe objects.
14999 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15001 # Library versioning type.
15002 version_type=$version_type
15004 # Format of library name prefix.
15005 libname_spec=$lt_libname_spec
15007 # List of archive names. First name is the real one, the rest are links.
15008 # The last name is the one that the linker finds with -lNAME.
15009 library_names_spec=$lt_library_names_spec
15011 # The coded name of the library, if different from the real name.
15012 soname_spec=$lt_soname_spec
15014 # Commands used to build and install an old-style archive.
15016 old_archive_cmds=$lt_old_archive_cmds
15017 old_postinstall_cmds=$lt_old_postinstall_cmds
15018 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15020 # Create an old-style archive from a shared archive.
15021 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15023 # Create a temporary old-style archive to link instead of a shared archive.
15024 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15026 # Commands used to build and install a shared archive.
15027 archive_cmds=$lt_archive_cmds
15028 archive_expsym_cmds=$lt_archive_expsym_cmds
15029 postinstall_cmds=$lt_postinstall_cmds
15030 postuninstall_cmds=$lt_postuninstall_cmds
15032 # Commands used to build a loadable module (assumed same as above if empty)
15033 module_cmds=$lt_module_cmds
15034 module_expsym_cmds=$lt_module_expsym_cmds
15036 # Commands to strip libraries.
15037 old_striplib=$lt_old_striplib
15038 striplib=$lt_striplib
15040 # Dependencies to place before the objects being linked to create a
15042 predep_objects=$lt_predep_objects
15044 # Dependencies to place after the objects being linked to create a
15046 postdep_objects=$lt_postdep_objects
15048 # Dependencies to place before the objects being linked to create a
15050 predeps=$lt_predeps
15052 # Dependencies to place after the objects being linked to create a
15054 postdeps=$lt_postdeps
15056 # The library search path used internally by the compiler when linking
15057 # a shared library.
15058 compiler_lib_search_path=$lt_compiler_lib_search_path
15060 # Method to check whether dependent libraries are shared objects.
15061 deplibs_check_method=$lt_deplibs_check_method
15063 # Command to use when deplibs_check_method == file_magic.
15064 file_magic_cmd=$lt_file_magic_cmd
15066 # Flag that allows shared libraries with undefined symbols to be built.
15067 allow_undefined_flag=$lt_allow_undefined_flag
15069 # Flag that forces no undefined symbols.
15070 no_undefined_flag=$lt_no_undefined_flag
15072 # Commands used to finish a libtool library installation in a directory.
15073 finish_cmds=$lt_finish_cmds
15075 # Same as above, but a single script fragment to be evaled but not shown.
15076 finish_eval=$lt_finish_eval
15078 # Take the output of nm and produce a listing of raw symbols and C names.
15079 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15081 # Transform the output of nm in a proper C declaration
15082 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15084 # Transform the output of nm in a C name address pair
15085 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15087 # This is the shared library runtime path variable.
15088 runpath_var=$runpath_var
15090 # This is the shared library path variable.
15091 shlibpath_var=$shlibpath_var
15093 # Is shlibpath searched before the hard-coded library search path?
15094 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15096 # How to hardcode a shared library path into an executable.
15097 hardcode_action=$hardcode_action
15099 # Whether we should hardcode library paths into libraries.
15100 hardcode_into_libs=$hardcode_into_libs
15102 # Flag to hardcode \$libdir into a binary during linking.
15103 # This must work even if \$libdir does not exist.
15104 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15106 # If ld is used when linking, flag to hardcode \$libdir into
15107 # a binary during linking. This must work even if \$libdir does
15109 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15111 # Whether we need a single -rpath flag with a separated argument.
15112 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15114 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15115 # resulting binary.
15116 hardcode_direct=$hardcode_direct
15118 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15119 # resulting binary.
15120 hardcode_minus_L=$hardcode_minus_L
15122 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15123 # the resulting binary.
15124 hardcode_shlibpath_var=$hardcode_shlibpath_var
15126 # Set to yes if building a shared library automatically hardcodes DIR into the library
15127 # and all subsequent libraries and executables linked against it.
15128 hardcode_automatic=$hardcode_automatic
15130 # Variables whose values should be saved in libtool wrapper scripts and
15131 # restored at relink time.
15132 variables_saved_for_relink="$variables_saved_for_relink"
15134 # Whether libtool must link a program against all its dependency libraries.
15135 link_all_deplibs=$link_all_deplibs
15137 # Compile-time system search path for libraries
15138 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15140 # Run-time system search path for libraries
15141 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15143 # Fix the shell variable \$srcfile for the compiler.
15144 fix_srcfile_path="$fix_srcfile_path"
15146 # Set to yes if exported symbols are required.
15147 always_export_symbols=$always_export_symbols
15149 # The commands to list exported symbols.
15150 export_symbols_cmds=$lt_export_symbols_cmds
15152 # The commands to extract the exported symbol list from a shared archive.
15153 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15155 # Symbols that should not be listed in the preloaded symbols.
15156 exclude_expsyms=$lt_exclude_expsyms
15158 # Symbols that must always be exported.
15159 include_expsyms=$lt_include_expsyms
15161 # ### END LIBTOOL CONFIG
15168 cat <<\EOF >> "$cfgfile"
15170 # AIX sometimes has problems with the GCC collect2 program. For some
15171 # reason, if we set the COLLECT_NAMES environment variable, the problems
15172 # vanish in a puff of smoke.
15173 if test "X${COLLECT_NAMES+set}" != Xset; then
15175 export COLLECT_NAMES
15181 # We use sed instead of cat because bash on DJGPP gets confused if
15182 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15183 # text mode, it properly converts lines to CR/LF. This bash problem
15184 # is reportedly fixed, but why not run on old versions too?
15185 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15187 mv -f "$cfgfile" "$ofile" || \
15188 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15192 # If there is no Makefile yet, we rely on a make rule to execute
15193 # `config.status --recheck' to rerun these tests and create the
15194 # libtool script then.
15195 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15196 if test -f "$ltmain_in"; then
15197 test -f Makefile && make "$ltmain"
15203 ac_cpp='$CPP $CPPFLAGS'
15204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15211 # Check whether --with-tags or --without-tags was given.
15212 if test "${with_tags+set}" = set; then
15213 withval="$with_tags"
15214 tagnames="$withval"
15217 if test -f "$ltmain" && test -n "$tagnames"; then
15218 if test ! -f "${ofile}"; then
15219 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15220 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15223 if test -z "$LTCC"; then
15224 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15225 if test -z "$LTCC"; then
15226 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15227 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15229 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15230 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15234 # Extract list of available tagged configurations in $ofile.
15235 # Note that this assumes the entire list is on one line.
15236 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15238 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15239 for tagname in $tagnames; do
15241 # Check whether tagname contains only valid characters
15242 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15244 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15245 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15246 { (exit 1); exit 1; }; }
15250 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15252 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15253 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15254 { (exit 1); exit 1; }; }
15257 # Update the list of available tags.
15258 if test -n "$tagname"; then
15259 echo appending configuration tag "$tagname" to $ofile
15263 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15264 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15265 (test "X$CXX" != "Xg++"))) ; then
15267 ac_cpp='$CXXCPP $CPPFLAGS'
15268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15275 archive_cmds_need_lc_CXX=no
15276 allow_undefined_flag_CXX=
15277 always_export_symbols_CXX=no
15278 archive_expsym_cmds_CXX=
15279 export_dynamic_flag_spec_CXX=
15280 hardcode_direct_CXX=no
15281 hardcode_libdir_flag_spec_CXX=
15282 hardcode_libdir_flag_spec_ld_CXX=
15283 hardcode_libdir_separator_CXX=
15284 hardcode_minus_L_CXX=no
15285 hardcode_automatic_CXX=no
15287 module_expsym_cmds_CXX=
15288 link_all_deplibs_CXX=unknown
15289 old_archive_cmds_CXX=$old_archive_cmds
15290 no_undefined_flag_CXX=
15291 whole_archive_flag_spec_CXX=
15292 enable_shared_with_static_runtimes_CXX=no
15294 # Dependencies to place before and after the object being linked:
15295 predep_objects_CXX=
15296 postdep_objects_CXX=
15299 compiler_lib_search_path_CXX=
15301 # Source file extension for C++ test sources.
15304 # Object file extension for compiled C++ test sources.
15308 # Code to be used in simple compile tests
15309 lt_simple_compile_test_code="int some_variable = 0;\n"
15311 # Code to be used in simple link tests
15312 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15314 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15316 # If no C compiler was specified, use CC.
15319 # Allow CC to be a program name with arguments.
15323 # Allow CC to be a program name with arguments.
15328 lt_save_with_gnu_ld=$with_gnu_ld
15329 lt_save_path_LD=$lt_cv_path_LD
15330 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15331 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15333 unset lt_cv_prog_gnu_ld
15335 if test -n "${lt_cv_path_LDCXX+set}"; then
15336 lt_cv_path_LD=$lt_cv_path_LDCXX
15338 unset lt_cv_path_LD
15340 test -z "${LDCXX+set}" || LD=$LDCXX
15344 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15346 # We don't want -fno-exception wen compiling C++ code, so set the
15347 # no_builtin_flag separately
15348 if test "$GXX" = yes; then
15349 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15351 lt_prog_compiler_no_builtin_flag_CXX=
15354 if test "$GXX" = yes; then
15355 # Set up default GNU C++ configuration
15358 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15359 if test "${with_gnu_ld+set}" = set; then
15360 withval="$with_gnu_ld"
15361 test "$withval" = no || with_gnu_ld=yes
15366 if test "$GCC" = yes; then
15367 # Check if gcc -print-prog-name=ld gives a path.
15368 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15369 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15372 # gcc leaves a trailing carriage return which upsets mingw
15373 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15375 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15378 # Accept absolute paths.
15380 re_direlt='/[^/][^/]*/\.\./'
15381 # Canonicalize the pathname of ld
15382 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15383 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15384 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15386 test -z "$LD" && LD="$ac_prog"
15389 # If it fails, then pretend we aren't using GCC.
15393 # If it is relative, then search for the first ld in PATH.
15394 with_gnu_ld=unknown
15397 elif test "$with_gnu_ld" = yes; then
15398 echo "$as_me:$LINENO: checking for GNU ld" >&5
15399 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15401 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15402 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15404 if test "${lt_cv_path_LD+set}" = set; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15407 if test -z "$LD"; then
15408 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15409 for ac_dir in $PATH; do
15411 test -z "$ac_dir" && ac_dir=.
15412 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15413 lt_cv_path_LD="$ac_dir/$ac_prog"
15414 # Check to see if the program is GNU ld. I'd rather use --version,
15415 # but apparently some GNU ld's only accept -v.
15416 # Break only if it was the GNU/non-GNU ld that we prefer.
15417 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15418 *GNU* | *'with BFD'*)
15419 test "$with_gnu_ld" != no && break
15422 test "$with_gnu_ld" != yes && break
15429 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15433 LD="$lt_cv_path_LD"
15434 if test -n "$LD"; then
15435 echo "$as_me:$LINENO: result: $LD" >&5
15436 echo "${ECHO_T}$LD" >&6
15438 echo "$as_me:$LINENO: result: no" >&5
15439 echo "${ECHO_T}no" >&6
15441 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15442 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15443 { (exit 1); exit 1; }; }
15444 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15445 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15446 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15447 echo $ECHO_N "(cached) $ECHO_C" >&6
15449 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15450 case `$LD -v 2>&1 </dev/null` in
15451 *GNU* | *'with BFD'*)
15452 lt_cv_prog_gnu_ld=yes
15455 lt_cv_prog_gnu_ld=no
15459 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15460 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15461 with_gnu_ld=$lt_cv_prog_gnu_ld
15465 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15466 # archiving commands below assume that GNU ld is being used.
15467 if test "$with_gnu_ld" = yes; then
15468 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15469 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'
15471 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15472 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15474 # If archive_cmds runs LD, not CC, wlarc should be empty
15475 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15476 # investigate it a little bit more. (MM)
15479 # ancient GNU ld didn't support --whole-archive et. al.
15480 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15481 grep 'no-whole-archive' > /dev/null; then
15482 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15484 whole_archive_flag_spec_CXX=
15490 # A generic and very simple default shared library creation
15491 # command for GNU C++ for the case where it uses the native
15492 # linker, instead of GNU ld. If possible, this setting should
15493 # overridden to take advantage of the native linker features on
15494 # the platform it is being used on.
15495 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15498 # Commands to make compiler produce verbose output that lists
15499 # what "hidden" libraries, object files and flags are used when
15500 # linking a shared library.
15501 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15509 # PORTME: fill in a description of your system's C++ link characteristics
15510 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15511 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15515 # FIXME: insert proper C++ library support
15519 if test "$host_cpu" = ia64; then
15520 # On IA64, the linker does run time linking by default, so we don't
15521 # have to do anything special.
15522 aix_use_runtimelinking=no
15523 exp_sym_flag='-Bexport'
15526 aix_use_runtimelinking=no
15528 # Test if we are trying to use run time linking or normal
15529 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15530 # need to do runtime linking.
15531 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15532 for ld_flag in $LDFLAGS; do
15535 aix_use_runtimelinking=yes
15542 exp_sym_flag='-bexport'
15543 no_entry_flag='-bnoentry'
15546 # When large executables or shared objects are built, AIX ld can
15547 # have problems creating the table of contents. If linking a library
15548 # or program results in "error TOC overflow" add -mminimal-toc to
15549 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15550 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15552 archive_cmds_CXX=''
15553 hardcode_direct_CXX=yes
15554 hardcode_libdir_separator_CXX=':'
15555 link_all_deplibs_CXX=yes
15557 if test "$GXX" = yes; then
15558 case $host_os in aix4.012|aix4.012.*)
15559 # We only want to do this on AIX 4.2 and lower, the check
15560 # below for broken collect2 doesn't work under 4.3+
15561 collect2name=`${CC} -print-prog-name=collect2`
15562 if test -f "$collect2name" && \
15563 strings "$collect2name" | grep resolve_lib_name >/dev/null
15565 # We have reworked collect2
15566 hardcode_direct_CXX=yes
15568 # We have old collect2
15569 hardcode_direct_CXX=unsupported
15570 # It fails to find uninstalled libraries when the uninstalled
15571 # path is not listed in the libpath. Setting hardcode_minus_L
15572 # to unsupported forces relinking
15573 hardcode_minus_L_CXX=yes
15574 hardcode_libdir_flag_spec_CXX='-L$libdir'
15575 hardcode_libdir_separator_CXX=
15578 shared_flag='-shared'
15581 if test "$host_cpu" = ia64; then
15582 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15583 # chokes on -Wl,-G. The following line is correct:
15586 if test "$aix_use_runtimelinking" = yes; then
15587 shared_flag='${wl}-G'
15589 shared_flag='${wl}-bM:SRE'
15594 # It seems that -bexpall does not export symbols beginning with
15595 # underscore (_), so it is better to generate a list of symbols to export.
15596 always_export_symbols_CXX=yes
15597 if test "$aix_use_runtimelinking" = yes; then
15598 # Warning - without using the other runtime loading flags (-brtl),
15599 # -berok will link without error, but may produce a broken library.
15600 allow_undefined_flag_CXX='-berok'
15601 # Determine the default libpath from the value encoded in an empty executable.
15602 cat >conftest.$ac_ext <<_ACEOF
15605 cat confdefs.h >>conftest.$ac_ext
15606 cat >>conftest.$ac_ext <<_ACEOF
15607 /* end confdefs.h. */
15617 rm -f conftest.$ac_objext conftest$ac_exeext
15618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15619 (eval $ac_link) 2>conftest.er1
15621 grep -v '^ *+' conftest.er1 >conftest.err
15623 cat conftest.err >&5
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); } &&
15626 { ac_try='test -z "$ac_cxx_werror_flag"
15627 || test ! -s conftest.err'
15628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629 (eval $ac_try) 2>&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; } &&
15633 { ac_try='test -s conftest$ac_exeext'
15634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15635 (eval $ac_try) 2>&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); }; }; then
15640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15642 # Check for a 64-bit object if we didn't find anything.
15643 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; }
15646 echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15650 rm -f conftest.err conftest.$ac_objext \
15651 conftest$ac_exeext conftest.$ac_ext
15652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15654 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15656 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"
15658 if test "$host_cpu" = ia64; then
15659 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15660 allow_undefined_flag_CXX="-z nodefs"
15661 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"
15663 # Determine the default libpath from the value encoded in an empty executable.
15664 cat >conftest.$ac_ext <<_ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h. */
15679 rm -f conftest.$ac_objext conftest$ac_exeext
15680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15681 (eval $ac_link) 2>conftest.er1
15683 grep -v '^ *+' conftest.er1 >conftest.err
15685 cat conftest.err >&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); } &&
15688 { ac_try='test -z "$ac_cxx_werror_flag"
15689 || test ! -s conftest.err'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; } &&
15695 { ac_try='test -s conftest$ac_exeext'
15696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697 (eval $ac_try) 2>&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; }; then
15702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15704 # Check for a 64-bit object if we didn't find anything.
15705 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; }
15708 echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.$ac_ext >&5
15712 rm -f conftest.err conftest.$ac_objext \
15713 conftest$ac_exeext conftest.$ac_ext
15714 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15716 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15717 # Warning - without using the other run time loading flags,
15718 # -berok will link without error, but may produce a broken library.
15719 no_undefined_flag_CXX=' ${wl}-bernotok'
15720 allow_undefined_flag_CXX=' ${wl}-berok'
15721 # -bexpall does not export symbols beginning with underscore (_)
15722 always_export_symbols_CXX=yes
15723 # Exported symbols can be pulled into shared objects from archives
15724 whole_archive_flag_spec_CXX=' '
15725 archive_cmds_need_lc_CXX=yes
15726 # This is similar to how AIX traditionally builds it's shared libraries.
15727 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'
15732 case $cc_basename in
15734 # FIXME: insert proper C++ library support
15741 cygwin* | mingw* | pw32*)
15742 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15743 # as there is no search path for DLLs.
15744 hardcode_libdir_flag_spec_CXX='-L$libdir'
15745 allow_undefined_flag_CXX=unsupported
15746 always_export_symbols_CXX=no
15747 enable_shared_with_static_runtimes_CXX=yes
15749 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15750 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'
15751 # If the export-symbols file already is a .def file (1st line
15752 # is EXPORTS), use it as is; otherwise, prepend...
15753 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15754 cp $export_symbols $output_objdir/$soname.def;
15756 echo EXPORTS > $output_objdir/$soname.def;
15757 cat $export_symbols >> $output_objdir/$soname.def;
15759 $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'
15764 darwin* | rhapsody*)
15766 rhapsody* | darwin1.[012])
15767 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15770 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15771 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15773 case ${MACOSX_DEPLOYMENT_TARGET} in
15775 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15778 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15784 archive_cmds_need_lc_CXX=no
15785 hardcode_direct_CXX=no
15786 hardcode_automatic_CXX=yes
15787 hardcode_shlibpath_var_CXX=unsupported
15788 whole_archive_flag_spec_CXX=''
15789 link_all_deplibs_CXX=yes
15791 if test "$GXX" = yes ; then
15792 lt_int_apple_cc_single_mod=no
15793 output_verbose_link_cmd='echo'
15794 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15795 lt_int_apple_cc_single_mod=yes
15797 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15798 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15800 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'
15802 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15803 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15804 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15805 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}'
15807 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}'
15809 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}'
15811 case "$cc_basename" in
15813 output_verbose_link_cmd='echo'
15814 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'
15815 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15816 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15817 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}'
15818 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}'
15828 case $cc_basename in
15830 # FIXME: insert proper C++ library support
15834 # Green Hills C++ Compiler
15835 # FIXME: insert proper C++ library support
15839 # FIXME: insert proper C++ library support
15845 # C++ shared libraries reported to be fairly broken before switch to ELF
15849 archive_cmds_need_lc_CXX=no
15851 freebsd* | kfreebsd*-gnu)
15852 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15859 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15860 hardcode_libdir_separator_CXX=:
15861 export_dynamic_flag_spec_CXX='${wl}-E'
15862 hardcode_direct_CXX=yes
15863 hardcode_minus_L_CXX=yes # Not in the search PATH,
15864 # but as the default
15865 # location of the library.
15867 case $cc_basename in
15869 # FIXME: insert proper C++ library support
15873 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'
15874 # Commands to make compiler produce verbose output that lists
15875 # what "hidden" libraries, object files and flags are used when
15876 # linking a shared library.
15878 # There doesn't appear to be a way to prevent this compiler from
15879 # explicitly linking system object files so we need to strip them
15880 # from the output so that they don't get included in the library
15882 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'
15885 if test "$GXX" = yes; then
15886 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'
15888 # FIXME: insert proper C++ library support
15895 if test $with_gnu_ld = no; then
15896 case "$host_cpu" in
15898 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15899 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15900 hardcode_libdir_separator_CXX=:
15903 hardcode_libdir_flag_spec_CXX='-L$libdir'
15906 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15907 hardcode_libdir_separator_CXX=:
15908 export_dynamic_flag_spec_CXX='${wl}-E'
15912 case "$host_cpu" in
15914 hardcode_direct_CXX=no
15915 hardcode_shlibpath_var_CXX=no
15918 hardcode_direct_CXX=no
15919 hardcode_shlibpath_var_CXX=no
15920 hardcode_minus_L_CXX=yes # Not in the search PATH,
15921 # but as the default
15922 # location of the library.
15925 hardcode_direct_CXX=yes
15926 hardcode_minus_L_CXX=yes # Not in the search PATH,
15927 # but as the default
15928 # location of the library.
15932 case $cc_basename in
15934 # FIXME: insert proper C++ library support
15938 case "$host_cpu" in
15940 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15943 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15946 # Commands to make compiler produce verbose output that lists
15947 # what "hidden" libraries, object files and flags are used when
15948 # linking a shared library.
15950 # There doesn't appear to be a way to prevent this compiler from
15951 # explicitly linking system object files so we need to strip them
15952 # from the output so that they don't get included in the library
15954 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'
15957 if test "$GXX" = yes; then
15958 if test $with_gnu_ld = no; then
15959 case "$host_cpu" in
15961 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15964 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'
15969 # FIXME: insert proper C++ library support
15976 case $cc_basename in
15979 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'
15981 # Archives containing C++ object files must be created using
15982 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15983 # necessary to make sure instantiated templates are included
15985 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15988 if test "$GXX" = yes; then
15989 if test "$with_gnu_ld" = no; then
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` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
15992 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'
15995 link_all_deplibs_CXX=yes
15998 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15999 hardcode_libdir_separator_CXX=:
16002 case $cc_basename in
16004 # Kuck and Associates, Inc. (KAI) C++ Compiler
16006 # KCC will only create a shared library if the output file
16007 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16008 # to its proper name (with version) after linking.
16009 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'
16010 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'
16011 # Commands to make compiler produce verbose output that lists
16012 # what "hidden" libraries, object files and flags are used when
16013 # linking a shared library.
16015 # There doesn't appear to be a way to prevent this compiler from
16016 # explicitly linking system object files so we need to strip them
16017 # from the output so that they don't get included in the library
16019 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'
16021 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16022 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16024 # Archives containing C++ object files must be created using
16025 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16026 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16031 # version 8.0 and above of icpc choke on multiply defined symbols
16032 # if we add $predep_objects and $postdep_objects, however 7.1 and
16033 # earlier do not add the objects themselves.
16034 case `$CC -V 2>&1` in
16036 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16037 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'
16039 *) # Version 8.0 or newer
16040 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16041 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16044 archive_cmds_need_lc_CXX=no
16045 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16046 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16047 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16051 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16052 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'
16054 runpath_var=LD_RUN_PATH
16055 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16056 hardcode_libdir_separator_CXX=:
16058 # Commands to make compiler produce verbose output that lists
16059 # what "hidden" libraries, object files and flags are used when
16060 # linking a shared library.
16062 # There doesn't appear to be a way to prevent this compiler from
16063 # explicitly linking system object files so we need to strip them
16064 # from the output so that they don't get included in the library
16066 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'
16071 # FIXME: insert proper C++ library support
16075 # FIXME: insert proper C++ library support
16079 case $cc_basename in
16081 # FIXME: insert proper C++ library support
16085 # FIXME: insert proper C++ library support
16091 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16092 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16094 hardcode_libdir_flag_spec_CXX='-R$libdir'
16095 hardcode_direct_CXX=yes
16096 hardcode_shlibpath_var_CXX=no
16098 # Workaround some broken pre-1.5 toolchains
16099 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16102 # C++ shared libraries are fairly broken
16106 hardcode_direct_CXX=yes
16107 hardcode_shlibpath_var_CXX=no
16108 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16109 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16111 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16112 export_dynamic_flag_spec_CXX='${wl}-E'
16113 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16115 output_verbose_link_cmd='echo'
16118 case $cc_basename in
16120 # Kuck and Associates, Inc. (KAI) C++ Compiler
16122 # KCC will only create a shared library if the output file
16123 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16124 # to its proper name (with version) after linking.
16125 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'
16127 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16128 hardcode_libdir_separator_CXX=:
16130 # Archives containing C++ object files must be created using
16131 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16132 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16136 # Rational C++ 2.4.1
16137 # FIXME: insert proper C++ library support
16141 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16142 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'
16144 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16145 hardcode_libdir_separator_CXX=:
16147 # Commands to make compiler produce verbose output that lists
16148 # what "hidden" libraries, object files and flags are used when
16149 # linking a shared library.
16151 # There doesn't appear to be a way to prevent this compiler from
16152 # explicitly linking system object files so we need to strip them
16153 # from the output so that they don't get included in the library
16155 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'
16158 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16159 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16160 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'
16162 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16163 hardcode_libdir_separator_CXX=:
16165 # Commands to make compiler produce verbose output that lists
16166 # what "hidden" libraries, object files and flags are used when
16167 # linking a shared library.
16168 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16171 # FIXME: insert proper C++ library support
16178 case $cc_basename in
16180 # Kuck and Associates, Inc. (KAI) C++ Compiler
16182 # KCC will only create a shared library if the output file
16183 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16184 # to its proper name (with version) after linking.
16185 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'
16187 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16188 hardcode_libdir_separator_CXX=:
16190 # Archives containing C++ object files must be created using
16191 # the KAI C++ compiler.
16192 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16195 # Rational C++ 2.4.1
16196 # FIXME: insert proper C++ library support
16200 allow_undefined_flag_CXX=' -expect_unresolved \*'
16201 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'
16202 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16203 echo "-hidden">> $lib.exp~
16204 $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~
16207 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16208 hardcode_libdir_separator_CXX=:
16210 # Commands to make compiler produce verbose output that lists
16211 # what "hidden" libraries, object files and flags are used when
16212 # linking a shared library.
16214 # There doesn't appear to be a way to prevent this compiler from
16215 # explicitly linking system object files so we need to strip them
16216 # from the output so that they don't get included in the library
16218 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'
16221 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16222 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16223 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'
16225 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16226 hardcode_libdir_separator_CXX=:
16228 # Commands to make compiler produce verbose output that lists
16229 # what "hidden" libraries, object files and flags are used when
16230 # linking a shared library.
16231 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16234 # FIXME: insert proper C++ library support
16241 # FIXME: insert proper C++ library support
16245 archive_cmds_need_lc_CXX=no
16246 case $cc_basename in
16248 # FIXME: insert proper C++ library support
16252 # FIXME: insert proper C++ library support
16258 case $cc_basename in
16261 # FIXME: insert proper C++ library support
16266 # FIXME: insert proper C++ library support
16270 # FIXME: insert proper C++ library support
16276 case $cc_basename in
16278 # Sun C++ 4.2, 5.x and Centerline C++
16279 no_undefined_flag_CXX=' -zdefs'
16280 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16281 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16282 $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'
16284 hardcode_libdir_flag_spec_CXX='-R$libdir'
16285 hardcode_shlibpath_var_CXX=no
16287 solaris2.0-5 | solaris2.0-5.*) ;;
16289 # The C++ compiler is used as linker so we must use $wl
16290 # flag to pass the commands to the underlying system
16292 # Supported since Solaris 2.6 (maybe 2.5.1?)
16293 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16296 link_all_deplibs_CXX=yes
16298 # Commands to make compiler produce verbose output that lists
16299 # what "hidden" libraries, object files and flags are used when
16300 # linking a shared library.
16302 # There doesn't appear to be a way to prevent this compiler from
16303 # explicitly linking system object files so we need to strip them
16304 # from the output so that they don't get included in the library
16306 output_verbose_link_cmd='templist=`$CC -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'
16308 # Archives containing C++ object files must be created using
16309 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16310 # necessary to make sure instantiated templates are included
16312 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16315 # Green Hills C++ Compiler
16316 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16318 # The C++ compiler must be used to create the archive.
16319 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16322 # GNU C++ compiler with Solaris linker
16323 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16324 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16325 if $CC --version | grep -v '^2\.7' > /dev/null; then
16326 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16327 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16328 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16330 # Commands to make compiler produce verbose output that lists
16331 # what "hidden" libraries, object files and flags are used when
16332 # linking a shared library.
16333 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16335 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16337 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16338 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16339 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16341 # Commands to make compiler produce verbose output that lists
16342 # what "hidden" libraries, object files and flags are used when
16343 # linking a shared library.
16344 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16347 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16352 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16353 archive_cmds_need_lc_CXX=no
16356 case $cc_basename in
16358 # NonStop-UX NCC 3.20
16359 # FIXME: insert proper C++ library support
16363 # FIXME: insert proper C++ library support
16369 # FIXME: insert proper C++ library support
16373 # FIXME: insert proper C++ library support
16377 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16378 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16379 test "$ld_shlibs_CXX" = no && can_build_shared=no
16385 cat > conftest.$ac_ext <<EOF
16389 Foo (void) { a = 0; }
16395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16396 (eval $ac_compile) 2>&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; then
16400 # Parse the compiler output and extract the necessary
16401 # objects, libraries and library flags.
16403 # Sentinel used to keep track of whether or not we are before
16404 # the conftest object file.
16405 pre_test_object_deps_done=no
16407 # The `*' in the case matches for architectures that use `case' in
16408 # $output_verbose_cmd can trigger glob expansion during the loop
16409 # eval without this substitution.
16410 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16412 for p in `eval $output_verbose_link_cmd`; do
16416 # Some compilers place space between "-{L,R}" and the path.
16417 # Remove the space.
16418 if test $p = "-L" \
16419 || test $p = "-R"; then
16426 if test "$pre_test_object_deps_done" = no; then
16429 # Internal compiler library paths should come after those
16430 # provided the user. The postdeps already come after the
16431 # user supplied libs so there is no need to process them.
16432 if test -z "$compiler_lib_search_path_CXX"; then
16433 compiler_lib_search_path_CXX="${prev}${p}"
16435 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16438 # The "-l" case would never come before the object being
16439 # linked, so don't bother handling this case.
16442 if test -z "$postdeps_CXX"; then
16443 postdeps_CXX="${prev}${p}"
16445 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16451 # This assumes that the test object file only shows up
16452 # once in the compiler output.
16453 if test "$p" = "conftest.$objext"; then
16454 pre_test_object_deps_done=yes
16458 if test "$pre_test_object_deps_done" = no; then
16459 if test -z "$predep_objects_CXX"; then
16460 predep_objects_CXX="$p"
16462 predep_objects_CXX="$predep_objects_CXX $p"
16465 if test -z "$postdep_objects_CXX"; then
16466 postdep_objects_CXX="$p"
16468 postdep_objects_CXX="$postdep_objects_CXX $p"
16473 *) ;; # Ignore the rest.
16481 echo "libtool.m4: error: problem compiling CXX test program"
16484 $rm -f confest.$objext
16486 case " $postdeps_CXX " in
16487 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16490 lt_prog_compiler_wl_CXX=
16491 lt_prog_compiler_pic_CXX=
16492 lt_prog_compiler_static_CXX=
16494 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16495 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16497 # C++ specific cases for pic, static, wl, etc.
16498 if test "$GXX" = yes; then
16499 lt_prog_compiler_wl_CXX='-Wl,'
16500 lt_prog_compiler_static_CXX='-static'
16504 # All AIX code is PIC.
16505 if test "$host_cpu" = ia64; then
16506 # AIX 5 now supports IA64 processor
16507 lt_prog_compiler_static_CXX='-Bstatic'
16511 # FIXME: we need at least 68020 code to build shared libraries, but
16512 # adding the `-m68020' flag to GCC prevents building anything better,
16514 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16516 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16517 # PIC is the default for these OSes.
16519 mingw* | os2* | pw32*)
16520 # This hack is so that the source file can tell whether it is being
16521 # built for inclusion in a dll (and should export symbols for example).
16522 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16524 darwin* | rhapsody*)
16525 # PIC is the default on this platform
16526 # Common symbols not allowed in MH_DYLIB files
16527 lt_prog_compiler_pic_CXX='-fno-common'
16530 # DJGPP does not support shared libraries at all
16531 lt_prog_compiler_pic_CXX=
16534 if test -d /usr/nec; then
16535 lt_prog_compiler_pic_CXX=-Kconform_pic
16539 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16540 # not for PA HP-UX.
16541 case "$host_cpu" in
16545 lt_prog_compiler_pic_CXX='-fPIC'
16550 lt_prog_compiler_pic_CXX='-fPIC'
16556 # All AIX code is PIC.
16557 if test "$host_cpu" = ia64; then
16558 # AIX 5 now supports IA64 processor
16559 lt_prog_compiler_static_CXX='-Bstatic'
16561 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16565 case $cc_basename in
16567 # Green Hills C++ Compiler
16568 # _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"
16573 # PIC is the default on this platform
16574 # Common symbols not allowed in MH_DYLIB files
16575 case "$cc_basename" in
16577 lt_prog_compiler_pic_CXX='-qnocommon'
16578 lt_prog_compiler_wl_CXX='-Wl,'
16583 case $cc_basename in
16585 lt_prog_compiler_pic_CXX='-KPIC'
16588 # Green Hills C++ Compiler
16589 lt_prog_compiler_pic_CXX='-pic'
16595 freebsd* | kfreebsd*-gnu)
16596 # FreeBSD uses GNU C++
16598 hpux9* | hpux10* | hpux11*)
16599 case $cc_basename in
16601 lt_prog_compiler_wl_CXX='-Wl,'
16602 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16603 if test "$host_cpu" != ia64; then
16604 lt_prog_compiler_pic_CXX='+Z'
16608 lt_prog_compiler_wl_CXX='-Wl,'
16609 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16610 case "$host_cpu" in
16615 lt_prog_compiler_pic_CXX='+Z'
16623 irix5* | irix6* | nonstopux*)
16624 case $cc_basename in
16626 lt_prog_compiler_wl_CXX='-Wl,'
16627 lt_prog_compiler_static_CXX='-non_shared'
16628 # CC pic flag -KPIC is the default.
16635 case $cc_basename in
16638 lt_prog_compiler_wl_CXX='--backend -Wl,'
16639 lt_prog_compiler_pic_CXX='-fPIC'
16643 lt_prog_compiler_wl_CXX='-Wl,'
16644 lt_prog_compiler_pic_CXX='-KPIC'
16645 lt_prog_compiler_static_CXX='-static'
16649 # Make sure the PIC flag is empty. It appears that all Alpha
16650 # Linux and Compaq Tru64 Unix objects are PIC.
16651 lt_prog_compiler_pic_CXX=
16652 lt_prog_compiler_static_CXX='-non_shared'
16663 case $cc_basename in
16665 lt_prog_compiler_pic_CXX='-W c,exportall'
16673 osf3* | osf4* | osf5*)
16674 case $cc_basename in
16676 lt_prog_compiler_wl_CXX='--backend -Wl,'
16679 # Rational C++ 2.4.1
16680 lt_prog_compiler_pic_CXX='-pic'
16683 # Digital/Compaq C++
16684 lt_prog_compiler_wl_CXX='-Wl,'
16685 # Make sure the PIC flag is empty. It appears that all Alpha
16686 # Linux and Compaq Tru64 Unix objects are PIC.
16687 lt_prog_compiler_pic_CXX=
16688 lt_prog_compiler_static_CXX='-non_shared'
16697 case $cc_basename in
16699 lt_prog_compiler_pic_CXX='-fPIC'
16706 case $cc_basename in
16708 # Sun C++ 4.2, 5.x and Centerline C++
16709 lt_prog_compiler_pic_CXX='-KPIC'
16710 lt_prog_compiler_static_CXX='-Bstatic'
16711 lt_prog_compiler_wl_CXX='-Qoption ld '
16714 # Green Hills C++ Compiler
16715 lt_prog_compiler_pic_CXX='-PIC'
16722 case $cc_basename in
16725 lt_prog_compiler_pic_CXX='-pic'
16726 lt_prog_compiler_static_CXX='-Bstatic'
16730 lt_prog_compiler_pic_CXX='-pic'
16737 case $cc_basename in
16739 # NonStop-UX NCC 3.20
16740 lt_prog_compiler_pic_CXX='-KPIC'
16751 lt_prog_compiler_can_build_shared_CXX=no
16756 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16757 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16760 # Check to make sure the PIC flag actually works.
16762 if test -n "$lt_prog_compiler_pic_CXX"; then
16764 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16765 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16766 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16767 echo $ECHO_N "(cached) $ECHO_C" >&6
16769 lt_prog_compiler_pic_works_CXX=no
16770 ac_outfile=conftest.$ac_objext
16771 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16772 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16773 # Insert the option either (1) after the last *FLAGS variable, or
16774 # (2) before a word containing "conftest.", or (3) at the end.
16775 # Note that $ac_compile itself does not contain backslashes and begins
16776 # with a dollar sign (not a hyphen), so the echo should work correctly.
16777 # The option is referenced via a variable to avoid confusing sed.
16778 lt_compile=`echo "$ac_compile" | $SED \
16779 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16781 -e 's:$: $lt_compiler_flag:'`
16782 (eval echo "\"\$as_me:16782: $lt_compile\"" >&5)
16783 (eval "$lt_compile" 2>conftest.err)
16785 cat conftest.err >&5
16786 echo "$as_me:16786: \$? = $ac_status" >&5
16787 if (exit $ac_status) && test -s "$ac_outfile"; then
16788 # The compiler can only warn and ignore the option if not recognized
16789 # So say no if there are warnings
16790 if test ! -s conftest.err; then
16791 lt_prog_compiler_pic_works_CXX=yes
16797 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16798 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16800 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16801 case $lt_prog_compiler_pic_CXX in
16803 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16806 lt_prog_compiler_pic_CXX=
16807 lt_prog_compiler_can_build_shared_CXX=no
16812 # For platforms which do not support PIC, -DPIC is meaningless:
16814 lt_prog_compiler_pic_CXX=
16817 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16821 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16822 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16823 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16826 lt_cv_prog_compiler_c_o_CXX=no
16827 $rm -r conftest 2>/dev/null
16831 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16833 lt_compiler_flag="-o out/conftest2.$ac_objext"
16834 # Insert the option either (1) after the last *FLAGS variable, or
16835 # (2) before a word containing "conftest.", or (3) at the end.
16836 # Note that $ac_compile itself does not contain backslashes and begins
16837 # with a dollar sign (not a hyphen), so the echo should work correctly.
16838 lt_compile=`echo "$ac_compile" | $SED \
16839 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16841 -e 's:$: $lt_compiler_flag:'`
16842 (eval echo "\"\$as_me:16842: $lt_compile\"" >&5)
16843 (eval "$lt_compile" 2>out/conftest.err)
16845 cat out/conftest.err >&5
16846 echo "$as_me:16846: \$? = $ac_status" >&5
16847 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16849 # The compiler can only warn and ignore the option if not recognized
16850 # So say no if there are warnings
16851 if test ! -s out/conftest.err; then
16852 lt_cv_prog_compiler_c_o_CXX=yes
16857 # SGI C++ compiler will create directory out/ii_files/ for
16858 # template instantiation
16859 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16860 $rm out/* && rmdir out
16866 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16867 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16870 hard_links="nottested"
16871 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16872 # do not overwrite the value of need_locks provided by the user
16873 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16874 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16877 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16879 ln conftest.a conftest.b 2>&5 || hard_links=no
16880 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16881 echo "$as_me:$LINENO: result: $hard_links" >&5
16882 echo "${ECHO_T}$hard_links" >&6
16883 if test "$hard_links" = no; then
16884 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16885 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16892 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16893 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16895 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16898 # If we're using GNU nm, then we don't want the "-C" option.
16899 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16900 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16901 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'
16903 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'
16907 export_symbols_cmds_CXX="$ltdll_cmds"
16910 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16913 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16917 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16918 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16919 test "$ld_shlibs_CXX" = no && can_build_shared=no
16921 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16922 if test "$GCC" = yes; then
16923 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16927 # Do we need to explicitly link libc?
16929 case "x$archive_cmds_need_lc_CXX" in
16931 # Assume -lc should be added
16932 archive_cmds_need_lc_CXX=yes
16934 if test "$enable_shared" = yes && test "$GCC" = yes; then
16935 case $archive_cmds_CXX in
16937 # FIXME: we may have to deal with multi-command sequences.
16940 # Test whether the compiler implicitly links with -lc since on some
16941 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16942 # to ld, don't add -lc before -lgcc.
16943 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16944 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16946 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16949 (eval $ac_compile) 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); } 2>conftest.err; then
16955 libobjs=conftest.$ac_objext
16957 wl=$lt_prog_compiler_wl_CXX
16963 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16964 allow_undefined_flag_CXX=
16965 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16966 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }
16971 archive_cmds_need_lc_CXX=no
16973 archive_cmds_need_lc_CXX=yes
16975 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16977 cat conftest.err 1>&5
16980 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16981 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16988 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16989 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16990 library_names_spec=
16991 libname_spec='lib$name'
16995 postuninstall_cmds=
16999 shlibpath_overrides_runpath=unknown
17001 dynamic_linker="$host_os ld.so"
17002 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17003 if test "$GCC" = yes; then
17004 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17005 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17006 # if the path contains ";" then we assume it to be the separator
17007 # otherwise default to the standard path separator (i.e. ":") - it is
17008 # assumed that no part of a normal pathname contains ";" but that should
17009 # okay in the real world where ";" in dirpaths is itself problematic.
17010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17015 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17017 need_lib_prefix=unknown
17018 hardcode_into_libs=no
17020 # when you set need_version to no, make sure it does not cause -set_version
17021 # flags to be left without arguments
17022 need_version=unknown
17027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17028 shlibpath_var=LIBPATH
17030 # AIX 3 has no versioning support, so we append a major version to the name.
17031 soname_spec='${libname}${release}${shared_ext}$major'
17038 hardcode_into_libs=yes
17039 if test "$host_cpu" = ia64; then
17040 # AIX 5 supports IA64
17041 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17042 shlibpath_var=LD_LIBRARY_PATH
17044 # With GCC up to 2.95.x, collect2 would create an import file
17045 # for dependence libraries. The import file would start with
17046 # the line `#! .'. This would cause the generated library to
17047 # depend on `.', always an invalid library. This was fixed in
17048 # development snapshots of GCC prior to 3.0.
17050 aix4 | aix4.[01] | aix4.[01].*)
17051 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17053 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17056 can_build_shared=no
17060 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17061 # soname into executable. Probably we can add versioning support to
17062 # collect2, so additional links can be useful in future.
17063 if test "$aix_use_runtimelinking" = yes; then
17064 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17065 # instead of lib<name>.a to let people know that these are not
17066 # typical AIX shared libraries.
17067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069 # We preserve .a as extension for shared libraries through AIX4.2
17070 # and later when we are not doing run time linking.
17071 library_names_spec='${libname}${release}.a $libname.a'
17072 soname_spec='${libname}${release}${shared_ext}$major'
17074 shlibpath_var=LIBPATH
17079 library_names_spec='$libname.ixlibrary $libname.a'
17080 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17081 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'
17085 library_names_spec='${libname}${shared_ext}'
17086 dynamic_linker="$host_os ld.so"
17087 shlibpath_var=LIBRARY_PATH
17093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17094 soname_spec='${libname}${release}${shared_ext}$major'
17095 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17096 shlibpath_var=LD_LIBRARY_PATH
17097 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17098 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17099 # the default ld.so.conf also contains /usr/contrib/lib and
17100 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17101 # libtool to hard-code these into programs
17104 cygwin* | mingw* | pw32*)
17105 version_type=windows
17110 case $GCC,$host_os in
17111 yes,cygwin* | yes,mingw* | yes,pw32*)
17112 library_names_spec='$libname.dll.a'
17113 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17114 postinstall_cmds='base_file=`basename \${file}`~
17115 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17116 dldir=$destdir/`dirname \$dlpath`~
17117 test -d \$dldir || mkdir -p \$dldir~
17118 $install_prog $dir/$dlname \$dldir/$dlname'
17119 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17120 dlpath=$dir/\$dldll~
17122 shlibpath_overrides_runpath=yes
17126 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17127 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17128 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17131 # MinGW DLLs use traditional 'lib' prefix
17132 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17133 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17134 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17135 # It is most probably a Windows format PATH printed by
17136 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17137 # path with ; separators, and with drive letters. We can handle the
17138 # drive letters (cygwin fileutils understands them), so leave them,
17139 # especially as we might pass files found there to a mingw objdump,
17140 # which wouldn't understand a cygwinified path. Ahh.
17141 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17147 # pw32 DLLs use 'pw' prefix rather than 'lib'
17148 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17154 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17157 dynamic_linker='Win32 ld.exe'
17158 # FIXME: first we should search . and the directory the executable is in
17162 darwin* | rhapsody*)
17163 dynamic_linker="$host_os dyld"
17164 version_type=darwin
17167 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17168 soname_spec='${libname}${release}${major}$shared_ext'
17169 shlibpath_overrides_runpath=yes
17170 shlibpath_var=DYLD_LIBRARY_PATH
17171 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17172 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17173 if test "$GCC" = yes; then
17174 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"`
17176 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17178 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17186 soname_spec='${libname}${release}${shared_ext}$major'
17187 shlibpath_var=LD_LIBRARY_PATH
17198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17199 soname_spec='${libname}${release}${shared_ext}$major'
17200 shlibpath_var=LD_LIBRARY_PATH
17201 shlibpath_overrides_runpath=no
17202 hardcode_into_libs=yes
17203 dynamic_linker='GNU ld.so'
17207 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17208 version_type=freebsd-$objformat
17209 case $version_type in
17211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17216 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17220 shlibpath_var=LD_LIBRARY_PATH
17223 shlibpath_overrides_runpath=yes
17225 freebsd3.01* | freebsdelf3.01*)
17226 shlibpath_overrides_runpath=yes
17227 hardcode_into_libs=yes
17230 shlibpath_overrides_runpath=no
17231 hardcode_into_libs=yes
17240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17241 soname_spec='${libname}${release}${shared_ext}$major'
17242 shlibpath_var=LD_LIBRARY_PATH
17243 hardcode_into_libs=yes
17246 hpux9* | hpux10* | hpux11*)
17247 # Give a soname corresponding to the major version so that dld.sl refuses to
17248 # link against other versions.
17252 case "$host_cpu" in
17255 hardcode_into_libs=yes
17256 dynamic_linker="$host_os dld.so"
17257 shlibpath_var=LD_LIBRARY_PATH
17258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17260 soname_spec='${libname}${release}${shared_ext}$major'
17261 if test "X$HPUX_IA64_MODE" = X32; then
17262 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17264 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17270 hardcode_into_libs=yes
17271 dynamic_linker="$host_os dld.sl"
17272 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17275 soname_spec='${libname}${release}${shared_ext}$major'
17276 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17281 dynamic_linker="$host_os dld.sl"
17282 shlibpath_var=SHLIB_PATH
17283 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17285 soname_spec='${libname}${release}${shared_ext}$major'
17288 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17289 postinstall_cmds='chmod 555 $lib'
17292 irix5* | irix6* | nonstopux*)
17294 nonstopux*) version_type=nonstopux ;;
17296 if test "$lt_cv_prog_gnu_ld" = yes; then
17304 soname_spec='${libname}${release}${shared_ext}$major'
17305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17307 irix5* | nonstopux*)
17308 libsuff= shlibsuff=
17311 case $LD in # libtool.m4 will add one of these switches to LD
17312 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17313 libsuff= shlibsuff= libmagic=32-bit;;
17314 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17315 libsuff=32 shlibsuff=N32 libmagic=N32;;
17316 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17317 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17318 *) libsuff= shlibsuff= libmagic=never-match;;
17322 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17323 shlibpath_overrides_runpath=no
17324 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17325 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17326 hardcode_into_libs=yes
17329 # No shared lib support for Linux oldld, aout, or coff.
17330 linux*oldld* | linux*aout* | linux*coff*)
17334 # This must be Linux ELF.
17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340 soname_spec='${libname}${release}${shared_ext}$major'
17341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17342 shlibpath_var=LD_LIBRARY_PATH
17343 shlibpath_overrides_runpath=no
17344 # This implies no fast_install, which is unacceptable.
17345 # Some rework will be needed to allow for fast_install
17346 # before this can be enabled.
17347 hardcode_into_libs=yes
17349 # Append ld.so.conf contents to the search path
17350 if test -f /etc/ld.so.conf; then
17351 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17352 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17355 # We used to test for /lib/ld.so.1 and disable shared libraries on
17356 # powerpc, because MkLinux only supported shared libraries with the
17357 # GNU dynamic linker. Since this was broken with cross compilers,
17358 # most powerpc-linux boxes support dynamic linking these days and
17359 # people can always --disable-shared, the test was removed, and we
17360 # assume the GNU/Linux dynamic linker is in use.
17361 dynamic_linker='GNU/Linux ld.so'
17368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17369 soname_spec='${libname}${release}${shared_ext}$major'
17370 shlibpath_var=LD_LIBRARY_PATH
17371 shlibpath_overrides_runpath=no
17372 hardcode_into_libs=yes
17373 dynamic_linker='GNU ld.so'
17380 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17383 dynamic_linker='NetBSD (a.out) ld.so'
17385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17386 soname_spec='${libname}${release}${shared_ext}$major'
17387 dynamic_linker='NetBSD ld.elf_so'
17389 shlibpath_var=LD_LIBRARY_PATH
17390 shlibpath_overrides_runpath=yes
17391 hardcode_into_libs=yes
17396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17397 shlibpath_var=LD_LIBRARY_PATH
17398 shlibpath_overrides_runpath=yes
17405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17406 soname_spec='${libname}${release}${shared_ext}$major'
17407 shlibpath_var=LD_LIBRARY_PATH
17408 shlibpath_overrides_runpath=yes
17415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17417 shlibpath_var=LD_LIBRARY_PATH
17418 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17420 openbsd2.[89] | openbsd2.[89].*)
17421 shlibpath_overrides_runpath=no
17424 shlibpath_overrides_runpath=yes
17428 shlibpath_overrides_runpath=yes
17433 libname_spec='$name'
17436 library_names_spec='$libname${shared_ext} $libname.a'
17437 dynamic_linker='OS/2 ld.exe'
17438 shlibpath_var=LIBPATH
17441 osf3* | osf4* | osf5*)
17445 soname_spec='${libname}${release}${shared_ext}$major'
17446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17447 shlibpath_var=LD_LIBRARY_PATH
17448 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17449 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17454 soname_spec='${libname}${release}${shared_ext}$major'
17455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17456 shlibpath_var=LD_LIBRARY_PATH
17463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17464 soname_spec='${libname}${release}${shared_ext}$major'
17465 shlibpath_var=LD_LIBRARY_PATH
17466 shlibpath_overrides_runpath=yes
17467 hardcode_into_libs=yes
17468 # ldd complains unless libraries are executable
17469 postinstall_cmds='chmod +x $lib'
17474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17475 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17476 shlibpath_var=LD_LIBRARY_PATH
17477 shlibpath_overrides_runpath=yes
17478 if test "$with_gnu_ld" = yes; then
17484 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17487 soname_spec='${libname}${release}${shared_ext}$major'
17488 shlibpath_var=LD_LIBRARY_PATH
17489 case $host_vendor in
17491 shlibpath_overrides_runpath=no
17493 export_dynamic_flag_spec='${wl}-Blargedynsym'
17494 runpath_var=LD_RUN_PATH
17502 shlibpath_overrides_runpath=no
17503 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17509 if test -d /usr/nec ;then
17511 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17512 soname_spec='$libname${shared_ext}.$major'
17513 shlibpath_var=LD_LIBRARY_PATH
17519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17520 soname_spec='${libname}${release}${shared_ext}$major'
17521 shlibpath_var=LD_LIBRARY_PATH
17528 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17529 echo "${ECHO_T}$dynamic_linker" >&6
17530 test "$dynamic_linker" = no && can_build_shared=no
17532 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17533 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17534 hardcode_action_CXX=
17535 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17536 test -n "$runpath_var_CXX" || \
17537 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17539 # We can hardcode non-existant directories.
17540 if test "$hardcode_direct_CXX" != no &&
17541 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17542 # have to relink, otherwise we might link with an installed library
17543 # when we should be linking with a yet-to-be-installed one
17544 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17545 test "$hardcode_minus_L_CXX" != no; then
17546 # Linking always hardcodes the temporary library directory.
17547 hardcode_action_CXX=relink
17549 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17550 hardcode_action_CXX=immediate
17553 # We cannot hardcode anything, or else we can only hardcode existing
17555 hardcode_action_CXX=unsupported
17557 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17558 echo "${ECHO_T}$hardcode_action_CXX" >&6
17560 if test "$hardcode_action_CXX" = relink; then
17561 # Fast installation is not supported
17562 enable_fast_install=no
17563 elif test "$shlibpath_overrides_runpath" = yes ||
17564 test "$enable_shared" = no; then
17565 # Fast installation is not necessary
17566 enable_fast_install=needless
17571 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17572 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17573 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17574 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17575 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17576 echo "$as_me:$LINENO: result: yes" >&5
17577 echo "${ECHO_T}yes" >&6
17579 # FIXME - insert some real tests, host_os isn't really good enough
17582 if test -n "$STRIP" ; then
17583 striplib="$STRIP -x"
17584 echo "$as_me:$LINENO: result: yes" >&5
17585 echo "${ECHO_T}yes" >&6
17587 echo "$as_me:$LINENO: result: no" >&5
17588 echo "${ECHO_T}no" >&6
17592 echo "$as_me:$LINENO: result: no" >&5
17593 echo "${ECHO_T}no" >&6
17598 if test "x$enable_dlopen" != xyes; then
17599 enable_dlopen=unknown
17600 enable_dlopen_self=unknown
17601 enable_dlopen_self_static=unknown
17608 lt_cv_dlopen="load_add_on"
17610 lt_cv_dlopen_self=yes
17614 lt_cv_dlopen="LoadLibrary"
17619 lt_cv_dlopen="dlopen"
17624 # if libdl is installed we need to link against it
17625 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17626 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17627 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17628 echo $ECHO_N "(cached) $ECHO_C" >&6
17630 ac_check_lib_save_LIBS=$LIBS
17632 cat >conftest.$ac_ext <<_ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h. */
17639 /* Override any gcc2 internal prototype to avoid an error. */
17643 /* We use char because int might match the return type of a gcc2
17644 builtin and then its argument prototype would still apply. */
17654 rm -f conftest.$ac_objext conftest$ac_exeext
17655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17656 (eval $ac_link) 2>conftest.er1
17658 grep -v '^ *+' conftest.er1 >conftest.err
17660 cat conftest.err >&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); } &&
17663 { ac_try='test -z "$ac_cxx_werror_flag"
17664 || test ! -s conftest.err'
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; } &&
17670 { ac_try='test -s conftest$ac_exeext'
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; }; then
17676 ac_cv_lib_dl_dlopen=yes
17678 echo "$as_me: failed program was:" >&5
17679 sed 's/^/| /' conftest.$ac_ext >&5
17681 ac_cv_lib_dl_dlopen=no
17683 rm -f conftest.err conftest.$ac_objext \
17684 conftest$ac_exeext conftest.$ac_ext
17685 LIBS=$ac_check_lib_save_LIBS
17687 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17688 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17689 if test $ac_cv_lib_dl_dlopen = yes; then
17690 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17693 lt_cv_dlopen="dyld"
17695 lt_cv_dlopen_self=yes
17702 echo "$as_me:$LINENO: checking for shl_load" >&5
17703 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17704 if test "${ac_cv_func_shl_load+set}" = set; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
17707 cat >conftest.$ac_ext <<_ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h. */
17713 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17715 #define shl_load innocuous_shl_load
17717 /* System header to define __stub macros and hopefully few prototypes,
17718 which can conflict with char shl_load (); below.
17719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17720 <limits.h> exists even on freestanding compilers. */
17723 # include <limits.h>
17725 # include <assert.h>
17730 /* Override any gcc2 internal prototype to avoid an error. */
17735 /* We use char because int might match the return type of a gcc2
17736 builtin and then its argument prototype would still apply. */
17738 /* The GNU C library defines this for functions which it implements
17739 to always fail with ENOSYS. Some functions are actually named
17740 something starting with __ and the normal name is an alias. */
17741 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17744 char (*f) () = shl_load;
17753 return f != shl_load;
17758 rm -f conftest.$ac_objext conftest$ac_exeext
17759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17760 (eval $ac_link) 2>conftest.er1
17762 grep -v '^ *+' conftest.er1 >conftest.err
17764 cat conftest.err >&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } &&
17767 { ac_try='test -z "$ac_cxx_werror_flag"
17768 || test ! -s conftest.err'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; } &&
17774 { ac_try='test -s conftest$ac_exeext'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; }; then
17780 ac_cv_func_shl_load=yes
17782 echo "$as_me: failed program was:" >&5
17783 sed 's/^/| /' conftest.$ac_ext >&5
17785 ac_cv_func_shl_load=no
17787 rm -f conftest.err conftest.$ac_objext \
17788 conftest$ac_exeext conftest.$ac_ext
17790 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17791 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17792 if test $ac_cv_func_shl_load = yes; then
17793 lt_cv_dlopen="shl_load"
17795 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17796 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17797 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17798 echo $ECHO_N "(cached) $ECHO_C" >&6
17800 ac_check_lib_save_LIBS=$LIBS
17802 cat >conftest.$ac_ext <<_ACEOF
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h. */
17809 /* Override any gcc2 internal prototype to avoid an error. */
17813 /* We use char because int might match the return type of a gcc2
17814 builtin and then its argument prototype would still apply. */
17824 rm -f conftest.$ac_objext conftest$ac_exeext
17825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17826 (eval $ac_link) 2>conftest.er1
17828 grep -v '^ *+' conftest.er1 >conftest.err
17830 cat conftest.err >&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); } &&
17833 { ac_try='test -z "$ac_cxx_werror_flag"
17834 || test ! -s conftest.err'
17835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17836 (eval $ac_try) 2>&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; } &&
17840 { ac_try='test -s conftest$ac_exeext'
17841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17842 (eval $ac_try) 2>&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); }; }; then
17846 ac_cv_lib_dld_shl_load=yes
17848 echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.$ac_ext >&5
17851 ac_cv_lib_dld_shl_load=no
17853 rm -f conftest.err conftest.$ac_objext \
17854 conftest$ac_exeext conftest.$ac_ext
17855 LIBS=$ac_check_lib_save_LIBS
17857 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17858 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17859 if test $ac_cv_lib_dld_shl_load = yes; then
17860 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17862 echo "$as_me:$LINENO: checking for dlopen" >&5
17863 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17864 if test "${ac_cv_func_dlopen+set}" = set; then
17865 echo $ECHO_N "(cached) $ECHO_C" >&6
17867 cat >conftest.$ac_ext <<_ACEOF
17870 cat confdefs.h >>conftest.$ac_ext
17871 cat >>conftest.$ac_ext <<_ACEOF
17872 /* end confdefs.h. */
17873 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17875 #define dlopen innocuous_dlopen
17877 /* System header to define __stub macros and hopefully few prototypes,
17878 which can conflict with char dlopen (); below.
17879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17880 <limits.h> exists even on freestanding compilers. */
17883 # include <limits.h>
17885 # include <assert.h>
17890 /* Override any gcc2 internal prototype to avoid an error. */
17895 /* We use char because int might match the return type of a gcc2
17896 builtin and then its argument prototype would still apply. */
17898 /* The GNU C library defines this for functions which it implements
17899 to always fail with ENOSYS. Some functions are actually named
17900 something starting with __ and the normal name is an alias. */
17901 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17904 char (*f) () = dlopen;
17913 return f != dlopen;
17918 rm -f conftest.$ac_objext conftest$ac_exeext
17919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17920 (eval $ac_link) 2>conftest.er1
17922 grep -v '^ *+' conftest.er1 >conftest.err
17924 cat conftest.err >&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } &&
17927 { ac_try='test -z "$ac_cxx_werror_flag"
17928 || test ! -s conftest.err'
17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; } &&
17934 { ac_try='test -s conftest$ac_exeext'
17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; }; then
17940 ac_cv_func_dlopen=yes
17942 echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17945 ac_cv_func_dlopen=no
17947 rm -f conftest.err conftest.$ac_objext \
17948 conftest$ac_exeext conftest.$ac_ext
17950 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17951 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17952 if test $ac_cv_func_dlopen = yes; then
17953 lt_cv_dlopen="dlopen"
17955 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17956 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17957 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17958 echo $ECHO_N "(cached) $ECHO_C" >&6
17960 ac_check_lib_save_LIBS=$LIBS
17962 cat >conftest.$ac_ext <<_ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h. */
17969 /* Override any gcc2 internal prototype to avoid an error. */
17973 /* We use char because int might match the return type of a gcc2
17974 builtin and then its argument prototype would still apply. */
17984 rm -f conftest.$ac_objext conftest$ac_exeext
17985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17986 (eval $ac_link) 2>conftest.er1
17988 grep -v '^ *+' conftest.er1 >conftest.err
17990 cat conftest.err >&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } &&
17993 { ac_try='test -z "$ac_cxx_werror_flag"
17994 || test ! -s conftest.err'
17995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; } &&
18000 { ac_try='test -s conftest$ac_exeext'
18001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002 (eval $ac_try) 2>&5
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; }; then
18006 ac_cv_lib_dl_dlopen=yes
18008 echo "$as_me: failed program was:" >&5
18009 sed 's/^/| /' conftest.$ac_ext >&5
18011 ac_cv_lib_dl_dlopen=no
18013 rm -f conftest.err conftest.$ac_objext \
18014 conftest$ac_exeext conftest.$ac_ext
18015 LIBS=$ac_check_lib_save_LIBS
18017 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18018 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18019 if test $ac_cv_lib_dl_dlopen = yes; then
18020 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18022 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18023 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18024 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18025 echo $ECHO_N "(cached) $ECHO_C" >&6
18027 ac_check_lib_save_LIBS=$LIBS
18028 LIBS="-lsvld $LIBS"
18029 cat >conftest.$ac_ext <<_ACEOF
18032 cat confdefs.h >>conftest.$ac_ext
18033 cat >>conftest.$ac_ext <<_ACEOF
18034 /* end confdefs.h. */
18036 /* Override any gcc2 internal prototype to avoid an error. */
18040 /* We use char because int might match the return type of a gcc2
18041 builtin and then its argument prototype would still apply. */
18051 rm -f conftest.$ac_objext conftest$ac_exeext
18052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18053 (eval $ac_link) 2>conftest.er1
18055 grep -v '^ *+' conftest.er1 >conftest.err
18057 cat conftest.err >&5
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); } &&
18060 { ac_try='test -z "$ac_cxx_werror_flag"
18061 || test ! -s conftest.err'
18062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18063 (eval $ac_try) 2>&5
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); }; } &&
18067 { ac_try='test -s conftest$ac_exeext'
18068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069 (eval $ac_try) 2>&5
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; }; then
18073 ac_cv_lib_svld_dlopen=yes
18075 echo "$as_me: failed program was:" >&5
18076 sed 's/^/| /' conftest.$ac_ext >&5
18078 ac_cv_lib_svld_dlopen=no
18080 rm -f conftest.err conftest.$ac_objext \
18081 conftest$ac_exeext conftest.$ac_ext
18082 LIBS=$ac_check_lib_save_LIBS
18084 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18085 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18086 if test $ac_cv_lib_svld_dlopen = yes; then
18087 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18089 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18090 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18091 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18092 echo $ECHO_N "(cached) $ECHO_C" >&6
18094 ac_check_lib_save_LIBS=$LIBS
18096 cat >conftest.$ac_ext <<_ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18103 /* Override any gcc2 internal prototype to avoid an error. */
18107 /* We use char because int might match the return type of a gcc2
18108 builtin and then its argument prototype would still apply. */
18118 rm -f conftest.$ac_objext conftest$ac_exeext
18119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18120 (eval $ac_link) 2>conftest.er1
18122 grep -v '^ *+' conftest.er1 >conftest.err
18124 cat conftest.err >&5
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); } &&
18127 { ac_try='test -z "$ac_cxx_werror_flag"
18128 || test ! -s conftest.err'
18129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18130 (eval $ac_try) 2>&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); }; } &&
18134 { ac_try='test -s conftest$ac_exeext'
18135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18136 (eval $ac_try) 2>&5
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); }; }; then
18140 ac_cv_lib_dld_dld_link=yes
18142 echo "$as_me: failed program was:" >&5
18143 sed 's/^/| /' conftest.$ac_ext >&5
18145 ac_cv_lib_dld_dld_link=no
18147 rm -f conftest.err conftest.$ac_objext \
18148 conftest$ac_exeext conftest.$ac_ext
18149 LIBS=$ac_check_lib_save_LIBS
18151 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18152 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18153 if test $ac_cv_lib_dld_dld_link = yes; then
18154 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18175 if test "x$lt_cv_dlopen" != xno; then
18181 case $lt_cv_dlopen in
18183 save_CPPFLAGS="$CPPFLAGS"
18184 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18186 save_LDFLAGS="$LDFLAGS"
18187 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18190 LIBS="$lt_cv_dlopen_libs $LIBS"
18192 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18193 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18194 if test "${lt_cv_dlopen_self+set}" = set; then
18195 echo $ECHO_N "(cached) $ECHO_C" >&6
18197 if test "$cross_compiling" = yes; then :
18198 lt_cv_dlopen_self=cross
18200 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18201 lt_status=$lt_dlunknown
18202 cat > conftest.$ac_ext <<EOF
18203 #line 18203 "configure"
18204 #include "confdefs.h"
18213 # define LT_DLGLOBAL RTLD_GLOBAL
18216 # define LT_DLGLOBAL DL_GLOBAL
18218 # define LT_DLGLOBAL 0
18222 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18223 find out it does not work in some platform. */
18224 #ifndef LT_DLLAZY_OR_NOW
18226 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18229 # define LT_DLLAZY_OR_NOW DL_LAZY
18232 # define LT_DLLAZY_OR_NOW RTLD_NOW
18235 # define LT_DLLAZY_OR_NOW DL_NOW
18237 # define LT_DLLAZY_OR_NOW 0
18245 extern "C" void exit (int);
18248 void fnord() { int i=42;}
18251 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18252 int status = $lt_dlunknown;
18256 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18257 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18258 /* dlclose (self); */
18264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18265 (eval $ac_link) 2>&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18269 (./conftest; exit; ) 2>/dev/null
18271 case x$lt_status in
18272 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18273 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18274 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18277 # compilation failed
18278 lt_cv_dlopen_self=no
18285 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18286 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18288 if test "x$lt_cv_dlopen_self" = xyes; then
18289 LDFLAGS="$LDFLAGS $link_static_flag"
18290 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18291 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18292 if test "${lt_cv_dlopen_self_static+set}" = set; then
18293 echo $ECHO_N "(cached) $ECHO_C" >&6
18295 if test "$cross_compiling" = yes; then :
18296 lt_cv_dlopen_self_static=cross
18298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18299 lt_status=$lt_dlunknown
18300 cat > conftest.$ac_ext <<EOF
18301 #line 18301 "configure"
18302 #include "confdefs.h"
18311 # define LT_DLGLOBAL RTLD_GLOBAL
18314 # define LT_DLGLOBAL DL_GLOBAL
18316 # define LT_DLGLOBAL 0
18320 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18321 find out it does not work in some platform. */
18322 #ifndef LT_DLLAZY_OR_NOW
18324 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18327 # define LT_DLLAZY_OR_NOW DL_LAZY
18330 # define LT_DLLAZY_OR_NOW RTLD_NOW
18333 # define LT_DLLAZY_OR_NOW DL_NOW
18335 # define LT_DLLAZY_OR_NOW 0
18343 extern "C" void exit (int);
18346 void fnord() { int i=42;}
18349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18350 int status = $lt_dlunknown;
18354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18355 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18356 /* dlclose (self); */
18362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18363 (eval $ac_link) 2>&5
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18367 (./conftest; exit; ) 2>/dev/null
18369 case x$lt_status in
18370 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18371 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18372 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18375 # compilation failed
18376 lt_cv_dlopen_self_static=no
18383 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18384 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18387 CPPFLAGS="$save_CPPFLAGS"
18388 LDFLAGS="$save_LDFLAGS"
18393 case $lt_cv_dlopen_self in
18394 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18395 *) enable_dlopen_self=unknown ;;
18398 case $lt_cv_dlopen_self_static in
18399 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18400 *) enable_dlopen_self_static=unknown ;;
18405 # The else clause should only fire when bootstrapping the
18406 # libtool distribution, otherwise you forgot to ship ltmain.sh
18407 # with your package, and you will get complaints that there are
18408 # no rules to generate ltmain.sh.
18409 if test -f "$ltmain"; then
18410 # See if we are running on zsh, and set the options which allow our commands through
18411 # without removal of \ escapes.
18412 if test -n "${ZSH_VERSION+set}" ; then
18413 setopt NO_GLOB_SUBST
18415 # Now quote all the things that may contain metacharacters while being
18416 # careful not to overquote the AC_SUBSTed values. We take copies of the
18417 # variables and quote the copies for generation of the libtool script.
18418 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18420 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18421 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18422 deplibs_check_method reload_flag reload_cmds need_locks \
18423 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18424 lt_cv_sys_global_symbol_to_c_name_address \
18425 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18426 old_postinstall_cmds old_postuninstall_cmds \
18430 lt_prog_compiler_wl_CXX \
18431 lt_prog_compiler_pic_CXX \
18432 lt_prog_compiler_static_CXX \
18433 lt_prog_compiler_no_builtin_flag_CXX \
18434 export_dynamic_flag_spec_CXX \
18435 thread_safe_flag_spec_CXX \
18436 whole_archive_flag_spec_CXX \
18437 enable_shared_with_static_runtimes_CXX \
18438 old_archive_cmds_CXX \
18439 old_archive_from_new_cmds_CXX \
18440 predep_objects_CXX \
18441 postdep_objects_CXX \
18444 compiler_lib_search_path_CXX \
18446 archive_expsym_cmds_CXX \
18447 postinstall_cmds_CXX \
18448 postuninstall_cmds_CXX \
18449 old_archive_from_expsyms_cmds_CXX \
18450 allow_undefined_flag_CXX \
18451 no_undefined_flag_CXX \
18452 export_symbols_cmds_CXX \
18453 hardcode_libdir_flag_spec_CXX \
18454 hardcode_libdir_flag_spec_ld_CXX \
18455 hardcode_libdir_separator_CXX \
18456 hardcode_automatic_CXX \
18458 module_expsym_cmds_CXX \
18459 lt_cv_prog_compiler_c_o_CXX \
18460 exclude_expsyms_CXX \
18461 include_expsyms_CXX; do
18464 old_archive_cmds_CXX | \
18465 old_archive_from_new_cmds_CXX | \
18466 archive_cmds_CXX | \
18467 archive_expsym_cmds_CXX | \
18468 module_cmds_CXX | \
18469 module_expsym_cmds_CXX | \
18470 old_archive_from_expsyms_cmds_CXX | \
18471 export_symbols_cmds_CXX | \
18472 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18473 postinstall_cmds | postuninstall_cmds | \
18474 old_postinstall_cmds | old_postuninstall_cmds | \
18475 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18476 # Double-quote double-evaled strings.
18477 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18480 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18486 *'\$0 --fallback-echo"')
18487 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18493 cat <<__EOF__ >> "$cfgfile"
18494 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18496 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18498 # Shell to use when invoking shell scripts.
18501 # Whether or not to build shared libraries.
18502 build_libtool_libs=$enable_shared
18504 # Whether or not to build static libraries.
18505 build_old_libs=$enable_static
18507 # Whether or not to add -lc for building shared libraries.
18508 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18510 # Whether or not to disallow shared libs when runtime libs are static
18511 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18513 # Whether or not to optimize for fast installation.
18514 fast_install=$enable_fast_install
18517 host_alias=$host_alias
18520 # An echo program that does not interpret backslashes.
18525 AR_FLAGS=$lt_AR_FLAGS
18530 # A language-specific compiler.
18531 CC=$lt_compiler_CXX
18533 # Is the compiler the GNU C compiler?
18539 # The linker used to build libraries.
18542 # Whether we need hard or soft links.
18545 # A BSD-compatible nm program.
18548 # A symbol stripping program
18551 # Used to examine libraries when file_magic_cmd begins "file"
18552 MAGIC_CMD=$MAGIC_CMD
18554 # Used on cygwin: DLL creation program.
18557 # Used on cygwin: object dumper.
18560 # Used on cygwin: assembler.
18563 # The name of the directory that contains temporary libtool files.
18566 # How to create reloadable object files.
18567 reload_flag=$lt_reload_flag
18568 reload_cmds=$lt_reload_cmds
18570 # How to pass a linker flag through the compiler.
18571 wl=$lt_lt_prog_compiler_wl_CXX
18573 # Object file suffix (normally "o").
18574 objext="$ac_objext"
18576 # Old archive suffix (normally "a").
18579 # Shared library suffix (normally ".so").
18580 shrext_cmds='$shrext_cmds'
18582 # Executable file suffix (normally "").
18585 # Additional compiler flags for building library objects.
18586 pic_flag=$lt_lt_prog_compiler_pic_CXX
18589 # What is the maximum length of a command?
18590 max_cmd_len=$lt_cv_sys_max_cmd_len
18592 # Does compiler simultaneously support -c and -o options?
18593 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18595 # Must we lock files when doing compilation ?
18596 need_locks=$lt_need_locks
18598 # Do we need the lib prefix for modules?
18599 need_lib_prefix=$need_lib_prefix
18601 # Do we need a version for libraries?
18602 need_version=$need_version
18604 # Whether dlopen is supported.
18605 dlopen_support=$enable_dlopen
18607 # Whether dlopen of programs is supported.
18608 dlopen_self=$enable_dlopen_self
18610 # Whether dlopen of statically linked programs is supported.
18611 dlopen_self_static=$enable_dlopen_self_static
18613 # Compiler flag to prevent dynamic linking.
18614 link_static_flag=$lt_lt_prog_compiler_static_CXX
18616 # Compiler flag to turn off builtin functions.
18617 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18619 # Compiler flag to allow reflexive dlopens.
18620 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18622 # Compiler flag to generate shared objects directly from archives.
18623 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18625 # Compiler flag to generate thread-safe objects.
18626 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18628 # Library versioning type.
18629 version_type=$version_type
18631 # Format of library name prefix.
18632 libname_spec=$lt_libname_spec
18634 # List of archive names. First name is the real one, the rest are links.
18635 # The last name is the one that the linker finds with -lNAME.
18636 library_names_spec=$lt_library_names_spec
18638 # The coded name of the library, if different from the real name.
18639 soname_spec=$lt_soname_spec
18641 # Commands used to build and install an old-style archive.
18643 old_archive_cmds=$lt_old_archive_cmds_CXX
18644 old_postinstall_cmds=$lt_old_postinstall_cmds
18645 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18647 # Create an old-style archive from a shared archive.
18648 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18650 # Create a temporary old-style archive to link instead of a shared archive.
18651 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18653 # Commands used to build and install a shared archive.
18654 archive_cmds=$lt_archive_cmds_CXX
18655 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18656 postinstall_cmds=$lt_postinstall_cmds
18657 postuninstall_cmds=$lt_postuninstall_cmds
18659 # Commands used to build a loadable module (assumed same as above if empty)
18660 module_cmds=$lt_module_cmds_CXX
18661 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18663 # Commands to strip libraries.
18664 old_striplib=$lt_old_striplib
18665 striplib=$lt_striplib
18667 # Dependencies to place before the objects being linked to create a
18669 predep_objects=$lt_predep_objects_CXX
18671 # Dependencies to place after the objects being linked to create a
18673 postdep_objects=$lt_postdep_objects_CXX
18675 # Dependencies to place before the objects being linked to create a
18677 predeps=$lt_predeps_CXX
18679 # Dependencies to place after the objects being linked to create a
18681 postdeps=$lt_postdeps_CXX
18683 # The library search path used internally by the compiler when linking
18684 # a shared library.
18685 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18687 # Method to check whether dependent libraries are shared objects.
18688 deplibs_check_method=$lt_deplibs_check_method
18690 # Command to use when deplibs_check_method == file_magic.
18691 file_magic_cmd=$lt_file_magic_cmd
18693 # Flag that allows shared libraries with undefined symbols to be built.
18694 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18696 # Flag that forces no undefined symbols.
18697 no_undefined_flag=$lt_no_undefined_flag_CXX
18699 # Commands used to finish a libtool library installation in a directory.
18700 finish_cmds=$lt_finish_cmds
18702 # Same as above, but a single script fragment to be evaled but not shown.
18703 finish_eval=$lt_finish_eval
18705 # Take the output of nm and produce a listing of raw symbols and C names.
18706 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18708 # Transform the output of nm in a proper C declaration
18709 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18711 # Transform the output of nm in a C name address pair
18712 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18714 # This is the shared library runtime path variable.
18715 runpath_var=$runpath_var
18717 # This is the shared library path variable.
18718 shlibpath_var=$shlibpath_var
18720 # Is shlibpath searched before the hard-coded library search path?
18721 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18723 # How to hardcode a shared library path into an executable.
18724 hardcode_action=$hardcode_action_CXX
18726 # Whether we should hardcode library paths into libraries.
18727 hardcode_into_libs=$hardcode_into_libs
18729 # Flag to hardcode \$libdir into a binary during linking.
18730 # This must work even if \$libdir does not exist.
18731 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18733 # If ld is used when linking, flag to hardcode \$libdir into
18734 # a binary during linking. This must work even if \$libdir does
18736 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18738 # Whether we need a single -rpath flag with a separated argument.
18739 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18741 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18742 # resulting binary.
18743 hardcode_direct=$hardcode_direct_CXX
18745 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18746 # resulting binary.
18747 hardcode_minus_L=$hardcode_minus_L_CXX
18749 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18750 # the resulting binary.
18751 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18753 # Set to yes if building a shared library automatically hardcodes DIR into the library
18754 # and all subsequent libraries and executables linked against it.
18755 hardcode_automatic=$hardcode_automatic_CXX
18757 # Variables whose values should be saved in libtool wrapper scripts and
18758 # restored at relink time.
18759 variables_saved_for_relink="$variables_saved_for_relink"
18761 # Whether libtool must link a program against all its dependency libraries.
18762 link_all_deplibs=$link_all_deplibs_CXX
18764 # Compile-time system search path for libraries
18765 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18767 # Run-time system search path for libraries
18768 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18770 # Fix the shell variable \$srcfile for the compiler.
18771 fix_srcfile_path="$fix_srcfile_path_CXX"
18773 # Set to yes if exported symbols are required.
18774 always_export_symbols=$always_export_symbols_CXX
18776 # The commands to list exported symbols.
18777 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18779 # The commands to extract the exported symbol list from a shared archive.
18780 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18782 # Symbols that should not be listed in the preloaded symbols.
18783 exclude_expsyms=$lt_exclude_expsyms_CXX
18785 # Symbols that must always be exported.
18786 include_expsyms=$lt_include_expsyms_CXX
18788 # ### END LIBTOOL TAG CONFIG: $tagname
18794 # If there is no Makefile yet, we rely on a make rule to execute
18795 # `config.status --recheck' to rerun these tests and create the
18796 # libtool script then.
18797 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18798 if test -f "$ltmain_in"; then
18799 test -f Makefile && make "$ltmain"
18805 ac_cpp='$CPP $CPPFLAGS'
18806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18814 with_gnu_ldcxx=$with_gnu_ld
18815 with_gnu_ld=$lt_save_with_gnu_ld
18816 lt_cv_path_LDCXX=$lt_cv_path_LD
18817 lt_cv_path_LD=$lt_save_path_LD
18818 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18819 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18827 if test -n "$F77" && test "X$F77" != "Xno"; then
18830 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18831 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18832 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18835 archive_cmds_need_lc_F77=no
18836 allow_undefined_flag_F77=
18837 always_export_symbols_F77=no
18838 archive_expsym_cmds_F77=
18839 export_dynamic_flag_spec_F77=
18840 hardcode_direct_F77=no
18841 hardcode_libdir_flag_spec_F77=
18842 hardcode_libdir_flag_spec_ld_F77=
18843 hardcode_libdir_separator_F77=
18844 hardcode_minus_L_F77=no
18845 hardcode_automatic_F77=no
18847 module_expsym_cmds_F77=
18848 link_all_deplibs_F77=unknown
18849 old_archive_cmds_F77=$old_archive_cmds
18850 no_undefined_flag_F77=
18851 whole_archive_flag_spec_F77=
18852 enable_shared_with_static_runtimes_F77=no
18854 # Source file extension for f77 test sources.
18857 # Object file extension for compiled f77 test sources.
18861 # Code to be used in simple compile tests
18862 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18864 # Code to be used in simple link tests
18865 lt_simple_link_test_code=" program t\n end\n"
18867 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18869 # If no C compiler was specified, use CC.
18872 # Allow CC to be a program name with arguments.
18876 # Allow CC to be a program name with arguments.
18881 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18883 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18884 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18885 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18886 echo "${ECHO_T}$can_build_shared" >&6
18888 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18889 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18890 test "$can_build_shared" = "no" && enable_shared=no
18892 # On AIX, shared libraries and static libraries use the same namespace, and
18893 # are all built from PIC.
18896 test "$enable_shared" = yes && enable_static=no
18897 if test -n "$RANLIB"; then
18898 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18899 postinstall_cmds='$RANLIB $lib'
18903 test "$enable_shared" = yes && enable_static=no
18906 echo "$as_me:$LINENO: result: $enable_shared" >&5
18907 echo "${ECHO_T}$enable_shared" >&6
18909 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18910 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18911 # Make sure either enable_shared or enable_static is yes.
18912 test "$enable_shared" = yes || enable_static=yes
18913 echo "$as_me:$LINENO: result: $enable_static" >&5
18914 echo "${ECHO_T}$enable_static" >&6
18916 test "$ld_shlibs_F77" = no && can_build_shared=no
18921 lt_prog_compiler_wl_F77=
18922 lt_prog_compiler_pic_F77=
18923 lt_prog_compiler_static_F77=
18925 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18926 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18928 if test "$GCC" = yes; then
18929 lt_prog_compiler_wl_F77='-Wl,'
18930 lt_prog_compiler_static_F77='-static'
18934 # All AIX code is PIC.
18935 if test "$host_cpu" = ia64; then
18936 # AIX 5 now supports IA64 processor
18937 lt_prog_compiler_static_F77='-Bstatic'
18942 # FIXME: we need at least 68020 code to build shared libraries, but
18943 # adding the `-m68020' flag to GCC prevents building anything better,
18945 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18948 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18949 # PIC is the default for these OSes.
18952 mingw* | pw32* | os2*)
18953 # This hack is so that the source file can tell whether it is being
18954 # built for inclusion in a dll (and should export symbols for example).
18955 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18958 darwin* | rhapsody*)
18959 # PIC is the default on this platform
18960 # Common symbols not allowed in MH_DYLIB files
18961 lt_prog_compiler_pic_F77='-fno-common'
18965 # Just because we use GCC doesn't mean we suddenly get shared libraries
18966 # on systems that don't support them.
18967 lt_prog_compiler_can_build_shared_F77=no
18972 if test -d /usr/nec; then
18973 lt_prog_compiler_pic_F77=-Kconform_pic
18978 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18979 # not for PA HP-UX.
18980 case "$host_cpu" in
18985 lt_prog_compiler_pic_F77='-fPIC'
18991 lt_prog_compiler_pic_F77='-fPIC'
18995 # PORTME Check for flag to pass linker flags through the system compiler.
18998 lt_prog_compiler_wl_F77='-Wl,'
18999 if test "$host_cpu" = ia64; then
19000 # AIX 5 now supports IA64 processor
19001 lt_prog_compiler_static_F77='-Bstatic'
19003 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19007 # PIC is the default on this platform
19008 # Common symbols not allowed in MH_DYLIB files
19009 case "$cc_basename" in
19011 lt_prog_compiler_pic_F77='-qnocommon'
19012 lt_prog_compiler_wl_F77='-Wl,'
19017 mingw* | pw32* | os2*)
19018 # This hack is so that the source file can tell whether it is being
19019 # built for inclusion in a dll (and should export symbols for example).
19020 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19023 hpux9* | hpux10* | hpux11*)
19024 lt_prog_compiler_wl_F77='-Wl,'
19025 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19026 # not for PA HP-UX.
19027 case "$host_cpu" in
19032 lt_prog_compiler_pic_F77='+Z'
19035 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19036 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19039 irix5* | irix6* | nonstopux*)
19040 lt_prog_compiler_wl_F77='-Wl,'
19041 # PIC (with -KPIC) is the default.
19042 lt_prog_compiler_static_F77='-non_shared'
19046 lt_prog_compiler_pic_F77='-KPIC'
19047 lt_prog_compiler_static_F77='-Bstatic'
19053 lt_prog_compiler_wl_F77='-Wl,'
19054 lt_prog_compiler_pic_F77='-KPIC'
19055 lt_prog_compiler_static_F77='-static'
19058 lt_prog_compiler_wl_F77='-Wl,'
19059 # All Alpha code is PIC.
19060 lt_prog_compiler_static_F77='-non_shared'
19065 osf3* | osf4* | osf5*)
19066 lt_prog_compiler_wl_F77='-Wl,'
19067 # All OSF/1 code is PIC.
19068 lt_prog_compiler_static_F77='-non_shared'
19072 lt_prog_compiler_pic_F77='-Kpic'
19073 lt_prog_compiler_static_F77='-dn'
19077 lt_prog_compiler_wl_F77='-Wl,'
19078 lt_prog_compiler_pic_F77='-KPIC'
19079 lt_prog_compiler_static_F77='-Bstatic'
19083 lt_prog_compiler_wl_F77='-Qoption ld '
19084 lt_prog_compiler_pic_F77='-PIC'
19085 lt_prog_compiler_static_F77='-Bstatic'
19088 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19089 lt_prog_compiler_wl_F77='-Wl,'
19090 lt_prog_compiler_pic_F77='-KPIC'
19091 lt_prog_compiler_static_F77='-Bstatic'
19095 if test -d /usr/nec ;then
19096 lt_prog_compiler_pic_F77='-Kconform_pic'
19097 lt_prog_compiler_static_F77='-Bstatic'
19102 lt_prog_compiler_pic_F77='-pic'
19103 lt_prog_compiler_static_F77='-Bstatic'
19107 lt_prog_compiler_can_build_shared_F77=no
19112 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19113 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19116 # Check to make sure the PIC flag actually works.
19118 if test -n "$lt_prog_compiler_pic_F77"; then
19120 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19121 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19122 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19123 echo $ECHO_N "(cached) $ECHO_C" >&6
19125 lt_prog_compiler_pic_works_F77=no
19126 ac_outfile=conftest.$ac_objext
19127 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19128 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19129 # Insert the option either (1) after the last *FLAGS variable, or
19130 # (2) before a word containing "conftest.", or (3) at the end.
19131 # Note that $ac_compile itself does not contain backslashes and begins
19132 # with a dollar sign (not a hyphen), so the echo should work correctly.
19133 # The option is referenced via a variable to avoid confusing sed.
19134 lt_compile=`echo "$ac_compile" | $SED \
19135 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19136 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19137 -e 's:$: $lt_compiler_flag:'`
19138 (eval echo "\"\$as_me:19138: $lt_compile\"" >&5)
19139 (eval "$lt_compile" 2>conftest.err)
19141 cat conftest.err >&5
19142 echo "$as_me:19142: \$? = $ac_status" >&5
19143 if (exit $ac_status) && test -s "$ac_outfile"; then
19144 # The compiler can only warn and ignore the option if not recognized
19145 # So say no if there are warnings
19146 if test ! -s conftest.err; then
19147 lt_prog_compiler_pic_works_F77=yes
19153 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19154 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19156 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19157 case $lt_prog_compiler_pic_F77 in
19159 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19162 lt_prog_compiler_pic_F77=
19163 lt_prog_compiler_can_build_shared_F77=no
19168 # For platforms which do not support PIC, -DPIC is meaningless:
19170 lt_prog_compiler_pic_F77=
19173 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19177 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19178 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19179 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19180 echo $ECHO_N "(cached) $ECHO_C" >&6
19182 lt_cv_prog_compiler_c_o_F77=no
19183 $rm -r conftest 2>/dev/null
19187 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19189 lt_compiler_flag="-o out/conftest2.$ac_objext"
19190 # Insert the option either (1) after the last *FLAGS variable, or
19191 # (2) before a word containing "conftest.", or (3) at the end.
19192 # Note that $ac_compile itself does not contain backslashes and begins
19193 # with a dollar sign (not a hyphen), so the echo should work correctly.
19194 lt_compile=`echo "$ac_compile" | $SED \
19195 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19197 -e 's:$: $lt_compiler_flag:'`
19198 (eval echo "\"\$as_me:19198: $lt_compile\"" >&5)
19199 (eval "$lt_compile" 2>out/conftest.err)
19201 cat out/conftest.err >&5
19202 echo "$as_me:19202: \$? = $ac_status" >&5
19203 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19205 # The compiler can only warn and ignore the option if not recognized
19206 # So say no if there are warnings
19207 if test ! -s out/conftest.err; then
19208 lt_cv_prog_compiler_c_o_F77=yes
19213 # SGI C++ compiler will create directory out/ii_files/ for
19214 # template instantiation
19215 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19216 $rm out/* && rmdir out
19222 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19223 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19226 hard_links="nottested"
19227 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19228 # do not overwrite the value of need_locks provided by the user
19229 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19230 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19233 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19235 ln conftest.a conftest.b 2>&5 || hard_links=no
19236 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19237 echo "$as_me:$LINENO: result: $hard_links" >&5
19238 echo "${ECHO_T}$hard_links" >&6
19239 if test "$hard_links" = no; then
19240 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19241 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19248 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19249 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19252 allow_undefined_flag_F77=
19253 enable_shared_with_static_runtimes_F77=no
19255 archive_expsym_cmds_F77=
19256 old_archive_From_new_cmds_F77=
19257 old_archive_from_expsyms_cmds_F77=
19258 export_dynamic_flag_spec_F77=
19259 whole_archive_flag_spec_F77=
19260 thread_safe_flag_spec_F77=
19261 hardcode_libdir_flag_spec_F77=
19262 hardcode_libdir_flag_spec_ld_F77=
19263 hardcode_libdir_separator_F77=
19264 hardcode_direct_F77=no
19265 hardcode_minus_L_F77=no
19266 hardcode_shlibpath_var_F77=unsupported
19267 link_all_deplibs_F77=unknown
19268 hardcode_automatic_F77=no
19270 module_expsym_cmds_F77=
19271 always_export_symbols_F77=no
19272 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19273 # include_expsyms should be a list of space-separated symbols to be *always*
19274 # included in the symbol list
19275 include_expsyms_F77=
19276 # exclude_expsyms can be an extended regexp of symbols to exclude
19277 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19278 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19279 # as well as any symbol that contains `d'.
19280 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19281 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19282 # platforms (ab)use it in PIC code, but their linkers get confused if
19283 # the symbol is explicitly referenced. Since portable code cannot
19284 # rely on this symbol name, it's probably fine to never include it in
19285 # preloaded symbol tables.
19286 extract_expsyms_cmds=
19289 cygwin* | mingw* | pw32*)
19290 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19291 # When not using gcc, we currently assume that we are using
19292 # Microsoft Visual C++.
19293 if test "$GCC" != yes; then
19303 if test "$with_gnu_ld" = yes; then
19304 # If archive_cmds runs LD, not CC, wlarc should be empty
19307 # See if GNU ld supports shared libraries.
19309 aix3* | aix4* | aix5*)
19310 # On AIX/PPC, the GNU linker is very broken
19311 if test "$host_cpu" != ia64; then
19315 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19316 *** to be unable to reliably create shared libraries on AIX.
19317 *** Therefore, libtool is disabling shared libraries support. If you
19318 *** really care for shared libraries, you may want to modify your PATH
19319 *** so that a non-GNU linker is found, and then restart.
19326 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)'
19327 hardcode_libdir_flag_spec_F77='-L$libdir'
19328 hardcode_minus_L_F77=yes
19330 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19331 # that the semantics of dynamic libraries on AmigaOS, at least up
19332 # to version 4, is to share data among multiple programs linked
19333 # with the same dynamic library. Since this doesn't match the
19334 # behavior of shared libraries on other platforms, we can't use
19340 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19341 allow_undefined_flag_F77=unsupported
19342 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19343 # support --undefined. This deserves some investigation. FIXME
19344 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19350 cygwin* | mingw* | pw32*)
19351 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19352 # as there is no search path for DLLs.
19353 hardcode_libdir_flag_spec_F77='-L$libdir'
19354 allow_undefined_flag_F77=unsupported
19355 always_export_symbols_F77=no
19356 enable_shared_with_static_runtimes_F77=yes
19357 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19359 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19360 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19361 # If the export-symbols file already is a .def file (1st line
19362 # is EXPORTS), use it as is; otherwise, prepend...
19363 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19364 cp $export_symbols $output_objdir/$soname.def;
19366 echo EXPORTS > $output_objdir/$soname.def;
19367 cat $export_symbols >> $output_objdir/$soname.def;
19369 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19376 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19377 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19380 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19381 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19386 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19390 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19391 *** create shared libraries on Solaris systems. Therefore, libtool
19392 *** is disabling shared libraries support. We urge you to upgrade GNU
19393 *** binutils to release 2.9.1 or newer. Another option is to modify
19394 *** your PATH or compiler configuration so that the native linker is
19395 *** used, and then restart.
19398 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19399 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19400 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19407 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19409 hardcode_direct_F77=yes
19410 hardcode_shlibpath_var_F77=no
19414 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19415 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19416 archive_cmds_F77="$tmp_archive_cmds"
19417 supports_anon_versioning=no
19418 case `$LD -v 2>/dev/null` in
19419 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19420 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19421 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19422 *\ 2.11.*) ;; # other 2.11 versions
19423 *) supports_anon_versioning=yes ;;
19425 if test $supports_anon_versioning = yes; then
19426 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19427 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19428 $echo "local: *; };" >> $output_objdir/$libname.ver~
19429 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19431 archive_expsym_cmds_F77="$tmp_archive_cmds"
19439 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19440 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19441 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19448 if test "$ld_shlibs_F77" = yes; then
19449 runpath_var=LD_RUN_PATH
19450 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19451 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19452 # ancient GNU ld didn't support --whole-archive et. al.
19453 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19454 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19456 whole_archive_flag_spec_F77=
19460 # PORTME fill in a description of your system's linker (not GNU ld)
19463 allow_undefined_flag_F77=unsupported
19464 always_export_symbols_F77=yes
19465 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'
19466 # Note: this linker hardcodes the directories in LIBPATH if there
19467 # are no directories specified by -L.
19468 hardcode_minus_L_F77=yes
19469 if test "$GCC" = yes && test -z "$link_static_flag"; then
19470 # Neither direct hardcoding nor static linking is supported with a
19472 hardcode_direct_F77=unsupported
19477 if test "$host_cpu" = ia64; then
19478 # On IA64, the linker does run time linking by default, so we don't
19479 # have to do anything special.
19480 aix_use_runtimelinking=no
19481 exp_sym_flag='-Bexport'
19484 # If we're using GNU nm, then we don't want the "-C" option.
19485 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19486 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19487 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'
19489 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'
19491 aix_use_runtimelinking=no
19493 # Test if we are trying to use run time linking or normal
19494 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19495 # need to do runtime linking.
19496 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19497 for ld_flag in $LDFLAGS; do
19498 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19499 aix_use_runtimelinking=yes
19505 exp_sym_flag='-bexport'
19506 no_entry_flag='-bnoentry'
19509 # When large executables or shared objects are built, AIX ld can
19510 # have problems creating the table of contents. If linking a library
19511 # or program results in "error TOC overflow" add -mminimal-toc to
19512 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19513 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19515 archive_cmds_F77=''
19516 hardcode_direct_F77=yes
19517 hardcode_libdir_separator_F77=':'
19518 link_all_deplibs_F77=yes
19520 if test "$GCC" = yes; then
19521 case $host_os in aix4.012|aix4.012.*)
19522 # We only want to do this on AIX 4.2 and lower, the check
19523 # below for broken collect2 doesn't work under 4.3+
19524 collect2name=`${CC} -print-prog-name=collect2`
19525 if test -f "$collect2name" && \
19526 strings "$collect2name" | grep resolve_lib_name >/dev/null
19528 # We have reworked collect2
19529 hardcode_direct_F77=yes
19531 # We have old collect2
19532 hardcode_direct_F77=unsupported
19533 # It fails to find uninstalled libraries when the uninstalled
19534 # path is not listed in the libpath. Setting hardcode_minus_L
19535 # to unsupported forces relinking
19536 hardcode_minus_L_F77=yes
19537 hardcode_libdir_flag_spec_F77='-L$libdir'
19538 hardcode_libdir_separator_F77=
19541 shared_flag='-shared'
19544 if test "$host_cpu" = ia64; then
19545 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19546 # chokes on -Wl,-G. The following line is correct:
19549 if test "$aix_use_runtimelinking" = yes; then
19550 shared_flag='${wl}-G'
19552 shared_flag='${wl}-bM:SRE'
19557 # It seems that -bexpall does not export symbols beginning with
19558 # underscore (_), so it is better to generate a list of symbols to export.
19559 always_export_symbols_F77=yes
19560 if test "$aix_use_runtimelinking" = yes; then
19561 # Warning - without using the other runtime loading flags (-brtl),
19562 # -berok will link without error, but may produce a broken library.
19563 allow_undefined_flag_F77='-berok'
19564 # Determine the default libpath from the value encoded in an empty executable.
19565 cat >conftest.$ac_ext <<_ACEOF
19570 rm -f conftest.$ac_objext conftest$ac_exeext
19571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19572 (eval $ac_link) 2>conftest.er1
19574 grep -v '^ *+' conftest.er1 >conftest.err
19576 cat conftest.err >&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } &&
19579 { ac_try='test -z "$ac_f77_werror_flag"
19580 || test ! -s conftest.err'
19581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; } &&
19586 { ac_try='test -s conftest$ac_exeext'
19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588 (eval $ac_try) 2>&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; }; then
19593 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19595 # Check for a 64-bit object if we didn't find anything.
19596 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; }
19599 echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19603 rm -f conftest.err conftest.$ac_objext \
19604 conftest$ac_exeext conftest.$ac_ext
19605 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19607 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19608 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"
19610 if test "$host_cpu" = ia64; then
19611 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19612 allow_undefined_flag_F77="-z nodefs"
19613 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"
19615 # Determine the default libpath from the value encoded in an empty executable.
19616 cat >conftest.$ac_ext <<_ACEOF
19621 rm -f conftest.$ac_objext conftest$ac_exeext
19622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19623 (eval $ac_link) 2>conftest.er1
19625 grep -v '^ *+' conftest.er1 >conftest.err
19627 cat conftest.err >&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } &&
19630 { ac_try='test -z "$ac_f77_werror_flag"
19631 || test ! -s conftest.err'
19632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19633 (eval $ac_try) 2>&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; } &&
19637 { ac_try='test -s conftest$ac_exeext'
19638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19639 (eval $ac_try) 2>&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; }; then
19644 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19646 # Check for a 64-bit object if we didn't find anything.
19647 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; }
19650 echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19654 rm -f conftest.err conftest.$ac_objext \
19655 conftest$ac_exeext conftest.$ac_ext
19656 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19658 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19659 # Warning - without using the other run time loading flags,
19660 # -berok will link without error, but may produce a broken library.
19661 no_undefined_flag_F77=' ${wl}-bernotok'
19662 allow_undefined_flag_F77=' ${wl}-berok'
19663 # -bexpall does not export symbols beginning with underscore (_)
19664 always_export_symbols_F77=yes
19665 # Exported symbols can be pulled into shared objects from archives
19666 whole_archive_flag_spec_F77=' '
19667 archive_cmds_need_lc_F77=yes
19668 # This is similar to how AIX traditionally builds it's shared libraries.
19669 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'
19675 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)'
19676 hardcode_libdir_flag_spec_F77='-L$libdir'
19677 hardcode_minus_L_F77=yes
19678 # see comment about different semantics on the GNU ld section
19683 export_dynamic_flag_spec_F77=-rdynamic
19686 cygwin* | mingw* | pw32*)
19687 # When not using gcc, we currently assume that we are using
19688 # Microsoft Visual C++.
19689 # hardcode_libdir_flag_spec is actually meaningless, as there is
19690 # no search path for DLLs.
19691 hardcode_libdir_flag_spec_F77=' '
19692 allow_undefined_flag_F77=unsupported
19693 # Tell ltmain to make .lib files, not .a files.
19695 # Tell ltmain to make .dll files, not .so files.
19697 # FIXME: Setting linknames here is a bad hack.
19698 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19699 # The linker will automatically build a .lib file if we build a DLL.
19700 old_archive_From_new_cmds_F77='true'
19701 # FIXME: Should let the user specify the lib program.
19702 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19703 fix_srcfile_path='`cygpath -w "$srcfile"`'
19704 enable_shared_with_static_runtimes_F77=yes
19707 darwin* | rhapsody*)
19709 rhapsody* | darwin1.[012])
19710 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19713 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19714 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19716 case ${MACOSX_DEPLOYMENT_TARGET} in
19718 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19721 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19727 archive_cmds_need_lc_F77=no
19728 hardcode_direct_F77=no
19729 hardcode_automatic_F77=yes
19730 hardcode_shlibpath_var_F77=unsupported
19731 whole_archive_flag_spec_F77=''
19732 link_all_deplibs_F77=yes
19733 if test "$GCC" = yes ; then
19734 output_verbose_link_cmd='echo'
19735 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19736 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19737 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19738 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}'
19739 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}'
19741 case "$cc_basename" in
19743 output_verbose_link_cmd='echo'
19744 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19745 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19746 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19747 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}'
19748 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}'
19758 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19759 hardcode_libdir_flag_spec_F77='-L$libdir'
19760 hardcode_shlibpath_var_F77=no
19767 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19768 # support. Future versions do this automatically, but an explicit c++rt0.o
19769 # does not break anything, and helps significantly (at the cost of a little
19772 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19773 hardcode_libdir_flag_spec_F77='-R$libdir'
19774 hardcode_direct_F77=yes
19775 hardcode_shlibpath_var_F77=no
19778 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19780 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19781 hardcode_direct_F77=yes
19782 hardcode_minus_L_F77=yes
19783 hardcode_shlibpath_var_F77=no
19786 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19787 freebsd* | kfreebsd*-gnu)
19788 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19789 hardcode_libdir_flag_spec_F77='-R$libdir'
19790 hardcode_direct_F77=yes
19791 hardcode_shlibpath_var_F77=no
19795 if test "$GCC" = yes; then
19796 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'
19798 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'
19800 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19801 hardcode_libdir_separator_F77=:
19802 hardcode_direct_F77=yes
19804 # hardcode_minus_L: Not really in the search PATH,
19805 # but as the default location of the library.
19806 hardcode_minus_L_F77=yes
19807 export_dynamic_flag_spec_F77='${wl}-E'
19811 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19812 case "$host_cpu" in
19814 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19817 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19821 case "$host_cpu" in
19823 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19826 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19830 if test "$with_gnu_ld" = no; then
19831 case "$host_cpu" in
19833 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19834 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19835 hardcode_libdir_separator_F77=:
19836 hardcode_direct_F77=no
19837 hardcode_shlibpath_var_F77=no
19840 hardcode_libdir_flag_spec_F77='-L$libdir'
19841 hardcode_direct_F77=no
19842 hardcode_shlibpath_var_F77=no
19844 # hardcode_minus_L: Not really in the search PATH,
19845 # but as the default location of the library.
19846 hardcode_minus_L_F77=yes
19849 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19850 hardcode_libdir_separator_F77=:
19851 hardcode_direct_F77=yes
19852 export_dynamic_flag_spec_F77='${wl}-E'
19854 # hardcode_minus_L: Not really in the search PATH,
19855 # but as the default location of the library.
19856 hardcode_minus_L_F77=yes
19862 irix5* | irix6* | nonstopux*)
19863 if test "$GCC" = yes; then
19864 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'
19866 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'
19867 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19869 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19870 hardcode_libdir_separator_F77=:
19871 link_all_deplibs_F77=yes
19875 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19876 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19878 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19880 hardcode_libdir_flag_spec_F77='-R$libdir'
19881 hardcode_direct_F77=yes
19882 hardcode_shlibpath_var_F77=no
19886 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19887 hardcode_direct_F77=yes
19888 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19889 hardcode_libdir_separator_F77=:
19890 hardcode_shlibpath_var_F77=no
19894 hardcode_direct_F77=yes
19895 hardcode_shlibpath_var_F77=no
19896 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19897 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19898 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19899 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19900 export_dynamic_flag_spec_F77='${wl}-E'
19903 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19904 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19905 hardcode_libdir_flag_spec_F77='-R$libdir'
19908 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19909 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19916 hardcode_libdir_flag_spec_F77='-L$libdir'
19917 hardcode_minus_L_F77=yes
19918 allow_undefined_flag_F77=unsupported
19919 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'
19920 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19924 if test "$GCC" = yes; then
19925 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19926 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'
19928 allow_undefined_flag_F77=' -expect_unresolved \*'
19929 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'
19931 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19932 hardcode_libdir_separator_F77=:
19935 osf4* | osf5*) # as osf3* with the addition of -msym flag
19936 if test "$GCC" = yes; then
19937 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19938 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'
19939 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19941 allow_undefined_flag_F77=' -expect_unresolved \*'
19942 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'
19943 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~
19944 $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'
19946 # Both c and cxx compiler support -rpath directly
19947 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19949 hardcode_libdir_separator_F77=:
19953 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19954 hardcode_shlibpath_var_F77=no
19955 export_dynamic_flag_spec_F77='${wl}-Bexport'
19956 runpath_var=LD_RUN_PATH
19957 hardcode_runpath_var=yes
19961 no_undefined_flag_F77=' -z text'
19962 if test "$GCC" = yes; then
19963 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19964 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19965 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19967 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19968 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19969 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19971 hardcode_libdir_flag_spec_F77='-R$libdir'
19972 hardcode_shlibpath_var_F77=no
19974 solaris2.[0-5] | solaris2.[0-5].*) ;;
19975 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19976 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19978 link_all_deplibs_F77=yes
19982 if test "x$host_vendor" = xsequent; then
19983 # Use $CC to link under sequent, because it throws in some extra .o
19984 # files that make .init and .fini sections work.
19985 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19987 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19989 hardcode_libdir_flag_spec_F77='-L$libdir'
19990 hardcode_direct_F77=yes
19991 hardcode_minus_L_F77=yes
19992 hardcode_shlibpath_var_F77=no
19996 case $host_vendor in
19998 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19999 hardcode_direct_F77=yes # is this really true???
20002 ## LD is ld it makes a PLAMLIB
20003 ## CC just makes a GrossModule.
20004 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20005 reload_cmds_F77='$CC -r -o $output$reload_objs'
20006 hardcode_direct_F77=no
20009 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20010 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20013 runpath_var='LD_RUN_PATH'
20014 hardcode_shlibpath_var_F77=no
20018 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20019 hardcode_shlibpath_var_F77=no
20020 export_dynamic_flag_spec_F77='-Bexport'
20024 if test -d /usr/nec; then
20025 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20026 hardcode_shlibpath_var_F77=no
20027 runpath_var=LD_RUN_PATH
20028 hardcode_runpath_var=yes
20034 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20035 hardcode_direct_F77=yes
20036 hardcode_minus_L_F77=no
20037 hardcode_shlibpath_var_F77=no
20038 hardcode_runpath_var=yes
20039 runpath_var=LD_RUN_PATH
20042 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20043 no_undefined_flag_F77='${wl}-z ${wl}text'
20044 if test "$GCC" = yes; then
20045 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20047 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20049 runpath_var='LD_RUN_PATH'
20050 hardcode_shlibpath_var_F77=no
20054 no_undefined_flag_F77=' -z text'
20055 # $CC -shared without GNU ld will not create a library from C++
20056 # object files and a static libstdc++, better avoid it by now
20057 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20058 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20059 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20060 hardcode_libdir_flag_spec_F77=
20061 hardcode_shlibpath_var_F77=no
20062 runpath_var='LD_RUN_PATH'
20066 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20067 hardcode_libdir_flag_spec_F77='-L$libdir'
20068 hardcode_shlibpath_var_F77=no
20077 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20078 echo "${ECHO_T}$ld_shlibs_F77" >&6
20079 test "$ld_shlibs_F77" = no && can_build_shared=no
20081 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20082 if test "$GCC" = yes; then
20083 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20087 # Do we need to explicitly link libc?
20089 case "x$archive_cmds_need_lc_F77" in
20091 # Assume -lc should be added
20092 archive_cmds_need_lc_F77=yes
20094 if test "$enable_shared" = yes && test "$GCC" = yes; then
20095 case $archive_cmds_F77 in
20097 # FIXME: we may have to deal with multi-command sequences.
20100 # Test whether the compiler implicitly links with -lc since on some
20101 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20102 # to ld, don't add -lc before -lgcc.
20103 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20104 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20106 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20109 (eval $ac_compile) 2>&5
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); } 2>conftest.err; then
20115 libobjs=conftest.$ac_objext
20117 wl=$lt_prog_compiler_wl_F77
20123 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20124 allow_undefined_flag_F77=
20125 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20126 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }
20131 archive_cmds_need_lc_F77=no
20133 archive_cmds_need_lc_F77=yes
20135 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20137 cat conftest.err 1>&5
20140 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20141 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20148 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20149 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20150 library_names_spec=
20151 libname_spec='lib$name'
20155 postuninstall_cmds=
20159 shlibpath_overrides_runpath=unknown
20161 dynamic_linker="$host_os ld.so"
20162 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20163 if test "$GCC" = yes; then
20164 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20165 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20166 # if the path contains ";" then we assume it to be the separator
20167 # otherwise default to the standard path separator (i.e. ":") - it is
20168 # assumed that no part of a normal pathname contains ";" but that should
20169 # okay in the real world where ";" in dirpaths is itself problematic.
20170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20172 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20175 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20177 need_lib_prefix=unknown
20178 hardcode_into_libs=no
20180 # when you set need_version to no, make sure it does not cause -set_version
20181 # flags to be left without arguments
20182 need_version=unknown
20187 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20188 shlibpath_var=LIBPATH
20190 # AIX 3 has no versioning support, so we append a major version to the name.
20191 soname_spec='${libname}${release}${shared_ext}$major'
20198 hardcode_into_libs=yes
20199 if test "$host_cpu" = ia64; then
20200 # AIX 5 supports IA64
20201 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20202 shlibpath_var=LD_LIBRARY_PATH
20204 # With GCC up to 2.95.x, collect2 would create an import file
20205 # for dependence libraries. The import file would start with
20206 # the line `#! .'. This would cause the generated library to
20207 # depend on `.', always an invalid library. This was fixed in
20208 # development snapshots of GCC prior to 3.0.
20210 aix4 | aix4.[01] | aix4.[01].*)
20211 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20213 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20216 can_build_shared=no
20220 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20221 # soname into executable. Probably we can add versioning support to
20222 # collect2, so additional links can be useful in future.
20223 if test "$aix_use_runtimelinking" = yes; then
20224 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20225 # instead of lib<name>.a to let people know that these are not
20226 # typical AIX shared libraries.
20227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20229 # We preserve .a as extension for shared libraries through AIX4.2
20230 # and later when we are not doing run time linking.
20231 library_names_spec='${libname}${release}.a $libname.a'
20232 soname_spec='${libname}${release}${shared_ext}$major'
20234 shlibpath_var=LIBPATH
20239 library_names_spec='$libname.ixlibrary $libname.a'
20240 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20241 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'
20245 library_names_spec='${libname}${shared_ext}'
20246 dynamic_linker="$host_os ld.so"
20247 shlibpath_var=LIBRARY_PATH
20253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20254 soname_spec='${libname}${release}${shared_ext}$major'
20255 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20256 shlibpath_var=LD_LIBRARY_PATH
20257 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20258 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20259 # the default ld.so.conf also contains /usr/contrib/lib and
20260 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20261 # libtool to hard-code these into programs
20264 cygwin* | mingw* | pw32*)
20265 version_type=windows
20270 case $GCC,$host_os in
20271 yes,cygwin* | yes,mingw* | yes,pw32*)
20272 library_names_spec='$libname.dll.a'
20273 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20274 postinstall_cmds='base_file=`basename \${file}`~
20275 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20276 dldir=$destdir/`dirname \$dlpath`~
20277 test -d \$dldir || mkdir -p \$dldir~
20278 $install_prog $dir/$dlname \$dldir/$dlname'
20279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20280 dlpath=$dir/\$dldll~
20282 shlibpath_overrides_runpath=yes
20286 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20287 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20288 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20291 # MinGW DLLs use traditional 'lib' prefix
20292 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20293 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20294 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20295 # It is most probably a Windows format PATH printed by
20296 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20297 # path with ; separators, and with drive letters. We can handle the
20298 # drive letters (cygwin fileutils understands them), so leave them,
20299 # especially as we might pass files found there to a mingw objdump,
20300 # which wouldn't understand a cygwinified path. Ahh.
20301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20307 # pw32 DLLs use 'pw' prefix rather than 'lib'
20308 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20314 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20317 dynamic_linker='Win32 ld.exe'
20318 # FIXME: first we should search . and the directory the executable is in
20322 darwin* | rhapsody*)
20323 dynamic_linker="$host_os dyld"
20324 version_type=darwin
20327 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20328 soname_spec='${libname}${release}${major}$shared_ext'
20329 shlibpath_overrides_runpath=yes
20330 shlibpath_var=DYLD_LIBRARY_PATH
20331 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20332 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20333 if test "$GCC" = yes; then
20334 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"`
20336 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20338 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20346 soname_spec='${libname}${release}${shared_ext}$major'
20347 shlibpath_var=LD_LIBRARY_PATH
20358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20359 soname_spec='${libname}${release}${shared_ext}$major'
20360 shlibpath_var=LD_LIBRARY_PATH
20361 shlibpath_overrides_runpath=no
20362 hardcode_into_libs=yes
20363 dynamic_linker='GNU ld.so'
20367 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20368 version_type=freebsd-$objformat
20369 case $version_type in
20371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20376 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20380 shlibpath_var=LD_LIBRARY_PATH
20383 shlibpath_overrides_runpath=yes
20385 freebsd3.01* | freebsdelf3.01*)
20386 shlibpath_overrides_runpath=yes
20387 hardcode_into_libs=yes
20390 shlibpath_overrides_runpath=no
20391 hardcode_into_libs=yes
20400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20401 soname_spec='${libname}${release}${shared_ext}$major'
20402 shlibpath_var=LD_LIBRARY_PATH
20403 hardcode_into_libs=yes
20406 hpux9* | hpux10* | hpux11*)
20407 # Give a soname corresponding to the major version so that dld.sl refuses to
20408 # link against other versions.
20412 case "$host_cpu" in
20415 hardcode_into_libs=yes
20416 dynamic_linker="$host_os dld.so"
20417 shlibpath_var=LD_LIBRARY_PATH
20418 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20420 soname_spec='${libname}${release}${shared_ext}$major'
20421 if test "X$HPUX_IA64_MODE" = X32; then
20422 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20424 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20426 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20430 hardcode_into_libs=yes
20431 dynamic_linker="$host_os dld.sl"
20432 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20435 soname_spec='${libname}${release}${shared_ext}$major'
20436 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20441 dynamic_linker="$host_os dld.sl"
20442 shlibpath_var=SHLIB_PATH
20443 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20445 soname_spec='${libname}${release}${shared_ext}$major'
20448 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20449 postinstall_cmds='chmod 555 $lib'
20452 irix5* | irix6* | nonstopux*)
20454 nonstopux*) version_type=nonstopux ;;
20456 if test "$lt_cv_prog_gnu_ld" = yes; then
20464 soname_spec='${libname}${release}${shared_ext}$major'
20465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20467 irix5* | nonstopux*)
20468 libsuff= shlibsuff=
20471 case $LD in # libtool.m4 will add one of these switches to LD
20472 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20473 libsuff= shlibsuff= libmagic=32-bit;;
20474 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20475 libsuff=32 shlibsuff=N32 libmagic=N32;;
20476 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20477 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20478 *) libsuff= shlibsuff= libmagic=never-match;;
20482 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20483 shlibpath_overrides_runpath=no
20484 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20485 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20486 hardcode_into_libs=yes
20489 # No shared lib support for Linux oldld, aout, or coff.
20490 linux*oldld* | linux*aout* | linux*coff*)
20494 # This must be Linux ELF.
20499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20500 soname_spec='${libname}${release}${shared_ext}$major'
20501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20502 shlibpath_var=LD_LIBRARY_PATH
20503 shlibpath_overrides_runpath=no
20504 # This implies no fast_install, which is unacceptable.
20505 # Some rework will be needed to allow for fast_install
20506 # before this can be enabled.
20507 hardcode_into_libs=yes
20509 # Append ld.so.conf contents to the search path
20510 if test -f /etc/ld.so.conf; then
20511 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20512 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20515 # We used to test for /lib/ld.so.1 and disable shared libraries on
20516 # powerpc, because MkLinux only supported shared libraries with the
20517 # GNU dynamic linker. Since this was broken with cross compilers,
20518 # most powerpc-linux boxes support dynamic linking these days and
20519 # people can always --disable-shared, the test was removed, and we
20520 # assume the GNU/Linux dynamic linker is in use.
20521 dynamic_linker='GNU/Linux ld.so'
20528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20529 soname_spec='${libname}${release}${shared_ext}$major'
20530 shlibpath_var=LD_LIBRARY_PATH
20531 shlibpath_overrides_runpath=no
20532 hardcode_into_libs=yes
20533 dynamic_linker='GNU ld.so'
20540 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20543 dynamic_linker='NetBSD (a.out) ld.so'
20545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20546 soname_spec='${libname}${release}${shared_ext}$major'
20547 dynamic_linker='NetBSD ld.elf_so'
20549 shlibpath_var=LD_LIBRARY_PATH
20550 shlibpath_overrides_runpath=yes
20551 hardcode_into_libs=yes
20556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20557 shlibpath_var=LD_LIBRARY_PATH
20558 shlibpath_overrides_runpath=yes
20565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20566 soname_spec='${libname}${release}${shared_ext}$major'
20567 shlibpath_var=LD_LIBRARY_PATH
20568 shlibpath_overrides_runpath=yes
20575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20576 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20577 shlibpath_var=LD_LIBRARY_PATH
20578 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20580 openbsd2.[89] | openbsd2.[89].*)
20581 shlibpath_overrides_runpath=no
20584 shlibpath_overrides_runpath=yes
20588 shlibpath_overrides_runpath=yes
20593 libname_spec='$name'
20596 library_names_spec='$libname${shared_ext} $libname.a'
20597 dynamic_linker='OS/2 ld.exe'
20598 shlibpath_var=LIBPATH
20601 osf3* | osf4* | osf5*)
20605 soname_spec='${libname}${release}${shared_ext}$major'
20606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20607 shlibpath_var=LD_LIBRARY_PATH
20608 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20609 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20614 soname_spec='${libname}${release}${shared_ext}$major'
20615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20616 shlibpath_var=LD_LIBRARY_PATH
20623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20624 soname_spec='${libname}${release}${shared_ext}$major'
20625 shlibpath_var=LD_LIBRARY_PATH
20626 shlibpath_overrides_runpath=yes
20627 hardcode_into_libs=yes
20628 # ldd complains unless libraries are executable
20629 postinstall_cmds='chmod +x $lib'
20634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20635 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20636 shlibpath_var=LD_LIBRARY_PATH
20637 shlibpath_overrides_runpath=yes
20638 if test "$with_gnu_ld" = yes; then
20644 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20647 soname_spec='${libname}${release}${shared_ext}$major'
20648 shlibpath_var=LD_LIBRARY_PATH
20649 case $host_vendor in
20651 shlibpath_overrides_runpath=no
20653 export_dynamic_flag_spec='${wl}-Blargedynsym'
20654 runpath_var=LD_RUN_PATH
20662 shlibpath_overrides_runpath=no
20663 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20669 if test -d /usr/nec ;then
20671 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20672 soname_spec='$libname${shared_ext}.$major'
20673 shlibpath_var=LD_LIBRARY_PATH
20679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20680 soname_spec='${libname}${release}${shared_ext}$major'
20681 shlibpath_var=LD_LIBRARY_PATH
20688 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20689 echo "${ECHO_T}$dynamic_linker" >&6
20690 test "$dynamic_linker" = no && can_build_shared=no
20692 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20693 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20694 hardcode_action_F77=
20695 if test -n "$hardcode_libdir_flag_spec_F77" || \
20696 test -n "$runpath_var_F77" || \
20697 test "X$hardcode_automatic_F77" = "Xyes" ; then
20699 # We can hardcode non-existant directories.
20700 if test "$hardcode_direct_F77" != no &&
20701 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20702 # have to relink, otherwise we might link with an installed library
20703 # when we should be linking with a yet-to-be-installed one
20704 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20705 test "$hardcode_minus_L_F77" != no; then
20706 # Linking always hardcodes the temporary library directory.
20707 hardcode_action_F77=relink
20709 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20710 hardcode_action_F77=immediate
20713 # We cannot hardcode anything, or else we can only hardcode existing
20715 hardcode_action_F77=unsupported
20717 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20718 echo "${ECHO_T}$hardcode_action_F77" >&6
20720 if test "$hardcode_action_F77" = relink; then
20721 # Fast installation is not supported
20722 enable_fast_install=no
20723 elif test "$shlibpath_overrides_runpath" = yes ||
20724 test "$enable_shared" = no; then
20725 # Fast installation is not necessary
20726 enable_fast_install=needless
20731 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20732 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20733 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20734 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20735 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20736 echo "$as_me:$LINENO: result: yes" >&5
20737 echo "${ECHO_T}yes" >&6
20739 # FIXME - insert some real tests, host_os isn't really good enough
20742 if test -n "$STRIP" ; then
20743 striplib="$STRIP -x"
20744 echo "$as_me:$LINENO: result: yes" >&5
20745 echo "${ECHO_T}yes" >&6
20747 echo "$as_me:$LINENO: result: no" >&5
20748 echo "${ECHO_T}no" >&6
20752 echo "$as_me:$LINENO: result: no" >&5
20753 echo "${ECHO_T}no" >&6
20760 # The else clause should only fire when bootstrapping the
20761 # libtool distribution, otherwise you forgot to ship ltmain.sh
20762 # with your package, and you will get complaints that there are
20763 # no rules to generate ltmain.sh.
20764 if test -f "$ltmain"; then
20765 # See if we are running on zsh, and set the options which allow our commands through
20766 # without removal of \ escapes.
20767 if test -n "${ZSH_VERSION+set}" ; then
20768 setopt NO_GLOB_SUBST
20770 # Now quote all the things that may contain metacharacters while being
20771 # careful not to overquote the AC_SUBSTed values. We take copies of the
20772 # variables and quote the copies for generation of the libtool script.
20773 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20775 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20776 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20777 deplibs_check_method reload_flag reload_cmds need_locks \
20778 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20779 lt_cv_sys_global_symbol_to_c_name_address \
20780 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20781 old_postinstall_cmds old_postuninstall_cmds \
20785 lt_prog_compiler_wl_F77 \
20786 lt_prog_compiler_pic_F77 \
20787 lt_prog_compiler_static_F77 \
20788 lt_prog_compiler_no_builtin_flag_F77 \
20789 export_dynamic_flag_spec_F77 \
20790 thread_safe_flag_spec_F77 \
20791 whole_archive_flag_spec_F77 \
20792 enable_shared_with_static_runtimes_F77 \
20793 old_archive_cmds_F77 \
20794 old_archive_from_new_cmds_F77 \
20795 predep_objects_F77 \
20796 postdep_objects_F77 \
20799 compiler_lib_search_path_F77 \
20801 archive_expsym_cmds_F77 \
20802 postinstall_cmds_F77 \
20803 postuninstall_cmds_F77 \
20804 old_archive_from_expsyms_cmds_F77 \
20805 allow_undefined_flag_F77 \
20806 no_undefined_flag_F77 \
20807 export_symbols_cmds_F77 \
20808 hardcode_libdir_flag_spec_F77 \
20809 hardcode_libdir_flag_spec_ld_F77 \
20810 hardcode_libdir_separator_F77 \
20811 hardcode_automatic_F77 \
20813 module_expsym_cmds_F77 \
20814 lt_cv_prog_compiler_c_o_F77 \
20815 exclude_expsyms_F77 \
20816 include_expsyms_F77; do
20819 old_archive_cmds_F77 | \
20820 old_archive_from_new_cmds_F77 | \
20821 archive_cmds_F77 | \
20822 archive_expsym_cmds_F77 | \
20823 module_cmds_F77 | \
20824 module_expsym_cmds_F77 | \
20825 old_archive_from_expsyms_cmds_F77 | \
20826 export_symbols_cmds_F77 | \
20827 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20828 postinstall_cmds | postuninstall_cmds | \
20829 old_postinstall_cmds | old_postuninstall_cmds | \
20830 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20831 # Double-quote double-evaled strings.
20832 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20835 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20841 *'\$0 --fallback-echo"')
20842 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20848 cat <<__EOF__ >> "$cfgfile"
20849 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20851 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20853 # Shell to use when invoking shell scripts.
20856 # Whether or not to build shared libraries.
20857 build_libtool_libs=$enable_shared
20859 # Whether or not to build static libraries.
20860 build_old_libs=$enable_static
20862 # Whether or not to add -lc for building shared libraries.
20863 build_libtool_need_lc=$archive_cmds_need_lc_F77
20865 # Whether or not to disallow shared libs when runtime libs are static
20866 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20868 # Whether or not to optimize for fast installation.
20869 fast_install=$enable_fast_install
20872 host_alias=$host_alias
20875 # An echo program that does not interpret backslashes.
20880 AR_FLAGS=$lt_AR_FLAGS
20885 # A language-specific compiler.
20886 CC=$lt_compiler_F77
20888 # Is the compiler the GNU C compiler?
20894 # The linker used to build libraries.
20897 # Whether we need hard or soft links.
20900 # A BSD-compatible nm program.
20903 # A symbol stripping program
20906 # Used to examine libraries when file_magic_cmd begins "file"
20907 MAGIC_CMD=$MAGIC_CMD
20909 # Used on cygwin: DLL creation program.
20912 # Used on cygwin: object dumper.
20915 # Used on cygwin: assembler.
20918 # The name of the directory that contains temporary libtool files.
20921 # How to create reloadable object files.
20922 reload_flag=$lt_reload_flag
20923 reload_cmds=$lt_reload_cmds
20925 # How to pass a linker flag through the compiler.
20926 wl=$lt_lt_prog_compiler_wl_F77
20928 # Object file suffix (normally "o").
20929 objext="$ac_objext"
20931 # Old archive suffix (normally "a").
20934 # Shared library suffix (normally ".so").
20935 shrext_cmds='$shrext_cmds'
20937 # Executable file suffix (normally "").
20940 # Additional compiler flags for building library objects.
20941 pic_flag=$lt_lt_prog_compiler_pic_F77
20944 # What is the maximum length of a command?
20945 max_cmd_len=$lt_cv_sys_max_cmd_len
20947 # Does compiler simultaneously support -c and -o options?
20948 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20950 # Must we lock files when doing compilation ?
20951 need_locks=$lt_need_locks
20953 # Do we need the lib prefix for modules?
20954 need_lib_prefix=$need_lib_prefix
20956 # Do we need a version for libraries?
20957 need_version=$need_version
20959 # Whether dlopen is supported.
20960 dlopen_support=$enable_dlopen
20962 # Whether dlopen of programs is supported.
20963 dlopen_self=$enable_dlopen_self
20965 # Whether dlopen of statically linked programs is supported.
20966 dlopen_self_static=$enable_dlopen_self_static
20968 # Compiler flag to prevent dynamic linking.
20969 link_static_flag=$lt_lt_prog_compiler_static_F77
20971 # Compiler flag to turn off builtin functions.
20972 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20974 # Compiler flag to allow reflexive dlopens.
20975 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20977 # Compiler flag to generate shared objects directly from archives.
20978 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20980 # Compiler flag to generate thread-safe objects.
20981 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20983 # Library versioning type.
20984 version_type=$version_type
20986 # Format of library name prefix.
20987 libname_spec=$lt_libname_spec
20989 # List of archive names. First name is the real one, the rest are links.
20990 # The last name is the one that the linker finds with -lNAME.
20991 library_names_spec=$lt_library_names_spec
20993 # The coded name of the library, if different from the real name.
20994 soname_spec=$lt_soname_spec
20996 # Commands used to build and install an old-style archive.
20998 old_archive_cmds=$lt_old_archive_cmds_F77
20999 old_postinstall_cmds=$lt_old_postinstall_cmds
21000 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21002 # Create an old-style archive from a shared archive.
21003 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21005 # Create a temporary old-style archive to link instead of a shared archive.
21006 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21008 # Commands used to build and install a shared archive.
21009 archive_cmds=$lt_archive_cmds_F77
21010 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21011 postinstall_cmds=$lt_postinstall_cmds
21012 postuninstall_cmds=$lt_postuninstall_cmds
21014 # Commands used to build a loadable module (assumed same as above if empty)
21015 module_cmds=$lt_module_cmds_F77
21016 module_expsym_cmds=$lt_module_expsym_cmds_F77
21018 # Commands to strip libraries.
21019 old_striplib=$lt_old_striplib
21020 striplib=$lt_striplib
21022 # Dependencies to place before the objects being linked to create a
21024 predep_objects=$lt_predep_objects_F77
21026 # Dependencies to place after the objects being linked to create a
21028 postdep_objects=$lt_postdep_objects_F77
21030 # Dependencies to place before the objects being linked to create a
21032 predeps=$lt_predeps_F77
21034 # Dependencies to place after the objects being linked to create a
21036 postdeps=$lt_postdeps_F77
21038 # The library search path used internally by the compiler when linking
21039 # a shared library.
21040 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21042 # Method to check whether dependent libraries are shared objects.
21043 deplibs_check_method=$lt_deplibs_check_method
21045 # Command to use when deplibs_check_method == file_magic.
21046 file_magic_cmd=$lt_file_magic_cmd
21048 # Flag that allows shared libraries with undefined symbols to be built.
21049 allow_undefined_flag=$lt_allow_undefined_flag_F77
21051 # Flag that forces no undefined symbols.
21052 no_undefined_flag=$lt_no_undefined_flag_F77
21054 # Commands used to finish a libtool library installation in a directory.
21055 finish_cmds=$lt_finish_cmds
21057 # Same as above, but a single script fragment to be evaled but not shown.
21058 finish_eval=$lt_finish_eval
21060 # Take the output of nm and produce a listing of raw symbols and C names.
21061 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21063 # Transform the output of nm in a proper C declaration
21064 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21066 # Transform the output of nm in a C name address pair
21067 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21069 # This is the shared library runtime path variable.
21070 runpath_var=$runpath_var
21072 # This is the shared library path variable.
21073 shlibpath_var=$shlibpath_var
21075 # Is shlibpath searched before the hard-coded library search path?
21076 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21078 # How to hardcode a shared library path into an executable.
21079 hardcode_action=$hardcode_action_F77
21081 # Whether we should hardcode library paths into libraries.
21082 hardcode_into_libs=$hardcode_into_libs
21084 # Flag to hardcode \$libdir into a binary during linking.
21085 # This must work even if \$libdir does not exist.
21086 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21088 # If ld is used when linking, flag to hardcode \$libdir into
21089 # a binary during linking. This must work even if \$libdir does
21091 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21093 # Whether we need a single -rpath flag with a separated argument.
21094 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21096 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21097 # resulting binary.
21098 hardcode_direct=$hardcode_direct_F77
21100 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21101 # resulting binary.
21102 hardcode_minus_L=$hardcode_minus_L_F77
21104 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21105 # the resulting binary.
21106 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21108 # Set to yes if building a shared library automatically hardcodes DIR into the library
21109 # and all subsequent libraries and executables linked against it.
21110 hardcode_automatic=$hardcode_automatic_F77
21112 # Variables whose values should be saved in libtool wrapper scripts and
21113 # restored at relink time.
21114 variables_saved_for_relink="$variables_saved_for_relink"
21116 # Whether libtool must link a program against all its dependency libraries.
21117 link_all_deplibs=$link_all_deplibs_F77
21119 # Compile-time system search path for libraries
21120 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21122 # Run-time system search path for libraries
21123 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21125 # Fix the shell variable \$srcfile for the compiler.
21126 fix_srcfile_path="$fix_srcfile_path_F77"
21128 # Set to yes if exported symbols are required.
21129 always_export_symbols=$always_export_symbols_F77
21131 # The commands to list exported symbols.
21132 export_symbols_cmds=$lt_export_symbols_cmds_F77
21134 # The commands to extract the exported symbol list from a shared archive.
21135 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21137 # Symbols that should not be listed in the preloaded symbols.
21138 exclude_expsyms=$lt_exclude_expsyms_F77
21140 # Symbols that must always be exported.
21141 include_expsyms=$lt_include_expsyms_F77
21143 # ### END LIBTOOL TAG CONFIG: $tagname
21149 # If there is no Makefile yet, we rely on a make rule to execute
21150 # `config.status --recheck' to rerun these tests and create the
21151 # libtool script then.
21152 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21153 if test -f "$ltmain_in"; then
21154 test -f Makefile && make "$ltmain"
21160 ac_cpp='$CPP $CPPFLAGS'
21161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21173 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21175 ac_cpp='$CPP $CPPFLAGS'
21176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21181 # Source file extension for Java test sources.
21184 # Object file extension for compiled Java test sources.
21188 # Code to be used in simple compile tests
21189 lt_simple_compile_test_code="class foo {}\n"
21191 # Code to be used in simple link tests
21192 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21194 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21196 # If no C compiler was specified, use CC.
21199 # Allow CC to be a program name with arguments.
21203 # Allow CC to be a program name with arguments.
21209 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21210 archive_cmds_need_lc_GCJ=no
21213 lt_prog_compiler_no_builtin_flag_GCJ=
21215 if test "$GCC" = yes; then
21216 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21219 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21220 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21221 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21222 echo $ECHO_N "(cached) $ECHO_C" >&6
21224 lt_cv_prog_compiler_rtti_exceptions=no
21225 ac_outfile=conftest.$ac_objext
21226 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21227 lt_compiler_flag="-fno-rtti -fno-exceptions"
21228 # Insert the option either (1) after the last *FLAGS variable, or
21229 # (2) before a word containing "conftest.", or (3) at the end.
21230 # Note that $ac_compile itself does not contain backslashes and begins
21231 # with a dollar sign (not a hyphen), so the echo should work correctly.
21232 # The option is referenced via a variable to avoid confusing sed.
21233 lt_compile=`echo "$ac_compile" | $SED \
21234 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21236 -e 's:$: $lt_compiler_flag:'`
21237 (eval echo "\"\$as_me:21237: $lt_compile\"" >&5)
21238 (eval "$lt_compile" 2>conftest.err)
21240 cat conftest.err >&5
21241 echo "$as_me:21241: \$? = $ac_status" >&5
21242 if (exit $ac_status) && test -s "$ac_outfile"; then
21243 # The compiler can only warn and ignore the option if not recognized
21244 # So say no if there are warnings
21245 if test ! -s conftest.err; then
21246 lt_cv_prog_compiler_rtti_exceptions=yes
21252 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21253 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21255 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21256 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21263 lt_prog_compiler_wl_GCJ=
21264 lt_prog_compiler_pic_GCJ=
21265 lt_prog_compiler_static_GCJ=
21267 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21268 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21270 if test "$GCC" = yes; then
21271 lt_prog_compiler_wl_GCJ='-Wl,'
21272 lt_prog_compiler_static_GCJ='-static'
21276 # All AIX code is PIC.
21277 if test "$host_cpu" = ia64; then
21278 # AIX 5 now supports IA64 processor
21279 lt_prog_compiler_static_GCJ='-Bstatic'
21284 # FIXME: we need at least 68020 code to build shared libraries, but
21285 # adding the `-m68020' flag to GCC prevents building anything better,
21287 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21290 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21291 # PIC is the default for these OSes.
21294 mingw* | pw32* | os2*)
21295 # This hack is so that the source file can tell whether it is being
21296 # built for inclusion in a dll (and should export symbols for example).
21297 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21300 darwin* | rhapsody*)
21301 # PIC is the default on this platform
21302 # Common symbols not allowed in MH_DYLIB files
21303 lt_prog_compiler_pic_GCJ='-fno-common'
21307 # Just because we use GCC doesn't mean we suddenly get shared libraries
21308 # on systems that don't support them.
21309 lt_prog_compiler_can_build_shared_GCJ=no
21314 if test -d /usr/nec; then
21315 lt_prog_compiler_pic_GCJ=-Kconform_pic
21320 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21321 # not for PA HP-UX.
21322 case "$host_cpu" in
21327 lt_prog_compiler_pic_GCJ='-fPIC'
21333 lt_prog_compiler_pic_GCJ='-fPIC'
21337 # PORTME Check for flag to pass linker flags through the system compiler.
21340 lt_prog_compiler_wl_GCJ='-Wl,'
21341 if test "$host_cpu" = ia64; then
21342 # AIX 5 now supports IA64 processor
21343 lt_prog_compiler_static_GCJ='-Bstatic'
21345 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21349 # PIC is the default on this platform
21350 # Common symbols not allowed in MH_DYLIB files
21351 case "$cc_basename" in
21353 lt_prog_compiler_pic_GCJ='-qnocommon'
21354 lt_prog_compiler_wl_GCJ='-Wl,'
21359 mingw* | pw32* | os2*)
21360 # This hack is so that the source file can tell whether it is being
21361 # built for inclusion in a dll (and should export symbols for example).
21362 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21365 hpux9* | hpux10* | hpux11*)
21366 lt_prog_compiler_wl_GCJ='-Wl,'
21367 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21368 # not for PA HP-UX.
21369 case "$host_cpu" in
21374 lt_prog_compiler_pic_GCJ='+Z'
21377 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21378 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21381 irix5* | irix6* | nonstopux*)
21382 lt_prog_compiler_wl_GCJ='-Wl,'
21383 # PIC (with -KPIC) is the default.
21384 lt_prog_compiler_static_GCJ='-non_shared'
21388 lt_prog_compiler_pic_GCJ='-KPIC'
21389 lt_prog_compiler_static_GCJ='-Bstatic'
21395 lt_prog_compiler_wl_GCJ='-Wl,'
21396 lt_prog_compiler_pic_GCJ='-KPIC'
21397 lt_prog_compiler_static_GCJ='-static'
21400 lt_prog_compiler_wl_GCJ='-Wl,'
21401 # All Alpha code is PIC.
21402 lt_prog_compiler_static_GCJ='-non_shared'
21407 osf3* | osf4* | osf5*)
21408 lt_prog_compiler_wl_GCJ='-Wl,'
21409 # All OSF/1 code is PIC.
21410 lt_prog_compiler_static_GCJ='-non_shared'
21414 lt_prog_compiler_pic_GCJ='-Kpic'
21415 lt_prog_compiler_static_GCJ='-dn'
21419 lt_prog_compiler_wl_GCJ='-Wl,'
21420 lt_prog_compiler_pic_GCJ='-KPIC'
21421 lt_prog_compiler_static_GCJ='-Bstatic'
21425 lt_prog_compiler_wl_GCJ='-Qoption ld '
21426 lt_prog_compiler_pic_GCJ='-PIC'
21427 lt_prog_compiler_static_GCJ='-Bstatic'
21430 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21431 lt_prog_compiler_wl_GCJ='-Wl,'
21432 lt_prog_compiler_pic_GCJ='-KPIC'
21433 lt_prog_compiler_static_GCJ='-Bstatic'
21437 if test -d /usr/nec ;then
21438 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21439 lt_prog_compiler_static_GCJ='-Bstatic'
21444 lt_prog_compiler_pic_GCJ='-pic'
21445 lt_prog_compiler_static_GCJ='-Bstatic'
21449 lt_prog_compiler_can_build_shared_GCJ=no
21454 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21455 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21458 # Check to make sure the PIC flag actually works.
21460 if test -n "$lt_prog_compiler_pic_GCJ"; then
21462 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21463 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21464 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21465 echo $ECHO_N "(cached) $ECHO_C" >&6
21467 lt_prog_compiler_pic_works_GCJ=no
21468 ac_outfile=conftest.$ac_objext
21469 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21470 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21471 # Insert the option either (1) after the last *FLAGS variable, or
21472 # (2) before a word containing "conftest.", or (3) at the end.
21473 # Note that $ac_compile itself does not contain backslashes and begins
21474 # with a dollar sign (not a hyphen), so the echo should work correctly.
21475 # The option is referenced via a variable to avoid confusing sed.
21476 lt_compile=`echo "$ac_compile" | $SED \
21477 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21479 -e 's:$: $lt_compiler_flag:'`
21480 (eval echo "\"\$as_me:21480: $lt_compile\"" >&5)
21481 (eval "$lt_compile" 2>conftest.err)
21483 cat conftest.err >&5
21484 echo "$as_me:21484: \$? = $ac_status" >&5
21485 if (exit $ac_status) && test -s "$ac_outfile"; then
21486 # The compiler can only warn and ignore the option if not recognized
21487 # So say no if there are warnings
21488 if test ! -s conftest.err; then
21489 lt_prog_compiler_pic_works_GCJ=yes
21495 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21496 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21498 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21499 case $lt_prog_compiler_pic_GCJ in
21501 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21504 lt_prog_compiler_pic_GCJ=
21505 lt_prog_compiler_can_build_shared_GCJ=no
21510 # For platforms which do not support PIC, -DPIC is meaningless:
21512 lt_prog_compiler_pic_GCJ=
21515 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21519 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21520 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21521 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21522 echo $ECHO_N "(cached) $ECHO_C" >&6
21524 lt_cv_prog_compiler_c_o_GCJ=no
21525 $rm -r conftest 2>/dev/null
21529 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21531 lt_compiler_flag="-o out/conftest2.$ac_objext"
21532 # Insert the option either (1) after the last *FLAGS variable, or
21533 # (2) before a word containing "conftest.", or (3) at the end.
21534 # Note that $ac_compile itself does not contain backslashes and begins
21535 # with a dollar sign (not a hyphen), so the echo should work correctly.
21536 lt_compile=`echo "$ac_compile" | $SED \
21537 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21539 -e 's:$: $lt_compiler_flag:'`
21540 (eval echo "\"\$as_me:21540: $lt_compile\"" >&5)
21541 (eval "$lt_compile" 2>out/conftest.err)
21543 cat out/conftest.err >&5
21544 echo "$as_me:21544: \$? = $ac_status" >&5
21545 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21547 # The compiler can only warn and ignore the option if not recognized
21548 # So say no if there are warnings
21549 if test ! -s out/conftest.err; then
21550 lt_cv_prog_compiler_c_o_GCJ=yes
21555 # SGI C++ compiler will create directory out/ii_files/ for
21556 # template instantiation
21557 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21558 $rm out/* && rmdir out
21564 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21565 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21568 hard_links="nottested"
21569 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21570 # do not overwrite the value of need_locks provided by the user
21571 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21572 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21575 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21577 ln conftest.a conftest.b 2>&5 || hard_links=no
21578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21579 echo "$as_me:$LINENO: result: $hard_links" >&5
21580 echo "${ECHO_T}$hard_links" >&6
21581 if test "$hard_links" = no; then
21582 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21583 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21590 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21591 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21594 allow_undefined_flag_GCJ=
21595 enable_shared_with_static_runtimes_GCJ=no
21597 archive_expsym_cmds_GCJ=
21598 old_archive_From_new_cmds_GCJ=
21599 old_archive_from_expsyms_cmds_GCJ=
21600 export_dynamic_flag_spec_GCJ=
21601 whole_archive_flag_spec_GCJ=
21602 thread_safe_flag_spec_GCJ=
21603 hardcode_libdir_flag_spec_GCJ=
21604 hardcode_libdir_flag_spec_ld_GCJ=
21605 hardcode_libdir_separator_GCJ=
21606 hardcode_direct_GCJ=no
21607 hardcode_minus_L_GCJ=no
21608 hardcode_shlibpath_var_GCJ=unsupported
21609 link_all_deplibs_GCJ=unknown
21610 hardcode_automatic_GCJ=no
21612 module_expsym_cmds_GCJ=
21613 always_export_symbols_GCJ=no
21614 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21615 # include_expsyms should be a list of space-separated symbols to be *always*
21616 # included in the symbol list
21617 include_expsyms_GCJ=
21618 # exclude_expsyms can be an extended regexp of symbols to exclude
21619 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21620 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21621 # as well as any symbol that contains `d'.
21622 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21623 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21624 # platforms (ab)use it in PIC code, but their linkers get confused if
21625 # the symbol is explicitly referenced. Since portable code cannot
21626 # rely on this symbol name, it's probably fine to never include it in
21627 # preloaded symbol tables.
21628 extract_expsyms_cmds=
21631 cygwin* | mingw* | pw32*)
21632 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21633 # When not using gcc, we currently assume that we are using
21634 # Microsoft Visual C++.
21635 if test "$GCC" != yes; then
21645 if test "$with_gnu_ld" = yes; then
21646 # If archive_cmds runs LD, not CC, wlarc should be empty
21649 # See if GNU ld supports shared libraries.
21651 aix3* | aix4* | aix5*)
21652 # On AIX/PPC, the GNU linker is very broken
21653 if test "$host_cpu" != ia64; then
21657 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21658 *** to be unable to reliably create shared libraries on AIX.
21659 *** Therefore, libtool is disabling shared libraries support. If you
21660 *** really care for shared libraries, you may want to modify your PATH
21661 *** so that a non-GNU linker is found, and then restart.
21668 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)'
21669 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21670 hardcode_minus_L_GCJ=yes
21672 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21673 # that the semantics of dynamic libraries on AmigaOS, at least up
21674 # to version 4, is to share data among multiple programs linked
21675 # with the same dynamic library. Since this doesn't match the
21676 # behavior of shared libraries on other platforms, we can't use
21682 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21683 allow_undefined_flag_GCJ=unsupported
21684 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21685 # support --undefined. This deserves some investigation. FIXME
21686 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21692 cygwin* | mingw* | pw32*)
21693 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21694 # as there is no search path for DLLs.
21695 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21696 allow_undefined_flag_GCJ=unsupported
21697 always_export_symbols_GCJ=no
21698 enable_shared_with_static_runtimes_GCJ=yes
21699 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21701 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21702 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21703 # If the export-symbols file already is a .def file (1st line
21704 # is EXPORTS), use it as is; otherwise, prepend...
21705 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21706 cp $export_symbols $output_objdir/$soname.def;
21708 echo EXPORTS > $output_objdir/$soname.def;
21709 cat $export_symbols >> $output_objdir/$soname.def;
21711 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21718 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21719 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21722 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21723 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21728 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21732 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21733 *** create shared libraries on Solaris systems. Therefore, libtool
21734 *** is disabling shared libraries support. We urge you to upgrade GNU
21735 *** binutils to release 2.9.1 or newer. Another option is to modify
21736 *** your PATH or compiler configuration so that the native linker is
21737 *** used, and then restart.
21740 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21741 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21742 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21749 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21751 hardcode_direct_GCJ=yes
21752 hardcode_shlibpath_var_GCJ=no
21756 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21757 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21758 archive_cmds_GCJ="$tmp_archive_cmds"
21759 supports_anon_versioning=no
21760 case `$LD -v 2>/dev/null` in
21761 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21762 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21763 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21764 *\ 2.11.*) ;; # other 2.11 versions
21765 *) supports_anon_versioning=yes ;;
21767 if test $supports_anon_versioning = yes; then
21768 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21769 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21770 $echo "local: *; };" >> $output_objdir/$libname.ver~
21771 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21773 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21781 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21782 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21783 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21790 if test "$ld_shlibs_GCJ" = yes; then
21791 runpath_var=LD_RUN_PATH
21792 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21793 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21794 # ancient GNU ld didn't support --whole-archive et. al.
21795 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21796 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21798 whole_archive_flag_spec_GCJ=
21802 # PORTME fill in a description of your system's linker (not GNU ld)
21805 allow_undefined_flag_GCJ=unsupported
21806 always_export_symbols_GCJ=yes
21807 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'
21808 # Note: this linker hardcodes the directories in LIBPATH if there
21809 # are no directories specified by -L.
21810 hardcode_minus_L_GCJ=yes
21811 if test "$GCC" = yes && test -z "$link_static_flag"; then
21812 # Neither direct hardcoding nor static linking is supported with a
21814 hardcode_direct_GCJ=unsupported
21819 if test "$host_cpu" = ia64; then
21820 # On IA64, the linker does run time linking by default, so we don't
21821 # have to do anything special.
21822 aix_use_runtimelinking=no
21823 exp_sym_flag='-Bexport'
21826 # If we're using GNU nm, then we don't want the "-C" option.
21827 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21828 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21829 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'
21831 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'
21833 aix_use_runtimelinking=no
21835 # Test if we are trying to use run time linking or normal
21836 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21837 # need to do runtime linking.
21838 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21839 for ld_flag in $LDFLAGS; do
21840 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21841 aix_use_runtimelinking=yes
21847 exp_sym_flag='-bexport'
21848 no_entry_flag='-bnoentry'
21851 # When large executables or shared objects are built, AIX ld can
21852 # have problems creating the table of contents. If linking a library
21853 # or program results in "error TOC overflow" add -mminimal-toc to
21854 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21855 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21857 archive_cmds_GCJ=''
21858 hardcode_direct_GCJ=yes
21859 hardcode_libdir_separator_GCJ=':'
21860 link_all_deplibs_GCJ=yes
21862 if test "$GCC" = yes; then
21863 case $host_os in aix4.012|aix4.012.*)
21864 # We only want to do this on AIX 4.2 and lower, the check
21865 # below for broken collect2 doesn't work under 4.3+
21866 collect2name=`${CC} -print-prog-name=collect2`
21867 if test -f "$collect2name" && \
21868 strings "$collect2name" | grep resolve_lib_name >/dev/null
21870 # We have reworked collect2
21871 hardcode_direct_GCJ=yes
21873 # We have old collect2
21874 hardcode_direct_GCJ=unsupported
21875 # It fails to find uninstalled libraries when the uninstalled
21876 # path is not listed in the libpath. Setting hardcode_minus_L
21877 # to unsupported forces relinking
21878 hardcode_minus_L_GCJ=yes
21879 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21880 hardcode_libdir_separator_GCJ=
21883 shared_flag='-shared'
21886 if test "$host_cpu" = ia64; then
21887 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21888 # chokes on -Wl,-G. The following line is correct:
21891 if test "$aix_use_runtimelinking" = yes; then
21892 shared_flag='${wl}-G'
21894 shared_flag='${wl}-bM:SRE'
21899 # It seems that -bexpall does not export symbols beginning with
21900 # underscore (_), so it is better to generate a list of symbols to export.
21901 always_export_symbols_GCJ=yes
21902 if test "$aix_use_runtimelinking" = yes; then
21903 # Warning - without using the other runtime loading flags (-brtl),
21904 # -berok will link without error, but may produce a broken library.
21905 allow_undefined_flag_GCJ='-berok'
21906 # Determine the default libpath from the value encoded in an empty executable.
21907 cat >conftest.$ac_ext <<_ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h. */
21922 rm -f conftest.$ac_objext conftest$ac_exeext
21923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21924 (eval $ac_link) 2>conftest.er1
21926 grep -v '^ *+' conftest.er1 >conftest.err
21928 cat conftest.err >&5
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } &&
21931 { ac_try='test -z "$ac_c_werror_flag"
21932 || test ! -s conftest.err'
21933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934 (eval $ac_try) 2>&5
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); }; } &&
21938 { ac_try='test -s conftest$ac_exeext'
21939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21940 (eval $ac_try) 2>&5
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); }; }; then
21945 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21947 # Check for a 64-bit object if we didn't find anything.
21948 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; }
21951 echo "$as_me: failed program was:" >&5
21952 sed 's/^/| /' conftest.$ac_ext >&5
21955 rm -f conftest.err conftest.$ac_objext \
21956 conftest$ac_exeext conftest.$ac_ext
21957 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21959 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21960 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"
21962 if test "$host_cpu" = ia64; then
21963 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21964 allow_undefined_flag_GCJ="-z nodefs"
21965 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"
21967 # Determine the default libpath from the value encoded in an empty executable.
21968 cat >conftest.$ac_ext <<_ACEOF
21971 cat confdefs.h >>conftest.$ac_ext
21972 cat >>conftest.$ac_ext <<_ACEOF
21973 /* end confdefs.h. */
21983 rm -f conftest.$ac_objext conftest$ac_exeext
21984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21985 (eval $ac_link) 2>conftest.er1
21987 grep -v '^ *+' conftest.er1 >conftest.err
21989 cat conftest.err >&5
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); } &&
21992 { ac_try='test -z "$ac_c_werror_flag"
21993 || test ! -s conftest.err'
21994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21995 (eval $ac_try) 2>&5
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); }; } &&
21999 { ac_try='test -s conftest$ac_exeext'
22000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001 (eval $ac_try) 2>&5
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); }; }; then
22006 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22008 # Check for a 64-bit object if we didn't find anything.
22009 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; }
22012 echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22016 rm -f conftest.err conftest.$ac_objext \
22017 conftest$ac_exeext conftest.$ac_ext
22018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22020 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22021 # Warning - without using the other run time loading flags,
22022 # -berok will link without error, but may produce a broken library.
22023 no_undefined_flag_GCJ=' ${wl}-bernotok'
22024 allow_undefined_flag_GCJ=' ${wl}-berok'
22025 # -bexpall does not export symbols beginning with underscore (_)
22026 always_export_symbols_GCJ=yes
22027 # Exported symbols can be pulled into shared objects from archives
22028 whole_archive_flag_spec_GCJ=' '
22029 archive_cmds_need_lc_GCJ=yes
22030 # This is similar to how AIX traditionally builds it's shared libraries.
22031 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'
22037 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)'
22038 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22039 hardcode_minus_L_GCJ=yes
22040 # see comment about different semantics on the GNU ld section
22045 export_dynamic_flag_spec_GCJ=-rdynamic
22048 cygwin* | mingw* | pw32*)
22049 # When not using gcc, we currently assume that we are using
22050 # Microsoft Visual C++.
22051 # hardcode_libdir_flag_spec is actually meaningless, as there is
22052 # no search path for DLLs.
22053 hardcode_libdir_flag_spec_GCJ=' '
22054 allow_undefined_flag_GCJ=unsupported
22055 # Tell ltmain to make .lib files, not .a files.
22057 # Tell ltmain to make .dll files, not .so files.
22059 # FIXME: Setting linknames here is a bad hack.
22060 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22061 # The linker will automatically build a .lib file if we build a DLL.
22062 old_archive_From_new_cmds_GCJ='true'
22063 # FIXME: Should let the user specify the lib program.
22064 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22065 fix_srcfile_path='`cygpath -w "$srcfile"`'
22066 enable_shared_with_static_runtimes_GCJ=yes
22069 darwin* | rhapsody*)
22071 rhapsody* | darwin1.[012])
22072 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22075 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22076 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22078 case ${MACOSX_DEPLOYMENT_TARGET} in
22080 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22083 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22089 archive_cmds_need_lc_GCJ=no
22090 hardcode_direct_GCJ=no
22091 hardcode_automatic_GCJ=yes
22092 hardcode_shlibpath_var_GCJ=unsupported
22093 whole_archive_flag_spec_GCJ=''
22094 link_all_deplibs_GCJ=yes
22095 if test "$GCC" = yes ; then
22096 output_verbose_link_cmd='echo'
22097 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22098 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22099 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22100 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}'
22101 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}'
22103 case "$cc_basename" in
22105 output_verbose_link_cmd='echo'
22106 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22107 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22108 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22109 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}'
22110 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}'
22120 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22121 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22122 hardcode_shlibpath_var_GCJ=no
22129 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22130 # support. Future versions do this automatically, but an explicit c++rt0.o
22131 # does not break anything, and helps significantly (at the cost of a little
22134 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22135 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22136 hardcode_direct_GCJ=yes
22137 hardcode_shlibpath_var_GCJ=no
22140 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22142 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22143 hardcode_direct_GCJ=yes
22144 hardcode_minus_L_GCJ=yes
22145 hardcode_shlibpath_var_GCJ=no
22148 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22149 freebsd* | kfreebsd*-gnu)
22150 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22151 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22152 hardcode_direct_GCJ=yes
22153 hardcode_shlibpath_var_GCJ=no
22157 if test "$GCC" = yes; then
22158 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'
22160 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'
22162 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22163 hardcode_libdir_separator_GCJ=:
22164 hardcode_direct_GCJ=yes
22166 # hardcode_minus_L: Not really in the search PATH,
22167 # but as the default location of the library.
22168 hardcode_minus_L_GCJ=yes
22169 export_dynamic_flag_spec_GCJ='${wl}-E'
22173 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22174 case "$host_cpu" in
22176 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22179 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22183 case "$host_cpu" in
22185 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22188 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22192 if test "$with_gnu_ld" = no; then
22193 case "$host_cpu" in
22195 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22196 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22197 hardcode_libdir_separator_GCJ=:
22198 hardcode_direct_GCJ=no
22199 hardcode_shlibpath_var_GCJ=no
22202 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22203 hardcode_direct_GCJ=no
22204 hardcode_shlibpath_var_GCJ=no
22206 # hardcode_minus_L: Not really in the search PATH,
22207 # but as the default location of the library.
22208 hardcode_minus_L_GCJ=yes
22211 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22212 hardcode_libdir_separator_GCJ=:
22213 hardcode_direct_GCJ=yes
22214 export_dynamic_flag_spec_GCJ='${wl}-E'
22216 # hardcode_minus_L: Not really in the search PATH,
22217 # but as the default location of the library.
22218 hardcode_minus_L_GCJ=yes
22224 irix5* | irix6* | nonstopux*)
22225 if test "$GCC" = yes; then
22226 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'
22228 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'
22229 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22231 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22232 hardcode_libdir_separator_GCJ=:
22233 link_all_deplibs_GCJ=yes
22237 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22238 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22240 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22242 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22243 hardcode_direct_GCJ=yes
22244 hardcode_shlibpath_var_GCJ=no
22248 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22249 hardcode_direct_GCJ=yes
22250 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22251 hardcode_libdir_separator_GCJ=:
22252 hardcode_shlibpath_var_GCJ=no
22256 hardcode_direct_GCJ=yes
22257 hardcode_shlibpath_var_GCJ=no
22258 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22259 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22260 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22261 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22262 export_dynamic_flag_spec_GCJ='${wl}-E'
22265 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22266 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22267 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22270 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22271 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22278 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22279 hardcode_minus_L_GCJ=yes
22280 allow_undefined_flag_GCJ=unsupported
22281 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'
22282 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22286 if test "$GCC" = yes; then
22287 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22288 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'
22290 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22291 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'
22293 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22294 hardcode_libdir_separator_GCJ=:
22297 osf4* | osf5*) # as osf3* with the addition of -msym flag
22298 if test "$GCC" = yes; then
22299 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22300 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'
22301 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22303 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22304 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'
22305 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~
22306 $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'
22308 # Both c and cxx compiler support -rpath directly
22309 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22311 hardcode_libdir_separator_GCJ=:
22315 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22316 hardcode_shlibpath_var_GCJ=no
22317 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22318 runpath_var=LD_RUN_PATH
22319 hardcode_runpath_var=yes
22323 no_undefined_flag_GCJ=' -z text'
22324 if test "$GCC" = yes; then
22325 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22326 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22327 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22329 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22330 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22331 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22333 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22334 hardcode_shlibpath_var_GCJ=no
22336 solaris2.[0-5] | solaris2.[0-5].*) ;;
22337 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22338 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22340 link_all_deplibs_GCJ=yes
22344 if test "x$host_vendor" = xsequent; then
22345 # Use $CC to link under sequent, because it throws in some extra .o
22346 # files that make .init and .fini sections work.
22347 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22349 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22351 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22352 hardcode_direct_GCJ=yes
22353 hardcode_minus_L_GCJ=yes
22354 hardcode_shlibpath_var_GCJ=no
22358 case $host_vendor in
22360 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22361 hardcode_direct_GCJ=yes # is this really true???
22364 ## LD is ld it makes a PLAMLIB
22365 ## CC just makes a GrossModule.
22366 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22367 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22368 hardcode_direct_GCJ=no
22371 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22372 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22375 runpath_var='LD_RUN_PATH'
22376 hardcode_shlibpath_var_GCJ=no
22380 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22381 hardcode_shlibpath_var_GCJ=no
22382 export_dynamic_flag_spec_GCJ='-Bexport'
22386 if test -d /usr/nec; then
22387 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22388 hardcode_shlibpath_var_GCJ=no
22389 runpath_var=LD_RUN_PATH
22390 hardcode_runpath_var=yes
22396 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22397 hardcode_direct_GCJ=yes
22398 hardcode_minus_L_GCJ=no
22399 hardcode_shlibpath_var_GCJ=no
22400 hardcode_runpath_var=yes
22401 runpath_var=LD_RUN_PATH
22404 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22405 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22406 if test "$GCC" = yes; then
22407 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22409 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22411 runpath_var='LD_RUN_PATH'
22412 hardcode_shlibpath_var_GCJ=no
22416 no_undefined_flag_GCJ=' -z text'
22417 # $CC -shared without GNU ld will not create a library from C++
22418 # object files and a static libstdc++, better avoid it by now
22419 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22420 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22421 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22422 hardcode_libdir_flag_spec_GCJ=
22423 hardcode_shlibpath_var_GCJ=no
22424 runpath_var='LD_RUN_PATH'
22428 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22429 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22430 hardcode_shlibpath_var_GCJ=no
22439 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22440 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22441 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22443 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22444 if test "$GCC" = yes; then
22445 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22449 # Do we need to explicitly link libc?
22451 case "x$archive_cmds_need_lc_GCJ" in
22453 # Assume -lc should be added
22454 archive_cmds_need_lc_GCJ=yes
22456 if test "$enable_shared" = yes && test "$GCC" = yes; then
22457 case $archive_cmds_GCJ in
22459 # FIXME: we may have to deal with multi-command sequences.
22462 # Test whether the compiler implicitly links with -lc since on some
22463 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22464 # to ld, don't add -lc before -lgcc.
22465 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22466 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22468 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22471 (eval $ac_compile) 2>&5
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } 2>conftest.err; then
22477 libobjs=conftest.$ac_objext
22479 wl=$lt_prog_compiler_wl_GCJ
22485 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22486 allow_undefined_flag_GCJ=
22487 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22488 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); }
22493 archive_cmds_need_lc_GCJ=no
22495 archive_cmds_need_lc_GCJ=yes
22497 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22499 cat conftest.err 1>&5
22502 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22503 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22510 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22511 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22512 library_names_spec=
22513 libname_spec='lib$name'
22517 postuninstall_cmds=
22521 shlibpath_overrides_runpath=unknown
22523 dynamic_linker="$host_os ld.so"
22524 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22525 if test "$GCC" = yes; then
22526 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22527 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22528 # if the path contains ";" then we assume it to be the separator
22529 # otherwise default to the standard path separator (i.e. ":") - it is
22530 # assumed that no part of a normal pathname contains ";" but that should
22531 # okay in the real world where ";" in dirpaths is itself problematic.
22532 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22534 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22537 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22539 need_lib_prefix=unknown
22540 hardcode_into_libs=no
22542 # when you set need_version to no, make sure it does not cause -set_version
22543 # flags to be left without arguments
22544 need_version=unknown
22549 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22550 shlibpath_var=LIBPATH
22552 # AIX 3 has no versioning support, so we append a major version to the name.
22553 soname_spec='${libname}${release}${shared_ext}$major'
22560 hardcode_into_libs=yes
22561 if test "$host_cpu" = ia64; then
22562 # AIX 5 supports IA64
22563 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22564 shlibpath_var=LD_LIBRARY_PATH
22566 # With GCC up to 2.95.x, collect2 would create an import file
22567 # for dependence libraries. The import file would start with
22568 # the line `#! .'. This would cause the generated library to
22569 # depend on `.', always an invalid library. This was fixed in
22570 # development snapshots of GCC prior to 3.0.
22572 aix4 | aix4.[01] | aix4.[01].*)
22573 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22575 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22578 can_build_shared=no
22582 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22583 # soname into executable. Probably we can add versioning support to
22584 # collect2, so additional links can be useful in future.
22585 if test "$aix_use_runtimelinking" = yes; then
22586 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22587 # instead of lib<name>.a to let people know that these are not
22588 # typical AIX shared libraries.
22589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22591 # We preserve .a as extension for shared libraries through AIX4.2
22592 # and later when we are not doing run time linking.
22593 library_names_spec='${libname}${release}.a $libname.a'
22594 soname_spec='${libname}${release}${shared_ext}$major'
22596 shlibpath_var=LIBPATH
22601 library_names_spec='$libname.ixlibrary $libname.a'
22602 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22603 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'
22607 library_names_spec='${libname}${shared_ext}'
22608 dynamic_linker="$host_os ld.so"
22609 shlibpath_var=LIBRARY_PATH
22615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22616 soname_spec='${libname}${release}${shared_ext}$major'
22617 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22618 shlibpath_var=LD_LIBRARY_PATH
22619 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22620 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22621 # the default ld.so.conf also contains /usr/contrib/lib and
22622 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22623 # libtool to hard-code these into programs
22626 cygwin* | mingw* | pw32*)
22627 version_type=windows
22632 case $GCC,$host_os in
22633 yes,cygwin* | yes,mingw* | yes,pw32*)
22634 library_names_spec='$libname.dll.a'
22635 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22636 postinstall_cmds='base_file=`basename \${file}`~
22637 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22638 dldir=$destdir/`dirname \$dlpath`~
22639 test -d \$dldir || mkdir -p \$dldir~
22640 $install_prog $dir/$dlname \$dldir/$dlname'
22641 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22642 dlpath=$dir/\$dldll~
22644 shlibpath_overrides_runpath=yes
22648 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22649 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22650 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22653 # MinGW DLLs use traditional 'lib' prefix
22654 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22655 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22656 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22657 # It is most probably a Windows format PATH printed by
22658 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22659 # path with ; separators, and with drive letters. We can handle the
22660 # drive letters (cygwin fileutils understands them), so leave them,
22661 # especially as we might pass files found there to a mingw objdump,
22662 # which wouldn't understand a cygwinified path. Ahh.
22663 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22665 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22669 # pw32 DLLs use 'pw' prefix rather than 'lib'
22670 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22676 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22679 dynamic_linker='Win32 ld.exe'
22680 # FIXME: first we should search . and the directory the executable is in
22684 darwin* | rhapsody*)
22685 dynamic_linker="$host_os dyld"
22686 version_type=darwin
22689 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22690 soname_spec='${libname}${release}${major}$shared_ext'
22691 shlibpath_overrides_runpath=yes
22692 shlibpath_var=DYLD_LIBRARY_PATH
22693 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22694 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22695 if test "$GCC" = yes; then
22696 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"`
22698 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22700 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22708 soname_spec='${libname}${release}${shared_ext}$major'
22709 shlibpath_var=LD_LIBRARY_PATH
22720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22721 soname_spec='${libname}${release}${shared_ext}$major'
22722 shlibpath_var=LD_LIBRARY_PATH
22723 shlibpath_overrides_runpath=no
22724 hardcode_into_libs=yes
22725 dynamic_linker='GNU ld.so'
22729 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22730 version_type=freebsd-$objformat
22731 case $version_type in
22733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22738 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22742 shlibpath_var=LD_LIBRARY_PATH
22745 shlibpath_overrides_runpath=yes
22747 freebsd3.01* | freebsdelf3.01*)
22748 shlibpath_overrides_runpath=yes
22749 hardcode_into_libs=yes
22752 shlibpath_overrides_runpath=no
22753 hardcode_into_libs=yes
22762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22763 soname_spec='${libname}${release}${shared_ext}$major'
22764 shlibpath_var=LD_LIBRARY_PATH
22765 hardcode_into_libs=yes
22768 hpux9* | hpux10* | hpux11*)
22769 # Give a soname corresponding to the major version so that dld.sl refuses to
22770 # link against other versions.
22774 case "$host_cpu" in
22777 hardcode_into_libs=yes
22778 dynamic_linker="$host_os dld.so"
22779 shlibpath_var=LD_LIBRARY_PATH
22780 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22782 soname_spec='${libname}${release}${shared_ext}$major'
22783 if test "X$HPUX_IA64_MODE" = X32; then
22784 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22786 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22788 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22792 hardcode_into_libs=yes
22793 dynamic_linker="$host_os dld.sl"
22794 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22797 soname_spec='${libname}${release}${shared_ext}$major'
22798 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22799 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22803 dynamic_linker="$host_os dld.sl"
22804 shlibpath_var=SHLIB_PATH
22805 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22807 soname_spec='${libname}${release}${shared_ext}$major'
22810 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22811 postinstall_cmds='chmod 555 $lib'
22814 irix5* | irix6* | nonstopux*)
22816 nonstopux*) version_type=nonstopux ;;
22818 if test "$lt_cv_prog_gnu_ld" = yes; then
22826 soname_spec='${libname}${release}${shared_ext}$major'
22827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22829 irix5* | nonstopux*)
22830 libsuff= shlibsuff=
22833 case $LD in # libtool.m4 will add one of these switches to LD
22834 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22835 libsuff= shlibsuff= libmagic=32-bit;;
22836 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22837 libsuff=32 shlibsuff=N32 libmagic=N32;;
22838 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22839 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22840 *) libsuff= shlibsuff= libmagic=never-match;;
22844 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22845 shlibpath_overrides_runpath=no
22846 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22847 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22848 hardcode_into_libs=yes
22851 # No shared lib support for Linux oldld, aout, or coff.
22852 linux*oldld* | linux*aout* | linux*coff*)
22856 # This must be Linux ELF.
22861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22862 soname_spec='${libname}${release}${shared_ext}$major'
22863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22864 shlibpath_var=LD_LIBRARY_PATH
22865 shlibpath_overrides_runpath=no
22866 # This implies no fast_install, which is unacceptable.
22867 # Some rework will be needed to allow for fast_install
22868 # before this can be enabled.
22869 hardcode_into_libs=yes
22871 # Append ld.so.conf contents to the search path
22872 if test -f /etc/ld.so.conf; then
22873 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22874 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22877 # We used to test for /lib/ld.so.1 and disable shared libraries on
22878 # powerpc, because MkLinux only supported shared libraries with the
22879 # GNU dynamic linker. Since this was broken with cross compilers,
22880 # most powerpc-linux boxes support dynamic linking these days and
22881 # people can always --disable-shared, the test was removed, and we
22882 # assume the GNU/Linux dynamic linker is in use.
22883 dynamic_linker='GNU/Linux ld.so'
22890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22891 soname_spec='${libname}${release}${shared_ext}$major'
22892 shlibpath_var=LD_LIBRARY_PATH
22893 shlibpath_overrides_runpath=no
22894 hardcode_into_libs=yes
22895 dynamic_linker='GNU ld.so'
22902 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22905 dynamic_linker='NetBSD (a.out) ld.so'
22907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22908 soname_spec='${libname}${release}${shared_ext}$major'
22909 dynamic_linker='NetBSD ld.elf_so'
22911 shlibpath_var=LD_LIBRARY_PATH
22912 shlibpath_overrides_runpath=yes
22913 hardcode_into_libs=yes
22918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22919 shlibpath_var=LD_LIBRARY_PATH
22920 shlibpath_overrides_runpath=yes
22927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22928 soname_spec='${libname}${release}${shared_ext}$major'
22929 shlibpath_var=LD_LIBRARY_PATH
22930 shlibpath_overrides_runpath=yes
22937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22939 shlibpath_var=LD_LIBRARY_PATH
22940 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22942 openbsd2.[89] | openbsd2.[89].*)
22943 shlibpath_overrides_runpath=no
22946 shlibpath_overrides_runpath=yes
22950 shlibpath_overrides_runpath=yes
22955 libname_spec='$name'
22958 library_names_spec='$libname${shared_ext} $libname.a'
22959 dynamic_linker='OS/2 ld.exe'
22960 shlibpath_var=LIBPATH
22963 osf3* | osf4* | osf5*)
22967 soname_spec='${libname}${release}${shared_ext}$major'
22968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22969 shlibpath_var=LD_LIBRARY_PATH
22970 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22971 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22976 soname_spec='${libname}${release}${shared_ext}$major'
22977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22978 shlibpath_var=LD_LIBRARY_PATH
22985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22986 soname_spec='${libname}${release}${shared_ext}$major'
22987 shlibpath_var=LD_LIBRARY_PATH
22988 shlibpath_overrides_runpath=yes
22989 hardcode_into_libs=yes
22990 # ldd complains unless libraries are executable
22991 postinstall_cmds='chmod +x $lib'
22996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22997 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22998 shlibpath_var=LD_LIBRARY_PATH
22999 shlibpath_overrides_runpath=yes
23000 if test "$with_gnu_ld" = yes; then
23006 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23009 soname_spec='${libname}${release}${shared_ext}$major'
23010 shlibpath_var=LD_LIBRARY_PATH
23011 case $host_vendor in
23013 shlibpath_overrides_runpath=no
23015 export_dynamic_flag_spec='${wl}-Blargedynsym'
23016 runpath_var=LD_RUN_PATH
23024 shlibpath_overrides_runpath=no
23025 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23031 if test -d /usr/nec ;then
23033 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23034 soname_spec='$libname${shared_ext}.$major'
23035 shlibpath_var=LD_LIBRARY_PATH
23041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23042 soname_spec='${libname}${release}${shared_ext}$major'
23043 shlibpath_var=LD_LIBRARY_PATH
23050 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23051 echo "${ECHO_T}$dynamic_linker" >&6
23052 test "$dynamic_linker" = no && can_build_shared=no
23054 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23055 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23056 hardcode_action_GCJ=
23057 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23058 test -n "$runpath_var_GCJ" || \
23059 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23061 # We can hardcode non-existant directories.
23062 if test "$hardcode_direct_GCJ" != no &&
23063 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23064 # have to relink, otherwise we might link with an installed library
23065 # when we should be linking with a yet-to-be-installed one
23066 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23067 test "$hardcode_minus_L_GCJ" != no; then
23068 # Linking always hardcodes the temporary library directory.
23069 hardcode_action_GCJ=relink
23071 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23072 hardcode_action_GCJ=immediate
23075 # We cannot hardcode anything, or else we can only hardcode existing
23077 hardcode_action_GCJ=unsupported
23079 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23080 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23082 if test "$hardcode_action_GCJ" = relink; then
23083 # Fast installation is not supported
23084 enable_fast_install=no
23085 elif test "$shlibpath_overrides_runpath" = yes ||
23086 test "$enable_shared" = no; then
23087 # Fast installation is not necessary
23088 enable_fast_install=needless
23093 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23094 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23095 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23096 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23097 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23098 echo "$as_me:$LINENO: result: yes" >&5
23099 echo "${ECHO_T}yes" >&6
23101 # FIXME - insert some real tests, host_os isn't really good enough
23104 if test -n "$STRIP" ; then
23105 striplib="$STRIP -x"
23106 echo "$as_me:$LINENO: result: yes" >&5
23107 echo "${ECHO_T}yes" >&6
23109 echo "$as_me:$LINENO: result: no" >&5
23110 echo "${ECHO_T}no" >&6
23114 echo "$as_me:$LINENO: result: no" >&5
23115 echo "${ECHO_T}no" >&6
23120 if test "x$enable_dlopen" != xyes; then
23121 enable_dlopen=unknown
23122 enable_dlopen_self=unknown
23123 enable_dlopen_self_static=unknown
23130 lt_cv_dlopen="load_add_on"
23132 lt_cv_dlopen_self=yes
23136 lt_cv_dlopen="LoadLibrary"
23141 lt_cv_dlopen="dlopen"
23146 # if libdl is installed we need to link against it
23147 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23148 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23149 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23150 echo $ECHO_N "(cached) $ECHO_C" >&6
23152 ac_check_lib_save_LIBS=$LIBS
23154 cat >conftest.$ac_ext <<_ACEOF
23157 cat confdefs.h >>conftest.$ac_ext
23158 cat >>conftest.$ac_ext <<_ACEOF
23159 /* end confdefs.h. */
23161 /* Override any gcc2 internal prototype to avoid an error. */
23165 /* We use char because int might match the return type of a gcc2
23166 builtin and then its argument prototype would still apply. */
23176 rm -f conftest.$ac_objext conftest$ac_exeext
23177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23178 (eval $ac_link) 2>conftest.er1
23180 grep -v '^ *+' conftest.er1 >conftest.err
23182 cat conftest.err >&5
23183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); } &&
23185 { ac_try='test -z "$ac_c_werror_flag"
23186 || test ! -s conftest.err'
23187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23188 (eval $ac_try) 2>&5
23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191 (exit $ac_status); }; } &&
23192 { ac_try='test -s conftest$ac_exeext'
23193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23194 (eval $ac_try) 2>&5
23196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197 (exit $ac_status); }; }; then
23198 ac_cv_lib_dl_dlopen=yes
23200 echo "$as_me: failed program was:" >&5
23201 sed 's/^/| /' conftest.$ac_ext >&5
23203 ac_cv_lib_dl_dlopen=no
23205 rm -f conftest.err conftest.$ac_objext \
23206 conftest$ac_exeext conftest.$ac_ext
23207 LIBS=$ac_check_lib_save_LIBS
23209 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23210 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23211 if test $ac_cv_lib_dl_dlopen = yes; then
23212 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23215 lt_cv_dlopen="dyld"
23217 lt_cv_dlopen_self=yes
23224 echo "$as_me:$LINENO: checking for shl_load" >&5
23225 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23226 if test "${ac_cv_func_shl_load+set}" = set; then
23227 echo $ECHO_N "(cached) $ECHO_C" >&6
23229 cat >conftest.$ac_ext <<_ACEOF
23232 cat confdefs.h >>conftest.$ac_ext
23233 cat >>conftest.$ac_ext <<_ACEOF
23234 /* end confdefs.h. */
23235 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23237 #define shl_load innocuous_shl_load
23239 /* System header to define __stub macros and hopefully few prototypes,
23240 which can conflict with char shl_load (); below.
23241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23242 <limits.h> exists even on freestanding compilers. */
23245 # include <limits.h>
23247 # include <assert.h>
23252 /* Override any gcc2 internal prototype to avoid an error. */
23257 /* We use char because int might match the return type of a gcc2
23258 builtin and then its argument prototype would still apply. */
23260 /* The GNU C library defines this for functions which it implements
23261 to always fail with ENOSYS. Some functions are actually named
23262 something starting with __ and the normal name is an alias. */
23263 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23266 char (*f) () = shl_load;
23275 return f != shl_load;
23280 rm -f conftest.$ac_objext conftest$ac_exeext
23281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23282 (eval $ac_link) 2>conftest.er1
23284 grep -v '^ *+' conftest.er1 >conftest.err
23286 cat conftest.err >&5
23287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); } &&
23289 { ac_try='test -z "$ac_c_werror_flag"
23290 || test ! -s conftest.err'
23291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23292 (eval $ac_try) 2>&5
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); }; } &&
23296 { ac_try='test -s conftest$ac_exeext'
23297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23298 (eval $ac_try) 2>&5
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); }; }; then
23302 ac_cv_func_shl_load=yes
23304 echo "$as_me: failed program was:" >&5
23305 sed 's/^/| /' conftest.$ac_ext >&5
23307 ac_cv_func_shl_load=no
23309 rm -f conftest.err conftest.$ac_objext \
23310 conftest$ac_exeext conftest.$ac_ext
23312 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23313 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23314 if test $ac_cv_func_shl_load = yes; then
23315 lt_cv_dlopen="shl_load"
23317 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23318 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23319 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23320 echo $ECHO_N "(cached) $ECHO_C" >&6
23322 ac_check_lib_save_LIBS=$LIBS
23324 cat >conftest.$ac_ext <<_ACEOF
23327 cat confdefs.h >>conftest.$ac_ext
23328 cat >>conftest.$ac_ext <<_ACEOF
23329 /* end confdefs.h. */
23331 /* Override any gcc2 internal prototype to avoid an error. */
23335 /* We use char because int might match the return type of a gcc2
23336 builtin and then its argument prototype would still apply. */
23346 rm -f conftest.$ac_objext conftest$ac_exeext
23347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23348 (eval $ac_link) 2>conftest.er1
23350 grep -v '^ *+' conftest.er1 >conftest.err
23352 cat conftest.err >&5
23353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354 (exit $ac_status); } &&
23355 { ac_try='test -z "$ac_c_werror_flag"
23356 || test ! -s conftest.err'
23357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23358 (eval $ac_try) 2>&5
23360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); }; } &&
23362 { ac_try='test -s conftest$ac_exeext'
23363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23364 (eval $ac_try) 2>&5
23366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367 (exit $ac_status); }; }; then
23368 ac_cv_lib_dld_shl_load=yes
23370 echo "$as_me: failed program was:" >&5
23371 sed 's/^/| /' conftest.$ac_ext >&5
23373 ac_cv_lib_dld_shl_load=no
23375 rm -f conftest.err conftest.$ac_objext \
23376 conftest$ac_exeext conftest.$ac_ext
23377 LIBS=$ac_check_lib_save_LIBS
23379 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23380 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23381 if test $ac_cv_lib_dld_shl_load = yes; then
23382 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23384 echo "$as_me:$LINENO: checking for dlopen" >&5
23385 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23386 if test "${ac_cv_func_dlopen+set}" = set; then
23387 echo $ECHO_N "(cached) $ECHO_C" >&6
23389 cat >conftest.$ac_ext <<_ACEOF
23392 cat confdefs.h >>conftest.$ac_ext
23393 cat >>conftest.$ac_ext <<_ACEOF
23394 /* end confdefs.h. */
23395 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23397 #define dlopen innocuous_dlopen
23399 /* System header to define __stub macros and hopefully few prototypes,
23400 which can conflict with char dlopen (); below.
23401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23402 <limits.h> exists even on freestanding compilers. */
23405 # include <limits.h>
23407 # include <assert.h>
23412 /* Override any gcc2 internal prototype to avoid an error. */
23417 /* We use char because int might match the return type of a gcc2
23418 builtin and then its argument prototype would still apply. */
23420 /* The GNU C library defines this for functions which it implements
23421 to always fail with ENOSYS. Some functions are actually named
23422 something starting with __ and the normal name is an alias. */
23423 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23426 char (*f) () = dlopen;
23435 return f != dlopen;
23440 rm -f conftest.$ac_objext conftest$ac_exeext
23441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23442 (eval $ac_link) 2>conftest.er1
23444 grep -v '^ *+' conftest.er1 >conftest.err
23446 cat conftest.err >&5
23447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448 (exit $ac_status); } &&
23449 { ac_try='test -z "$ac_c_werror_flag"
23450 || test ! -s conftest.err'
23451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23452 (eval $ac_try) 2>&5
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); }; } &&
23456 { ac_try='test -s conftest$ac_exeext'
23457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23458 (eval $ac_try) 2>&5
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); }; }; then
23462 ac_cv_func_dlopen=yes
23464 echo "$as_me: failed program was:" >&5
23465 sed 's/^/| /' conftest.$ac_ext >&5
23467 ac_cv_func_dlopen=no
23469 rm -f conftest.err conftest.$ac_objext \
23470 conftest$ac_exeext conftest.$ac_ext
23472 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23473 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23474 if test $ac_cv_func_dlopen = yes; then
23475 lt_cv_dlopen="dlopen"
23477 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23478 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23479 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23480 echo $ECHO_N "(cached) $ECHO_C" >&6
23482 ac_check_lib_save_LIBS=$LIBS
23484 cat >conftest.$ac_ext <<_ACEOF
23487 cat confdefs.h >>conftest.$ac_ext
23488 cat >>conftest.$ac_ext <<_ACEOF
23489 /* end confdefs.h. */
23491 /* Override any gcc2 internal prototype to avoid an error. */
23495 /* We use char because int might match the return type of a gcc2
23496 builtin and then its argument prototype would still apply. */
23506 rm -f conftest.$ac_objext conftest$ac_exeext
23507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23508 (eval $ac_link) 2>conftest.er1
23510 grep -v '^ *+' conftest.er1 >conftest.err
23512 cat conftest.err >&5
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); } &&
23515 { ac_try='test -z "$ac_c_werror_flag"
23516 || test ! -s conftest.err'
23517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518 (eval $ac_try) 2>&5
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); }; } &&
23522 { ac_try='test -s conftest$ac_exeext'
23523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23524 (eval $ac_try) 2>&5
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); }; }; then
23528 ac_cv_lib_dl_dlopen=yes
23530 echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23533 ac_cv_lib_dl_dlopen=no
23535 rm -f conftest.err conftest.$ac_objext \
23536 conftest$ac_exeext conftest.$ac_ext
23537 LIBS=$ac_check_lib_save_LIBS
23539 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23540 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23541 if test $ac_cv_lib_dl_dlopen = yes; then
23542 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23544 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23545 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23546 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23547 echo $ECHO_N "(cached) $ECHO_C" >&6
23549 ac_check_lib_save_LIBS=$LIBS
23550 LIBS="-lsvld $LIBS"
23551 cat >conftest.$ac_ext <<_ACEOF
23554 cat confdefs.h >>conftest.$ac_ext
23555 cat >>conftest.$ac_ext <<_ACEOF
23556 /* end confdefs.h. */
23558 /* Override any gcc2 internal prototype to avoid an error. */
23562 /* We use char because int might match the return type of a gcc2
23563 builtin and then its argument prototype would still apply. */
23573 rm -f conftest.$ac_objext conftest$ac_exeext
23574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23575 (eval $ac_link) 2>conftest.er1
23577 grep -v '^ *+' conftest.er1 >conftest.err
23579 cat conftest.err >&5
23580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); } &&
23582 { ac_try='test -z "$ac_c_werror_flag"
23583 || test ! -s conftest.err'
23584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23585 (eval $ac_try) 2>&5
23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); }; } &&
23589 { ac_try='test -s conftest$ac_exeext'
23590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23591 (eval $ac_try) 2>&5
23593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); }; }; then
23595 ac_cv_lib_svld_dlopen=yes
23597 echo "$as_me: failed program was:" >&5
23598 sed 's/^/| /' conftest.$ac_ext >&5
23600 ac_cv_lib_svld_dlopen=no
23602 rm -f conftest.err conftest.$ac_objext \
23603 conftest$ac_exeext conftest.$ac_ext
23604 LIBS=$ac_check_lib_save_LIBS
23606 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23607 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23608 if test $ac_cv_lib_svld_dlopen = yes; then
23609 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23611 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23612 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23613 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23614 echo $ECHO_N "(cached) $ECHO_C" >&6
23616 ac_check_lib_save_LIBS=$LIBS
23618 cat >conftest.$ac_ext <<_ACEOF
23621 cat confdefs.h >>conftest.$ac_ext
23622 cat >>conftest.$ac_ext <<_ACEOF
23623 /* end confdefs.h. */
23625 /* Override any gcc2 internal prototype to avoid an error. */
23629 /* We use char because int might match the return type of a gcc2
23630 builtin and then its argument prototype would still apply. */
23640 rm -f conftest.$ac_objext conftest$ac_exeext
23641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23642 (eval $ac_link) 2>conftest.er1
23644 grep -v '^ *+' conftest.er1 >conftest.err
23646 cat conftest.err >&5
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); } &&
23649 { ac_try='test -z "$ac_c_werror_flag"
23650 || test ! -s conftest.err'
23651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23652 (eval $ac_try) 2>&5
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); }; } &&
23656 { ac_try='test -s conftest$ac_exeext'
23657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23658 (eval $ac_try) 2>&5
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); }; }; then
23662 ac_cv_lib_dld_dld_link=yes
23664 echo "$as_me: failed program was:" >&5
23665 sed 's/^/| /' conftest.$ac_ext >&5
23667 ac_cv_lib_dld_dld_link=no
23669 rm -f conftest.err conftest.$ac_objext \
23670 conftest$ac_exeext conftest.$ac_ext
23671 LIBS=$ac_check_lib_save_LIBS
23673 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23674 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23675 if test $ac_cv_lib_dld_dld_link = yes; then
23676 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23697 if test "x$lt_cv_dlopen" != xno; then
23703 case $lt_cv_dlopen in
23705 save_CPPFLAGS="$CPPFLAGS"
23706 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23708 save_LDFLAGS="$LDFLAGS"
23709 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23712 LIBS="$lt_cv_dlopen_libs $LIBS"
23714 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23715 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23716 if test "${lt_cv_dlopen_self+set}" = set; then
23717 echo $ECHO_N "(cached) $ECHO_C" >&6
23719 if test "$cross_compiling" = yes; then :
23720 lt_cv_dlopen_self=cross
23722 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23723 lt_status=$lt_dlunknown
23724 cat > conftest.$ac_ext <<EOF
23725 #line 23725 "configure"
23726 #include "confdefs.h"
23735 # define LT_DLGLOBAL RTLD_GLOBAL
23738 # define LT_DLGLOBAL DL_GLOBAL
23740 # define LT_DLGLOBAL 0
23744 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23745 find out it does not work in some platform. */
23746 #ifndef LT_DLLAZY_OR_NOW
23748 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23751 # define LT_DLLAZY_OR_NOW DL_LAZY
23754 # define LT_DLLAZY_OR_NOW RTLD_NOW
23757 # define LT_DLLAZY_OR_NOW DL_NOW
23759 # define LT_DLLAZY_OR_NOW 0
23767 extern "C" void exit (int);
23770 void fnord() { int i=42;}
23773 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23774 int status = $lt_dlunknown;
23778 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23779 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23780 /* dlclose (self); */
23786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23787 (eval $ac_link) 2>&5
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23791 (./conftest; exit; ) 2>/dev/null
23793 case x$lt_status in
23794 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23795 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23796 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23799 # compilation failed
23800 lt_cv_dlopen_self=no
23807 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23808 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23810 if test "x$lt_cv_dlopen_self" = xyes; then
23811 LDFLAGS="$LDFLAGS $link_static_flag"
23812 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23813 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23814 if test "${lt_cv_dlopen_self_static+set}" = set; then
23815 echo $ECHO_N "(cached) $ECHO_C" >&6
23817 if test "$cross_compiling" = yes; then :
23818 lt_cv_dlopen_self_static=cross
23820 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23821 lt_status=$lt_dlunknown
23822 cat > conftest.$ac_ext <<EOF
23823 #line 23823 "configure"
23824 #include "confdefs.h"
23833 # define LT_DLGLOBAL RTLD_GLOBAL
23836 # define LT_DLGLOBAL DL_GLOBAL
23838 # define LT_DLGLOBAL 0
23842 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23843 find out it does not work in some platform. */
23844 #ifndef LT_DLLAZY_OR_NOW
23846 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23849 # define LT_DLLAZY_OR_NOW DL_LAZY
23852 # define LT_DLLAZY_OR_NOW RTLD_NOW
23855 # define LT_DLLAZY_OR_NOW DL_NOW
23857 # define LT_DLLAZY_OR_NOW 0
23865 extern "C" void exit (int);
23868 void fnord() { int i=42;}
23871 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23872 int status = $lt_dlunknown;
23876 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23877 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23878 /* dlclose (self); */
23884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23885 (eval $ac_link) 2>&5
23887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23889 (./conftest; exit; ) 2>/dev/null
23891 case x$lt_status in
23892 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23893 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23894 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23897 # compilation failed
23898 lt_cv_dlopen_self_static=no
23905 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23906 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23909 CPPFLAGS="$save_CPPFLAGS"
23910 LDFLAGS="$save_LDFLAGS"
23915 case $lt_cv_dlopen_self in
23916 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23917 *) enable_dlopen_self=unknown ;;
23920 case $lt_cv_dlopen_self_static in
23921 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23922 *) enable_dlopen_self_static=unknown ;;
23927 # The else clause should only fire when bootstrapping the
23928 # libtool distribution, otherwise you forgot to ship ltmain.sh
23929 # with your package, and you will get complaints that there are
23930 # no rules to generate ltmain.sh.
23931 if test -f "$ltmain"; then
23932 # See if we are running on zsh, and set the options which allow our commands through
23933 # without removal of \ escapes.
23934 if test -n "${ZSH_VERSION+set}" ; then
23935 setopt NO_GLOB_SUBST
23937 # Now quote all the things that may contain metacharacters while being
23938 # careful not to overquote the AC_SUBSTed values. We take copies of the
23939 # variables and quote the copies for generation of the libtool script.
23940 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23942 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23943 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23944 deplibs_check_method reload_flag reload_cmds need_locks \
23945 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23946 lt_cv_sys_global_symbol_to_c_name_address \
23947 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23948 old_postinstall_cmds old_postuninstall_cmds \
23952 lt_prog_compiler_wl_GCJ \
23953 lt_prog_compiler_pic_GCJ \
23954 lt_prog_compiler_static_GCJ \
23955 lt_prog_compiler_no_builtin_flag_GCJ \
23956 export_dynamic_flag_spec_GCJ \
23957 thread_safe_flag_spec_GCJ \
23958 whole_archive_flag_spec_GCJ \
23959 enable_shared_with_static_runtimes_GCJ \
23960 old_archive_cmds_GCJ \
23961 old_archive_from_new_cmds_GCJ \
23962 predep_objects_GCJ \
23963 postdep_objects_GCJ \
23966 compiler_lib_search_path_GCJ \
23968 archive_expsym_cmds_GCJ \
23969 postinstall_cmds_GCJ \
23970 postuninstall_cmds_GCJ \
23971 old_archive_from_expsyms_cmds_GCJ \
23972 allow_undefined_flag_GCJ \
23973 no_undefined_flag_GCJ \
23974 export_symbols_cmds_GCJ \
23975 hardcode_libdir_flag_spec_GCJ \
23976 hardcode_libdir_flag_spec_ld_GCJ \
23977 hardcode_libdir_separator_GCJ \
23978 hardcode_automatic_GCJ \
23980 module_expsym_cmds_GCJ \
23981 lt_cv_prog_compiler_c_o_GCJ \
23982 exclude_expsyms_GCJ \
23983 include_expsyms_GCJ; do
23986 old_archive_cmds_GCJ | \
23987 old_archive_from_new_cmds_GCJ | \
23988 archive_cmds_GCJ | \
23989 archive_expsym_cmds_GCJ | \
23990 module_cmds_GCJ | \
23991 module_expsym_cmds_GCJ | \
23992 old_archive_from_expsyms_cmds_GCJ | \
23993 export_symbols_cmds_GCJ | \
23994 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23995 postinstall_cmds | postuninstall_cmds | \
23996 old_postinstall_cmds | old_postuninstall_cmds | \
23997 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23998 # Double-quote double-evaled strings.
23999 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24002 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24008 *'\$0 --fallback-echo"')
24009 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24015 cat <<__EOF__ >> "$cfgfile"
24016 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24018 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24020 # Shell to use when invoking shell scripts.
24023 # Whether or not to build shared libraries.
24024 build_libtool_libs=$enable_shared
24026 # Whether or not to build static libraries.
24027 build_old_libs=$enable_static
24029 # Whether or not to add -lc for building shared libraries.
24030 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24032 # Whether or not to disallow shared libs when runtime libs are static
24033 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24035 # Whether or not to optimize for fast installation.
24036 fast_install=$enable_fast_install
24039 host_alias=$host_alias
24042 # An echo program that does not interpret backslashes.
24047 AR_FLAGS=$lt_AR_FLAGS
24052 # A language-specific compiler.
24053 CC=$lt_compiler_GCJ
24055 # Is the compiler the GNU C compiler?
24061 # The linker used to build libraries.
24064 # Whether we need hard or soft links.
24067 # A BSD-compatible nm program.
24070 # A symbol stripping program
24073 # Used to examine libraries when file_magic_cmd begins "file"
24074 MAGIC_CMD=$MAGIC_CMD
24076 # Used on cygwin: DLL creation program.
24079 # Used on cygwin: object dumper.
24082 # Used on cygwin: assembler.
24085 # The name of the directory that contains temporary libtool files.
24088 # How to create reloadable object files.
24089 reload_flag=$lt_reload_flag
24090 reload_cmds=$lt_reload_cmds
24092 # How to pass a linker flag through the compiler.
24093 wl=$lt_lt_prog_compiler_wl_GCJ
24095 # Object file suffix (normally "o").
24096 objext="$ac_objext"
24098 # Old archive suffix (normally "a").
24101 # Shared library suffix (normally ".so").
24102 shrext_cmds='$shrext_cmds'
24104 # Executable file suffix (normally "").
24107 # Additional compiler flags for building library objects.
24108 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24111 # What is the maximum length of a command?
24112 max_cmd_len=$lt_cv_sys_max_cmd_len
24114 # Does compiler simultaneously support -c and -o options?
24115 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24117 # Must we lock files when doing compilation ?
24118 need_locks=$lt_need_locks
24120 # Do we need the lib prefix for modules?
24121 need_lib_prefix=$need_lib_prefix
24123 # Do we need a version for libraries?
24124 need_version=$need_version
24126 # Whether dlopen is supported.
24127 dlopen_support=$enable_dlopen
24129 # Whether dlopen of programs is supported.
24130 dlopen_self=$enable_dlopen_self
24132 # Whether dlopen of statically linked programs is supported.
24133 dlopen_self_static=$enable_dlopen_self_static
24135 # Compiler flag to prevent dynamic linking.
24136 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24138 # Compiler flag to turn off builtin functions.
24139 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24141 # Compiler flag to allow reflexive dlopens.
24142 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24144 # Compiler flag to generate shared objects directly from archives.
24145 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24147 # Compiler flag to generate thread-safe objects.
24148 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24150 # Library versioning type.
24151 version_type=$version_type
24153 # Format of library name prefix.
24154 libname_spec=$lt_libname_spec
24156 # List of archive names. First name is the real one, the rest are links.
24157 # The last name is the one that the linker finds with -lNAME.
24158 library_names_spec=$lt_library_names_spec
24160 # The coded name of the library, if different from the real name.
24161 soname_spec=$lt_soname_spec
24163 # Commands used to build and install an old-style archive.
24165 old_archive_cmds=$lt_old_archive_cmds_GCJ
24166 old_postinstall_cmds=$lt_old_postinstall_cmds
24167 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24169 # Create an old-style archive from a shared archive.
24170 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24172 # Create a temporary old-style archive to link instead of a shared archive.
24173 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24175 # Commands used to build and install a shared archive.
24176 archive_cmds=$lt_archive_cmds_GCJ
24177 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24178 postinstall_cmds=$lt_postinstall_cmds
24179 postuninstall_cmds=$lt_postuninstall_cmds
24181 # Commands used to build a loadable module (assumed same as above if empty)
24182 module_cmds=$lt_module_cmds_GCJ
24183 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24185 # Commands to strip libraries.
24186 old_striplib=$lt_old_striplib
24187 striplib=$lt_striplib
24189 # Dependencies to place before the objects being linked to create a
24191 predep_objects=$lt_predep_objects_GCJ
24193 # Dependencies to place after the objects being linked to create a
24195 postdep_objects=$lt_postdep_objects_GCJ
24197 # Dependencies to place before the objects being linked to create a
24199 predeps=$lt_predeps_GCJ
24201 # Dependencies to place after the objects being linked to create a
24203 postdeps=$lt_postdeps_GCJ
24205 # The library search path used internally by the compiler when linking
24206 # a shared library.
24207 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24209 # Method to check whether dependent libraries are shared objects.
24210 deplibs_check_method=$lt_deplibs_check_method
24212 # Command to use when deplibs_check_method == file_magic.
24213 file_magic_cmd=$lt_file_magic_cmd
24215 # Flag that allows shared libraries with undefined symbols to be built.
24216 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24218 # Flag that forces no undefined symbols.
24219 no_undefined_flag=$lt_no_undefined_flag_GCJ
24221 # Commands used to finish a libtool library installation in a directory.
24222 finish_cmds=$lt_finish_cmds
24224 # Same as above, but a single script fragment to be evaled but not shown.
24225 finish_eval=$lt_finish_eval
24227 # Take the output of nm and produce a listing of raw symbols and C names.
24228 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24230 # Transform the output of nm in a proper C declaration
24231 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24233 # Transform the output of nm in a C name address pair
24234 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24236 # This is the shared library runtime path variable.
24237 runpath_var=$runpath_var
24239 # This is the shared library path variable.
24240 shlibpath_var=$shlibpath_var
24242 # Is shlibpath searched before the hard-coded library search path?
24243 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24245 # How to hardcode a shared library path into an executable.
24246 hardcode_action=$hardcode_action_GCJ
24248 # Whether we should hardcode library paths into libraries.
24249 hardcode_into_libs=$hardcode_into_libs
24251 # Flag to hardcode \$libdir into a binary during linking.
24252 # This must work even if \$libdir does not exist.
24253 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24255 # If ld is used when linking, flag to hardcode \$libdir into
24256 # a binary during linking. This must work even if \$libdir does
24258 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24260 # Whether we need a single -rpath flag with a separated argument.
24261 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24263 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24264 # resulting binary.
24265 hardcode_direct=$hardcode_direct_GCJ
24267 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24268 # resulting binary.
24269 hardcode_minus_L=$hardcode_minus_L_GCJ
24271 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24272 # the resulting binary.
24273 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24275 # Set to yes if building a shared library automatically hardcodes DIR into the library
24276 # and all subsequent libraries and executables linked against it.
24277 hardcode_automatic=$hardcode_automatic_GCJ
24279 # Variables whose values should be saved in libtool wrapper scripts and
24280 # restored at relink time.
24281 variables_saved_for_relink="$variables_saved_for_relink"
24283 # Whether libtool must link a program against all its dependency libraries.
24284 link_all_deplibs=$link_all_deplibs_GCJ
24286 # Compile-time system search path for libraries
24287 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24289 # Run-time system search path for libraries
24290 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24292 # Fix the shell variable \$srcfile for the compiler.
24293 fix_srcfile_path="$fix_srcfile_path_GCJ"
24295 # Set to yes if exported symbols are required.
24296 always_export_symbols=$always_export_symbols_GCJ
24298 # The commands to list exported symbols.
24299 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24301 # The commands to extract the exported symbol list from a shared archive.
24302 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24304 # Symbols that should not be listed in the preloaded symbols.
24305 exclude_expsyms=$lt_exclude_expsyms_GCJ
24307 # Symbols that must always be exported.
24308 include_expsyms=$lt_include_expsyms_GCJ
24310 # ### END LIBTOOL TAG CONFIG: $tagname
24316 # If there is no Makefile yet, we rely on a make rule to execute
24317 # `config.status --recheck' to rerun these tests and create the
24318 # libtool script then.
24319 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24320 if test -f "$ltmain_in"; then
24321 test -f Makefile && make "$ltmain"
24327 ac_cpp='$CPP $CPPFLAGS'
24328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24341 ac_cpp='$CPP $CPPFLAGS'
24342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24347 # Source file extension for RC test sources.
24350 # Object file extension for compiled RC test sources.
24354 # Code to be used in simple compile tests
24355 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24357 # Code to be used in simple link tests
24358 lt_simple_link_test_code="$lt_simple_compile_test_code"
24360 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24362 # If no C compiler was specified, use CC.
24365 # Allow CC to be a program name with arguments.
24369 # Allow CC to be a program name with arguments.
24374 lt_cv_prog_compiler_c_o_RC=yes
24376 # The else clause should only fire when bootstrapping the
24377 # libtool distribution, otherwise you forgot to ship ltmain.sh
24378 # with your package, and you will get complaints that there are
24379 # no rules to generate ltmain.sh.
24380 if test -f "$ltmain"; then
24381 # See if we are running on zsh, and set the options which allow our commands through
24382 # without removal of \ escapes.
24383 if test -n "${ZSH_VERSION+set}" ; then
24384 setopt NO_GLOB_SUBST
24386 # Now quote all the things that may contain metacharacters while being
24387 # careful not to overquote the AC_SUBSTed values. We take copies of the
24388 # variables and quote the copies for generation of the libtool script.
24389 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24391 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24392 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24393 deplibs_check_method reload_flag reload_cmds need_locks \
24394 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24395 lt_cv_sys_global_symbol_to_c_name_address \
24396 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24397 old_postinstall_cmds old_postuninstall_cmds \
24401 lt_prog_compiler_wl_RC \
24402 lt_prog_compiler_pic_RC \
24403 lt_prog_compiler_static_RC \
24404 lt_prog_compiler_no_builtin_flag_RC \
24405 export_dynamic_flag_spec_RC \
24406 thread_safe_flag_spec_RC \
24407 whole_archive_flag_spec_RC \
24408 enable_shared_with_static_runtimes_RC \
24409 old_archive_cmds_RC \
24410 old_archive_from_new_cmds_RC \
24411 predep_objects_RC \
24412 postdep_objects_RC \
24415 compiler_lib_search_path_RC \
24417 archive_expsym_cmds_RC \
24418 postinstall_cmds_RC \
24419 postuninstall_cmds_RC \
24420 old_archive_from_expsyms_cmds_RC \
24421 allow_undefined_flag_RC \
24422 no_undefined_flag_RC \
24423 export_symbols_cmds_RC \
24424 hardcode_libdir_flag_spec_RC \
24425 hardcode_libdir_flag_spec_ld_RC \
24426 hardcode_libdir_separator_RC \
24427 hardcode_automatic_RC \
24429 module_expsym_cmds_RC \
24430 lt_cv_prog_compiler_c_o_RC \
24431 exclude_expsyms_RC \
24432 include_expsyms_RC; do
24435 old_archive_cmds_RC | \
24436 old_archive_from_new_cmds_RC | \
24437 archive_cmds_RC | \
24438 archive_expsym_cmds_RC | \
24440 module_expsym_cmds_RC | \
24441 old_archive_from_expsyms_cmds_RC | \
24442 export_symbols_cmds_RC | \
24443 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24444 postinstall_cmds | postuninstall_cmds | \
24445 old_postinstall_cmds | old_postuninstall_cmds | \
24446 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24447 # Double-quote double-evaled strings.
24448 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24451 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24457 *'\$0 --fallback-echo"')
24458 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24464 cat <<__EOF__ >> "$cfgfile"
24465 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24467 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24469 # Shell to use when invoking shell scripts.
24472 # Whether or not to build shared libraries.
24473 build_libtool_libs=$enable_shared
24475 # Whether or not to build static libraries.
24476 build_old_libs=$enable_static
24478 # Whether or not to add -lc for building shared libraries.
24479 build_libtool_need_lc=$archive_cmds_need_lc_RC
24481 # Whether or not to disallow shared libs when runtime libs are static
24482 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24484 # Whether or not to optimize for fast installation.
24485 fast_install=$enable_fast_install
24488 host_alias=$host_alias
24491 # An echo program that does not interpret backslashes.
24496 AR_FLAGS=$lt_AR_FLAGS
24501 # A language-specific compiler.
24504 # Is the compiler the GNU C compiler?
24510 # The linker used to build libraries.
24513 # Whether we need hard or soft links.
24516 # A BSD-compatible nm program.
24519 # A symbol stripping program
24522 # Used to examine libraries when file_magic_cmd begins "file"
24523 MAGIC_CMD=$MAGIC_CMD
24525 # Used on cygwin: DLL creation program.
24528 # Used on cygwin: object dumper.
24531 # Used on cygwin: assembler.
24534 # The name of the directory that contains temporary libtool files.
24537 # How to create reloadable object files.
24538 reload_flag=$lt_reload_flag
24539 reload_cmds=$lt_reload_cmds
24541 # How to pass a linker flag through the compiler.
24542 wl=$lt_lt_prog_compiler_wl_RC
24544 # Object file suffix (normally "o").
24545 objext="$ac_objext"
24547 # Old archive suffix (normally "a").
24550 # Shared library suffix (normally ".so").
24551 shrext_cmds='$shrext_cmds'
24553 # Executable file suffix (normally "").
24556 # Additional compiler flags for building library objects.
24557 pic_flag=$lt_lt_prog_compiler_pic_RC
24560 # What is the maximum length of a command?
24561 max_cmd_len=$lt_cv_sys_max_cmd_len
24563 # Does compiler simultaneously support -c and -o options?
24564 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24566 # Must we lock files when doing compilation ?
24567 need_locks=$lt_need_locks
24569 # Do we need the lib prefix for modules?
24570 need_lib_prefix=$need_lib_prefix
24572 # Do we need a version for libraries?
24573 need_version=$need_version
24575 # Whether dlopen is supported.
24576 dlopen_support=$enable_dlopen
24578 # Whether dlopen of programs is supported.
24579 dlopen_self=$enable_dlopen_self
24581 # Whether dlopen of statically linked programs is supported.
24582 dlopen_self_static=$enable_dlopen_self_static
24584 # Compiler flag to prevent dynamic linking.
24585 link_static_flag=$lt_lt_prog_compiler_static_RC
24587 # Compiler flag to turn off builtin functions.
24588 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24590 # Compiler flag to allow reflexive dlopens.
24591 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24593 # Compiler flag to generate shared objects directly from archives.
24594 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24596 # Compiler flag to generate thread-safe objects.
24597 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24599 # Library versioning type.
24600 version_type=$version_type
24602 # Format of library name prefix.
24603 libname_spec=$lt_libname_spec
24605 # List of archive names. First name is the real one, the rest are links.
24606 # The last name is the one that the linker finds with -lNAME.
24607 library_names_spec=$lt_library_names_spec
24609 # The coded name of the library, if different from the real name.
24610 soname_spec=$lt_soname_spec
24612 # Commands used to build and install an old-style archive.
24614 old_archive_cmds=$lt_old_archive_cmds_RC
24615 old_postinstall_cmds=$lt_old_postinstall_cmds
24616 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24618 # Create an old-style archive from a shared archive.
24619 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24621 # Create a temporary old-style archive to link instead of a shared archive.
24622 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24624 # Commands used to build and install a shared archive.
24625 archive_cmds=$lt_archive_cmds_RC
24626 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24627 postinstall_cmds=$lt_postinstall_cmds
24628 postuninstall_cmds=$lt_postuninstall_cmds
24630 # Commands used to build a loadable module (assumed same as above if empty)
24631 module_cmds=$lt_module_cmds_RC
24632 module_expsym_cmds=$lt_module_expsym_cmds_RC
24634 # Commands to strip libraries.
24635 old_striplib=$lt_old_striplib
24636 striplib=$lt_striplib
24638 # Dependencies to place before the objects being linked to create a
24640 predep_objects=$lt_predep_objects_RC
24642 # Dependencies to place after the objects being linked to create a
24644 postdep_objects=$lt_postdep_objects_RC
24646 # Dependencies to place before the objects being linked to create a
24648 predeps=$lt_predeps_RC
24650 # Dependencies to place after the objects being linked to create a
24652 postdeps=$lt_postdeps_RC
24654 # The library search path used internally by the compiler when linking
24655 # a shared library.
24656 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24658 # Method to check whether dependent libraries are shared objects.
24659 deplibs_check_method=$lt_deplibs_check_method
24661 # Command to use when deplibs_check_method == file_magic.
24662 file_magic_cmd=$lt_file_magic_cmd
24664 # Flag that allows shared libraries with undefined symbols to be built.
24665 allow_undefined_flag=$lt_allow_undefined_flag_RC
24667 # Flag that forces no undefined symbols.
24668 no_undefined_flag=$lt_no_undefined_flag_RC
24670 # Commands used to finish a libtool library installation in a directory.
24671 finish_cmds=$lt_finish_cmds
24673 # Same as above, but a single script fragment to be evaled but not shown.
24674 finish_eval=$lt_finish_eval
24676 # Take the output of nm and produce a listing of raw symbols and C names.
24677 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24679 # Transform the output of nm in a proper C declaration
24680 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24682 # Transform the output of nm in a C name address pair
24683 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24685 # This is the shared library runtime path variable.
24686 runpath_var=$runpath_var
24688 # This is the shared library path variable.
24689 shlibpath_var=$shlibpath_var
24691 # Is shlibpath searched before the hard-coded library search path?
24692 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24694 # How to hardcode a shared library path into an executable.
24695 hardcode_action=$hardcode_action_RC
24697 # Whether we should hardcode library paths into libraries.
24698 hardcode_into_libs=$hardcode_into_libs
24700 # Flag to hardcode \$libdir into a binary during linking.
24701 # This must work even if \$libdir does not exist.
24702 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24704 # If ld is used when linking, flag to hardcode \$libdir into
24705 # a binary during linking. This must work even if \$libdir does
24707 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24709 # Whether we need a single -rpath flag with a separated argument.
24710 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24712 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24713 # resulting binary.
24714 hardcode_direct=$hardcode_direct_RC
24716 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24717 # resulting binary.
24718 hardcode_minus_L=$hardcode_minus_L_RC
24720 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24721 # the resulting binary.
24722 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24724 # Set to yes if building a shared library automatically hardcodes DIR into the library
24725 # and all subsequent libraries and executables linked against it.
24726 hardcode_automatic=$hardcode_automatic_RC
24728 # Variables whose values should be saved in libtool wrapper scripts and
24729 # restored at relink time.
24730 variables_saved_for_relink="$variables_saved_for_relink"
24732 # Whether libtool must link a program against all its dependency libraries.
24733 link_all_deplibs=$link_all_deplibs_RC
24735 # Compile-time system search path for libraries
24736 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24738 # Run-time system search path for libraries
24739 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24741 # Fix the shell variable \$srcfile for the compiler.
24742 fix_srcfile_path="$fix_srcfile_path_RC"
24744 # Set to yes if exported symbols are required.
24745 always_export_symbols=$always_export_symbols_RC
24747 # The commands to list exported symbols.
24748 export_symbols_cmds=$lt_export_symbols_cmds_RC
24750 # The commands to extract the exported symbol list from a shared archive.
24751 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24753 # Symbols that should not be listed in the preloaded symbols.
24754 exclude_expsyms=$lt_exclude_expsyms_RC
24756 # Symbols that must always be exported.
24757 include_expsyms=$lt_include_expsyms_RC
24759 # ### END LIBTOOL TAG CONFIG: $tagname
24765 # If there is no Makefile yet, we rely on a make rule to execute
24766 # `config.status --recheck' to rerun these tests and create the
24767 # libtool script then.
24768 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24769 if test -f "$ltmain_in"; then
24770 test -f Makefile && make "$ltmain"
24776 ac_cpp='$CPP $CPPFLAGS'
24777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24786 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24787 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24788 { (exit 1); exit 1; }; }
24792 # Append the new tag name to the list of available tags.
24793 if test -n "$tagname" ; then
24794 available_tags="$available_tags $tagname"
24800 # Now substitute the updated list of available tags.
24801 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24802 mv "${ofile}T" "$ofile"
24806 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24807 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24808 { (exit 1); exit 1; }; }
24814 # This can be used to rebuild libtool when needed
24815 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24817 # Always use our own libtool.
24818 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24820 # Prevent multiple expansion
24842 if test "$lt_cv_dlopen_self" = "yes" ; then
24844 cat >>confdefs.h <<\_ACEOF
24845 #define CAN_DLOPEN_SELF 1
24850 etags_version=`$ETAGS --version 2>&1`
24851 case "$etags_version" in
24852 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24853 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24854 *) ETAGSFLAGS="" ;;
24856 ETAGSFLAGS=$ETAGSFLAGS
24859 if test "$WITH_LLVMGCCDIR" = "default" ; then
24860 LLVMGCC="llvm-gcc${EXEEXT}"
24861 LLVMGXX="llvm-g++${EXEEXT}"
24862 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24863 set dummy $LLVMGCC; ac_word=$2
24864 echo "$as_me:$LINENO: checking for $ac_word" >&5
24865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24866 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24867 echo $ECHO_N "(cached) $ECHO_C" >&6
24871 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24875 for as_dir in $PATH
24878 test -z "$as_dir" && as_dir=.
24879 for ac_exec_ext in '' $ac_executable_extensions; do
24880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24881 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24891 LLVMGCC=$ac_cv_path_LLVMGCC
24893 if test -n "$LLVMGCC"; then
24894 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24895 echo "${ECHO_T}$LLVMGCC" >&6
24897 echo "$as_me:$LINENO: result: no" >&5
24898 echo "${ECHO_T}no" >&6
24901 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24902 set dummy $LLVMGXX; ac_word=$2
24903 echo "$as_me:$LINENO: checking for $ac_word" >&5
24904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24905 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24906 echo $ECHO_N "(cached) $ECHO_C" >&6
24910 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24914 for as_dir in $PATH
24917 test -z "$as_dir" && as_dir=.
24918 for ac_exec_ext in '' $ac_executable_extensions; do
24919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24920 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24930 LLVMGXX=$ac_cv_path_LLVMGXX
24932 if test -n "$LLVMGXX"; then
24933 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24934 echo "${ECHO_T}$LLVMGXX" >&6
24936 echo "$as_me:$LINENO: result: no" >&5
24937 echo "${ECHO_T}no" >&6
24941 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24942 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24949 echo "$as_me:$LINENO: checking tool compatibility" >&5
24950 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24963 if test "$GCC" != "yes" && test "$ICC" != "yes"
24965 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24966 echo "$as_me: error: gcc|icc required but not found" >&2;}
24967 { (exit 1); exit 1; }; }
24970 if test "$GXX" != "yes" && test "$IXX" != "yes"
24972 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24973 echo "$as_me: error: g++|icc required but not found" >&2;}
24974 { (exit 1); exit 1; }; }
24977 if test "$GCC" = "yes"
24979 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
24980 if test "$gccmajor" -lt "3"
24982 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24983 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24984 { (exit 1); exit 1; }; }
24988 if test -z "$llvm_cv_gnu_make_command"
24990 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24991 echo "$as_me: error: GNU Make required but not found" >&2;}
24992 { (exit 1); exit 1; }; }
24995 echo "$as_me:$LINENO: result: ok" >&5
24996 echo "${ECHO_T}ok" >&6
25000 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25001 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25002 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25003 echo $ECHO_N "(cached) $ECHO_C" >&6
25005 ac_check_lib_save_LIBS=$LIBS
25007 cat >conftest.$ac_ext <<_ACEOF
25010 cat confdefs.h >>conftest.$ac_ext
25011 cat >>conftest.$ac_ext <<_ACEOF
25012 /* end confdefs.h. */
25014 /* Override any gcc2 internal prototype to avoid an error. */
25018 /* We use char because int might match the return type of a gcc2
25019 builtin and then its argument prototype would still apply. */
25029 rm -f conftest.$ac_objext conftest$ac_exeext
25030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25031 (eval $ac_link) 2>conftest.er1
25033 grep -v '^ *+' conftest.er1 >conftest.err
25035 cat conftest.err >&5
25036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037 (exit $ac_status); } &&
25038 { ac_try='test -z "$ac_c_werror_flag"
25039 || test ! -s conftest.err'
25040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25041 (eval $ac_try) 2>&5
25043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044 (exit $ac_status); }; } &&
25045 { ac_try='test -s conftest$ac_exeext'
25046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25047 (eval $ac_try) 2>&5
25049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050 (exit $ac_status); }; }; then
25051 ac_cv_lib_elf_elf_begin=yes
25053 echo "$as_me: failed program was:" >&5
25054 sed 's/^/| /' conftest.$ac_ext >&5
25056 ac_cv_lib_elf_elf_begin=no
25058 rm -f conftest.err conftest.$ac_objext \
25059 conftest$ac_exeext conftest.$ac_ext
25060 LIBS=$ac_check_lib_save_LIBS
25062 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25063 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25064 if test $ac_cv_lib_elf_elf_begin = yes; then
25065 cat >>confdefs.h <<_ACEOF
25066 #define HAVE_LIBELF 1
25074 echo "$as_me:$LINENO: checking for sin in -lm" >&5
25075 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25076 if test "${ac_cv_lib_m_sin+set}" = set; then
25077 echo $ECHO_N "(cached) $ECHO_C" >&6
25079 ac_check_lib_save_LIBS=$LIBS
25081 cat >conftest.$ac_ext <<_ACEOF
25084 cat confdefs.h >>conftest.$ac_ext
25085 cat >>conftest.$ac_ext <<_ACEOF
25086 /* end confdefs.h. */
25088 /* Override any gcc2 internal prototype to avoid an error. */
25092 /* We use char because int might match the return type of a gcc2
25093 builtin and then its argument prototype would still apply. */
25103 rm -f conftest.$ac_objext conftest$ac_exeext
25104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25105 (eval $ac_link) 2>conftest.er1
25107 grep -v '^ *+' conftest.er1 >conftest.err
25109 cat conftest.err >&5
25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); } &&
25112 { ac_try='test -z "$ac_c_werror_flag"
25113 || test ! -s conftest.err'
25114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25115 (eval $ac_try) 2>&5
25117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118 (exit $ac_status); }; } &&
25119 { ac_try='test -s conftest$ac_exeext'
25120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25121 (eval $ac_try) 2>&5
25123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124 (exit $ac_status); }; }; then
25125 ac_cv_lib_m_sin=yes
25127 echo "$as_me: failed program was:" >&5
25128 sed 's/^/| /' conftest.$ac_ext >&5
25132 rm -f conftest.err conftest.$ac_objext \
25133 conftest$ac_exeext conftest.$ac_ext
25134 LIBS=$ac_check_lib_save_LIBS
25136 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25137 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25138 if test $ac_cv_lib_m_sin = yes; then
25139 cat >>confdefs.h <<_ACEOF
25140 #define HAVE_LIBM 1
25148 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25149 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25150 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25151 echo $ECHO_N "(cached) $ECHO_C" >&6
25153 ac_func_search_save_LIBS=$LIBS
25154 ac_cv_search_lt_dlopen=no
25155 cat >conftest.$ac_ext <<_ACEOF
25158 cat confdefs.h >>conftest.$ac_ext
25159 cat >>conftest.$ac_ext <<_ACEOF
25160 /* end confdefs.h. */
25162 /* Override any gcc2 internal prototype to avoid an error. */
25166 /* We use char because int might match the return type of a gcc2
25167 builtin and then its argument prototype would still apply. */
25177 rm -f conftest.$ac_objext conftest$ac_exeext
25178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25179 (eval $ac_link) 2>conftest.er1
25181 grep -v '^ *+' conftest.er1 >conftest.err
25183 cat conftest.err >&5
25184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185 (exit $ac_status); } &&
25186 { ac_try='test -z "$ac_c_werror_flag"
25187 || test ! -s conftest.err'
25188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25189 (eval $ac_try) 2>&5
25191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192 (exit $ac_status); }; } &&
25193 { ac_try='test -s conftest$ac_exeext'
25194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25195 (eval $ac_try) 2>&5
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }; }; then
25199 ac_cv_search_lt_dlopen="none required"
25201 echo "$as_me: failed program was:" >&5
25202 sed 's/^/| /' conftest.$ac_ext >&5
25205 rm -f conftest.err conftest.$ac_objext \
25206 conftest$ac_exeext conftest.$ac_ext
25207 if test "$ac_cv_search_lt_dlopen" = no; then
25208 for ac_lib in ltdl; do
25209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25210 cat >conftest.$ac_ext <<_ACEOF
25213 cat confdefs.h >>conftest.$ac_ext
25214 cat >>conftest.$ac_ext <<_ACEOF
25215 /* end confdefs.h. */
25217 /* Override any gcc2 internal prototype to avoid an error. */
25221 /* We use char because int might match the return type of a gcc2
25222 builtin and then its argument prototype would still apply. */
25232 rm -f conftest.$ac_objext conftest$ac_exeext
25233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25234 (eval $ac_link) 2>conftest.er1
25236 grep -v '^ *+' conftest.er1 >conftest.err
25238 cat conftest.err >&5
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); } &&
25241 { ac_try='test -z "$ac_c_werror_flag"
25242 || test ! -s conftest.err'
25243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25244 (eval $ac_try) 2>&5
25246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247 (exit $ac_status); }; } &&
25248 { ac_try='test -s conftest$ac_exeext'
25249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25250 (eval $ac_try) 2>&5
25252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25253 (exit $ac_status); }; }; then
25254 ac_cv_search_lt_dlopen="-l$ac_lib"
25257 echo "$as_me: failed program was:" >&5
25258 sed 's/^/| /' conftest.$ac_ext >&5
25261 rm -f conftest.err conftest.$ac_objext \
25262 conftest$ac_exeext conftest.$ac_ext
25265 LIBS=$ac_func_search_save_LIBS
25267 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25268 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25269 if test "$ac_cv_search_lt_dlopen" != no; then
25270 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25272 cat >>confdefs.h <<\_ACEOF
25273 #define HAVE_LT_DLOPEN 1
25277 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25278 not be available" >&5
25279 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25280 not be available" >&2;}
25284 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25285 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25286 if test "${ac_cv_search_dlopen+set}" = set; then
25287 echo $ECHO_N "(cached) $ECHO_C" >&6
25289 ac_func_search_save_LIBS=$LIBS
25290 ac_cv_search_dlopen=no
25291 cat >conftest.$ac_ext <<_ACEOF
25294 cat confdefs.h >>conftest.$ac_ext
25295 cat >>conftest.$ac_ext <<_ACEOF
25296 /* end confdefs.h. */
25298 /* Override any gcc2 internal prototype to avoid an error. */
25302 /* We use char because int might match the return type of a gcc2
25303 builtin and then its argument prototype would still apply. */
25313 rm -f conftest.$ac_objext conftest$ac_exeext
25314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25315 (eval $ac_link) 2>conftest.er1
25317 grep -v '^ *+' conftest.er1 >conftest.err
25319 cat conftest.err >&5
25320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321 (exit $ac_status); } &&
25322 { ac_try='test -z "$ac_c_werror_flag"
25323 || test ! -s conftest.err'
25324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25325 (eval $ac_try) 2>&5
25327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); }; } &&
25329 { ac_try='test -s conftest$ac_exeext'
25330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25331 (eval $ac_try) 2>&5
25333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334 (exit $ac_status); }; }; then
25335 ac_cv_search_dlopen="none required"
25337 echo "$as_me: failed program was:" >&5
25338 sed 's/^/| /' conftest.$ac_ext >&5
25341 rm -f conftest.err conftest.$ac_objext \
25342 conftest$ac_exeext conftest.$ac_ext
25343 if test "$ac_cv_search_dlopen" = no; then
25344 for ac_lib in dl; do
25345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25346 cat >conftest.$ac_ext <<_ACEOF
25349 cat confdefs.h >>conftest.$ac_ext
25350 cat >>conftest.$ac_ext <<_ACEOF
25351 /* end confdefs.h. */
25353 /* Override any gcc2 internal prototype to avoid an error. */
25357 /* We use char because int might match the return type of a gcc2
25358 builtin and then its argument prototype would still apply. */
25368 rm -f conftest.$ac_objext conftest$ac_exeext
25369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25370 (eval $ac_link) 2>conftest.er1
25372 grep -v '^ *+' conftest.er1 >conftest.err
25374 cat conftest.err >&5
25375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); } &&
25377 { ac_try='test -z "$ac_c_werror_flag"
25378 || test ! -s conftest.err'
25379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25380 (eval $ac_try) 2>&5
25382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383 (exit $ac_status); }; } &&
25384 { ac_try='test -s conftest$ac_exeext'
25385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25386 (eval $ac_try) 2>&5
25388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389 (exit $ac_status); }; }; then
25390 ac_cv_search_dlopen="-l$ac_lib"
25393 echo "$as_me: failed program was:" >&5
25394 sed 's/^/| /' conftest.$ac_ext >&5
25397 rm -f conftest.err conftest.$ac_objext \
25398 conftest$ac_exeext conftest.$ac_ext
25401 LIBS=$ac_func_search_save_LIBS
25403 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25404 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25405 if test "$ac_cv_search_dlopen" != no; then
25406 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25408 cat >>confdefs.h <<\_ACEOF
25409 #define HAVE_DLOPEN 1
25413 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25414 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25418 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25419 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25420 if test "${ac_cv_search_mallinfo+set}" = set; then
25421 echo $ECHO_N "(cached) $ECHO_C" >&6
25423 ac_func_search_save_LIBS=$LIBS
25424 ac_cv_search_mallinfo=no
25425 cat >conftest.$ac_ext <<_ACEOF
25428 cat confdefs.h >>conftest.$ac_ext
25429 cat >>conftest.$ac_ext <<_ACEOF
25430 /* end confdefs.h. */
25432 /* Override any gcc2 internal prototype to avoid an error. */
25436 /* We use char because int might match the return type of a gcc2
25437 builtin and then its argument prototype would still apply. */
25447 rm -f conftest.$ac_objext conftest$ac_exeext
25448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25449 (eval $ac_link) 2>conftest.er1
25451 grep -v '^ *+' conftest.er1 >conftest.err
25453 cat conftest.err >&5
25454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); } &&
25456 { ac_try='test -z "$ac_c_werror_flag"
25457 || test ! -s conftest.err'
25458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25459 (eval $ac_try) 2>&5
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); }; } &&
25463 { ac_try='test -s conftest$ac_exeext'
25464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25465 (eval $ac_try) 2>&5
25467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468 (exit $ac_status); }; }; then
25469 ac_cv_search_mallinfo="none required"
25471 echo "$as_me: failed program was:" >&5
25472 sed 's/^/| /' conftest.$ac_ext >&5
25475 rm -f conftest.err conftest.$ac_objext \
25476 conftest$ac_exeext conftest.$ac_ext
25477 if test "$ac_cv_search_mallinfo" = no; then
25478 for ac_lib in malloc; do
25479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25480 cat >conftest.$ac_ext <<_ACEOF
25483 cat confdefs.h >>conftest.$ac_ext
25484 cat >>conftest.$ac_ext <<_ACEOF
25485 /* end confdefs.h. */
25487 /* Override any gcc2 internal prototype to avoid an error. */
25491 /* We use char because int might match the return type of a gcc2
25492 builtin and then its argument prototype would still apply. */
25502 rm -f conftest.$ac_objext conftest$ac_exeext
25503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25504 (eval $ac_link) 2>conftest.er1
25506 grep -v '^ *+' conftest.er1 >conftest.err
25508 cat conftest.err >&5
25509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510 (exit $ac_status); } &&
25511 { ac_try='test -z "$ac_c_werror_flag"
25512 || test ! -s conftest.err'
25513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25514 (eval $ac_try) 2>&5
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); }; } &&
25518 { ac_try='test -s conftest$ac_exeext'
25519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25520 (eval $ac_try) 2>&5
25522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523 (exit $ac_status); }; }; then
25524 ac_cv_search_mallinfo="-l$ac_lib"
25527 echo "$as_me: failed program was:" >&5
25528 sed 's/^/| /' conftest.$ac_ext >&5
25531 rm -f conftest.err conftest.$ac_objext \
25532 conftest$ac_exeext conftest.$ac_ext
25535 LIBS=$ac_func_search_save_LIBS
25537 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25538 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25539 if test "$ac_cv_search_mallinfo" != no; then
25540 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25542 cat >>confdefs.h <<\_ACEOF
25543 #define HAVE_MALLINFO 1
25549 if test "$ENABLE_THREADS" -eq 1 ; then
25551 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25552 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25553 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25554 echo $ECHO_N "(cached) $ECHO_C" >&6
25556 ac_check_lib_save_LIBS=$LIBS
25557 LIBS="-lpthread $LIBS"
25558 cat >conftest.$ac_ext <<_ACEOF
25561 cat confdefs.h >>conftest.$ac_ext
25562 cat >>conftest.$ac_ext <<_ACEOF
25563 /* end confdefs.h. */
25565 /* Override any gcc2 internal prototype to avoid an error. */
25569 /* We use char because int might match the return type of a gcc2
25570 builtin and then its argument prototype would still apply. */
25571 char pthread_mutex_init ();
25575 pthread_mutex_init ();
25580 rm -f conftest.$ac_objext conftest$ac_exeext
25581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25582 (eval $ac_link) 2>conftest.er1
25584 grep -v '^ *+' conftest.er1 >conftest.err
25586 cat conftest.err >&5
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); } &&
25589 { ac_try='test -z "$ac_c_werror_flag"
25590 || test ! -s conftest.err'
25591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25592 (eval $ac_try) 2>&5
25594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595 (exit $ac_status); }; } &&
25596 { ac_try='test -s conftest$ac_exeext'
25597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25598 (eval $ac_try) 2>&5
25600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601 (exit $ac_status); }; }; then
25602 ac_cv_lib_pthread_pthread_mutex_init=yes
25604 echo "$as_me: failed program was:" >&5
25605 sed 's/^/| /' conftest.$ac_ext >&5
25607 ac_cv_lib_pthread_pthread_mutex_init=no
25609 rm -f conftest.err conftest.$ac_objext \
25610 conftest$ac_exeext conftest.$ac_ext
25611 LIBS=$ac_check_lib_save_LIBS
25613 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25614 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25615 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25616 cat >>confdefs.h <<_ACEOF
25617 #define HAVE_LIBPTHREAD 1
25620 LIBS="-lpthread $LIBS"
25624 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25625 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25626 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25627 echo $ECHO_N "(cached) $ECHO_C" >&6
25629 ac_func_search_save_LIBS=$LIBS
25630 ac_cv_search_pthread_mutex_lock=no
25631 cat >conftest.$ac_ext <<_ACEOF
25634 cat confdefs.h >>conftest.$ac_ext
25635 cat >>conftest.$ac_ext <<_ACEOF
25636 /* end confdefs.h. */
25638 /* Override any gcc2 internal prototype to avoid an error. */
25642 /* We use char because int might match the return type of a gcc2
25643 builtin and then its argument prototype would still apply. */
25644 char pthread_mutex_lock ();
25648 pthread_mutex_lock ();
25653 rm -f conftest.$ac_objext conftest$ac_exeext
25654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25655 (eval $ac_link) 2>conftest.er1
25657 grep -v '^ *+' conftest.er1 >conftest.err
25659 cat conftest.err >&5
25660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25661 (exit $ac_status); } &&
25662 { ac_try='test -z "$ac_c_werror_flag"
25663 || test ! -s conftest.err'
25664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25665 (eval $ac_try) 2>&5
25667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668 (exit $ac_status); }; } &&
25669 { ac_try='test -s conftest$ac_exeext'
25670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25671 (eval $ac_try) 2>&5
25673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674 (exit $ac_status); }; }; then
25675 ac_cv_search_pthread_mutex_lock="none required"
25677 echo "$as_me: failed program was:" >&5
25678 sed 's/^/| /' conftest.$ac_ext >&5
25681 rm -f conftest.err conftest.$ac_objext \
25682 conftest$ac_exeext conftest.$ac_ext
25683 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25684 for ac_lib in pthread; do
25685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25686 cat >conftest.$ac_ext <<_ACEOF
25689 cat confdefs.h >>conftest.$ac_ext
25690 cat >>conftest.$ac_ext <<_ACEOF
25691 /* end confdefs.h. */
25693 /* Override any gcc2 internal prototype to avoid an error. */
25697 /* We use char because int might match the return type of a gcc2
25698 builtin and then its argument prototype would still apply. */
25699 char pthread_mutex_lock ();
25703 pthread_mutex_lock ();
25708 rm -f conftest.$ac_objext conftest$ac_exeext
25709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25710 (eval $ac_link) 2>conftest.er1
25712 grep -v '^ *+' conftest.er1 >conftest.err
25714 cat conftest.err >&5
25715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716 (exit $ac_status); } &&
25717 { ac_try='test -z "$ac_c_werror_flag"
25718 || test ! -s conftest.err'
25719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25720 (eval $ac_try) 2>&5
25722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723 (exit $ac_status); }; } &&
25724 { ac_try='test -s conftest$ac_exeext'
25725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25726 (eval $ac_try) 2>&5
25728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729 (exit $ac_status); }; }; then
25730 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25733 echo "$as_me: failed program was:" >&5
25734 sed 's/^/| /' conftest.$ac_ext >&5
25737 rm -f conftest.err conftest.$ac_objext \
25738 conftest$ac_exeext conftest.$ac_ext
25741 LIBS=$ac_func_search_save_LIBS
25743 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25744 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25745 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25746 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25748 cat >>confdefs.h <<\_ACEOF
25749 #define HAVE_PTHREAD_MUTEX_LOCK 1
25762 ac_header_dirent=no
25763 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25764 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25765 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25766 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25768 echo $ECHO_N "(cached) $ECHO_C" >&6
25770 cat >conftest.$ac_ext <<_ACEOF
25773 cat confdefs.h >>conftest.$ac_ext
25774 cat >>conftest.$ac_ext <<_ACEOF
25775 /* end confdefs.h. */
25776 #include <sys/types.h>
25788 rm -f conftest.$ac_objext
25789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25790 (eval $ac_compile) 2>conftest.er1
25792 grep -v '^ *+' conftest.er1 >conftest.err
25794 cat conftest.err >&5
25795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796 (exit $ac_status); } &&
25797 { ac_try='test -z "$ac_c_werror_flag"
25798 || test ! -s conftest.err'
25799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25800 (eval $ac_try) 2>&5
25802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803 (exit $ac_status); }; } &&
25804 { ac_try='test -s conftest.$ac_objext'
25805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25806 (eval $ac_try) 2>&5
25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809 (exit $ac_status); }; }; then
25810 eval "$as_ac_Header=yes"
25812 echo "$as_me: failed program was:" >&5
25813 sed 's/^/| /' conftest.$ac_ext >&5
25815 eval "$as_ac_Header=no"
25817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25822 cat >>confdefs.h <<_ACEOF
25823 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25826 ac_header_dirent=$ac_hdr; break
25830 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25831 if test $ac_header_dirent = dirent.h; then
25832 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25833 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25834 if test "${ac_cv_search_opendir+set}" = set; then
25835 echo $ECHO_N "(cached) $ECHO_C" >&6
25837 ac_func_search_save_LIBS=$LIBS
25838 ac_cv_search_opendir=no
25839 cat >conftest.$ac_ext <<_ACEOF
25842 cat confdefs.h >>conftest.$ac_ext
25843 cat >>conftest.$ac_ext <<_ACEOF
25844 /* end confdefs.h. */
25846 /* Override any gcc2 internal prototype to avoid an error. */
25850 /* We use char because int might match the return type of a gcc2
25851 builtin and then its argument prototype would still apply. */
25861 rm -f conftest.$ac_objext conftest$ac_exeext
25862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25863 (eval $ac_link) 2>conftest.er1
25865 grep -v '^ *+' conftest.er1 >conftest.err
25867 cat conftest.err >&5
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); } &&
25870 { ac_try='test -z "$ac_c_werror_flag"
25871 || test ! -s conftest.err'
25872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25873 (eval $ac_try) 2>&5
25875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25876 (exit $ac_status); }; } &&
25877 { ac_try='test -s conftest$ac_exeext'
25878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25879 (eval $ac_try) 2>&5
25881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); }; }; then
25883 ac_cv_search_opendir="none required"
25885 echo "$as_me: failed program was:" >&5
25886 sed 's/^/| /' conftest.$ac_ext >&5
25889 rm -f conftest.err conftest.$ac_objext \
25890 conftest$ac_exeext conftest.$ac_ext
25891 if test "$ac_cv_search_opendir" = no; then
25892 for ac_lib in dir; do
25893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25894 cat >conftest.$ac_ext <<_ACEOF
25897 cat confdefs.h >>conftest.$ac_ext
25898 cat >>conftest.$ac_ext <<_ACEOF
25899 /* end confdefs.h. */
25901 /* Override any gcc2 internal prototype to avoid an error. */
25905 /* We use char because int might match the return type of a gcc2
25906 builtin and then its argument prototype would still apply. */
25916 rm -f conftest.$ac_objext conftest$ac_exeext
25917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25918 (eval $ac_link) 2>conftest.er1
25920 grep -v '^ *+' conftest.er1 >conftest.err
25922 cat conftest.err >&5
25923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924 (exit $ac_status); } &&
25925 { ac_try='test -z "$ac_c_werror_flag"
25926 || test ! -s conftest.err'
25927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25928 (eval $ac_try) 2>&5
25930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931 (exit $ac_status); }; } &&
25932 { ac_try='test -s conftest$ac_exeext'
25933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25934 (eval $ac_try) 2>&5
25936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); }; }; then
25938 ac_cv_search_opendir="-l$ac_lib"
25941 echo "$as_me: failed program was:" >&5
25942 sed 's/^/| /' conftest.$ac_ext >&5
25945 rm -f conftest.err conftest.$ac_objext \
25946 conftest$ac_exeext conftest.$ac_ext
25949 LIBS=$ac_func_search_save_LIBS
25951 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25952 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25953 if test "$ac_cv_search_opendir" != no; then
25954 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25959 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25960 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25961 if test "${ac_cv_search_opendir+set}" = set; then
25962 echo $ECHO_N "(cached) $ECHO_C" >&6
25964 ac_func_search_save_LIBS=$LIBS
25965 ac_cv_search_opendir=no
25966 cat >conftest.$ac_ext <<_ACEOF
25969 cat confdefs.h >>conftest.$ac_ext
25970 cat >>conftest.$ac_ext <<_ACEOF
25971 /* end confdefs.h. */
25973 /* Override any gcc2 internal prototype to avoid an error. */
25977 /* We use char because int might match the return type of a gcc2
25978 builtin and then its argument prototype would still apply. */
25988 rm -f conftest.$ac_objext conftest$ac_exeext
25989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25990 (eval $ac_link) 2>conftest.er1
25992 grep -v '^ *+' conftest.er1 >conftest.err
25994 cat conftest.err >&5
25995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25996 (exit $ac_status); } &&
25997 { ac_try='test -z "$ac_c_werror_flag"
25998 || test ! -s conftest.err'
25999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26000 (eval $ac_try) 2>&5
26002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26003 (exit $ac_status); }; } &&
26004 { ac_try='test -s conftest$ac_exeext'
26005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26006 (eval $ac_try) 2>&5
26008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009 (exit $ac_status); }; }; then
26010 ac_cv_search_opendir="none required"
26012 echo "$as_me: failed program was:" >&5
26013 sed 's/^/| /' conftest.$ac_ext >&5
26016 rm -f conftest.err conftest.$ac_objext \
26017 conftest$ac_exeext conftest.$ac_ext
26018 if test "$ac_cv_search_opendir" = no; then
26019 for ac_lib in x; do
26020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26021 cat >conftest.$ac_ext <<_ACEOF
26024 cat confdefs.h >>conftest.$ac_ext
26025 cat >>conftest.$ac_ext <<_ACEOF
26026 /* end confdefs.h. */
26028 /* Override any gcc2 internal prototype to avoid an error. */
26032 /* We use char because int might match the return type of a gcc2
26033 builtin and then its argument prototype would still apply. */
26043 rm -f conftest.$ac_objext conftest$ac_exeext
26044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26045 (eval $ac_link) 2>conftest.er1
26047 grep -v '^ *+' conftest.er1 >conftest.err
26049 cat conftest.err >&5
26050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); } &&
26052 { ac_try='test -z "$ac_c_werror_flag"
26053 || test ! -s conftest.err'
26054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26055 (eval $ac_try) 2>&5
26057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058 (exit $ac_status); }; } &&
26059 { ac_try='test -s conftest$ac_exeext'
26060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26061 (eval $ac_try) 2>&5
26063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064 (exit $ac_status); }; }; then
26065 ac_cv_search_opendir="-l$ac_lib"
26068 echo "$as_me: failed program was:" >&5
26069 sed 's/^/| /' conftest.$ac_ext >&5
26072 rm -f conftest.err conftest.$ac_objext \
26073 conftest$ac_exeext conftest.$ac_ext
26076 LIBS=$ac_func_search_save_LIBS
26078 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26079 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26080 if test "$ac_cv_search_opendir" != no; then
26081 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26087 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26088 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26089 if test "${ac_cv_header_mmap_anon+set}" = set; then
26090 echo $ECHO_N "(cached) $ECHO_C" >&6
26093 ac_cpp='$CPP $CPPFLAGS'
26094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26098 cat >conftest.$ac_ext <<_ACEOF
26101 cat confdefs.h >>conftest.$ac_ext
26102 cat >>conftest.$ac_ext <<_ACEOF
26103 /* end confdefs.h. */
26104 #include <sys/mman.h>
26105 #include <unistd.h>
26110 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26115 rm -f conftest.$ac_objext
26116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26117 (eval $ac_compile) 2>conftest.er1
26119 grep -v '^ *+' conftest.er1 >conftest.err
26121 cat conftest.err >&5
26122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123 (exit $ac_status); } &&
26124 { ac_try='test -z "$ac_c_werror_flag"
26125 || test ! -s conftest.err'
26126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26127 (eval $ac_try) 2>&5
26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); }; } &&
26131 { ac_try='test -s conftest.$ac_objext'
26132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26133 (eval $ac_try) 2>&5
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); }; }; then
26137 ac_cv_header_mmap_anon=yes
26139 echo "$as_me: failed program was:" >&5
26140 sed 's/^/| /' conftest.$ac_ext >&5
26142 ac_cv_header_mmap_anon=no
26144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26146 ac_cpp='$CPP $CPPFLAGS'
26147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26153 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26154 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26155 if test "$ac_cv_header_mmap_anon" = yes; then
26157 cat >>confdefs.h <<\_ACEOF
26158 #define HAVE_MMAP_ANONYMOUS 1
26163 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26164 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26165 if test "${ac_cv_header_stat_broken+set}" = set; then
26166 echo $ECHO_N "(cached) $ECHO_C" >&6
26168 cat >conftest.$ac_ext <<_ACEOF
26171 cat confdefs.h >>conftest.$ac_ext
26172 cat >>conftest.$ac_ext <<_ACEOF
26173 /* end confdefs.h. */
26174 #include <sys/types.h>
26175 #include <sys/stat.h>
26177 #if defined(S_ISBLK) && defined(S_IFDIR)
26178 # if S_ISBLK (S_IFDIR)
26183 #if defined(S_ISBLK) && defined(S_IFCHR)
26184 # if S_ISBLK (S_IFCHR)
26189 #if defined(S_ISLNK) && defined(S_IFREG)
26190 # if S_ISLNK (S_IFREG)
26195 #if defined(S_ISSOCK) && defined(S_IFREG)
26196 # if S_ISSOCK (S_IFREG)
26202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26203 $EGREP "You lose" >/dev/null 2>&1; then
26204 ac_cv_header_stat_broken=yes
26206 ac_cv_header_stat_broken=no
26211 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26212 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26213 if test $ac_cv_header_stat_broken = yes; then
26215 cat >>confdefs.h <<\_ACEOF
26216 #define STAT_MACROS_BROKEN 1
26221 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26222 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26223 if test "${ac_cv_header_stdc+set}" = set; then
26224 echo $ECHO_N "(cached) $ECHO_C" >&6
26226 cat >conftest.$ac_ext <<_ACEOF
26229 cat confdefs.h >>conftest.$ac_ext
26230 cat >>conftest.$ac_ext <<_ACEOF
26231 /* end confdefs.h. */
26232 #include <stdlib.h>
26233 #include <stdarg.h>
26234 #include <string.h>
26245 rm -f conftest.$ac_objext
26246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26247 (eval $ac_compile) 2>conftest.er1
26249 grep -v '^ *+' conftest.er1 >conftest.err
26251 cat conftest.err >&5
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); } &&
26254 { ac_try='test -z "$ac_c_werror_flag"
26255 || test ! -s conftest.err'
26256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26257 (eval $ac_try) 2>&5
26259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260 (exit $ac_status); }; } &&
26261 { ac_try='test -s conftest.$ac_objext'
26262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26263 (eval $ac_try) 2>&5
26265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266 (exit $ac_status); }; }; then
26267 ac_cv_header_stdc=yes
26269 echo "$as_me: failed program was:" >&5
26270 sed 's/^/| /' conftest.$ac_ext >&5
26272 ac_cv_header_stdc=no
26274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26276 if test $ac_cv_header_stdc = yes; then
26277 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26278 cat >conftest.$ac_ext <<_ACEOF
26281 cat confdefs.h >>conftest.$ac_ext
26282 cat >>conftest.$ac_ext <<_ACEOF
26283 /* end confdefs.h. */
26284 #include <string.h>
26287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26288 $EGREP "memchr" >/dev/null 2>&1; then
26291 ac_cv_header_stdc=no
26297 if test $ac_cv_header_stdc = yes; then
26298 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26299 cat >conftest.$ac_ext <<_ACEOF
26302 cat confdefs.h >>conftest.$ac_ext
26303 cat >>conftest.$ac_ext <<_ACEOF
26304 /* end confdefs.h. */
26305 #include <stdlib.h>
26308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26309 $EGREP "free" >/dev/null 2>&1; then
26312 ac_cv_header_stdc=no
26318 if test $ac_cv_header_stdc = yes; then
26319 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26320 if test "$cross_compiling" = yes; then
26323 cat >conftest.$ac_ext <<_ACEOF
26326 cat confdefs.h >>conftest.$ac_ext
26327 cat >>conftest.$ac_ext <<_ACEOF
26328 /* end confdefs.h. */
26330 #if ((' ' & 0x0FF) == 0x020)
26331 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26332 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26334 # define ISLOWER(c) \
26335 (('a' <= (c) && (c) <= 'i') \
26336 || ('j' <= (c) && (c) <= 'r') \
26337 || ('s' <= (c) && (c) <= 'z'))
26338 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26341 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26346 for (i = 0; i < 256; i++)
26347 if (XOR (islower (i), ISLOWER (i))
26348 || toupper (i) != TOUPPER (i))
26353 rm -f conftest$ac_exeext
26354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26355 (eval $ac_link) 2>&5
26357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26360 (eval $ac_try) 2>&5
26362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26363 (exit $ac_status); }; }; then
26366 echo "$as_me: program exited with status $ac_status" >&5
26367 echo "$as_me: failed program was:" >&5
26368 sed 's/^/| /' conftest.$ac_ext >&5
26370 ( exit $ac_status )
26371 ac_cv_header_stdc=no
26373 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26377 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26378 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26379 if test $ac_cv_header_stdc = yes; then
26381 cat >>confdefs.h <<\_ACEOF
26382 #define STDC_HEADERS 1
26387 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26388 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26389 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26390 echo $ECHO_N "(cached) $ECHO_C" >&6
26392 cat >conftest.$ac_ext <<_ACEOF
26395 cat confdefs.h >>conftest.$ac_ext
26396 cat >>conftest.$ac_ext <<_ACEOF
26397 /* end confdefs.h. */
26398 #include <sys/types.h>
26399 #include <sys/wait.h>
26400 #ifndef WEXITSTATUS
26401 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26404 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26412 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26417 rm -f conftest.$ac_objext
26418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26419 (eval $ac_compile) 2>conftest.er1
26421 grep -v '^ *+' conftest.er1 >conftest.err
26423 cat conftest.err >&5
26424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425 (exit $ac_status); } &&
26426 { ac_try='test -z "$ac_c_werror_flag"
26427 || test ! -s conftest.err'
26428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26429 (eval $ac_try) 2>&5
26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); }; } &&
26433 { ac_try='test -s conftest.$ac_objext'
26434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26435 (eval $ac_try) 2>&5
26437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26438 (exit $ac_status); }; }; then
26439 ac_cv_header_sys_wait_h=yes
26441 echo "$as_me: failed program was:" >&5
26442 sed 's/^/| /' conftest.$ac_ext >&5
26444 ac_cv_header_sys_wait_h=no
26446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26448 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26449 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26450 if test $ac_cv_header_sys_wait_h = yes; then
26452 cat >>confdefs.h <<\_ACEOF
26453 #define HAVE_SYS_WAIT_H 1
26458 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26459 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26460 if test "${ac_cv_header_time+set}" = set; then
26461 echo $ECHO_N "(cached) $ECHO_C" >&6
26463 cat >conftest.$ac_ext <<_ACEOF
26466 cat confdefs.h >>conftest.$ac_ext
26467 cat >>conftest.$ac_ext <<_ACEOF
26468 /* end confdefs.h. */
26469 #include <sys/types.h>
26470 #include <sys/time.h>
26476 if ((struct tm *) 0)
26482 rm -f conftest.$ac_objext
26483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26484 (eval $ac_compile) 2>conftest.er1
26486 grep -v '^ *+' conftest.er1 >conftest.err
26488 cat conftest.err >&5
26489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490 (exit $ac_status); } &&
26491 { ac_try='test -z "$ac_c_werror_flag"
26492 || test ! -s conftest.err'
26493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26494 (eval $ac_try) 2>&5
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); }; } &&
26498 { ac_try='test -s conftest.$ac_objext'
26499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26500 (eval $ac_try) 2>&5
26502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26503 (exit $ac_status); }; }; then
26504 ac_cv_header_time=yes
26506 echo "$as_me: failed program was:" >&5
26507 sed 's/^/| /' conftest.$ac_ext >&5
26509 ac_cv_header_time=no
26511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26513 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26514 echo "${ECHO_T}$ac_cv_header_time" >&6
26515 if test $ac_cv_header_time = yes; then
26517 cat >>confdefs.h <<\_ACEOF
26518 #define TIME_WITH_SYS_TIME 1
26530 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26534 echo "$as_me:$LINENO: checking for $ac_header" >&5
26535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26537 echo $ECHO_N "(cached) $ECHO_C" >&6
26539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26542 # Is the header compilable?
26543 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26545 cat >conftest.$ac_ext <<_ACEOF
26548 cat confdefs.h >>conftest.$ac_ext
26549 cat >>conftest.$ac_ext <<_ACEOF
26550 /* end confdefs.h. */
26551 $ac_includes_default
26552 #include <$ac_header>
26554 rm -f conftest.$ac_objext
26555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26556 (eval $ac_compile) 2>conftest.er1
26558 grep -v '^ *+' conftest.er1 >conftest.err
26560 cat conftest.err >&5
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); } &&
26563 { ac_try='test -z "$ac_c_werror_flag"
26564 || test ! -s conftest.err'
26565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26566 (eval $ac_try) 2>&5
26568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569 (exit $ac_status); }; } &&
26570 { ac_try='test -s conftest.$ac_objext'
26571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26572 (eval $ac_try) 2>&5
26574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575 (exit $ac_status); }; }; then
26576 ac_header_compiler=yes
26578 echo "$as_me: failed program was:" >&5
26579 sed 's/^/| /' conftest.$ac_ext >&5
26581 ac_header_compiler=no
26583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26585 echo "${ECHO_T}$ac_header_compiler" >&6
26587 # Is the header present?
26588 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26590 cat >conftest.$ac_ext <<_ACEOF
26593 cat confdefs.h >>conftest.$ac_ext
26594 cat >>conftest.$ac_ext <<_ACEOF
26595 /* end confdefs.h. */
26596 #include <$ac_header>
26598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26601 grep -v '^ *+' conftest.er1 >conftest.err
26603 cat conftest.err >&5
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); } >/dev/null; then
26606 if test -s conftest.err; then
26607 ac_cpp_err=$ac_c_preproc_warn_flag
26608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26615 if test -z "$ac_cpp_err"; then
26616 ac_header_preproc=yes
26618 echo "$as_me: failed program was:" >&5
26619 sed 's/^/| /' conftest.$ac_ext >&5
26621 ac_header_preproc=no
26623 rm -f conftest.err conftest.$ac_ext
26624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26625 echo "${ECHO_T}$ac_header_preproc" >&6
26627 # So? What about this header?
26628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26634 ac_header_preproc=yes
26637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26644 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26651 ## ----------------------------------- ##
26652 ## Report this to llvmbugs@cs.uiuc.edu ##
26653 ## ----------------------------------- ##
26656 sed "s/^/$as_me: WARNING: /" >&2
26659 echo "$as_me:$LINENO: checking for $ac_header" >&5
26660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26662 echo $ECHO_N "(cached) $ECHO_C" >&6
26664 eval "$as_ac_Header=\$ac_header_preproc"
26666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26671 cat >>confdefs.h <<_ACEOF
26672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26685 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26689 echo "$as_me:$LINENO: checking for $ac_header" >&5
26690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26692 echo $ECHO_N "(cached) $ECHO_C" >&6
26694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26697 # Is the header compilable?
26698 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26700 cat >conftest.$ac_ext <<_ACEOF
26703 cat confdefs.h >>conftest.$ac_ext
26704 cat >>conftest.$ac_ext <<_ACEOF
26705 /* end confdefs.h. */
26706 $ac_includes_default
26707 #include <$ac_header>
26709 rm -f conftest.$ac_objext
26710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26711 (eval $ac_compile) 2>conftest.er1
26713 grep -v '^ *+' conftest.er1 >conftest.err
26715 cat conftest.err >&5
26716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26717 (exit $ac_status); } &&
26718 { ac_try='test -z "$ac_c_werror_flag"
26719 || test ! -s conftest.err'
26720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26721 (eval $ac_try) 2>&5
26723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724 (exit $ac_status); }; } &&
26725 { ac_try='test -s conftest.$ac_objext'
26726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26727 (eval $ac_try) 2>&5
26729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730 (exit $ac_status); }; }; then
26731 ac_header_compiler=yes
26733 echo "$as_me: failed program was:" >&5
26734 sed 's/^/| /' conftest.$ac_ext >&5
26736 ac_header_compiler=no
26738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26740 echo "${ECHO_T}$ac_header_compiler" >&6
26742 # Is the header present?
26743 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26745 cat >conftest.$ac_ext <<_ACEOF
26748 cat confdefs.h >>conftest.$ac_ext
26749 cat >>conftest.$ac_ext <<_ACEOF
26750 /* end confdefs.h. */
26751 #include <$ac_header>
26753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26756 grep -v '^ *+' conftest.er1 >conftest.err
26758 cat conftest.err >&5
26759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760 (exit $ac_status); } >/dev/null; then
26761 if test -s conftest.err; then
26762 ac_cpp_err=$ac_c_preproc_warn_flag
26763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26770 if test -z "$ac_cpp_err"; then
26771 ac_header_preproc=yes
26773 echo "$as_me: failed program was:" >&5
26774 sed 's/^/| /' conftest.$ac_ext >&5
26776 ac_header_preproc=no
26778 rm -f conftest.err conftest.$ac_ext
26779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26780 echo "${ECHO_T}$ac_header_preproc" >&6
26782 # So? What about this header?
26783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26789 ac_header_preproc=yes
26792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26806 ## ----------------------------------- ##
26807 ## Report this to llvmbugs@cs.uiuc.edu ##
26808 ## ----------------------------------- ##
26811 sed "s/^/$as_me: WARNING: /" >&2
26814 echo "$as_me:$LINENO: checking for $ac_header" >&5
26815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26817 echo $ECHO_N "(cached) $ECHO_C" >&6
26819 eval "$as_ac_Header=\$ac_header_preproc"
26821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26826 cat >>confdefs.h <<_ACEOF
26827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26839 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26843 echo "$as_me:$LINENO: checking for $ac_header" >&5
26844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26846 echo $ECHO_N "(cached) $ECHO_C" >&6
26848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26851 # Is the header compilable?
26852 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26854 cat >conftest.$ac_ext <<_ACEOF
26857 cat confdefs.h >>conftest.$ac_ext
26858 cat >>conftest.$ac_ext <<_ACEOF
26859 /* end confdefs.h. */
26860 $ac_includes_default
26861 #include <$ac_header>
26863 rm -f conftest.$ac_objext
26864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26865 (eval $ac_compile) 2>conftest.er1
26867 grep -v '^ *+' conftest.er1 >conftest.err
26869 cat conftest.err >&5
26870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871 (exit $ac_status); } &&
26872 { ac_try='test -z "$ac_c_werror_flag"
26873 || test ! -s conftest.err'
26874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26875 (eval $ac_try) 2>&5
26877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878 (exit $ac_status); }; } &&
26879 { ac_try='test -s conftest.$ac_objext'
26880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26881 (eval $ac_try) 2>&5
26883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884 (exit $ac_status); }; }; then
26885 ac_header_compiler=yes
26887 echo "$as_me: failed program was:" >&5
26888 sed 's/^/| /' conftest.$ac_ext >&5
26890 ac_header_compiler=no
26892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26893 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26894 echo "${ECHO_T}$ac_header_compiler" >&6
26896 # Is the header present?
26897 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26899 cat >conftest.$ac_ext <<_ACEOF
26902 cat confdefs.h >>conftest.$ac_ext
26903 cat >>conftest.$ac_ext <<_ACEOF
26904 /* end confdefs.h. */
26905 #include <$ac_header>
26907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26910 grep -v '^ *+' conftest.er1 >conftest.err
26912 cat conftest.err >&5
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); } >/dev/null; then
26915 if test -s conftest.err; then
26916 ac_cpp_err=$ac_c_preproc_warn_flag
26917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26924 if test -z "$ac_cpp_err"; then
26925 ac_header_preproc=yes
26927 echo "$as_me: failed program was:" >&5
26928 sed 's/^/| /' conftest.$ac_ext >&5
26930 ac_header_preproc=no
26932 rm -f conftest.err conftest.$ac_ext
26933 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26934 echo "${ECHO_T}$ac_header_preproc" >&6
26936 # So? What about this header?
26937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26943 ac_header_preproc=yes
26946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26953 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26960 ## ----------------------------------- ##
26961 ## Report this to llvmbugs@cs.uiuc.edu ##
26962 ## ----------------------------------- ##
26965 sed "s/^/$as_me: WARNING: /" >&2
26968 echo "$as_me:$LINENO: checking for $ac_header" >&5
26969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26971 echo $ECHO_N "(cached) $ECHO_C" >&6
26973 eval "$as_ac_Header=\$ac_header_preproc"
26975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26980 cat >>confdefs.h <<_ACEOF
26981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26989 for ac_header in malloc/malloc.h
26991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26993 echo "$as_me:$LINENO: checking for $ac_header" >&5
26994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26996 echo $ECHO_N "(cached) $ECHO_C" >&6
26998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27001 # Is the header compilable?
27002 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27004 cat >conftest.$ac_ext <<_ACEOF
27007 cat confdefs.h >>conftest.$ac_ext
27008 cat >>conftest.$ac_ext <<_ACEOF
27009 /* end confdefs.h. */
27010 $ac_includes_default
27011 #include <$ac_header>
27013 rm -f conftest.$ac_objext
27014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27015 (eval $ac_compile) 2>conftest.er1
27017 grep -v '^ *+' conftest.er1 >conftest.err
27019 cat conftest.err >&5
27020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021 (exit $ac_status); } &&
27022 { ac_try='test -z "$ac_c_werror_flag"
27023 || test ! -s conftest.err'
27024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27025 (eval $ac_try) 2>&5
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); }; } &&
27029 { ac_try='test -s conftest.$ac_objext'
27030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27031 (eval $ac_try) 2>&5
27033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); }; }; then
27035 ac_header_compiler=yes
27037 echo "$as_me: failed program was:" >&5
27038 sed 's/^/| /' conftest.$ac_ext >&5
27040 ac_header_compiler=no
27042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27043 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27044 echo "${ECHO_T}$ac_header_compiler" >&6
27046 # Is the header present?
27047 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27049 cat >conftest.$ac_ext <<_ACEOF
27052 cat confdefs.h >>conftest.$ac_ext
27053 cat >>conftest.$ac_ext <<_ACEOF
27054 /* end confdefs.h. */
27055 #include <$ac_header>
27057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27060 grep -v '^ *+' conftest.er1 >conftest.err
27062 cat conftest.err >&5
27063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064 (exit $ac_status); } >/dev/null; then
27065 if test -s conftest.err; then
27066 ac_cpp_err=$ac_c_preproc_warn_flag
27067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27074 if test -z "$ac_cpp_err"; then
27075 ac_header_preproc=yes
27077 echo "$as_me: failed program was:" >&5
27078 sed 's/^/| /' conftest.$ac_ext >&5
27080 ac_header_preproc=no
27082 rm -f conftest.err conftest.$ac_ext
27083 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27084 echo "${ECHO_T}$ac_header_preproc" >&6
27086 # So? What about this header?
27087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27093 ac_header_preproc=yes
27096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27099 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27100 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27102 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27103 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27106 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27110 ## ----------------------------------- ##
27111 ## Report this to llvmbugs@cs.uiuc.edu ##
27112 ## ----------------------------------- ##
27115 sed "s/^/$as_me: WARNING: /" >&2
27118 echo "$as_me:$LINENO: checking for $ac_header" >&5
27119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27121 echo $ECHO_N "(cached) $ECHO_C" >&6
27123 eval "$as_ac_Header=\$ac_header_preproc"
27125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27130 cat >>confdefs.h <<_ACEOF
27131 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27138 if test "$ENABLE_THREADS" -eq 1 ; then
27140 for ac_header in pthread.h
27142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27144 echo "$as_me:$LINENO: checking for $ac_header" >&5
27145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27147 echo $ECHO_N "(cached) $ECHO_C" >&6
27149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27152 # Is the header compilable?
27153 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27155 cat >conftest.$ac_ext <<_ACEOF
27158 cat confdefs.h >>conftest.$ac_ext
27159 cat >>conftest.$ac_ext <<_ACEOF
27160 /* end confdefs.h. */
27161 $ac_includes_default
27162 #include <$ac_header>
27164 rm -f conftest.$ac_objext
27165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27166 (eval $ac_compile) 2>conftest.er1
27168 grep -v '^ *+' conftest.er1 >conftest.err
27170 cat conftest.err >&5
27171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27172 (exit $ac_status); } &&
27173 { ac_try='test -z "$ac_c_werror_flag"
27174 || test ! -s conftest.err'
27175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27176 (eval $ac_try) 2>&5
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); }; } &&
27180 { ac_try='test -s conftest.$ac_objext'
27181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27182 (eval $ac_try) 2>&5
27184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); }; }; then
27186 ac_header_compiler=yes
27188 echo "$as_me: failed program was:" >&5
27189 sed 's/^/| /' conftest.$ac_ext >&5
27191 ac_header_compiler=no
27193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27194 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27195 echo "${ECHO_T}$ac_header_compiler" >&6
27197 # Is the header present?
27198 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27200 cat >conftest.$ac_ext <<_ACEOF
27203 cat confdefs.h >>conftest.$ac_ext
27204 cat >>conftest.$ac_ext <<_ACEOF
27205 /* end confdefs.h. */
27206 #include <$ac_header>
27208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27211 grep -v '^ *+' conftest.er1 >conftest.err
27213 cat conftest.err >&5
27214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215 (exit $ac_status); } >/dev/null; then
27216 if test -s conftest.err; then
27217 ac_cpp_err=$ac_c_preproc_warn_flag
27218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27225 if test -z "$ac_cpp_err"; then
27226 ac_header_preproc=yes
27228 echo "$as_me: failed program was:" >&5
27229 sed 's/^/| /' conftest.$ac_ext >&5
27231 ac_header_preproc=no
27233 rm -f conftest.err conftest.$ac_ext
27234 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27235 echo "${ECHO_T}$ac_header_preproc" >&6
27237 # So? What about this header?
27238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27244 ac_header_preproc=yes
27247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27261 ## ----------------------------------- ##
27262 ## Report this to llvmbugs@cs.uiuc.edu ##
27263 ## ----------------------------------- ##
27266 sed "s/^/$as_me: WARNING: /" >&2
27269 echo "$as_me:$LINENO: checking for $ac_header" >&5
27270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27272 echo $ECHO_N "(cached) $ECHO_C" >&6
27274 eval "$as_ac_Header=\$ac_header_preproc"
27276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27281 cat >>confdefs.h <<_ACEOF
27282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27292 echo "$as_me:$LINENO: checking for pid_t" >&5
27293 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27294 if test "${ac_cv_type_pid_t+set}" = set; then
27295 echo $ECHO_N "(cached) $ECHO_C" >&6
27297 cat >conftest.$ac_ext <<_ACEOF
27300 cat confdefs.h >>conftest.$ac_ext
27301 cat >>conftest.$ac_ext <<_ACEOF
27302 /* end confdefs.h. */
27303 $ac_includes_default
27309 if (sizeof (pid_t))
27315 rm -f conftest.$ac_objext
27316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27317 (eval $ac_compile) 2>conftest.er1
27319 grep -v '^ *+' conftest.er1 >conftest.err
27321 cat conftest.err >&5
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); } &&
27324 { ac_try='test -z "$ac_c_werror_flag"
27325 || test ! -s conftest.err'
27326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327 (eval $ac_try) 2>&5
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); }; } &&
27331 { ac_try='test -s conftest.$ac_objext'
27332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27333 (eval $ac_try) 2>&5
27335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336 (exit $ac_status); }; }; then
27337 ac_cv_type_pid_t=yes
27339 echo "$as_me: failed program was:" >&5
27340 sed 's/^/| /' conftest.$ac_ext >&5
27342 ac_cv_type_pid_t=no
27344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27346 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27347 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27348 if test $ac_cv_type_pid_t = yes; then
27352 cat >>confdefs.h <<_ACEOF
27358 echo "$as_me:$LINENO: checking for size_t" >&5
27359 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27360 if test "${ac_cv_type_size_t+set}" = set; then
27361 echo $ECHO_N "(cached) $ECHO_C" >&6
27363 cat >conftest.$ac_ext <<_ACEOF
27366 cat confdefs.h >>conftest.$ac_ext
27367 cat >>conftest.$ac_ext <<_ACEOF
27368 /* end confdefs.h. */
27369 $ac_includes_default
27375 if (sizeof (size_t))
27381 rm -f conftest.$ac_objext
27382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27383 (eval $ac_compile) 2>conftest.er1
27385 grep -v '^ *+' conftest.er1 >conftest.err
27387 cat conftest.err >&5
27388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389 (exit $ac_status); } &&
27390 { ac_try='test -z "$ac_c_werror_flag"
27391 || test ! -s conftest.err'
27392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27393 (eval $ac_try) 2>&5
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); }; } &&
27397 { ac_try='test -s conftest.$ac_objext'
27398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399 (eval $ac_try) 2>&5
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); }; }; then
27403 ac_cv_type_size_t=yes
27405 echo "$as_me: failed program was:" >&5
27406 sed 's/^/| /' conftest.$ac_ext >&5
27408 ac_cv_type_size_t=no
27410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27412 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27413 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27414 if test $ac_cv_type_size_t = yes; then
27418 cat >>confdefs.h <<_ACEOF
27419 #define size_t unsigned
27424 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27425 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27426 if test "${ac_cv_type_signal+set}" = set; then
27427 echo $ECHO_N "(cached) $ECHO_C" >&6
27429 cat >conftest.$ac_ext <<_ACEOF
27432 cat confdefs.h >>conftest.$ac_ext
27433 cat >>conftest.$ac_ext <<_ACEOF
27434 /* end confdefs.h. */
27435 #include <sys/types.h>
27436 #include <signal.h>
27441 extern "C" void (*signal (int, void (*)(int)))(int);
27443 void (*signal ()) ();
27454 rm -f conftest.$ac_objext
27455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27456 (eval $ac_compile) 2>conftest.er1
27458 grep -v '^ *+' conftest.er1 >conftest.err
27460 cat conftest.err >&5
27461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462 (exit $ac_status); } &&
27463 { ac_try='test -z "$ac_c_werror_flag"
27464 || test ! -s conftest.err'
27465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27466 (eval $ac_try) 2>&5
27468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 (exit $ac_status); }; } &&
27470 { ac_try='test -s conftest.$ac_objext'
27471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27472 (eval $ac_try) 2>&5
27474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475 (exit $ac_status); }; }; then
27476 ac_cv_type_signal=void
27478 echo "$as_me: failed program was:" >&5
27479 sed 's/^/| /' conftest.$ac_ext >&5
27481 ac_cv_type_signal=int
27483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27485 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27486 echo "${ECHO_T}$ac_cv_type_signal" >&6
27488 cat >>confdefs.h <<_ACEOF
27489 #define RETSIGTYPE $ac_cv_type_signal
27493 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27494 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27495 if test "${ac_cv_struct_tm+set}" = set; then
27496 echo $ECHO_N "(cached) $ECHO_C" >&6
27498 cat >conftest.$ac_ext <<_ACEOF
27501 cat confdefs.h >>conftest.$ac_ext
27502 cat >>conftest.$ac_ext <<_ACEOF
27503 /* end confdefs.h. */
27504 #include <sys/types.h>
27510 struct tm *tp; tp->tm_sec;
27515 rm -f conftest.$ac_objext
27516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27517 (eval $ac_compile) 2>conftest.er1
27519 grep -v '^ *+' conftest.er1 >conftest.err
27521 cat conftest.err >&5
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); } &&
27524 { ac_try='test -z "$ac_c_werror_flag"
27525 || test ! -s conftest.err'
27526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27527 (eval $ac_try) 2>&5
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); }; } &&
27531 { ac_try='test -s conftest.$ac_objext'
27532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27533 (eval $ac_try) 2>&5
27535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27536 (exit $ac_status); }; }; then
27537 ac_cv_struct_tm=time.h
27539 echo "$as_me: failed program was:" >&5
27540 sed 's/^/| /' conftest.$ac_ext >&5
27542 ac_cv_struct_tm=sys/time.h
27544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27546 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27547 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27548 if test $ac_cv_struct_tm = sys/time.h; then
27550 cat >>confdefs.h <<\_ACEOF
27551 #define TM_IN_SYS_TIME 1
27556 echo "$as_me:$LINENO: checking for int64_t" >&5
27557 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27558 if test "${ac_cv_type_int64_t+set}" = set; then
27559 echo $ECHO_N "(cached) $ECHO_C" >&6
27561 cat >conftest.$ac_ext <<_ACEOF
27564 cat confdefs.h >>conftest.$ac_ext
27565 cat >>conftest.$ac_ext <<_ACEOF
27566 /* end confdefs.h. */
27567 $ac_includes_default
27573 if (sizeof (int64_t))
27579 rm -f conftest.$ac_objext
27580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27581 (eval $ac_compile) 2>conftest.er1
27583 grep -v '^ *+' conftest.er1 >conftest.err
27585 cat conftest.err >&5
27586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587 (exit $ac_status); } &&
27588 { ac_try='test -z "$ac_c_werror_flag"
27589 || test ! -s conftest.err'
27590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27591 (eval $ac_try) 2>&5
27593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594 (exit $ac_status); }; } &&
27595 { ac_try='test -s conftest.$ac_objext'
27596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27597 (eval $ac_try) 2>&5
27599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600 (exit $ac_status); }; }; then
27601 ac_cv_type_int64_t=yes
27603 echo "$as_me: failed program was:" >&5
27604 sed 's/^/| /' conftest.$ac_ext >&5
27606 ac_cv_type_int64_t=no
27608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27610 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27611 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27612 if test $ac_cv_type_int64_t = yes; then
27614 cat >>confdefs.h <<_ACEOF
27615 #define HAVE_INT64_T 1
27620 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27621 echo "$as_me: error: Type int64_t required but not found" >&2;}
27622 { (exit 1); exit 1; }; }
27625 echo "$as_me:$LINENO: checking for uint64_t" >&5
27626 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27627 if test "${ac_cv_type_uint64_t+set}" = set; then
27628 echo $ECHO_N "(cached) $ECHO_C" >&6
27630 cat >conftest.$ac_ext <<_ACEOF
27633 cat confdefs.h >>conftest.$ac_ext
27634 cat >>conftest.$ac_ext <<_ACEOF
27635 /* end confdefs.h. */
27636 $ac_includes_default
27640 if ((uint64_t *) 0)
27642 if (sizeof (uint64_t))
27648 rm -f conftest.$ac_objext
27649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27650 (eval $ac_compile) 2>conftest.er1
27652 grep -v '^ *+' conftest.er1 >conftest.err
27654 cat conftest.err >&5
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); } &&
27657 { ac_try='test -z "$ac_c_werror_flag"
27658 || test ! -s conftest.err'
27659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27660 (eval $ac_try) 2>&5
27662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663 (exit $ac_status); }; } &&
27664 { ac_try='test -s conftest.$ac_objext'
27665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27666 (eval $ac_try) 2>&5
27668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669 (exit $ac_status); }; }; then
27670 ac_cv_type_uint64_t=yes
27672 echo "$as_me: failed program was:" >&5
27673 sed 's/^/| /' conftest.$ac_ext >&5
27675 ac_cv_type_uint64_t=no
27677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27679 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27680 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27681 if test $ac_cv_type_uint64_t = yes; then
27683 cat >>confdefs.h <<_ACEOF
27684 #define HAVE_UINT64_T 1
27689 echo "$as_me:$LINENO: checking for u_int64_t" >&5
27690 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27691 if test "${ac_cv_type_u_int64_t+set}" = set; then
27692 echo $ECHO_N "(cached) $ECHO_C" >&6
27694 cat >conftest.$ac_ext <<_ACEOF
27697 cat confdefs.h >>conftest.$ac_ext
27698 cat >>conftest.$ac_ext <<_ACEOF
27699 /* end confdefs.h. */
27700 $ac_includes_default
27704 if ((u_int64_t *) 0)
27706 if (sizeof (u_int64_t))
27712 rm -f conftest.$ac_objext
27713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27714 (eval $ac_compile) 2>conftest.er1
27716 grep -v '^ *+' conftest.er1 >conftest.err
27718 cat conftest.err >&5
27719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720 (exit $ac_status); } &&
27721 { ac_try='test -z "$ac_c_werror_flag"
27722 || test ! -s conftest.err'
27723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27724 (eval $ac_try) 2>&5
27726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727 (exit $ac_status); }; } &&
27728 { ac_try='test -s conftest.$ac_objext'
27729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27730 (eval $ac_try) 2>&5
27732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733 (exit $ac_status); }; }; then
27734 ac_cv_type_u_int64_t=yes
27736 echo "$as_me: failed program was:" >&5
27737 sed 's/^/| /' conftest.$ac_ext >&5
27739 ac_cv_type_u_int64_t=no
27741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27743 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27744 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27745 if test $ac_cv_type_u_int64_t = yes; then
27747 cat >>confdefs.h <<_ACEOF
27748 #define HAVE_U_INT64_T 1
27753 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27754 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27755 { (exit 1); exit 1; }; }
27769 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
27771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27772 echo "$as_me:$LINENO: checking for $ac_func" >&5
27773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27774 if eval "test \"\${$as_ac_var+set}\" = set"; then
27775 echo $ECHO_N "(cached) $ECHO_C" >&6
27777 cat >conftest.$ac_ext <<_ACEOF
27780 cat confdefs.h >>conftest.$ac_ext
27781 cat >>conftest.$ac_ext <<_ACEOF
27782 /* end confdefs.h. */
27783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27785 #define $ac_func innocuous_$ac_func
27787 /* System header to define __stub macros and hopefully few prototypes,
27788 which can conflict with char $ac_func (); below.
27789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27790 <limits.h> exists even on freestanding compilers. */
27793 # include <limits.h>
27795 # include <assert.h>
27800 /* Override any gcc2 internal prototype to avoid an error. */
27805 /* We use char because int might match the return type of a gcc2
27806 builtin and then its argument prototype would still apply. */
27808 /* The GNU C library defines this for functions which it implements
27809 to always fail with ENOSYS. Some functions are actually named
27810 something starting with __ and the normal name is an alias. */
27811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27814 char (*f) () = $ac_func;
27823 return f != $ac_func;
27828 rm -f conftest.$ac_objext conftest$ac_exeext
27829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27830 (eval $ac_link) 2>conftest.er1
27832 grep -v '^ *+' conftest.er1 >conftest.err
27834 cat conftest.err >&5
27835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836 (exit $ac_status); } &&
27837 { ac_try='test -z "$ac_c_werror_flag"
27838 || test ! -s conftest.err'
27839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27840 (eval $ac_try) 2>&5
27842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843 (exit $ac_status); }; } &&
27844 { ac_try='test -s conftest$ac_exeext'
27845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27846 (eval $ac_try) 2>&5
27848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849 (exit $ac_status); }; }; then
27850 eval "$as_ac_var=yes"
27852 echo "$as_me: failed program was:" >&5
27853 sed 's/^/| /' conftest.$ac_ext >&5
27855 eval "$as_ac_var=no"
27857 rm -f conftest.err conftest.$ac_objext \
27858 conftest$ac_exeext conftest.$ac_ext
27860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27862 if test `eval echo '${'$as_ac_var'}'` = yes; then
27863 cat >>confdefs.h <<_ACEOF
27864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27876 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
27878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27879 echo "$as_me:$LINENO: checking for $ac_func" >&5
27880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27881 if eval "test \"\${$as_ac_var+set}\" = set"; then
27882 echo $ECHO_N "(cached) $ECHO_C" >&6
27884 cat >conftest.$ac_ext <<_ACEOF
27887 cat confdefs.h >>conftest.$ac_ext
27888 cat >>conftest.$ac_ext <<_ACEOF
27889 /* end confdefs.h. */
27890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27892 #define $ac_func innocuous_$ac_func
27894 /* System header to define __stub macros and hopefully few prototypes,
27895 which can conflict with char $ac_func (); below.
27896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27897 <limits.h> exists even on freestanding compilers. */
27900 # include <limits.h>
27902 # include <assert.h>
27907 /* Override any gcc2 internal prototype to avoid an error. */
27912 /* We use char because int might match the return type of a gcc2
27913 builtin and then its argument prototype would still apply. */
27915 /* The GNU C library defines this for functions which it implements
27916 to always fail with ENOSYS. Some functions are actually named
27917 something starting with __ and the normal name is an alias. */
27918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27921 char (*f) () = $ac_func;
27930 return f != $ac_func;
27935 rm -f conftest.$ac_objext conftest$ac_exeext
27936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27937 (eval $ac_link) 2>conftest.er1
27939 grep -v '^ *+' conftest.er1 >conftest.err
27941 cat conftest.err >&5
27942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943 (exit $ac_status); } &&
27944 { ac_try='test -z "$ac_c_werror_flag"
27945 || test ! -s conftest.err'
27946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27947 (eval $ac_try) 2>&5
27949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950 (exit $ac_status); }; } &&
27951 { ac_try='test -s conftest$ac_exeext'
27952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27953 (eval $ac_try) 2>&5
27955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956 (exit $ac_status); }; }; then
27957 eval "$as_ac_var=yes"
27959 echo "$as_me: failed program was:" >&5
27960 sed 's/^/| /' conftest.$ac_ext >&5
27962 eval "$as_ac_var=no"
27964 rm -f conftest.err conftest.$ac_objext \
27965 conftest$ac_exeext conftest.$ac_ext
27967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27969 if test `eval echo '${'$as_ac_var'}'` = yes; then
27970 cat >>confdefs.h <<_ACEOF
27971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27984 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
27986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27987 echo "$as_me:$LINENO: checking for $ac_func" >&5
27988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27989 if eval "test \"\${$as_ac_var+set}\" = set"; then
27990 echo $ECHO_N "(cached) $ECHO_C" >&6
27992 cat >conftest.$ac_ext <<_ACEOF
27995 cat confdefs.h >>conftest.$ac_ext
27996 cat >>conftest.$ac_ext <<_ACEOF
27997 /* end confdefs.h. */
27998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28000 #define $ac_func innocuous_$ac_func
28002 /* System header to define __stub macros and hopefully few prototypes,
28003 which can conflict with char $ac_func (); below.
28004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28005 <limits.h> exists even on freestanding compilers. */
28008 # include <limits.h>
28010 # include <assert.h>
28015 /* Override any gcc2 internal prototype to avoid an error. */
28020 /* We use char because int might match the return type of a gcc2
28021 builtin and then its argument prototype would still apply. */
28023 /* The GNU C library defines this for functions which it implements
28024 to always fail with ENOSYS. Some functions are actually named
28025 something starting with __ and the normal name is an alias. */
28026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28029 char (*f) () = $ac_func;
28038 return f != $ac_func;
28043 rm -f conftest.$ac_objext conftest$ac_exeext
28044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28045 (eval $ac_link) 2>conftest.er1
28047 grep -v '^ *+' conftest.er1 >conftest.err
28049 cat conftest.err >&5
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); } &&
28052 { ac_try='test -z "$ac_c_werror_flag"
28053 || test ! -s conftest.err'
28054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28055 (eval $ac_try) 2>&5
28057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058 (exit $ac_status); }; } &&
28059 { ac_try='test -s conftest$ac_exeext'
28060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28061 (eval $ac_try) 2>&5
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); }; }; then
28065 eval "$as_ac_var=yes"
28067 echo "$as_me: failed program was:" >&5
28068 sed 's/^/| /' conftest.$ac_ext >&5
28070 eval "$as_ac_var=no"
28072 rm -f conftest.err conftest.$ac_objext \
28073 conftest$ac_exeext conftest.$ac_ext
28075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28077 if test `eval echo '${'$as_ac_var'}'` = yes; then
28078 cat >>confdefs.h <<_ACEOF
28079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28089 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28092 echo "$as_me:$LINENO: checking for $ac_func" >&5
28093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28094 if eval "test \"\${$as_ac_var+set}\" = set"; then
28095 echo $ECHO_N "(cached) $ECHO_C" >&6
28097 cat >conftest.$ac_ext <<_ACEOF
28100 cat confdefs.h >>conftest.$ac_ext
28101 cat >>conftest.$ac_ext <<_ACEOF
28102 /* end confdefs.h. */
28103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28105 #define $ac_func innocuous_$ac_func
28107 /* System header to define __stub macros and hopefully few prototypes,
28108 which can conflict with char $ac_func (); below.
28109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28110 <limits.h> exists even on freestanding compilers. */
28113 # include <limits.h>
28115 # include <assert.h>
28120 /* Override any gcc2 internal prototype to avoid an error. */
28125 /* We use char because int might match the return type of a gcc2
28126 builtin and then its argument prototype would still apply. */
28128 /* The GNU C library defines this for functions which it implements
28129 to always fail with ENOSYS. Some functions are actually named
28130 something starting with __ and the normal name is an alias. */
28131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28134 char (*f) () = $ac_func;
28143 return f != $ac_func;
28148 rm -f conftest.$ac_objext conftest$ac_exeext
28149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28150 (eval $ac_link) 2>conftest.er1
28152 grep -v '^ *+' conftest.er1 >conftest.err
28154 cat conftest.err >&5
28155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156 (exit $ac_status); } &&
28157 { ac_try='test -z "$ac_c_werror_flag"
28158 || test ! -s conftest.err'
28159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28160 (eval $ac_try) 2>&5
28162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163 (exit $ac_status); }; } &&
28164 { ac_try='test -s conftest$ac_exeext'
28165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28166 (eval $ac_try) 2>&5
28168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169 (exit $ac_status); }; }; then
28170 eval "$as_ac_var=yes"
28172 echo "$as_me: failed program was:" >&5
28173 sed 's/^/| /' conftest.$ac_ext >&5
28175 eval "$as_ac_var=no"
28177 rm -f conftest.err conftest.$ac_objext \
28178 conftest$ac_exeext conftest.$ac_ext
28180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28182 if test `eval echo '${'$as_ac_var'}'` = yes; then
28183 cat >>confdefs.h <<_ACEOF
28184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28190 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28191 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28192 if test "${llvm_cv_c_printf_a+set}" = set; then
28193 echo $ECHO_N "(cached) $ECHO_C" >&6
28196 ac_cpp='$CPP $CPPFLAGS'
28197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28201 if test "$cross_compiling" = yes; then
28202 llvmac_cv_c_printf_a=no
28204 cat >conftest.$ac_ext <<_ACEOF
28208 cat confdefs.h >>conftest.$ac_ext
28209 cat >>conftest.$ac_ext <<_ACEOF
28210 /* end confdefs.h. */
28213 #include <stdlib.h>
28219 volatile double A, B;
28223 sprintf(Buffer, "%a", A);
28227 if (A != 0x1.999999999999ap-4)
28234 rm -f conftest$ac_exeext
28235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28236 (eval $ac_link) 2>&5
28238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28241 (eval $ac_try) 2>&5
28243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244 (exit $ac_status); }; }; then
28245 llvm_cv_c_printf_a=yes
28247 echo "$as_me: program exited with status $ac_status" >&5
28248 echo "$as_me: failed program was:" >&5
28249 sed 's/^/| /' conftest.$ac_ext >&5
28251 ( exit $ac_status )
28252 llvmac_cv_c_printf_a=no
28254 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28257 ac_cpp='$CPP $CPPFLAGS'
28258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28263 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28264 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28265 if test "$llvm_cv_c_printf_a" = "yes"; then
28267 cat >>confdefs.h <<\_ACEOF
28268 #define HAVE_PRINTF_A 1
28273 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28274 # for constant arguments. Useless!
28275 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28276 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28277 if test "${ac_cv_working_alloca_h+set}" = set; then
28278 echo $ECHO_N "(cached) $ECHO_C" >&6
28280 cat >conftest.$ac_ext <<_ACEOF
28283 cat confdefs.h >>conftest.$ac_ext
28284 cat >>conftest.$ac_ext <<_ACEOF
28285 /* end confdefs.h. */
28286 #include <alloca.h>
28290 char *p = (char *) alloca (2 * sizeof (int));
28295 rm -f conftest.$ac_objext conftest$ac_exeext
28296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28297 (eval $ac_link) 2>conftest.er1
28299 grep -v '^ *+' conftest.er1 >conftest.err
28301 cat conftest.err >&5
28302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303 (exit $ac_status); } &&
28304 { ac_try='test -z "$ac_c_werror_flag"
28305 || test ! -s conftest.err'
28306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28307 (eval $ac_try) 2>&5
28309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); }; } &&
28311 { ac_try='test -s conftest$ac_exeext'
28312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28313 (eval $ac_try) 2>&5
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); }; }; then
28317 ac_cv_working_alloca_h=yes
28319 echo "$as_me: failed program was:" >&5
28320 sed 's/^/| /' conftest.$ac_ext >&5
28322 ac_cv_working_alloca_h=no
28324 rm -f conftest.err conftest.$ac_objext \
28325 conftest$ac_exeext conftest.$ac_ext
28327 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28328 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28329 if test $ac_cv_working_alloca_h = yes; then
28331 cat >>confdefs.h <<\_ACEOF
28332 #define HAVE_ALLOCA_H 1
28337 echo "$as_me:$LINENO: checking for alloca" >&5
28338 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28339 if test "${ac_cv_func_alloca_works+set}" = set; then
28340 echo $ECHO_N "(cached) $ECHO_C" >&6
28342 cat >conftest.$ac_ext <<_ACEOF
28345 cat confdefs.h >>conftest.$ac_ext
28346 cat >>conftest.$ac_ext <<_ACEOF
28347 /* end confdefs.h. */
28349 # define alloca __builtin_alloca
28352 # include <malloc.h>
28353 # define alloca _alloca
28356 # include <alloca.h>
28361 # ifndef alloca /* predefined by HP cc +Olibcalls */
28372 char *p = (char *) alloca (1);
28377 rm -f conftest.$ac_objext conftest$ac_exeext
28378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28379 (eval $ac_link) 2>conftest.er1
28381 grep -v '^ *+' conftest.er1 >conftest.err
28383 cat conftest.err >&5
28384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28385 (exit $ac_status); } &&
28386 { ac_try='test -z "$ac_c_werror_flag"
28387 || test ! -s conftest.err'
28388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28389 (eval $ac_try) 2>&5
28391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392 (exit $ac_status); }; } &&
28393 { ac_try='test -s conftest$ac_exeext'
28394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28395 (eval $ac_try) 2>&5
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); }; }; then
28399 ac_cv_func_alloca_works=yes
28401 echo "$as_me: failed program was:" >&5
28402 sed 's/^/| /' conftest.$ac_ext >&5
28404 ac_cv_func_alloca_works=no
28406 rm -f conftest.err conftest.$ac_objext \
28407 conftest$ac_exeext conftest.$ac_ext
28409 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28410 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28412 if test $ac_cv_func_alloca_works = yes; then
28414 cat >>confdefs.h <<\_ACEOF
28415 #define HAVE_ALLOCA 1
28419 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28420 # that cause trouble. Some versions do not even contain alloca or
28421 # contain a buggy version. If you still want to use their alloca,
28422 # use ar to extract alloca.o from them instead of compiling alloca.c.
28424 ALLOCA=alloca.$ac_objext
28426 cat >>confdefs.h <<\_ACEOF
28431 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28432 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28433 if test "${ac_cv_os_cray+set}" = set; then
28434 echo $ECHO_N "(cached) $ECHO_C" >&6
28436 cat >conftest.$ac_ext <<_ACEOF
28439 cat confdefs.h >>conftest.$ac_ext
28440 cat >>conftest.$ac_ext <<_ACEOF
28441 /* end confdefs.h. */
28442 #if defined(CRAY) && ! defined(CRAY2)
28449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28450 $EGREP "webecray" >/dev/null 2>&1; then
28458 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28459 echo "${ECHO_T}$ac_cv_os_cray" >&6
28460 if test $ac_cv_os_cray = yes; then
28461 for ac_func in _getb67 GETB67 getb67; do
28462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28463 echo "$as_me:$LINENO: checking for $ac_func" >&5
28464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28465 if eval "test \"\${$as_ac_var+set}\" = set"; then
28466 echo $ECHO_N "(cached) $ECHO_C" >&6
28468 cat >conftest.$ac_ext <<_ACEOF
28471 cat confdefs.h >>conftest.$ac_ext
28472 cat >>conftest.$ac_ext <<_ACEOF
28473 /* end confdefs.h. */
28474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28476 #define $ac_func innocuous_$ac_func
28478 /* System header to define __stub macros and hopefully few prototypes,
28479 which can conflict with char $ac_func (); below.
28480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28481 <limits.h> exists even on freestanding compilers. */
28484 # include <limits.h>
28486 # include <assert.h>
28491 /* Override any gcc2 internal prototype to avoid an error. */
28496 /* We use char because int might match the return type of a gcc2
28497 builtin and then its argument prototype would still apply. */
28499 /* The GNU C library defines this for functions which it implements
28500 to always fail with ENOSYS. Some functions are actually named
28501 something starting with __ and the normal name is an alias. */
28502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28505 char (*f) () = $ac_func;
28514 return f != $ac_func;
28519 rm -f conftest.$ac_objext conftest$ac_exeext
28520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28521 (eval $ac_link) 2>conftest.er1
28523 grep -v '^ *+' conftest.er1 >conftest.err
28525 cat conftest.err >&5
28526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527 (exit $ac_status); } &&
28528 { ac_try='test -z "$ac_c_werror_flag"
28529 || test ! -s conftest.err'
28530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28531 (eval $ac_try) 2>&5
28533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534 (exit $ac_status); }; } &&
28535 { ac_try='test -s conftest$ac_exeext'
28536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28537 (eval $ac_try) 2>&5
28539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540 (exit $ac_status); }; }; then
28541 eval "$as_ac_var=yes"
28543 echo "$as_me: failed program was:" >&5
28544 sed 's/^/| /' conftest.$ac_ext >&5
28546 eval "$as_ac_var=no"
28548 rm -f conftest.err conftest.$ac_objext \
28549 conftest$ac_exeext conftest.$ac_ext
28551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28553 if test `eval echo '${'$as_ac_var'}'` = yes; then
28555 cat >>confdefs.h <<_ACEOF
28556 #define CRAY_STACKSEG_END $ac_func
28565 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28566 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28567 if test "${ac_cv_c_stack_direction+set}" = set; then
28568 echo $ECHO_N "(cached) $ECHO_C" >&6
28570 if test "$cross_compiling" = yes; then
28571 ac_cv_c_stack_direction=0
28573 cat >conftest.$ac_ext <<_ACEOF
28576 cat confdefs.h >>conftest.$ac_ext
28577 cat >>conftest.$ac_ext <<_ACEOF
28578 /* end confdefs.h. */
28580 find_stack_direction ()
28582 static char *addr = 0;
28587 return find_stack_direction ();
28590 return (&dummy > addr) ? 1 : -1;
28596 exit (find_stack_direction () < 0);
28599 rm -f conftest$ac_exeext
28600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28601 (eval $ac_link) 2>&5
28603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28606 (eval $ac_try) 2>&5
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); }; }; then
28610 ac_cv_c_stack_direction=1
28612 echo "$as_me: program exited with status $ac_status" >&5
28613 echo "$as_me: failed program was:" >&5
28614 sed 's/^/| /' conftest.$ac_ext >&5
28616 ( exit $ac_status )
28617 ac_cv_c_stack_direction=-1
28619 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28622 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28623 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28625 cat >>confdefs.h <<_ACEOF
28626 #define STACK_DIRECTION $ac_cv_c_stack_direction
28633 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28634 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28635 if test "${ac_cv_func_rand48+set}" = set; then
28636 echo $ECHO_N "(cached) $ECHO_C" >&6
28639 ac_cpp='$CXXCPP $CPPFLAGS'
28640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28644 cat >conftest.$ac_ext <<_ACEOF
28647 cat confdefs.h >>conftest.$ac_ext
28648 cat >>conftest.$ac_ext <<_ACEOF
28649 /* end confdefs.h. */
28650 #include <stdlib.h>
28654 srand48(0);lrand48();drand48();
28659 rm -f conftest.$ac_objext
28660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28661 (eval $ac_compile) 2>conftest.er1
28663 grep -v '^ *+' conftest.er1 >conftest.err
28665 cat conftest.err >&5
28666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667 (exit $ac_status); } &&
28668 { ac_try='test -z "$ac_cxx_werror_flag"
28669 || test ! -s conftest.err'
28670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28671 (eval $ac_try) 2>&5
28673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28674 (exit $ac_status); }; } &&
28675 { ac_try='test -s conftest.$ac_objext'
28676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28677 (eval $ac_try) 2>&5
28679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28680 (exit $ac_status); }; }; then
28681 ac_cv_func_rand48=yes
28683 echo "$as_me: failed program was:" >&5
28684 sed 's/^/| /' conftest.$ac_ext >&5
28686 ac_cv_func_rand48=no
28688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28690 ac_cpp='$CPP $CPPFLAGS'
28691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28696 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28697 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28699 if test "$ac_cv_func_rand48" = "yes" ; then
28701 cat >>confdefs.h <<\_ACEOF
28702 #define HAVE_RAND48 1
28708 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28709 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28710 if test "${ac_cv_cxx_namespaces+set}" = set; then
28711 echo $ECHO_N "(cached) $ECHO_C" >&6
28714 ac_cpp='$CXXCPP $CPPFLAGS'
28715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28719 cat >conftest.$ac_ext <<_ACEOF
28722 cat confdefs.h >>conftest.$ac_ext
28723 cat >>conftest.$ac_ext <<_ACEOF
28724 /* end confdefs.h. */
28725 namespace Outer { namespace Inner { int i = 0; }}
28729 using namespace Outer::Inner; return i;
28734 rm -f conftest.$ac_objext
28735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28736 (eval $ac_compile) 2>conftest.er1
28738 grep -v '^ *+' conftest.er1 >conftest.err
28740 cat conftest.err >&5
28741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742 (exit $ac_status); } &&
28743 { ac_try='test -z "$ac_cxx_werror_flag"
28744 || test ! -s conftest.err'
28745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28746 (eval $ac_try) 2>&5
28748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); }; } &&
28750 { ac_try='test -s conftest.$ac_objext'
28751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28752 (eval $ac_try) 2>&5
28754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755 (exit $ac_status); }; }; then
28756 ac_cv_cxx_namespaces=yes
28758 echo "$as_me: failed program was:" >&5
28759 sed 's/^/| /' conftest.$ac_ext >&5
28761 ac_cv_cxx_namespaces=no
28763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28765 ac_cpp='$CPP $CPPFLAGS'
28766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28772 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28773 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28774 if test "$ac_cv_cxx_namespaces" = yes; then
28776 cat >>confdefs.h <<\_ACEOF
28777 #define HAVE_NAMESPACES
28782 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28783 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28784 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28785 echo $ECHO_N "(cached) $ECHO_C" >&6
28789 ac_cpp='$CXXCPP $CPPFLAGS'
28790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28794 cat >conftest.$ac_ext <<_ACEOF
28797 cat confdefs.h >>conftest.$ac_ext
28798 cat >>conftest.$ac_ext <<_ACEOF
28799 /* end confdefs.h. */
28800 #include <ext/hash_map>
28801 #ifdef HAVE_NAMESPACES
28802 using namespace std;
28807 hash_map<int, int> t;
28812 rm -f conftest.$ac_objext
28813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28814 (eval $ac_compile) 2>conftest.er1
28816 grep -v '^ *+' conftest.er1 >conftest.err
28818 cat conftest.err >&5
28819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); } &&
28821 { ac_try='test -z "$ac_cxx_werror_flag"
28822 || test ! -s conftest.err'
28823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28824 (eval $ac_try) 2>&5
28826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827 (exit $ac_status); }; } &&
28828 { ac_try='test -s conftest.$ac_objext'
28829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28830 (eval $ac_try) 2>&5
28832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833 (exit $ac_status); }; }; then
28834 ac_cv_cxx_have_std_ext_hash_map=yes
28836 echo "$as_me: failed program was:" >&5
28837 sed 's/^/| /' conftest.$ac_ext >&5
28839 ac_cv_cxx_have_std_ext_hash_map=no
28841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28843 ac_cpp='$CPP $CPPFLAGS'
28844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28849 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28850 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28851 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28854 cat >>confdefs.h <<\_ACEOF
28855 #define HAVE_STD_EXT_HASH_MAP 1
28860 cat >>confdefs.h <<\_ACEOF
28861 #define HAVE_STD_EXT_HASH_MAP 0
28866 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28867 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28868 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28869 echo $ECHO_N "(cached) $ECHO_C" >&6
28873 ac_cpp='$CXXCPP $CPPFLAGS'
28874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28878 cat >conftest.$ac_ext <<_ACEOF
28881 cat confdefs.h >>conftest.$ac_ext
28882 cat >>conftest.$ac_ext <<_ACEOF
28883 /* end confdefs.h. */
28884 #include <ext/hash_map>
28885 #ifdef HAVE_NAMESPACES
28886 using namespace __gnu_cxx;
28891 hash_map<int,int> t;
28896 rm -f conftest.$ac_objext
28897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28898 (eval $ac_compile) 2>conftest.er1
28900 grep -v '^ *+' conftest.er1 >conftest.err
28902 cat conftest.err >&5
28903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904 (exit $ac_status); } &&
28905 { ac_try='test -z "$ac_cxx_werror_flag"
28906 || test ! -s conftest.err'
28907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28908 (eval $ac_try) 2>&5
28910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28911 (exit $ac_status); }; } &&
28912 { ac_try='test -s conftest.$ac_objext'
28913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28914 (eval $ac_try) 2>&5
28916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28917 (exit $ac_status); }; }; then
28918 ac_cv_cxx_have_gnu_ext_hash_map=yes
28920 echo "$as_me: failed program was:" >&5
28921 sed 's/^/| /' conftest.$ac_ext >&5
28923 ac_cv_cxx_have_gnu_ext_hash_map=no
28925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28927 ac_cpp='$CPP $CPPFLAGS'
28928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28933 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28934 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28935 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28938 cat >>confdefs.h <<\_ACEOF
28939 #define HAVE_GNU_EXT_HASH_MAP 1
28944 cat >>confdefs.h <<\_ACEOF
28945 #define HAVE_GNU_EXT_HASH_MAP 0
28950 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28951 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28952 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28953 echo $ECHO_N "(cached) $ECHO_C" >&6
28957 ac_cpp='$CXXCPP $CPPFLAGS'
28958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28962 cat >conftest.$ac_ext <<_ACEOF
28965 cat confdefs.h >>conftest.$ac_ext
28966 cat >>conftest.$ac_ext <<_ACEOF
28967 /* end confdefs.h. */
28968 #include <hash_map>
28972 hash_map<int,int> t;
28977 rm -f conftest.$ac_objext
28978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28979 (eval $ac_compile) 2>conftest.er1
28981 grep -v '^ *+' conftest.er1 >conftest.err
28983 cat conftest.err >&5
28984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28985 (exit $ac_status); } &&
28986 { ac_try='test -z "$ac_cxx_werror_flag"
28987 || test ! -s conftest.err'
28988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28989 (eval $ac_try) 2>&5
28991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992 (exit $ac_status); }; } &&
28993 { ac_try='test -s conftest.$ac_objext'
28994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28995 (eval $ac_try) 2>&5
28997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998 (exit $ac_status); }; }; then
28999 ac_cv_cxx_have_global_hash_map=yes
29001 echo "$as_me: failed program was:" >&5
29002 sed 's/^/| /' conftest.$ac_ext >&5
29004 ac_cv_cxx_have_global_hash_map=no
29006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29008 ac_cpp='$CPP $CPPFLAGS'
29009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29014 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29015 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
29016 if test "$ac_cv_cxx_have_global_hash_map" = yes
29019 cat >>confdefs.h <<\_ACEOF
29020 #define HAVE_GLOBAL_HASH_MAP 1
29025 cat >>confdefs.h <<\_ACEOF
29026 #define HAVE_GLOBAL_HASH_MAP 0
29031 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29032 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29033 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29034 echo $ECHO_N "(cached) $ECHO_C" >&6
29038 ac_cpp='$CXXCPP $CPPFLAGS'
29039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29043 cat >conftest.$ac_ext <<_ACEOF
29046 cat confdefs.h >>conftest.$ac_ext
29047 cat >>conftest.$ac_ext <<_ACEOF
29048 /* end confdefs.h. */
29049 #include <ext/hash_set>
29050 #ifdef HAVE_NAMESPACES
29051 using namespace std;
29061 rm -f conftest.$ac_objext
29062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29063 (eval $ac_compile) 2>conftest.er1
29065 grep -v '^ *+' conftest.er1 >conftest.err
29067 cat conftest.err >&5
29068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069 (exit $ac_status); } &&
29070 { ac_try='test -z "$ac_cxx_werror_flag"
29071 || test ! -s conftest.err'
29072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29073 (eval $ac_try) 2>&5
29075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076 (exit $ac_status); }; } &&
29077 { ac_try='test -s conftest.$ac_objext'
29078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29079 (eval $ac_try) 2>&5
29081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29082 (exit $ac_status); }; }; then
29083 ac_cv_cxx_have_std_ext_hash_set=yes
29085 echo "$as_me: failed program was:" >&5
29086 sed 's/^/| /' conftest.$ac_ext >&5
29088 ac_cv_cxx_have_std_ext_hash_set=no
29090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29092 ac_cpp='$CPP $CPPFLAGS'
29093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29098 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29099 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29100 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29103 cat >>confdefs.h <<\_ACEOF
29104 #define HAVE_STD_EXT_HASH_SET 1
29109 cat >>confdefs.h <<\_ACEOF
29110 #define HAVE_STD_EXT_HASH_SET 0
29115 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29116 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29117 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29118 echo $ECHO_N "(cached) $ECHO_C" >&6
29122 ac_cpp='$CXXCPP $CPPFLAGS'
29123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29127 cat >conftest.$ac_ext <<_ACEOF
29130 cat confdefs.h >>conftest.$ac_ext
29131 cat >>conftest.$ac_ext <<_ACEOF
29132 /* end confdefs.h. */
29133 #include <ext/hash_set>
29134 #ifdef HAVE_NAMESPACES
29135 using namespace __gnu_cxx;
29145 rm -f conftest.$ac_objext
29146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29147 (eval $ac_compile) 2>conftest.er1
29149 grep -v '^ *+' conftest.er1 >conftest.err
29151 cat conftest.err >&5
29152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29153 (exit $ac_status); } &&
29154 { ac_try='test -z "$ac_cxx_werror_flag"
29155 || test ! -s conftest.err'
29156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29157 (eval $ac_try) 2>&5
29159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160 (exit $ac_status); }; } &&
29161 { ac_try='test -s conftest.$ac_objext'
29162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29163 (eval $ac_try) 2>&5
29165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166 (exit $ac_status); }; }; then
29167 ac_cv_cxx_have_gnu_ext_hash_set=yes
29169 echo "$as_me: failed program was:" >&5
29170 sed 's/^/| /' conftest.$ac_ext >&5
29172 ac_cv_cxx_have_gnu_ext_hash_set=no
29174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29176 ac_cpp='$CPP $CPPFLAGS'
29177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29182 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29183 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29184 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29187 cat >>confdefs.h <<\_ACEOF
29188 #define HAVE_GNU_EXT_HASH_SET 1
29193 cat >>confdefs.h <<\_ACEOF
29194 #define HAVE_GNU_EXT_HASH_SET 0
29199 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29200 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29201 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29202 echo $ECHO_N "(cached) $ECHO_C" >&6
29206 ac_cpp='$CXXCPP $CPPFLAGS'
29207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29211 cat >conftest.$ac_ext <<_ACEOF
29214 cat confdefs.h >>conftest.$ac_ext
29215 cat >>conftest.$ac_ext <<_ACEOF
29216 /* end confdefs.h. */
29217 #include <hash_set>
29221 hash_set<int> t; return 0;
29226 rm -f conftest.$ac_objext
29227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29228 (eval $ac_compile) 2>conftest.er1
29230 grep -v '^ *+' conftest.er1 >conftest.err
29232 cat conftest.err >&5
29233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234 (exit $ac_status); } &&
29235 { ac_try='test -z "$ac_cxx_werror_flag"
29236 || test ! -s conftest.err'
29237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29238 (eval $ac_try) 2>&5
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241 (exit $ac_status); }; } &&
29242 { ac_try='test -s conftest.$ac_objext'
29243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29244 (eval $ac_try) 2>&5
29246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29247 (exit $ac_status); }; }; then
29248 ac_cv_cxx_have_global_hash_set=yes
29250 echo "$as_me: failed program was:" >&5
29251 sed 's/^/| /' conftest.$ac_ext >&5
29253 ac_cv_cxx_have_global_hash_set=no
29255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29257 ac_cpp='$CPP $CPPFLAGS'
29258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29263 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29264 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29265 if test "$ac_cv_cxx_have_global_hash_set" = yes
29268 cat >>confdefs.h <<\_ACEOF
29269 #define HAVE_GLOBAL_HASH_SET 1
29274 cat >>confdefs.h <<\_ACEOF
29275 #define HAVE_GLOBAL_HASH_SET 0
29280 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29281 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29282 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29283 echo $ECHO_N "(cached) $ECHO_C" >&6
29287 ac_cpp='$CXXCPP $CPPFLAGS'
29288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29292 cat >conftest.$ac_ext <<_ACEOF
29295 cat confdefs.h >>conftest.$ac_ext
29296 cat >>conftest.$ac_ext <<_ACEOF
29297 /* end confdefs.h. */
29298 #include <iterator>
29299 #ifdef HAVE_NAMESPACES
29300 using namespace std;
29305 iterator<int,int,int> t; return 0;
29310 rm -f conftest.$ac_objext
29311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29312 (eval $ac_compile) 2>conftest.er1
29314 grep -v '^ *+' conftest.er1 >conftest.err
29316 cat conftest.err >&5
29317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); } &&
29319 { ac_try='test -z "$ac_cxx_werror_flag"
29320 || test ! -s conftest.err'
29321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29322 (eval $ac_try) 2>&5
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); }; } &&
29326 { ac_try='test -s conftest.$ac_objext'
29327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29328 (eval $ac_try) 2>&5
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); }; }; then
29332 ac_cv_cxx_have_std_iterator=yes
29334 echo "$as_me: failed program was:" >&5
29335 sed 's/^/| /' conftest.$ac_ext >&5
29337 ac_cv_cxx_have_std_iterator=no
29339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29341 ac_cpp='$CPP $CPPFLAGS'
29342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29348 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29349 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29350 if test "$ac_cv_cxx_have_std_iterator" = yes
29353 cat >>confdefs.h <<\_ACEOF
29354 #define HAVE_STD_ITERATOR 1
29359 cat >>confdefs.h <<\_ACEOF
29360 #define HAVE_STD_ITERATOR 0
29365 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29366 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29367 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29368 echo $ECHO_N "(cached) $ECHO_C" >&6
29372 ac_cpp='$CXXCPP $CPPFLAGS'
29373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29377 cat >conftest.$ac_ext <<_ACEOF
29380 cat confdefs.h >>conftest.$ac_ext
29381 cat >>conftest.$ac_ext <<_ACEOF
29382 /* end confdefs.h. */
29383 #include <iterator>
29384 #ifdef HAVE_NAMESPACES
29385 using namespace std;
29390 bidirectional_iterator<int,int> t; return 0;
29395 rm -f conftest.$ac_objext
29396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29397 (eval $ac_compile) 2>conftest.er1
29399 grep -v '^ *+' conftest.er1 >conftest.err
29401 cat conftest.err >&5
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); } &&
29404 { ac_try='test -z "$ac_cxx_werror_flag"
29405 || test ! -s conftest.err'
29406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29407 (eval $ac_try) 2>&5
29409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410 (exit $ac_status); }; } &&
29411 { ac_try='test -s conftest.$ac_objext'
29412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29413 (eval $ac_try) 2>&5
29415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416 (exit $ac_status); }; }; then
29417 ac_cv_cxx_have_bi_iterator=yes
29419 echo "$as_me: failed program was:" >&5
29420 sed 's/^/| /' conftest.$ac_ext >&5
29422 ac_cv_cxx_have_bi_iterator=no
29424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29426 ac_cpp='$CPP $CPPFLAGS'
29427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29433 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29434 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29435 if test "$ac_cv_cxx_have_bi_iterator" = yes
29438 cat >>confdefs.h <<\_ACEOF
29439 #define HAVE_BI_ITERATOR 1
29444 cat >>confdefs.h <<\_ACEOF
29445 #define HAVE_BI_ITERATOR 0
29450 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29451 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29452 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29453 echo $ECHO_N "(cached) $ECHO_C" >&6
29457 ac_cpp='$CXXCPP $CPPFLAGS'
29458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29462 cat >conftest.$ac_ext <<_ACEOF
29465 cat confdefs.h >>conftest.$ac_ext
29466 cat >>conftest.$ac_ext <<_ACEOF
29467 /* end confdefs.h. */
29468 #include <iterator>
29469 #ifdef HAVE_NAMESPACES
29470 using namespace std;
29475 forward_iterator<int,int> t; return 0;
29480 rm -f conftest.$ac_objext
29481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29482 (eval $ac_compile) 2>conftest.er1
29484 grep -v '^ *+' conftest.er1 >conftest.err
29486 cat conftest.err >&5
29487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488 (exit $ac_status); } &&
29489 { ac_try='test -z "$ac_cxx_werror_flag"
29490 || test ! -s conftest.err'
29491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29492 (eval $ac_try) 2>&5
29494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); }; } &&
29496 { ac_try='test -s conftest.$ac_objext'
29497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29498 (eval $ac_try) 2>&5
29500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501 (exit $ac_status); }; }; then
29502 ac_cv_cxx_have_fwd_iterator=yes
29504 echo "$as_me: failed program was:" >&5
29505 sed 's/^/| /' conftest.$ac_ext >&5
29507 ac_cv_cxx_have_fwd_iterator=no
29509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29511 ac_cpp='$CPP $CPPFLAGS'
29512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29518 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29519 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29520 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29523 cat >>confdefs.h <<\_ACEOF
29524 #define HAVE_FWD_ITERATOR 1
29529 cat >>confdefs.h <<\_ACEOF
29530 #define HAVE_FWD_ITERATOR 0
29536 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29537 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29538 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29539 echo $ECHO_N "(cached) $ECHO_C" >&6
29542 ac_cpp='$CXXCPP $CPPFLAGS'
29543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29547 cat >conftest.$ac_ext <<_ACEOF
29550 cat confdefs.h >>conftest.$ac_ext
29551 cat >>conftest.$ac_ext <<_ACEOF
29552 /* end confdefs.h. */
29562 rm -f conftest.$ac_objext
29563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29564 (eval $ac_compile) 2>conftest.er1
29566 grep -v '^ *+' conftest.er1 >conftest.err
29568 cat conftest.err >&5
29569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); } &&
29571 { ac_try='test -z "$ac_cxx_werror_flag"
29572 || test ! -s conftest.err'
29573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29574 (eval $ac_try) 2>&5
29576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29577 (exit $ac_status); }; } &&
29578 { ac_try='test -s conftest.$ac_objext'
29579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29580 (eval $ac_try) 2>&5
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); }; }; then
29584 ac_cv_func_isnan_in_math_h=yes
29586 echo "$as_me: failed program was:" >&5
29587 sed 's/^/| /' conftest.$ac_ext >&5
29589 ac_cv_func_isnan_in_math_h=no
29591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29593 ac_cpp='$CPP $CPPFLAGS'
29594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29599 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29600 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29603 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29605 cat >>confdefs.h <<\_ACEOF
29606 #define HAVE_ISNAN_IN_MATH_H 1
29611 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29612 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29613 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29614 echo $ECHO_N "(cached) $ECHO_C" >&6
29617 ac_cpp='$CXXCPP $CPPFLAGS'
29618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29622 cat >conftest.$ac_ext <<_ACEOF
29625 cat confdefs.h >>conftest.$ac_ext
29626 cat >>conftest.$ac_ext <<_ACEOF
29627 /* end confdefs.h. */
29637 rm -f conftest.$ac_objext
29638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29639 (eval $ac_compile) 2>conftest.er1
29641 grep -v '^ *+' conftest.er1 >conftest.err
29643 cat conftest.err >&5
29644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29645 (exit $ac_status); } &&
29646 { ac_try='test -z "$ac_cxx_werror_flag"
29647 || test ! -s conftest.err'
29648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29649 (eval $ac_try) 2>&5
29651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652 (exit $ac_status); }; } &&
29653 { ac_try='test -s conftest.$ac_objext'
29654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29655 (eval $ac_try) 2>&5
29657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29658 (exit $ac_status); }; }; then
29659 ac_cv_func_isnan_in_cmath=yes
29661 echo "$as_me: failed program was:" >&5
29662 sed 's/^/| /' conftest.$ac_ext >&5
29664 ac_cv_func_isnan_in_cmath=no
29666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29668 ac_cpp='$CPP $CPPFLAGS'
29669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29674 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29675 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29677 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29679 cat >>confdefs.h <<\_ACEOF
29680 #define HAVE_ISNAN_IN_CMATH 1
29685 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29686 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29687 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29688 echo $ECHO_N "(cached) $ECHO_C" >&6
29691 ac_cpp='$CXXCPP $CPPFLAGS'
29692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29696 cat >conftest.$ac_ext <<_ACEOF
29699 cat confdefs.h >>conftest.$ac_ext
29700 cat >>conftest.$ac_ext <<_ACEOF
29701 /* end confdefs.h. */
29706 float f; std::isnan(f);
29711 rm -f conftest.$ac_objext
29712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29713 (eval $ac_compile) 2>conftest.er1
29715 grep -v '^ *+' conftest.er1 >conftest.err
29717 cat conftest.err >&5
29718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719 (exit $ac_status); } &&
29720 { ac_try='test -z "$ac_cxx_werror_flag"
29721 || test ! -s conftest.err'
29722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29723 (eval $ac_try) 2>&5
29725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726 (exit $ac_status); }; } &&
29727 { ac_try='test -s conftest.$ac_objext'
29728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29729 (eval $ac_try) 2>&5
29731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732 (exit $ac_status); }; }; then
29733 ac_cv_func_std_isnan_in_cmath=yes
29735 echo "$as_me: failed program was:" >&5
29736 sed 's/^/| /' conftest.$ac_ext >&5
29738 ac_cv_func_std_isnan_in_cmath=no
29740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29742 ac_cpp='$CPP $CPPFLAGS'
29743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29748 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29749 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29751 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29753 cat >>confdefs.h <<\_ACEOF
29754 #define HAVE_STD_ISNAN_IN_CMATH 1
29760 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29761 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29762 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29763 echo $ECHO_N "(cached) $ECHO_C" >&6
29766 ac_cpp='$CXXCPP $CPPFLAGS'
29767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29771 cat >conftest.$ac_ext <<_ACEOF
29774 cat confdefs.h >>conftest.$ac_ext
29775 cat >>conftest.$ac_ext <<_ACEOF
29776 /* end confdefs.h. */
29786 rm -f conftest.$ac_objext
29787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29788 (eval $ac_compile) 2>conftest.er1
29790 grep -v '^ *+' conftest.er1 >conftest.err
29792 cat conftest.err >&5
29793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794 (exit $ac_status); } &&
29795 { ac_try='test -z "$ac_cxx_werror_flag"
29796 || test ! -s conftest.err'
29797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29798 (eval $ac_try) 2>&5
29800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801 (exit $ac_status); }; } &&
29802 { ac_try='test -s conftest.$ac_objext'
29803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29804 (eval $ac_try) 2>&5
29806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807 (exit $ac_status); }; }; then
29808 ac_cv_func_isinf_in_math_h=yes
29810 echo "$as_me: failed program was:" >&5
29811 sed 's/^/| /' conftest.$ac_ext >&5
29813 ac_cv_func_isinf_in_math_h=no
29815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29817 ac_cpp='$CPP $CPPFLAGS'
29818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29823 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29824 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29826 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29828 cat >>confdefs.h <<\_ACEOF
29829 #define HAVE_ISINF_IN_MATH_H 1
29834 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29835 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29836 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29837 echo $ECHO_N "(cached) $ECHO_C" >&6
29840 ac_cpp='$CXXCPP $CPPFLAGS'
29841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29845 cat >conftest.$ac_ext <<_ACEOF
29848 cat confdefs.h >>conftest.$ac_ext
29849 cat >>conftest.$ac_ext <<_ACEOF
29850 /* end confdefs.h. */
29860 rm -f conftest.$ac_objext
29861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29862 (eval $ac_compile) 2>conftest.er1
29864 grep -v '^ *+' conftest.er1 >conftest.err
29866 cat conftest.err >&5
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); } &&
29869 { ac_try='test -z "$ac_cxx_werror_flag"
29870 || test ! -s conftest.err'
29871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29872 (eval $ac_try) 2>&5
29874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875 (exit $ac_status); }; } &&
29876 { ac_try='test -s conftest.$ac_objext'
29877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29878 (eval $ac_try) 2>&5
29880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881 (exit $ac_status); }; }; then
29882 ac_cv_func_isinf_in_cmath=yes
29884 echo "$as_me: failed program was:" >&5
29885 sed 's/^/| /' conftest.$ac_ext >&5
29887 ac_cv_func_isinf_in_cmath=no
29889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29891 ac_cpp='$CPP $CPPFLAGS'
29892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29897 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29898 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29900 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29902 cat >>confdefs.h <<\_ACEOF
29903 #define HAVE_ISINF_IN_CMATH 1
29908 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29909 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29910 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29911 echo $ECHO_N "(cached) $ECHO_C" >&6
29914 ac_cpp='$CXXCPP $CPPFLAGS'
29915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29919 cat >conftest.$ac_ext <<_ACEOF
29922 cat confdefs.h >>conftest.$ac_ext
29923 cat >>conftest.$ac_ext <<_ACEOF
29924 /* end confdefs.h. */
29929 float f; std::isinf(f)}
29934 rm -f conftest.$ac_objext
29935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29936 (eval $ac_compile) 2>conftest.er1
29938 grep -v '^ *+' conftest.er1 >conftest.err
29940 cat conftest.err >&5
29941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942 (exit $ac_status); } &&
29943 { ac_try='test -z "$ac_cxx_werror_flag"
29944 || test ! -s conftest.err'
29945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29946 (eval $ac_try) 2>&5
29948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949 (exit $ac_status); }; } &&
29950 { ac_try='test -s conftest.$ac_objext'
29951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29952 (eval $ac_try) 2>&5
29954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29955 (exit $ac_status); }; }; then
29956 ac_cv_func_std_isinf_in_cmath=yes
29958 echo "$as_me: failed program was:" >&5
29959 sed 's/^/| /' conftest.$ac_ext >&5
29961 ac_cv_func_std_isinf_in_cmath=no
29963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29965 ac_cpp='$CPP $CPPFLAGS'
29966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29971 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29972 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29974 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29976 cat >>confdefs.h <<\_ACEOF
29977 #define HAVE_STD_ISINF_IN_CMATH 1
29982 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29983 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29984 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29985 echo $ECHO_N "(cached) $ECHO_C" >&6
29988 ac_cpp='$CXXCPP $CPPFLAGS'
29989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29993 cat >conftest.$ac_ext <<_ACEOF
29996 cat confdefs.h >>conftest.$ac_ext
29997 cat >>conftest.$ac_ext <<_ACEOF
29998 /* end confdefs.h. */
29999 #include <ieeefp.h>
30003 float f; finite(f);
30008 rm -f conftest.$ac_objext
30009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30010 (eval $ac_compile) 2>conftest.er1
30012 grep -v '^ *+' conftest.er1 >conftest.err
30014 cat conftest.err >&5
30015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016 (exit $ac_status); } &&
30017 { ac_try='test -z "$ac_cxx_werror_flag"
30018 || test ! -s conftest.err'
30019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30020 (eval $ac_try) 2>&5
30022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30023 (exit $ac_status); }; } &&
30024 { ac_try='test -s conftest.$ac_objext'
30025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30026 (eval $ac_try) 2>&5
30028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30029 (exit $ac_status); }; }; then
30030 ac_cv_func_finite_in_ieeefp_h=yes
30032 echo "$as_me: failed program was:" >&5
30033 sed 's/^/| /' conftest.$ac_ext >&5
30035 ac_cv_func_finite_in_ieeefp_h=no
30037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30039 ac_cpp='$CPP $CPPFLAGS'
30040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30045 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30046 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30048 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30050 cat >>confdefs.h <<\_ACEOF
30051 #define HAVE_FINITE_IN_IEEEFP_H 1
30060 for ac_header in stdlib.h unistd.h
30062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30064 echo "$as_me:$LINENO: checking for $ac_header" >&5
30065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30067 echo $ECHO_N "(cached) $ECHO_C" >&6
30069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30072 # Is the header compilable?
30073 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30074 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30075 cat >conftest.$ac_ext <<_ACEOF
30078 cat confdefs.h >>conftest.$ac_ext
30079 cat >>conftest.$ac_ext <<_ACEOF
30080 /* end confdefs.h. */
30081 $ac_includes_default
30082 #include <$ac_header>
30084 rm -f conftest.$ac_objext
30085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30086 (eval $ac_compile) 2>conftest.er1
30088 grep -v '^ *+' conftest.er1 >conftest.err
30090 cat conftest.err >&5
30091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092 (exit $ac_status); } &&
30093 { ac_try='test -z "$ac_c_werror_flag"
30094 || test ! -s conftest.err'
30095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30096 (eval $ac_try) 2>&5
30098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099 (exit $ac_status); }; } &&
30100 { ac_try='test -s conftest.$ac_objext'
30101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30102 (eval $ac_try) 2>&5
30104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30105 (exit $ac_status); }; }; then
30106 ac_header_compiler=yes
30108 echo "$as_me: failed program was:" >&5
30109 sed 's/^/| /' conftest.$ac_ext >&5
30111 ac_header_compiler=no
30113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30115 echo "${ECHO_T}$ac_header_compiler" >&6
30117 # Is the header present?
30118 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30120 cat >conftest.$ac_ext <<_ACEOF
30123 cat confdefs.h >>conftest.$ac_ext
30124 cat >>conftest.$ac_ext <<_ACEOF
30125 /* end confdefs.h. */
30126 #include <$ac_header>
30128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30131 grep -v '^ *+' conftest.er1 >conftest.err
30133 cat conftest.err >&5
30134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135 (exit $ac_status); } >/dev/null; then
30136 if test -s conftest.err; then
30137 ac_cpp_err=$ac_c_preproc_warn_flag
30138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30145 if test -z "$ac_cpp_err"; then
30146 ac_header_preproc=yes
30148 echo "$as_me: failed program was:" >&5
30149 sed 's/^/| /' conftest.$ac_ext >&5
30151 ac_header_preproc=no
30153 rm -f conftest.err conftest.$ac_ext
30154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30155 echo "${ECHO_T}$ac_header_preproc" >&6
30157 # So? What about this header?
30158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30160 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30163 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30164 ac_header_preproc=yes
30167 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30168 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30169 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30170 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30171 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30172 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30173 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30174 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30177 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30178 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30181 ## ----------------------------------- ##
30182 ## Report this to llvmbugs@cs.uiuc.edu ##
30183 ## ----------------------------------- ##
30186 sed "s/^/$as_me: WARNING: /" >&2
30189 echo "$as_me:$LINENO: checking for $ac_header" >&5
30190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30192 echo $ECHO_N "(cached) $ECHO_C" >&6
30194 eval "$as_ac_Header=\$ac_header_preproc"
30196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30201 cat >>confdefs.h <<_ACEOF
30202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30210 for ac_func in getpagesize
30212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30213 echo "$as_me:$LINENO: checking for $ac_func" >&5
30214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30215 if eval "test \"\${$as_ac_var+set}\" = set"; then
30216 echo $ECHO_N "(cached) $ECHO_C" >&6
30218 cat >conftest.$ac_ext <<_ACEOF
30221 cat confdefs.h >>conftest.$ac_ext
30222 cat >>conftest.$ac_ext <<_ACEOF
30223 /* end confdefs.h. */
30224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30226 #define $ac_func innocuous_$ac_func
30228 /* System header to define __stub macros and hopefully few prototypes,
30229 which can conflict with char $ac_func (); below.
30230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30231 <limits.h> exists even on freestanding compilers. */
30234 # include <limits.h>
30236 # include <assert.h>
30241 /* Override any gcc2 internal prototype to avoid an error. */
30246 /* We use char because int might match the return type of a gcc2
30247 builtin and then its argument prototype would still apply. */
30249 /* The GNU C library defines this for functions which it implements
30250 to always fail with ENOSYS. Some functions are actually named
30251 something starting with __ and the normal name is an alias. */
30252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30255 char (*f) () = $ac_func;
30264 return f != $ac_func;
30269 rm -f conftest.$ac_objext conftest$ac_exeext
30270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30271 (eval $ac_link) 2>conftest.er1
30273 grep -v '^ *+' conftest.er1 >conftest.err
30275 cat conftest.err >&5
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277 (exit $ac_status); } &&
30278 { ac_try='test -z "$ac_c_werror_flag"
30279 || test ! -s conftest.err'
30280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30281 (eval $ac_try) 2>&5
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); }; } &&
30285 { ac_try='test -s conftest$ac_exeext'
30286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30287 (eval $ac_try) 2>&5
30289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30290 (exit $ac_status); }; }; then
30291 eval "$as_ac_var=yes"
30293 echo "$as_me: failed program was:" >&5
30294 sed 's/^/| /' conftest.$ac_ext >&5
30296 eval "$as_ac_var=no"
30298 rm -f conftest.err conftest.$ac_objext \
30299 conftest$ac_exeext conftest.$ac_ext
30301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30303 if test `eval echo '${'$as_ac_var'}'` = yes; then
30304 cat >>confdefs.h <<_ACEOF
30305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30311 echo "$as_me:$LINENO: checking for working mmap" >&5
30312 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30313 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30314 echo $ECHO_N "(cached) $ECHO_C" >&6
30316 if test "$cross_compiling" = yes; then
30317 ac_cv_func_mmap_fixed_mapped=no
30319 cat >conftest.$ac_ext <<_ACEOF
30322 cat confdefs.h >>conftest.$ac_ext
30323 cat >>conftest.$ac_ext <<_ACEOF
30324 /* end confdefs.h. */
30325 $ac_includes_default
30326 /* malloc might have been renamed as rpl_malloc. */
30329 /* Thanks to Mike Haertel and Jim Avera for this test.
30330 Here is a matrix of mmap possibilities:
30331 mmap private not fixed
30332 mmap private fixed at somewhere currently unmapped
30333 mmap private fixed at somewhere already mapped
30334 mmap shared not fixed
30335 mmap shared fixed at somewhere currently unmapped
30336 mmap shared fixed at somewhere already mapped
30337 For private mappings, we should verify that changes cannot be read()
30338 back from the file, nor mmap's back from the file at a different
30339 address. (There have been systems where private was not correctly
30340 implemented like the infamous i386 svr4.0, and systems where the
30341 VM page cache was not coherent with the file system buffer cache
30342 like early versions of FreeBSD and possibly contemporary NetBSD.)
30343 For shared mappings, we should conversely verify that changes get
30344 propagated back to all the places they're supposed to be.
30346 Grep wants private fixed already mapped.
30347 The main things grep needs to know about mmap are:
30348 * does it exist and is it safe to write into the mmap'd area
30349 * how to use it (BSD variants) */
30352 #include <sys/mman.h>
30354 #if !STDC_HEADERS && !HAVE_STDLIB_H
30358 /* This mess was copied from the GNU getpagesize.h. */
30359 #if !HAVE_GETPAGESIZE
30360 /* Assume that all systems that can run configure have sys/param.h. */
30361 # if !HAVE_SYS_PARAM_H
30362 # define HAVE_SYS_PARAM_H 1
30365 # ifdef _SC_PAGESIZE
30366 # define getpagesize() sysconf(_SC_PAGESIZE)
30367 # else /* no _SC_PAGESIZE */
30368 # if HAVE_SYS_PARAM_H
30369 # include <sys/param.h>
30370 # ifdef EXEC_PAGESIZE
30371 # define getpagesize() EXEC_PAGESIZE
30372 # else /* no EXEC_PAGESIZE */
30374 # define getpagesize() NBPG * CLSIZE
30377 # endif /* no CLSIZE */
30378 # else /* no NBPG */
30380 # define getpagesize() NBPC
30381 # else /* no NBPC */
30383 # define getpagesize() PAGESIZE
30384 # endif /* PAGESIZE */
30385 # endif /* no NBPC */
30386 # endif /* no NBPG */
30387 # endif /* no EXEC_PAGESIZE */
30388 # else /* no HAVE_SYS_PARAM_H */
30389 # define getpagesize() 8192 /* punt totally */
30390 # endif /* no HAVE_SYS_PARAM_H */
30391 # endif /* no _SC_PAGESIZE */
30393 #endif /* no HAVE_GETPAGESIZE */
30398 char *data, *data2, *data3;
30402 pagesize = getpagesize ();
30404 /* First, make a file with some known garbage in it. */
30405 data = (char *) malloc (pagesize);
30408 for (i = 0; i < pagesize; ++i)
30409 *(data + i) = rand ();
30411 fd = creat ("conftest.mmap", 0600);
30414 if (write (fd, data, pagesize) != pagesize)
30418 /* Next, try to mmap the file at a fixed address which already has
30419 something else allocated at it. If we can, also make sure that
30420 we see the same garbage. */
30421 fd = open ("conftest.mmap", O_RDWR);
30424 data2 = (char *) malloc (2 * pagesize);
30427 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30428 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30429 MAP_PRIVATE | MAP_FIXED, fd, 0L))
30431 for (i = 0; i < pagesize; ++i)
30432 if (*(data + i) != *(data2 + i))
30435 /* Finally, make sure that changes to the mapped area do not
30436 percolate back to the file as seen by read(). (This is a bug on
30437 some variants of i386 svr4.0.) */
30438 for (i = 0; i < pagesize; ++i)
30439 *(data2 + i) = *(data2 + i) + 1;
30440 data3 = (char *) malloc (pagesize);
30443 if (read (fd, data3, pagesize) != pagesize)
30445 for (i = 0; i < pagesize; ++i)
30446 if (*(data + i) != *(data3 + i))
30452 rm -f conftest$ac_exeext
30453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30454 (eval $ac_link) 2>&5
30456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30459 (eval $ac_try) 2>&5
30461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30462 (exit $ac_status); }; }; then
30463 ac_cv_func_mmap_fixed_mapped=yes
30465 echo "$as_me: program exited with status $ac_status" >&5
30466 echo "$as_me: failed program was:" >&5
30467 sed 's/^/| /' conftest.$ac_ext >&5
30469 ( exit $ac_status )
30470 ac_cv_func_mmap_fixed_mapped=no
30472 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30475 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30476 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30477 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30479 cat >>confdefs.h <<\_ACEOF
30480 #define HAVE_MMAP 1
30484 rm -f conftest.mmap
30486 echo "$as_me:$LINENO: checking for mmap of files" >&5
30487 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30488 if test "${ac_cv_func_mmap_file+set}" = set; then
30489 echo $ECHO_N "(cached) $ECHO_C" >&6
30492 ac_cpp='$CPP $CPPFLAGS'
30493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30497 if test "$cross_compiling" = yes; then
30498 ac_cv_func_mmap_file=no
30500 cat >conftest.$ac_ext <<_ACEOF
30504 cat confdefs.h >>conftest.$ac_ext
30505 cat >>conftest.$ac_ext <<_ACEOF
30506 /* end confdefs.h. */
30508 #include <sys/types.h>
30509 #include <sys/mman.h>
30517 fd = creat ("foo",0777);
30518 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30520 return (fd != (int) MAP_FAILED);
30525 rm -f conftest$ac_exeext
30526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30527 (eval $ac_link) 2>&5
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30532 (eval $ac_try) 2>&5
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); }; }; then
30536 ac_cv_func_mmap_file=yes
30538 echo "$as_me: program exited with status $ac_status" >&5
30539 echo "$as_me: failed program was:" >&5
30540 sed 's/^/| /' conftest.$ac_ext >&5
30542 ( exit $ac_status )
30543 ac_cv_func_mmap_file=no
30545 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30548 ac_cpp='$CPP $CPPFLAGS'
30549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30555 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30556 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30557 if test "$ac_cv_func_mmap_file" = yes; then
30559 cat >>confdefs.h <<\_ACEOF
30560 #define HAVE_MMAP_FILE
30567 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30568 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30569 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30570 echo $ECHO_N "(cached) $ECHO_C" >&6
30572 if test "$llvm_cv_os_type" = "Interix" ; then
30573 ac_cv_need_dev_zero_for_mmap=yes
30575 ac_cv_need_dev_zero_for_mmap=no
30579 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30580 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30581 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30583 cat >>confdefs.h <<\_ACEOF
30584 #define NEED_DEV_ZERO_FOR_MMAP 1
30588 echo "$as_me:$LINENO: checking for mprotect" >&5
30589 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30590 if test "${ac_cv_func_mprotect+set}" = set; then
30591 echo $ECHO_N "(cached) $ECHO_C" >&6
30593 cat >conftest.$ac_ext <<_ACEOF
30596 cat confdefs.h >>conftest.$ac_ext
30597 cat >>conftest.$ac_ext <<_ACEOF
30598 /* end confdefs.h. */
30599 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30601 #define mprotect innocuous_mprotect
30603 /* System header to define __stub macros and hopefully few prototypes,
30604 which can conflict with char mprotect (); below.
30605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30606 <limits.h> exists even on freestanding compilers. */
30609 # include <limits.h>
30611 # include <assert.h>
30616 /* Override any gcc2 internal prototype to avoid an error. */
30621 /* We use char because int might match the return type of a gcc2
30622 builtin and then its argument prototype would still apply. */
30624 /* The GNU C library defines this for functions which it implements
30625 to always fail with ENOSYS. Some functions are actually named
30626 something starting with __ and the normal name is an alias. */
30627 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30630 char (*f) () = mprotect;
30639 return f != mprotect;
30644 rm -f conftest.$ac_objext conftest$ac_exeext
30645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30646 (eval $ac_link) 2>conftest.er1
30648 grep -v '^ *+' conftest.er1 >conftest.err
30650 cat conftest.err >&5
30651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652 (exit $ac_status); } &&
30653 { ac_try='test -z "$ac_c_werror_flag"
30654 || test ! -s conftest.err'
30655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30656 (eval $ac_try) 2>&5
30658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659 (exit $ac_status); }; } &&
30660 { ac_try='test -s conftest$ac_exeext'
30661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30662 (eval $ac_try) 2>&5
30664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665 (exit $ac_status); }; }; then
30666 ac_cv_func_mprotect=yes
30668 echo "$as_me: failed program was:" >&5
30669 sed 's/^/| /' conftest.$ac_ext >&5
30671 ac_cv_func_mprotect=no
30673 rm -f conftest.err conftest.$ac_objext \
30674 conftest$ac_exeext conftest.$ac_ext
30676 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30677 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30678 if test $ac_cv_func_mprotect = yes; then
30681 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30682 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30683 { (exit 1); exit 1; }; }
30687 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30689 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30690 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30692 if test "$ac_cv_func_mmap_file" = "no"
30694 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30695 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30699 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30700 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30701 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30702 echo $ECHO_N "(cached) $ECHO_C" >&6
30704 llvm_cv_llvmgcc_sanity="no"
30705 if test -x "$LLVMGCC" ; then
30706 cp /dev/null conftest.c
30707 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
30708 if test $? -eq 0 ; then
30709 llvm_cv_llvmgcc_sanity="yes"
30714 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30715 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30717 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30718 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30719 LLVMCC1=$llvmcc1path
30721 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30722 LLVMCC1PLUS=$llvmcc1pluspath
30724 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30725 LLVMGCCDIR=$llvmgccdir
30727 llvmgccversion=`"$LLVMGCC" -v 2>&1 | grep '^gcc version' | sed 's/^gcc version \([0-9.]*\).*/\1/'`
30728 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
30729 LLVMGCC_VERSION=$llvmgccversion
30731 LLVMGCC_MAJVERS=$llvmgccmajvers
30735 SHLIBEXT=$libltdl_cv_shlibext
30738 # Translate the various configuration directories and other basic
30739 # information into substitutions that will end up in Makefile.config.in
30740 # that these configured values can be used by the makefiles
30741 eval LLVM_PREFIX="${prefix}";
30742 eval LLVM_BINDIR="${prefix}/bin";
30743 eval LLVM_LIBDIR="${prefix}/lib";
30744 eval LLVM_DATADIR="${prefix}/share/llvm";
30745 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30746 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30747 eval LLVM_INCLUDEDIR="${prefix}/include";
30748 eval LLVM_INFODIR="${prefix}/info";
30749 eval LLVM_MANDIR="${prefix}/man";
30750 LLVM_CONFIGTIME=`date`
30762 # Place the various directores into the config.h file as #defines so that we
30763 # can know about the installation paths within LLVM.
30765 cat >>confdefs.h <<_ACEOF
30766 #define LLVM_PREFIX "$LLVM_PREFIX"
30770 cat >>confdefs.h <<_ACEOF
30771 #define LLVM_BINDIR "$LLVM_BINDIR"
30775 cat >>confdefs.h <<_ACEOF
30776 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30780 cat >>confdefs.h <<_ACEOF
30781 #define LLVM_DATADIR "$LLVM_DATADIR"
30785 cat >>confdefs.h <<_ACEOF
30786 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30790 cat >>confdefs.h <<_ACEOF
30791 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30795 cat >>confdefs.h <<_ACEOF
30796 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30800 cat >>confdefs.h <<_ACEOF
30801 #define LLVM_INFODIR "$LLVM_INFODIR"
30805 cat >>confdefs.h <<_ACEOF
30806 #define LLVM_MANDIR "$LLVM_MANDIR"
30810 cat >>confdefs.h <<_ACEOF
30811 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30816 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30818 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30820 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30822 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30824 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30827 ac_config_files="$ac_config_files Makefile.config"
30830 ac_config_files="$ac_config_files docs/doxygen.cfg"
30833 ac_config_files="$ac_config_files utils/llvm-config/llvm-config.in"
30836 ac_config_commands="$ac_config_commands setup"
30838 ac_config_commands="$ac_config_commands Makefile"
30841 ac_config_commands="$ac_config_commands Makefile.common"
30844 ac_config_commands="$ac_config_commands examples/Makefile"
30847 ac_config_commands="$ac_config_commands lib/Makefile"
30850 ac_config_commands="$ac_config_commands runtime/Makefile"
30853 ac_config_commands="$ac_config_commands test/Makefile"
30856 ac_config_commands="$ac_config_commands test/Makefile.tests"
30859 ac_config_commands="$ac_config_commands tools/Makefile"
30862 ac_config_commands="$ac_config_commands utils/Makefile"
30865 ac_config_commands="$ac_config_commands projects/Makefile"
30869 cat >confcache <<\_ACEOF
30870 # This file is a shell script that caches the results of configure
30871 # tests run on this system so they can be shared between configure
30872 # scripts and configure runs, see configure's option --config-cache.
30873 # It is not useful on other systems. If it contains results you don't
30874 # want to keep, you may remove or edit it.
30876 # config.status only pays attention to the cache file if you give it
30877 # the --recheck option to rerun configure.
30879 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30880 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30881 # following values.
30885 # The following way of writing the cache mishandles newlines in values,
30886 # but we know of no workaround that is simple, portable, and efficient.
30887 # So, don't put newlines in cache variables' values.
30888 # Ultrix sh set writes to stderr and can't be redirected directly,
30889 # and sets the high bit in the cache file unless we assign to the vars.
30892 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30894 # `set' does not quote correctly, so add quotes (double-quote
30895 # substitution turns \\\\ into \\, and sed turns \\ into \).
30898 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30901 # `set' quotes correctly as required by POSIX, so do not add quotes.
30903 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30910 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30912 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30914 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30915 if test -w $cache_file; then
30916 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30917 cat confcache >$cache_file
30919 echo "not updating unwritable cache $cache_file"
30924 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30925 # Let make expand exec_prefix.
30926 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30928 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30929 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30930 # trailing colons and then remove the whole line if VPATH becomes empty
30931 # (actually we leave an empty line to preserve line numbers).
30932 if test "x$srcdir" = x.; then
30933 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30934 s/:*\$(srcdir):*/:/;
30935 s/:*\${srcdir}:*/:/;
30937 s/^\([^=]*=[ ]*\):*/\1/;
30943 DEFS=-DHAVE_CONFIG_H
30947 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30948 # 1. Remove the extension, and $U if already installed.
30949 ac_i=`echo "$ac_i" |
30950 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30952 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30953 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30955 LIBOBJS=$ac_libobjs
30957 LTLIBOBJS=$ac_ltlibobjs
30960 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30961 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30962 Usually this means the macro was only invoked conditionally." >&5
30963 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30964 Usually this means the macro was only invoked conditionally." >&2;}
30965 { (exit 1); exit 1; }; }
30967 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30968 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30969 Usually this means the macro was only invoked conditionally." >&5
30970 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30971 Usually this means the macro was only invoked conditionally." >&2;}
30972 { (exit 1); exit 1; }; }
30975 : ${CONFIG_STATUS=./config.status}
30976 ac_clean_files_save=$ac_clean_files
30977 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30978 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30979 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30980 cat >$CONFIG_STATUS <<_ACEOF
30982 # Generated by $as_me.
30983 # Run this file to recreate the current configuration.
30984 # Compiler output produced by configure, useful for debugging
30985 # configure, is in config.log if it exists.
30988 ac_cs_recheck=false
30990 SHELL=\${CONFIG_SHELL-$SHELL}
30993 cat >>$CONFIG_STATUS <<\_ACEOF
30994 ## --------------------- ##
30995 ## M4sh Initialization. ##
30996 ## --------------------- ##
30998 # Be Bourne compatible
30999 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31002 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31003 # is contrary to our usage. Disable this feature.
31004 alias -g '${1+"$@"}'='"$@"'
31005 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31008 DUALCASE=1; export DUALCASE # for MKS sh
31010 # Support unset when possible.
31011 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31018 # Work around bugs in pre-3.0 UWIN ksh.
31019 $as_unset ENV MAIL MAILPATH
31026 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31027 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31028 LC_TELEPHONE LC_TIME
31030 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31031 eval $as_var=C; export $as_var
31037 # Required to use basename.
31038 if expr a : '\(a\)' >/dev/null 2>&1; then
31044 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31045 as_basename=basename
31051 # Name of the executable.
31052 as_me=`$as_basename "$0" ||
31053 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31054 X"$0" : 'X\(//\)$' \| \
31055 X"$0" : 'X\(/\)$' \| \
31056 . : '\(.\)' 2>/dev/null ||
31058 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31059 /^X\/\(\/\/\)$/{ s//\1/; q; }
31060 /^X\/\(\/\).*/{ s//\1/; q; }
31064 # PATH needs CR, and LINENO needs CR and PATH.
31065 # Avoid depending upon Character Ranges.
31066 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31067 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31068 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31069 as_cr_digits='0123456789'
31070 as_cr_alnum=$as_cr_Letters$as_cr_digits
31072 # The user is always right.
31073 if test "${PATH_SEPARATOR+set}" != set; then
31074 echo "#! /bin/sh" >conf$$.sh
31075 echo "exit 0" >>conf$$.sh
31077 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31086 as_lineno_1=$LINENO
31087 as_lineno_2=$LINENO
31088 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31089 test "x$as_lineno_1" != "x$as_lineno_2" &&
31090 test "x$as_lineno_3" = "x$as_lineno_2" || {
31091 # Find who we are. Look in the path if we contain no path at all
31094 *[\\/]* ) as_myself=$0 ;;
31095 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31096 for as_dir in $PATH
31099 test -z "$as_dir" && as_dir=.
31100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31105 # We did not find ourselves, most probably we were run as `sh COMMAND'
31106 # in which case we are not to be found in the path.
31107 if test "x$as_myself" = x; then
31110 if test ! -f "$as_myself"; then
31111 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31112 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31113 { (exit 1); exit 1; }; }
31115 case $CONFIG_SHELL in
31117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31118 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31121 test -z "$as_dir" && as_dir=.
31122 for as_base in sh bash ksh sh5; do
31125 if ("$as_dir/$as_base" -c '
31126 as_lineno_1=$LINENO
31127 as_lineno_2=$LINENO
31128 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31129 test "x$as_lineno_1" != "x$as_lineno_2" &&
31130 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
31131 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31132 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31133 CONFIG_SHELL=$as_dir/$as_base
31134 export CONFIG_SHELL
31135 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31143 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31144 # uniformly replaced by the line number. The first 'sed' inserts a
31145 # line-number line before each line; the second 'sed' does the real
31146 # work. The second script uses 'N' to pair each line-number line
31147 # with the numbered line, and appends trailing '-' during
31148 # substitution so that $LINENO is not a special case at line end.
31149 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31150 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31151 sed '=' <$as_myself |
31156 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31159 s,^['$as_cr_digits']*\n,,
31160 ' >$as_me.lineno &&
31161 chmod +x $as_me.lineno ||
31162 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31163 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31164 { (exit 1); exit 1; }; }
31166 # Don't try to exec as it changes $[0], causing all sort of problems
31167 # (the dirname of $[0] is not the place where we might find the
31168 # original and so on. Autoconf is especially sensible to this).
31170 # Exit status is that of the last command.
31175 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31176 *c*,-n*) ECHO_N= ECHO_C='
31178 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31179 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31182 if expr a : '\(a\)' >/dev/null 2>&1; then
31188 rm -f conf$$ conf$$.exe conf$$.file
31190 if ln -s conf$$.file conf$$ 2>/dev/null; then
31191 # We could just check for DJGPP; but this test a) works b) is more generic
31192 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31193 if test -f conf$$.exe; then
31194 # Don't use ln at all; we don't have any links
31199 elif ln conf$$.file conf$$ 2>/dev/null; then
31204 rm -f conf$$ conf$$.exe conf$$.file
31206 if mkdir -p . 2>/dev/null; then
31209 test -d ./-p && rmdir ./-p
31213 as_executable_p="test -f"
31215 # Sed expression to map a string onto a valid CPP name.
31216 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31218 # Sed expression to map a string onto a valid variable name.
31219 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31223 # We need space, tab and new line, in precisely that order.
31233 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31234 # report actual input values of CONFIG_FILES etc. instead of their
31235 # values after options handling. Logging --version etc. is OK.
31239 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31240 ## Running $as_me. ##
31245 This file was extended by llvm $as_me 1.7cvs, which was
31246 generated by GNU Autoconf 2.59. Invocation command line was
31248 CONFIG_FILES = $CONFIG_FILES
31249 CONFIG_HEADERS = $CONFIG_HEADERS
31250 CONFIG_LINKS = $CONFIG_LINKS
31251 CONFIG_COMMANDS = $CONFIG_COMMANDS
31255 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31259 # Files that config.status was made for.
31260 if test -n "$ac_config_files"; then
31261 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31264 if test -n "$ac_config_headers"; then
31265 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31268 if test -n "$ac_config_links"; then
31269 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31272 if test -n "$ac_config_commands"; then
31273 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31276 cat >>$CONFIG_STATUS <<\_ACEOF
31279 \`$as_me' instantiates files from templates according to the
31280 current configuration.
31282 Usage: $0 [OPTIONS] [FILE]...
31284 -h, --help print this help, then exit
31285 -V, --version print version number, then exit
31286 -q, --quiet do not print progress messages
31287 -d, --debug don't remove temporary files
31288 --recheck update $as_me by reconfiguring in the same conditions
31289 --file=FILE[:TEMPLATE]
31290 instantiate the configuration file FILE
31291 --header=FILE[:TEMPLATE]
31292 instantiate the configuration header FILE
31294 Configuration files:
31297 Configuration headers:
31300 Configuration commands:
31303 Report bugs to <bug-autoconf@gnu.org>."
31306 cat >>$CONFIG_STATUS <<_ACEOF
31308 llvm config.status 1.7cvs
31309 configured by $0, generated by GNU Autoconf 2.59,
31310 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31312 Copyright (C) 2003 Free Software Foundation, Inc.
31313 This config.status script is free software; the Free Software Foundation
31314 gives unlimited permission to copy, distribute and modify it."
31319 cat >>$CONFIG_STATUS <<\_ACEOF
31320 # If no file are specified by the user, then we need to provide default
31321 # value. By we need to know if files were specified by the user.
31327 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31328 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31336 *) # This is not an option, so the user has probably given explicit
31339 ac_need_defaults=false;;
31343 # Handling of the options.
31345 cat >>$CONFIG_STATUS <<\_ACEOF
31346 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31348 --version | --vers* | -V )
31349 echo "$ac_cs_version"; exit 0 ;;
31351 # Conflict between --help and --header
31352 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31353 Try \`$0 --help' for more information." >&5
31354 echo "$as_me: error: ambiguous option: $1
31355 Try \`$0 --help' for more information." >&2;}
31356 { (exit 1); exit 1; }; };;
31357 --help | --hel | -h )
31358 echo "$ac_cs_usage"; exit 0 ;;
31359 --debug | --d* | -d )
31361 --file | --fil | --fi | --f )
31363 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31364 ac_need_defaults=false;;
31365 --header | --heade | --head | --hea )
31367 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31368 ac_need_defaults=false;;
31369 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31370 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31373 # This is an error.
31374 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31375 Try \`$0 --help' for more information." >&5
31376 echo "$as_me: error: unrecognized option: $1
31377 Try \`$0 --help' for more information." >&2;}
31378 { (exit 1); exit 1; }; } ;;
31380 *) ac_config_targets="$ac_config_targets $1" ;;
31386 ac_configure_extra_args=
31388 if $ac_cs_silent; then
31390 ac_configure_extra_args="$ac_configure_extra_args --silent"
31394 cat >>$CONFIG_STATUS <<_ACEOF
31395 if \$ac_cs_recheck; then
31396 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31397 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31402 cat >>$CONFIG_STATUS <<_ACEOF
31404 # INIT-COMMANDS section.
31407 llvm_src="${srcdir}"
31413 cat >>$CONFIG_STATUS <<\_ACEOF
31414 for ac_config_target in $ac_config_targets
31416 case "$ac_config_target" in
31417 # Handling of arguments.
31418 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31419 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31420 "utils/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES utils/llvm-config/llvm-config.in" ;;
31421 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31422 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31423 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31424 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31425 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31426 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31427 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31428 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31429 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31430 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31431 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31432 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31433 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31434 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31435 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31436 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31437 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31438 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31439 { (exit 1); exit 1; }; };;
31443 # If the user did not use the arguments to specify the items to instantiate,
31444 # then the envvar interface is used. Set only those that are not.
31445 # We use the long form for the default assignment because of an extremely
31446 # bizarre bug on SunOS 4.1.3.
31447 if $ac_need_defaults; then
31448 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31449 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31450 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31453 # Have a temporary directory for convenience. Make it in the build tree
31454 # simply because there is no reason to put it here, and in addition,
31455 # creating and moving files from /tmp can sometimes cause problems.
31456 # Create a temporary directory, and hook for its removal unless debugging.
31459 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31460 trap '{ (exit 1); exit 1; }' 1 2 13 15
31463 # Create a (secure) tmp directory for tmp files.
31466 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31467 test -n "$tmp" && test -d "$tmp"
31470 tmp=./confstat$$-$RANDOM
31471 (umask 077 && mkdir $tmp)
31474 echo "$me: cannot create a temporary directory in ." >&2
31475 { (exit 1); exit 1; }
31480 cat >>$CONFIG_STATUS <<_ACEOF
31483 # CONFIG_FILES section.
31486 # No need to generate the scripts if there are no CONFIG_FILES.
31487 # This happens for instance when ./config.status config.h
31488 if test -n "\$CONFIG_FILES"; then
31489 # Protect against being on the right side of a sed subst in config.status.
31490 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31491 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31492 s,@SHELL@,$SHELL,;t t
31493 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31494 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31495 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31496 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31497 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31498 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31499 s,@exec_prefix@,$exec_prefix,;t t
31500 s,@prefix@,$prefix,;t t
31501 s,@program_transform_name@,$program_transform_name,;t t
31502 s,@bindir@,$bindir,;t t
31503 s,@sbindir@,$sbindir,;t t
31504 s,@libexecdir@,$libexecdir,;t t
31505 s,@datadir@,$datadir,;t t
31506 s,@sysconfdir@,$sysconfdir,;t t
31507 s,@sharedstatedir@,$sharedstatedir,;t t
31508 s,@localstatedir@,$localstatedir,;t t
31509 s,@libdir@,$libdir,;t t
31510 s,@includedir@,$includedir,;t t
31511 s,@oldincludedir@,$oldincludedir,;t t
31512 s,@infodir@,$infodir,;t t
31513 s,@mandir@,$mandir,;t t
31514 s,@build_alias@,$build_alias,;t t
31515 s,@host_alias@,$host_alias,;t t
31516 s,@target_alias@,$target_alias,;t t
31517 s,@DEFS@,$DEFS,;t t
31518 s,@ECHO_C@,$ECHO_C,;t t
31519 s,@ECHO_N@,$ECHO_N,;t t
31520 s,@ECHO_T@,$ECHO_T,;t t
31521 s,@LIBS@,$LIBS,;t t
31522 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31523 s,@subdirs@,$subdirs,;t t
31524 s,@build@,$build,;t t
31525 s,@build_cpu@,$build_cpu,;t t
31526 s,@build_vendor@,$build_vendor,;t t
31527 s,@build_os@,$build_os,;t t
31528 s,@host@,$host,;t t
31529 s,@host_cpu@,$host_cpu,;t t
31530 s,@host_vendor@,$host_vendor,;t t
31531 s,@host_os@,$host_os,;t t
31532 s,@target@,$target,;t t
31533 s,@target_cpu@,$target_cpu,;t t
31534 s,@target_vendor@,$target_vendor,;t t
31535 s,@target_os@,$target_os,;t t
31537 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31538 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31539 s,@ARCH@,$ARCH,;t t
31540 s,@ENDIAN@,$ENDIAN,;t t
31542 s,@CFLAGS@,$CFLAGS,;t t
31543 s,@LDFLAGS@,$LDFLAGS,;t t
31544 s,@CPPFLAGS@,$CPPFLAGS,;t t
31545 s,@ac_ct_CC@,$ac_ct_CC,;t t
31546 s,@EXEEXT@,$EXEEXT,;t t
31547 s,@OBJEXT@,$OBJEXT,;t t
31548 s,@CVSBUILD@,$CVSBUILD,;t t
31549 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31550 s,@ENABLE_ASSERTIONS@,$ENABLE_ASSERTIONS,;t t
31551 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31553 s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
31554 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31555 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31556 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31559 s,@CXXFLAGS@,$CXXFLAGS,;t t
31560 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31562 s,@LEXLIB@,$LEXLIB,;t t
31563 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31564 s,@FLEX@,$FLEX,;t t
31565 s,@YACC@,$YACC,;t t
31566 s,@BISON@,$BISON,;t t
31567 s,@ifGNUmake@,$ifGNUmake,;t t
31568 s,@LN_S@,$LN_S,;t t
31571 s,@DATE@,$DATE,;t t
31572 s,@FIND@,$FIND,;t t
31573 s,@GREP@,$GREP,;t t
31574 s,@MKDIR@,$MKDIR,;t t
31576 s,@RANLIB@,$RANLIB,;t t
31577 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31581 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31583 s,@PERL@,$PERL,;t t
31584 s,@HAVE_PERL@,$HAVE_PERL,;t t
31585 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31586 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31587 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31588 s,@BZIP2@,$BZIP2,;t t
31590 s,@DOXYGEN@,$DOXYGEN,;t t
31591 s,@ETAGS@,$ETAGS,;t t
31592 s,@GROFF@,$GROFF,;t t
31593 s,@GZIP@,$GZIP,;t t
31594 s,@POD2HTML@,$POD2HTML,;t t
31595 s,@POD2MAN@,$POD2MAN,;t t
31596 s,@RUNTEST@,$RUNTEST,;t t
31597 s,@TCLSH@,$TCLSH,;t t
31599 s,@EGREP@,$EGREP,;t t
31600 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31601 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31602 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31603 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31604 s,@LIBADD_DL@,$LIBADD_DL,;t t
31605 s,@ECHO@,$ECHO,;t t
31607 s,@ac_ct_AR@,$ac_ct_AR,;t t
31608 s,@STRIP@,$STRIP,;t t
31609 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31610 s,@CXXCPP@,$CXXCPP,;t t
31612 s,@FFLAGS@,$FFLAGS,;t t
31613 s,@ac_ct_F77@,$ac_ct_F77,;t t
31614 s,@LIBTOOL@,$LIBTOOL,;t t
31615 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31616 s,@LLVMGCC@,$LLVMGCC,;t t
31617 s,@LLVMGXX@,$LLVMGXX,;t t
31618 s,@ALLOCA@,$ALLOCA,;t t
31619 s,@MMAP_FILE@,$MMAP_FILE,;t t
31620 s,@LLVMCC1@,$LLVMCC1,;t t
31621 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31622 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31623 s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
31624 s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
31625 s,@SHLIBEXT@,$SHLIBEXT,;t t
31626 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31627 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31628 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31629 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31630 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31631 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31632 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31633 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31634 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31635 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31636 s,@LIBOBJS@,$LIBOBJS,;t t
31637 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31642 cat >>$CONFIG_STATUS <<\_ACEOF
31643 # Split the substitutions into bite-sized pieces for seds with
31644 # small command number limits, like on Digital OSF/1 and HP-UX.
31645 ac_max_sed_lines=48
31646 ac_sed_frag=1 # Number of current file.
31647 ac_beg=1 # First line for current file.
31648 ac_end=$ac_max_sed_lines # Line after last line for current file.
31651 while $ac_more_lines; do
31652 if test $ac_beg -gt 1; then
31653 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31655 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31657 if test ! -s $tmp/subs.frag; then
31658 ac_more_lines=false
31660 # The purpose of the label and of the branching condition is to
31661 # speed up the sed processing (if there are no `@' at all, there
31662 # is no need to browse any of the substitutions).
31663 # These are the two extra sed commands mentioned above.
31665 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31666 if test -z "$ac_sed_cmds"; then
31667 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31669 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31671 ac_sed_frag=`expr $ac_sed_frag + 1`
31673 ac_end=`expr $ac_end + $ac_max_sed_lines`
31676 if test -z "$ac_sed_cmds"; then
31679 fi # test -n "$CONFIG_FILES"
31682 cat >>$CONFIG_STATUS <<\_ACEOF
31683 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31684 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31686 - | *:- | *:-:* ) # input from stdin
31688 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31689 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31690 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31691 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31692 * ) ac_file_in=$ac_file.in ;;
31695 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31696 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31697 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31698 X"$ac_file" : 'X\(//\)[^/]' \| \
31699 X"$ac_file" : 'X\(//\)$' \| \
31700 X"$ac_file" : 'X\(/\)' \| \
31701 . : '\(.\)' 2>/dev/null ||
31703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31705 /^X\(\/\/\)$/{ s//\1/; q; }
31706 /^X\(\/\).*/{ s//\1/; q; }
31708 { if $as_mkdir_p; then
31713 while test ! -d "$as_dir"; do
31714 as_dirs="$as_dir $as_dirs"
31715 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31716 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31717 X"$as_dir" : 'X\(//\)[^/]' \| \
31718 X"$as_dir" : 'X\(//\)$' \| \
31719 X"$as_dir" : 'X\(/\)' \| \
31720 . : '\(.\)' 2>/dev/null ||
31722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31724 /^X\(\/\/\)$/{ s//\1/; q; }
31725 /^X\(\/\).*/{ s//\1/; q; }
31728 test ! -n "$as_dirs" || mkdir $as_dirs
31729 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31730 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31731 { (exit 1); exit 1; }; }; }
31735 if test "$ac_dir" != .; then
31736 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31737 # A "../" for each directory in $ac_dir_suffix.
31738 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31740 ac_dir_suffix= ac_top_builddir=
31744 .) # No --srcdir option. We are building in place.
31746 if test -z "$ac_top_builddir"; then
31749 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31751 [\\/]* | ?:[\\/]* ) # Absolute path.
31752 ac_srcdir=$srcdir$ac_dir_suffix;
31753 ac_top_srcdir=$srcdir ;;
31754 *) # Relative path.
31755 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31756 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31759 # Do not use `cd foo && pwd` to compute absolute paths, because
31760 # the directories may not exist.
31762 .) ac_abs_builddir="$ac_dir";;
31765 .) ac_abs_builddir=`pwd`;;
31766 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31767 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31770 case $ac_abs_builddir in
31771 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31773 case ${ac_top_builddir}. in
31774 .) ac_abs_top_builddir=$ac_abs_builddir;;
31775 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31776 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31779 case $ac_abs_builddir in
31780 .) ac_abs_srcdir=$ac_srcdir;;
31783 .) ac_abs_srcdir=$ac_abs_builddir;;
31784 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31785 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31788 case $ac_abs_builddir in
31789 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31791 case $ac_top_srcdir in
31792 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31793 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31794 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31800 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31801 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31804 if test x"$ac_file" != x-; then
31805 { echo "$as_me:$LINENO: creating $ac_file" >&5
31806 echo "$as_me: creating $ac_file" >&6;}
31809 # Let's still pretend it is `configure' which instantiates (i.e., don't
31810 # use $as_me), people would be surprised to read:
31811 # /* config.h. Generated by config.status. */
31812 if test x"$ac_file" = x-; then
31815 configure_input="$ac_file. "
31817 configure_input=$configure_input"Generated from `echo $ac_file_in |
31818 sed 's,.*/,,'` by configure."
31820 # First look for the input files in the build tree, otherwise in the
31822 ac_file_inputs=`IFS=:
31823 for f in $ac_file_in; do
31825 -) echo $tmp/stdin ;;
31827 # Absolute (can't be DOS-style, as IFS=:)
31828 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31829 echo "$as_me: error: cannot find input file: $f" >&2;}
31830 { (exit 1); exit 1; }; }
31833 if test -f "$f"; then
31836 elif test -f "$srcdir/$f"; then
31841 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31842 echo "$as_me: error: cannot find input file: $f" >&2;}
31843 { (exit 1); exit 1; }; }
31846 done` || { (exit 1); exit 1; }
31848 cat >>$CONFIG_STATUS <<_ACEOF
31852 cat >>$CONFIG_STATUS <<\_ACEOF
31854 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31855 s,@configure_input@,$configure_input,;t t
31856 s,@srcdir@,$ac_srcdir,;t t
31857 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31858 s,@top_srcdir@,$ac_top_srcdir,;t t
31859 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31860 s,@builddir@,$ac_builddir,;t t
31861 s,@abs_builddir@,$ac_abs_builddir,;t t
31862 s,@top_builddir@,$ac_top_builddir,;t t
31863 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31864 s,@INSTALL@,$ac_INSTALL,;t t
31865 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31867 if test x"$ac_file" != x-; then
31868 mv $tmp/out $ac_file
31876 cat >>$CONFIG_STATUS <<\_ACEOF
31879 # CONFIG_HEADER section.
31882 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31883 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31885 # ac_d sets the value in "#define NAME VALUE" lines.
31886 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31887 ac_dB='[ ].*$,\1#\2'
31890 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31891 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31892 ac_uB='$,\1#\2define\3'
31896 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31897 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31899 - | *:- | *:-:* ) # input from stdin
31901 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31902 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31903 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31904 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31905 * ) ac_file_in=$ac_file.in ;;
31908 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31909 echo "$as_me: creating $ac_file" >&6;}
31911 # First look for the input files in the build tree, otherwise in the
31913 ac_file_inputs=`IFS=:
31914 for f in $ac_file_in; do
31916 -) echo $tmp/stdin ;;
31918 # Absolute (can't be DOS-style, as IFS=:)
31919 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31920 echo "$as_me: error: cannot find input file: $f" >&2;}
31921 { (exit 1); exit 1; }; }
31922 # Do quote $f, to prevent DOS paths from being IFS'd.
31925 if test -f "$f"; then
31928 elif test -f "$srcdir/$f"; then
31933 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31934 echo "$as_me: error: cannot find input file: $f" >&2;}
31935 { (exit 1); exit 1; }; }
31938 done` || { (exit 1); exit 1; }
31939 # Remove the trailing spaces.
31940 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31944 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31945 # `conftest.undefs', that substitutes the proper values into
31946 # config.h.in to produce config.h. The first handles `#define'
31947 # templates, and the second `#undef' templates.
31948 # And first: Protect against being on the right side of a sed subst in
31949 # config.status. Protect against being in an unquoted here document
31950 # in config.status.
31951 rm -f conftest.defines conftest.undefs
31952 # Using a here document instead of a string reduces the quoting nightmare.
31953 # Putting comments in sed scripts is not portable.
31955 # `end' is used to avoid that the second main sed command (meant for
31956 # 0-ary CPP macros) applies to n-ary macro definitions.
31957 # See the Autoconf documentation for `clear'.
31958 cat >confdef2sed.sed <<\_ACEOF
31963 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31965 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31968 # If some macros were called several times there might be several times
31969 # the same #defines, which is useless. Nevertheless, we may not want to
31970 # sort them, since we want the *last* AC-DEFINE to be honored.
31971 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31972 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31973 rm -f confdef2sed.sed
31975 # This sed command replaces #undef with comments. This is necessary, for
31976 # example, in the case of _POSIX_SOURCE, which is predefined and required
31977 # on some systems where configure will not decide to define it.
31978 cat >>conftest.undefs <<\_ACEOF
31979 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31982 # Break up conftest.defines because some shells have a limit on the size
31983 # of here documents, and old seds have small limits too (100 cmds).
31984 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31985 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31986 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31987 echo ' :' >>$CONFIG_STATUS
31988 rm -f conftest.tail
31989 while grep . conftest.defines >/dev/null
31991 # Write a limited-size here document to $tmp/defines.sed.
31992 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31993 # Speed up: don't consider the non `#define' lines.
31994 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31995 # Work around the forget-to-reset-the-flag bug.
31996 echo 't clr' >>$CONFIG_STATUS
31997 echo ': clr' >>$CONFIG_STATUS
31998 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32000 sed -f $tmp/defines.sed $tmp/in >$tmp/out
32002 mv $tmp/out $tmp/in
32004 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32005 rm -f conftest.defines
32006 mv conftest.tail conftest.defines
32008 rm -f conftest.defines
32009 echo ' fi # grep' >>$CONFIG_STATUS
32010 echo >>$CONFIG_STATUS
32012 # Break up conftest.undefs because some shells have a limit on the size
32013 # of here documents, and old seds have small limits too (100 cmds).
32014 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
32015 rm -f conftest.tail
32016 while grep . conftest.undefs >/dev/null
32018 # Write a limited-size here document to $tmp/undefs.sed.
32019 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32020 # Speed up: don't consider the non `#undef'
32021 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
32022 # Work around the forget-to-reset-the-flag bug.
32023 echo 't clr' >>$CONFIG_STATUS
32024 echo ': clr' >>$CONFIG_STATUS
32025 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32027 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32029 mv $tmp/out $tmp/in
32031 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32032 rm -f conftest.undefs
32033 mv conftest.tail conftest.undefs
32035 rm -f conftest.undefs
32037 cat >>$CONFIG_STATUS <<\_ACEOF
32038 # Let's still pretend it is `configure' which instantiates (i.e., don't
32039 # use $as_me), people would be surprised to read:
32040 # /* config.h. Generated by config.status. */
32041 if test x"$ac_file" = x-; then
32042 echo "/* Generated by configure. */" >$tmp/config.h
32044 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32046 cat $tmp/in >>$tmp/config.h
32048 if test x"$ac_file" != x-; then
32049 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32050 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32051 echo "$as_me: $ac_file is unchanged" >&6;}
32053 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32054 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32055 X"$ac_file" : 'X\(//\)[^/]' \| \
32056 X"$ac_file" : 'X\(//\)$' \| \
32057 X"$ac_file" : 'X\(/\)' \| \
32058 . : '\(.\)' 2>/dev/null ||
32060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32062 /^X\(\/\/\)$/{ s//\1/; q; }
32063 /^X\(\/\).*/{ s//\1/; q; }
32065 { if $as_mkdir_p; then
32070 while test ! -d "$as_dir"; do
32071 as_dirs="$as_dir $as_dirs"
32072 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32074 X"$as_dir" : 'X\(//\)[^/]' \| \
32075 X"$as_dir" : 'X\(//\)$' \| \
32076 X"$as_dir" : 'X\(/\)' \| \
32077 . : '\(.\)' 2>/dev/null ||
32079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32081 /^X\(\/\/\)$/{ s//\1/; q; }
32082 /^X\(\/\).*/{ s//\1/; q; }
32085 test ! -n "$as_dirs" || mkdir $as_dirs
32086 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32087 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32088 { (exit 1); exit 1; }; }; }
32091 mv $tmp/config.h $ac_file
32095 rm -f $tmp/config.h
32099 cat >>$CONFIG_STATUS <<\_ACEOF
32102 # CONFIG_COMMANDS section.
32104 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32105 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32106 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32107 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32108 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32109 X"$ac_dest" : 'X\(//\)[^/]' \| \
32110 X"$ac_dest" : 'X\(//\)$' \| \
32111 X"$ac_dest" : 'X\(/\)' \| \
32112 . : '\(.\)' 2>/dev/null ||
32114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32115 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32116 /^X\(\/\/\)$/{ s//\1/; q; }
32117 /^X\(\/\).*/{ s//\1/; q; }
32119 { if $as_mkdir_p; then
32124 while test ! -d "$as_dir"; do
32125 as_dirs="$as_dir $as_dirs"
32126 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32127 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32128 X"$as_dir" : 'X\(//\)[^/]' \| \
32129 X"$as_dir" : 'X\(//\)$' \| \
32130 X"$as_dir" : 'X\(/\)' \| \
32131 . : '\(.\)' 2>/dev/null ||
32133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32134 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32135 /^X\(\/\/\)$/{ s//\1/; q; }
32136 /^X\(\/\).*/{ s//\1/; q; }
32139 test ! -n "$as_dirs" || mkdir $as_dirs
32140 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32141 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32142 { (exit 1); exit 1; }; }; }
32146 if test "$ac_dir" != .; then
32147 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32148 # A "../" for each directory in $ac_dir_suffix.
32149 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32151 ac_dir_suffix= ac_top_builddir=
32155 .) # No --srcdir option. We are building in place.
32157 if test -z "$ac_top_builddir"; then
32160 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32162 [\\/]* | ?:[\\/]* ) # Absolute path.
32163 ac_srcdir=$srcdir$ac_dir_suffix;
32164 ac_top_srcdir=$srcdir ;;
32165 *) # Relative path.
32166 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32167 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32170 # Do not use `cd foo && pwd` to compute absolute paths, because
32171 # the directories may not exist.
32173 .) ac_abs_builddir="$ac_dir";;
32176 .) ac_abs_builddir=`pwd`;;
32177 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32178 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32181 case $ac_abs_builddir in
32182 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32184 case ${ac_top_builddir}. in
32185 .) ac_abs_top_builddir=$ac_abs_builddir;;
32186 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32187 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32190 case $ac_abs_builddir in
32191 .) ac_abs_srcdir=$ac_srcdir;;
32194 .) ac_abs_srcdir=$ac_abs_builddir;;
32195 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32196 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32199 case $ac_abs_builddir in
32200 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32202 case $ac_top_srcdir in
32203 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32204 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32205 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32210 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32211 echo "$as_me: executing $ac_dest commands" >&6;}
32213 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32214 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32215 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32216 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32217 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32218 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32219 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32220 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32221 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32222 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32223 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32224 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32225 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32226 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32227 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32228 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32229 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32230 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32231 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32232 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32237 cat >>$CONFIG_STATUS <<\_ACEOF
32239 { (exit 0); exit 0; }
32241 chmod +x $CONFIG_STATUS
32242 ac_clean_files=$ac_clean_files_save
32245 # configure is writing to config.log, and then calls config.status.
32246 # config.status does its own redirection, appending to config.log.
32247 # Unfortunately, on DOS this fails, as config.log is still kept open
32248 # by configure, so config.status won't be able to write to it; its
32249 # output is simply discarded. So we exec the FD to /dev/null,
32250 # effectively closing config.log, so it can be properly (re)opened and
32251 # appended to by config.status. When coming back to configure, we
32252 # need to make the FD available again.
32253 if test "$no_create" != yes; then
32255 ac_config_status_args=
32256 test "$silent" = yes &&
32257 ac_config_status_args="$ac_config_status_args --quiet"
32259 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32261 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32262 # would make configure fail if this is the last instruction.
32263 $ac_cs_success || { (exit 1); exit 1; }
32267 # CONFIG_SUBDIRS section.
32269 if test "$no_recursion" != yes; then
32271 # Remove --cache-file and --srcdir arguments so they do not pile up.
32272 ac_sub_configure_args=
32274 for ac_arg in $ac_configure_args; do
32275 if test -n "$ac_prev"; then
32280 -cache-file | --cache-file | --cache-fil | --cache-fi \
32281 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32282 ac_prev=cache_file ;;
32283 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32284 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32287 --config-cache | -C)
32289 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32291 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32293 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32295 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32297 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32301 # Always prepend --prefix to ensure using the same prefix
32302 # in subdir configurations.
32303 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32306 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32308 # Do not complain, so a configure script can configure whichever
32309 # parts of a large source tree are present.
32310 test -d $srcdir/$ac_dir || continue
32312 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32313 echo "$as_me: configuring in $ac_dir" >&6;}
32314 { if $as_mkdir_p; then
32319 while test ! -d "$as_dir"; do
32320 as_dirs="$as_dir $as_dirs"
32321 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32323 X"$as_dir" : 'X\(//\)[^/]' \| \
32324 X"$as_dir" : 'X\(//\)$' \| \
32325 X"$as_dir" : 'X\(/\)' \| \
32326 . : '\(.\)' 2>/dev/null ||
32328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32330 /^X\(\/\/\)$/{ s//\1/; q; }
32331 /^X\(\/\).*/{ s//\1/; q; }
32334 test ! -n "$as_dirs" || mkdir $as_dirs
32335 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32336 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32337 { (exit 1); exit 1; }; }; }
32341 if test "$ac_dir" != .; then
32342 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32343 # A "../" for each directory in $ac_dir_suffix.
32344 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32346 ac_dir_suffix= ac_top_builddir=
32350 .) # No --srcdir option. We are building in place.
32352 if test -z "$ac_top_builddir"; then
32355 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32357 [\\/]* | ?:[\\/]* ) # Absolute path.
32358 ac_srcdir=$srcdir$ac_dir_suffix;
32359 ac_top_srcdir=$srcdir ;;
32360 *) # Relative path.
32361 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32362 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32365 # Do not use `cd foo && pwd` to compute absolute paths, because
32366 # the directories may not exist.
32368 .) ac_abs_builddir="$ac_dir";;
32371 .) ac_abs_builddir=`pwd`;;
32372 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32373 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32376 case $ac_abs_builddir in
32377 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32379 case ${ac_top_builddir}. in
32380 .) ac_abs_top_builddir=$ac_abs_builddir;;
32381 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32382 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32385 case $ac_abs_builddir in
32386 .) ac_abs_srcdir=$ac_srcdir;;
32389 .) ac_abs_srcdir=$ac_abs_builddir;;
32390 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32391 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32394 case $ac_abs_builddir in
32395 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32397 case $ac_top_srcdir in
32398 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32399 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32400 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32407 # Check for guested configure; otherwise get Cygnus style configure.
32408 if test -f $ac_srcdir/configure.gnu; then
32409 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32410 elif test -f $ac_srcdir/configure; then
32411 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32412 elif test -f $ac_srcdir/configure.in; then
32413 ac_sub_configure=$ac_configure
32415 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32416 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32420 # The recursion is here.
32421 if test -n "$ac_sub_configure"; then
32422 # Make the cache file name correct relative to the subdirectory.
32423 case $cache_file in
32424 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32425 *) # Relative path.
32426 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32429 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32430 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32431 # The eval makes quoting arguments work.
32432 eval $ac_sub_configure $ac_sub_configure_args \
32433 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32434 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32435 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32436 { (exit 1); exit 1; }; }
32444 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32445 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32446 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32447 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32448 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32449 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32450 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32451 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32452 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32453 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32454 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}