2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.6cvs.
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.
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.6cvs'
429 PACKAGE_STRING='llvm 1.6cvs'
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 # Factoring default headers for most tests.
442 ac_includes_default="\
445 # include <sys/types.h>
448 # include <sys/stat.h>
459 # if !STDC_HEADERS && HAVE_MEMORY_H
465 # include <strings.h>
468 # include <inttypes.h>
478 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 ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN 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 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 SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
481 # Initialize some variables set by options.
483 ac_init_version=false
484 # The variables have the same names as the options, with
485 # dashes changed to underlines.
493 program_transform_name=s,x,x,
501 # Installation directory options.
502 # These are left unexpanded so users can "make install exec_prefix=/foo"
503 # and all the variables that are supposed to be based on exec_prefix
504 # by default will actually change.
505 # Use braces instead of parens because sh, perl, etc. also accept them.
506 bindir='${exec_prefix}/bin'
507 sbindir='${exec_prefix}/sbin'
508 libexecdir='${exec_prefix}/libexec'
509 datadir='${prefix}/share'
510 sysconfdir='${prefix}/etc'
511 sharedstatedir='${prefix}/com'
512 localstatedir='${prefix}/var'
513 libdir='${exec_prefix}/lib'
514 includedir='${prefix}/include'
515 oldincludedir='/usr/include'
516 infodir='${prefix}/info'
517 mandir='${prefix}/man'
522 # If the previous option needs an argument, assign it.
523 if test -n "$ac_prev"; then
524 eval "$ac_prev=\$ac_option"
529 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531 # Accept the important Cygnus configure options, so we can diagnose typos.
535 -bindir | --bindir | --bindi | --bind | --bin | --bi)
537 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
540 -build | --build | --buil | --bui | --bu)
541 ac_prev=build_alias ;;
542 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
543 build_alias=$ac_optarg ;;
545 -cache-file | --cache-file | --cache-fil | --cache-fi \
546 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
547 ac_prev=cache_file ;;
548 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
549 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
550 cache_file=$ac_optarg ;;
553 cache_file=config.cache ;;
555 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559 datadir=$ac_optarg ;;
561 -disable-* | --disable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 eval "enable_$ac_feature=no" ;;
570 -enable-* | --enable-*)
571 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
572 # Reject names that are not valid shell variable names.
573 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
574 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
575 { (exit 1); exit 1; }; }
576 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
581 eval "enable_$ac_feature='$ac_optarg'" ;;
583 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
584 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
585 | --exec | --exe | --ex)
586 ac_prev=exec_prefix ;;
587 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
588 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
589 | --exec=* | --exe=* | --ex=*)
590 exec_prefix=$ac_optarg ;;
592 -gas | --gas | --ga | --g)
593 # Obsolete; use --with-gas.
596 -help | --help | --hel | --he | -h)
598 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
599 ac_init_help=recursive ;;
600 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
601 ac_init_help=short ;;
603 -host | --host | --hos | --ho)
604 ac_prev=host_alias ;;
605 -host=* | --host=* | --hos=* | --ho=*)
606 host_alias=$ac_optarg ;;
608 -includedir | --includedir | --includedi | --included | --include \
609 | --includ | --inclu | --incl | --inc)
610 ac_prev=includedir ;;
611 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
612 | --includ=* | --inclu=* | --incl=* | --inc=*)
613 includedir=$ac_optarg ;;
615 -infodir | --infodir | --infodi | --infod | --info | --inf)
617 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
618 infodir=$ac_optarg ;;
620 -libdir | --libdir | --libdi | --libd)
622 -libdir=* | --libdir=* | --libdi=* | --libd=*)
625 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
626 | --libexe | --libex | --libe)
627 ac_prev=libexecdir ;;
628 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
629 | --libexe=* | --libex=* | --libe=*)
630 libexecdir=$ac_optarg ;;
632 -localstatedir | --localstatedir | --localstatedi | --localstated \
633 | --localstate | --localstat | --localsta | --localst \
634 | --locals | --local | --loca | --loc | --lo)
635 ac_prev=localstatedir ;;
636 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
637 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
638 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
639 localstatedir=$ac_optarg ;;
641 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
647 # Obsolete; use --without-fp.
650 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
651 | --no-cr | --no-c | -n)
654 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
655 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
658 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
659 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
660 | --oldin | --oldi | --old | --ol | --o)
661 ac_prev=oldincludedir ;;
662 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
663 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
664 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
665 oldincludedir=$ac_optarg ;;
667 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
672 -program-prefix | --program-prefix | --program-prefi | --program-pref \
673 | --program-pre | --program-pr | --program-p)
674 ac_prev=program_prefix ;;
675 -program-prefix=* | --program-prefix=* | --program-prefi=* \
676 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
677 program_prefix=$ac_optarg ;;
679 -program-suffix | --program-suffix | --program-suffi | --program-suff \
680 | --program-suf | --program-su | --program-s)
681 ac_prev=program_suffix ;;
682 -program-suffix=* | --program-suffix=* | --program-suffi=* \
683 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
684 program_suffix=$ac_optarg ;;
686 -program-transform-name | --program-transform-name \
687 | --program-transform-nam | --program-transform-na \
688 | --program-transform-n | --program-transform- \
689 | --program-transform | --program-transfor \
690 | --program-transfo | --program-transf \
691 | --program-trans | --program-tran \
692 | --progr-tra | --program-tr | --program-t)
693 ac_prev=program_transform_name ;;
694 -program-transform-name=* | --program-transform-name=* \
695 | --program-transform-nam=* | --program-transform-na=* \
696 | --program-transform-n=* | --program-transform-=* \
697 | --program-transform=* | --program-transfor=* \
698 | --program-transfo=* | --program-transf=* \
699 | --program-trans=* | --program-tran=* \
700 | --progr-tra=* | --program-tr=* | --program-t=*)
701 program_transform_name=$ac_optarg ;;
703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
704 | -silent | --silent | --silen | --sile | --sil)
707 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711 sbindir=$ac_optarg ;;
713 -sharedstatedir | --sharedstatedir | --sharedstatedi \
714 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
715 | --sharedst | --shareds | --shared | --share | --shar \
717 ac_prev=sharedstatedir ;;
718 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
719 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
720 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722 sharedstatedir=$ac_optarg ;;
724 -site | --site | --sit)
726 -site=* | --site=* | --sit=*)
729 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
734 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
735 | --syscon | --sysco | --sysc | --sys | --sy)
736 ac_prev=sysconfdir ;;
737 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
738 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
739 sysconfdir=$ac_optarg ;;
741 -target | --target | --targe | --targ | --tar | --ta | --t)
742 ac_prev=target_alias ;;
743 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
744 target_alias=$ac_optarg ;;
746 -v | -verbose | --verbose | --verbos | --verbo | --verb)
749 -version | --version | --versio | --versi | --vers | -V)
753 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
754 # Reject names that are not valid shell variable names.
755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756 { echo "$as_me: error: invalid package name: $ac_package" >&2
757 { (exit 1); exit 1; }; }
758 ac_package=`echo $ac_package| sed 's/-/_/g'`
760 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
763 eval "with_$ac_package='$ac_optarg'" ;;
765 -without-* | --without-*)
766 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
767 # Reject names that are not valid shell variable names.
768 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
769 { echo "$as_me: error: invalid package name: $ac_package" >&2
770 { (exit 1); exit 1; }; }
771 ac_package=`echo $ac_package | sed 's/-/_/g'`
772 eval "with_$ac_package=no" ;;
775 # Obsolete; use --with-x.
778 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
779 | --x-incl | --x-inc | --x-in | --x-i)
780 ac_prev=x_includes ;;
781 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
782 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
783 x_includes=$ac_optarg ;;
785 -x-libraries | --x-libraries | --x-librarie | --x-librari \
786 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
787 ac_prev=x_libraries ;;
788 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
789 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
790 x_libraries=$ac_optarg ;;
792 -*) { echo "$as_me: error: unrecognized option: $ac_option
793 Try \`$0 --help' for more information." >&2
794 { (exit 1); exit 1; }; }
798 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
799 # Reject names that are not valid shell variable names.
800 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
801 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
802 { (exit 1); exit 1; }; }
803 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
804 eval "$ac_envvar='$ac_optarg'"
808 # FIXME: should be removed in autoconf 3.0.
809 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
810 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
811 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
812 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
818 if test -n "$ac_prev"; then
819 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
820 { echo "$as_me: error: missing argument to $ac_option" >&2
821 { (exit 1); exit 1; }; }
824 # Be sure to have absolute paths.
825 for ac_var in exec_prefix prefix
827 eval ac_val=$`echo $ac_var`
829 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
835 # Be sure to have absolute paths.
836 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
837 localstatedir libdir includedir oldincludedir infodir mandir
839 eval ac_val=$`echo $ac_var`
841 [\\/$]* | ?:[\\/]* ) ;;
842 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
843 { (exit 1); exit 1; }; };;
847 # There might be people who depend on the old broken behavior: `$host'
848 # used to hold the argument of --host etc.
849 # FIXME: To remove some day.
854 # FIXME: To remove some day.
855 if test "x$host_alias" != x; then
856 if test "x$build_alias" = x; then
857 cross_compiling=maybe
858 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
859 If a cross compiler is detected then cross compile mode will be used." >&2
860 elif test "x$build_alias" != "x$host_alias"; then
866 test -n "$host_alias" && ac_tool_prefix=$host_alias-
868 test "$silent" = yes && exec 6>/dev/null
871 # Find the source files, if location was not specified.
872 if test -z "$srcdir"; then
873 ac_srcdir_defaulted=yes
874 # Try the directory containing this script, then its parent.
875 ac_confdir=`(dirname "$0") 2>/dev/null ||
876 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
877 X"$0" : 'X\(//\)[^/]' \| \
878 X"$0" : 'X\(//\)$' \| \
879 X"$0" : 'X\(/\)' \| \
880 . : '\(.\)' 2>/dev/null ||
882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
884 /^X\(\/\/\)$/{ s//\1/; q; }
885 /^X\(\/\).*/{ s//\1/; q; }
888 if test ! -r $srcdir/$ac_unique_file; then
892 ac_srcdir_defaulted=no
894 if test ! -r $srcdir/$ac_unique_file; then
895 if test "$ac_srcdir_defaulted" = yes; then
896 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
897 { (exit 1); exit 1; }; }
899 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
900 { (exit 1); exit 1; }; }
903 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
904 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
905 { (exit 1); exit 1; }; }
906 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
907 ac_env_build_alias_set=${build_alias+set}
908 ac_env_build_alias_value=$build_alias
909 ac_cv_env_build_alias_set=${build_alias+set}
910 ac_cv_env_build_alias_value=$build_alias
911 ac_env_host_alias_set=${host_alias+set}
912 ac_env_host_alias_value=$host_alias
913 ac_cv_env_host_alias_set=${host_alias+set}
914 ac_cv_env_host_alias_value=$host_alias
915 ac_env_target_alias_set=${target_alias+set}
916 ac_env_target_alias_value=$target_alias
917 ac_cv_env_target_alias_set=${target_alias+set}
918 ac_cv_env_target_alias_value=$target_alias
919 ac_env_CC_set=${CC+set}
921 ac_cv_env_CC_set=${CC+set}
922 ac_cv_env_CC_value=$CC
923 ac_env_CFLAGS_set=${CFLAGS+set}
924 ac_env_CFLAGS_value=$CFLAGS
925 ac_cv_env_CFLAGS_set=${CFLAGS+set}
926 ac_cv_env_CFLAGS_value=$CFLAGS
927 ac_env_LDFLAGS_set=${LDFLAGS+set}
928 ac_env_LDFLAGS_value=$LDFLAGS
929 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
930 ac_cv_env_LDFLAGS_value=$LDFLAGS
931 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
932 ac_env_CPPFLAGS_value=$CPPFLAGS
933 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
934 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
935 ac_env_CPP_set=${CPP+set}
936 ac_env_CPP_value=$CPP
937 ac_cv_env_CPP_set=${CPP+set}
938 ac_cv_env_CPP_value=$CPP
939 ac_env_CXX_set=${CXX+set}
940 ac_env_CXX_value=$CXX
941 ac_cv_env_CXX_set=${CXX+set}
942 ac_cv_env_CXX_value=$CXX
943 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
944 ac_env_CXXFLAGS_value=$CXXFLAGS
945 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
946 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
947 ac_env_CXXCPP_set=${CXXCPP+set}
948 ac_env_CXXCPP_value=$CXXCPP
949 ac_cv_env_CXXCPP_set=${CXXCPP+set}
950 ac_cv_env_CXXCPP_value=$CXXCPP
951 ac_env_F77_set=${F77+set}
952 ac_env_F77_value=$F77
953 ac_cv_env_F77_set=${F77+set}
954 ac_cv_env_F77_value=$F77
955 ac_env_FFLAGS_set=${FFLAGS+set}
956 ac_env_FFLAGS_value=$FFLAGS
957 ac_cv_env_FFLAGS_set=${FFLAGS+set}
958 ac_cv_env_FFLAGS_value=$FFLAGS
961 # Report the --help message.
963 if test "$ac_init_help" = "long"; then
964 # Omit some internal or obsolete options to make the list less imposing.
965 # This message is too long to be a string in the A/UX 3.1 sh.
967 \`configure' configures llvm 1.6cvs to adapt to many kinds of systems.
969 Usage: $0 [OPTION]... [VAR=VALUE]...
971 To assign environment variables (e.g., CC, CFLAGS...), specify them as
972 VAR=VALUE. See below for descriptions of some of the useful variables.
974 Defaults for the options are specified in brackets.
977 -h, --help display this help and exit
978 --help=short display options specific to this package
979 --help=recursive display the short help of all the included packages
980 -V, --version display version information and exit
981 -q, --quiet, --silent do not print \`checking...' messages
982 --cache-file=FILE cache test results in FILE [disabled]
983 -C, --config-cache alias for \`--cache-file=config.cache'
984 -n, --no-create do not create output files
985 --srcdir=DIR find the sources in DIR [configure dir or \`..']
990 Installation directories:
991 --prefix=PREFIX install architecture-independent files in PREFIX
993 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
996 By default, \`make install' will install all the files in
997 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
998 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
999 for instance \`--prefix=\$HOME'.
1001 For better control, use the options below.
1003 Fine tuning of the installation directories:
1004 --bindir=DIR user executables [EPREFIX/bin]
1005 --sbindir=DIR system admin executables [EPREFIX/sbin]
1006 --libexecdir=DIR program executables [EPREFIX/libexec]
1007 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1008 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1009 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1010 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1011 --libdir=DIR object code libraries [EPREFIX/lib]
1012 --includedir=DIR C header files [PREFIX/include]
1013 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1014 --infodir=DIR info documentation [PREFIX/info]
1015 --mandir=DIR man documentation [PREFIX/man]
1021 --build=BUILD configure for building on BUILD [guessed]
1022 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1023 --target=TARGET configure for building compilers for TARGET [HOST]
1027 if test -n "$ac_init_help"; then
1028 case $ac_init_help in
1029 short | recursive ) echo "Configuration of llvm 1.6cvs:";;
1034 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1035 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1037 --enable-jit Enable Just In Time Compiling (default is YES)
1038 --enable-doxygen Build doxygen documentation (default is NO)
1039 --enable-target Build specific host targets:
1040 all,host-only,{target-name} (default=all)
1041 --enable-ltdl-install install libltdl
1042 --enable-shared[=PKGS]
1043 build shared libraries [default=yes]
1044 --enable-static[=PKGS]
1045 build static libraries [default=yes]
1046 --enable-fast-install[=PKGS]
1047 optimize for fast installation [default=yes]
1048 --disable-libtool-lock avoid locking (might break parallel builds)
1051 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1052 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1053 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1055 --with-tclinclude directory where tcl headers are
1056 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1057 --with-pic try to use only PIC/non-PIC objects [default=use
1060 include additional configurations [automatic]
1062 Some influential environment variables:
1063 CC C compiler command
1064 CFLAGS C compiler flags
1065 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1066 nonstandard directory <lib dir>
1067 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1068 headers in a nonstandard directory <include dir>
1070 CXX C++ compiler command
1071 CXXFLAGS C++ compiler flags
1072 CXXCPP C++ preprocessor
1073 F77 Fortran 77 compiler command
1074 FFLAGS Fortran 77 compiler flags
1076 Use these variables to override the choices made by `configure' or to help
1077 it to find libraries and programs with nonstandard names/locations.
1079 Report bugs to <llvmbugs@cs.uiuc.edu>.
1083 if test "$ac_init_help" = "recursive"; then
1084 # If there are subdirs, report their specific --help.
1086 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1087 test -d $ac_dir || continue
1090 if test "$ac_dir" != .; then
1091 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1092 # A "../" for each directory in $ac_dir_suffix.
1093 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1095 ac_dir_suffix= ac_top_builddir=
1099 .) # No --srcdir option. We are building in place.
1101 if test -z "$ac_top_builddir"; then
1104 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1106 [\\/]* | ?:[\\/]* ) # Absolute path.
1107 ac_srcdir=$srcdir$ac_dir_suffix;
1108 ac_top_srcdir=$srcdir ;;
1110 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1111 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1114 # Do not use `cd foo && pwd` to compute absolute paths, because
1115 # the directories may not exist.
1117 .) ac_abs_builddir="$ac_dir";;
1120 .) ac_abs_builddir=`pwd`;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1122 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1125 case $ac_abs_builddir in
1126 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1128 case ${ac_top_builddir}. in
1129 .) ac_abs_top_builddir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1134 case $ac_abs_builddir in
1135 .) ac_abs_srcdir=$ac_srcdir;;
1138 .) ac_abs_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1140 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1143 case $ac_abs_builddir in
1144 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1146 case $ac_top_srcdir in
1147 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1154 # Check for guested configure; otherwise get Cygnus style configure.
1155 if test -f $ac_srcdir/configure.gnu; then
1157 $SHELL $ac_srcdir/configure.gnu --help=recursive
1158 elif test -f $ac_srcdir/configure; then
1160 $SHELL $ac_srcdir/configure --help=recursive
1161 elif test -f $ac_srcdir/configure.ac ||
1162 test -f $ac_srcdir/configure.in; then
1164 $ac_configure --help
1166 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1172 test -n "$ac_init_help" && exit 0
1173 if $ac_init_version; then
1175 llvm configure 1.6cvs
1176 generated by GNU Autoconf 2.59
1178 Copyright (C) 2003 Free Software Foundation, Inc.
1179 This configure script is free software; the Free Software Foundation
1180 gives unlimited permission to copy, distribute and modify it.
1188 This file contains any messages produced by compilers while
1189 running configure, to aid debugging if configure makes a mistake.
1191 It was created by llvm $as_me 1.6cvs, which was
1192 generated by GNU Autoconf 2.59. Invocation command line was
1203 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1204 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1205 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1206 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1207 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1209 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1210 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1212 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1213 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1214 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1215 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1216 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1217 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1218 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1226 test -z "$as_dir" && as_dir=.
1227 echo "PATH: $as_dir"
1242 # Keep a trace of the command line.
1243 # Strip out --no-create and --no-recursion so they do not pile up.
1244 # Strip out --silent because we don't want to record it for future runs.
1245 # Also quote any args containing shell meta-characters.
1246 # Make two passes to allow for proper duplicate-argument suppression.
1251 ac_must_keep_next=false
1257 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259 | -silent | --silent | --silen | --sile | --sil)
1261 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1265 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1267 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1268 if test $ac_must_keep_next = true; then
1269 ac_must_keep_next=false # Got value, back to normal.
1272 *=* | --config-cache | -C | -disable-* | --disable-* \
1273 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1274 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1275 | -with-* | --with-* | -without-* | --without-* | --x)
1276 case "$ac_configure_args0 " in
1277 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1280 -* ) ac_must_keep_next=true ;;
1283 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1284 # Get rid of the leading space.
1290 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1291 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1293 # When interrupted or exit'd, cleanup temporary files, and complete
1294 # config.log. We remove comments because anyway the quotes in there
1295 # would cause problems or look ugly.
1296 # WARNING: Be sure not to use single quotes in there, as some shells,
1297 # such as our DU 5.0 friend, will then `close' the trap.
1298 trap 'exit_status=$?
1299 # Save into config.log some information that might help in debugging.
1304 ## ---------------- ##
1305 ## Cache variables. ##
1306 ## ---------------- ##
1309 # The following way of writing the cache mishandles newlines in values,
1312 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1315 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1320 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1327 ## ----------------- ##
1328 ## Output variables. ##
1329 ## ----------------- ##
1332 for ac_var in $ac_subst_vars
1334 eval ac_val=$`echo $ac_var`
1335 echo "$ac_var='"'"'$ac_val'"'"'"
1339 if test -n "$ac_subst_files"; then
1346 for ac_var in $ac_subst_files
1348 eval ac_val=$`echo $ac_var`
1349 echo "$ac_var='"'"'$ac_val'"'"'"
1354 if test -s confdefs.h; then
1361 sed "/^$/d" confdefs.h | sort
1364 test "$ac_signal" != 0 &&
1365 echo "$as_me: caught signal $ac_signal"
1366 echo "$as_me: exit $exit_status"
1368 rm -f core *.core &&
1369 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1372 for ac_signal in 1 2 13 15; do
1373 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1377 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1378 rm -rf conftest* confdefs.h
1379 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1382 # Predefined preprocessor variables.
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_NAME "$PACKAGE_NAME"
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1399 cat >>confdefs.h <<_ACEOF
1400 #define PACKAGE_STRING "$PACKAGE_STRING"
1404 cat >>confdefs.h <<_ACEOF
1405 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1409 # Let the site file select an alternate cache file if it wants to.
1410 # Prefer explicitly selected file to automatically selected ones.
1411 if test -z "$CONFIG_SITE"; then
1412 if test "x$prefix" != xNONE; then
1413 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1415 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1418 for ac_site_file in $CONFIG_SITE; do
1419 if test -r "$ac_site_file"; then
1420 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1421 echo "$as_me: loading site script $ac_site_file" >&6;}
1422 sed 's/^/| /' "$ac_site_file" >&5
1427 if test -r "$cache_file"; then
1428 # Some versions of bash will fail to source /dev/null (special
1429 # files actually), so we avoid doing that.
1430 if test -f "$cache_file"; then
1431 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1432 echo "$as_me: loading cache $cache_file" >&6;}
1434 [\\/]* | ?:[\\/]* ) . $cache_file;;
1435 *) . ./$cache_file;;
1439 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1440 echo "$as_me: creating cache $cache_file" >&6;}
1444 # Check that the precious variables saved in the cache have kept the same
1446 ac_cache_corrupted=false
1447 for ac_var in `(set) 2>&1 |
1448 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1449 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1450 eval ac_new_set=\$ac_env_${ac_var}_set
1451 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1452 eval ac_new_val="\$ac_env_${ac_var}_value"
1453 case $ac_old_set,$ac_new_set in
1455 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1456 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1457 ac_cache_corrupted=: ;;
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1464 if test "x$ac_old_val" != "x$ac_new_val"; then
1465 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1466 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1467 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1468 echo "$as_me: former value: $ac_old_val" >&2;}
1469 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1470 echo "$as_me: current value: $ac_new_val" >&2;}
1471 ac_cache_corrupted=:
1474 # Pass precious variables to config.status.
1475 if test "$ac_new_set" = set; then
1477 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1478 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1479 *) ac_arg=$ac_var=$ac_new_val ;;
1481 case " $ac_configure_args " in
1482 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1483 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1487 if $ac_cache_corrupted; then
1488 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1489 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1490 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1491 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1492 { (exit 1); exit 1; }; }
1496 ac_cpp='$CPP $CPPFLAGS'
1497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1537 for ac_dir in autoconf $srcdir/autoconf; do
1538 if test -f $ac_dir/install-sh; then
1540 ac_install_sh="$ac_aux_dir/install-sh -c"
1542 elif test -f $ac_dir/install.sh; then
1544 ac_install_sh="$ac_aux_dir/install.sh -c"
1546 elif test -f $ac_dir/shtool; then
1548 ac_install_sh="$ac_aux_dir/shtool install -c"
1552 if test -z "$ac_aux_dir"; then
1553 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1554 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1555 { (exit 1); exit 1; }; }
1557 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1558 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1559 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1562 if test ${srcdir} != "." ; then
1563 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1564 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1565 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1566 { (exit 1); exit 1; }; }
1570 for i in `ls ${srcdir}/projects`
1572 if test -d ${srcdir}/projects/${i} ; then
1577 subdirs="$subdirs projects/sample"
1581 subdirs="$subdirs projects/Stacker"
1585 subdirs="$subdirs projects/llvm-test"
1589 subdirs="$subdirs projects/llvm-reopt"
1593 subdirs="$subdirs projects/llvm-gcc"
1597 subdirs="$subdirs projects/llvm-java"
1601 subdirs="$subdirs projects/llvm-tv"
1605 subdirs="$subdirs projects/llvm-poolalloc"
1608 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1609 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1616 # Make sure we can run config.sub.
1617 $ac_config_sub sun4 >/dev/null 2>&1 ||
1618 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1619 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1620 { (exit 1); exit 1; }; }
1622 echo "$as_me:$LINENO: checking build system type" >&5
1623 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1624 if test "${ac_cv_build+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 ac_cv_build_alias=$build_alias
1628 test -z "$ac_cv_build_alias" &&
1629 ac_cv_build_alias=`$ac_config_guess`
1630 test -z "$ac_cv_build_alias" &&
1631 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1632 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1633 { (exit 1); exit 1; }; }
1634 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1640 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1641 echo "${ECHO_T}$ac_cv_build" >&6
1643 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648 echo "$as_me:$LINENO: checking host system type" >&5
1649 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1650 if test "${ac_cv_host+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 ac_cv_host_alias=$host_alias
1654 test -z "$ac_cv_host_alias" &&
1655 ac_cv_host_alias=$ac_cv_build_alias
1656 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1657 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1658 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1659 { (exit 1); exit 1; }; }
1662 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1663 echo "${ECHO_T}$ac_cv_host" >&6
1665 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1670 echo "$as_me:$LINENO: checking target system type" >&5
1671 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1672 if test "${ac_cv_target+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 ac_cv_target_alias=$target_alias
1676 test "x$ac_cv_target_alias" = "x" &&
1677 ac_cv_target_alias=$ac_cv_host_alias
1678 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1679 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1680 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1681 { (exit 1); exit 1; }; }
1684 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1685 echo "${ECHO_T}$ac_cv_target" >&6
1686 target=$ac_cv_target
1687 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1692 # The aliases save the names the user supplied, while $host etc.
1693 # will get canonicalized.
1694 test -n "$target_alias" &&
1695 test "$program_prefix$program_suffix$program_transform_name" = \
1697 program_prefix=${target_alias}-
1699 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1700 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1701 if test "${llvm_cv_os_type+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 llvm_cv_os_type="AIX"
1707 llvm_cv_platform_type="Unix" ;;
1709 llvm_cv_os_type="Cygwin"
1710 llvm_cv_platform_type="Unix" ;;
1712 llvm_cv_os_type="Darwin"
1713 llvm_cv_platform_type="Unix" ;;
1715 llvm_cv_os_type="FreeBSD"
1716 llvm_cv_platform_type="Unix" ;;
1718 llvm_cv_os_type="HP-UX"
1719 llvm_cv_platform_type="Unix" ;;
1721 llvm_cv_os_type="Interix"
1722 llvm_cv_platform_type="Unix" ;;
1724 llvm_cv_os_type="Linux"
1725 llvm_cv_platform_type="Unix" ;;
1727 llvm_cv_os_type="SunOS"
1728 llvm_cv_platform_type="Unix" ;;
1730 llvm_cv_os_type="Win32"
1731 llvm_cv_platform_type="Win32" ;;
1733 llvm_cv_os_type="MingW"
1734 llvm_cv_platform_type="Win32" ;;
1736 llvm_cv_os_type="Unknown"
1737 llvm_cv_platform_type="Unknown" ;;
1740 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1741 echo "${ECHO_T}$llvm_cv_os_type" >&6
1743 if test "$llvm_cv_os_type" = "Unknown" ; then
1744 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1745 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1746 { (exit 1); exit 1; }; }
1752 case $llvm_cv_platform_type in
1755 cat >>confdefs.h <<\_ACEOF
1756 #define LLVM_ON_UNIX 1
1766 cat >>confdefs.h <<\_ACEOF
1767 #define LLVM_ON_WIN32 1
1778 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1783 echo "$as_me:$LINENO: checking target architecture" >&5
1784 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1785 if test "${llvm_cv_target_arch+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 i?86-*) llvm_cv_target_arch="x86" ;;
1790 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
1791 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1792 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1793 alpha*-*) llvm_cv_target_arch="Alpha" ;;
1794 ia64-*) llvm_cv_target_arch="IA64" ;;
1795 *) llvm_cv_target_arch="Unknown" ;;
1798 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1799 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1801 if test "$llvm_cv_target_arch" = "Unknown" ; then
1802 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1803 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1806 ARCH=$llvm_cv_target_arch
1810 ac_cpp='$CPP $CPPFLAGS'
1811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1814 if test -n "$ac_tool_prefix"; then
1815 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1816 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 if test -n "$CC"; then
1823 ac_cv_prog_CC="$CC" # Let the user override the test.
1825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829 test -z "$as_dir" && as_dir=.
1830 for ac_exec_ext in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842 if test -n "$CC"; then
1843 echo "$as_me:$LINENO: result: $CC" >&5
1844 echo "${ECHO_T}$CC" >&6
1846 echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1851 if test -z "$ac_cv_prog_CC"; then
1853 # Extract the first word of "gcc", so it can be a program name with args.
1854 set dummy gcc; ac_word=$2
1855 echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 if test -n "$ac_ct_CC"; then
1861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 test -z "$as_dir" && as_dir=.
1868 for ac_exec_ext in '' $ac_executable_extensions; do
1869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870 ac_cv_prog_ac_ct_CC="gcc"
1871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1880 if test -n "$ac_ct_CC"; then
1881 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1882 echo "${ECHO_T}$ac_ct_CC" >&6
1884 echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1893 if test -z "$CC"; then
1894 if test -n "$ac_tool_prefix"; then
1895 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1896 set dummy ${ac_tool_prefix}cc; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_CC+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 if test -n "$CC"; then
1903 ac_cv_prog_CC="$CC" # Let the user override the test.
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 test -z "$as_dir" && as_dir=.
1910 for ac_exec_ext in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_CC="${ac_tool_prefix}cc"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922 if test -n "$CC"; then
1923 echo "$as_me:$LINENO: result: $CC" >&5
1924 echo "${ECHO_T}$CC" >&6
1926 echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1931 if test -z "$ac_cv_prog_CC"; then
1933 # Extract the first word of "cc", so it can be a program name with args.
1934 set dummy cc; ac_word=$2
1935 echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 if test -n "$ac_ct_CC"; then
1941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 ac_cv_prog_ac_ct_CC="cc"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1960 if test -n "$ac_ct_CC"; then
1961 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1962 echo "${ECHO_T}$ac_ct_CC" >&6
1964 echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1974 if test -z "$CC"; then
1975 # Extract the first word of "cc", so it can be a program name with args.
1976 set dummy cc; ac_word=$2
1977 echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979 if test "${ac_cv_prog_CC+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 if test -n "$CC"; then
1983 ac_cv_prog_CC="$CC" # Let the user override the test.
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 test -z "$as_dir" && as_dir=.
1991 for ac_exec_ext in '' $ac_executable_extensions; do
1992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1994 ac_prog_rejected=yes
1998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 if test $ac_prog_rejected = yes; then
2005 # We found a bogon in the path, so make sure we never use it.
2006 set dummy $ac_cv_prog_CC
2008 if test $# != 0; then
2009 # We chose a different compiler from the bogus one.
2010 # However, it has the same basename, so the bogon will be chosen
2011 # first if we set CC to just the basename; use the full file name.
2013 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2019 if test -n "$CC"; then
2020 echo "$as_me:$LINENO: result: $CC" >&5
2021 echo "${ECHO_T}$CC" >&6
2023 echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6
2028 if test -z "$CC"; then
2029 if test -n "$ac_tool_prefix"; then
2032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2034 echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2036 if test "${ac_cv_prog_CC+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 if test -n "$CC"; then
2040 ac_cv_prog_CC="$CC" # Let the user override the test.
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2049 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059 if test -n "$CC"; then
2060 echo "$as_me:$LINENO: result: $CC" >&5
2061 echo "${ECHO_T}$CC" >&6
2063 echo "$as_me:$LINENO: result: no" >&5
2064 echo "${ECHO_T}no" >&6
2067 test -n "$CC" && break
2070 if test -z "$CC"; then
2074 # Extract the first word of "$ac_prog", so it can be a program name with args.
2075 set dummy $ac_prog; ac_word=$2
2076 echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2078 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 if test -n "$ac_ct_CC"; then
2082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
2090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2091 ac_cv_prog_ac_ct_CC="$ac_prog"
2092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2101 if test -n "$ac_ct_CC"; then
2102 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2103 echo "${ECHO_T}$ac_ct_CC" >&6
2105 echo "$as_me:$LINENO: result: no" >&5
2106 echo "${ECHO_T}no" >&6
2109 test -n "$ac_ct_CC" && break
2118 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2119 See \`config.log' for more details." >&5
2120 echo "$as_me: error: no acceptable C compiler found in \$PATH
2121 See \`config.log' for more details." >&2;}
2122 { (exit 1); exit 1; }; }
2124 # Provide some information about the compiler.
2125 echo "$as_me:$LINENO:" \
2126 "checking for C compiler version" >&5
2127 ac_compiler=`set X $ac_compile; echo $2`
2128 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2129 (eval $ac_compiler --version </dev/null >&5) 2>&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }
2133 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2134 (eval $ac_compiler -v </dev/null >&5) 2>&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }
2138 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2139 (eval $ac_compiler -V </dev/null >&5) 2>&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2144 cat >conftest.$ac_ext <<_ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h. */
2159 ac_clean_files_save=$ac_clean_files
2160 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2161 # Try to create an executable without -o first, disregard a.out.
2162 # It will help us diagnose broken compilers, and finding out an intuition
2164 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2165 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2166 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2167 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2168 (eval $ac_link_default) 2>&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; then
2172 # Find the output, starting from the most likely. This scheme is
2173 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2176 # Be careful to initialize this variable, since it used to be cached.
2177 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2179 # b.out is created by i960 compilers.
2180 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2182 test -f "$ac_file" || continue
2184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2187 # This is the source file.
2190 # We found the default executable, but exeext='' is most
2194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2195 # FIXME: I believe we export ac_cv_exeext for Libtool,
2196 # but it would be cool to find out if it's true. Does anybody
2197 # maintain Libtool? --akim.
2205 echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2208 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&2;}
2212 { (exit 77); exit 77; }; }
2215 ac_exeext=$ac_cv_exeext
2216 echo "$as_me:$LINENO: result: $ac_file" >&5
2217 echo "${ECHO_T}$ac_file" >&6
2219 # Check the compiler produces executables we can run. If not, either
2220 # the compiler is broken, or we cross compile.
2221 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2223 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224 # If not cross compiling, check that we can run a simple program.
2225 if test "$cross_compiling" != yes; then
2226 if { ac_try='./$ac_file'
2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; }; then
2234 if test "$cross_compiling" = maybe; then
2237 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2238 If you meant to cross compile, use \`--host'.
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&2;}
2243 { (exit 1); exit 1; }; }
2247 echo "$as_me:$LINENO: result: yes" >&5
2248 echo "${ECHO_T}yes" >&6
2250 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2251 ac_clean_files=$ac_clean_files_save
2252 # Check the compiler produces executables we can run. If not, either
2253 # the compiler is broken, or we cross compile.
2254 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2255 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2256 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2257 echo "${ECHO_T}$cross_compiling" >&6
2259 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2260 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2262 (eval $ac_link) 2>&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; then
2266 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2267 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2268 # work properly (i.e., refer to `conftest.exe'), while it won't with
2270 for ac_file in conftest.exe conftest conftest.*; do
2271 test -f "$ac_file" || continue
2273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2274 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2281 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2282 See \`config.log' for more details." >&5
2283 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2284 See \`config.log' for more details." >&2;}
2285 { (exit 1); exit 1; }; }
2288 rm -f conftest$ac_cv_exeext
2289 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2290 echo "${ECHO_T}$ac_cv_exeext" >&6
2292 rm -f conftest.$ac_ext
2293 EXEEXT=$ac_cv_exeext
2295 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2296 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2297 if test "${ac_cv_objext+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 cat >conftest.$ac_ext <<_ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2315 rm -f conftest.o conftest.obj
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; then
2321 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2324 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2329 echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2332 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2333 See \`config.log' for more details." >&5
2334 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2335 See \`config.log' for more details." >&2;}
2336 { (exit 1); exit 1; }; }
2339 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2341 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2342 echo "${ECHO_T}$ac_cv_objext" >&6
2343 OBJEXT=$ac_cv_objext
2345 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2346 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2347 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 cat >conftest.$ac_ext <<_ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h. */
2368 rm -f conftest.$ac_objext
2369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2370 (eval $ac_compile) 2>conftest.er1
2372 grep -v '^ *+' conftest.er1 >conftest.err
2374 cat conftest.err >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try='test -z "$ac_c_werror_flag"
2378 || test ! -s conftest.err'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; } &&
2384 { ac_try='test -s conftest.$ac_objext'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2392 echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2398 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2401 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2402 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2403 GCC=`test $ac_compiler_gnu = yes && echo yes`
2404 ac_test_CFLAGS=${CFLAGS+set}
2405 ac_save_CFLAGS=$CFLAGS
2407 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2408 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2409 if test "${ac_cv_prog_cc_g+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2412 cat >conftest.$ac_ext <<_ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h. */
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429 (eval $ac_compile) 2>conftest.er1
2431 grep -v '^ *+' conftest.er1 >conftest.err
2433 cat conftest.err >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
2436 { ac_try='test -z "$ac_c_werror_flag"
2437 || test ! -s conftest.err'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; } &&
2443 { ac_try='test -s conftest.$ac_objext'
2444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; }; then
2451 echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2459 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2460 if test "$ac_test_CFLAGS" = set; then
2461 CFLAGS=$ac_save_CFLAGS
2462 elif test $ac_cv_prog_cc_g = yes; then
2463 if test "$GCC" = yes; then
2469 if test "$GCC" = yes; then
2475 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2476 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2477 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 ac_cv_prog_cc_stdc=no
2482 cat >conftest.$ac_ext <<_ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2490 #include <sys/types.h>
2491 #include <sys/stat.h>
2492 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2493 struct buf { int x; };
2494 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2495 static char *e (p, i)
2501 static char *f (char * (*g) (char **, int), char **p, ...)
2506 s = g (p, va_arg (v,int));
2511 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2512 function prototypes and stuff, but not '\xHH' hex character constants.
2513 These don't provoke an error unfortunately, instead are silently treated
2514 as 'x'. The following induces an error, until -std1 is added to get
2515 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2516 array size at least. It's necessary to write '\x00'==0 to get something
2517 that's true only with -std1. */
2518 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2520 int test (int i, double x);
2521 struct s1 {int (*f) (int a);};
2522 struct s2 {int (*f) (double a);};
2523 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2529 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2534 # Don't try gcc -ansi; that turns off useful extensions and
2535 # breaks some systems' header files.
2536 # AIX -qlanglvl=ansi
2537 # Ultrix and OSF/1 -std1
2538 # HP-UX 10.20 and later -Ae
2539 # HP-UX older versions -Aa -D_HPUX_SOURCE
2540 # SVR4 -Xc -D__EXTENSIONS__
2541 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2543 CC="$ac_save_CC $ac_arg"
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>conftest.er1
2548 grep -v '^ *+' conftest.er1 >conftest.err
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -z "$ac_c_werror_flag"
2554 || test ! -s conftest.err'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2566 ac_cv_prog_cc_stdc=$ac_arg
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2573 rm -f conftest.err conftest.$ac_objext
2575 rm -f conftest.$ac_ext conftest.$ac_objext
2580 case "x$ac_cv_prog_cc_stdc" in
2582 echo "$as_me:$LINENO: result: none needed" >&5
2583 echo "${ECHO_T}none needed" >&6 ;;
2585 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2586 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2587 CC="$CC $ac_cv_prog_cc_stdc" ;;
2590 # Some people use a C++ compiler to compile C. Since we use `exit',
2591 # in C++ we need to declare it. In case someone uses the same compiler
2592 # for both compiling C and C++ we need to have the C++ compiler decide
2593 # the declaration of exit, since it's the most demanding environment.
2594 cat >conftest.$ac_ext <<_ACEOF
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>conftest.er1
2603 grep -v '^ *+' conftest.er1 >conftest.err
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -z "$ac_c_werror_flag"
2609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 for ac_declaration in \
2623 'extern "C" void std::exit (int) throw (); using std::exit;' \
2624 'extern "C" void std::exit (int); using std::exit;' \
2625 'extern "C" void exit (int) throw ();' \
2626 'extern "C" void exit (int);' \
2629 cat >conftest.$ac_ext <<_ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2645 rm -f conftest.$ac_objext
2646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647 (eval $ac_compile) 2>conftest.er1
2649 grep -v '^ *+' conftest.er1 >conftest.err
2651 cat conftest.err >&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } &&
2654 { ac_try='test -z "$ac_c_werror_flag"
2655 || test ! -s conftest.err'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; } &&
2661 { ac_try='test -s conftest.$ac_objext'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; }; then
2669 echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2675 cat >conftest.$ac_ext <<_ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h. */
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692 (eval $ac_compile) 2>conftest.er1
2694 grep -v '^ *+' conftest.er1 >conftest.err
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
2699 { ac_try='test -z "$ac_c_werror_flag"
2700 || test ! -s conftest.err'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; } &&
2706 { ac_try='test -s conftest.$ac_objext'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2721 if test -n "$ac_declaration"; then
2722 echo '#ifdef __cplusplus' >>confdefs.h
2723 echo $ac_declaration >>confdefs.h
2724 echo '#endif' >>confdefs.h
2728 echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2734 ac_cpp='$CPP $CPPFLAGS'
2735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2741 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2742 if test "${ac_cv_c_bigendian+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 # See if sys/param.h defines the BYTE_ORDER macro.
2746 cat >conftest.$ac_ext <<_ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h. */
2752 #include <sys/types.h>
2753 #include <sys/param.h>
2758 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2766 rm -f conftest.$ac_objext
2767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768 (eval $ac_compile) 2>conftest.er1
2770 grep -v '^ *+' conftest.er1 >conftest.err
2772 cat conftest.err >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
2775 { ac_try='test -z "$ac_c_werror_flag"
2776 || test ! -s conftest.err'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; } &&
2782 { ac_try='test -s conftest.$ac_objext'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; }; then
2788 # It does; now see whether it defined to BIG_ENDIAN or not.
2789 cat >conftest.$ac_ext <<_ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2795 #include <sys/types.h>
2796 #include <sys/param.h>
2801 #if BYTE_ORDER != BIG_ENDIAN
2809 rm -f conftest.$ac_objext
2810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811 (eval $ac_compile) 2>conftest.er1
2813 grep -v '^ *+' conftest.er1 >conftest.err
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } &&
2818 { ac_try='test -z "$ac_c_werror_flag"
2819 || test ! -s conftest.err'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; } &&
2825 { ac_try='test -s conftest.$ac_objext'
2826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; }; then
2831 ac_cv_c_bigendian=yes
2833 echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2836 ac_cv_c_bigendian=no
2838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2840 echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2843 # It does not; compile a test program.
2844 if test "$cross_compiling" = yes; then
2845 # try to guess the endianness by grepping values into an object file
2846 ac_cv_c_bigendian=unknown
2847 cat >conftest.$ac_ext <<_ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h. */
2853 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2854 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2855 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2856 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2857 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2858 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2862 _ascii (); _ebcdic ();
2867 rm -f conftest.$ac_objext
2868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2869 (eval $ac_compile) 2>conftest.er1
2871 grep -v '^ *+' conftest.er1 >conftest.err
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } &&
2876 { ac_try='test -z "$ac_c_werror_flag"
2877 || test ! -s conftest.err'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; } &&
2883 { ac_try='test -s conftest.$ac_objext'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2889 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2890 ac_cv_c_bigendian=yes
2892 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2893 if test "$ac_cv_c_bigendian" = unknown; then
2894 ac_cv_c_bigendian=no
2896 # finding both strings is unlikely to happen, but who knows?
2897 ac_cv_c_bigendian=unknown
2901 echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907 cat >conftest.$ac_ext <<_ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2916 /* Are we little or big endian? From Harbison&Steele. */
2920 char c[sizeof (long)];
2923 exit (u.c[sizeof (long) - 1] == 1);
2926 rm -f conftest$ac_exeext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2928 (eval $ac_link) 2>&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2937 ac_cv_c_bigendian=no
2939 echo "$as_me: program exited with status $ac_status" >&5
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2944 ac_cv_c_bigendian=yes
2946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2951 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2952 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2953 case $ac_cv_c_bigendian in
2961 { { echo "$as_me:$LINENO: error: unknown endianness
2962 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2963 echo "$as_me: error: unknown endianness
2964 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2965 { (exit 1); exit 1; }; } ;;
2970 # Check whether --enable-optimized or --disable-optimized was given.
2971 if test "${enable_optimized+set}" = set; then
2972 enableval="$enable_optimized"
2977 if test ${enableval} = "no" ; then
2981 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2985 # Check whether --enable-jit or --disable-jit was given.
2986 if test "${enable_jit+set}" = set; then
2987 enableval="$enable_jit"
2992 if test ${enableval} = "no"
2997 case "$llvm_cv_target_arch" in
2998 x86) JIT=TARGET_HAS_JIT=1
3000 Sparc) JIT=TARGET_HAS_JIT=1
3002 PowerPC) JIT=TARGET_HAS_JIT=1
3015 # Check whether --enable-doxygen or --disable-doxygen was given.
3016 if test "${enable_doxygen+set}" = set; then
3017 enableval="$enable_doxygen"
3022 case "$enableval" in
3023 yes) ENABLE_DOXYGEN=1
3025 no) ENABLE_DOXYGEN=0
3027 default) ENABLE_DOXYGEN=0
3029 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3030 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3031 { (exit 1); exit 1; }; } ;;
3035 # Check whether --enable-targets or --disable-targets was given.
3036 if test "${enable_targets+set}" = set; then
3037 enableval="$enable_targets"
3042 case "$enableval" in
3043 all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;;
3045 case "$llvm_cv_target_arch" in
3046 x86) TARGETS_TO_BUILD="X86" ;;
3047 x86_64) TARGETS_TO_BUILD="X86" ;;
3048 Sparc) TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3049 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3050 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3051 IA64) TARGETS_TO_BUILD="IA64" ;;
3052 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3053 echo "$as_me: error: Can not set target to build" >&2;}
3054 { (exit 1); exit 1; }; } ;;
3057 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3059 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3060 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3061 sparc) TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;;
3062 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3063 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3064 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3065 skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3066 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3067 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3068 { (exit 1); exit 1; }; } ;;
3073 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3074 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3078 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3079 if test "${with_llvmgccdir+set}" = set; then
3080 withval="$with_llvmgccdir"
3086 default) WITH_LLVMGCCDIR=default ;;
3087 /*) WITH_LLVMGCCDIR=$withval ;;
3088 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3089 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3090 { (exit 1); exit 1; }; } ;;
3096 ac_cpp='$CPP $CPPFLAGS'
3097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3101 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3102 # On Suns, sometimes $CPP names a directory.
3103 if test -n "$CPP" && test -d "$CPP"; then
3106 if test -z "$CPP"; then
3107 if test "${ac_cv_prog_CPP+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 # Double quotes because CPP needs to be expanded
3111 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3114 for ac_c_preproc_warn_flag in '' yes
3116 # Use a header file that comes with gcc, so configuring glibc
3117 # with a fresh cross-compiler works.
3118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3119 # <limits.h> exists even on freestanding compilers.
3120 # On the NeXT, cc -E runs the code through the compiler's parser,
3121 # not just through cpp. "Syntax error" is here to catch this case.
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3129 # include <limits.h>
3131 # include <assert.h>
3135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3138 grep -v '^ *+' conftest.er1 >conftest.err
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } >/dev/null; then
3143 if test -s conftest.err; then
3144 ac_cpp_err=$ac_c_preproc_warn_flag
3145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3152 if test -z "$ac_cpp_err"; then
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3158 # Broken: fails on valid input.
3161 rm -f conftest.err conftest.$ac_ext
3163 # OK, works on sane cases. Now check whether non-existent headers
3164 # can be detected and how.
3165 cat >conftest.$ac_ext <<_ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3171 #include <ac_nonexistent.h>
3173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3176 grep -v '^ *+' conftest.er1 >conftest.err
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } >/dev/null; then
3181 if test -s conftest.err; then
3182 ac_cpp_err=$ac_c_preproc_warn_flag
3183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3190 if test -z "$ac_cpp_err"; then
3191 # Broken: success on invalid input.
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3197 # Passes both tests.
3201 rm -f conftest.err conftest.$ac_ext
3204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3205 rm -f conftest.err conftest.$ac_ext
3206 if $ac_preproc_ok; then
3218 echo "$as_me:$LINENO: result: $CPP" >&5
3219 echo "${ECHO_T}$CPP" >&6
3221 for ac_c_preproc_warn_flag in '' yes
3223 # Use a header file that comes with gcc, so configuring glibc
3224 # with a fresh cross-compiler works.
3225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3226 # <limits.h> exists even on freestanding compilers.
3227 # On the NeXT, cc -E runs the code through the compiler's parser,
3228 # not just through cpp. "Syntax error" is here to catch this case.
3229 cat >conftest.$ac_ext <<_ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3236 # include <limits.h>
3238 # include <assert.h>
3242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3245 grep -v '^ *+' conftest.er1 >conftest.err
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } >/dev/null; then
3250 if test -s conftest.err; then
3251 ac_cpp_err=$ac_c_preproc_warn_flag
3252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3259 if test -z "$ac_cpp_err"; then
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3265 # Broken: fails on valid input.
3268 rm -f conftest.err conftest.$ac_ext
3270 # OK, works on sane cases. Now check whether non-existent headers
3271 # can be detected and how.
3272 cat >conftest.$ac_ext <<_ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3278 #include <ac_nonexistent.h>
3280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3283 grep -v '^ *+' conftest.er1 >conftest.err
3285 cat conftest.err >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } >/dev/null; then
3288 if test -s conftest.err; then
3289 ac_cpp_err=$ac_c_preproc_warn_flag
3290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3297 if test -z "$ac_cpp_err"; then
3298 # Broken: success on invalid input.
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3304 # Passes both tests.
3308 rm -f conftest.err conftest.$ac_ext
3311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3312 rm -f conftest.err conftest.$ac_ext
3313 if $ac_preproc_ok; then
3316 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3317 See \`config.log' for more details." >&5
3318 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3319 See \`config.log' for more details." >&2;}
3320 { (exit 1); exit 1; }; }
3324 ac_cpp='$CPP $CPPFLAGS'
3325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330 ac_cpp='$CPP $CPPFLAGS'
3331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334 if test -n "$ac_tool_prefix"; then
3337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3339 echo "$as_me:$LINENO: checking for $ac_word" >&5
3340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3341 if test "${ac_cv_prog_CC+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 if test -n "$CC"; then
3345 ac_cv_prog_CC="$CC" # Let the user override the test.
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 if test -n "$CC"; then
3365 echo "$as_me:$LINENO: result: $CC" >&5
3366 echo "${ECHO_T}$CC" >&6
3368 echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3372 test -n "$CC" && break
3375 if test -z "$CC"; then
3379 # Extract the first word of "$ac_prog", so it can be a program name with args.
3380 set dummy $ac_prog; ac_word=$2
3381 echo "$as_me:$LINENO: checking for $ac_word" >&5
3382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3383 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 if test -n "$ac_ct_CC"; then
3387 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396 ac_cv_prog_ac_ct_CC="$ac_prog"
3397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3406 if test -n "$ac_ct_CC"; then
3407 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3408 echo "${ECHO_T}$ac_ct_CC" >&6
3410 echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3414 test -n "$ac_ct_CC" && break
3421 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3422 See \`config.log' for more details." >&5
3423 echo "$as_me: error: no acceptable C compiler found in \$PATH
3424 See \`config.log' for more details." >&2;}
3425 { (exit 1); exit 1; }; }
3427 # Provide some information about the compiler.
3428 echo "$as_me:$LINENO:" \
3429 "checking for C compiler version" >&5
3430 ac_compiler=`set X $ac_compile; echo $2`
3431 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3432 (eval $ac_compiler --version </dev/null >&5) 2>&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }
3436 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3437 (eval $ac_compiler -v </dev/null >&5) 2>&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }
3441 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3442 (eval $ac_compiler -V </dev/null >&5) 2>&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }
3447 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3448 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3449 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 cat >conftest.$ac_ext <<_ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3470 rm -f conftest.$ac_objext
3471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3472 (eval $ac_compile) 2>conftest.er1
3474 grep -v '^ *+' conftest.er1 >conftest.err
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } &&
3479 { ac_try='test -z "$ac_c_werror_flag"
3480 || test ! -s conftest.err'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; } &&
3486 { ac_try='test -s conftest.$ac_objext'
3487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; }; then
3494 echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3500 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3503 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3504 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3505 GCC=`test $ac_compiler_gnu = yes && echo yes`
3506 ac_test_CFLAGS=${CFLAGS+set}
3507 ac_save_CFLAGS=$CFLAGS
3509 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3510 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3511 if test "${ac_cv_prog_cc_g+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 cat >conftest.$ac_ext <<_ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3529 rm -f conftest.$ac_objext
3530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3531 (eval $ac_compile) 2>conftest.er1
3533 grep -v '^ *+' conftest.er1 >conftest.err
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } &&
3538 { ac_try='test -z "$ac_c_werror_flag"
3539 || test ! -s conftest.err'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; } &&
3545 { ac_try='test -s conftest.$ac_objext'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; }; then
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3560 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3561 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3562 if test "$ac_test_CFLAGS" = set; then
3563 CFLAGS=$ac_save_CFLAGS
3564 elif test $ac_cv_prog_cc_g = yes; then
3565 if test "$GCC" = yes; then
3571 if test "$GCC" = yes; then
3577 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3578 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3579 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 ac_cv_prog_cc_stdc=no
3584 cat >conftest.$ac_ext <<_ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3592 #include <sys/types.h>
3593 #include <sys/stat.h>
3594 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3595 struct buf { int x; };
3596 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3597 static char *e (p, i)
3603 static char *f (char * (*g) (char **, int), char **p, ...)
3608 s = g (p, va_arg (v,int));
3613 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3614 function prototypes and stuff, but not '\xHH' hex character constants.
3615 These don't provoke an error unfortunately, instead are silently treated
3616 as 'x'. The following induces an error, until -std1 is added to get
3617 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3618 array size at least. It's necessary to write '\x00'==0 to get something
3619 that's true only with -std1. */
3620 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3622 int test (int i, double x);
3623 struct s1 {int (*f) (int a);};
3624 struct s2 {int (*f) (double a);};
3625 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3631 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3636 # Don't try gcc -ansi; that turns off useful extensions and
3637 # breaks some systems' header files.
3638 # AIX -qlanglvl=ansi
3639 # Ultrix and OSF/1 -std1
3640 # HP-UX 10.20 and later -Ae
3641 # HP-UX older versions -Aa -D_HPUX_SOURCE
3642 # SVR4 -Xc -D__EXTENSIONS__
3643 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3645 CC="$ac_save_CC $ac_arg"
3646 rm -f conftest.$ac_objext
3647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3648 (eval $ac_compile) 2>conftest.er1
3650 grep -v '^ *+' conftest.er1 >conftest.err
3652 cat conftest.err >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } &&
3655 { ac_try='test -z "$ac_c_werror_flag"
3656 || test ! -s conftest.err'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; } &&
3662 { ac_try='test -s conftest.$ac_objext'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; }; then
3668 ac_cv_prog_cc_stdc=$ac_arg
3671 echo "$as_me: failed program was:" >&5
3672 sed 's/^/| /' conftest.$ac_ext >&5
3675 rm -f conftest.err conftest.$ac_objext
3677 rm -f conftest.$ac_ext conftest.$ac_objext
3682 case "x$ac_cv_prog_cc_stdc" in
3684 echo "$as_me:$LINENO: result: none needed" >&5
3685 echo "${ECHO_T}none needed" >&6 ;;
3687 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3688 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3689 CC="$CC $ac_cv_prog_cc_stdc" ;;
3692 # Some people use a C++ compiler to compile C. Since we use `exit',
3693 # in C++ we need to declare it. In case someone uses the same compiler
3694 # for both compiling C and C++ we need to have the C++ compiler decide
3695 # the declaration of exit, since it's the most demanding environment.
3696 cat >conftest.$ac_ext <<_ACEOF
3701 rm -f conftest.$ac_objext
3702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703 (eval $ac_compile) 2>conftest.er1
3705 grep -v '^ *+' conftest.er1 >conftest.err
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } &&
3710 { ac_try='test -z "$ac_c_werror_flag"
3711 || test ! -s conftest.err'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; } &&
3717 { ac_try='test -s conftest.$ac_objext'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; }; then
3723 for ac_declaration in \
3725 'extern "C" void std::exit (int) throw (); using std::exit;' \
3726 'extern "C" void std::exit (int); using std::exit;' \
3727 'extern "C" void exit (int) throw ();' \
3728 'extern "C" void exit (int);' \
3731 cat >conftest.$ac_ext <<_ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3747 rm -f conftest.$ac_objext
3748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3749 (eval $ac_compile) 2>conftest.er1
3751 grep -v '^ *+' conftest.er1 >conftest.err
3753 cat conftest.err >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } &&
3756 { ac_try='test -z "$ac_c_werror_flag"
3757 || test ! -s conftest.err'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; } &&
3763 { ac_try='test -s conftest.$ac_objext'
3764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; }; then
3771 echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3777 cat >conftest.$ac_ext <<_ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3792 rm -f conftest.$ac_objext
3793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3794 (eval $ac_compile) 2>conftest.er1
3796 grep -v '^ *+' conftest.er1 >conftest.err
3798 cat conftest.err >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } &&
3801 { ac_try='test -z "$ac_c_werror_flag"
3802 || test ! -s conftest.err'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; } &&
3808 { ac_try='test -s conftest.$ac_objext'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; }; then
3816 echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3823 if test -n "$ac_declaration"; then
3824 echo '#ifdef __cplusplus' >>confdefs.h
3825 echo $ac_declaration >>confdefs.h
3826 echo '#endif' >>confdefs.h
3830 echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3836 ac_cpp='$CPP $CPPFLAGS'
3837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842 ac_cpp='$CXXCPP $CPPFLAGS'
3843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3846 if test -n "$ac_tool_prefix"; then
3847 for ac_prog in $CCC g++
3849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3851 echo "$as_me:$LINENO: checking for $ac_word" >&5
3852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3853 if test "${ac_cv_prog_CXX+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 if test -n "$CXX"; then
3857 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 test -z "$as_dir" && as_dir=.
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3866 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 if test -n "$CXX"; then
3877 echo "$as_me:$LINENO: result: $CXX" >&5
3878 echo "${ECHO_T}$CXX" >&6
3880 echo "$as_me:$LINENO: result: no" >&5
3881 echo "${ECHO_T}no" >&6
3884 test -n "$CXX" && break
3887 if test -z "$CXX"; then
3889 for ac_prog in $CCC g++
3891 # Extract the first word of "$ac_prog", so it can be a program name with args.
3892 set dummy $ac_prog; ac_word=$2
3893 echo "$as_me:$LINENO: checking for $ac_word" >&5
3894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3895 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 if test -n "$ac_ct_CXX"; then
3899 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908 ac_cv_prog_ac_ct_CXX="$ac_prog"
3909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3917 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3918 if test -n "$ac_ct_CXX"; then
3919 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3920 echo "${ECHO_T}$ac_ct_CXX" >&6
3922 echo "$as_me:$LINENO: result: no" >&5
3923 echo "${ECHO_T}no" >&6
3926 test -n "$ac_ct_CXX" && break
3928 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3934 # Provide some information about the compiler.
3935 echo "$as_me:$LINENO:" \
3936 "checking for C++ compiler version" >&5
3937 ac_compiler=`set X $ac_compile; echo $2`
3938 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3939 (eval $ac_compiler --version </dev/null >&5) 2>&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }
3943 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3944 (eval $ac_compiler -v </dev/null >&5) 2>&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }
3948 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3949 (eval $ac_compiler -V </dev/null >&5) 2>&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }
3954 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3955 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3956 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 cat >conftest.$ac_ext <<_ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h. */
3977 rm -f conftest.$ac_objext
3978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3979 (eval $ac_compile) 2>conftest.er1
3981 grep -v '^ *+' conftest.er1 >conftest.err
3983 cat conftest.err >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } &&
3986 { ac_try='test -z "$ac_cxx_werror_flag"
3987 || test ! -s conftest.err'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; } &&
3993 { ac_try='test -s conftest.$ac_objext'
3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4007 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4010 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4011 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4012 GXX=`test $ac_compiler_gnu = yes && echo yes`
4013 ac_test_CXXFLAGS=${CXXFLAGS+set}
4014 ac_save_CXXFLAGS=$CXXFLAGS
4016 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4017 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4018 if test "${ac_cv_prog_cxx_g+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 cat >conftest.$ac_ext <<_ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4036 rm -f conftest.$ac_objext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>conftest.er1
4040 grep -v '^ *+' conftest.er1 >conftest.err
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_cxx_werror_flag"
4046 || test ! -s conftest.err'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest.$ac_objext'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; }; then
4058 ac_cv_prog_cxx_g=yes
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4067 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4068 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4069 if test "$ac_test_CXXFLAGS" = set; then
4070 CXXFLAGS=$ac_save_CXXFLAGS
4071 elif test $ac_cv_prog_cxx_g = yes; then
4072 if test "$GXX" = yes; then
4078 if test "$GXX" = yes; then
4084 for ac_declaration in \
4086 'extern "C" void std::exit (int) throw (); using std::exit;' \
4087 'extern "C" void std::exit (int); using std::exit;' \
4088 'extern "C" void exit (int) throw ();' \
4089 'extern "C" void exit (int);' \
4092 cat >conftest.$ac_ext <<_ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4108 rm -f conftest.$ac_objext
4109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4110 (eval $ac_compile) 2>conftest.er1
4112 grep -v '^ *+' conftest.er1 >conftest.err
4114 cat conftest.err >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 { ac_try='test -z "$ac_cxx_werror_flag"
4118 || test ! -s conftest.err'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; } &&
4124 { ac_try='test -s conftest.$ac_objext'
4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; }; then
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4138 cat >conftest.$ac_ext <<_ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4153 rm -f conftest.$ac_objext
4154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155 (eval $ac_compile) 2>conftest.er1
4157 grep -v '^ *+' conftest.er1 >conftest.err
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } &&
4162 { ac_try='test -z "$ac_cxx_werror_flag"
4163 || test ! -s conftest.err'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; } &&
4169 { ac_try='test -s conftest.$ac_objext'
4170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
4177 echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4184 if test -n "$ac_declaration"; then
4185 echo '#ifdef __cplusplus' >>confdefs.h
4186 echo $ac_declaration >>confdefs.h
4187 echo '#endif' >>confdefs.h
4191 ac_cpp='$CPP $CPPFLAGS'
4192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196 echo "$as_me:$LINENO: checking " >&5
4197 echo $ECHO_N "checking ... $ECHO_C" >&6
4198 if test "${ac_cv_has_flex+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 for ac_prog in flex lex
4203 # Extract the first word of "$ac_prog", so it can be a program name with args.
4204 set dummy $ac_prog; ac_word=$2
4205 echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4207 if test "${ac_cv_prog_LEX+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 if test -n "$LEX"; then
4211 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220 ac_cv_prog_LEX="$ac_prog"
4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 if test -n "$LEX"; then
4231 echo "$as_me:$LINENO: result: $LEX" >&5
4232 echo "${ECHO_T}$LEX" >&6
4234 echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6
4238 test -n "$LEX" && break
4240 test -n "$LEX" || LEX=":"
4242 if test -z "$LEXLIB"
4244 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4245 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4246 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 ac_check_lib_save_LIBS=$LIBS
4251 cat >conftest.$ac_ext <<_ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4258 /* Override any gcc2 internal prototype to avoid an error. */
4262 /* We use char because int might match the return type of a gcc2
4263 builtin and then its argument prototype would still apply. */
4273 rm -f conftest.$ac_objext conftest$ac_exeext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4275 (eval $ac_link) 2>conftest.er1
4277 grep -v '^ *+' conftest.er1 >conftest.err
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } &&
4282 { ac_try='test -z "$ac_c_werror_flag"
4283 || test ! -s conftest.err'
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; } &&
4289 { ac_try='test -s conftest$ac_exeext'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4295 ac_cv_lib_fl_yywrap=yes
4297 echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4300 ac_cv_lib_fl_yywrap=no
4302 rm -f conftest.err conftest.$ac_objext \
4303 conftest$ac_exeext conftest.$ac_ext
4304 LIBS=$ac_check_lib_save_LIBS
4306 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4307 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4308 if test $ac_cv_lib_fl_yywrap = yes; then
4311 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4312 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4313 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 ac_check_lib_save_LIBS=$LIBS
4318 cat >conftest.$ac_ext <<_ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4325 /* Override any gcc2 internal prototype to avoid an error. */
4329 /* We use char because int might match the return type of a gcc2
4330 builtin and then its argument prototype would still apply. */
4340 rm -f conftest.$ac_objext conftest$ac_exeext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4342 (eval $ac_link) 2>conftest.er1
4344 grep -v '^ *+' conftest.er1 >conftest.err
4346 cat conftest.err >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } &&
4349 { ac_try='test -z "$ac_c_werror_flag"
4350 || test ! -s conftest.err'
4351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; } &&
4356 { ac_try='test -s conftest$ac_exeext'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; }; then
4362 ac_cv_lib_l_yywrap=yes
4364 echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4367 ac_cv_lib_l_yywrap=no
4369 rm -f conftest.err conftest.$ac_objext \
4370 conftest$ac_exeext conftest.$ac_ext
4371 LIBS=$ac_check_lib_save_LIBS
4373 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4374 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4375 if test $ac_cv_lib_l_yywrap = yes; then
4383 if test "x$LEX" != "x:"; then
4384 echo "$as_me:$LINENO: checking lex output file root" >&5
4385 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4386 if test "${ac_cv_prog_lex_root+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 # The minimal lex program is just a single line: %%. But some broken lexes
4390 # (Solaris, I think it was) want two %% lines, so accommodate them.
4391 cat >conftest.l <<_ACEOF
4395 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4396 (eval $LEX conftest.l) 2>&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }
4400 if test -f lex.yy.c; then
4401 ac_cv_prog_lex_root=lex.yy
4402 elif test -f lexyy.c; then
4403 ac_cv_prog_lex_root=lexyy
4405 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4406 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4407 { (exit 1); exit 1; }; }
4410 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4411 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4413 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4415 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4416 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4417 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 # POSIX says lex can declare yytext either as a pointer or an array; the
4421 # default is implementation-dependent. Figure out which it is, since
4422 # not all implementations provide the %pointer and %array declarations.
4423 ac_cv_prog_lex_yytext_pointer=no
4424 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4426 LIBS="$LIBS $LEXLIB"
4427 cat >conftest.$ac_ext <<_ACEOF
4428 `cat $LEX_OUTPUT_ROOT.c`
4430 rm -f conftest.$ac_objext conftest$ac_exeext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4432 (eval $ac_link) 2>conftest.er1
4434 grep -v '^ *+' conftest.er1 >conftest.err
4436 cat conftest.err >&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } &&
4439 { ac_try='test -z "$ac_c_werror_flag"
4440 || test ! -s conftest.err'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; } &&
4446 { ac_try='test -s conftest$ac_exeext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_cv_prog_lex_yytext_pointer=yes
4454 echo "$as_me: failed program was:" >&5
4455 sed 's/^/| /' conftest.$ac_ext >&5
4458 rm -f conftest.err conftest.$ac_objext \
4459 conftest$ac_exeext conftest.$ac_ext
4461 rm -f "${LEX_OUTPUT_ROOT}.c"
4464 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4465 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4466 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4468 cat >>confdefs.h <<\_ACEOF
4469 #define YYTEXT_POINTER 1
4477 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4478 echo "${ECHO_T}$ac_cv_has_flex" >&6
4479 if test "$LEX" != "flex"; then
4480 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4481 echo "$as_me: error: flex not found but required" >&2;}
4482 { (exit 1); exit 1; }; }
4488 echo "$as_me:$LINENO: checking " >&5
4489 echo $ECHO_N "checking ... $ECHO_C" >&6
4490 if test "${llvm_cv_has_bison+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 for ac_prog in 'bison -y' byacc
4495 # Extract the first word of "$ac_prog", so it can be a program name with args.
4496 set dummy $ac_prog; ac_word=$2
4497 echo "$as_me:$LINENO: checking for $ac_word" >&5
4498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4499 if test "${ac_cv_prog_YACC+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 if test -n "$YACC"; then
4503 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4512 ac_cv_prog_YACC="$ac_prog"
4513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 YACC=$ac_cv_prog_YACC
4522 if test -n "$YACC"; then
4523 echo "$as_me:$LINENO: result: $YACC" >&5
4524 echo "${ECHO_T}$YACC" >&6
4526 echo "$as_me:$LINENO: result: no" >&5
4527 echo "${ECHO_T}no" >&6
4530 test -n "$YACC" && break
4532 test -n "$YACC" || YACC="yacc"
4535 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4536 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4537 if test "$YACC" != "bison -y"; then
4538 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4539 echo "$as_me: error: bison not found but required" >&2;}
4540 { (exit 1); exit 1; }; }
4546 echo "$as_me:$LINENO: checking for GNU make" >&5
4547 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4548 if test "${llvm_cv_gnu_make_command+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 llvm_cv_gnu_make_command=''
4552 for a in "$MAKE" make gmake gnumake ; do
4553 if test -z "$a" ; then continue ; fi ;
4554 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4556 llvm_cv_gnu_make_command=$a ;
4561 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4562 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4563 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4567 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4568 echo "${ECHO_T}\"Not found\"" >&6;
4572 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4573 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4575 if test "$LN_S" = "ln -s"; then
4576 echo "$as_me:$LINENO: result: yes" >&5
4577 echo "${ECHO_T}yes" >&6
4579 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4580 echo "${ECHO_T}no, using $LN_S" >&6
4583 # Extract the first word of "cmp", so it can be a program name with args.
4584 set dummy cmp; ac_word=$2
4585 echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4587 if test "${ac_cv_path_CMP+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4615 if test -n "$CMP"; then
4616 echo "$as_me:$LINENO: result: $CMP" >&5
4617 echo "${ECHO_T}$CMP" >&6
4619 echo "$as_me:$LINENO: result: no" >&5
4620 echo "${ECHO_T}no" >&6
4623 # Extract the first word of "cp", so it can be a program name with args.
4624 set dummy cp; ac_word=$2
4625 echo "$as_me:$LINENO: checking for $ac_word" >&5
4626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4627 if test "${ac_cv_path_CP+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4655 if test -n "$CP"; then
4656 echo "$as_me:$LINENO: result: $CP" >&5
4657 echo "${ECHO_T}$CP" >&6
4659 echo "$as_me:$LINENO: result: no" >&5
4660 echo "${ECHO_T}no" >&6
4663 # Extract the first word of "date", so it can be a program name with args.
4664 set dummy date; ac_word=$2
4665 echo "$as_me:$LINENO: checking for $ac_word" >&5
4666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4667 if test "${ac_cv_path_DATE+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4682 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4693 DATE=$ac_cv_path_DATE
4695 if test -n "$DATE"; then
4696 echo "$as_me:$LINENO: result: $DATE" >&5
4697 echo "${ECHO_T}$DATE" >&6
4699 echo "$as_me:$LINENO: result: no" >&5
4700 echo "${ECHO_T}no" >&6
4703 # Extract the first word of "find", so it can be a program name with args.
4704 set dummy find; ac_word=$2
4705 echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4707 if test "${ac_cv_path_FIND+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4722 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4733 FIND=$ac_cv_path_FIND
4735 if test -n "$FIND"; then
4736 echo "$as_me:$LINENO: result: $FIND" >&5
4737 echo "${ECHO_T}$FIND" >&6
4739 echo "$as_me:$LINENO: result: no" >&5
4740 echo "${ECHO_T}no" >&6
4743 # Extract the first word of "grep", so it can be a program name with args.
4744 set dummy grep; ac_word=$2
4745 echo "$as_me:$LINENO: checking for $ac_word" >&5
4746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4747 if test "${ac_cv_path_GREP+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4762 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4773 GREP=$ac_cv_path_GREP
4775 if test -n "$GREP"; then
4776 echo "$as_me:$LINENO: result: $GREP" >&5
4777 echo "${ECHO_T}$GREP" >&6
4779 echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6
4783 # Extract the first word of "mkdir", so it can be a program name with args.
4784 set dummy mkdir; ac_word=$2
4785 echo "$as_me:$LINENO: checking for $ac_word" >&5
4786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4787 if test "${ac_cv_path_MKDIR+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4813 MKDIR=$ac_cv_path_MKDIR
4815 if test -n "$MKDIR"; then
4816 echo "$as_me:$LINENO: result: $MKDIR" >&5
4817 echo "${ECHO_T}$MKDIR" >&6
4819 echo "$as_me:$LINENO: result: no" >&5
4820 echo "${ECHO_T}no" >&6
4823 # Extract the first word of "mv", so it can be a program name with args.
4824 set dummy mv; ac_word=$2
4825 echo "$as_me:$LINENO: checking for $ac_word" >&5
4826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4827 if test "${ac_cv_path_MV+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4842 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4855 if test -n "$MV"; then
4856 echo "$as_me:$LINENO: result: $MV" >&5
4857 echo "${ECHO_T}$MV" >&6
4859 echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6
4863 if test -n "$ac_tool_prefix"; then
4864 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4865 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4866 echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868 if test "${ac_cv_prog_RANLIB+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 if test -n "$RANLIB"; then
4872 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4881 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 RANLIB=$ac_cv_prog_RANLIB
4891 if test -n "$RANLIB"; then
4892 echo "$as_me:$LINENO: result: $RANLIB" >&5
4893 echo "${ECHO_T}$RANLIB" >&6
4895 echo "$as_me:$LINENO: result: no" >&5
4896 echo "${ECHO_T}no" >&6
4900 if test -z "$ac_cv_prog_RANLIB"; then
4901 ac_ct_RANLIB=$RANLIB
4902 # Extract the first word of "ranlib", so it can be a program name with args.
4903 set dummy ranlib; ac_word=$2
4904 echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 if test -n "$ac_ct_RANLIB"; then
4910 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4919 ac_cv_prog_ac_ct_RANLIB="ranlib"
4920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4929 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4930 if test -n "$ac_ct_RANLIB"; then
4931 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4932 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4934 echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6
4938 RANLIB=$ac_ct_RANLIB
4940 RANLIB="$ac_cv_prog_RANLIB"
4943 # Extract the first word of "rm", so it can be a program name with args.
4944 set dummy rm; ac_word=$2
4945 echo "$as_me:$LINENO: checking for $ac_word" >&5
4946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4947 if test "${ac_cv_path_RM+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4975 if test -n "$RM"; then
4976 echo "$as_me:$LINENO: result: $RM" >&5
4977 echo "${ECHO_T}$RM" >&6
4979 echo "$as_me:$LINENO: result: no" >&5
4980 echo "${ECHO_T}no" >&6
4983 # Extract the first word of "sed", so it can be a program name with args.
4984 set dummy sed; ac_word=$2
4985 echo "$as_me:$LINENO: checking for $ac_word" >&5
4986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4987 if test "${ac_cv_path_SED+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5002 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5015 if test -n "$SED"; then
5016 echo "$as_me:$LINENO: result: $SED" >&5
5017 echo "${ECHO_T}$SED" >&6
5019 echo "$as_me:$LINENO: result: no" >&5
5020 echo "${ECHO_T}no" >&6
5023 # Extract the first word of "tar", so it can be a program name with args.
5024 set dummy tar; ac_word=$2
5025 echo "$as_me:$LINENO: checking for $ac_word" >&5
5026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5027 if test "${ac_cv_path_TAR+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 test -z "$as_dir" && as_dir=.
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5042 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5055 if test -n "$TAR"; then
5056 echo "$as_me:$LINENO: result: $TAR" >&5
5057 echo "${ECHO_T}$TAR" >&6
5059 echo "$as_me:$LINENO: result: no" >&5
5060 echo "${ECHO_T}no" >&6
5064 # Find a good install program. We prefer a C program (faster),
5065 # so one script is as good as another. But avoid the broken or
5066 # incompatible versions:
5067 # SysV /etc/install, /usr/sbin/install
5068 # SunOS /usr/etc/install
5069 # IRIX /sbin/install
5071 # AmigaOS /C/install, which installs bootblocks on floppy discs
5072 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5073 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5074 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5075 # OS/2's system install, which has a completely different semantic
5076 # ./install, which can be erroneously created by make from ./install.sh.
5077 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5078 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5079 if test -z "$INSTALL"; then
5080 if test "${ac_cv_path_install+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 test -z "$as_dir" && as_dir=.
5088 # Account for people who put trailing slashes in PATH elements.
5090 ./ | .// | /cC/* | \
5091 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5092 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5095 # OSF1 and SCO ODT 3.0 have their own names for install.
5096 # Don't use installbsd from OSF since it installs stuff as root
5098 for ac_prog in ginstall scoinst install; do
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5101 if test $ac_prog = install &&
5102 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5103 # AIX install. It has an incompatible calling convention.
5105 elif test $ac_prog = install &&
5106 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5107 # program-specific install script used by HP pwplus--don't use.
5110 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5122 if test "${ac_cv_path_install+set}" = set; then
5123 INSTALL=$ac_cv_path_install
5125 # As a last resort, use the slow shell script. We don't cache a
5126 # path for INSTALL within a source directory, because that will
5127 # break other packages using the cache if that directory is
5128 # removed, or if the path is relative.
5129 INSTALL=$ac_install_sh
5132 echo "$as_me:$LINENO: result: $INSTALL" >&5
5133 echo "${ECHO_T}$INSTALL" >&6
5135 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5136 # It thinks the first close brace ends the variable substitution.
5137 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5139 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5141 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5144 # Extract the first word of "bzip2", so it can be a program name with args.
5145 set dummy bzip2; ac_word=$2
5146 echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5148 if test "${ac_cv_path_BZIP2+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5174 BZIP2=$ac_cv_path_BZIP2
5176 if test -n "$BZIP2"; then
5177 echo "$as_me:$LINENO: result: $BZIP2" >&5
5178 echo "${ECHO_T}$BZIP2" >&6
5180 echo "$as_me:$LINENO: result: no" >&5
5181 echo "${ECHO_T}no" >&6
5184 # Extract the first word of "dot", so it can be a program name with args.
5185 set dummy dot; ac_word=$2
5186 echo "$as_me:$LINENO: checking for $ac_word" >&5
5187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5188 if test "${ac_cv_path_DOT+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5216 if test -n "$DOT"; then
5217 echo "$as_me:$LINENO: result: $DOT" >&5
5218 echo "${ECHO_T}$DOT" >&6
5220 echo "$as_me:$LINENO: result: no" >&5
5221 echo "${ECHO_T}no" >&6
5224 # Extract the first word of "doxygen", so it can be a program name with args.
5225 set dummy doxygen; ac_word=$2
5226 echo "$as_me:$LINENO: checking for $ac_word" >&5
5227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5228 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5254 DOXYGEN=$ac_cv_path_DOXYGEN
5256 if test -n "$DOXYGEN"; then
5257 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5258 echo "${ECHO_T}$DOXYGEN" >&6
5260 echo "$as_me:$LINENO: result: no" >&5
5261 echo "${ECHO_T}no" >&6
5264 # Extract the first word of "etags", so it can be a program name with args.
5265 set dummy etags; ac_word=$2
5266 echo "$as_me:$LINENO: checking for $ac_word" >&5
5267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5268 if test "${ac_cv_path_ETAGS+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5294 ETAGS=$ac_cv_path_ETAGS
5296 if test -n "$ETAGS"; then
5297 echo "$as_me:$LINENO: result: $ETAGS" >&5
5298 echo "${ECHO_T}$ETAGS" >&6
5300 echo "$as_me:$LINENO: result: no" >&5
5301 echo "${ECHO_T}no" >&6
5304 # Extract the first word of "groff", so it can be a program name with args.
5305 set dummy groff; ac_word=$2
5306 echo "$as_me:$LINENO: checking for $ac_word" >&5
5307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5308 if test "${ac_cv_path_GROFF+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 test -z "$as_dir" && as_dir=.
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5323 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5334 GROFF=$ac_cv_path_GROFF
5336 if test -n "$GROFF"; then
5337 echo "$as_me:$LINENO: result: $GROFF" >&5
5338 echo "${ECHO_T}$GROFF" >&6
5340 echo "$as_me:$LINENO: result: no" >&5
5341 echo "${ECHO_T}no" >&6
5344 # Extract the first word of "gzip", so it can be a program name with args.
5345 set dummy gzip; ac_word=$2
5346 echo "$as_me:$LINENO: checking for $ac_word" >&5
5347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5348 if test "${ac_cv_path_GZIP+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5363 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5374 GZIP=$ac_cv_path_GZIP
5376 if test -n "$GZIP"; then
5377 echo "$as_me:$LINENO: result: $GZIP" >&5
5378 echo "${ECHO_T}$GZIP" >&6
5380 echo "$as_me:$LINENO: result: no" >&5
5381 echo "${ECHO_T}no" >&6
5384 # Extract the first word of "pod2html", so it can be a program name with args.
5385 set dummy pod2html; ac_word=$2
5386 echo "$as_me:$LINENO: checking for $ac_word" >&5
5387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5388 if test "${ac_cv_path_POD2HTML+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5403 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5410 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5414 POD2HTML=$ac_cv_path_POD2HTML
5416 if test -n "$POD2HTML"; then
5417 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5418 echo "${ECHO_T}$POD2HTML" >&6
5420 echo "$as_me:$LINENO: result: no" >&5
5421 echo "${ECHO_T}no" >&6
5424 # Extract the first word of "pod2man", so it can be a program name with args.
5425 set dummy pod2man; ac_word=$2
5426 echo "$as_me:$LINENO: checking for $ac_word" >&5
5427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5428 if test "${ac_cv_path_POD2MAN+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5433 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5454 POD2MAN=$ac_cv_path_POD2MAN
5456 if test -n "$POD2MAN"; then
5457 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5458 echo "${ECHO_T}$POD2MAN" >&6
5460 echo "$as_me:$LINENO: result: no" >&5
5461 echo "${ECHO_T}no" >&6
5464 # Extract the first word of "runtest", so it can be a program name with args.
5465 set dummy runtest; ac_word=$2
5466 echo "$as_me:$LINENO: checking for $ac_word" >&5
5467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5468 if test "${ac_cv_path_RUNTEST+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 test -z "$as_dir" && as_dir=.
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5483 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5494 RUNTEST=$ac_cv_path_RUNTEST
5496 if test -n "$RUNTEST"; then
5497 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5498 echo "${ECHO_T}$RUNTEST" >&6
5500 echo "$as_me:$LINENO: result: no" >&5
5501 echo "${ECHO_T}no" >&6
5506 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5507 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5509 # Check whether --with-tclinclude or --without-tclinclude was given.
5510 if test "${with_tclinclude+set}" = set; then
5511 withval="$with_tclinclude"
5512 with_tclinclude=${withval}
5516 if test "${ac_cv_path_tclsh+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5520 if test x"${with_tclinclude}" != x ; then
5521 if test -f ${with_tclinclude}/tclsh ; then
5522 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5523 elif test -f ${with_tclinclude}/src/tclsh ; then
5524 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5526 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5527 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5528 { (exit 1); exit 1; }; }
5532 if test x"${ac_cv_path_tclsh}" = x ; then
5533 echo "$as_me:$LINENO: result: none" >&5
5534 echo "${ECHO_T}none" >&6
5535 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
5537 # Extract the first word of "$ac_prog", so it can be a program name with args.
5538 set dummy $ac_prog; ac_word=$2
5539 echo "$as_me:$LINENO: checking for $ac_word" >&5
5540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5541 if test "${ac_cv_path_TCLSH+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5556 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 TCLSH=$ac_cv_path_TCLSH
5568 if test -n "$TCLSH"; then
5569 echo "$as_me:$LINENO: result: $TCLSH" >&5
5570 echo "${ECHO_T}$TCLSH" >&6
5572 echo "$as_me:$LINENO: result: no" >&5
5573 echo "${ECHO_T}no" >&6
5576 test -n "$TCLSH" && break
5579 if test x"${TCLSH}" = x ; then
5580 ac_cv_path_tclsh='';
5582 ac_cv_path_tclsh="${TCLSH}";
5585 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5586 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5587 TCLSH="${ac_cv_path_tclsh}"
5593 # Extract the first word of "zip", so it can be a program name with args.
5594 set dummy zip; ac_word=$2
5595 echo "$as_me:$LINENO: checking for $ac_word" >&5
5596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5597 if test "${ac_cv_path_ZIP+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 test -z "$as_dir" && as_dir=.
5610 for ac_exec_ext in '' $ac_executable_extensions; do
5611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5612 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5619 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5625 if test -n "$ZIP"; then
5626 echo "$as_me:$LINENO: result: $ZIP" >&5
5627 echo "${ECHO_T}$ZIP" >&6
5629 echo "$as_me:$LINENO: result: no" >&5
5630 echo "${ECHO_T}no" >&6
5634 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5635 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5636 if test "${llvm_cv_link_use_r+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 ac_cpp='$CPP $CPPFLAGS'
5641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5646 CFLAGS="$CFLAGS -Wl,-R."
5647 cat >conftest.$ac_ext <<_ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5657 int main() { return 0; }
5662 rm -f conftest.$ac_objext conftest$ac_exeext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5664 (eval $ac_link) 2>conftest.er1
5666 grep -v '^ *+' conftest.er1 >conftest.err
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -z "$ac_c_werror_flag"
5672 || test ! -s conftest.err'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try='test -s conftest$ac_exeext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 llvm_cv_link_use_r=yes
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5689 llvm_cv_link_use_r=no
5691 rm -f conftest.err conftest.$ac_objext \
5692 conftest$ac_exeext conftest.$ac_ext
5695 ac_cpp='$CPP $CPPFLAGS'
5696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5702 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5703 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5704 if test "$llvm_cv_link_use_r" = yes ; then
5706 cat >>confdefs.h <<\_ACEOF
5707 #define HAVE_LINK_R 1
5715 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5716 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5717 if test "${ac_cv_c_const+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 cat >conftest.$ac_ext <<_ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5730 /* FIXME: Include the comments suggested by Paul. */
5732 /* Ultrix mips cc rejects this. */
5733 typedef int charset[2];
5735 /* SunOS 4.1.1 cc rejects this. */
5736 char const *const *ccp;
5738 /* NEC SVR4.0.2 mips cc rejects this. */
5739 struct point {int x, y;};
5740 static struct point const zero = {0,0};
5741 /* AIX XL C 1.02.0.0 rejects this.
5742 It does not let you subtract one const X* pointer from another in
5743 an arm of an if-expression whose if-part is not a constant
5745 const char *g = "string";
5746 ccp = &g + (g ? g-g : 0);
5747 /* HPUX 7.0 cc rejects these. */
5750 ccp = (char const *const *) p;
5751 { /* SCO 3.2v4 cc rejects this. */
5753 char const *s = 0 ? (char *) 0 : (char const *) 0;
5757 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5759 const int *foo = &x[0];
5762 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5763 typedef const int *iptr;
5767 { /* AIX XL C 1.02.0.0 rejects this saying
5768 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5769 struct s { int j; const int *ap[3]; };
5770 struct s *b; b->j = 5;
5772 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5781 rm -f conftest.$ac_objext
5782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5783 (eval $ac_compile) 2>conftest.er1
5785 grep -v '^ *+' conftest.er1 >conftest.err
5787 cat conftest.err >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } &&
5790 { ac_try='test -z "$ac_c_werror_flag"
5791 || test ! -s conftest.err'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; } &&
5797 { ac_try='test -s conftest.$ac_objext'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5812 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5813 echo "${ECHO_T}$ac_cv_c_const" >&6
5814 if test $ac_cv_c_const = no; then
5816 cat >>confdefs.h <<\_ACEOF
5823 echo "$as_me:$LINENO: checking for egrep" >&5
5824 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5825 if test "${ac_cv_prog_egrep+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5829 then ac_cv_prog_egrep='grep -E'
5830 else ac_cv_prog_egrep='egrep'
5833 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5834 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5835 EGREP=$ac_cv_prog_egrep
5838 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5839 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5840 if test "${ac_cv_header_stdc+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 cat >conftest.$ac_ext <<_ACEOF
5846 cat confdefs.h >>conftest.$ac_ext
5847 cat >>conftest.$ac_ext <<_ACEOF
5848 /* end confdefs.h. */
5862 rm -f conftest.$ac_objext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864 (eval $ac_compile) 2>conftest.er1
5866 grep -v '^ *+' conftest.er1 >conftest.err
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } &&
5871 { ac_try='test -z "$ac_c_werror_flag"
5872 || test ! -s conftest.err'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; } &&
5878 { ac_try='test -s conftest.$ac_objext'
5879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; }; then
5884 ac_cv_header_stdc=yes
5886 echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5889 ac_cv_header_stdc=no
5891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5893 if test $ac_cv_header_stdc = yes; then
5894 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5895 cat >conftest.$ac_ext <<_ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5905 $EGREP "memchr" >/dev/null 2>&1; then
5908 ac_cv_header_stdc=no
5914 if test $ac_cv_header_stdc = yes; then
5915 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5916 cat >conftest.$ac_ext <<_ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5926 $EGREP "free" >/dev/null 2>&1; then
5929 ac_cv_header_stdc=no
5935 if test $ac_cv_header_stdc = yes; then
5936 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5937 if test "$cross_compiling" = yes; then
5940 cat >conftest.$ac_ext <<_ACEOF
5943 cat confdefs.h >>conftest.$ac_ext
5944 cat >>conftest.$ac_ext <<_ACEOF
5945 /* end confdefs.h. */
5947 #if ((' ' & 0x0FF) == 0x020)
5948 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5949 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5951 # define ISLOWER(c) \
5952 (('a' <= (c) && (c) <= 'i') \
5953 || ('j' <= (c) && (c) <= 'r') \
5954 || ('s' <= (c) && (c) <= 'z'))
5955 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5958 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5963 for (i = 0; i < 256; i++)
5964 if (XOR (islower (i), ISLOWER (i))
5965 || toupper (i) != TOUPPER (i))
5970 rm -f conftest$ac_exeext
5971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5972 (eval $ac_link) 2>&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); }; }; then
5983 echo "$as_me: program exited with status $ac_status" >&5
5984 echo "$as_me: failed program was:" >&5
5985 sed 's/^/| /' conftest.$ac_ext >&5
5988 ac_cv_header_stdc=no
5990 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5994 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5995 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5996 if test $ac_cv_header_stdc = yes; then
5998 cat >>confdefs.h <<\_ACEOF
5999 #define STDC_HEADERS 1
6010 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6011 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6012 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6013 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 cat >conftest.$ac_ext <<_ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6023 #include <sys/types.h>
6035 rm -f conftest.$ac_objext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037 (eval $ac_compile) 2>conftest.er1
6039 grep -v '^ *+' conftest.er1 >conftest.err
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try='test -z "$ac_c_werror_flag"
6045 || test ! -s conftest.err'
6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }; } &&
6051 { ac_try='test -s conftest.$ac_objext'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6057 eval "$as_ac_Header=yes"
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6062 eval "$as_ac_Header=no"
6064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6069 cat >>confdefs.h <<_ACEOF
6070 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6073 ac_header_dirent=$ac_hdr; break
6077 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6078 if test $ac_header_dirent = dirent.h; then
6079 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6080 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6081 if test "${ac_cv_search_opendir+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 ac_func_search_save_LIBS=$LIBS
6085 ac_cv_search_opendir=no
6086 cat >conftest.$ac_ext <<_ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6093 /* Override any gcc2 internal prototype to avoid an error. */
6097 /* We use char because int might match the return type of a gcc2
6098 builtin and then its argument prototype would still apply. */
6108 rm -f conftest.$ac_objext conftest$ac_exeext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110 (eval $ac_link) 2>conftest.er1
6112 grep -v '^ *+' conftest.er1 >conftest.err
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } &&
6117 { ac_try='test -z "$ac_c_werror_flag"
6118 || test ! -s conftest.err'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; } &&
6124 { ac_try='test -s conftest$ac_exeext'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6130 ac_cv_search_opendir="none required"
6132 echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6136 rm -f conftest.err conftest.$ac_objext \
6137 conftest$ac_exeext conftest.$ac_ext
6138 if test "$ac_cv_search_opendir" = no; then
6139 for ac_lib in dir; do
6140 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6141 cat >conftest.$ac_ext <<_ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h. */
6148 /* Override any gcc2 internal prototype to avoid an error. */
6152 /* We use char because int might match the return type of a gcc2
6153 builtin and then its argument prototype would still apply. */
6163 rm -f conftest.$ac_objext conftest$ac_exeext
6164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6165 (eval $ac_link) 2>conftest.er1
6167 grep -v '^ *+' conftest.er1 >conftest.err
6169 cat conftest.err >&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); } &&
6172 { ac_try='test -z "$ac_c_werror_flag"
6173 || test ! -s conftest.err'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; } &&
6179 { ac_try='test -s conftest$ac_exeext'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6185 ac_cv_search_opendir="-l$ac_lib"
6188 echo "$as_me: failed program was:" >&5
6189 sed 's/^/| /' conftest.$ac_ext >&5
6192 rm -f conftest.err conftest.$ac_objext \
6193 conftest$ac_exeext conftest.$ac_ext
6196 LIBS=$ac_func_search_save_LIBS
6198 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6199 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6200 if test "$ac_cv_search_opendir" != no; then
6201 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6206 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6207 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6208 if test "${ac_cv_search_opendir+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 ac_func_search_save_LIBS=$LIBS
6212 ac_cv_search_opendir=no
6213 cat >conftest.$ac_ext <<_ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h. */
6220 /* Override any gcc2 internal prototype to avoid an error. */
6224 /* We use char because int might match the return type of a gcc2
6225 builtin and then its argument prototype would still apply. */
6235 rm -f conftest.$ac_objext conftest$ac_exeext
6236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6237 (eval $ac_link) 2>conftest.er1
6239 grep -v '^ *+' conftest.er1 >conftest.err
6241 cat conftest.err >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } &&
6244 { ac_try='test -z "$ac_c_werror_flag"
6245 || test ! -s conftest.err'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; } &&
6251 { ac_try='test -s conftest$ac_exeext'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6257 ac_cv_search_opendir="none required"
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6263 rm -f conftest.err conftest.$ac_objext \
6264 conftest$ac_exeext conftest.$ac_ext
6265 if test "$ac_cv_search_opendir" = no; then
6267 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6268 cat >conftest.$ac_ext <<_ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6275 /* Override any gcc2 internal prototype to avoid an error. */
6279 /* We use char because int might match the return type of a gcc2
6280 builtin and then its argument prototype would still apply. */
6290 rm -f conftest.$ac_objext conftest$ac_exeext
6291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6292 (eval $ac_link) 2>conftest.er1
6294 grep -v '^ *+' conftest.er1 >conftest.err
6296 cat conftest.err >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } &&
6299 { ac_try='test -z "$ac_c_werror_flag"
6300 || test ! -s conftest.err'
6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; } &&
6306 { ac_try='test -s conftest$ac_exeext'
6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; }; then
6312 ac_cv_search_opendir="-l$ac_lib"
6315 echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6319 rm -f conftest.err conftest.$ac_objext \
6320 conftest$ac_exeext conftest.$ac_ext
6323 LIBS=$ac_func_search_save_LIBS
6325 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6326 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6327 if test "$ac_cv_search_opendir" != no; then
6328 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6334 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6344 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6345 inttypes.h stdint.h unistd.h
6347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6348 echo "$as_me:$LINENO: checking for $ac_header" >&5
6349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 cat >conftest.$ac_ext <<_ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h. */
6359 $ac_includes_default
6361 #include <$ac_header>
6363 rm -f conftest.$ac_objext
6364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6365 (eval $ac_compile) 2>conftest.er1
6367 grep -v '^ *+' conftest.er1 >conftest.err
6369 cat conftest.err >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } &&
6372 { ac_try='test -z "$ac_c_werror_flag"
6373 || test ! -s conftest.err'
6374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }; } &&
6379 { ac_try='test -s conftest.$ac_objext'
6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }; }; then
6385 eval "$as_ac_Header=yes"
6387 echo "$as_me: failed program was:" >&5
6388 sed 's/^/| /' conftest.$ac_ext >&5
6390 eval "$as_ac_Header=no"
6392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6397 cat >>confdefs.h <<_ACEOF
6398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6407 for ac_header in dlfcn.h
6409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6411 echo "$as_me:$LINENO: checking for $ac_header" >&5
6412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6419 # Is the header compilable?
6420 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6422 cat >conftest.$ac_ext <<_ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h. */
6428 $ac_includes_default
6429 #include <$ac_header>
6431 rm -f conftest.$ac_objext
6432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6433 (eval $ac_compile) 2>conftest.er1
6435 grep -v '^ *+' conftest.er1 >conftest.err
6437 cat conftest.err >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } &&
6440 { ac_try='test -z "$ac_c_werror_flag"
6441 || test ! -s conftest.err'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; } &&
6447 { ac_try='test -s conftest.$ac_objext'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; }; then
6453 ac_header_compiler=yes
6455 echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6458 ac_header_compiler=no
6460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6462 echo "${ECHO_T}$ac_header_compiler" >&6
6464 # Is the header present?
6465 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6467 cat >conftest.$ac_ext <<_ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 #include <$ac_header>
6475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6478 grep -v '^ *+' conftest.er1 >conftest.err
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } >/dev/null; then
6483 if test -s conftest.err; then
6484 ac_cpp_err=$ac_c_preproc_warn_flag
6485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6492 if test -z "$ac_cpp_err"; then
6493 ac_header_preproc=yes
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6498 ac_header_preproc=no
6500 rm -f conftest.err conftest.$ac_ext
6501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6502 echo "${ECHO_T}$ac_header_preproc" >&6
6504 # So? What about this header?
6505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6511 ac_header_preproc=yes
6514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6517 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6521 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6528 ## ----------------------------------- ##
6529 ## Report this to llvmbugs@cs.uiuc.edu ##
6530 ## ----------------------------------- ##
6533 sed "s/^/$as_me: WARNING: /" >&2
6536 echo "$as_me:$LINENO: checking for $ac_header" >&5
6537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 eval "$as_ac_Header=\$ac_header_preproc"
6543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6548 cat >>confdefs.h <<_ACEOF
6549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6556 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6557 if test "${enable_ltdl_install+set}" = set; then
6558 enableval="$enable_ltdl_install"
6564 if test x"${enable_ltdl_install-no}" != xno; then
6566 INSTALL_LTDL_FALSE='#'
6568 INSTALL_LTDL_TRUE='#'
6574 if test x"${enable_ltdl_convenience-no}" != xno; then
6575 CONVENIENCE_LTDL_TRUE=
6576 CONVENIENCE_LTDL_FALSE='#'
6578 CONVENIENCE_LTDL_TRUE='#'
6579 CONVENIENCE_LTDL_FALSE=
6583 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6584 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6586 libname_spec='lib$name'
6594 shlibpath_overrides_runpath=unknown
6596 dynamic_linker="$host_os ld.so"
6597 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6598 if test "$GCC" = yes; then
6599 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6600 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6601 # if the path contains ";" then we assume it to be the separator
6602 # otherwise default to the standard path separator (i.e. ":") - it is
6603 # assumed that no part of a normal pathname contains ";" but that should
6604 # okay in the real world where ";" in dirpaths is itself problematic.
6605 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6607 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6610 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6612 need_lib_prefix=unknown
6613 hardcode_into_libs=no
6615 # when you set need_version to no, make sure it does not cause -set_version
6616 # flags to be left without arguments
6617 need_version=unknown
6622 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6623 shlibpath_var=LIBPATH
6625 # AIX 3 has no versioning support, so we append a major version to the name.
6626 soname_spec='${libname}${release}${shared_ext}$major'
6633 hardcode_into_libs=yes
6634 if test "$host_cpu" = ia64; then
6635 # AIX 5 supports IA64
6636 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6637 shlibpath_var=LD_LIBRARY_PATH
6639 # With GCC up to 2.95.x, collect2 would create an import file
6640 # for dependence libraries. The import file would start with
6641 # the line `#! .'. This would cause the generated library to
6642 # depend on `.', always an invalid library. This was fixed in
6643 # development snapshots of GCC prior to 3.0.
6645 aix4 | aix4.[01] | aix4.[01].*)
6646 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6648 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6655 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6656 # soname into executable. Probably we can add versioning support to
6657 # collect2, so additional links can be useful in future.
6658 if test "$aix_use_runtimelinking" = yes; then
6659 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6660 # instead of lib<name>.a to let people know that these are not
6661 # typical AIX shared libraries.
6662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6664 # We preserve .a as extension for shared libraries through AIX4.2
6665 # and later when we are not doing run time linking.
6666 library_names_spec='${libname}${release}.a $libname.a'
6667 soname_spec='${libname}${release}${shared_ext}$major'
6669 shlibpath_var=LIBPATH
6674 library_names_spec='$libname.ixlibrary $libname.a'
6675 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6676 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'
6680 library_names_spec='${libname}${shared_ext}'
6681 dynamic_linker="$host_os ld.so"
6682 shlibpath_var=LIBRARY_PATH
6688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6689 soname_spec='${libname}${release}${shared_ext}$major'
6690 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6691 shlibpath_var=LD_LIBRARY_PATH
6692 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6693 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6694 # the default ld.so.conf also contains /usr/contrib/lib and
6695 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6696 # libtool to hard-code these into programs
6699 cygwin* | mingw* | pw32*)
6700 version_type=windows
6705 case $GCC,$host_os in
6706 yes,cygwin* | yes,mingw* | yes,pw32*)
6707 library_names_spec='$libname.dll.a'
6708 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6709 postinstall_cmds='base_file=`basename \${file}`~
6710 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6711 dldir=$destdir/`dirname \$dlpath`~
6712 test -d \$dldir || mkdir -p \$dldir~
6713 $install_prog $dir/$dlname \$dldir/$dlname'
6714 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6715 dlpath=$dir/\$dldll~
6717 shlibpath_overrides_runpath=yes
6721 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6722 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6723 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6726 # MinGW DLLs use traditional 'lib' prefix
6727 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6728 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6729 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6730 # It is most probably a Windows format PATH printed by
6731 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6732 # path with ; separators, and with drive letters. We can handle the
6733 # drive letters (cygwin fileutils understands them), so leave them,
6734 # especially as we might pass files found there to a mingw objdump,
6735 # which wouldn't understand a cygwinified path. Ahh.
6736 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6742 # pw32 DLLs use 'pw' prefix rather than 'lib'
6743 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6749 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6752 dynamic_linker='Win32 ld.exe'
6753 # FIXME: first we should search . and the directory the executable is in
6757 darwin* | rhapsody*)
6758 dynamic_linker="$host_os dyld"
6762 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6763 soname_spec='${libname}${release}${major}$shared_ext'
6764 shlibpath_overrides_runpath=yes
6765 shlibpath_var=DYLD_LIBRARY_PATH
6766 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6767 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6768 if test "$GCC" = yes; then
6769 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"`
6771 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6773 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6781 soname_spec='${libname}${release}${shared_ext}$major'
6782 shlibpath_var=LD_LIBRARY_PATH
6793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6794 soname_spec='${libname}${release}${shared_ext}$major'
6795 shlibpath_var=LD_LIBRARY_PATH
6796 shlibpath_overrides_runpath=no
6797 hardcode_into_libs=yes
6798 dynamic_linker='GNU ld.so'
6802 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6803 version_type=freebsd-$objformat
6804 case $version_type in
6806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6811 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6815 shlibpath_var=LD_LIBRARY_PATH
6818 shlibpath_overrides_runpath=yes
6820 freebsd3.01* | freebsdelf3.01*)
6821 shlibpath_overrides_runpath=yes
6822 hardcode_into_libs=yes
6825 shlibpath_overrides_runpath=no
6826 hardcode_into_libs=yes
6835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6836 soname_spec='${libname}${release}${shared_ext}$major'
6837 shlibpath_var=LD_LIBRARY_PATH
6838 hardcode_into_libs=yes
6841 hpux9* | hpux10* | hpux11*)
6842 # Give a soname corresponding to the major version so that dld.sl refuses to
6843 # link against other versions.
6850 hardcode_into_libs=yes
6851 dynamic_linker="$host_os dld.so"
6852 shlibpath_var=LD_LIBRARY_PATH
6853 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6855 soname_spec='${libname}${release}${shared_ext}$major'
6856 if test "X$HPUX_IA64_MODE" = X32; then
6857 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6859 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6865 hardcode_into_libs=yes
6866 dynamic_linker="$host_os dld.sl"
6867 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6868 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6870 soname_spec='${libname}${release}${shared_ext}$major'
6871 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6876 dynamic_linker="$host_os dld.sl"
6877 shlibpath_var=SHLIB_PATH
6878 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6880 soname_spec='${libname}${release}${shared_ext}$major'
6883 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6884 postinstall_cmds='chmod 555 $lib'
6887 irix5* | irix6* | nonstopux*)
6889 nonstopux*) version_type=nonstopux ;;
6891 if test "$lt_cv_prog_gnu_ld" = yes; then
6899 soname_spec='${libname}${release}${shared_ext}$major'
6900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6902 irix5* | nonstopux*)
6906 case $LD in # libtool.m4 will add one of these switches to LD
6907 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6908 libsuff= shlibsuff= libmagic=32-bit;;
6909 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6910 libsuff=32 shlibsuff=N32 libmagic=N32;;
6911 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6912 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6913 *) libsuff= shlibsuff= libmagic=never-match;;
6917 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6918 shlibpath_overrides_runpath=no
6919 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6920 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6921 hardcode_into_libs=yes
6924 # No shared lib support for Linux oldld, aout, or coff.
6925 linux*oldld* | linux*aout* | linux*coff*)
6929 # This must be Linux ELF.
6934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6935 soname_spec='${libname}${release}${shared_ext}$major'
6936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6937 shlibpath_var=LD_LIBRARY_PATH
6938 shlibpath_overrides_runpath=no
6939 # This implies no fast_install, which is unacceptable.
6940 # Some rework will be needed to allow for fast_install
6941 # before this can be enabled.
6942 hardcode_into_libs=yes
6944 # Append ld.so.conf contents to the search path
6945 if test -f /etc/ld.so.conf; then
6946 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6947 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6950 # We used to test for /lib/ld.so.1 and disable shared libraries on
6951 # powerpc, because MkLinux only supported shared libraries with the
6952 # GNU dynamic linker. Since this was broken with cross compilers,
6953 # most powerpc-linux boxes support dynamic linking these days and
6954 # people can always --disable-shared, the test was removed, and we
6955 # assume the GNU/Linux dynamic linker is in use.
6956 dynamic_linker='GNU/Linux ld.so'
6963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6964 soname_spec='${libname}${release}${shared_ext}$major'
6965 shlibpath_var=LD_LIBRARY_PATH
6966 shlibpath_overrides_runpath=no
6967 hardcode_into_libs=yes
6968 dynamic_linker='GNU ld.so'
6975 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6978 dynamic_linker='NetBSD (a.out) ld.so'
6980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6981 soname_spec='${libname}${release}${shared_ext}$major'
6982 dynamic_linker='NetBSD ld.elf_so'
6984 shlibpath_var=LD_LIBRARY_PATH
6985 shlibpath_overrides_runpath=yes
6986 hardcode_into_libs=yes
6991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6992 shlibpath_var=LD_LIBRARY_PATH
6993 shlibpath_overrides_runpath=yes
7000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7001 soname_spec='${libname}${release}${shared_ext}$major'
7002 shlibpath_var=LD_LIBRARY_PATH
7003 shlibpath_overrides_runpath=yes
7010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7012 shlibpath_var=LD_LIBRARY_PATH
7013 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7015 openbsd2.[89] | openbsd2.[89].*)
7016 shlibpath_overrides_runpath=no
7019 shlibpath_overrides_runpath=yes
7023 shlibpath_overrides_runpath=yes
7028 libname_spec='$name'
7031 library_names_spec='$libname${shared_ext} $libname.a'
7032 dynamic_linker='OS/2 ld.exe'
7033 shlibpath_var=LIBPATH
7036 osf3* | osf4* | osf5*)
7040 soname_spec='${libname}${release}${shared_ext}$major'
7041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7042 shlibpath_var=LD_LIBRARY_PATH
7043 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7044 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7049 soname_spec='${libname}${release}${shared_ext}$major'
7050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7051 shlibpath_var=LD_LIBRARY_PATH
7058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7059 soname_spec='${libname}${release}${shared_ext}$major'
7060 shlibpath_var=LD_LIBRARY_PATH
7061 shlibpath_overrides_runpath=yes
7062 hardcode_into_libs=yes
7063 # ldd complains unless libraries are executable
7064 postinstall_cmds='chmod +x $lib'
7069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7070 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7071 shlibpath_var=LD_LIBRARY_PATH
7072 shlibpath_overrides_runpath=yes
7073 if test "$with_gnu_ld" = yes; then
7079 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7082 soname_spec='${libname}${release}${shared_ext}$major'
7083 shlibpath_var=LD_LIBRARY_PATH
7084 case $host_vendor in
7086 shlibpath_overrides_runpath=no
7088 export_dynamic_flag_spec='${wl}-Blargedynsym'
7089 runpath_var=LD_RUN_PATH
7097 shlibpath_overrides_runpath=no
7098 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7104 if test -d /usr/nec ;then
7106 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7107 soname_spec='$libname${shared_ext}.$major'
7108 shlibpath_var=LD_LIBRARY_PATH
7114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7115 soname_spec='${libname}${release}${shared_ext}$major'
7116 shlibpath_var=LD_LIBRARY_PATH
7123 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7124 echo "${ECHO_T}$dynamic_linker" >&6
7125 test "$dynamic_linker" = no && can_build_shared=no
7128 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7129 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7130 if test "${libltdl_cv_shlibext+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 eval libltdl_cv_shlibext=$shrext_cmds
7138 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7139 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7140 if test -n "$libltdl_cv_shlibext"; then
7142 cat >>confdefs.h <<_ACEOF
7143 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7149 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7150 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7151 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 libltdl_cv_shlibpath_var="$shlibpath_var"
7156 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7157 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7158 if test -n "$libltdl_cv_shlibpath_var"; then
7160 cat >>confdefs.h <<_ACEOF
7161 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7167 echo "$as_me:$LINENO: checking for the default library search path" >&5
7168 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7169 if test "${libltdl_cv_sys_search_path+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7174 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7175 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7176 if test -n "$libltdl_cv_sys_search_path"; then
7178 for dir in $libltdl_cv_sys_search_path; do
7179 if test -z "$sys_search_path"; then
7180 sys_search_path="$dir"
7182 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7186 cat >>confdefs.h <<_ACEOF
7187 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7192 echo "$as_me:$LINENO: checking for objdir" >&5
7193 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7194 if test "${libltdl_cv_objdir+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 libltdl_cv_objdir="$objdir"
7198 if test -n "$objdir"; then
7201 rm -f .libs 2>/dev/null
7202 mkdir .libs 2>/dev/null
7203 if test -d .libs; then
7204 libltdl_cv_objdir=.libs
7206 # MS-DOS does not allow filenames that begin with a dot.
7207 libltdl_cv_objdir=_libs
7209 rmdir .libs 2>/dev/null
7213 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7214 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7216 cat >>confdefs.h <<_ACEOF
7217 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7221 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7222 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7223 if test "${lt_cv_path_NM+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 if test -n "$NM"; then
7227 # Let the user override the test.
7230 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7231 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7233 test -z "$ac_dir" && ac_dir=.
7234 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7235 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7236 # Check to see if the nm accepts a BSD-compat flag.
7237 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7238 # nm: unknown option "B" ignored
7239 # Tru64's nm complains that /dev/null is an invalid object file
7240 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7241 */dev/null* | *'Invalid file or object type'*)
7242 lt_cv_path_NM="$tmp_nm -B"
7246 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7248 lt_cv_path_NM="$tmp_nm -p"
7252 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7253 continue # so that we can try to find one that supports BSD flags
7260 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7263 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7264 echo "${ECHO_T}$lt_cv_path_NM" >&6
7271 # Check for command to grab the raw symbol name followed by C symbol from nm.
7272 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7273 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7274 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 # These are sane defaults that work on at least a few old systems.
7279 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7281 # Character class describing NM global symbol codes.
7282 symcode='[BCDEGRST]'
7284 # Regexp to match symbols that can be accessed directly from C.
7285 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7287 # Transform the above into a raw symbol and a C symbol.
7288 symxfrm='\1 \2\3 \3'
7290 # Transform an extracted symbol line into a proper C declaration
7291 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7293 # Transform an extracted symbol line into symbol name and symbol address
7294 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'"
7296 # Define system-specific variables.
7301 cygwin* | mingw* | pw32*)
7302 symcode='[ABCDGISTW]'
7304 hpux*) # Its linker distinguishes data from code symbols
7305 if test "$host_cpu" = ia64; then
7306 symcode='[ABCDEGRST]'
7308 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7309 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'"
7312 if test "$host_cpu" = ia64; then
7313 symcode='[ABCDGIRSTW]'
7314 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7315 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'"
7319 symcode='[BCDEGRST]'
7322 symcode='[BCDEGQRST]'
7332 # Handle CRLF in mingw tool chain
7336 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7340 # If we're using GNU nm, then use its standard symbol codes.
7341 case `$NM -V 2>&1` in
7342 *GNU* | *'with BFD'*)
7343 symcode='[ABCDGIRSTW]' ;;
7346 # Try without a prefix undercore, then with it.
7347 for ac_symprfx in "" "_"; do
7349 # Write the raw and C identifiers.
7350 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7352 # Check to see that the pipe works correctly.
7356 cat > conftest.$ac_ext <<EOF
7361 void nm_test_func(){}
7365 int main(){nm_test_var='a';nm_test_func();return(0);}
7368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7369 (eval $ac_compile) 2>&5
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); }; then
7373 # Now try to grab the symbols.
7375 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7376 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } && test -s "$nlist"; then
7380 # Try sorting and uniquifying the output.
7381 if sort "$nlist" | uniq > "$nlist"T; then
7382 mv -f "$nlist"T "$nlist"
7387 # Make sure that we snagged all the symbols we need.
7388 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7389 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7390 cat <<EOF > conftest.$ac_ext
7396 # Now generate the symbol file.
7397 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7399 cat <<EOF >> conftest.$ac_ext
7400 #if defined (__STDC__) && __STDC__
7401 # define lt_ptr_t void *
7403 # define lt_ptr_t char *
7407 /* The mapping between symbol names and symbols. */
7412 lt_preloaded_symbols[] =
7415 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7416 cat <<\EOF >> conftest.$ac_ext
7424 # Now try linking the two files.
7425 mv conftest.$ac_objext conftstm.$ac_objext
7426 lt_save_LIBS="$LIBS"
7427 lt_save_CFLAGS="$CFLAGS"
7428 LIBS="conftstm.$ac_objext"
7429 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7431 (eval $ac_link) 2>&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7437 LIBS="$lt_save_LIBS"
7438 CFLAGS="$lt_save_CFLAGS"
7440 echo "cannot find nm_test_func in $nlist" >&5
7443 echo "cannot find nm_test_var in $nlist" >&5
7446 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7449 echo "$progname: failed program was:" >&5
7450 cat conftest.$ac_ext >&5
7452 rm -f conftest* conftst*
7454 # Do not use the global_symbol_pipe unless it works.
7455 if test "$pipe_works" = yes; then
7458 lt_cv_sys_global_symbol_pipe=
7464 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7465 lt_cv_sys_global_symbol_to_cdecl=
7467 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7468 echo "$as_me:$LINENO: result: failed" >&5
7469 echo "${ECHO_T}failed" >&6
7471 echo "$as_me:$LINENO: result: ok" >&5
7472 echo "${ECHO_T}ok" >&6
7476 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7477 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7478 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7481 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7482 libltdl_cv_preloaded_symbols=yes
7484 libltdl_cv_preloaded_symbols=no
7488 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7489 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7490 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7492 cat >>confdefs.h <<\_ACEOF
7493 #define HAVE_PRELOADED_SYMBOLS 1
7501 ac_cpp='$CPP $CPPFLAGS'
7502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7507 echo "$as_me:$LINENO: checking for shl_load" >&5
7508 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7509 if test "${ac_cv_func_shl_load+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 cat >conftest.$ac_ext <<_ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h. */
7518 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7520 #define shl_load innocuous_shl_load
7522 /* System header to define __stub macros and hopefully few prototypes,
7523 which can conflict with char shl_load (); below.
7524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7525 <limits.h> exists even on freestanding compilers. */
7528 # include <limits.h>
7530 # include <assert.h>
7535 /* Override any gcc2 internal prototype to avoid an error. */
7540 /* We use char because int might match the return type of a gcc2
7541 builtin and then its argument prototype would still apply. */
7543 /* The GNU C library defines this for functions which it implements
7544 to always fail with ENOSYS. Some functions are actually named
7545 something starting with __ and the normal name is an alias. */
7546 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7549 char (*f) () = shl_load;
7558 return f != shl_load;
7563 rm -f conftest.$ac_objext conftest$ac_exeext
7564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7565 (eval $ac_link) 2>conftest.er1
7567 grep -v '^ *+' conftest.er1 >conftest.err
7569 cat conftest.err >&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } &&
7572 { ac_try='test -z "$ac_c_werror_flag"
7573 || test ! -s conftest.err'
7574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); }; } &&
7579 { ac_try='test -s conftest$ac_exeext'
7580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); }; }; then
7585 ac_cv_func_shl_load=yes
7587 echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.$ac_ext >&5
7590 ac_cv_func_shl_load=no
7592 rm -f conftest.err conftest.$ac_objext \
7593 conftest$ac_exeext conftest.$ac_ext
7595 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7596 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7597 if test $ac_cv_func_shl_load = yes; then
7599 cat >>confdefs.h <<\_ACEOF
7600 #define HAVE_SHL_LOAD 1
7604 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7605 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7606 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 ac_check_lib_save_LIBS=$LIBS
7611 cat >conftest.$ac_ext <<_ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7618 /* Override any gcc2 internal prototype to avoid an error. */
7622 /* We use char because int might match the return type of a gcc2
7623 builtin and then its argument prototype would still apply. */
7633 rm -f conftest.$ac_objext conftest$ac_exeext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635 (eval $ac_link) 2>conftest.er1
7637 grep -v '^ *+' conftest.er1 >conftest.err
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7642 { ac_try='test -z "$ac_c_werror_flag"
7643 || test ! -s conftest.err'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; } &&
7649 { ac_try='test -s conftest$ac_exeext'
7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
7655 ac_cv_lib_dld_shl_load=yes
7657 echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7660 ac_cv_lib_dld_shl_load=no
7662 rm -f conftest.err conftest.$ac_objext \
7663 conftest$ac_exeext conftest.$ac_ext
7664 LIBS=$ac_check_lib_save_LIBS
7666 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7667 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7668 if test $ac_cv_lib_dld_shl_load = yes; then
7670 cat >>confdefs.h <<\_ACEOF
7671 #define HAVE_SHL_LOAD 1
7674 LIBADD_DL="$LIBADD_DL -ldld"
7676 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7677 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7678 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 ac_check_lib_save_LIBS=$LIBS
7683 cat >conftest.$ac_ext <<_ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7690 /* Override any gcc2 internal prototype to avoid an error. */
7694 /* We use char because int might match the return type of a gcc2
7695 builtin and then its argument prototype would still apply. */
7705 rm -f conftest.$ac_objext conftest$ac_exeext
7706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7707 (eval $ac_link) 2>conftest.er1
7709 grep -v '^ *+' conftest.er1 >conftest.err
7711 cat conftest.err >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } &&
7714 { ac_try='test -z "$ac_c_werror_flag"
7715 || test ! -s conftest.err'
7716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); }; } &&
7721 { ac_try='test -s conftest$ac_exeext'
7722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); }; }; then
7727 ac_cv_lib_dl_dlopen=yes
7729 echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7732 ac_cv_lib_dl_dlopen=no
7734 rm -f conftest.err conftest.$ac_objext \
7735 conftest$ac_exeext conftest.$ac_ext
7736 LIBS=$ac_check_lib_save_LIBS
7738 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7739 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7740 if test $ac_cv_lib_dl_dlopen = yes; then
7742 cat >>confdefs.h <<\_ACEOF
7743 #define HAVE_LIBDL 1
7746 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7748 cat >conftest.$ac_ext <<_ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h. */
7766 rm -f conftest.$ac_objext conftest$ac_exeext
7767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7768 (eval $ac_link) 2>conftest.er1
7770 grep -v '^ *+' conftest.er1 >conftest.err
7772 cat conftest.err >&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } &&
7775 { ac_try='test -z "$ac_c_werror_flag"
7776 || test ! -s conftest.err'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; } &&
7782 { ac_try='test -s conftest$ac_exeext'
7783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; }; then
7789 cat >>confdefs.h <<\_ACEOF
7790 #define HAVE_LIBDL 1
7792 libltdl_cv_func_dlopen="yes"
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7797 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7798 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7799 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 ac_check_lib_save_LIBS=$LIBS
7804 cat >conftest.$ac_ext <<_ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h. */
7811 /* Override any gcc2 internal prototype to avoid an error. */
7815 /* We use char because int might match the return type of a gcc2
7816 builtin and then its argument prototype would still apply. */
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7828 (eval $ac_link) 2>conftest.er1
7830 grep -v '^ *+' conftest.er1 >conftest.err
7832 cat conftest.err >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } &&
7835 { ac_try='test -z "$ac_c_werror_flag"
7836 || test ! -s conftest.err'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; } &&
7842 { ac_try='test -s conftest$ac_exeext'
7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 ac_cv_lib_svld_dlopen=yes
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853 ac_cv_lib_svld_dlopen=no
7855 rm -f conftest.err conftest.$ac_objext \
7856 conftest$ac_exeext conftest.$ac_ext
7857 LIBS=$ac_check_lib_save_LIBS
7859 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7860 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7861 if test $ac_cv_lib_svld_dlopen = yes; then
7863 cat >>confdefs.h <<\_ACEOF
7864 #define HAVE_LIBDL 1
7867 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7869 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7870 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7871 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 ac_check_lib_save_LIBS=$LIBS
7876 cat >conftest.$ac_ext <<_ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h. */
7883 /* Override any gcc2 internal prototype to avoid an error. */
7887 /* We use char because int might match the return type of a gcc2
7888 builtin and then its argument prototype would still apply. */
7898 rm -f conftest.$ac_objext conftest$ac_exeext
7899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7900 (eval $ac_link) 2>conftest.er1
7902 grep -v '^ *+' conftest.er1 >conftest.err
7904 cat conftest.err >&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } &&
7907 { ac_try='test -z "$ac_c_werror_flag"
7908 || test ! -s conftest.err'
7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; } &&
7914 { ac_try='test -s conftest$ac_exeext'
7915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); }; }; then
7920 ac_cv_lib_dld_dld_link=yes
7922 echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7925 ac_cv_lib_dld_dld_link=no
7927 rm -f conftest.err conftest.$ac_objext \
7928 conftest$ac_exeext conftest.$ac_ext
7929 LIBS=$ac_check_lib_save_LIBS
7931 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7932 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7933 if test $ac_cv_lib_dld_dld_link = yes; then
7935 cat >>confdefs.h <<\_ACEOF
7939 LIBADD_DL="$LIBADD_DL -ldld"
7941 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7942 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7943 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7946 cat >conftest.$ac_ext <<_ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7952 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7954 #define _dyld_func_lookup innocuous__dyld_func_lookup
7956 /* System header to define __stub macros and hopefully few prototypes,
7957 which can conflict with char _dyld_func_lookup (); below.
7958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7959 <limits.h> exists even on freestanding compilers. */
7962 # include <limits.h>
7964 # include <assert.h>
7967 #undef _dyld_func_lookup
7969 /* Override any gcc2 internal prototype to avoid an error. */
7974 /* We use char because int might match the return type of a gcc2
7975 builtin and then its argument prototype would still apply. */
7976 char _dyld_func_lookup ();
7977 /* The GNU C library defines this for functions which it implements
7978 to always fail with ENOSYS. Some functions are actually named
7979 something starting with __ and the normal name is an alias. */
7980 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7983 char (*f) () = _dyld_func_lookup;
7992 return f != _dyld_func_lookup;
7997 rm -f conftest.$ac_objext conftest$ac_exeext
7998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7999 (eval $ac_link) 2>conftest.er1
8001 grep -v '^ *+' conftest.er1 >conftest.err
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } &&
8006 { ac_try='test -z "$ac_c_werror_flag"
8007 || test ! -s conftest.err'
8008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); }; } &&
8013 { ac_try='test -s conftest$ac_exeext'
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; }; then
8019 ac_cv_func__dyld_func_lookup=yes
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8024 ac_cv_func__dyld_func_lookup=no
8026 rm -f conftest.err conftest.$ac_objext \
8027 conftest$ac_exeext conftest.$ac_ext
8029 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8030 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8031 if test $ac_cv_func__dyld_func_lookup = yes; then
8033 cat >>confdefs.h <<\_ACEOF
8047 rm -f conftest.err conftest.$ac_objext \
8048 conftest$ac_exeext conftest.$ac_ext
8059 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8061 lt_save_LIBS="$LIBS"
8062 LIBS="$LIBS $LIBADD_DL"
8064 for ac_func in dlerror
8066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8067 echo "$as_me:$LINENO: checking for $ac_func" >&5
8068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8069 if eval "test \"\${$as_ac_var+set}\" = set"; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 cat >conftest.$ac_ext <<_ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8080 #define $ac_func innocuous_$ac_func
8082 /* System header to define __stub macros and hopefully few prototypes,
8083 which can conflict with char $ac_func (); below.
8084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8085 <limits.h> exists even on freestanding compilers. */
8088 # include <limits.h>
8090 # include <assert.h>
8095 /* Override any gcc2 internal prototype to avoid an error. */
8100 /* We use char because int might match the return type of a gcc2
8101 builtin and then its argument prototype would still apply. */
8103 /* The GNU C library defines this for functions which it implements
8104 to always fail with ENOSYS. Some functions are actually named
8105 something starting with __ and the normal name is an alias. */
8106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8109 char (*f) () = $ac_func;
8118 return f != $ac_func;
8123 rm -f conftest.$ac_objext conftest$ac_exeext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8125 (eval $ac_link) 2>conftest.er1
8127 grep -v '^ *+' conftest.er1 >conftest.err
8129 cat conftest.err >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } &&
8132 { ac_try='test -z "$ac_c_werror_flag"
8133 || test ! -s conftest.err'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; } &&
8139 { ac_try='test -s conftest$ac_exeext'
8140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; }; then
8145 eval "$as_ac_var=yes"
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8150 eval "$as_ac_var=no"
8152 rm -f conftest.err conftest.$ac_objext \
8153 conftest$ac_exeext conftest.$ac_ext
8155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8157 if test `eval echo '${'$as_ac_var'}'` = yes; then
8158 cat >>confdefs.h <<_ACEOF
8159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8165 LIBS="$lt_save_LIBS"
8168 ac_cpp='$CPP $CPPFLAGS'
8169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8175 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8176 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8177 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8180 ac_cv_sys_symbol_underscore=no
8181 cat > conftest.$ac_ext <<EOF
8182 void nm_test_func(){}
8183 int main(){nm_test_func;return 0;}
8185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8186 (eval $ac_compile) 2>&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; then
8190 # Now try to grab the symbols.
8191 ac_nlist=conftest.nm
8192 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8193 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } && test -s "$ac_nlist"; then
8197 # See whether the symbols have a leading underscore.
8198 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8199 ac_cv_sys_symbol_underscore=yes
8201 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8204 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8208 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8211 echo "configure: failed program was:" >&5
8217 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8218 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8221 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8222 if test x"$libltdl_cv_func_dlopen" = xyes ||
8223 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8224 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8225 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8226 if test "${libltdl_cv_need_uscore+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 libltdl_cv_need_uscore=unknown
8231 LIBS="$LIBS $LIBADD_DL"
8232 if test "$cross_compiling" = yes; then :
8233 libltdl_cv_need_uscore=cross
8235 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8236 lt_status=$lt_dlunknown
8237 cat > conftest.$ac_ext <<EOF
8238 #line 8238 "configure"
8239 #include "confdefs.h"
8248 # define LT_DLGLOBAL RTLD_GLOBAL
8251 # define LT_DLGLOBAL DL_GLOBAL
8253 # define LT_DLGLOBAL 0
8257 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8258 find out it does not work in some platform. */
8259 #ifndef LT_DLLAZY_OR_NOW
8261 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8264 # define LT_DLLAZY_OR_NOW DL_LAZY
8267 # define LT_DLLAZY_OR_NOW RTLD_NOW
8270 # define LT_DLLAZY_OR_NOW DL_NOW
8272 # define LT_DLLAZY_OR_NOW 0
8280 extern "C" void exit (int);
8283 void fnord() { int i=42;}
8286 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8287 int status = $lt_dlunknown;
8291 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8292 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8293 /* dlclose (self); */
8299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8300 (eval $ac_link) 2>&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8304 (./conftest; exit; ) 2>/dev/null
8307 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8308 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8312 # compilation failed
8321 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8322 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8326 if test x"$libltdl_cv_need_uscore" = xyes; then
8328 cat >>confdefs.h <<\_ACEOF
8329 #define NEED_USCORE 1
8335 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8336 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8337 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8340 # PORTME does your system automatically load deplibs for dlopen?
8341 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8342 # For now, we just catch OSes we know something about -- in the
8343 # future, we'll try test this programmatically.
8344 libltdl_cv_sys_dlopen_deplibs=unknown
8346 aix3*|aix4.1.*|aix4.2.*)
8347 # Unknown whether this is true for these versions of AIX, but
8348 # we want this `case' here to explicitly catch those versions.
8349 libltdl_cv_sys_dlopen_deplibs=unknown
8352 libltdl_cv_sys_dlopen_deplibs=yes
8355 # Assuming the user has installed a libdl from somewhere, this is true
8356 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8357 libltdl_cv_sys_dlopen_deplibs=yes
8359 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8360 # GNU and its variants, using gnu ld.so (Glibc)
8361 libltdl_cv_sys_dlopen_deplibs=yes
8364 libltdl_cv_sys_dlopen_deplibs=yes
8366 irix[12345]*|irix6.[01]*)
8367 # Catch all versions of IRIX before 6.2, and indicate that we don't
8368 # know how it worked for any of those versions.
8369 libltdl_cv_sys_dlopen_deplibs=unknown
8372 # The case above catches anything before 6.2, and it's known that
8373 # at 6.2 and later dlopen does load deplibs.
8374 libltdl_cv_sys_dlopen_deplibs=yes
8377 libltdl_cv_sys_dlopen_deplibs=yes
8380 libltdl_cv_sys_dlopen_deplibs=yes
8383 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8384 # it did *not* use an RPATH in a shared library to find objects the
8385 # library depends on, so we explictly say `no'.
8386 libltdl_cv_sys_dlopen_deplibs=no
8388 osf5.0|osf5.0a|osf5.1)
8389 # dlopen *does* load deplibs and with the right loader patch applied
8390 # it even uses RPATH in a shared library to search for shared objects
8391 # that the library depends on, but there's no easy way to know if that
8392 # patch is installed. Since this is the case, all we can really
8393 # say is unknown -- it depends on the patch being installed. If
8394 # it is, this changes to `yes'. Without it, it would be `no'.
8395 libltdl_cv_sys_dlopen_deplibs=unknown
8398 # the two cases above should catch all versions of osf <= 5.1. Read
8399 # the comments above for what we know about them.
8400 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8401 # is used to find them so we can finally say `yes'.
8402 libltdl_cv_sys_dlopen_deplibs=yes
8405 libltdl_cv_sys_dlopen_deplibs=yes
8410 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8411 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8412 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8414 cat >>confdefs.h <<\_ACEOF
8415 #define LTDL_DLOPEN_DEPLIBS 1
8421 for ac_header in argz.h
8423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8425 echo "$as_me:$LINENO: checking for $ac_header" >&5
8426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8433 # Is the header compilable?
8434 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8436 cat >conftest.$ac_ext <<_ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8442 $ac_includes_default
8443 #include <$ac_header>
8445 rm -f conftest.$ac_objext
8446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8447 (eval $ac_compile) 2>conftest.er1
8449 grep -v '^ *+' conftest.er1 >conftest.err
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
8454 { ac_try='test -z "$ac_c_werror_flag"
8455 || test ! -s conftest.err'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; } &&
8461 { ac_try='test -s conftest.$ac_objext'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 ac_header_compiler=yes
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8472 ac_header_compiler=no
8474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8475 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8476 echo "${ECHO_T}$ac_header_compiler" >&6
8478 # Is the header present?
8479 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8481 cat >conftest.$ac_ext <<_ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8487 #include <$ac_header>
8489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8492 grep -v '^ *+' conftest.er1 >conftest.err
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } >/dev/null; then
8497 if test -s conftest.err; then
8498 ac_cpp_err=$ac_c_preproc_warn_flag
8499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8506 if test -z "$ac_cpp_err"; then
8507 ac_header_preproc=yes
8509 echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8512 ac_header_preproc=no
8514 rm -f conftest.err conftest.$ac_ext
8515 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8516 echo "${ECHO_T}$ac_header_preproc" >&6
8518 # So? What about this header?
8519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8525 ac_header_preproc=yes
8528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8535 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8542 ## ----------------------------------- ##
8543 ## Report this to llvmbugs@cs.uiuc.edu ##
8544 ## ----------------------------------- ##
8547 sed "s/^/$as_me: WARNING: /" >&2
8550 echo "$as_me:$LINENO: checking for $ac_header" >&5
8551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8555 eval "$as_ac_Header=\$ac_header_preproc"
8557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8562 cat >>confdefs.h <<_ACEOF
8563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8571 echo "$as_me:$LINENO: checking for error_t" >&5
8572 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8573 if test "${ac_cv_type_error_t+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 cat >conftest.$ac_ext <<_ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8591 if (sizeof (error_t))
8597 rm -f conftest.$ac_objext
8598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8599 (eval $ac_compile) 2>conftest.er1
8601 grep -v '^ *+' conftest.er1 >conftest.err
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } &&
8606 { ac_try='test -z "$ac_c_werror_flag"
8607 || test ! -s conftest.err'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; } &&
8613 { ac_try='test -s conftest.$ac_objext'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; }; then
8619 ac_cv_type_error_t=yes
8621 echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8624 ac_cv_type_error_t=no
8626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8628 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8629 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8630 if test $ac_cv_type_error_t = yes; then
8632 cat >>confdefs.h <<_ACEOF
8633 #define HAVE_ERROR_T 1
8639 cat >>confdefs.h <<\_ACEOF
8651 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8654 echo "$as_me:$LINENO: checking for $ac_func" >&5
8655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8656 if eval "test \"\${$as_ac_var+set}\" = set"; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 cat >conftest.$ac_ext <<_ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h. */
8665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8667 #define $ac_func innocuous_$ac_func
8669 /* System header to define __stub macros and hopefully few prototypes,
8670 which can conflict with char $ac_func (); below.
8671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8672 <limits.h> exists even on freestanding compilers. */
8675 # include <limits.h>
8677 # include <assert.h>
8682 /* Override any gcc2 internal prototype to avoid an error. */
8687 /* We use char because int might match the return type of a gcc2
8688 builtin and then its argument prototype would still apply. */
8690 /* The GNU C library defines this for functions which it implements
8691 to always fail with ENOSYS. Some functions are actually named
8692 something starting with __ and the normal name is an alias. */
8693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8696 char (*f) () = $ac_func;
8705 return f != $ac_func;
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712 (eval $ac_link) 2>conftest.er1
8714 grep -v '^ *+' conftest.er1 >conftest.err
8716 cat conftest.err >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
8719 { ac_try='test -z "$ac_c_werror_flag"
8720 || test ! -s conftest.err'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; } &&
8726 { ac_try='test -s conftest$ac_exeext'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; }; then
8732 eval "$as_ac_var=yes"
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8737 eval "$as_ac_var=no"
8739 rm -f conftest.err conftest.$ac_objext \
8740 conftest$ac_exeext conftest.$ac_ext
8742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8743 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8744 if test `eval echo '${'$as_ac_var'}'` = yes; then
8745 cat >>confdefs.h <<_ACEOF
8746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8779 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8784 echo "$as_me:$LINENO: checking for $ac_header" >&5
8785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8792 # Is the header compilable?
8793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8795 cat >conftest.$ac_ext <<_ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8801 $ac_includes_default
8802 #include <$ac_header>
8804 rm -f conftest.$ac_objext
8805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8806 (eval $ac_compile) 2>conftest.er1
8808 grep -v '^ *+' conftest.er1 >conftest.err
8810 cat conftest.err >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } &&
8813 { ac_try='test -z "$ac_c_werror_flag"
8814 || test ! -s conftest.err'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; } &&
8820 { ac_try='test -s conftest.$ac_objext'
8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; }; then
8826 ac_header_compiler=yes
8828 echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8831 ac_header_compiler=no
8833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8835 echo "${ECHO_T}$ac_header_compiler" >&6
8837 # Is the header present?
8838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8840 cat >conftest.$ac_ext <<_ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8846 #include <$ac_header>
8848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8851 grep -v '^ *+' conftest.er1 >conftest.err
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } >/dev/null; then
8856 if test -s conftest.err; then
8857 ac_cpp_err=$ac_c_preproc_warn_flag
8858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8865 if test -z "$ac_cpp_err"; then
8866 ac_header_preproc=yes
8868 echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8871 ac_header_preproc=no
8873 rm -f conftest.err conftest.$ac_ext
8874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8875 echo "${ECHO_T}$ac_header_preproc" >&6
8877 # So? What about this header?
8878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8884 ac_header_preproc=yes
8887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8901 ## ----------------------------------- ##
8902 ## Report this to llvmbugs@cs.uiuc.edu ##
8903 ## ----------------------------------- ##
8906 sed "s/^/$as_me: WARNING: /" >&2
8909 echo "$as_me:$LINENO: checking for $ac_header" >&5
8910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8912 echo $ECHO_N "(cached) $ECHO_C" >&6
8914 eval "$as_ac_Header=\$ac_header_preproc"
8916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8921 cat >>confdefs.h <<_ACEOF
8922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8933 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8937 echo "$as_me:$LINENO: checking for $ac_header" >&5
8938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
8942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8945 # Is the header compilable?
8946 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8948 cat >conftest.$ac_ext <<_ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8954 $ac_includes_default
8955 #include <$ac_header>
8957 rm -f conftest.$ac_objext
8958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8959 (eval $ac_compile) 2>conftest.er1
8961 grep -v '^ *+' conftest.er1 >conftest.err
8963 cat conftest.err >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } &&
8966 { ac_try='test -z "$ac_c_werror_flag"
8967 || test ! -s conftest.err'
8968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); }; } &&
8973 { ac_try='test -s conftest.$ac_objext'
8974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; }; then
8979 ac_header_compiler=yes
8981 echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.$ac_ext >&5
8984 ac_header_compiler=no
8986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8987 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8988 echo "${ECHO_T}$ac_header_compiler" >&6
8990 # Is the header present?
8991 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8992 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8993 cat >conftest.$ac_ext <<_ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h. */
8999 #include <$ac_header>
9001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9004 grep -v '^ *+' conftest.er1 >conftest.err
9006 cat conftest.err >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } >/dev/null; then
9009 if test -s conftest.err; then
9010 ac_cpp_err=$ac_c_preproc_warn_flag
9011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9018 if test -z "$ac_cpp_err"; then
9019 ac_header_preproc=yes
9021 echo "$as_me: failed program was:" >&5
9022 sed 's/^/| /' conftest.$ac_ext >&5
9024 ac_header_preproc=no
9026 rm -f conftest.err conftest.$ac_ext
9027 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9028 echo "${ECHO_T}$ac_header_preproc" >&6
9030 # So? What about this header?
9031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9033 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9036 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9037 ac_header_preproc=yes
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9043 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9045 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9046 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9047 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9050 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9051 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9054 ## ----------------------------------- ##
9055 ## Report this to llvmbugs@cs.uiuc.edu ##
9056 ## ----------------------------------- ##
9059 sed "s/^/$as_me: WARNING: /" >&2
9062 echo "$as_me:$LINENO: checking for $ac_header" >&5
9063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9065 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 eval "$as_ac_Header=\$ac_header_preproc"
9069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9074 cat >>confdefs.h <<_ACEOF
9075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9084 for ac_header in string.h strings.h
9086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9088 echo "$as_me:$LINENO: checking for $ac_header" >&5
9089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9096 # Is the header compilable?
9097 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9099 cat >conftest.$ac_ext <<_ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 $ac_includes_default
9106 #include <$ac_header>
9108 rm -f conftest.$ac_objext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9110 (eval $ac_compile) 2>conftest.er1
9112 grep -v '^ *+' conftest.er1 >conftest.err
9114 cat conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } &&
9117 { ac_try='test -z "$ac_c_werror_flag"
9118 || test ! -s conftest.err'
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; } &&
9124 { ac_try='test -s conftest.$ac_objext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 ac_header_compiler=yes
9132 echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.$ac_ext >&5
9135 ac_header_compiler=no
9137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9138 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9139 echo "${ECHO_T}$ac_header_compiler" >&6
9141 # Is the header present?
9142 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9144 cat >conftest.$ac_ext <<_ACEOF
9147 cat confdefs.h >>conftest.$ac_ext
9148 cat >>conftest.$ac_ext <<_ACEOF
9149 /* end confdefs.h. */
9150 #include <$ac_header>
9152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9155 grep -v '^ *+' conftest.er1 >conftest.err
9157 cat conftest.err >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); } >/dev/null; then
9160 if test -s conftest.err; then
9161 ac_cpp_err=$ac_c_preproc_warn_flag
9162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9169 if test -z "$ac_cpp_err"; then
9170 ac_header_preproc=yes
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9175 ac_header_preproc=no
9177 rm -f conftest.err conftest.$ac_ext
9178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9179 echo "${ECHO_T}$ac_header_preproc" >&6
9181 # So? What about this header?
9182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9188 ac_header_preproc=yes
9191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9194 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9198 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9205 ## ----------------------------------- ##
9206 ## Report this to llvmbugs@cs.uiuc.edu ##
9207 ## ----------------------------------- ##
9210 sed "s/^/$as_me: WARNING: /" >&2
9213 echo "$as_me:$LINENO: checking for $ac_header" >&5
9214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 eval "$as_ac_Header=\$ac_header_preproc"
9220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9225 cat >>confdefs.h <<_ACEOF
9226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9236 for ac_func in strchr index
9238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9239 echo "$as_me:$LINENO: checking for $ac_func" >&5
9240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9241 if eval "test \"\${$as_ac_var+set}\" = set"; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9244 cat >conftest.$ac_ext <<_ACEOF
9247 cat confdefs.h >>conftest.$ac_ext
9248 cat >>conftest.$ac_ext <<_ACEOF
9249 /* end confdefs.h. */
9250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9252 #define $ac_func innocuous_$ac_func
9254 /* System header to define __stub macros and hopefully few prototypes,
9255 which can conflict with char $ac_func (); below.
9256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9257 <limits.h> exists even on freestanding compilers. */
9260 # include <limits.h>
9262 # include <assert.h>
9267 /* Override any gcc2 internal prototype to avoid an error. */
9272 /* We use char because int might match the return type of a gcc2
9273 builtin and then its argument prototype would still apply. */
9275 /* The GNU C library defines this for functions which it implements
9276 to always fail with ENOSYS. Some functions are actually named
9277 something starting with __ and the normal name is an alias. */
9278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9281 char (*f) () = $ac_func;
9290 return f != $ac_func;
9295 rm -f conftest.$ac_objext conftest$ac_exeext
9296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9297 (eval $ac_link) 2>conftest.er1
9299 grep -v '^ *+' conftest.er1 >conftest.err
9301 cat conftest.err >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } &&
9304 { ac_try='test -z "$ac_c_werror_flag"
9305 || test ! -s conftest.err'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; } &&
9311 { ac_try='test -s conftest$ac_exeext'
9312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); }; }; then
9317 eval "$as_ac_var=yes"
9319 echo "$as_me: failed program was:" >&5
9320 sed 's/^/| /' conftest.$ac_ext >&5
9322 eval "$as_ac_var=no"
9324 rm -f conftest.err conftest.$ac_objext \
9325 conftest$ac_exeext conftest.$ac_ext
9327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9329 if test `eval echo '${'$as_ac_var'}'` = yes; then
9330 cat >>confdefs.h <<_ACEOF
9331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9339 for ac_func in strrchr rindex
9341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9342 echo "$as_me:$LINENO: checking for $ac_func" >&5
9343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9344 if eval "test \"\${$as_ac_var+set}\" = set"; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 cat >conftest.$ac_ext <<_ACEOF
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h. */
9353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9355 #define $ac_func innocuous_$ac_func
9357 /* System header to define __stub macros and hopefully few prototypes,
9358 which can conflict with char $ac_func (); below.
9359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9360 <limits.h> exists even on freestanding compilers. */
9363 # include <limits.h>
9365 # include <assert.h>
9370 /* Override any gcc2 internal prototype to avoid an error. */
9375 /* We use char because int might match the return type of a gcc2
9376 builtin and then its argument prototype would still apply. */
9378 /* The GNU C library defines this for functions which it implements
9379 to always fail with ENOSYS. Some functions are actually named
9380 something starting with __ and the normal name is an alias. */
9381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9384 char (*f) () = $ac_func;
9393 return f != $ac_func;
9398 rm -f conftest.$ac_objext conftest$ac_exeext
9399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9400 (eval $ac_link) 2>conftest.er1
9402 grep -v '^ *+' conftest.er1 >conftest.err
9404 cat conftest.err >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } &&
9407 { ac_try='test -z "$ac_c_werror_flag"
9408 || test ! -s conftest.err'
9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; } &&
9414 { ac_try='test -s conftest$ac_exeext'
9415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); }; }; then
9420 eval "$as_ac_var=yes"
9422 echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9425 eval "$as_ac_var=no"
9427 rm -f conftest.err conftest.$ac_objext \
9428 conftest$ac_exeext conftest.$ac_ext
9430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9432 if test `eval echo '${'$as_ac_var'}'` = yes; then
9433 cat >>confdefs.h <<_ACEOF
9434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9442 for ac_func in memcpy bcopy
9444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9445 echo "$as_me:$LINENO: checking for $ac_func" >&5
9446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9447 if eval "test \"\${$as_ac_var+set}\" = set"; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9450 cat >conftest.$ac_ext <<_ACEOF
9453 cat confdefs.h >>conftest.$ac_ext
9454 cat >>conftest.$ac_ext <<_ACEOF
9455 /* end confdefs.h. */
9456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9458 #define $ac_func innocuous_$ac_func
9460 /* System header to define __stub macros and hopefully few prototypes,
9461 which can conflict with char $ac_func (); below.
9462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9463 <limits.h> exists even on freestanding compilers. */
9466 # include <limits.h>
9468 # include <assert.h>
9473 /* Override any gcc2 internal prototype to avoid an error. */
9478 /* We use char because int might match the return type of a gcc2
9479 builtin and then its argument prototype would still apply. */
9481 /* The GNU C library defines this for functions which it implements
9482 to always fail with ENOSYS. Some functions are actually named
9483 something starting with __ and the normal name is an alias. */
9484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9487 char (*f) () = $ac_func;
9496 return f != $ac_func;
9501 rm -f conftest.$ac_objext conftest$ac_exeext
9502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9503 (eval $ac_link) 2>conftest.er1
9505 grep -v '^ *+' conftest.er1 >conftest.err
9507 cat conftest.err >&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } &&
9510 { ac_try='test -z "$ac_c_werror_flag"
9511 || test ! -s conftest.err'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; } &&
9517 { ac_try='test -s conftest$ac_exeext'
9518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; }; then
9523 eval "$as_ac_var=yes"
9525 echo "$as_me: failed program was:" >&5
9526 sed 's/^/| /' conftest.$ac_ext >&5
9528 eval "$as_ac_var=no"
9530 rm -f conftest.err conftest.$ac_objext \
9531 conftest$ac_exeext conftest.$ac_ext
9533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9535 if test `eval echo '${'$as_ac_var'}'` = yes; then
9536 cat >>confdefs.h <<_ACEOF
9537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9545 for ac_func in memmove strcmp
9547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9548 echo "$as_me:$LINENO: checking for $ac_func" >&5
9549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9550 if eval "test \"\${$as_ac_var+set}\" = set"; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 cat >conftest.$ac_ext <<_ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h. */
9559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9561 #define $ac_func innocuous_$ac_func
9563 /* System header to define __stub macros and hopefully few prototypes,
9564 which can conflict with char $ac_func (); below.
9565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9566 <limits.h> exists even on freestanding compilers. */
9569 # include <limits.h>
9571 # include <assert.h>
9576 /* Override any gcc2 internal prototype to avoid an error. */
9581 /* We use char because int might match the return type of a gcc2
9582 builtin and then its argument prototype would still apply. */
9584 /* The GNU C library defines this for functions which it implements
9585 to always fail with ENOSYS. Some functions are actually named
9586 something starting with __ and the normal name is an alias. */
9587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9590 char (*f) () = $ac_func;
9599 return f != $ac_func;
9604 rm -f conftest.$ac_objext conftest$ac_exeext
9605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9606 (eval $ac_link) 2>conftest.er1
9608 grep -v '^ *+' conftest.er1 >conftest.err
9610 cat conftest.err >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } &&
9613 { ac_try='test -z "$ac_c_werror_flag"
9614 || test ! -s conftest.err'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; } &&
9620 { ac_try='test -s conftest$ac_exeext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9626 eval "$as_ac_var=yes"
9628 echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9631 eval "$as_ac_var=no"
9633 rm -f conftest.err conftest.$ac_objext \
9634 conftest$ac_exeext conftest.$ac_ext
9636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9638 if test `eval echo '${'$as_ac_var'}'` = yes; then
9639 cat >>confdefs.h <<_ACEOF
9640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9649 for ac_func in closedir opendir readdir
9651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9652 echo "$as_me:$LINENO: checking for $ac_func" >&5
9653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9654 if eval "test \"\${$as_ac_var+set}\" = set"; then
9655 echo $ECHO_N "(cached) $ECHO_C" >&6
9657 cat >conftest.$ac_ext <<_ACEOF
9660 cat confdefs.h >>conftest.$ac_ext
9661 cat >>conftest.$ac_ext <<_ACEOF
9662 /* end confdefs.h. */
9663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9665 #define $ac_func innocuous_$ac_func
9667 /* System header to define __stub macros and hopefully few prototypes,
9668 which can conflict with char $ac_func (); below.
9669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9670 <limits.h> exists even on freestanding compilers. */
9673 # include <limits.h>
9675 # include <assert.h>
9680 /* Override any gcc2 internal prototype to avoid an error. */
9685 /* We use char because int might match the return type of a gcc2
9686 builtin and then its argument prototype would still apply. */
9688 /* The GNU C library defines this for functions which it implements
9689 to always fail with ENOSYS. Some functions are actually named
9690 something starting with __ and the normal name is an alias. */
9691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9694 char (*f) () = $ac_func;
9703 return f != $ac_func;
9708 rm -f conftest.$ac_objext conftest$ac_exeext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9710 (eval $ac_link) 2>conftest.er1
9712 grep -v '^ *+' conftest.er1 >conftest.err
9714 cat conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try='test -z "$ac_c_werror_flag"
9718 || test ! -s conftest.err'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; } &&
9724 { ac_try='test -s conftest$ac_exeext'
9725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
9730 eval "$as_ac_var=yes"
9732 echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9735 eval "$as_ac_var=no"
9737 rm -f conftest.err conftest.$ac_objext \
9738 conftest$ac_exeext conftest.$ac_ext
9740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9742 if test `eval echo '${'$as_ac_var'}'` = yes; then
9743 cat >>confdefs.h <<_ACEOF
9744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9751 # Check whether --enable-shared or --disable-shared was given.
9752 if test "${enable_shared+set}" = set; then
9753 enableval="$enable_shared"
9754 p=${PACKAGE-default}
9756 yes) enable_shared=yes ;;
9757 no) enable_shared=no ;;
9760 # Look at the argument we got. We use all the common list separators.
9761 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9762 for pkg in $enableval; do
9764 if test "X$pkg" = "X$p"; then
9775 # Check whether --enable-static or --disable-static was given.
9776 if test "${enable_static+set}" = set; then
9777 enableval="$enable_static"
9778 p=${PACKAGE-default}
9780 yes) enable_static=yes ;;
9781 no) enable_static=no ;;
9784 # Look at the argument we got. We use all the common list separators.
9785 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9786 for pkg in $enableval; do
9788 if test "X$pkg" = "X$p"; then
9799 # Check whether --enable-fast-install or --disable-fast-install was given.
9800 if test "${enable_fast_install+set}" = set; then
9801 enableval="$enable_fast_install"
9802 p=${PACKAGE-default}
9804 yes) enable_fast_install=yes ;;
9805 no) enable_fast_install=no ;;
9807 enable_fast_install=no
9808 # Look at the argument we got. We use all the common list separators.
9809 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9810 for pkg in $enableval; do
9812 if test "X$pkg" = "X$p"; then
9813 enable_fast_install=yes
9820 enable_fast_install=yes
9823 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9824 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9825 if test "${lt_cv_path_SED+set}" = set; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 # Loop through the user's path and test for sed and gsed.
9829 # Then use that list of sed's as ones to test for truncation.
9830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9834 test -z "$as_dir" && as_dir=.
9835 for lt_ac_prog in sed gsed; do
9836 for ac_exec_ext in '' $ac_executable_extensions; do
9837 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9838 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9845 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9846 # along with /bin/sed that truncates output.
9847 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9848 test ! -f $lt_ac_sed && break
9849 cat /dev/null > conftest.in
9851 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9852 # Check for GNU sed and select it if it is found.
9853 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9854 lt_cv_path_SED=$lt_ac_sed
9858 cat conftest.in conftest.in >conftest.tmp
9859 mv conftest.tmp conftest.in
9860 cp conftest.in conftest.nl
9862 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9863 cmp -s conftest.out conftest.nl || break
9864 # 10000 chars as input seems more than enough
9865 test $lt_ac_count -gt 10 && break
9866 lt_ac_count=`expr $lt_ac_count + 1`
9867 if test $lt_ac_count -gt $lt_ac_max; then
9868 lt_ac_max=$lt_ac_count
9869 lt_cv_path_SED=$lt_ac_sed
9877 echo "$as_me:$LINENO: result: $SED" >&5
9878 echo "${ECHO_T}$SED" >&6
9881 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9882 if test "${with_gnu_ld+set}" = set; then
9883 withval="$with_gnu_ld"
9884 test "$withval" = no || with_gnu_ld=yes
9889 if test "$GCC" = yes; then
9890 # Check if gcc -print-prog-name=ld gives a path.
9891 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9892 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9895 # gcc leaves a trailing carriage return which upsets mingw
9896 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9898 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9901 # Accept absolute paths.
9903 re_direlt='/[^/][^/]*/\.\./'
9904 # Canonicalize the pathname of ld
9905 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9906 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9907 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9909 test -z "$LD" && LD="$ac_prog"
9912 # If it fails, then pretend we aren't using GCC.
9916 # If it is relative, then search for the first ld in PATH.
9920 elif test "$with_gnu_ld" = yes; then
9921 echo "$as_me:$LINENO: checking for GNU ld" >&5
9922 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9924 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9925 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9927 if test "${lt_cv_path_LD+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9930 if test -z "$LD"; then
9931 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9932 for ac_dir in $PATH; do
9934 test -z "$ac_dir" && ac_dir=.
9935 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9936 lt_cv_path_LD="$ac_dir/$ac_prog"
9937 # Check to see if the program is GNU ld. I'd rather use --version,
9938 # but apparently some GNU ld's only accept -v.
9939 # Break only if it was the GNU/non-GNU ld that we prefer.
9940 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9941 *GNU* | *'with BFD'*)
9942 test "$with_gnu_ld" != no && break
9945 test "$with_gnu_ld" != yes && break
9952 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9957 if test -n "$LD"; then
9958 echo "$as_me:$LINENO: result: $LD" >&5
9959 echo "${ECHO_T}$LD" >&6
9961 echo "$as_me:$LINENO: result: no" >&5
9962 echo "${ECHO_T}no" >&6
9964 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9965 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9966 { (exit 1); exit 1; }; }
9967 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9968 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9969 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9973 case `$LD -v 2>&1 </dev/null` in
9974 *GNU* | *'with BFD'*)
9975 lt_cv_prog_gnu_ld=yes
9978 lt_cv_prog_gnu_ld=no
9982 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9983 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9984 with_gnu_ld=$lt_cv_prog_gnu_ld
9987 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9988 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9989 if test "${lt_cv_ld_reload_flag+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9992 lt_cv_ld_reload_flag='-r'
9994 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9995 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9996 reload_flag=$lt_cv_ld_reload_flag
9997 case $reload_flag in
9999 *) reload_flag=" $reload_flag" ;;
10001 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10004 if test "$GCC" = yes; then
10005 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10007 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10012 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10013 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10014 if test "${lt_cv_deplibs_check_method+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 lt_cv_file_magic_cmd='$MAGIC_CMD'
10018 lt_cv_file_magic_test_file=
10019 lt_cv_deplibs_check_method='unknown'
10020 # Need to set the preceding variable on all platforms that support
10021 # interlibrary dependencies.
10022 # 'none' -- dependencies not supported.
10023 # `unknown' -- same as none, but documents that we really don't know.
10024 # 'pass_all' -- all dependencies passed with no checks.
10025 # 'test_compile' -- check by making test program.
10026 # 'file_magic [[regex]]' -- check by looking for files in library path
10027 # which responds to the $file_magic_cmd with a given extended regex.
10028 # If you have `file' or equivalent on your system and you're not sure
10029 # whether `pass_all' will *always* work, you probably want this one.
10033 lt_cv_deplibs_check_method=pass_all
10037 lt_cv_deplibs_check_method=pass_all
10041 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10042 lt_cv_file_magic_cmd='/usr/bin/file -L'
10043 lt_cv_file_magic_test_file=/shlib/libc.so
10047 # func_win32_libid is a shell function defined in ltmain.sh
10048 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10049 lt_cv_file_magic_cmd='func_win32_libid'
10053 # Base MSYS/MinGW do not provide the 'file' command needed by
10054 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10055 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10056 lt_cv_file_magic_cmd='$OBJDUMP -f'
10059 darwin* | rhapsody*)
10060 lt_cv_deplibs_check_method=pass_all
10063 freebsd* | kfreebsd*-gnu)
10064 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10067 # Not sure whether the presence of OpenBSD here was a mistake.
10068 # Let's accept both of them until this is cleared up.
10069 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10070 lt_cv_file_magic_cmd=/usr/bin/file
10071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10075 lt_cv_deplibs_check_method=pass_all
10080 lt_cv_deplibs_check_method=pass_all
10083 hpux10.20* | hpux11*)
10084 lt_cv_file_magic_cmd=/usr/bin/file
10085 case "$host_cpu" in
10087 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10088 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10091 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]'
10092 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10095 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10096 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10101 irix5* | irix6* | nonstopux*)
10103 *-32|*"-32 ") libmagic=32-bit;;
10104 *-n32|*"-n32 ") libmagic=N32;;
10105 *-64|*"-64 ") libmagic=64-bit;;
10106 *) libmagic=never-match;;
10108 lt_cv_deplibs_check_method=pass_all
10111 # This must be Linux ELF.
10113 lt_cv_deplibs_check_method=pass_all
10117 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10118 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10125 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10126 lt_cv_file_magic_cmd=/usr/bin/file
10127 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10131 lt_cv_deplibs_check_method=unknown
10135 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10142 osf3* | osf4* | osf5*)
10143 lt_cv_deplibs_check_method=pass_all
10147 lt_cv_deplibs_check_method=pass_all
10151 lt_cv_deplibs_check_method=pass_all
10154 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10155 case $host_vendor in
10157 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]'
10158 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10161 lt_cv_deplibs_check_method=pass_all
10164 lt_cv_file_magic_cmd='/bin/file'
10165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10168 lt_cv_file_magic_cmd='/bin/file'
10169 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10170 lt_cv_file_magic_test_file=/lib/libc.so
10173 lt_cv_deplibs_check_method=pass_all
10178 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10179 lt_cv_deplibs_check_method=pass_all
10184 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10185 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10186 file_magic_cmd=$lt_cv_file_magic_cmd
10187 deplibs_check_method=$lt_cv_deplibs_check_method
10188 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10192 # If no C compiler was specified, use CC.
10195 # Allow CC to be a program name with arguments.
10198 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10199 if test "${enable_libtool_lock+set}" = set; then
10200 enableval="$enable_libtool_lock"
10203 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10205 # Some flags need to be propagated to the compiler or linker for good
10209 # Find out which ABI we are using.
10210 echo 'int i;' > conftest.$ac_ext
10211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10212 (eval $ac_compile) 2>&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; then
10216 case `/usr/bin/file conftest.$ac_objext` in
10218 HPUX_IA64_MODE="32"
10221 HPUX_IA64_MODE="64"
10228 # Find out which ABI we are using.
10229 echo '#line 10229 "configure"' > conftest.$ac_ext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10231 (eval $ac_compile) 2>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; then
10235 if test "$lt_cv_prog_gnu_ld" = yes; then
10236 case `/usr/bin/file conftest.$ac_objext` in
10238 LD="${LD-ld} -melf32bsmip"
10241 LD="${LD-ld} -melf32bmipn32"
10244 LD="${LD-ld} -melf64bmip"
10248 case `/usr/bin/file conftest.$ac_objext` in
10264 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10265 # Find out which ABI we are using.
10266 echo 'int i;' > conftest.$ac_ext
10267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10268 (eval $ac_compile) 2>&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; then
10272 case "`/usr/bin/file conftest.o`" in
10276 LD="${LD-ld} -m elf_i386"
10278 ppc64-*linux*|powerpc64-*linux*)
10279 LD="${LD-ld} -m elf32ppclinux"
10282 LD="${LD-ld} -m elf_s390"
10285 LD="${LD-ld} -m elf32_sparc"
10292 LD="${LD-ld} -m elf_x86_64"
10294 ppc*-*linux*|powerpc*-*linux*)
10295 LD="${LD-ld} -m elf64ppc"
10298 LD="${LD-ld} -m elf64_s390"
10301 LD="${LD-ld} -m elf64_sparc"
10311 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10312 SAVE_CFLAGS="$CFLAGS"
10313 CFLAGS="$CFLAGS -belf"
10314 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10315 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10316 if test "${lt_cv_cc_needs_belf+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 ac_cpp='$CPP $CPPFLAGS'
10321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10325 cat >conftest.$ac_ext <<_ACEOF
10328 cat confdefs.h >>conftest.$ac_ext
10329 cat >>conftest.$ac_ext <<_ACEOF
10330 /* end confdefs.h. */
10333 rm -f conftest.$ac_objext conftest$ac_exeext
10334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10335 (eval $ac_link) 2>conftest.er1
10337 grep -v '^ *+' conftest.er1 >conftest.err
10339 cat conftest.err >&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } &&
10342 { ac_try='test -z "$ac_c_werror_flag"
10343 || test ! -s conftest.err'
10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345 (eval $ac_try) 2>&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; } &&
10349 { ac_try='test -s conftest$ac_exeext'
10350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351 (eval $ac_try) 2>&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; }; then
10355 lt_cv_cc_needs_belf=yes
10357 echo "$as_me: failed program was:" >&5
10358 sed 's/^/| /' conftest.$ac_ext >&5
10360 lt_cv_cc_needs_belf=no
10362 rm -f conftest.err conftest.$ac_objext \
10363 conftest$ac_exeext conftest.$ac_ext
10365 ac_cpp='$CPP $CPPFLAGS'
10366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10371 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10372 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10373 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10374 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10375 CFLAGS="$SAVE_CFLAGS"
10381 need_locks="$enable_libtool_lock"
10386 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10387 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10388 (test "X$CXX" != "Xg++"))) ; then
10390 ac_cpp='$CXXCPP $CPPFLAGS'
10391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10394 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10395 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10396 if test -z "$CXXCPP"; then
10397 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10400 # Double quotes because CXXCPP needs to be expanded
10401 for CXXCPP in "$CXX -E" "/lib/cpp"
10403 ac_preproc_ok=false
10404 for ac_cxx_preproc_warn_flag in '' yes
10406 # Use a header file that comes with gcc, so configuring glibc
10407 # with a fresh cross-compiler works.
10408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10409 # <limits.h> exists even on freestanding compilers.
10410 # On the NeXT, cc -E runs the code through the compiler's parser,
10411 # not just through cpp. "Syntax error" is here to catch this case.
10412 cat >conftest.$ac_ext <<_ACEOF
10415 cat confdefs.h >>conftest.$ac_ext
10416 cat >>conftest.$ac_ext <<_ACEOF
10417 /* end confdefs.h. */
10419 # include <limits.h>
10421 # include <assert.h>
10425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10428 grep -v '^ *+' conftest.er1 >conftest.err
10430 cat conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } >/dev/null; then
10433 if test -s conftest.err; then
10434 ac_cpp_err=$ac_cxx_preproc_warn_flag
10435 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10442 if test -z "$ac_cpp_err"; then
10445 echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10448 # Broken: fails on valid input.
10451 rm -f conftest.err conftest.$ac_ext
10453 # OK, works on sane cases. Now check whether non-existent headers
10454 # can be detected and how.
10455 cat >conftest.$ac_ext <<_ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10461 #include <ac_nonexistent.h>
10463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10466 grep -v '^ *+' conftest.er1 >conftest.err
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } >/dev/null; then
10471 if test -s conftest.err; then
10472 ac_cpp_err=$ac_cxx_preproc_warn_flag
10473 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10480 if test -z "$ac_cpp_err"; then
10481 # Broken: success on invalid input.
10484 echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10487 # Passes both tests.
10491 rm -f conftest.err conftest.$ac_ext
10494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10495 rm -f conftest.err conftest.$ac_ext
10496 if $ac_preproc_ok; then
10501 ac_cv_prog_CXXCPP=$CXXCPP
10504 CXXCPP=$ac_cv_prog_CXXCPP
10506 ac_cv_prog_CXXCPP=$CXXCPP
10508 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10509 echo "${ECHO_T}$CXXCPP" >&6
10510 ac_preproc_ok=false
10511 for ac_cxx_preproc_warn_flag in '' yes
10513 # Use a header file that comes with gcc, so configuring glibc
10514 # with a fresh cross-compiler works.
10515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10516 # <limits.h> exists even on freestanding compilers.
10517 # On the NeXT, cc -E runs the code through the compiler's parser,
10518 # not just through cpp. "Syntax error" is here to catch this case.
10519 cat >conftest.$ac_ext <<_ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10526 # include <limits.h>
10528 # include <assert.h>
10532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10535 grep -v '^ *+' conftest.er1 >conftest.err
10537 cat conftest.err >&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); } >/dev/null; then
10540 if test -s conftest.err; then
10541 ac_cpp_err=$ac_cxx_preproc_warn_flag
10542 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10549 if test -z "$ac_cpp_err"; then
10552 echo "$as_me: failed program was:" >&5
10553 sed 's/^/| /' conftest.$ac_ext >&5
10555 # Broken: fails on valid input.
10558 rm -f conftest.err conftest.$ac_ext
10560 # OK, works on sane cases. Now check whether non-existent headers
10561 # can be detected and how.
10562 cat >conftest.$ac_ext <<_ACEOF
10565 cat confdefs.h >>conftest.$ac_ext
10566 cat >>conftest.$ac_ext <<_ACEOF
10567 /* end confdefs.h. */
10568 #include <ac_nonexistent.h>
10570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10573 grep -v '^ *+' conftest.er1 >conftest.err
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } >/dev/null; then
10578 if test -s conftest.err; then
10579 ac_cpp_err=$ac_cxx_preproc_warn_flag
10580 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10587 if test -z "$ac_cpp_err"; then
10588 # Broken: success on invalid input.
10591 echo "$as_me: failed program was:" >&5
10592 sed 's/^/| /' conftest.$ac_ext >&5
10594 # Passes both tests.
10598 rm -f conftest.err conftest.$ac_ext
10601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10602 rm -f conftest.err conftest.$ac_ext
10603 if $ac_preproc_ok; then
10606 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10607 See \`config.log' for more details." >&5
10608 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10609 See \`config.log' for more details." >&2;}
10610 { (exit 1); exit 1; }; }
10614 ac_cpp='$CXXCPP $CPPFLAGS'
10615 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10616 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10617 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10623 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10624 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10625 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10626 if test -n "$ac_tool_prefix"; then
10627 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10631 echo "$as_me:$LINENO: checking for $ac_word" >&5
10632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10633 if test "${ac_cv_prog_F77+set}" = set; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10636 if test -n "$F77"; then
10637 ac_cv_prog_F77="$F77" # Let the user override the test.
10639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10640 for as_dir in $PATH
10643 test -z "$as_dir" && as_dir=.
10644 for ac_exec_ext in '' $ac_executable_extensions; do
10645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10646 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10655 F77=$ac_cv_prog_F77
10656 if test -n "$F77"; then
10657 echo "$as_me:$LINENO: result: $F77" >&5
10658 echo "${ECHO_T}$F77" >&6
10660 echo "$as_me:$LINENO: result: no" >&5
10661 echo "${ECHO_T}no" >&6
10664 test -n "$F77" && break
10667 if test -z "$F77"; then
10669 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10671 # Extract the first word of "$ac_prog", so it can be a program name with args.
10672 set dummy $ac_prog; ac_word=$2
10673 echo "$as_me:$LINENO: checking for $ac_word" >&5
10674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10675 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10676 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 if test -n "$ac_ct_F77"; then
10679 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10682 for as_dir in $PATH
10685 test -z "$as_dir" && as_dir=.
10686 for ac_exec_ext in '' $ac_executable_extensions; do
10687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10688 ac_cv_prog_ac_ct_F77="$ac_prog"
10689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10697 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10698 if test -n "$ac_ct_F77"; then
10699 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10700 echo "${ECHO_T}$ac_ct_F77" >&6
10702 echo "$as_me:$LINENO: result: no" >&5
10703 echo "${ECHO_T}no" >&6
10706 test -n "$ac_ct_F77" && break
10713 # Provide some information about the compiler.
10714 echo "$as_me:10714:" \
10715 "checking for Fortran 77 compiler version" >&5
10716 ac_compiler=`set X $ac_compile; echo $2`
10717 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10718 (eval $ac_compiler --version </dev/null >&5) 2>&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }
10722 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10723 (eval $ac_compiler -v </dev/null >&5) 2>&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }
10727 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10728 (eval $ac_compiler -V </dev/null >&5) 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }
10734 # If we don't use `.F' as extension, the preprocessor is not run on the
10735 # input file. (Note that this only needs to work for GNU compilers.)
10736 ac_save_ext=$ac_ext
10738 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10739 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10740 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 cat >conftest.$ac_ext <<_ACEOF
10751 rm -f conftest.$ac_objext
10752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10753 (eval $ac_compile) 2>conftest.er1
10755 grep -v '^ *+' conftest.er1 >conftest.err
10757 cat conftest.err >&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } &&
10760 { ac_try='test -z "$ac_f77_werror_flag"
10761 || test ! -s conftest.err'
10762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; } &&
10767 { ac_try='test -s conftest.$ac_objext'
10768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10769 (eval $ac_try) 2>&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }; }; then
10773 ac_compiler_gnu=yes
10775 echo "$as_me: failed program was:" >&5
10776 sed 's/^/| /' conftest.$ac_ext >&5
10780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10781 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10784 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10785 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10786 ac_ext=$ac_save_ext
10787 ac_test_FFLAGS=${FFLAGS+set}
10788 ac_save_FFLAGS=$FFLAGS
10790 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10791 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10792 if test "${ac_cv_prog_f77_g+set}" = set; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 cat >conftest.$ac_ext <<_ACEOF
10801 rm -f conftest.$ac_objext
10802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10803 (eval $ac_compile) 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); } &&
10810 { ac_try='test -z "$ac_f77_werror_flag"
10811 || test ! -s conftest.err'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; } &&
10817 { ac_try='test -s conftest.$ac_objext'
10818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819 (eval $ac_try) 2>&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; }; then
10823 ac_cv_prog_f77_g=yes
10825 echo "$as_me: failed program was:" >&5
10826 sed 's/^/| /' conftest.$ac_ext >&5
10828 ac_cv_prog_f77_g=no
10830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10833 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10834 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10835 if test "$ac_test_FFLAGS" = set; then
10836 FFLAGS=$ac_save_FFLAGS
10837 elif test $ac_cv_prog_f77_g = yes; then
10838 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10844 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10851 G77=`test $ac_compiler_gnu = yes && echo yes`
10853 ac_cpp='$CPP $CPPFLAGS'
10854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10860 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10862 # find the maximum length of command line arguments
10863 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10864 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10865 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10866 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 # On DJGPP, this test can blow up pretty badly due to problems in libc
10874 # (any single argument exceeding 2000 bytes causes a buffer overrun
10875 # during glob expansion). Even if it were fixed, the result of this
10876 # check would be larger than it should be.
10877 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10881 # Under GNU Hurd, this test is not required because there is
10882 # no limit to the length of command line arguments.
10883 # Libtool will interpret -1 as no limit whatsoever
10884 lt_cv_sys_max_cmd_len=-1;
10888 # On Win9x/ME, this test blows up -- it succeeds, but takes
10889 # about 5 minutes as the teststring grows exponentially.
10890 # Worse, since 9x/ME are not pre-emptively multitasking,
10891 # you end up with a "frozen" computer, even though with patience
10892 # the test eventually succeeds (with a max line length of 256k).
10893 # Instead, let's just punt: use the minimum linelength reported by
10894 # all of the supported platforms: 8192 (on NT/2K/XP).
10895 lt_cv_sys_max_cmd_len=8192;
10899 # On AmigaOS with pdksh, this test takes hours, literally.
10900 # So we just punt and use a minimum line length of 8192.
10901 lt_cv_sys_max_cmd_len=8192;
10904 netbsd* | freebsd* | openbsd* | darwin* )
10905 # This has been around since 386BSD, at least. Likely further.
10906 if test -x /sbin/sysctl; then
10907 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10908 elif test -x /usr/sbin/sysctl; then
10909 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10911 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10913 # And add a safety zone
10914 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10918 # If test is not a shell built-in, we'll probably end up computing a
10919 # maximum length that is only half of the actual maximum length, but
10921 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10922 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10923 = "XX$teststring") >/dev/null 2>&1 &&
10924 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10925 lt_cv_sys_max_cmd_len=$new_result &&
10926 test $i != 17 # 1/2 MB should be enough
10929 teststring=$teststring$teststring
10932 # Add a significant safety factor because C++ compilers can tack on massive
10933 # amounts of additional arguments before passing them to the linker.
10934 # It appears as though 1/2 is a usable value.
10935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10941 if test -n $lt_cv_sys_max_cmd_len ; then
10942 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10943 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10945 echo "$as_me:$LINENO: result: none" >&5
10946 echo "${ECHO_T}none" >&6
10952 # Check for command to grab the raw symbol name followed by C symbol from nm.
10953 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10954 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10955 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10959 # These are sane defaults that work on at least a few old systems.
10960 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10962 # Character class describing NM global symbol codes.
10963 symcode='[BCDEGRST]'
10965 # Regexp to match symbols that can be accessed directly from C.
10966 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10968 # Transform the above into a raw symbol and a C symbol.
10969 symxfrm='\1 \2\3 \3'
10971 # Transform an extracted symbol line into a proper C declaration
10972 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10974 # Transform an extracted symbol line into symbol name and symbol address
10975 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'"
10977 # Define system-specific variables.
10982 cygwin* | mingw* | pw32*)
10983 symcode='[ABCDGISTW]'
10985 hpux*) # Its linker distinguishes data from code symbols
10986 if test "$host_cpu" = ia64; then
10987 symcode='[ABCDEGRST]'
10989 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10990 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'"
10993 if test "$host_cpu" = ia64; then
10994 symcode='[ABCDGIRSTW]'
10995 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10996 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'"
10999 irix* | nonstopux*)
11000 symcode='[BCDEGRST]'
11003 symcode='[BCDEGQRST]'
11013 # Handle CRLF in mingw tool chain
11017 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11021 # If we're using GNU nm, then use its standard symbol codes.
11022 case `$NM -V 2>&1` in
11023 *GNU* | *'with BFD'*)
11024 symcode='[ABCDGIRSTW]' ;;
11027 # Try without a prefix undercore, then with it.
11028 for ac_symprfx in "" "_"; do
11030 # Write the raw and C identifiers.
11031 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11033 # Check to see that the pipe works correctly.
11037 cat > conftest.$ac_ext <<EOF
11042 void nm_test_func(){}
11046 int main(){nm_test_var='a';nm_test_func();return(0);}
11049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11050 (eval $ac_compile) 2>&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; then
11054 # Now try to grab the symbols.
11056 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11057 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } && test -s "$nlist"; then
11061 # Try sorting and uniquifying the output.
11062 if sort "$nlist" | uniq > "$nlist"T; then
11063 mv -f "$nlist"T "$nlist"
11068 # Make sure that we snagged all the symbols we need.
11069 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11070 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11071 cat <<EOF > conftest.$ac_ext
11077 # Now generate the symbol file.
11078 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11080 cat <<EOF >> conftest.$ac_ext
11081 #if defined (__STDC__) && __STDC__
11082 # define lt_ptr_t void *
11084 # define lt_ptr_t char *
11088 /* The mapping between symbol names and symbols. */
11093 lt_preloaded_symbols[] =
11096 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11097 cat <<\EOF >> conftest.$ac_ext
11105 # Now try linking the two files.
11106 mv conftest.$ac_objext conftstm.$ac_objext
11107 lt_save_LIBS="$LIBS"
11108 lt_save_CFLAGS="$CFLAGS"
11109 LIBS="conftstm.$ac_objext"
11110 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11112 (eval $ac_link) 2>&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11118 LIBS="$lt_save_LIBS"
11119 CFLAGS="$lt_save_CFLAGS"
11121 echo "cannot find nm_test_func in $nlist" >&5
11124 echo "cannot find nm_test_var in $nlist" >&5
11127 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11130 echo "$progname: failed program was:" >&5
11131 cat conftest.$ac_ext >&5
11133 rm -f conftest* conftst*
11135 # Do not use the global_symbol_pipe unless it works.
11136 if test "$pipe_works" = yes; then
11139 lt_cv_sys_global_symbol_pipe=
11145 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11146 lt_cv_sys_global_symbol_to_cdecl=
11148 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11149 echo "$as_me:$LINENO: result: failed" >&5
11150 echo "${ECHO_T}failed" >&6
11152 echo "$as_me:$LINENO: result: ok" >&5
11153 echo "${ECHO_T}ok" >&6
11156 echo "$as_me:$LINENO: checking for objdir" >&5
11157 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11158 if test "${lt_cv_objdir+set}" = set; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 rm -f .libs 2>/dev/null
11162 mkdir .libs 2>/dev/null
11163 if test -d .libs; then
11166 # MS-DOS does not allow filenames that begin with a dot.
11169 rmdir .libs 2>/dev/null
11171 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11172 echo "${ECHO_T}$lt_cv_objdir" >&6
11173 objdir=$lt_cv_objdir
11181 # AIX sometimes has problems with the GCC collect2 program. For some
11182 # reason, if we set the COLLECT_NAMES environment variable, the problems
11183 # vanish in a puff of smoke.
11184 if test "X${COLLECT_NAMES+set}" != Xset; then
11186 export COLLECT_NAMES
11191 # Sed substitution that helps us do robust quoting. It backslashifies
11192 # metacharacters that are still active within double-quoted strings.
11193 Xsed='sed -e s/^X//'
11194 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11196 # Same as above, but do not quote variable references.
11197 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11199 # Sed substitution to delay expansion of an escaped shell variable in a
11200 # double_quote_subst'ed string.
11201 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11203 # Sed substitution to avoid accidental globbing in evaled expressions
11204 no_glob_subst='s/\*/\\\*/g'
11209 # Global variables:
11210 default_ofile=mklib
11211 can_build_shared=yes
11213 # All known linkers require a `.a' archive for static linking (except M$VC,
11214 # which needs '.lib').
11216 ltmain="$ac_aux_dir/ltmain.sh"
11217 ofile="$default_ofile"
11218 with_gnu_ld="$lt_cv_prog_gnu_ld"
11220 if test -n "$ac_tool_prefix"; then
11221 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11222 set dummy ${ac_tool_prefix}ar; ac_word=$2
11223 echo "$as_me:$LINENO: checking for $ac_word" >&5
11224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11225 if test "${ac_cv_prog_AR+set}" = set; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 if test -n "$AR"; then
11229 ac_cv_prog_AR="$AR" # Let the user override the test.
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11235 test -z "$as_dir" && as_dir=.
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11238 ac_cv_prog_AR="${ac_tool_prefix}ar"
11239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11248 if test -n "$AR"; then
11249 echo "$as_me:$LINENO: result: $AR" >&5
11250 echo "${ECHO_T}$AR" >&6
11252 echo "$as_me:$LINENO: result: no" >&5
11253 echo "${ECHO_T}no" >&6
11257 if test -z "$ac_cv_prog_AR"; then
11259 # Extract the first word of "ar", so it can be a program name with args.
11260 set dummy ar; ac_word=$2
11261 echo "$as_me:$LINENO: checking for $ac_word" >&5
11262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11263 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 if test -n "$ac_ct_AR"; then
11267 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in $PATH
11273 test -z "$as_dir" && as_dir=.
11274 for ac_exec_ext in '' $ac_executable_extensions; do
11275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11276 ac_cv_prog_ac_ct_AR="ar"
11277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11283 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11286 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11287 if test -n "$ac_ct_AR"; then
11288 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11289 echo "${ECHO_T}$ac_ct_AR" >&6
11291 echo "$as_me:$LINENO: result: no" >&5
11292 echo "${ECHO_T}no" >&6
11297 AR="$ac_cv_prog_AR"
11300 if test -n "$ac_tool_prefix"; then
11301 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11302 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11303 echo "$as_me:$LINENO: checking for $ac_word" >&5
11304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11305 if test "${ac_cv_prog_RANLIB+set}" = set; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 if test -n "$RANLIB"; then
11309 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312 for as_dir in $PATH
11315 test -z "$as_dir" && as_dir=.
11316 for ac_exec_ext in '' $ac_executable_extensions; do
11317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11318 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11327 RANLIB=$ac_cv_prog_RANLIB
11328 if test -n "$RANLIB"; then
11329 echo "$as_me:$LINENO: result: $RANLIB" >&5
11330 echo "${ECHO_T}$RANLIB" >&6
11332 echo "$as_me:$LINENO: result: no" >&5
11333 echo "${ECHO_T}no" >&6
11337 if test -z "$ac_cv_prog_RANLIB"; then
11338 ac_ct_RANLIB=$RANLIB
11339 # Extract the first word of "ranlib", so it can be a program name with args.
11340 set dummy ranlib; ac_word=$2
11341 echo "$as_me:$LINENO: checking for $ac_word" >&5
11342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11343 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11346 if test -n "$ac_ct_RANLIB"; then
11347 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350 for as_dir in $PATH
11353 test -z "$as_dir" && as_dir=.
11354 for ac_exec_ext in '' $ac_executable_extensions; do
11355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11356 ac_cv_prog_ac_ct_RANLIB="ranlib"
11357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11363 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11366 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11367 if test -n "$ac_ct_RANLIB"; then
11368 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11369 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11371 echo "$as_me:$LINENO: result: no" >&5
11372 echo "${ECHO_T}no" >&6
11375 RANLIB=$ac_ct_RANLIB
11377 RANLIB="$ac_cv_prog_RANLIB"
11380 if test -n "$ac_tool_prefix"; then
11381 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11382 set dummy ${ac_tool_prefix}strip; ac_word=$2
11383 echo "$as_me:$LINENO: checking for $ac_word" >&5
11384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11385 if test "${ac_cv_prog_STRIP+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 if test -n "$STRIP"; then
11389 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11398 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11407 STRIP=$ac_cv_prog_STRIP
11408 if test -n "$STRIP"; then
11409 echo "$as_me:$LINENO: result: $STRIP" >&5
11410 echo "${ECHO_T}$STRIP" >&6
11412 echo "$as_me:$LINENO: result: no" >&5
11413 echo "${ECHO_T}no" >&6
11417 if test -z "$ac_cv_prog_STRIP"; then
11419 # Extract the first word of "strip", so it can be a program name with args.
11420 set dummy strip; ac_word=$2
11421 echo "$as_me:$LINENO: checking for $ac_word" >&5
11422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11423 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11424 echo $ECHO_N "(cached) $ECHO_C" >&6
11426 if test -n "$ac_ct_STRIP"; then
11427 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11430 for as_dir in $PATH
11433 test -z "$as_dir" && as_dir=.
11434 for ac_exec_ext in '' $ac_executable_extensions; do
11435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11436 ac_cv_prog_ac_ct_STRIP="strip"
11437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11443 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11446 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11447 if test -n "$ac_ct_STRIP"; then
11448 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11449 echo "${ECHO_T}$ac_ct_STRIP" >&6
11451 echo "$as_me:$LINENO: result: no" >&5
11452 echo "${ECHO_T}no" >&6
11457 STRIP="$ac_cv_prog_STRIP"
11462 old_CFLAGS="$CFLAGS"
11464 # Set sane defaults for various variables
11465 test -z "$AR" && AR=ar
11466 test -z "$AR_FLAGS" && AR_FLAGS=cru
11467 test -z "$AS" && AS=as
11468 test -z "$CC" && CC=cc
11469 test -z "$LTCC" && LTCC=$CC
11470 test -z "$DLLTOOL" && DLLTOOL=dlltool
11471 test -z "$LD" && LD=ld
11472 test -z "$LN_S" && LN_S="ln -s"
11473 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11474 test -z "$NM" && NM=nm
11475 test -z "$SED" && SED=sed
11476 test -z "$OBJDUMP" && OBJDUMP=objdump
11477 test -z "$RANLIB" && RANLIB=:
11478 test -z "$STRIP" && STRIP=:
11479 test -z "$ac_objext" && ac_objext=o
11481 # Determine commands to create old-style static archives.
11482 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11483 old_postinstall_cmds='chmod 644 $oldlib'
11484 old_postuninstall_cmds=
11486 if test -n "$RANLIB"; then
11489 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11492 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11495 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11498 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11500 # Only perform the check for file, if the check method requires it
11501 case $deplibs_check_method in
11503 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11504 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11505 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11506 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11507 echo $ECHO_N "(cached) $ECHO_C" >&6
11511 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11514 lt_save_MAGIC_CMD="$MAGIC_CMD"
11515 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11516 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11517 for ac_dir in $ac_dummy; do
11519 test -z "$ac_dir" && ac_dir=.
11520 if test -f $ac_dir/${ac_tool_prefix}file; then
11521 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11522 if test -n "$file_magic_test_file"; then
11523 case $deplibs_check_method in
11525 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11526 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11527 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11528 $EGREP "$file_magic_regex" > /dev/null; then
11533 *** Warning: the command libtool uses to detect shared libraries,
11534 *** $file_magic_cmd, produces output that libtool cannot recognize.
11535 *** The result is that libtool may fail to recognize shared libraries
11536 *** as such. This will affect the creation of libtool libraries that
11537 *** depend on shared libraries, but programs linked with such libtool
11538 *** libraries will work regardless of this problem. Nevertheless, you
11539 *** may want to report the problem to your system manager and/or to
11540 *** bug-libtool@gnu.org
11550 MAGIC_CMD="$lt_save_MAGIC_CMD"
11555 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11556 if test -n "$MAGIC_CMD"; then
11557 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11558 echo "${ECHO_T}$MAGIC_CMD" >&6
11560 echo "$as_me:$LINENO: result: no" >&5
11561 echo "${ECHO_T}no" >&6
11564 if test -z "$lt_cv_path_MAGIC_CMD"; then
11565 if test -n "$ac_tool_prefix"; then
11566 echo "$as_me:$LINENO: checking for file" >&5
11567 echo $ECHO_N "checking for file... $ECHO_C" >&6
11568 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11576 lt_save_MAGIC_CMD="$MAGIC_CMD"
11577 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11578 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11579 for ac_dir in $ac_dummy; do
11581 test -z "$ac_dir" && ac_dir=.
11582 if test -f $ac_dir/file; then
11583 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11584 if test -n "$file_magic_test_file"; then
11585 case $deplibs_check_method in
11587 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11588 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11589 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11590 $EGREP "$file_magic_regex" > /dev/null; then
11595 *** Warning: the command libtool uses to detect shared libraries,
11596 *** $file_magic_cmd, produces output that libtool cannot recognize.
11597 *** The result is that libtool may fail to recognize shared libraries
11598 *** as such. This will affect the creation of libtool libraries that
11599 *** depend on shared libraries, but programs linked with such libtool
11600 *** libraries will work regardless of this problem. Nevertheless, you
11601 *** may want to report the problem to your system manager and/or to
11602 *** bug-libtool@gnu.org
11612 MAGIC_CMD="$lt_save_MAGIC_CMD"
11617 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11618 if test -n "$MAGIC_CMD"; then
11619 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11620 echo "${ECHO_T}$MAGIC_CMD" >&6
11622 echo "$as_me:$LINENO: result: no" >&5
11623 echo "${ECHO_T}no" >&6
11636 enable_win32_dll=no
11638 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11639 if test "${enable_libtool_lock+set}" = set; then
11640 enableval="$enable_libtool_lock"
11643 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11646 # Check whether --with-pic or --without-pic was given.
11647 if test "${with_pic+set}" = set; then
11648 withval="$with_pic"
11649 pic_mode="$withval"
11653 test -z "$pic_mode" && pic_mode=default
11655 # Use C for the default configuration in the libtool script
11659 ac_cpp='$CPP $CPPFLAGS'
11660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11665 # Source file extension for C test sources.
11668 # Object file extension for compiled C test sources.
11672 # Code to be used in simple compile tests
11673 lt_simple_compile_test_code="int some_variable = 0;\n"
11675 # Code to be used in simple link tests
11676 lt_simple_link_test_code='int main(){return(0);}\n'
11679 # If no C compiler was specified, use CC.
11682 # Allow CC to be a program name with arguments.
11687 # Check for any special shared library compilation flags.
11690 if test "$GCC" = no; then
11693 lt_prog_cc_shlib='-belf'
11697 if test -n "$lt_prog_cc_shlib"; then
11698 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11699 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11700 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11702 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11703 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11704 lt_cv_prog_cc_can_build_shared=no
11710 # Check to make sure the static flag actually works.
11712 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11713 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11714 if test "${lt_prog_compiler_static_works+set}" = set; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 lt_prog_compiler_static_works=no
11718 save_LDFLAGS="$LDFLAGS"
11719 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11720 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11721 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11722 # The compiler can only warn and ignore the option if not recognized
11723 # So say no if there are warnings
11724 if test -s conftest.err; then
11725 # Append any errors to the config.log.
11726 cat conftest.err 1>&5
11728 lt_prog_compiler_static_works=yes
11732 LDFLAGS="$save_LDFLAGS"
11735 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11736 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11738 if test x"$lt_prog_compiler_static_works" = xyes; then
11741 lt_prog_compiler_static=
11747 lt_prog_compiler_no_builtin_flag=
11749 if test "$GCC" = yes; then
11750 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11753 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11754 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11755 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11756 echo $ECHO_N "(cached) $ECHO_C" >&6
11758 lt_cv_prog_compiler_rtti_exceptions=no
11759 ac_outfile=conftest.$ac_objext
11760 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11761 lt_compiler_flag="-fno-rtti -fno-exceptions"
11762 # Insert the option either (1) after the last *FLAGS variable, or
11763 # (2) before a word containing "conftest.", or (3) at the end.
11764 # Note that $ac_compile itself does not contain backslashes and begins
11765 # with a dollar sign (not a hyphen), so the echo should work correctly.
11766 # The option is referenced via a variable to avoid confusing sed.
11767 lt_compile=`echo "$ac_compile" | $SED \
11768 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11770 -e 's:$: $lt_compiler_flag:'`
11771 (eval echo "\"\$as_me:11771: $lt_compile\"" >&5)
11772 (eval "$lt_compile" 2>conftest.err)
11774 cat conftest.err >&5
11775 echo "$as_me:11775: \$? = $ac_status" >&5
11776 if (exit $ac_status) && test -s "$ac_outfile"; then
11777 # The compiler can only warn and ignore the option if not recognized
11778 # So say no if there are warnings
11779 if test ! -s conftest.err; then
11780 lt_cv_prog_compiler_rtti_exceptions=yes
11786 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11787 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11789 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11790 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11797 lt_prog_compiler_wl=
11798 lt_prog_compiler_pic=
11799 lt_prog_compiler_static=
11801 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11802 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11804 if test "$GCC" = yes; then
11805 lt_prog_compiler_wl='-Wl,'
11806 lt_prog_compiler_static='-static'
11810 # All AIX code is PIC.
11811 if test "$host_cpu" = ia64; then
11812 # AIX 5 now supports IA64 processor
11813 lt_prog_compiler_static='-Bstatic'
11818 # FIXME: we need at least 68020 code to build shared libraries, but
11819 # adding the `-m68020' flag to GCC prevents building anything better,
11821 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11824 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11825 # PIC is the default for these OSes.
11828 mingw* | pw32* | os2*)
11829 # This hack is so that the source file can tell whether it is being
11830 # built for inclusion in a dll (and should export symbols for example).
11831 lt_prog_compiler_pic='-DDLL_EXPORT'
11834 darwin* | rhapsody*)
11835 # PIC is the default on this platform
11836 # Common symbols not allowed in MH_DYLIB files
11837 lt_prog_compiler_pic='-fno-common'
11841 # Just because we use GCC doesn't mean we suddenly get shared libraries
11842 # on systems that don't support them.
11843 lt_prog_compiler_can_build_shared=no
11848 if test -d /usr/nec; then
11849 lt_prog_compiler_pic=-Kconform_pic
11854 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11855 # not for PA HP-UX.
11856 case "$host_cpu" in
11861 lt_prog_compiler_pic='-fPIC'
11867 lt_prog_compiler_pic='-fPIC'
11871 # PORTME Check for flag to pass linker flags through the system compiler.
11874 lt_prog_compiler_wl='-Wl,'
11875 if test "$host_cpu" = ia64; then
11876 # AIX 5 now supports IA64 processor
11877 lt_prog_compiler_static='-Bstatic'
11879 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11883 # PIC is the default on this platform
11884 # Common symbols not allowed in MH_DYLIB files
11885 case "$cc_basename" in
11887 lt_prog_compiler_pic='-qnocommon'
11888 lt_prog_compiler_wl='-Wl,'
11893 mingw* | pw32* | os2*)
11894 # This hack is so that the source file can tell whether it is being
11895 # built for inclusion in a dll (and should export symbols for example).
11896 lt_prog_compiler_pic='-DDLL_EXPORT'
11899 hpux9* | hpux10* | hpux11*)
11900 lt_prog_compiler_wl='-Wl,'
11901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11902 # not for PA HP-UX.
11903 case "$host_cpu" in
11908 lt_prog_compiler_pic='+Z'
11911 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11912 lt_prog_compiler_static='${wl}-a ${wl}archive'
11915 irix5* | irix6* | nonstopux*)
11916 lt_prog_compiler_wl='-Wl,'
11917 # PIC (with -KPIC) is the default.
11918 lt_prog_compiler_static='-non_shared'
11922 lt_prog_compiler_pic='-KPIC'
11923 lt_prog_compiler_static='-Bstatic'
11929 lt_prog_compiler_wl='-Wl,'
11930 lt_prog_compiler_pic='-KPIC'
11931 lt_prog_compiler_static='-static'
11934 lt_prog_compiler_wl='-Wl,'
11935 # All Alpha code is PIC.
11936 lt_prog_compiler_static='-non_shared'
11941 osf3* | osf4* | osf5*)
11942 lt_prog_compiler_wl='-Wl,'
11943 # All OSF/1 code is PIC.
11944 lt_prog_compiler_static='-non_shared'
11948 lt_prog_compiler_pic='-Kpic'
11949 lt_prog_compiler_static='-dn'
11953 lt_prog_compiler_wl='-Wl,'
11954 lt_prog_compiler_pic='-KPIC'
11955 lt_prog_compiler_static='-Bstatic'
11959 lt_prog_compiler_wl='-Qoption ld '
11960 lt_prog_compiler_pic='-PIC'
11961 lt_prog_compiler_static='-Bstatic'
11964 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11965 lt_prog_compiler_wl='-Wl,'
11966 lt_prog_compiler_pic='-KPIC'
11967 lt_prog_compiler_static='-Bstatic'
11971 if test -d /usr/nec ;then
11972 lt_prog_compiler_pic='-Kconform_pic'
11973 lt_prog_compiler_static='-Bstatic'
11978 lt_prog_compiler_pic='-pic'
11979 lt_prog_compiler_static='-Bstatic'
11983 lt_prog_compiler_can_build_shared=no
11988 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11989 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11992 # Check to make sure the PIC flag actually works.
11994 if test -n "$lt_prog_compiler_pic"; then
11996 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11997 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11998 if test "${lt_prog_compiler_pic_works+set}" = set; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12001 lt_prog_compiler_pic_works=no
12002 ac_outfile=conftest.$ac_objext
12003 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12004 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12005 # Insert the option either (1) after the last *FLAGS variable, or
12006 # (2) before a word containing "conftest.", or (3) at the end.
12007 # Note that $ac_compile itself does not contain backslashes and begins
12008 # with a dollar sign (not a hyphen), so the echo should work correctly.
12009 # The option is referenced via a variable to avoid confusing sed.
12010 lt_compile=`echo "$ac_compile" | $SED \
12011 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12013 -e 's:$: $lt_compiler_flag:'`
12014 (eval echo "\"\$as_me:12014: $lt_compile\"" >&5)
12015 (eval "$lt_compile" 2>conftest.err)
12017 cat conftest.err >&5
12018 echo "$as_me:12018: \$? = $ac_status" >&5
12019 if (exit $ac_status) && test -s "$ac_outfile"; then
12020 # The compiler can only warn and ignore the option if not recognized
12021 # So say no if there are warnings
12022 if test ! -s conftest.err; then
12023 lt_prog_compiler_pic_works=yes
12029 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12030 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12032 if test x"$lt_prog_compiler_pic_works" = xyes; then
12033 case $lt_prog_compiler_pic in
12035 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12038 lt_prog_compiler_pic=
12039 lt_prog_compiler_can_build_shared=no
12044 # For platforms which do not support PIC, -DPIC is meaningless:
12046 lt_prog_compiler_pic=
12049 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12053 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12054 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12055 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 lt_cv_prog_compiler_c_o=no
12059 $rm -r conftest 2>/dev/null
12063 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12065 lt_compiler_flag="-o out/conftest2.$ac_objext"
12066 # Insert the option either (1) after the last *FLAGS variable, or
12067 # (2) before a word containing "conftest.", or (3) at the end.
12068 # Note that $ac_compile itself does not contain backslashes and begins
12069 # with a dollar sign (not a hyphen), so the echo should work correctly.
12070 lt_compile=`echo "$ac_compile" | $SED \
12071 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12073 -e 's:$: $lt_compiler_flag:'`
12074 (eval echo "\"\$as_me:12074: $lt_compile\"" >&5)
12075 (eval "$lt_compile" 2>out/conftest.err)
12077 cat out/conftest.err >&5
12078 echo "$as_me:12078: \$? = $ac_status" >&5
12079 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12081 # The compiler can only warn and ignore the option if not recognized
12082 # So say no if there are warnings
12083 if test ! -s out/conftest.err; then
12084 lt_cv_prog_compiler_c_o=yes
12089 # SGI C++ compiler will create directory out/ii_files/ for
12090 # template instantiation
12091 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12092 $rm out/* && rmdir out
12098 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12099 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12102 hard_links="nottested"
12103 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12104 # do not overwrite the value of need_locks provided by the user
12105 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12106 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12111 ln conftest.a conftest.b 2>&5 || hard_links=no
12112 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12113 echo "$as_me:$LINENO: result: $hard_links" >&5
12114 echo "${ECHO_T}$hard_links" >&6
12115 if test "$hard_links" = no; then
12116 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12117 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12124 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12125 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12128 allow_undefined_flag=
12129 enable_shared_with_static_runtimes=no
12131 archive_expsym_cmds=
12132 old_archive_From_new_cmds=
12133 old_archive_from_expsyms_cmds=
12134 export_dynamic_flag_spec=
12135 whole_archive_flag_spec=
12136 thread_safe_flag_spec=
12137 hardcode_libdir_flag_spec=
12138 hardcode_libdir_flag_spec_ld=
12139 hardcode_libdir_separator=
12141 hardcode_minus_L=no
12142 hardcode_shlibpath_var=unsupported
12143 link_all_deplibs=unknown
12144 hardcode_automatic=no
12146 module_expsym_cmds=
12147 always_export_symbols=no
12148 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12149 # include_expsyms should be a list of space-separated symbols to be *always*
12150 # included in the symbol list
12152 # exclude_expsyms can be an extended regexp of symbols to exclude
12153 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12154 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12155 # as well as any symbol that contains `d'.
12156 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12157 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12158 # platforms (ab)use it in PIC code, but their linkers get confused if
12159 # the symbol is explicitly referenced. Since portable code cannot
12160 # rely on this symbol name, it's probably fine to never include it in
12161 # preloaded symbol tables.
12162 extract_expsyms_cmds=
12165 cygwin* | mingw* | pw32*)
12166 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12167 # When not using gcc, we currently assume that we are using
12168 # Microsoft Visual C++.
12169 if test "$GCC" != yes; then
12179 if test "$with_gnu_ld" = yes; then
12180 # If archive_cmds runs LD, not CC, wlarc should be empty
12183 # See if GNU ld supports shared libraries.
12185 aix3* | aix4* | aix5*)
12186 # On AIX/PPC, the GNU linker is very broken
12187 if test "$host_cpu" != ia64; then
12191 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12192 *** to be unable to reliably create shared libraries on AIX.
12193 *** Therefore, libtool is disabling shared libraries support. If you
12194 *** really care for shared libraries, you may want to modify your PATH
12195 *** so that a non-GNU linker is found, and then restart.
12202 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)'
12203 hardcode_libdir_flag_spec='-L$libdir'
12204 hardcode_minus_L=yes
12206 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12207 # that the semantics of dynamic libraries on AmigaOS, at least up
12208 # to version 4, is to share data among multiple programs linked
12209 # with the same dynamic library. Since this doesn't match the
12210 # behavior of shared libraries on other platforms, we can't use
12216 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12217 allow_undefined_flag=unsupported
12218 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12219 # support --undefined. This deserves some investigation. FIXME
12220 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12226 cygwin* | mingw* | pw32*)
12227 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12228 # as there is no search path for DLLs.
12229 hardcode_libdir_flag_spec='-L$libdir'
12230 allow_undefined_flag=unsupported
12231 always_export_symbols=no
12232 enable_shared_with_static_runtimes=yes
12233 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12235 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12237 # If the export-symbols file already is a .def file (1st line
12238 # is EXPORTS), use it as is; otherwise, prepend...
12239 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12240 cp $export_symbols $output_objdir/$soname.def;
12242 echo EXPORTS > $output_objdir/$soname.def;
12243 cat $export_symbols >> $output_objdir/$soname.def;
12245 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12252 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12253 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12257 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12262 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12266 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12267 *** create shared libraries on Solaris systems. Therefore, libtool
12268 *** is disabling shared libraries support. We urge you to upgrade GNU
12269 *** binutils to release 2.9.1 or newer. Another option is to modify
12270 *** your PATH or compiler configuration so that the native linker is
12271 *** used, and then restart.
12274 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12276 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12283 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12285 hardcode_direct=yes
12286 hardcode_shlibpath_var=no
12290 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12291 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12292 archive_cmds="$tmp_archive_cmds"
12293 supports_anon_versioning=no
12294 case `$LD -v 2>/dev/null` in
12295 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12296 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12297 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12298 *\ 2.11.*) ;; # other 2.11 versions
12299 *) supports_anon_versioning=yes ;;
12301 if test $supports_anon_versioning = yes; then
12302 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12303 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12304 $echo "local: *; };" >> $output_objdir/$libname.ver~
12305 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12307 archive_expsym_cmds="$tmp_archive_cmds"
12315 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12317 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12324 if test "$ld_shlibs" = yes; then
12325 runpath_var=LD_RUN_PATH
12326 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12327 export_dynamic_flag_spec='${wl}--export-dynamic'
12328 # ancient GNU ld didn't support --whole-archive et. al.
12329 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12330 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12332 whole_archive_flag_spec=
12336 # PORTME fill in a description of your system's linker (not GNU ld)
12339 allow_undefined_flag=unsupported
12340 always_export_symbols=yes
12341 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'
12342 # Note: this linker hardcodes the directories in LIBPATH if there
12343 # are no directories specified by -L.
12344 hardcode_minus_L=yes
12345 if test "$GCC" = yes && test -z "$link_static_flag"; then
12346 # Neither direct hardcoding nor static linking is supported with a
12348 hardcode_direct=unsupported
12353 if test "$host_cpu" = ia64; then
12354 # On IA64, the linker does run time linking by default, so we don't
12355 # have to do anything special.
12356 aix_use_runtimelinking=no
12357 exp_sym_flag='-Bexport'
12360 # If we're using GNU nm, then we don't want the "-C" option.
12361 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12362 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12363 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'
12365 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'
12367 aix_use_runtimelinking=no
12369 # Test if we are trying to use run time linking or normal
12370 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12371 # need to do runtime linking.
12372 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12373 for ld_flag in $LDFLAGS; do
12374 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12375 aix_use_runtimelinking=yes
12381 exp_sym_flag='-bexport'
12382 no_entry_flag='-bnoentry'
12385 # When large executables or shared objects are built, AIX ld can
12386 # have problems creating the table of contents. If linking a library
12387 # or program results in "error TOC overflow" add -mminimal-toc to
12388 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12389 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12392 hardcode_direct=yes
12393 hardcode_libdir_separator=':'
12394 link_all_deplibs=yes
12396 if test "$GCC" = yes; then
12397 case $host_os in aix4.012|aix4.012.*)
12398 # We only want to do this on AIX 4.2 and lower, the check
12399 # below for broken collect2 doesn't work under 4.3+
12400 collect2name=`${CC} -print-prog-name=collect2`
12401 if test -f "$collect2name" && \
12402 strings "$collect2name" | grep resolve_lib_name >/dev/null
12404 # We have reworked collect2
12405 hardcode_direct=yes
12407 # We have old collect2
12408 hardcode_direct=unsupported
12409 # It fails to find uninstalled libraries when the uninstalled
12410 # path is not listed in the libpath. Setting hardcode_minus_L
12411 # to unsupported forces relinking
12412 hardcode_minus_L=yes
12413 hardcode_libdir_flag_spec='-L$libdir'
12414 hardcode_libdir_separator=
12417 shared_flag='-shared'
12420 if test "$host_cpu" = ia64; then
12421 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12422 # chokes on -Wl,-G. The following line is correct:
12425 if test "$aix_use_runtimelinking" = yes; then
12426 shared_flag='${wl}-G'
12428 shared_flag='${wl}-bM:SRE'
12433 # It seems that -bexpall does not export symbols beginning with
12434 # underscore (_), so it is better to generate a list of symbols to export.
12435 always_export_symbols=yes
12436 if test "$aix_use_runtimelinking" = yes; then
12437 # Warning - without using the other runtime loading flags (-brtl),
12438 # -berok will link without error, but may produce a broken library.
12439 allow_undefined_flag='-berok'
12440 # Determine the default libpath from the value encoded in an empty executable.
12441 cat >conftest.$ac_ext <<_ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h. */
12456 rm -f conftest.$ac_objext conftest$ac_exeext
12457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12458 (eval $ac_link) 2>conftest.er1
12460 grep -v '^ *+' conftest.er1 >conftest.err
12462 cat conftest.err >&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } &&
12465 { ac_try='test -z "$ac_c_werror_flag"
12466 || test ! -s conftest.err'
12467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468 (eval $ac_try) 2>&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; } &&
12472 { ac_try='test -s conftest$ac_exeext'
12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; }; then
12479 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12481 # Check for a 64-bit object if we didn't find anything.
12482 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; }
12485 echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12489 rm -f conftest.err conftest.$ac_objext \
12490 conftest$ac_exeext conftest.$ac_ext
12491 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12493 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12494 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"
12496 if test "$host_cpu" = ia64; then
12497 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12498 allow_undefined_flag="-z nodefs"
12499 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"
12501 # Determine the default libpath from the value encoded in an empty executable.
12502 cat >conftest.$ac_ext <<_ACEOF
12505 cat confdefs.h >>conftest.$ac_ext
12506 cat >>conftest.$ac_ext <<_ACEOF
12507 /* end confdefs.h. */
12517 rm -f conftest.$ac_objext conftest$ac_exeext
12518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12519 (eval $ac_link) 2>conftest.er1
12521 grep -v '^ *+' conftest.er1 >conftest.err
12523 cat conftest.err >&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } &&
12526 { ac_try='test -z "$ac_c_werror_flag"
12527 || test ! -s conftest.err'
12528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12529 (eval $ac_try) 2>&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }; } &&
12533 { ac_try='test -s conftest$ac_exeext'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; }; then
12540 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12542 # Check for a 64-bit object if we didn't find anything.
12543 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; }
12546 echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.$ac_ext >&5
12550 rm -f conftest.err conftest.$ac_objext \
12551 conftest$ac_exeext conftest.$ac_ext
12552 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12554 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12555 # Warning - without using the other run time loading flags,
12556 # -berok will link without error, but may produce a broken library.
12557 no_undefined_flag=' ${wl}-bernotok'
12558 allow_undefined_flag=' ${wl}-berok'
12559 # -bexpall does not export symbols beginning with underscore (_)
12560 always_export_symbols=yes
12561 # Exported symbols can be pulled into shared objects from archives
12562 whole_archive_flag_spec=' '
12563 archive_cmds_need_lc=yes
12564 # This is similar to how AIX traditionally builds it's shared libraries.
12565 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'
12571 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)'
12572 hardcode_libdir_flag_spec='-L$libdir'
12573 hardcode_minus_L=yes
12574 # see comment about different semantics on the GNU ld section
12579 export_dynamic_flag_spec=-rdynamic
12582 cygwin* | mingw* | pw32*)
12583 # When not using gcc, we currently assume that we are using
12584 # Microsoft Visual C++.
12585 # hardcode_libdir_flag_spec is actually meaningless, as there is
12586 # no search path for DLLs.
12587 hardcode_libdir_flag_spec=' '
12588 allow_undefined_flag=unsupported
12589 # Tell ltmain to make .lib files, not .a files.
12591 # Tell ltmain to make .dll files, not .so files.
12593 # FIXME: Setting linknames here is a bad hack.
12594 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12595 # The linker will automatically build a .lib file if we build a DLL.
12596 old_archive_From_new_cmds='true'
12597 # FIXME: Should let the user specify the lib program.
12598 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12599 fix_srcfile_path='`cygpath -w "$srcfile"`'
12600 enable_shared_with_static_runtimes=yes
12603 darwin* | rhapsody*)
12605 rhapsody* | darwin1.[012])
12606 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12609 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12610 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12612 case ${MACOSX_DEPLOYMENT_TARGET} in
12614 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12617 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12623 archive_cmds_need_lc=no
12625 hardcode_automatic=yes
12626 hardcode_shlibpath_var=unsupported
12627 whole_archive_flag_spec=''
12628 link_all_deplibs=yes
12629 if test "$GCC" = yes ; then
12630 output_verbose_link_cmd='echo'
12631 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12632 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12633 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12634 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}'
12635 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}'
12637 case "$cc_basename" in
12639 output_verbose_link_cmd='echo'
12640 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12641 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12642 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12643 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}'
12644 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}'
12654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12655 hardcode_libdir_flag_spec='-L$libdir'
12656 hardcode_shlibpath_var=no
12663 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12664 # support. Future versions do this automatically, but an explicit c++rt0.o
12665 # does not break anything, and helps significantly (at the cost of a little
12668 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12669 hardcode_libdir_flag_spec='-R$libdir'
12670 hardcode_direct=yes
12671 hardcode_shlibpath_var=no
12674 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12676 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12677 hardcode_direct=yes
12678 hardcode_minus_L=yes
12679 hardcode_shlibpath_var=no
12682 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12683 freebsd* | kfreebsd*-gnu)
12684 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12685 hardcode_libdir_flag_spec='-R$libdir'
12686 hardcode_direct=yes
12687 hardcode_shlibpath_var=no
12691 if test "$GCC" = yes; then
12692 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'
12694 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'
12696 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12697 hardcode_libdir_separator=:
12698 hardcode_direct=yes
12700 # hardcode_minus_L: Not really in the search PATH,
12701 # but as the default location of the library.
12702 hardcode_minus_L=yes
12703 export_dynamic_flag_spec='${wl}-E'
12707 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12708 case "$host_cpu" in
12710 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12713 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12717 case "$host_cpu" in
12719 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12722 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12726 if test "$with_gnu_ld" = no; then
12727 case "$host_cpu" in
12729 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12730 hardcode_libdir_flag_spec_ld='+b $libdir'
12731 hardcode_libdir_separator=:
12733 hardcode_shlibpath_var=no
12736 hardcode_libdir_flag_spec='-L$libdir'
12738 hardcode_shlibpath_var=no
12740 # hardcode_minus_L: Not really in the search PATH,
12741 # but as the default location of the library.
12742 hardcode_minus_L=yes
12745 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12746 hardcode_libdir_separator=:
12747 hardcode_direct=yes
12748 export_dynamic_flag_spec='${wl}-E'
12750 # hardcode_minus_L: Not really in the search PATH,
12751 # but as the default location of the library.
12752 hardcode_minus_L=yes
12758 irix5* | irix6* | nonstopux*)
12759 if test "$GCC" = yes; then
12760 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'
12762 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'
12763 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12765 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12766 hardcode_libdir_separator=:
12767 link_all_deplibs=yes
12771 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12772 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12774 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12776 hardcode_libdir_flag_spec='-R$libdir'
12777 hardcode_direct=yes
12778 hardcode_shlibpath_var=no
12782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12783 hardcode_direct=yes
12784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12785 hardcode_libdir_separator=:
12786 hardcode_shlibpath_var=no
12790 hardcode_direct=yes
12791 hardcode_shlibpath_var=no
12792 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12793 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12794 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12795 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12796 export_dynamic_flag_spec='${wl}-E'
12799 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12801 hardcode_libdir_flag_spec='-R$libdir'
12804 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12805 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12812 hardcode_libdir_flag_spec='-L$libdir'
12813 hardcode_minus_L=yes
12814 allow_undefined_flag=unsupported
12815 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'
12816 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12820 if test "$GCC" = yes; then
12821 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12822 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'
12824 allow_undefined_flag=' -expect_unresolved \*'
12825 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'
12827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12828 hardcode_libdir_separator=:
12831 osf4* | osf5*) # as osf3* with the addition of -msym flag
12832 if test "$GCC" = yes; then
12833 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12834 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'
12835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12837 allow_undefined_flag=' -expect_unresolved \*'
12838 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'
12839 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12840 $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'
12842 # Both c and cxx compiler support -rpath directly
12843 hardcode_libdir_flag_spec='-rpath $libdir'
12845 hardcode_libdir_separator=:
12849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12850 hardcode_shlibpath_var=no
12851 export_dynamic_flag_spec='${wl}-Bexport'
12852 runpath_var=LD_RUN_PATH
12853 hardcode_runpath_var=yes
12857 no_undefined_flag=' -z text'
12858 if test "$GCC" = yes; then
12859 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12860 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12861 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12863 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12864 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12865 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12867 hardcode_libdir_flag_spec='-R$libdir'
12868 hardcode_shlibpath_var=no
12870 solaris2.[0-5] | solaris2.[0-5].*) ;;
12871 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12872 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12874 link_all_deplibs=yes
12878 if test "x$host_vendor" = xsequent; then
12879 # Use $CC to link under sequent, because it throws in some extra .o
12880 # files that make .init and .fini sections work.
12881 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12883 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12885 hardcode_libdir_flag_spec='-L$libdir'
12886 hardcode_direct=yes
12887 hardcode_minus_L=yes
12888 hardcode_shlibpath_var=no
12892 case $host_vendor in
12894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12895 hardcode_direct=yes # is this really true???
12898 ## LD is ld it makes a PLAMLIB
12899 ## CC just makes a GrossModule.
12900 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12901 reload_cmds='$CC -r -o $output$reload_objs'
12905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12906 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12909 runpath_var='LD_RUN_PATH'
12910 hardcode_shlibpath_var=no
12914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12915 hardcode_shlibpath_var=no
12916 export_dynamic_flag_spec='-Bexport'
12920 if test -d /usr/nec; then
12921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12922 hardcode_shlibpath_var=no
12923 runpath_var=LD_RUN_PATH
12924 hardcode_runpath_var=yes
12930 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12931 hardcode_direct=yes
12932 hardcode_minus_L=no
12933 hardcode_shlibpath_var=no
12934 hardcode_runpath_var=yes
12935 runpath_var=LD_RUN_PATH
12938 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12939 no_undefined_flag='${wl}-z ${wl}text'
12940 if test "$GCC" = yes; then
12941 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12943 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12945 runpath_var='LD_RUN_PATH'
12946 hardcode_shlibpath_var=no
12950 no_undefined_flag=' -z text'
12951 # $CC -shared without GNU ld will not create a library from C++
12952 # object files and a static libstdc++, better avoid it by now
12953 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12954 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12955 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12956 hardcode_libdir_flag_spec=
12957 hardcode_shlibpath_var=no
12958 runpath_var='LD_RUN_PATH'
12962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12963 hardcode_libdir_flag_spec='-L$libdir'
12964 hardcode_shlibpath_var=no
12973 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12974 echo "${ECHO_T}$ld_shlibs" >&6
12975 test "$ld_shlibs" = no && can_build_shared=no
12977 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12978 if test "$GCC" = yes; then
12979 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12983 # Do we need to explicitly link libc?
12985 case "x$archive_cmds_need_lc" in
12987 # Assume -lc should be added
12988 archive_cmds_need_lc=yes
12990 if test "$enable_shared" = yes && test "$GCC" = yes; then
12991 case $archive_cmds in
12993 # FIXME: we may have to deal with multi-command sequences.
12996 # Test whether the compiler implicitly links with -lc since on some
12997 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12998 # to ld, don't add -lc before -lgcc.
12999 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13000 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13002 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13005 (eval $ac_compile) 2>&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); } 2>conftest.err; then
13011 libobjs=conftest.$ac_objext
13013 wl=$lt_prog_compiler_wl
13019 lt_save_allow_undefined_flag=$allow_undefined_flag
13020 allow_undefined_flag=
13021 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13022 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }
13027 archive_cmds_need_lc=no
13029 archive_cmds_need_lc=yes
13031 allow_undefined_flag=$lt_save_allow_undefined_flag
13033 cat conftest.err 1>&5
13036 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13037 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13044 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13045 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13046 library_names_spec=
13047 libname_spec='lib$name'
13051 postuninstall_cmds=
13055 shlibpath_overrides_runpath=unknown
13057 dynamic_linker="$host_os ld.so"
13058 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13059 if test "$GCC" = yes; then
13060 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13061 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13062 # if the path contains ";" then we assume it to be the separator
13063 # otherwise default to the standard path separator (i.e. ":") - it is
13064 # assumed that no part of a normal pathname contains ";" but that should
13065 # okay in the real world where ";" in dirpaths is itself problematic.
13066 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13068 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13071 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13073 need_lib_prefix=unknown
13074 hardcode_into_libs=no
13076 # when you set need_version to no, make sure it does not cause -set_version
13077 # flags to be left without arguments
13078 need_version=unknown
13083 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13084 shlibpath_var=LIBPATH
13086 # AIX 3 has no versioning support, so we append a major version to the name.
13087 soname_spec='${libname}${release}${shared_ext}$major'
13094 hardcode_into_libs=yes
13095 if test "$host_cpu" = ia64; then
13096 # AIX 5 supports IA64
13097 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13098 shlibpath_var=LD_LIBRARY_PATH
13100 # With GCC up to 2.95.x, collect2 would create an import file
13101 # for dependence libraries. The import file would start with
13102 # the line `#! .'. This would cause the generated library to
13103 # depend on `.', always an invalid library. This was fixed in
13104 # development snapshots of GCC prior to 3.0.
13106 aix4 | aix4.[01] | aix4.[01].*)
13107 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13109 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13112 can_build_shared=no
13116 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13117 # soname into executable. Probably we can add versioning support to
13118 # collect2, so additional links can be useful in future.
13119 if test "$aix_use_runtimelinking" = yes; then
13120 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13121 # instead of lib<name>.a to let people know that these are not
13122 # typical AIX shared libraries.
13123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13125 # We preserve .a as extension for shared libraries through AIX4.2
13126 # and later when we are not doing run time linking.
13127 library_names_spec='${libname}${release}.a $libname.a'
13128 soname_spec='${libname}${release}${shared_ext}$major'
13130 shlibpath_var=LIBPATH
13135 library_names_spec='$libname.ixlibrary $libname.a'
13136 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13137 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'
13141 library_names_spec='${libname}${shared_ext}'
13142 dynamic_linker="$host_os ld.so"
13143 shlibpath_var=LIBRARY_PATH
13149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13150 soname_spec='${libname}${release}${shared_ext}$major'
13151 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13152 shlibpath_var=LD_LIBRARY_PATH
13153 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13154 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13155 # the default ld.so.conf also contains /usr/contrib/lib and
13156 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13157 # libtool to hard-code these into programs
13160 cygwin* | mingw* | pw32*)
13161 version_type=windows
13166 case $GCC,$host_os in
13167 yes,cygwin* | yes,mingw* | yes,pw32*)
13168 library_names_spec='$libname.dll.a'
13169 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13170 postinstall_cmds='base_file=`basename \${file}`~
13171 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13172 dldir=$destdir/`dirname \$dlpath`~
13173 test -d \$dldir || mkdir -p \$dldir~
13174 $install_prog $dir/$dlname \$dldir/$dlname'
13175 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13176 dlpath=$dir/\$dldll~
13178 shlibpath_overrides_runpath=yes
13182 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13183 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13184 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13187 # MinGW DLLs use traditional 'lib' prefix
13188 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13189 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13190 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13191 # It is most probably a Windows format PATH printed by
13192 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13193 # path with ; separators, and with drive letters. We can handle the
13194 # drive letters (cygwin fileutils understands them), so leave them,
13195 # especially as we might pass files found there to a mingw objdump,
13196 # which wouldn't understand a cygwinified path. Ahh.
13197 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13199 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13203 # pw32 DLLs use 'pw' prefix rather than 'lib'
13204 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13210 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13213 dynamic_linker='Win32 ld.exe'
13214 # FIXME: first we should search . and the directory the executable is in
13218 darwin* | rhapsody*)
13219 dynamic_linker="$host_os dyld"
13220 version_type=darwin
13223 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13224 soname_spec='${libname}${release}${major}$shared_ext'
13225 shlibpath_overrides_runpath=yes
13226 shlibpath_var=DYLD_LIBRARY_PATH
13227 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13228 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13229 if test "$GCC" = yes; then
13230 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"`
13232 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13234 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13242 soname_spec='${libname}${release}${shared_ext}$major'
13243 shlibpath_var=LD_LIBRARY_PATH
13254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13255 soname_spec='${libname}${release}${shared_ext}$major'
13256 shlibpath_var=LD_LIBRARY_PATH
13257 shlibpath_overrides_runpath=no
13258 hardcode_into_libs=yes
13259 dynamic_linker='GNU ld.so'
13263 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13264 version_type=freebsd-$objformat
13265 case $version_type in
13267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13276 shlibpath_var=LD_LIBRARY_PATH
13279 shlibpath_overrides_runpath=yes
13281 freebsd3.01* | freebsdelf3.01*)
13282 shlibpath_overrides_runpath=yes
13283 hardcode_into_libs=yes
13286 shlibpath_overrides_runpath=no
13287 hardcode_into_libs=yes
13296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13297 soname_spec='${libname}${release}${shared_ext}$major'
13298 shlibpath_var=LD_LIBRARY_PATH
13299 hardcode_into_libs=yes
13302 hpux9* | hpux10* | hpux11*)
13303 # Give a soname corresponding to the major version so that dld.sl refuses to
13304 # link against other versions.
13308 case "$host_cpu" in
13311 hardcode_into_libs=yes
13312 dynamic_linker="$host_os dld.so"
13313 shlibpath_var=LD_LIBRARY_PATH
13314 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13316 soname_spec='${libname}${release}${shared_ext}$major'
13317 if test "X$HPUX_IA64_MODE" = X32; then
13318 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13320 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13322 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13326 hardcode_into_libs=yes
13327 dynamic_linker="$host_os dld.sl"
13328 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13329 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13331 soname_spec='${libname}${release}${shared_ext}$major'
13332 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13333 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13337 dynamic_linker="$host_os dld.sl"
13338 shlibpath_var=SHLIB_PATH
13339 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13341 soname_spec='${libname}${release}${shared_ext}$major'
13344 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13345 postinstall_cmds='chmod 555 $lib'
13348 irix5* | irix6* | nonstopux*)
13350 nonstopux*) version_type=nonstopux ;;
13352 if test "$lt_cv_prog_gnu_ld" = yes; then
13360 soname_spec='${libname}${release}${shared_ext}$major'
13361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13363 irix5* | nonstopux*)
13364 libsuff= shlibsuff=
13367 case $LD in # libtool.m4 will add one of these switches to LD
13368 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13369 libsuff= shlibsuff= libmagic=32-bit;;
13370 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13371 libsuff=32 shlibsuff=N32 libmagic=N32;;
13372 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13373 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13374 *) libsuff= shlibsuff= libmagic=never-match;;
13378 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13379 shlibpath_overrides_runpath=no
13380 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13381 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13382 hardcode_into_libs=yes
13385 # No shared lib support for Linux oldld, aout, or coff.
13386 linux*oldld* | linux*aout* | linux*coff*)
13390 # This must be Linux ELF.
13395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13396 soname_spec='${libname}${release}${shared_ext}$major'
13397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13398 shlibpath_var=LD_LIBRARY_PATH
13399 shlibpath_overrides_runpath=no
13400 # This implies no fast_install, which is unacceptable.
13401 # Some rework will be needed to allow for fast_install
13402 # before this can be enabled.
13403 hardcode_into_libs=yes
13405 # Append ld.so.conf contents to the search path
13406 if test -f /etc/ld.so.conf; then
13407 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13408 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13411 # We used to test for /lib/ld.so.1 and disable shared libraries on
13412 # powerpc, because MkLinux only supported shared libraries with the
13413 # GNU dynamic linker. Since this was broken with cross compilers,
13414 # most powerpc-linux boxes support dynamic linking these days and
13415 # people can always --disable-shared, the test was removed, and we
13416 # assume the GNU/Linux dynamic linker is in use.
13417 dynamic_linker='GNU/Linux ld.so'
13424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13425 soname_spec='${libname}${release}${shared_ext}$major'
13426 shlibpath_var=LD_LIBRARY_PATH
13427 shlibpath_overrides_runpath=no
13428 hardcode_into_libs=yes
13429 dynamic_linker='GNU ld.so'
13436 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13439 dynamic_linker='NetBSD (a.out) ld.so'
13441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13442 soname_spec='${libname}${release}${shared_ext}$major'
13443 dynamic_linker='NetBSD ld.elf_so'
13445 shlibpath_var=LD_LIBRARY_PATH
13446 shlibpath_overrides_runpath=yes
13447 hardcode_into_libs=yes
13452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13453 shlibpath_var=LD_LIBRARY_PATH
13454 shlibpath_overrides_runpath=yes
13461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13462 soname_spec='${libname}${release}${shared_ext}$major'
13463 shlibpath_var=LD_LIBRARY_PATH
13464 shlibpath_overrides_runpath=yes
13471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13473 shlibpath_var=LD_LIBRARY_PATH
13474 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13476 openbsd2.[89] | openbsd2.[89].*)
13477 shlibpath_overrides_runpath=no
13480 shlibpath_overrides_runpath=yes
13484 shlibpath_overrides_runpath=yes
13489 libname_spec='$name'
13492 library_names_spec='$libname${shared_ext} $libname.a'
13493 dynamic_linker='OS/2 ld.exe'
13494 shlibpath_var=LIBPATH
13497 osf3* | osf4* | osf5*)
13501 soname_spec='${libname}${release}${shared_ext}$major'
13502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13503 shlibpath_var=LD_LIBRARY_PATH
13504 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13505 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13510 soname_spec='${libname}${release}${shared_ext}$major'
13511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13512 shlibpath_var=LD_LIBRARY_PATH
13519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13520 soname_spec='${libname}${release}${shared_ext}$major'
13521 shlibpath_var=LD_LIBRARY_PATH
13522 shlibpath_overrides_runpath=yes
13523 hardcode_into_libs=yes
13524 # ldd complains unless libraries are executable
13525 postinstall_cmds='chmod +x $lib'
13530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13531 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13532 shlibpath_var=LD_LIBRARY_PATH
13533 shlibpath_overrides_runpath=yes
13534 if test "$with_gnu_ld" = yes; then
13540 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13543 soname_spec='${libname}${release}${shared_ext}$major'
13544 shlibpath_var=LD_LIBRARY_PATH
13545 case $host_vendor in
13547 shlibpath_overrides_runpath=no
13549 export_dynamic_flag_spec='${wl}-Blargedynsym'
13550 runpath_var=LD_RUN_PATH
13558 shlibpath_overrides_runpath=no
13559 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13565 if test -d /usr/nec ;then
13567 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13568 soname_spec='$libname${shared_ext}.$major'
13569 shlibpath_var=LD_LIBRARY_PATH
13575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13576 soname_spec='${libname}${release}${shared_ext}$major'
13577 shlibpath_var=LD_LIBRARY_PATH
13584 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13585 echo "${ECHO_T}$dynamic_linker" >&6
13586 test "$dynamic_linker" = no && can_build_shared=no
13588 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13589 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13591 if test -n "$hardcode_libdir_flag_spec" || \
13592 test -n "$runpath_var" || \
13593 test "X$hardcode_automatic" = "Xyes" ; then
13595 # We can hardcode non-existant directories.
13596 if test "$hardcode_direct" != no &&
13597 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13598 # have to relink, otherwise we might link with an installed library
13599 # when we should be linking with a yet-to-be-installed one
13600 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13601 test "$hardcode_minus_L" != no; then
13602 # Linking always hardcodes the temporary library directory.
13603 hardcode_action=relink
13605 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13606 hardcode_action=immediate
13609 # We cannot hardcode anything, or else we can only hardcode existing
13611 hardcode_action=unsupported
13613 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13614 echo "${ECHO_T}$hardcode_action" >&6
13616 if test "$hardcode_action" = relink; then
13617 # Fast installation is not supported
13618 enable_fast_install=no
13619 elif test "$shlibpath_overrides_runpath" = yes ||
13620 test "$enable_shared" = no; then
13621 # Fast installation is not necessary
13622 enable_fast_install=needless
13627 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13628 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13629 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13630 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13631 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13632 echo "$as_me:$LINENO: result: yes" >&5
13633 echo "${ECHO_T}yes" >&6
13635 # FIXME - insert some real tests, host_os isn't really good enough
13638 if test -n "$STRIP" ; then
13639 striplib="$STRIP -x"
13640 echo "$as_me:$LINENO: result: yes" >&5
13641 echo "${ECHO_T}yes" >&6
13643 echo "$as_me:$LINENO: result: no" >&5
13644 echo "${ECHO_T}no" >&6
13648 echo "$as_me:$LINENO: result: no" >&5
13649 echo "${ECHO_T}no" >&6
13654 if test "x$enable_dlopen" != xyes; then
13655 enable_dlopen=unknown
13656 enable_dlopen_self=unknown
13657 enable_dlopen_self_static=unknown
13664 lt_cv_dlopen="load_add_on"
13666 lt_cv_dlopen_self=yes
13670 lt_cv_dlopen="LoadLibrary"
13675 lt_cv_dlopen="dlopen"
13680 # if libdl is installed we need to link against it
13681 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13682 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13683 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13686 ac_check_lib_save_LIBS=$LIBS
13688 cat >conftest.$ac_ext <<_ACEOF
13691 cat confdefs.h >>conftest.$ac_ext
13692 cat >>conftest.$ac_ext <<_ACEOF
13693 /* end confdefs.h. */
13695 /* Override any gcc2 internal prototype to avoid an error. */
13699 /* We use char because int might match the return type of a gcc2
13700 builtin and then its argument prototype would still apply. */
13710 rm -f conftest.$ac_objext conftest$ac_exeext
13711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13712 (eval $ac_link) 2>conftest.er1
13714 grep -v '^ *+' conftest.er1 >conftest.err
13716 cat conftest.err >&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } &&
13719 { ac_try='test -z "$ac_c_werror_flag"
13720 || test ! -s conftest.err'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; } &&
13726 { ac_try='test -s conftest$ac_exeext'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; }; then
13732 ac_cv_lib_dl_dlopen=yes
13734 echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13737 ac_cv_lib_dl_dlopen=no
13739 rm -f conftest.err conftest.$ac_objext \
13740 conftest$ac_exeext conftest.$ac_ext
13741 LIBS=$ac_check_lib_save_LIBS
13743 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13744 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13745 if test $ac_cv_lib_dl_dlopen = yes; then
13746 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13749 lt_cv_dlopen="dyld"
13751 lt_cv_dlopen_self=yes
13758 echo "$as_me:$LINENO: checking for shl_load" >&5
13759 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13760 if test "${ac_cv_func_shl_load+set}" = set; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13763 cat >conftest.$ac_ext <<_ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h. */
13769 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13771 #define shl_load innocuous_shl_load
13773 /* System header to define __stub macros and hopefully few prototypes,
13774 which can conflict with char shl_load (); below.
13775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13776 <limits.h> exists even on freestanding compilers. */
13779 # include <limits.h>
13781 # include <assert.h>
13786 /* Override any gcc2 internal prototype to avoid an error. */
13791 /* We use char because int might match the return type of a gcc2
13792 builtin and then its argument prototype would still apply. */
13794 /* The GNU C library defines this for functions which it implements
13795 to always fail with ENOSYS. Some functions are actually named
13796 something starting with __ and the normal name is an alias. */
13797 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13800 char (*f) () = shl_load;
13809 return f != shl_load;
13814 rm -f conftest.$ac_objext conftest$ac_exeext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13816 (eval $ac_link) 2>conftest.er1
13818 grep -v '^ *+' conftest.er1 >conftest.err
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
13823 { ac_try='test -z "$ac_c_werror_flag"
13824 || test ! -s conftest.err'
13825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 (eval $ac_try) 2>&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; } &&
13830 { ac_try='test -s conftest$ac_exeext'
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13836 ac_cv_func_shl_load=yes
13838 echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13841 ac_cv_func_shl_load=no
13843 rm -f conftest.err conftest.$ac_objext \
13844 conftest$ac_exeext conftest.$ac_ext
13846 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13847 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13848 if test $ac_cv_func_shl_load = yes; then
13849 lt_cv_dlopen="shl_load"
13851 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13852 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13853 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13854 echo $ECHO_N "(cached) $ECHO_C" >&6
13856 ac_check_lib_save_LIBS=$LIBS
13858 cat >conftest.$ac_ext <<_ACEOF
13861 cat confdefs.h >>conftest.$ac_ext
13862 cat >>conftest.$ac_ext <<_ACEOF
13863 /* end confdefs.h. */
13865 /* Override any gcc2 internal prototype to avoid an error. */
13869 /* We use char because int might match the return type of a gcc2
13870 builtin and then its argument prototype would still apply. */
13880 rm -f conftest.$ac_objext conftest$ac_exeext
13881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13882 (eval $ac_link) 2>conftest.er1
13884 grep -v '^ *+' conftest.er1 >conftest.err
13886 cat conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } &&
13889 { ac_try='test -z "$ac_c_werror_flag"
13890 || test ! -s conftest.err'
13891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 (eval $ac_try) 2>&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; } &&
13896 { ac_try='test -s conftest$ac_exeext'
13897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
13902 ac_cv_lib_dld_shl_load=yes
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13907 ac_cv_lib_dld_shl_load=no
13909 rm -f conftest.err conftest.$ac_objext \
13910 conftest$ac_exeext conftest.$ac_ext
13911 LIBS=$ac_check_lib_save_LIBS
13913 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13914 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13915 if test $ac_cv_lib_dld_shl_load = yes; then
13916 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13918 echo "$as_me:$LINENO: checking for dlopen" >&5
13919 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13920 if test "${ac_cv_func_dlopen+set}" = set; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13923 cat >conftest.$ac_ext <<_ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13931 #define dlopen innocuous_dlopen
13933 /* System header to define __stub macros and hopefully few prototypes,
13934 which can conflict with char dlopen (); below.
13935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13936 <limits.h> exists even on freestanding compilers. */
13939 # include <limits.h>
13941 # include <assert.h>
13946 /* Override any gcc2 internal prototype to avoid an error. */
13951 /* We use char because int might match the return type of a gcc2
13952 builtin and then its argument prototype would still apply. */
13954 /* The GNU C library defines this for functions which it implements
13955 to always fail with ENOSYS. Some functions are actually named
13956 something starting with __ and the normal name is an alias. */
13957 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13960 char (*f) () = dlopen;
13969 return f != dlopen;
13974 rm -f conftest.$ac_objext conftest$ac_exeext
13975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13976 (eval $ac_link) 2>conftest.er1
13978 grep -v '^ *+' conftest.er1 >conftest.err
13980 cat conftest.err >&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); } &&
13983 { ac_try='test -z "$ac_c_werror_flag"
13984 || test ! -s conftest.err'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; } &&
13990 { ac_try='test -s conftest$ac_exeext'
13991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992 (eval $ac_try) 2>&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; }; then
13996 ac_cv_func_dlopen=yes
13998 echo "$as_me: failed program was:" >&5
13999 sed 's/^/| /' conftest.$ac_ext >&5
14001 ac_cv_func_dlopen=no
14003 rm -f conftest.err conftest.$ac_objext \
14004 conftest$ac_exeext conftest.$ac_ext
14006 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14007 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14008 if test $ac_cv_func_dlopen = yes; then
14009 lt_cv_dlopen="dlopen"
14011 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14012 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14013 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 ac_check_lib_save_LIBS=$LIBS
14018 cat >conftest.$ac_ext <<_ACEOF
14021 cat confdefs.h >>conftest.$ac_ext
14022 cat >>conftest.$ac_ext <<_ACEOF
14023 /* end confdefs.h. */
14025 /* Override any gcc2 internal prototype to avoid an error. */
14029 /* We use char because int might match the return type of a gcc2
14030 builtin and then its argument prototype would still apply. */
14040 rm -f conftest.$ac_objext conftest$ac_exeext
14041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14042 (eval $ac_link) 2>conftest.er1
14044 grep -v '^ *+' conftest.er1 >conftest.err
14046 cat conftest.err >&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
14049 { ac_try='test -z "$ac_c_werror_flag"
14050 || test ! -s conftest.err'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; } &&
14056 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14062 ac_cv_lib_dl_dlopen=yes
14064 echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.$ac_ext >&5
14067 ac_cv_lib_dl_dlopen=no
14069 rm -f conftest.err conftest.$ac_objext \
14070 conftest$ac_exeext conftest.$ac_ext
14071 LIBS=$ac_check_lib_save_LIBS
14073 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14074 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14075 if test $ac_cv_lib_dl_dlopen = yes; then
14076 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14078 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14079 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14080 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14081 echo $ECHO_N "(cached) $ECHO_C" >&6
14083 ac_check_lib_save_LIBS=$LIBS
14084 LIBS="-lsvld $LIBS"
14085 cat >conftest.$ac_ext <<_ACEOF
14088 cat confdefs.h >>conftest.$ac_ext
14089 cat >>conftest.$ac_ext <<_ACEOF
14090 /* end confdefs.h. */
14092 /* Override any gcc2 internal prototype to avoid an error. */
14096 /* We use char because int might match the return type of a gcc2
14097 builtin and then its argument prototype would still apply. */
14107 rm -f conftest.$ac_objext conftest$ac_exeext
14108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14109 (eval $ac_link) 2>conftest.er1
14111 grep -v '^ *+' conftest.er1 >conftest.err
14113 cat conftest.err >&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } &&
14116 { ac_try='test -z "$ac_c_werror_flag"
14117 || test ! -s conftest.err'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; } &&
14123 { ac_try='test -s conftest$ac_exeext'
14124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125 (eval $ac_try) 2>&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); }; }; then
14129 ac_cv_lib_svld_dlopen=yes
14131 echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14134 ac_cv_lib_svld_dlopen=no
14136 rm -f conftest.err conftest.$ac_objext \
14137 conftest$ac_exeext conftest.$ac_ext
14138 LIBS=$ac_check_lib_save_LIBS
14140 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14141 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14142 if test $ac_cv_lib_svld_dlopen = yes; then
14143 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14145 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14146 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14147 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14150 ac_check_lib_save_LIBS=$LIBS
14152 cat >conftest.$ac_ext <<_ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h. */
14159 /* Override any gcc2 internal prototype to avoid an error. */
14163 /* We use char because int might match the return type of a gcc2
14164 builtin and then its argument prototype would still apply. */
14174 rm -f conftest.$ac_objext conftest$ac_exeext
14175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14176 (eval $ac_link) 2>conftest.er1
14178 grep -v '^ *+' conftest.er1 >conftest.err
14180 cat conftest.err >&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } &&
14183 { ac_try='test -z "$ac_c_werror_flag"
14184 || test ! -s conftest.err'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; } &&
14190 { ac_try='test -s conftest$ac_exeext'
14191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
14196 ac_cv_lib_dld_dld_link=yes
14198 echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14201 ac_cv_lib_dld_dld_link=no
14203 rm -f conftest.err conftest.$ac_objext \
14204 conftest$ac_exeext conftest.$ac_ext
14205 LIBS=$ac_check_lib_save_LIBS
14207 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14208 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14209 if test $ac_cv_lib_dld_dld_link = yes; then
14210 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14231 if test "x$lt_cv_dlopen" != xno; then
14237 case $lt_cv_dlopen in
14239 save_CPPFLAGS="$CPPFLAGS"
14240 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14242 save_LDFLAGS="$LDFLAGS"
14243 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14246 LIBS="$lt_cv_dlopen_libs $LIBS"
14248 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14249 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14250 if test "${lt_cv_dlopen_self+set}" = set; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14253 if test "$cross_compiling" = yes; then :
14254 lt_cv_dlopen_self=cross
14256 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14257 lt_status=$lt_dlunknown
14258 cat > conftest.$ac_ext <<EOF
14259 #line 14259 "configure"
14260 #include "confdefs.h"
14269 # define LT_DLGLOBAL RTLD_GLOBAL
14272 # define LT_DLGLOBAL DL_GLOBAL
14274 # define LT_DLGLOBAL 0
14278 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14279 find out it does not work in some platform. */
14280 #ifndef LT_DLLAZY_OR_NOW
14282 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14285 # define LT_DLLAZY_OR_NOW DL_LAZY
14288 # define LT_DLLAZY_OR_NOW RTLD_NOW
14291 # define LT_DLLAZY_OR_NOW DL_NOW
14293 # define LT_DLLAZY_OR_NOW 0
14301 extern "C" void exit (int);
14304 void fnord() { int i=42;}
14307 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14308 int status = $lt_dlunknown;
14312 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14313 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14314 /* dlclose (self); */
14320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14321 (eval $ac_link) 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14325 (./conftest; exit; ) 2>/dev/null
14327 case x$lt_status in
14328 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14329 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14330 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14333 # compilation failed
14334 lt_cv_dlopen_self=no
14341 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14342 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14344 if test "x$lt_cv_dlopen_self" = xyes; then
14345 LDFLAGS="$LDFLAGS $link_static_flag"
14346 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14347 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14348 if test "${lt_cv_dlopen_self_static+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 if test "$cross_compiling" = yes; then :
14352 lt_cv_dlopen_self_static=cross
14354 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14355 lt_status=$lt_dlunknown
14356 cat > conftest.$ac_ext <<EOF
14357 #line 14357 "configure"
14358 #include "confdefs.h"
14367 # define LT_DLGLOBAL RTLD_GLOBAL
14370 # define LT_DLGLOBAL DL_GLOBAL
14372 # define LT_DLGLOBAL 0
14376 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14377 find out it does not work in some platform. */
14378 #ifndef LT_DLLAZY_OR_NOW
14380 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14383 # define LT_DLLAZY_OR_NOW DL_LAZY
14386 # define LT_DLLAZY_OR_NOW RTLD_NOW
14389 # define LT_DLLAZY_OR_NOW DL_NOW
14391 # define LT_DLLAZY_OR_NOW 0
14399 extern "C" void exit (int);
14402 void fnord() { int i=42;}
14405 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14406 int status = $lt_dlunknown;
14410 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14411 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14412 /* dlclose (self); */
14418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14419 (eval $ac_link) 2>&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14423 (./conftest; exit; ) 2>/dev/null
14425 case x$lt_status in
14426 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14427 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14428 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14431 # compilation failed
14432 lt_cv_dlopen_self_static=no
14439 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14440 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14443 CPPFLAGS="$save_CPPFLAGS"
14444 LDFLAGS="$save_LDFLAGS"
14449 case $lt_cv_dlopen_self in
14450 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14451 *) enable_dlopen_self=unknown ;;
14454 case $lt_cv_dlopen_self_static in
14455 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14456 *) enable_dlopen_self_static=unknown ;;
14461 # Report which librarie types wil actually be built
14462 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14463 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14464 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14465 echo "${ECHO_T}$can_build_shared" >&6
14467 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14468 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14469 test "$can_build_shared" = "no" && enable_shared=no
14471 # On AIX, shared libraries and static libraries use the same namespace, and
14472 # are all built from PIC.
14475 test "$enable_shared" = yes && enable_static=no
14476 if test -n "$RANLIB"; then
14477 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14478 postinstall_cmds='$RANLIB $lib'
14483 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14484 test "$enable_shared" = yes && enable_static=no
14488 echo "$as_me:$LINENO: result: $enable_shared" >&5
14489 echo "${ECHO_T}$enable_shared" >&6
14491 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14492 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14493 # Make sure either enable_shared or enable_static is yes.
14494 test "$enable_shared" = yes || enable_static=yes
14495 echo "$as_me:$LINENO: result: $enable_static" >&5
14496 echo "${ECHO_T}$enable_static" >&6
14498 # The else clause should only fire when bootstrapping the
14499 # libtool distribution, otherwise you forgot to ship ltmain.sh
14500 # with your package, and you will get complaints that there are
14501 # no rules to generate ltmain.sh.
14502 if test -f "$ltmain"; then
14503 # See if we are running on zsh, and set the options which allow our commands through
14504 # without removal of \ escapes.
14505 if test -n "${ZSH_VERSION+set}" ; then
14506 setopt NO_GLOB_SUBST
14508 # Now quote all the things that may contain metacharacters while being
14509 # careful not to overquote the AC_SUBSTed values. We take copies of the
14510 # variables and quote the copies for generation of the libtool script.
14511 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14513 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14514 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14515 deplibs_check_method reload_flag reload_cmds need_locks \
14516 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14517 lt_cv_sys_global_symbol_to_c_name_address \
14518 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14519 old_postinstall_cmds old_postuninstall_cmds \
14523 lt_prog_compiler_wl \
14524 lt_prog_compiler_pic \
14525 lt_prog_compiler_static \
14526 lt_prog_compiler_no_builtin_flag \
14527 export_dynamic_flag_spec \
14528 thread_safe_flag_spec \
14529 whole_archive_flag_spec \
14530 enable_shared_with_static_runtimes \
14532 old_archive_from_new_cmds \
14537 compiler_lib_search_path \
14539 archive_expsym_cmds \
14541 postuninstall_cmds \
14542 old_archive_from_expsyms_cmds \
14543 allow_undefined_flag \
14544 no_undefined_flag \
14545 export_symbols_cmds \
14546 hardcode_libdir_flag_spec \
14547 hardcode_libdir_flag_spec_ld \
14548 hardcode_libdir_separator \
14549 hardcode_automatic \
14551 module_expsym_cmds \
14552 lt_cv_prog_compiler_c_o \
14554 include_expsyms; do
14557 old_archive_cmds | \
14558 old_archive_from_new_cmds | \
14560 archive_expsym_cmds | \
14562 module_expsym_cmds | \
14563 old_archive_from_expsyms_cmds | \
14564 export_symbols_cmds | \
14565 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14566 postinstall_cmds | postuninstall_cmds | \
14567 old_postinstall_cmds | old_postuninstall_cmds | \
14568 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14569 # Double-quote double-evaled strings.
14570 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14573 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14579 *'\$0 --fallback-echo"')
14580 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14584 cfgfile="${ofile}T"
14585 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14587 { echo "$as_me:$LINENO: creating $ofile" >&5
14588 echo "$as_me: creating $ofile" >&6;}
14590 cat <<__EOF__ >> "$cfgfile"
14593 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14594 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14595 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14597 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14598 # Free Software Foundation, Inc.
14600 # This file is part of GNU Libtool:
14601 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14603 # This program is free software; you can redistribute it and/or modify
14604 # it under the terms of the GNU General Public License as published by
14605 # the Free Software Foundation; either version 2 of the License, or
14606 # (at your option) any later version.
14608 # This program is distributed in the hope that it will be useful, but
14609 # WITHOUT ANY WARRANTY; without even the implied warranty of
14610 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14611 # General Public License for more details.
14613 # You should have received a copy of the GNU General Public License
14614 # along with this program; if not, write to the Free Software
14615 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14617 # As a special exception to the GNU General Public License, if you
14618 # distribute this file as part of a program that contains a
14619 # configuration script generated by Autoconf, you may include it under
14620 # the same distribution terms that you use for the rest of that program.
14622 # A sed program that does not truncate output.
14625 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14626 Xsed="$SED -e s/^X//"
14628 # The HP-UX ksh and POSIX shell print the target directory to stdout
14629 # if CDPATH is set.
14630 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14632 # The names of the tagged configurations supported by this script.
14635 # ### BEGIN LIBTOOL CONFIG
14637 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14639 # Shell to use when invoking shell scripts.
14642 # Whether or not to build shared libraries.
14643 build_libtool_libs=$enable_shared
14645 # Whether or not to build static libraries.
14646 build_old_libs=$enable_static
14648 # Whether or not to add -lc for building shared libraries.
14649 build_libtool_need_lc=$archive_cmds_need_lc
14651 # Whether or not to disallow shared libs when runtime libs are static
14652 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14654 # Whether or not to optimize for fast installation.
14655 fast_install=$enable_fast_install
14658 host_alias=$host_alias
14661 # An echo program that does not interpret backslashes.
14666 AR_FLAGS=$lt_AR_FLAGS
14671 # A language-specific compiler.
14674 # Is the compiler the GNU C compiler?
14680 # The linker used to build libraries.
14683 # Whether we need hard or soft links.
14686 # A BSD-compatible nm program.
14689 # A symbol stripping program
14692 # Used to examine libraries when file_magic_cmd begins "file"
14693 MAGIC_CMD=$MAGIC_CMD
14695 # Used on cygwin: DLL creation program.
14698 # Used on cygwin: object dumper.
14701 # Used on cygwin: assembler.
14704 # The name of the directory that contains temporary libtool files.
14707 # How to create reloadable object files.
14708 reload_flag=$lt_reload_flag
14709 reload_cmds=$lt_reload_cmds
14711 # How to pass a linker flag through the compiler.
14712 wl=$lt_lt_prog_compiler_wl
14714 # Object file suffix (normally "o").
14715 objext="$ac_objext"
14717 # Old archive suffix (normally "a").
14720 # Shared library suffix (normally ".so").
14721 shrext_cmds='$shrext_cmds'
14723 # Executable file suffix (normally "").
14726 # Additional compiler flags for building library objects.
14727 pic_flag=$lt_lt_prog_compiler_pic
14730 # What is the maximum length of a command?
14731 max_cmd_len=$lt_cv_sys_max_cmd_len
14733 # Does compiler simultaneously support -c and -o options?
14734 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14736 # Must we lock files when doing compilation ?
14737 need_locks=$lt_need_locks
14739 # Do we need the lib prefix for modules?
14740 need_lib_prefix=$need_lib_prefix
14742 # Do we need a version for libraries?
14743 need_version=$need_version
14745 # Whether dlopen is supported.
14746 dlopen_support=$enable_dlopen
14748 # Whether dlopen of programs is supported.
14749 dlopen_self=$enable_dlopen_self
14751 # Whether dlopen of statically linked programs is supported.
14752 dlopen_self_static=$enable_dlopen_self_static
14754 # Compiler flag to prevent dynamic linking.
14755 link_static_flag=$lt_lt_prog_compiler_static
14757 # Compiler flag to turn off builtin functions.
14758 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14760 # Compiler flag to allow reflexive dlopens.
14761 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14763 # Compiler flag to generate shared objects directly from archives.
14764 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14766 # Compiler flag to generate thread-safe objects.
14767 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14769 # Library versioning type.
14770 version_type=$version_type
14772 # Format of library name prefix.
14773 libname_spec=$lt_libname_spec
14775 # List of archive names. First name is the real one, the rest are links.
14776 # The last name is the one that the linker finds with -lNAME.
14777 library_names_spec=$lt_library_names_spec
14779 # The coded name of the library, if different from the real name.
14780 soname_spec=$lt_soname_spec
14782 # Commands used to build and install an old-style archive.
14784 old_archive_cmds=$lt_old_archive_cmds
14785 old_postinstall_cmds=$lt_old_postinstall_cmds
14786 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14788 # Create an old-style archive from a shared archive.
14789 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14791 # Create a temporary old-style archive to link instead of a shared archive.
14792 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14794 # Commands used to build and install a shared archive.
14795 archive_cmds=$lt_archive_cmds
14796 archive_expsym_cmds=$lt_archive_expsym_cmds
14797 postinstall_cmds=$lt_postinstall_cmds
14798 postuninstall_cmds=$lt_postuninstall_cmds
14800 # Commands used to build a loadable module (assumed same as above if empty)
14801 module_cmds=$lt_module_cmds
14802 module_expsym_cmds=$lt_module_expsym_cmds
14804 # Commands to strip libraries.
14805 old_striplib=$lt_old_striplib
14806 striplib=$lt_striplib
14808 # Dependencies to place before the objects being linked to create a
14810 predep_objects=$lt_predep_objects
14812 # Dependencies to place after the objects being linked to create a
14814 postdep_objects=$lt_postdep_objects
14816 # Dependencies to place before the objects being linked to create a
14818 predeps=$lt_predeps
14820 # Dependencies to place after the objects being linked to create a
14822 postdeps=$lt_postdeps
14824 # The library search path used internally by the compiler when linking
14825 # a shared library.
14826 compiler_lib_search_path=$lt_compiler_lib_search_path
14828 # Method to check whether dependent libraries are shared objects.
14829 deplibs_check_method=$lt_deplibs_check_method
14831 # Command to use when deplibs_check_method == file_magic.
14832 file_magic_cmd=$lt_file_magic_cmd
14834 # Flag that allows shared libraries with undefined symbols to be built.
14835 allow_undefined_flag=$lt_allow_undefined_flag
14837 # Flag that forces no undefined symbols.
14838 no_undefined_flag=$lt_no_undefined_flag
14840 # Commands used to finish a libtool library installation in a directory.
14841 finish_cmds=$lt_finish_cmds
14843 # Same as above, but a single script fragment to be evaled but not shown.
14844 finish_eval=$lt_finish_eval
14846 # Take the output of nm and produce a listing of raw symbols and C names.
14847 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14849 # Transform the output of nm in a proper C declaration
14850 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14852 # Transform the output of nm in a C name address pair
14853 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14855 # This is the shared library runtime path variable.
14856 runpath_var=$runpath_var
14858 # This is the shared library path variable.
14859 shlibpath_var=$shlibpath_var
14861 # Is shlibpath searched before the hard-coded library search path?
14862 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14864 # How to hardcode a shared library path into an executable.
14865 hardcode_action=$hardcode_action
14867 # Whether we should hardcode library paths into libraries.
14868 hardcode_into_libs=$hardcode_into_libs
14870 # Flag to hardcode \$libdir into a binary during linking.
14871 # This must work even if \$libdir does not exist.
14872 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14874 # If ld is used when linking, flag to hardcode \$libdir into
14875 # a binary during linking. This must work even if \$libdir does
14877 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14879 # Whether we need a single -rpath flag with a separated argument.
14880 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14882 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14883 # resulting binary.
14884 hardcode_direct=$hardcode_direct
14886 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14887 # resulting binary.
14888 hardcode_minus_L=$hardcode_minus_L
14890 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14891 # the resulting binary.
14892 hardcode_shlibpath_var=$hardcode_shlibpath_var
14894 # Set to yes if building a shared library automatically hardcodes DIR into the library
14895 # and all subsequent libraries and executables linked against it.
14896 hardcode_automatic=$hardcode_automatic
14898 # Variables whose values should be saved in libtool wrapper scripts and
14899 # restored at relink time.
14900 variables_saved_for_relink="$variables_saved_for_relink"
14902 # Whether libtool must link a program against all its dependency libraries.
14903 link_all_deplibs=$link_all_deplibs
14905 # Compile-time system search path for libraries
14906 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14908 # Run-time system search path for libraries
14909 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14911 # Fix the shell variable \$srcfile for the compiler.
14912 fix_srcfile_path="$fix_srcfile_path"
14914 # Set to yes if exported symbols are required.
14915 always_export_symbols=$always_export_symbols
14917 # The commands to list exported symbols.
14918 export_symbols_cmds=$lt_export_symbols_cmds
14920 # The commands to extract the exported symbol list from a shared archive.
14921 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14923 # Symbols that should not be listed in the preloaded symbols.
14924 exclude_expsyms=$lt_exclude_expsyms
14926 # Symbols that must always be exported.
14927 include_expsyms=$lt_include_expsyms
14929 # ### END LIBTOOL CONFIG
14936 cat <<\EOF >> "$cfgfile"
14938 # AIX sometimes has problems with the GCC collect2 program. For some
14939 # reason, if we set the COLLECT_NAMES environment variable, the problems
14940 # vanish in a puff of smoke.
14941 if test "X${COLLECT_NAMES+set}" != Xset; then
14943 export COLLECT_NAMES
14949 # We use sed instead of cat because bash on DJGPP gets confused if
14950 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14951 # text mode, it properly converts lines to CR/LF. This bash problem
14952 # is reportedly fixed, but why not run on old versions too?
14953 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14955 mv -f "$cfgfile" "$ofile" || \
14956 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14960 # If there is no Makefile yet, we rely on a make rule to execute
14961 # `config.status --recheck' to rerun these tests and create the
14962 # libtool script then.
14963 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14964 if test -f "$ltmain_in"; then
14965 test -f Makefile && make "$ltmain"
14971 ac_cpp='$CPP $CPPFLAGS'
14972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14979 # Check whether --with-tags or --without-tags was given.
14980 if test "${with_tags+set}" = set; then
14981 withval="$with_tags"
14982 tagnames="$withval"
14985 if test -f "$ltmain" && test -n "$tagnames"; then
14986 if test ! -f "${ofile}"; then
14987 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14988 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14991 if test -z "$LTCC"; then
14992 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14993 if test -z "$LTCC"; then
14994 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14995 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14997 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14998 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15002 # Extract list of available tagged configurations in $ofile.
15003 # Note that this assumes the entire list is on one line.
15004 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15006 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15007 for tagname in $tagnames; do
15009 # Check whether tagname contains only valid characters
15010 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15012 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15013 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15014 { (exit 1); exit 1; }; }
15018 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15020 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15021 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15022 { (exit 1); exit 1; }; }
15025 # Update the list of available tags.
15026 if test -n "$tagname"; then
15027 echo appending configuration tag "$tagname" to $ofile
15031 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15032 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15033 (test "X$CXX" != "Xg++"))) ; then
15035 ac_cpp='$CXXCPP $CPPFLAGS'
15036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15043 archive_cmds_need_lc_CXX=no
15044 allow_undefined_flag_CXX=
15045 always_export_symbols_CXX=no
15046 archive_expsym_cmds_CXX=
15047 export_dynamic_flag_spec_CXX=
15048 hardcode_direct_CXX=no
15049 hardcode_libdir_flag_spec_CXX=
15050 hardcode_libdir_flag_spec_ld_CXX=
15051 hardcode_libdir_separator_CXX=
15052 hardcode_minus_L_CXX=no
15053 hardcode_automatic_CXX=no
15055 module_expsym_cmds_CXX=
15056 link_all_deplibs_CXX=unknown
15057 old_archive_cmds_CXX=$old_archive_cmds
15058 no_undefined_flag_CXX=
15059 whole_archive_flag_spec_CXX=
15060 enable_shared_with_static_runtimes_CXX=no
15062 # Dependencies to place before and after the object being linked:
15063 predep_objects_CXX=
15064 postdep_objects_CXX=
15067 compiler_lib_search_path_CXX=
15069 # Source file extension for C++ test sources.
15072 # Object file extension for compiled C++ test sources.
15076 # Code to be used in simple compile tests
15077 lt_simple_compile_test_code="int some_variable = 0;\n"
15079 # Code to be used in simple link tests
15080 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15082 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15084 # If no C compiler was specified, use CC.
15087 # Allow CC to be a program name with arguments.
15091 # Allow CC to be a program name with arguments.
15096 lt_save_with_gnu_ld=$with_gnu_ld
15097 lt_save_path_LD=$lt_cv_path_LD
15098 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15099 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15101 unset lt_cv_prog_gnu_ld
15103 if test -n "${lt_cv_path_LDCXX+set}"; then
15104 lt_cv_path_LD=$lt_cv_path_LDCXX
15106 unset lt_cv_path_LD
15108 test -z "${LDCXX+set}" || LD=$LDCXX
15112 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15114 # We don't want -fno-exception wen compiling C++ code, so set the
15115 # no_builtin_flag separately
15116 if test "$GXX" = yes; then
15117 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15119 lt_prog_compiler_no_builtin_flag_CXX=
15122 if test "$GXX" = yes; then
15123 # Set up default GNU C++ configuration
15126 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15127 if test "${with_gnu_ld+set}" = set; then
15128 withval="$with_gnu_ld"
15129 test "$withval" = no || with_gnu_ld=yes
15134 if test "$GCC" = yes; then
15135 # Check if gcc -print-prog-name=ld gives a path.
15136 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15137 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15140 # gcc leaves a trailing carriage return which upsets mingw
15141 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15143 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15146 # Accept absolute paths.
15148 re_direlt='/[^/][^/]*/\.\./'
15149 # Canonicalize the pathname of ld
15150 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15151 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15152 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15154 test -z "$LD" && LD="$ac_prog"
15157 # If it fails, then pretend we aren't using GCC.
15161 # If it is relative, then search for the first ld in PATH.
15162 with_gnu_ld=unknown
15165 elif test "$with_gnu_ld" = yes; then
15166 echo "$as_me:$LINENO: checking for GNU ld" >&5
15167 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15169 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15170 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15172 if test "${lt_cv_path_LD+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 if test -z "$LD"; then
15176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15177 for ac_dir in $PATH; do
15179 test -z "$ac_dir" && ac_dir=.
15180 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15181 lt_cv_path_LD="$ac_dir/$ac_prog"
15182 # Check to see if the program is GNU ld. I'd rather use --version,
15183 # but apparently some GNU ld's only accept -v.
15184 # Break only if it was the GNU/non-GNU ld that we prefer.
15185 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15186 *GNU* | *'with BFD'*)
15187 test "$with_gnu_ld" != no && break
15190 test "$with_gnu_ld" != yes && break
15197 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15201 LD="$lt_cv_path_LD"
15202 if test -n "$LD"; then
15203 echo "$as_me:$LINENO: result: $LD" >&5
15204 echo "${ECHO_T}$LD" >&6
15206 echo "$as_me:$LINENO: result: no" >&5
15207 echo "${ECHO_T}no" >&6
15209 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15210 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15211 { (exit 1); exit 1; }; }
15212 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15213 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15214 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15215 echo $ECHO_N "(cached) $ECHO_C" >&6
15217 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15218 case `$LD -v 2>&1 </dev/null` in
15219 *GNU* | *'with BFD'*)
15220 lt_cv_prog_gnu_ld=yes
15223 lt_cv_prog_gnu_ld=no
15227 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15228 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15229 with_gnu_ld=$lt_cv_prog_gnu_ld
15233 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15234 # archiving commands below assume that GNU ld is being used.
15235 if test "$with_gnu_ld" = yes; then
15236 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15237 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'
15239 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15240 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15242 # If archive_cmds runs LD, not CC, wlarc should be empty
15243 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15244 # investigate it a little bit more. (MM)
15247 # ancient GNU ld didn't support --whole-archive et. al.
15248 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15249 grep 'no-whole-archive' > /dev/null; then
15250 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15252 whole_archive_flag_spec_CXX=
15258 # A generic and very simple default shared library creation
15259 # command for GNU C++ for the case where it uses the native
15260 # linker, instead of GNU ld. If possible, this setting should
15261 # overridden to take advantage of the native linker features on
15262 # the platform it is being used on.
15263 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15266 # Commands to make compiler produce verbose output that lists
15267 # what "hidden" libraries, object files and flags are used when
15268 # linking a shared library.
15269 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15277 # PORTME: fill in a description of your system's C++ link characteristics
15278 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15279 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15283 # FIXME: insert proper C++ library support
15287 if test "$host_cpu" = ia64; then
15288 # On IA64, the linker does run time linking by default, so we don't
15289 # have to do anything special.
15290 aix_use_runtimelinking=no
15291 exp_sym_flag='-Bexport'
15294 aix_use_runtimelinking=no
15296 # Test if we are trying to use run time linking or normal
15297 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15298 # need to do runtime linking.
15299 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15300 for ld_flag in $LDFLAGS; do
15303 aix_use_runtimelinking=yes
15310 exp_sym_flag='-bexport'
15311 no_entry_flag='-bnoentry'
15314 # When large executables or shared objects are built, AIX ld can
15315 # have problems creating the table of contents. If linking a library
15316 # or program results in "error TOC overflow" add -mminimal-toc to
15317 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15318 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15320 archive_cmds_CXX=''
15321 hardcode_direct_CXX=yes
15322 hardcode_libdir_separator_CXX=':'
15323 link_all_deplibs_CXX=yes
15325 if test "$GXX" = yes; then
15326 case $host_os in aix4.012|aix4.012.*)
15327 # We only want to do this on AIX 4.2 and lower, the check
15328 # below for broken collect2 doesn't work under 4.3+
15329 collect2name=`${CC} -print-prog-name=collect2`
15330 if test -f "$collect2name" && \
15331 strings "$collect2name" | grep resolve_lib_name >/dev/null
15333 # We have reworked collect2
15334 hardcode_direct_CXX=yes
15336 # We have old collect2
15337 hardcode_direct_CXX=unsupported
15338 # It fails to find uninstalled libraries when the uninstalled
15339 # path is not listed in the libpath. Setting hardcode_minus_L
15340 # to unsupported forces relinking
15341 hardcode_minus_L_CXX=yes
15342 hardcode_libdir_flag_spec_CXX='-L$libdir'
15343 hardcode_libdir_separator_CXX=
15346 shared_flag='-shared'
15349 if test "$host_cpu" = ia64; then
15350 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15351 # chokes on -Wl,-G. The following line is correct:
15354 if test "$aix_use_runtimelinking" = yes; then
15355 shared_flag='${wl}-G'
15357 shared_flag='${wl}-bM:SRE'
15362 # It seems that -bexpall does not export symbols beginning with
15363 # underscore (_), so it is better to generate a list of symbols to export.
15364 always_export_symbols_CXX=yes
15365 if test "$aix_use_runtimelinking" = yes; then
15366 # Warning - without using the other runtime loading flags (-brtl),
15367 # -berok will link without error, but may produce a broken library.
15368 allow_undefined_flag_CXX='-berok'
15369 # Determine the default libpath from the value encoded in an empty executable.
15370 cat >conftest.$ac_ext <<_ACEOF
15373 cat confdefs.h >>conftest.$ac_ext
15374 cat >>conftest.$ac_ext <<_ACEOF
15375 /* end confdefs.h. */
15385 rm -f conftest.$ac_objext conftest$ac_exeext
15386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15387 (eval $ac_link) 2>conftest.er1
15389 grep -v '^ *+' conftest.er1 >conftest.err
15391 cat conftest.err >&5
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } &&
15394 { ac_try='test -z "$ac_cxx_werror_flag"
15395 || test ! -s conftest.err'
15396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397 (eval $ac_try) 2>&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; } &&
15401 { ac_try='test -s conftest$ac_exeext'
15402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 (eval $ac_try) 2>&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }; then
15408 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15410 # Check for a 64-bit object if we didn't find anything.
15411 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; }
15414 echo "$as_me: failed program was:" >&5
15415 sed 's/^/| /' conftest.$ac_ext >&5
15418 rm -f conftest.err conftest.$ac_objext \
15419 conftest$ac_exeext conftest.$ac_ext
15420 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15422 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15424 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"
15426 if test "$host_cpu" = ia64; then
15427 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15428 allow_undefined_flag_CXX="-z nodefs"
15429 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"
15431 # Determine the default libpath from the value encoded in an empty executable.
15432 cat >conftest.$ac_ext <<_ACEOF
15435 cat confdefs.h >>conftest.$ac_ext
15436 cat >>conftest.$ac_ext <<_ACEOF
15437 /* end confdefs.h. */
15447 rm -f conftest.$ac_objext conftest$ac_exeext
15448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15449 (eval $ac_link) 2>conftest.er1
15451 grep -v '^ *+' conftest.er1 >conftest.err
15453 cat conftest.err >&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } &&
15456 { ac_try='test -z "$ac_cxx_werror_flag"
15457 || test ! -s conftest.err'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; } &&
15463 { ac_try='test -s conftest$ac_exeext'
15464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465 (eval $ac_try) 2>&5
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; }; then
15470 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15472 # Check for a 64-bit object if we didn't find anything.
15473 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; }
15476 echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15480 rm -f conftest.err conftest.$ac_objext \
15481 conftest$ac_exeext conftest.$ac_ext
15482 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15484 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15485 # Warning - without using the other run time loading flags,
15486 # -berok will link without error, but may produce a broken library.
15487 no_undefined_flag_CXX=' ${wl}-bernotok'
15488 allow_undefined_flag_CXX=' ${wl}-berok'
15489 # -bexpall does not export symbols beginning with underscore (_)
15490 always_export_symbols_CXX=yes
15491 # Exported symbols can be pulled into shared objects from archives
15492 whole_archive_flag_spec_CXX=' '
15493 archive_cmds_need_lc_CXX=yes
15494 # This is similar to how AIX traditionally builds it's shared libraries.
15495 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'
15500 case $cc_basename in
15502 # FIXME: insert proper C++ library support
15509 cygwin* | mingw* | pw32*)
15510 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15511 # as there is no search path for DLLs.
15512 hardcode_libdir_flag_spec_CXX='-L$libdir'
15513 allow_undefined_flag_CXX=unsupported
15514 always_export_symbols_CXX=no
15515 enable_shared_with_static_runtimes_CXX=yes
15517 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15518 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'
15519 # If the export-symbols file already is a .def file (1st line
15520 # is EXPORTS), use it as is; otherwise, prepend...
15521 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15522 cp $export_symbols $output_objdir/$soname.def;
15524 echo EXPORTS > $output_objdir/$soname.def;
15525 cat $export_symbols >> $output_objdir/$soname.def;
15527 $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'
15532 darwin* | rhapsody*)
15534 rhapsody* | darwin1.[012])
15535 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15538 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15539 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15541 case ${MACOSX_DEPLOYMENT_TARGET} in
15543 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15546 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15552 archive_cmds_need_lc_CXX=no
15553 hardcode_direct_CXX=no
15554 hardcode_automatic_CXX=yes
15555 hardcode_shlibpath_var_CXX=unsupported
15556 whole_archive_flag_spec_CXX=''
15557 link_all_deplibs_CXX=yes
15559 if test "$GXX" = yes ; then
15560 lt_int_apple_cc_single_mod=no
15561 output_verbose_link_cmd='echo'
15562 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15563 lt_int_apple_cc_single_mod=yes
15565 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15566 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15568 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'
15570 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15571 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15572 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15573 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}'
15575 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}'
15577 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}'
15579 case "$cc_basename" in
15581 output_verbose_link_cmd='echo'
15582 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'
15583 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15584 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15585 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}'
15586 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}'
15596 case $cc_basename in
15598 # FIXME: insert proper C++ library support
15602 # Green Hills C++ Compiler
15603 # FIXME: insert proper C++ library support
15607 # FIXME: insert proper C++ library support
15613 # C++ shared libraries reported to be fairly broken before switch to ELF
15617 archive_cmds_need_lc_CXX=no
15619 freebsd* | kfreebsd*-gnu)
15620 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15627 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15628 hardcode_libdir_separator_CXX=:
15629 export_dynamic_flag_spec_CXX='${wl}-E'
15630 hardcode_direct_CXX=yes
15631 hardcode_minus_L_CXX=yes # Not in the search PATH,
15632 # but as the default
15633 # location of the library.
15635 case $cc_basename in
15637 # FIXME: insert proper C++ library support
15641 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'
15642 # Commands to make compiler produce verbose output that lists
15643 # what "hidden" libraries, object files and flags are used when
15644 # linking a shared library.
15646 # There doesn't appear to be a way to prevent this compiler from
15647 # explicitly linking system object files so we need to strip them
15648 # from the output so that they don't get included in the library
15650 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'
15653 if test "$GXX" = yes; then
15654 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'
15656 # FIXME: insert proper C++ library support
15663 if test $with_gnu_ld = no; then
15664 case "$host_cpu" in
15666 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15667 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15668 hardcode_libdir_separator_CXX=:
15671 hardcode_libdir_flag_spec_CXX='-L$libdir'
15674 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15675 hardcode_libdir_separator_CXX=:
15676 export_dynamic_flag_spec_CXX='${wl}-E'
15680 case "$host_cpu" in
15682 hardcode_direct_CXX=no
15683 hardcode_shlibpath_var_CXX=no
15686 hardcode_direct_CXX=no
15687 hardcode_shlibpath_var_CXX=no
15688 hardcode_minus_L_CXX=yes # Not in the search PATH,
15689 # but as the default
15690 # location of the library.
15693 hardcode_direct_CXX=yes
15694 hardcode_minus_L_CXX=yes # Not in the search PATH,
15695 # but as the default
15696 # location of the library.
15700 case $cc_basename in
15702 # FIXME: insert proper C++ library support
15706 case "$host_cpu" in
15708 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15711 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15714 # Commands to make compiler produce verbose output that lists
15715 # what "hidden" libraries, object files and flags are used when
15716 # linking a shared library.
15718 # There doesn't appear to be a way to prevent this compiler from
15719 # explicitly linking system object files so we need to strip them
15720 # from the output so that they don't get included in the library
15722 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'
15725 if test "$GXX" = yes; then
15726 if test $with_gnu_ld = no; then
15727 case "$host_cpu" in
15729 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15732 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'
15737 # FIXME: insert proper C++ library support
15744 case $cc_basename in
15747 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'
15749 # Archives containing C++ object files must be created using
15750 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15751 # necessary to make sure instantiated templates are included
15753 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15756 if test "$GXX" = yes; then
15757 if test "$with_gnu_ld" = no; then
15758 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'
15760 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'
15763 link_all_deplibs_CXX=yes
15766 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15767 hardcode_libdir_separator_CXX=:
15770 case $cc_basename in
15772 # Kuck and Associates, Inc. (KAI) C++ Compiler
15774 # KCC will only create a shared library if the output file
15775 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15776 # to its proper name (with version) after linking.
15777 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'
15778 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'
15779 # Commands to make compiler produce verbose output that lists
15780 # what "hidden" libraries, object files and flags are used when
15781 # linking a shared library.
15783 # There doesn't appear to be a way to prevent this compiler from
15784 # explicitly linking system object files so we need to strip them
15785 # from the output so that they don't get included in the library
15787 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'
15789 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15790 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15792 # Archives containing C++ object files must be created using
15793 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15794 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15799 # version 8.0 and above of icpc choke on multiply defined symbols
15800 # if we add $predep_objects and $postdep_objects, however 7.1 and
15801 # earlier do not add the objects themselves.
15802 case `$CC -V 2>&1` in
15804 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15805 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'
15807 *) # Version 8.0 or newer
15808 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15809 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15812 archive_cmds_need_lc_CXX=no
15813 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15814 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15815 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15819 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15820 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'
15822 runpath_var=LD_RUN_PATH
15823 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15824 hardcode_libdir_separator_CXX=:
15826 # Commands to make compiler produce verbose output that lists
15827 # what "hidden" libraries, object files and flags are used when
15828 # linking a shared library.
15830 # There doesn't appear to be a way to prevent this compiler from
15831 # explicitly linking system object files so we need to strip them
15832 # from the output so that they don't get included in the library
15834 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'
15839 # FIXME: insert proper C++ library support
15843 # FIXME: insert proper C++ library support
15847 case $cc_basename in
15849 # FIXME: insert proper C++ library support
15853 # FIXME: insert proper C++ library support
15859 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15860 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15862 hardcode_libdir_flag_spec_CXX='-R$libdir'
15863 hardcode_direct_CXX=yes
15864 hardcode_shlibpath_var_CXX=no
15866 # Workaround some broken pre-1.5 toolchains
15867 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15870 # C++ shared libraries are fairly broken
15874 hardcode_direct_CXX=yes
15875 hardcode_shlibpath_var_CXX=no
15876 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15877 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15879 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15880 export_dynamic_flag_spec_CXX='${wl}-E'
15881 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15883 output_verbose_link_cmd='echo'
15886 case $cc_basename in
15888 # Kuck and Associates, Inc. (KAI) C++ Compiler
15890 # KCC will only create a shared library if the output file
15891 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15892 # to its proper name (with version) after linking.
15893 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'
15895 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15896 hardcode_libdir_separator_CXX=:
15898 # Archives containing C++ object files must be created using
15899 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15900 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15904 # Rational C++ 2.4.1
15905 # FIXME: insert proper C++ library support
15909 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15910 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'
15912 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15913 hardcode_libdir_separator_CXX=:
15915 # Commands to make compiler produce verbose output that lists
15916 # what "hidden" libraries, object files and flags are used when
15917 # linking a shared library.
15919 # There doesn't appear to be a way to prevent this compiler from
15920 # explicitly linking system object files so we need to strip them
15921 # from the output so that they don't get included in the library
15923 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'
15926 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15927 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15928 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'
15930 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15931 hardcode_libdir_separator_CXX=:
15933 # Commands to make compiler produce verbose output that lists
15934 # what "hidden" libraries, object files and flags are used when
15935 # linking a shared library.
15936 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15939 # FIXME: insert proper C++ library support
15946 case $cc_basename in
15948 # Kuck and Associates, Inc. (KAI) C++ Compiler
15950 # KCC will only create a shared library if the output file
15951 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15952 # to its proper name (with version) after linking.
15953 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'
15955 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15956 hardcode_libdir_separator_CXX=:
15958 # Archives containing C++ object files must be created using
15959 # the KAI C++ compiler.
15960 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15963 # Rational C++ 2.4.1
15964 # FIXME: insert proper C++ library support
15968 allow_undefined_flag_CXX=' -expect_unresolved \*'
15969 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'
15970 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15971 echo "-hidden">> $lib.exp~
15972 $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~
15975 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15976 hardcode_libdir_separator_CXX=:
15978 # Commands to make compiler produce verbose output that lists
15979 # what "hidden" libraries, object files and flags are used when
15980 # linking a shared library.
15982 # There doesn't appear to be a way to prevent this compiler from
15983 # explicitly linking system object files so we need to strip them
15984 # from the output so that they don't get included in the library
15986 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'
15989 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15990 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15991 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'
15993 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15994 hardcode_libdir_separator_CXX=:
15996 # Commands to make compiler produce verbose output that lists
15997 # what "hidden" libraries, object files and flags are used when
15998 # linking a shared library.
15999 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16002 # FIXME: insert proper C++ library support
16009 # FIXME: insert proper C++ library support
16013 archive_cmds_need_lc_CXX=no
16014 case $cc_basename in
16016 # FIXME: insert proper C++ library support
16020 # FIXME: insert proper C++ library support
16026 case $cc_basename in
16029 # FIXME: insert proper C++ library support
16034 # FIXME: insert proper C++ library support
16038 # FIXME: insert proper C++ library support
16044 case $cc_basename in
16046 # Sun C++ 4.2, 5.x and Centerline C++
16047 no_undefined_flag_CXX=' -zdefs'
16048 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16049 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16050 $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'
16052 hardcode_libdir_flag_spec_CXX='-R$libdir'
16053 hardcode_shlibpath_var_CXX=no
16055 solaris2.0-5 | solaris2.0-5.*) ;;
16057 # The C++ compiler is used as linker so we must use $wl
16058 # flag to pass the commands to the underlying system
16060 # Supported since Solaris 2.6 (maybe 2.5.1?)
16061 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16064 link_all_deplibs_CXX=yes
16066 # Commands to make compiler produce verbose output that lists
16067 # what "hidden" libraries, object files and flags are used when
16068 # linking a shared library.
16070 # There doesn't appear to be a way to prevent this compiler from
16071 # explicitly linking system object files so we need to strip them
16072 # from the output so that they don't get included in the library
16074 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'
16076 # Archives containing C++ object files must be created using
16077 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16078 # necessary to make sure instantiated templates are included
16080 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16083 # Green Hills C++ Compiler
16084 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16086 # The C++ compiler must be used to create the archive.
16087 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16090 # GNU C++ compiler with Solaris linker
16091 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16092 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16093 if $CC --version | grep -v '^2\.7' > /dev/null; then
16094 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16095 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16096 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16098 # Commands to make compiler produce verbose output that lists
16099 # what "hidden" libraries, object files and flags are used when
16100 # linking a shared library.
16101 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16103 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16105 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16106 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16107 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16109 # Commands to make compiler produce verbose output that lists
16110 # what "hidden" libraries, object files and flags are used when
16111 # linking a shared library.
16112 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16115 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16120 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16121 archive_cmds_need_lc_CXX=no
16124 case $cc_basename in
16126 # NonStop-UX NCC 3.20
16127 # FIXME: insert proper C++ library support
16131 # FIXME: insert proper C++ library support
16137 # FIXME: insert proper C++ library support
16141 # FIXME: insert proper C++ library support
16145 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16146 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16147 test "$ld_shlibs_CXX" = no && can_build_shared=no
16153 cat > conftest.$ac_ext <<EOF
16157 Foo (void) { a = 0; }
16163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16164 (eval $ac_compile) 2>&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; then
16168 # Parse the compiler output and extract the necessary
16169 # objects, libraries and library flags.
16171 # Sentinel used to keep track of whether or not we are before
16172 # the conftest object file.
16173 pre_test_object_deps_done=no
16175 # The `*' in the case matches for architectures that use `case' in
16176 # $output_verbose_cmd can trigger glob expansion during the loop
16177 # eval without this substitution.
16178 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16180 for p in `eval $output_verbose_link_cmd`; do
16184 # Some compilers place space between "-{L,R}" and the path.
16185 # Remove the space.
16186 if test $p = "-L" \
16187 || test $p = "-R"; then
16194 if test "$pre_test_object_deps_done" = no; then
16197 # Internal compiler library paths should come after those
16198 # provided the user. The postdeps already come after the
16199 # user supplied libs so there is no need to process them.
16200 if test -z "$compiler_lib_search_path_CXX"; then
16201 compiler_lib_search_path_CXX="${prev}${p}"
16203 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16206 # The "-l" case would never come before the object being
16207 # linked, so don't bother handling this case.
16210 if test -z "$postdeps_CXX"; then
16211 postdeps_CXX="${prev}${p}"
16213 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16219 # This assumes that the test object file only shows up
16220 # once in the compiler output.
16221 if test "$p" = "conftest.$objext"; then
16222 pre_test_object_deps_done=yes
16226 if test "$pre_test_object_deps_done" = no; then
16227 if test -z "$predep_objects_CXX"; then
16228 predep_objects_CXX="$p"
16230 predep_objects_CXX="$predep_objects_CXX $p"
16233 if test -z "$postdep_objects_CXX"; then
16234 postdep_objects_CXX="$p"
16236 postdep_objects_CXX="$postdep_objects_CXX $p"
16241 *) ;; # Ignore the rest.
16249 echo "libtool.m4: error: problem compiling CXX test program"
16252 $rm -f confest.$objext
16254 case " $postdeps_CXX " in
16255 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16258 lt_prog_compiler_wl_CXX=
16259 lt_prog_compiler_pic_CXX=
16260 lt_prog_compiler_static_CXX=
16262 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16263 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16265 # C++ specific cases for pic, static, wl, etc.
16266 if test "$GXX" = yes; then
16267 lt_prog_compiler_wl_CXX='-Wl,'
16268 lt_prog_compiler_static_CXX='-static'
16272 # All AIX code is PIC.
16273 if test "$host_cpu" = ia64; then
16274 # AIX 5 now supports IA64 processor
16275 lt_prog_compiler_static_CXX='-Bstatic'
16279 # FIXME: we need at least 68020 code to build shared libraries, but
16280 # adding the `-m68020' flag to GCC prevents building anything better,
16282 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16284 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16285 # PIC is the default for these OSes.
16287 mingw* | os2* | pw32*)
16288 # This hack is so that the source file can tell whether it is being
16289 # built for inclusion in a dll (and should export symbols for example).
16290 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16292 darwin* | rhapsody*)
16293 # PIC is the default on this platform
16294 # Common symbols not allowed in MH_DYLIB files
16295 lt_prog_compiler_pic_CXX='-fno-common'
16298 # DJGPP does not support shared libraries at all
16299 lt_prog_compiler_pic_CXX=
16302 if test -d /usr/nec; then
16303 lt_prog_compiler_pic_CXX=-Kconform_pic
16307 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16308 # not for PA HP-UX.
16309 case "$host_cpu" in
16313 lt_prog_compiler_pic_CXX='-fPIC'
16318 lt_prog_compiler_pic_CXX='-fPIC'
16324 # All AIX code is PIC.
16325 if test "$host_cpu" = ia64; then
16326 # AIX 5 now supports IA64 processor
16327 lt_prog_compiler_static_CXX='-Bstatic'
16329 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16333 case $cc_basename in
16335 # Green Hills C++ Compiler
16336 # _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"
16341 # PIC is the default on this platform
16342 # Common symbols not allowed in MH_DYLIB files
16343 case "$cc_basename" in
16345 lt_prog_compiler_pic_CXX='-qnocommon'
16346 lt_prog_compiler_wl_CXX='-Wl,'
16351 case $cc_basename in
16353 lt_prog_compiler_pic_CXX='-KPIC'
16356 # Green Hills C++ Compiler
16357 lt_prog_compiler_pic_CXX='-pic'
16363 freebsd* | kfreebsd*-gnu)
16364 # FreeBSD uses GNU C++
16366 hpux9* | hpux10* | hpux11*)
16367 case $cc_basename in
16369 lt_prog_compiler_wl_CXX='-Wl,'
16370 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16371 if test "$host_cpu" != ia64; then
16372 lt_prog_compiler_pic_CXX='+Z'
16376 lt_prog_compiler_wl_CXX='-Wl,'
16377 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16378 case "$host_cpu" in
16383 lt_prog_compiler_pic_CXX='+Z'
16391 irix5* | irix6* | nonstopux*)
16392 case $cc_basename in
16394 lt_prog_compiler_wl_CXX='-Wl,'
16395 lt_prog_compiler_static_CXX='-non_shared'
16396 # CC pic flag -KPIC is the default.
16403 case $cc_basename in
16406 lt_prog_compiler_wl_CXX='--backend -Wl,'
16407 lt_prog_compiler_pic_CXX='-fPIC'
16411 lt_prog_compiler_wl_CXX='-Wl,'
16412 lt_prog_compiler_pic_CXX='-KPIC'
16413 lt_prog_compiler_static_CXX='-static'
16417 # Make sure the PIC flag is empty. It appears that all Alpha
16418 # Linux and Compaq Tru64 Unix objects are PIC.
16419 lt_prog_compiler_pic_CXX=
16420 lt_prog_compiler_static_CXX='-non_shared'
16431 case $cc_basename in
16433 lt_prog_compiler_pic_CXX='-W c,exportall'
16441 osf3* | osf4* | osf5*)
16442 case $cc_basename in
16444 lt_prog_compiler_wl_CXX='--backend -Wl,'
16447 # Rational C++ 2.4.1
16448 lt_prog_compiler_pic_CXX='-pic'
16451 # Digital/Compaq C++
16452 lt_prog_compiler_wl_CXX='-Wl,'
16453 # Make sure the PIC flag is empty. It appears that all Alpha
16454 # Linux and Compaq Tru64 Unix objects are PIC.
16455 lt_prog_compiler_pic_CXX=
16456 lt_prog_compiler_static_CXX='-non_shared'
16465 case $cc_basename in
16467 lt_prog_compiler_pic_CXX='-fPIC'
16474 case $cc_basename in
16476 # Sun C++ 4.2, 5.x and Centerline C++
16477 lt_prog_compiler_pic_CXX='-KPIC'
16478 lt_prog_compiler_static_CXX='-Bstatic'
16479 lt_prog_compiler_wl_CXX='-Qoption ld '
16482 # Green Hills C++ Compiler
16483 lt_prog_compiler_pic_CXX='-PIC'
16490 case $cc_basename in
16493 lt_prog_compiler_pic_CXX='-pic'
16494 lt_prog_compiler_static_CXX='-Bstatic'
16498 lt_prog_compiler_pic_CXX='-pic'
16505 case $cc_basename in
16507 # NonStop-UX NCC 3.20
16508 lt_prog_compiler_pic_CXX='-KPIC'
16519 lt_prog_compiler_can_build_shared_CXX=no
16524 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16525 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16528 # Check to make sure the PIC flag actually works.
16530 if test -n "$lt_prog_compiler_pic_CXX"; then
16532 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16533 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16534 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16535 echo $ECHO_N "(cached) $ECHO_C" >&6
16537 lt_prog_compiler_pic_works_CXX=no
16538 ac_outfile=conftest.$ac_objext
16539 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16540 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16541 # Insert the option either (1) after the last *FLAGS variable, or
16542 # (2) before a word containing "conftest.", or (3) at the end.
16543 # Note that $ac_compile itself does not contain backslashes and begins
16544 # with a dollar sign (not a hyphen), so the echo should work correctly.
16545 # The option is referenced via a variable to avoid confusing sed.
16546 lt_compile=`echo "$ac_compile" | $SED \
16547 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16549 -e 's:$: $lt_compiler_flag:'`
16550 (eval echo "\"\$as_me:16550: $lt_compile\"" >&5)
16551 (eval "$lt_compile" 2>conftest.err)
16553 cat conftest.err >&5
16554 echo "$as_me:16554: \$? = $ac_status" >&5
16555 if (exit $ac_status) && test -s "$ac_outfile"; then
16556 # The compiler can only warn and ignore the option if not recognized
16557 # So say no if there are warnings
16558 if test ! -s conftest.err; then
16559 lt_prog_compiler_pic_works_CXX=yes
16565 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16566 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16568 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16569 case $lt_prog_compiler_pic_CXX in
16571 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16574 lt_prog_compiler_pic_CXX=
16575 lt_prog_compiler_can_build_shared_CXX=no
16580 # For platforms which do not support PIC, -DPIC is meaningless:
16582 lt_prog_compiler_pic_CXX=
16585 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16589 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16590 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16591 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16592 echo $ECHO_N "(cached) $ECHO_C" >&6
16594 lt_cv_prog_compiler_c_o_CXX=no
16595 $rm -r conftest 2>/dev/null
16599 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16601 lt_compiler_flag="-o out/conftest2.$ac_objext"
16602 # Insert the option either (1) after the last *FLAGS variable, or
16603 # (2) before a word containing "conftest.", or (3) at the end.
16604 # Note that $ac_compile itself does not contain backslashes and begins
16605 # with a dollar sign (not a hyphen), so the echo should work correctly.
16606 lt_compile=`echo "$ac_compile" | $SED \
16607 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16609 -e 's:$: $lt_compiler_flag:'`
16610 (eval echo "\"\$as_me:16610: $lt_compile\"" >&5)
16611 (eval "$lt_compile" 2>out/conftest.err)
16613 cat out/conftest.err >&5
16614 echo "$as_me:16614: \$? = $ac_status" >&5
16615 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16617 # The compiler can only warn and ignore the option if not recognized
16618 # So say no if there are warnings
16619 if test ! -s out/conftest.err; then
16620 lt_cv_prog_compiler_c_o_CXX=yes
16625 # SGI C++ compiler will create directory out/ii_files/ for
16626 # template instantiation
16627 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16628 $rm out/* && rmdir out
16634 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16635 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16638 hard_links="nottested"
16639 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16640 # do not overwrite the value of need_locks provided by the user
16641 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16642 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16645 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16647 ln conftest.a conftest.b 2>&5 || hard_links=no
16648 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16649 echo "$as_me:$LINENO: result: $hard_links" >&5
16650 echo "${ECHO_T}$hard_links" >&6
16651 if test "$hard_links" = no; then
16652 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16653 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16660 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16661 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16663 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16666 # If we're using GNU nm, then we don't want the "-C" option.
16667 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16668 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16669 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'
16671 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'
16675 export_symbols_cmds_CXX="$ltdll_cmds"
16678 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16681 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16685 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16686 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16687 test "$ld_shlibs_CXX" = no && can_build_shared=no
16689 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16690 if test "$GCC" = yes; then
16691 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16695 # Do we need to explicitly link libc?
16697 case "x$archive_cmds_need_lc_CXX" in
16699 # Assume -lc should be added
16700 archive_cmds_need_lc_CXX=yes
16702 if test "$enable_shared" = yes && test "$GCC" = yes; then
16703 case $archive_cmds_CXX in
16705 # FIXME: we may have to deal with multi-command sequences.
16708 # Test whether the compiler implicitly links with -lc since on some
16709 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16710 # to ld, don't add -lc before -lgcc.
16711 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16712 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16714 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16717 (eval $ac_compile) 2>&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } 2>conftest.err; then
16723 libobjs=conftest.$ac_objext
16725 wl=$lt_prog_compiler_wl_CXX
16731 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16732 allow_undefined_flag_CXX=
16733 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16734 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); }
16739 archive_cmds_need_lc_CXX=no
16741 archive_cmds_need_lc_CXX=yes
16743 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16745 cat conftest.err 1>&5
16748 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16749 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16756 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16757 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16758 library_names_spec=
16759 libname_spec='lib$name'
16763 postuninstall_cmds=
16767 shlibpath_overrides_runpath=unknown
16769 dynamic_linker="$host_os ld.so"
16770 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16771 if test "$GCC" = yes; then
16772 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16773 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16774 # if the path contains ";" then we assume it to be the separator
16775 # otherwise default to the standard path separator (i.e. ":") - it is
16776 # assumed that no part of a normal pathname contains ";" but that should
16777 # okay in the real world where ";" in dirpaths is itself problematic.
16778 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16780 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16783 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16785 need_lib_prefix=unknown
16786 hardcode_into_libs=no
16788 # when you set need_version to no, make sure it does not cause -set_version
16789 # flags to be left without arguments
16790 need_version=unknown
16795 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16796 shlibpath_var=LIBPATH
16798 # AIX 3 has no versioning support, so we append a major version to the name.
16799 soname_spec='${libname}${release}${shared_ext}$major'
16806 hardcode_into_libs=yes
16807 if test "$host_cpu" = ia64; then
16808 # AIX 5 supports IA64
16809 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16810 shlibpath_var=LD_LIBRARY_PATH
16812 # With GCC up to 2.95.x, collect2 would create an import file
16813 # for dependence libraries. The import file would start with
16814 # the line `#! .'. This would cause the generated library to
16815 # depend on `.', always an invalid library. This was fixed in
16816 # development snapshots of GCC prior to 3.0.
16818 aix4 | aix4.[01] | aix4.[01].*)
16819 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16821 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16824 can_build_shared=no
16828 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16829 # soname into executable. Probably we can add versioning support to
16830 # collect2, so additional links can be useful in future.
16831 if test "$aix_use_runtimelinking" = yes; then
16832 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16833 # instead of lib<name>.a to let people know that these are not
16834 # typical AIX shared libraries.
16835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16837 # We preserve .a as extension for shared libraries through AIX4.2
16838 # and later when we are not doing run time linking.
16839 library_names_spec='${libname}${release}.a $libname.a'
16840 soname_spec='${libname}${release}${shared_ext}$major'
16842 shlibpath_var=LIBPATH
16847 library_names_spec='$libname.ixlibrary $libname.a'
16848 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16849 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'
16853 library_names_spec='${libname}${shared_ext}'
16854 dynamic_linker="$host_os ld.so"
16855 shlibpath_var=LIBRARY_PATH
16861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16862 soname_spec='${libname}${release}${shared_ext}$major'
16863 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16864 shlibpath_var=LD_LIBRARY_PATH
16865 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16866 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16867 # the default ld.so.conf also contains /usr/contrib/lib and
16868 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16869 # libtool to hard-code these into programs
16872 cygwin* | mingw* | pw32*)
16873 version_type=windows
16878 case $GCC,$host_os in
16879 yes,cygwin* | yes,mingw* | yes,pw32*)
16880 library_names_spec='$libname.dll.a'
16881 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16882 postinstall_cmds='base_file=`basename \${file}`~
16883 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16884 dldir=$destdir/`dirname \$dlpath`~
16885 test -d \$dldir || mkdir -p \$dldir~
16886 $install_prog $dir/$dlname \$dldir/$dlname'
16887 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16888 dlpath=$dir/\$dldll~
16890 shlibpath_overrides_runpath=yes
16894 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16895 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16896 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16899 # MinGW DLLs use traditional 'lib' prefix
16900 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16901 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16902 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16903 # It is most probably a Windows format PATH printed by
16904 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16905 # path with ; separators, and with drive letters. We can handle the
16906 # drive letters (cygwin fileutils understands them), so leave them,
16907 # especially as we might pass files found there to a mingw objdump,
16908 # which wouldn't understand a cygwinified path. Ahh.
16909 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16911 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16915 # pw32 DLLs use 'pw' prefix rather than 'lib'
16916 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16922 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16925 dynamic_linker='Win32 ld.exe'
16926 # FIXME: first we should search . and the directory the executable is in
16930 darwin* | rhapsody*)
16931 dynamic_linker="$host_os dyld"
16932 version_type=darwin
16935 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16936 soname_spec='${libname}${release}${major}$shared_ext'
16937 shlibpath_overrides_runpath=yes
16938 shlibpath_var=DYLD_LIBRARY_PATH
16939 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16940 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16941 if test "$GCC" = yes; then
16942 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"`
16944 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16946 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16954 soname_spec='${libname}${release}${shared_ext}$major'
16955 shlibpath_var=LD_LIBRARY_PATH
16966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16967 soname_spec='${libname}${release}${shared_ext}$major'
16968 shlibpath_var=LD_LIBRARY_PATH
16969 shlibpath_overrides_runpath=no
16970 hardcode_into_libs=yes
16971 dynamic_linker='GNU ld.so'
16975 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16976 version_type=freebsd-$objformat
16977 case $version_type in
16979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16984 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16988 shlibpath_var=LD_LIBRARY_PATH
16991 shlibpath_overrides_runpath=yes
16993 freebsd3.01* | freebsdelf3.01*)
16994 shlibpath_overrides_runpath=yes
16995 hardcode_into_libs=yes
16998 shlibpath_overrides_runpath=no
16999 hardcode_into_libs=yes
17008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17009 soname_spec='${libname}${release}${shared_ext}$major'
17010 shlibpath_var=LD_LIBRARY_PATH
17011 hardcode_into_libs=yes
17014 hpux9* | hpux10* | hpux11*)
17015 # Give a soname corresponding to the major version so that dld.sl refuses to
17016 # link against other versions.
17020 case "$host_cpu" in
17023 hardcode_into_libs=yes
17024 dynamic_linker="$host_os dld.so"
17025 shlibpath_var=LD_LIBRARY_PATH
17026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17028 soname_spec='${libname}${release}${shared_ext}$major'
17029 if test "X$HPUX_IA64_MODE" = X32; then
17030 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17032 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17038 hardcode_into_libs=yes
17039 dynamic_linker="$host_os dld.sl"
17040 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17043 soname_spec='${libname}${release}${shared_ext}$major'
17044 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17045 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17049 dynamic_linker="$host_os dld.sl"
17050 shlibpath_var=SHLIB_PATH
17051 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17053 soname_spec='${libname}${release}${shared_ext}$major'
17056 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17057 postinstall_cmds='chmod 555 $lib'
17060 irix5* | irix6* | nonstopux*)
17062 nonstopux*) version_type=nonstopux ;;
17064 if test "$lt_cv_prog_gnu_ld" = yes; then
17072 soname_spec='${libname}${release}${shared_ext}$major'
17073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17075 irix5* | nonstopux*)
17076 libsuff= shlibsuff=
17079 case $LD in # libtool.m4 will add one of these switches to LD
17080 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17081 libsuff= shlibsuff= libmagic=32-bit;;
17082 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17083 libsuff=32 shlibsuff=N32 libmagic=N32;;
17084 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17085 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17086 *) libsuff= shlibsuff= libmagic=never-match;;
17090 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17091 shlibpath_overrides_runpath=no
17092 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17093 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17094 hardcode_into_libs=yes
17097 # No shared lib support for Linux oldld, aout, or coff.
17098 linux*oldld* | linux*aout* | linux*coff*)
17102 # This must be Linux ELF.
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17108 soname_spec='${libname}${release}${shared_ext}$major'
17109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17110 shlibpath_var=LD_LIBRARY_PATH
17111 shlibpath_overrides_runpath=no
17112 # This implies no fast_install, which is unacceptable.
17113 # Some rework will be needed to allow for fast_install
17114 # before this can be enabled.
17115 hardcode_into_libs=yes
17117 # Append ld.so.conf contents to the search path
17118 if test -f /etc/ld.so.conf; then
17119 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17120 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17123 # We used to test for /lib/ld.so.1 and disable shared libraries on
17124 # powerpc, because MkLinux only supported shared libraries with the
17125 # GNU dynamic linker. Since this was broken with cross compilers,
17126 # most powerpc-linux boxes support dynamic linking these days and
17127 # people can always --disable-shared, the test was removed, and we
17128 # assume the GNU/Linux dynamic linker is in use.
17129 dynamic_linker='GNU/Linux ld.so'
17136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17137 soname_spec='${libname}${release}${shared_ext}$major'
17138 shlibpath_var=LD_LIBRARY_PATH
17139 shlibpath_overrides_runpath=no
17140 hardcode_into_libs=yes
17141 dynamic_linker='GNU ld.so'
17148 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17151 dynamic_linker='NetBSD (a.out) ld.so'
17153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17154 soname_spec='${libname}${release}${shared_ext}$major'
17155 dynamic_linker='NetBSD ld.elf_so'
17157 shlibpath_var=LD_LIBRARY_PATH
17158 shlibpath_overrides_runpath=yes
17159 hardcode_into_libs=yes
17164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17165 shlibpath_var=LD_LIBRARY_PATH
17166 shlibpath_overrides_runpath=yes
17173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17174 soname_spec='${libname}${release}${shared_ext}$major'
17175 shlibpath_var=LD_LIBRARY_PATH
17176 shlibpath_overrides_runpath=yes
17183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17185 shlibpath_var=LD_LIBRARY_PATH
17186 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17188 openbsd2.[89] | openbsd2.[89].*)
17189 shlibpath_overrides_runpath=no
17192 shlibpath_overrides_runpath=yes
17196 shlibpath_overrides_runpath=yes
17201 libname_spec='$name'
17204 library_names_spec='$libname${shared_ext} $libname.a'
17205 dynamic_linker='OS/2 ld.exe'
17206 shlibpath_var=LIBPATH
17209 osf3* | osf4* | osf5*)
17213 soname_spec='${libname}${release}${shared_ext}$major'
17214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17215 shlibpath_var=LD_LIBRARY_PATH
17216 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17217 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17222 soname_spec='${libname}${release}${shared_ext}$major'
17223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17224 shlibpath_var=LD_LIBRARY_PATH
17231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17232 soname_spec='${libname}${release}${shared_ext}$major'
17233 shlibpath_var=LD_LIBRARY_PATH
17234 shlibpath_overrides_runpath=yes
17235 hardcode_into_libs=yes
17236 # ldd complains unless libraries are executable
17237 postinstall_cmds='chmod +x $lib'
17242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17243 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17244 shlibpath_var=LD_LIBRARY_PATH
17245 shlibpath_overrides_runpath=yes
17246 if test "$with_gnu_ld" = yes; then
17252 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17255 soname_spec='${libname}${release}${shared_ext}$major'
17256 shlibpath_var=LD_LIBRARY_PATH
17257 case $host_vendor in
17259 shlibpath_overrides_runpath=no
17261 export_dynamic_flag_spec='${wl}-Blargedynsym'
17262 runpath_var=LD_RUN_PATH
17270 shlibpath_overrides_runpath=no
17271 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17277 if test -d /usr/nec ;then
17279 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17280 soname_spec='$libname${shared_ext}.$major'
17281 shlibpath_var=LD_LIBRARY_PATH
17287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17288 soname_spec='${libname}${release}${shared_ext}$major'
17289 shlibpath_var=LD_LIBRARY_PATH
17296 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17297 echo "${ECHO_T}$dynamic_linker" >&6
17298 test "$dynamic_linker" = no && can_build_shared=no
17300 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17301 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17302 hardcode_action_CXX=
17303 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17304 test -n "$runpath_var_CXX" || \
17305 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17307 # We can hardcode non-existant directories.
17308 if test "$hardcode_direct_CXX" != no &&
17309 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17310 # have to relink, otherwise we might link with an installed library
17311 # when we should be linking with a yet-to-be-installed one
17312 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17313 test "$hardcode_minus_L_CXX" != no; then
17314 # Linking always hardcodes the temporary library directory.
17315 hardcode_action_CXX=relink
17317 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17318 hardcode_action_CXX=immediate
17321 # We cannot hardcode anything, or else we can only hardcode existing
17323 hardcode_action_CXX=unsupported
17325 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17326 echo "${ECHO_T}$hardcode_action_CXX" >&6
17328 if test "$hardcode_action_CXX" = relink; then
17329 # Fast installation is not supported
17330 enable_fast_install=no
17331 elif test "$shlibpath_overrides_runpath" = yes ||
17332 test "$enable_shared" = no; then
17333 # Fast installation is not necessary
17334 enable_fast_install=needless
17339 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17340 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17341 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17342 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17343 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17344 echo "$as_me:$LINENO: result: yes" >&5
17345 echo "${ECHO_T}yes" >&6
17347 # FIXME - insert some real tests, host_os isn't really good enough
17350 if test -n "$STRIP" ; then
17351 striplib="$STRIP -x"
17352 echo "$as_me:$LINENO: result: yes" >&5
17353 echo "${ECHO_T}yes" >&6
17355 echo "$as_me:$LINENO: result: no" >&5
17356 echo "${ECHO_T}no" >&6
17360 echo "$as_me:$LINENO: result: no" >&5
17361 echo "${ECHO_T}no" >&6
17366 if test "x$enable_dlopen" != xyes; then
17367 enable_dlopen=unknown
17368 enable_dlopen_self=unknown
17369 enable_dlopen_self_static=unknown
17376 lt_cv_dlopen="load_add_on"
17378 lt_cv_dlopen_self=yes
17382 lt_cv_dlopen="LoadLibrary"
17387 lt_cv_dlopen="dlopen"
17392 # if libdl is installed we need to link against it
17393 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17394 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17395 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17398 ac_check_lib_save_LIBS=$LIBS
17400 cat >conftest.$ac_ext <<_ACEOF
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h. */
17407 /* Override any gcc2 internal prototype to avoid an error. */
17411 /* We use char because int might match the return type of a gcc2
17412 builtin and then its argument prototype would still apply. */
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17424 (eval $ac_link) 2>conftest.er1
17426 grep -v '^ *+' conftest.er1 >conftest.err
17428 cat conftest.err >&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); } &&
17431 { ac_try='test -z "$ac_cxx_werror_flag"
17432 || test ! -s conftest.err'
17433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434 (eval $ac_try) 2>&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; } &&
17438 { ac_try='test -s conftest$ac_exeext'
17439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17440 (eval $ac_try) 2>&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; }; then
17444 ac_cv_lib_dl_dlopen=yes
17446 echo "$as_me: failed program was:" >&5
17447 sed 's/^/| /' conftest.$ac_ext >&5
17449 ac_cv_lib_dl_dlopen=no
17451 rm -f conftest.err conftest.$ac_objext \
17452 conftest$ac_exeext conftest.$ac_ext
17453 LIBS=$ac_check_lib_save_LIBS
17455 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17456 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17457 if test $ac_cv_lib_dl_dlopen = yes; then
17458 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17461 lt_cv_dlopen="dyld"
17463 lt_cv_dlopen_self=yes
17470 echo "$as_me:$LINENO: checking for shl_load" >&5
17471 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17472 if test "${ac_cv_func_shl_load+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17475 cat >conftest.$ac_ext <<_ACEOF
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h. */
17481 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17483 #define shl_load innocuous_shl_load
17485 /* System header to define __stub macros and hopefully few prototypes,
17486 which can conflict with char shl_load (); below.
17487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17488 <limits.h> exists even on freestanding compilers. */
17491 # include <limits.h>
17493 # include <assert.h>
17498 /* Override any gcc2 internal prototype to avoid an error. */
17503 /* We use char because int might match the return type of a gcc2
17504 builtin and then its argument prototype would still apply. */
17506 /* The GNU C library defines this for functions which it implements
17507 to always fail with ENOSYS. Some functions are actually named
17508 something starting with __ and the normal name is an alias. */
17509 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17512 char (*f) () = shl_load;
17521 return f != shl_load;
17526 rm -f conftest.$ac_objext conftest$ac_exeext
17527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17528 (eval $ac_link) 2>conftest.er1
17530 grep -v '^ *+' conftest.er1 >conftest.err
17532 cat conftest.err >&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } &&
17535 { ac_try='test -z "$ac_cxx_werror_flag"
17536 || test ! -s conftest.err'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; } &&
17542 { ac_try='test -s conftest$ac_exeext'
17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; }; then
17548 ac_cv_func_shl_load=yes
17550 echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17553 ac_cv_func_shl_load=no
17555 rm -f conftest.err conftest.$ac_objext \
17556 conftest$ac_exeext conftest.$ac_ext
17558 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17559 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17560 if test $ac_cv_func_shl_load = yes; then
17561 lt_cv_dlopen="shl_load"
17563 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17564 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17565 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17566 echo $ECHO_N "(cached) $ECHO_C" >&6
17568 ac_check_lib_save_LIBS=$LIBS
17570 cat >conftest.$ac_ext <<_ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h. */
17577 /* Override any gcc2 internal prototype to avoid an error. */
17581 /* We use char because int might match the return type of a gcc2
17582 builtin and then its argument prototype would still apply. */
17592 rm -f conftest.$ac_objext conftest$ac_exeext
17593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17594 (eval $ac_link) 2>conftest.er1
17596 grep -v '^ *+' conftest.er1 >conftest.err
17598 cat conftest.err >&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } &&
17601 { ac_try='test -z "$ac_cxx_werror_flag"
17602 || test ! -s conftest.err'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; } &&
17608 { ac_try='test -s conftest$ac_exeext'
17609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610 (eval $ac_try) 2>&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; }; then
17614 ac_cv_lib_dld_shl_load=yes
17616 echo "$as_me: failed program was:" >&5
17617 sed 's/^/| /' conftest.$ac_ext >&5
17619 ac_cv_lib_dld_shl_load=no
17621 rm -f conftest.err conftest.$ac_objext \
17622 conftest$ac_exeext conftest.$ac_ext
17623 LIBS=$ac_check_lib_save_LIBS
17625 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17626 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17627 if test $ac_cv_lib_dld_shl_load = yes; then
17628 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17630 echo "$as_me:$LINENO: checking for dlopen" >&5
17631 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17632 if test "${ac_cv_func_dlopen+set}" = set; then
17633 echo $ECHO_N "(cached) $ECHO_C" >&6
17635 cat >conftest.$ac_ext <<_ACEOF
17638 cat confdefs.h >>conftest.$ac_ext
17639 cat >>conftest.$ac_ext <<_ACEOF
17640 /* end confdefs.h. */
17641 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17643 #define dlopen innocuous_dlopen
17645 /* System header to define __stub macros and hopefully few prototypes,
17646 which can conflict with char dlopen (); below.
17647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17648 <limits.h> exists even on freestanding compilers. */
17651 # include <limits.h>
17653 # include <assert.h>
17658 /* Override any gcc2 internal prototype to avoid an error. */
17663 /* We use char because int might match the return type of a gcc2
17664 builtin and then its argument prototype would still apply. */
17666 /* The GNU C library defines this for functions which it implements
17667 to always fail with ENOSYS. Some functions are actually named
17668 something starting with __ and the normal name is an alias. */
17669 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17672 char (*f) () = dlopen;
17681 return f != dlopen;
17686 rm -f conftest.$ac_objext conftest$ac_exeext
17687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17688 (eval $ac_link) 2>conftest.er1
17690 grep -v '^ *+' conftest.er1 >conftest.err
17692 cat conftest.err >&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); } &&
17695 { ac_try='test -z "$ac_cxx_werror_flag"
17696 || test ! -s conftest.err'
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; } &&
17702 { ac_try='test -s conftest$ac_exeext'
17703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; }; then
17708 ac_cv_func_dlopen=yes
17710 echo "$as_me: failed program was:" >&5
17711 sed 's/^/| /' conftest.$ac_ext >&5
17713 ac_cv_func_dlopen=no
17715 rm -f conftest.err conftest.$ac_objext \
17716 conftest$ac_exeext conftest.$ac_ext
17718 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17719 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17720 if test $ac_cv_func_dlopen = yes; then
17721 lt_cv_dlopen="dlopen"
17723 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17724 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17725 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17726 echo $ECHO_N "(cached) $ECHO_C" >&6
17728 ac_check_lib_save_LIBS=$LIBS
17730 cat >conftest.$ac_ext <<_ACEOF
17733 cat confdefs.h >>conftest.$ac_ext
17734 cat >>conftest.$ac_ext <<_ACEOF
17735 /* end confdefs.h. */
17737 /* Override any gcc2 internal prototype to avoid an error. */
17741 /* We use char because int might match the return type of a gcc2
17742 builtin and then its argument prototype would still apply. */
17752 rm -f conftest.$ac_objext conftest$ac_exeext
17753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17754 (eval $ac_link) 2>conftest.er1
17756 grep -v '^ *+' conftest.er1 >conftest.err
17758 cat conftest.err >&5
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); } &&
17761 { ac_try='test -z "$ac_cxx_werror_flag"
17762 || test ! -s conftest.err'
17763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764 (eval $ac_try) 2>&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; } &&
17768 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17774 ac_cv_lib_dl_dlopen=yes
17776 echo "$as_me: failed program was:" >&5
17777 sed 's/^/| /' conftest.$ac_ext >&5
17779 ac_cv_lib_dl_dlopen=no
17781 rm -f conftest.err conftest.$ac_objext \
17782 conftest$ac_exeext conftest.$ac_ext
17783 LIBS=$ac_check_lib_save_LIBS
17785 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17786 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17787 if test $ac_cv_lib_dl_dlopen = yes; then
17788 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17790 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17791 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17792 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17793 echo $ECHO_N "(cached) $ECHO_C" >&6
17795 ac_check_lib_save_LIBS=$LIBS
17796 LIBS="-lsvld $LIBS"
17797 cat >conftest.$ac_ext <<_ACEOF
17800 cat confdefs.h >>conftest.$ac_ext
17801 cat >>conftest.$ac_ext <<_ACEOF
17802 /* end confdefs.h. */
17804 /* Override any gcc2 internal prototype to avoid an error. */
17808 /* We use char because int might match the return type of a gcc2
17809 builtin and then its argument prototype would still apply. */
17819 rm -f conftest.$ac_objext conftest$ac_exeext
17820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17821 (eval $ac_link) 2>conftest.er1
17823 grep -v '^ *+' conftest.er1 >conftest.err
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
17828 { ac_try='test -z "$ac_cxx_werror_flag"
17829 || test ! -s conftest.err'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; } &&
17835 { ac_try='test -s conftest$ac_exeext'
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17841 ac_cv_lib_svld_dlopen=yes
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17846 ac_cv_lib_svld_dlopen=no
17848 rm -f conftest.err conftest.$ac_objext \
17849 conftest$ac_exeext conftest.$ac_ext
17850 LIBS=$ac_check_lib_save_LIBS
17852 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17853 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17854 if test $ac_cv_lib_svld_dlopen = yes; then
17855 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17857 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17858 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17859 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17860 echo $ECHO_N "(cached) $ECHO_C" >&6
17862 ac_check_lib_save_LIBS=$LIBS
17864 cat >conftest.$ac_ext <<_ACEOF
17867 cat confdefs.h >>conftest.$ac_ext
17868 cat >>conftest.$ac_ext <<_ACEOF
17869 /* end confdefs.h. */
17871 /* Override any gcc2 internal prototype to avoid an error. */
17875 /* We use char because int might match the return type of a gcc2
17876 builtin and then its argument prototype would still apply. */
17886 rm -f conftest.$ac_objext conftest$ac_exeext
17887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17888 (eval $ac_link) 2>conftest.er1
17890 grep -v '^ *+' conftest.er1 >conftest.err
17892 cat conftest.err >&5
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); } &&
17895 { ac_try='test -z "$ac_cxx_werror_flag"
17896 || test ! -s conftest.err'
17897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898 (eval $ac_try) 2>&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; } &&
17902 { ac_try='test -s conftest$ac_exeext'
17903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904 (eval $ac_try) 2>&5
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); }; }; then
17908 ac_cv_lib_dld_dld_link=yes
17910 echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17913 ac_cv_lib_dld_dld_link=no
17915 rm -f conftest.err conftest.$ac_objext \
17916 conftest$ac_exeext conftest.$ac_ext
17917 LIBS=$ac_check_lib_save_LIBS
17919 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17920 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17921 if test $ac_cv_lib_dld_dld_link = yes; then
17922 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17943 if test "x$lt_cv_dlopen" != xno; then
17949 case $lt_cv_dlopen in
17951 save_CPPFLAGS="$CPPFLAGS"
17952 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17954 save_LDFLAGS="$LDFLAGS"
17955 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17958 LIBS="$lt_cv_dlopen_libs $LIBS"
17960 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17961 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17962 if test "${lt_cv_dlopen_self+set}" = set; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17965 if test "$cross_compiling" = yes; then :
17966 lt_cv_dlopen_self=cross
17968 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17969 lt_status=$lt_dlunknown
17970 cat > conftest.$ac_ext <<EOF
17971 #line 17971 "configure"
17972 #include "confdefs.h"
17981 # define LT_DLGLOBAL RTLD_GLOBAL
17984 # define LT_DLGLOBAL DL_GLOBAL
17986 # define LT_DLGLOBAL 0
17990 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17991 find out it does not work in some platform. */
17992 #ifndef LT_DLLAZY_OR_NOW
17994 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17997 # define LT_DLLAZY_OR_NOW DL_LAZY
18000 # define LT_DLLAZY_OR_NOW RTLD_NOW
18003 # define LT_DLLAZY_OR_NOW DL_NOW
18005 # define LT_DLLAZY_OR_NOW 0
18013 extern "C" void exit (int);
18016 void fnord() { int i=42;}
18019 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18020 int status = $lt_dlunknown;
18024 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18025 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18026 /* dlclose (self); */
18032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18033 (eval $ac_link) 2>&5
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18037 (./conftest; exit; ) 2>/dev/null
18039 case x$lt_status in
18040 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18041 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18042 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18045 # compilation failed
18046 lt_cv_dlopen_self=no
18053 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18054 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18056 if test "x$lt_cv_dlopen_self" = xyes; then
18057 LDFLAGS="$LDFLAGS $link_static_flag"
18058 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18059 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18060 if test "${lt_cv_dlopen_self_static+set}" = set; then
18061 echo $ECHO_N "(cached) $ECHO_C" >&6
18063 if test "$cross_compiling" = yes; then :
18064 lt_cv_dlopen_self_static=cross
18066 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18067 lt_status=$lt_dlunknown
18068 cat > conftest.$ac_ext <<EOF
18069 #line 18069 "configure"
18070 #include "confdefs.h"
18079 # define LT_DLGLOBAL RTLD_GLOBAL
18082 # define LT_DLGLOBAL DL_GLOBAL
18084 # define LT_DLGLOBAL 0
18088 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18089 find out it does not work in some platform. */
18090 #ifndef LT_DLLAZY_OR_NOW
18092 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18095 # define LT_DLLAZY_OR_NOW DL_LAZY
18098 # define LT_DLLAZY_OR_NOW RTLD_NOW
18101 # define LT_DLLAZY_OR_NOW DL_NOW
18103 # define LT_DLLAZY_OR_NOW 0
18111 extern "C" void exit (int);
18114 void fnord() { int i=42;}
18117 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18118 int status = $lt_dlunknown;
18122 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18123 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18124 /* dlclose (self); */
18130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18131 (eval $ac_link) 2>&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18135 (./conftest; exit; ) 2>/dev/null
18137 case x$lt_status in
18138 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18139 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18140 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18143 # compilation failed
18144 lt_cv_dlopen_self_static=no
18151 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18152 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18155 CPPFLAGS="$save_CPPFLAGS"
18156 LDFLAGS="$save_LDFLAGS"
18161 case $lt_cv_dlopen_self in
18162 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18163 *) enable_dlopen_self=unknown ;;
18166 case $lt_cv_dlopen_self_static in
18167 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18168 *) enable_dlopen_self_static=unknown ;;
18173 # The else clause should only fire when bootstrapping the
18174 # libtool distribution, otherwise you forgot to ship ltmain.sh
18175 # with your package, and you will get complaints that there are
18176 # no rules to generate ltmain.sh.
18177 if test -f "$ltmain"; then
18178 # See if we are running on zsh, and set the options which allow our commands through
18179 # without removal of \ escapes.
18180 if test -n "${ZSH_VERSION+set}" ; then
18181 setopt NO_GLOB_SUBST
18183 # Now quote all the things that may contain metacharacters while being
18184 # careful not to overquote the AC_SUBSTed values. We take copies of the
18185 # variables and quote the copies for generation of the libtool script.
18186 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18188 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18189 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18190 deplibs_check_method reload_flag reload_cmds need_locks \
18191 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18192 lt_cv_sys_global_symbol_to_c_name_address \
18193 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18194 old_postinstall_cmds old_postuninstall_cmds \
18198 lt_prog_compiler_wl_CXX \
18199 lt_prog_compiler_pic_CXX \
18200 lt_prog_compiler_static_CXX \
18201 lt_prog_compiler_no_builtin_flag_CXX \
18202 export_dynamic_flag_spec_CXX \
18203 thread_safe_flag_spec_CXX \
18204 whole_archive_flag_spec_CXX \
18205 enable_shared_with_static_runtimes_CXX \
18206 old_archive_cmds_CXX \
18207 old_archive_from_new_cmds_CXX \
18208 predep_objects_CXX \
18209 postdep_objects_CXX \
18212 compiler_lib_search_path_CXX \
18214 archive_expsym_cmds_CXX \
18215 postinstall_cmds_CXX \
18216 postuninstall_cmds_CXX \
18217 old_archive_from_expsyms_cmds_CXX \
18218 allow_undefined_flag_CXX \
18219 no_undefined_flag_CXX \
18220 export_symbols_cmds_CXX \
18221 hardcode_libdir_flag_spec_CXX \
18222 hardcode_libdir_flag_spec_ld_CXX \
18223 hardcode_libdir_separator_CXX \
18224 hardcode_automatic_CXX \
18226 module_expsym_cmds_CXX \
18227 lt_cv_prog_compiler_c_o_CXX \
18228 exclude_expsyms_CXX \
18229 include_expsyms_CXX; do
18232 old_archive_cmds_CXX | \
18233 old_archive_from_new_cmds_CXX | \
18234 archive_cmds_CXX | \
18235 archive_expsym_cmds_CXX | \
18236 module_cmds_CXX | \
18237 module_expsym_cmds_CXX | \
18238 old_archive_from_expsyms_cmds_CXX | \
18239 export_symbols_cmds_CXX | \
18240 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18241 postinstall_cmds | postuninstall_cmds | \
18242 old_postinstall_cmds | old_postuninstall_cmds | \
18243 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18244 # Double-quote double-evaled strings.
18245 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18248 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18254 *'\$0 --fallback-echo"')
18255 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18261 cat <<__EOF__ >> "$cfgfile"
18262 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18264 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18266 # Shell to use when invoking shell scripts.
18269 # Whether or not to build shared libraries.
18270 build_libtool_libs=$enable_shared
18272 # Whether or not to build static libraries.
18273 build_old_libs=$enable_static
18275 # Whether or not to add -lc for building shared libraries.
18276 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18278 # Whether or not to disallow shared libs when runtime libs are static
18279 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18281 # Whether or not to optimize for fast installation.
18282 fast_install=$enable_fast_install
18285 host_alias=$host_alias
18288 # An echo program that does not interpret backslashes.
18293 AR_FLAGS=$lt_AR_FLAGS
18298 # A language-specific compiler.
18299 CC=$lt_compiler_CXX
18301 # Is the compiler the GNU C compiler?
18307 # The linker used to build libraries.
18310 # Whether we need hard or soft links.
18313 # A BSD-compatible nm program.
18316 # A symbol stripping program
18319 # Used to examine libraries when file_magic_cmd begins "file"
18320 MAGIC_CMD=$MAGIC_CMD
18322 # Used on cygwin: DLL creation program.
18325 # Used on cygwin: object dumper.
18328 # Used on cygwin: assembler.
18331 # The name of the directory that contains temporary libtool files.
18334 # How to create reloadable object files.
18335 reload_flag=$lt_reload_flag
18336 reload_cmds=$lt_reload_cmds
18338 # How to pass a linker flag through the compiler.
18339 wl=$lt_lt_prog_compiler_wl_CXX
18341 # Object file suffix (normally "o").
18342 objext="$ac_objext"
18344 # Old archive suffix (normally "a").
18347 # Shared library suffix (normally ".so").
18348 shrext_cmds='$shrext_cmds'
18350 # Executable file suffix (normally "").
18353 # Additional compiler flags for building library objects.
18354 pic_flag=$lt_lt_prog_compiler_pic_CXX
18357 # What is the maximum length of a command?
18358 max_cmd_len=$lt_cv_sys_max_cmd_len
18360 # Does compiler simultaneously support -c and -o options?
18361 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18363 # Must we lock files when doing compilation ?
18364 need_locks=$lt_need_locks
18366 # Do we need the lib prefix for modules?
18367 need_lib_prefix=$need_lib_prefix
18369 # Do we need a version for libraries?
18370 need_version=$need_version
18372 # Whether dlopen is supported.
18373 dlopen_support=$enable_dlopen
18375 # Whether dlopen of programs is supported.
18376 dlopen_self=$enable_dlopen_self
18378 # Whether dlopen of statically linked programs is supported.
18379 dlopen_self_static=$enable_dlopen_self_static
18381 # Compiler flag to prevent dynamic linking.
18382 link_static_flag=$lt_lt_prog_compiler_static_CXX
18384 # Compiler flag to turn off builtin functions.
18385 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18387 # Compiler flag to allow reflexive dlopens.
18388 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18390 # Compiler flag to generate shared objects directly from archives.
18391 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18393 # Compiler flag to generate thread-safe objects.
18394 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18396 # Library versioning type.
18397 version_type=$version_type
18399 # Format of library name prefix.
18400 libname_spec=$lt_libname_spec
18402 # List of archive names. First name is the real one, the rest are links.
18403 # The last name is the one that the linker finds with -lNAME.
18404 library_names_spec=$lt_library_names_spec
18406 # The coded name of the library, if different from the real name.
18407 soname_spec=$lt_soname_spec
18409 # Commands used to build and install an old-style archive.
18411 old_archive_cmds=$lt_old_archive_cmds_CXX
18412 old_postinstall_cmds=$lt_old_postinstall_cmds
18413 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18415 # Create an old-style archive from a shared archive.
18416 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18418 # Create a temporary old-style archive to link instead of a shared archive.
18419 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18421 # Commands used to build and install a shared archive.
18422 archive_cmds=$lt_archive_cmds_CXX
18423 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18424 postinstall_cmds=$lt_postinstall_cmds
18425 postuninstall_cmds=$lt_postuninstall_cmds
18427 # Commands used to build a loadable module (assumed same as above if empty)
18428 module_cmds=$lt_module_cmds_CXX
18429 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18431 # Commands to strip libraries.
18432 old_striplib=$lt_old_striplib
18433 striplib=$lt_striplib
18435 # Dependencies to place before the objects being linked to create a
18437 predep_objects=$lt_predep_objects_CXX
18439 # Dependencies to place after the objects being linked to create a
18441 postdep_objects=$lt_postdep_objects_CXX
18443 # Dependencies to place before the objects being linked to create a
18445 predeps=$lt_predeps_CXX
18447 # Dependencies to place after the objects being linked to create a
18449 postdeps=$lt_postdeps_CXX
18451 # The library search path used internally by the compiler when linking
18452 # a shared library.
18453 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18455 # Method to check whether dependent libraries are shared objects.
18456 deplibs_check_method=$lt_deplibs_check_method
18458 # Command to use when deplibs_check_method == file_magic.
18459 file_magic_cmd=$lt_file_magic_cmd
18461 # Flag that allows shared libraries with undefined symbols to be built.
18462 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18464 # Flag that forces no undefined symbols.
18465 no_undefined_flag=$lt_no_undefined_flag_CXX
18467 # Commands used to finish a libtool library installation in a directory.
18468 finish_cmds=$lt_finish_cmds
18470 # Same as above, but a single script fragment to be evaled but not shown.
18471 finish_eval=$lt_finish_eval
18473 # Take the output of nm and produce a listing of raw symbols and C names.
18474 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18476 # Transform the output of nm in a proper C declaration
18477 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18479 # Transform the output of nm in a C name address pair
18480 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18482 # This is the shared library runtime path variable.
18483 runpath_var=$runpath_var
18485 # This is the shared library path variable.
18486 shlibpath_var=$shlibpath_var
18488 # Is shlibpath searched before the hard-coded library search path?
18489 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18491 # How to hardcode a shared library path into an executable.
18492 hardcode_action=$hardcode_action_CXX
18494 # Whether we should hardcode library paths into libraries.
18495 hardcode_into_libs=$hardcode_into_libs
18497 # Flag to hardcode \$libdir into a binary during linking.
18498 # This must work even if \$libdir does not exist.
18499 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18501 # If ld is used when linking, flag to hardcode \$libdir into
18502 # a binary during linking. This must work even if \$libdir does
18504 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18506 # Whether we need a single -rpath flag with a separated argument.
18507 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18509 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18510 # resulting binary.
18511 hardcode_direct=$hardcode_direct_CXX
18513 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18514 # resulting binary.
18515 hardcode_minus_L=$hardcode_minus_L_CXX
18517 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18518 # the resulting binary.
18519 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18521 # Set to yes if building a shared library automatically hardcodes DIR into the library
18522 # and all subsequent libraries and executables linked against it.
18523 hardcode_automatic=$hardcode_automatic_CXX
18525 # Variables whose values should be saved in libtool wrapper scripts and
18526 # restored at relink time.
18527 variables_saved_for_relink="$variables_saved_for_relink"
18529 # Whether libtool must link a program against all its dependency libraries.
18530 link_all_deplibs=$link_all_deplibs_CXX
18532 # Compile-time system search path for libraries
18533 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18535 # Run-time system search path for libraries
18536 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18538 # Fix the shell variable \$srcfile for the compiler.
18539 fix_srcfile_path="$fix_srcfile_path_CXX"
18541 # Set to yes if exported symbols are required.
18542 always_export_symbols=$always_export_symbols_CXX
18544 # The commands to list exported symbols.
18545 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18547 # The commands to extract the exported symbol list from a shared archive.
18548 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18550 # Symbols that should not be listed in the preloaded symbols.
18551 exclude_expsyms=$lt_exclude_expsyms_CXX
18553 # Symbols that must always be exported.
18554 include_expsyms=$lt_include_expsyms_CXX
18556 # ### END LIBTOOL TAG CONFIG: $tagname
18562 # If there is no Makefile yet, we rely on a make rule to execute
18563 # `config.status --recheck' to rerun these tests and create the
18564 # libtool script then.
18565 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18566 if test -f "$ltmain_in"; then
18567 test -f Makefile && make "$ltmain"
18573 ac_cpp='$CPP $CPPFLAGS'
18574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18582 with_gnu_ldcxx=$with_gnu_ld
18583 with_gnu_ld=$lt_save_with_gnu_ld
18584 lt_cv_path_LDCXX=$lt_cv_path_LD
18585 lt_cv_path_LD=$lt_save_path_LD
18586 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18587 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18595 if test -n "$F77" && test "X$F77" != "Xno"; then
18598 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18599 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18600 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18603 archive_cmds_need_lc_F77=no
18604 allow_undefined_flag_F77=
18605 always_export_symbols_F77=no
18606 archive_expsym_cmds_F77=
18607 export_dynamic_flag_spec_F77=
18608 hardcode_direct_F77=no
18609 hardcode_libdir_flag_spec_F77=
18610 hardcode_libdir_flag_spec_ld_F77=
18611 hardcode_libdir_separator_F77=
18612 hardcode_minus_L_F77=no
18613 hardcode_automatic_F77=no
18615 module_expsym_cmds_F77=
18616 link_all_deplibs_F77=unknown
18617 old_archive_cmds_F77=$old_archive_cmds
18618 no_undefined_flag_F77=
18619 whole_archive_flag_spec_F77=
18620 enable_shared_with_static_runtimes_F77=no
18622 # Source file extension for f77 test sources.
18625 # Object file extension for compiled f77 test sources.
18629 # Code to be used in simple compile tests
18630 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18632 # Code to be used in simple link tests
18633 lt_simple_link_test_code=" program t\n end\n"
18635 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18637 # If no C compiler was specified, use CC.
18640 # Allow CC to be a program name with arguments.
18644 # Allow CC to be a program name with arguments.
18649 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18651 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18652 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18653 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18654 echo "${ECHO_T}$can_build_shared" >&6
18656 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18657 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18658 test "$can_build_shared" = "no" && enable_shared=no
18660 # On AIX, shared libraries and static libraries use the same namespace, and
18661 # are all built from PIC.
18664 test "$enable_shared" = yes && enable_static=no
18665 if test -n "$RANLIB"; then
18666 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18667 postinstall_cmds='$RANLIB $lib'
18671 test "$enable_shared" = yes && enable_static=no
18674 echo "$as_me:$LINENO: result: $enable_shared" >&5
18675 echo "${ECHO_T}$enable_shared" >&6
18677 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18678 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18679 # Make sure either enable_shared or enable_static is yes.
18680 test "$enable_shared" = yes || enable_static=yes
18681 echo "$as_me:$LINENO: result: $enable_static" >&5
18682 echo "${ECHO_T}$enable_static" >&6
18684 test "$ld_shlibs_F77" = no && can_build_shared=no
18689 lt_prog_compiler_wl_F77=
18690 lt_prog_compiler_pic_F77=
18691 lt_prog_compiler_static_F77=
18693 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18694 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18696 if test "$GCC" = yes; then
18697 lt_prog_compiler_wl_F77='-Wl,'
18698 lt_prog_compiler_static_F77='-static'
18702 # All AIX code is PIC.
18703 if test "$host_cpu" = ia64; then
18704 # AIX 5 now supports IA64 processor
18705 lt_prog_compiler_static_F77='-Bstatic'
18710 # FIXME: we need at least 68020 code to build shared libraries, but
18711 # adding the `-m68020' flag to GCC prevents building anything better,
18713 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18716 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18717 # PIC is the default for these OSes.
18720 mingw* | pw32* | os2*)
18721 # This hack is so that the source file can tell whether it is being
18722 # built for inclusion in a dll (and should export symbols for example).
18723 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18726 darwin* | rhapsody*)
18727 # PIC is the default on this platform
18728 # Common symbols not allowed in MH_DYLIB files
18729 lt_prog_compiler_pic_F77='-fno-common'
18733 # Just because we use GCC doesn't mean we suddenly get shared libraries
18734 # on systems that don't support them.
18735 lt_prog_compiler_can_build_shared_F77=no
18740 if test -d /usr/nec; then
18741 lt_prog_compiler_pic_F77=-Kconform_pic
18746 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18747 # not for PA HP-UX.
18748 case "$host_cpu" in
18753 lt_prog_compiler_pic_F77='-fPIC'
18759 lt_prog_compiler_pic_F77='-fPIC'
18763 # PORTME Check for flag to pass linker flags through the system compiler.
18766 lt_prog_compiler_wl_F77='-Wl,'
18767 if test "$host_cpu" = ia64; then
18768 # AIX 5 now supports IA64 processor
18769 lt_prog_compiler_static_F77='-Bstatic'
18771 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18775 # PIC is the default on this platform
18776 # Common symbols not allowed in MH_DYLIB files
18777 case "$cc_basename" in
18779 lt_prog_compiler_pic_F77='-qnocommon'
18780 lt_prog_compiler_wl_F77='-Wl,'
18785 mingw* | pw32* | os2*)
18786 # This hack is so that the source file can tell whether it is being
18787 # built for inclusion in a dll (and should export symbols for example).
18788 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18791 hpux9* | hpux10* | hpux11*)
18792 lt_prog_compiler_wl_F77='-Wl,'
18793 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18794 # not for PA HP-UX.
18795 case "$host_cpu" in
18800 lt_prog_compiler_pic_F77='+Z'
18803 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18804 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18807 irix5* | irix6* | nonstopux*)
18808 lt_prog_compiler_wl_F77='-Wl,'
18809 # PIC (with -KPIC) is the default.
18810 lt_prog_compiler_static_F77='-non_shared'
18814 lt_prog_compiler_pic_F77='-KPIC'
18815 lt_prog_compiler_static_F77='-Bstatic'
18821 lt_prog_compiler_wl_F77='-Wl,'
18822 lt_prog_compiler_pic_F77='-KPIC'
18823 lt_prog_compiler_static_F77='-static'
18826 lt_prog_compiler_wl_F77='-Wl,'
18827 # All Alpha code is PIC.
18828 lt_prog_compiler_static_F77='-non_shared'
18833 osf3* | osf4* | osf5*)
18834 lt_prog_compiler_wl_F77='-Wl,'
18835 # All OSF/1 code is PIC.
18836 lt_prog_compiler_static_F77='-non_shared'
18840 lt_prog_compiler_pic_F77='-Kpic'
18841 lt_prog_compiler_static_F77='-dn'
18845 lt_prog_compiler_wl_F77='-Wl,'
18846 lt_prog_compiler_pic_F77='-KPIC'
18847 lt_prog_compiler_static_F77='-Bstatic'
18851 lt_prog_compiler_wl_F77='-Qoption ld '
18852 lt_prog_compiler_pic_F77='-PIC'
18853 lt_prog_compiler_static_F77='-Bstatic'
18856 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18857 lt_prog_compiler_wl_F77='-Wl,'
18858 lt_prog_compiler_pic_F77='-KPIC'
18859 lt_prog_compiler_static_F77='-Bstatic'
18863 if test -d /usr/nec ;then
18864 lt_prog_compiler_pic_F77='-Kconform_pic'
18865 lt_prog_compiler_static_F77='-Bstatic'
18870 lt_prog_compiler_pic_F77='-pic'
18871 lt_prog_compiler_static_F77='-Bstatic'
18875 lt_prog_compiler_can_build_shared_F77=no
18880 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18881 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18884 # Check to make sure the PIC flag actually works.
18886 if test -n "$lt_prog_compiler_pic_F77"; then
18888 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18889 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18890 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18893 lt_prog_compiler_pic_works_F77=no
18894 ac_outfile=conftest.$ac_objext
18895 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18896 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18897 # Insert the option either (1) after the last *FLAGS variable, or
18898 # (2) before a word containing "conftest.", or (3) at the end.
18899 # Note that $ac_compile itself does not contain backslashes and begins
18900 # with a dollar sign (not a hyphen), so the echo should work correctly.
18901 # The option is referenced via a variable to avoid confusing sed.
18902 lt_compile=`echo "$ac_compile" | $SED \
18903 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18905 -e 's:$: $lt_compiler_flag:'`
18906 (eval echo "\"\$as_me:18906: $lt_compile\"" >&5)
18907 (eval "$lt_compile" 2>conftest.err)
18909 cat conftest.err >&5
18910 echo "$as_me:18910: \$? = $ac_status" >&5
18911 if (exit $ac_status) && test -s "$ac_outfile"; then
18912 # The compiler can only warn and ignore the option if not recognized
18913 # So say no if there are warnings
18914 if test ! -s conftest.err; then
18915 lt_prog_compiler_pic_works_F77=yes
18921 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18922 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18924 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18925 case $lt_prog_compiler_pic_F77 in
18927 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18930 lt_prog_compiler_pic_F77=
18931 lt_prog_compiler_can_build_shared_F77=no
18936 # For platforms which do not support PIC, -DPIC is meaningless:
18938 lt_prog_compiler_pic_F77=
18941 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18945 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18946 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18947 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18948 echo $ECHO_N "(cached) $ECHO_C" >&6
18950 lt_cv_prog_compiler_c_o_F77=no
18951 $rm -r conftest 2>/dev/null
18955 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18957 lt_compiler_flag="-o out/conftest2.$ac_objext"
18958 # Insert the option either (1) after the last *FLAGS variable, or
18959 # (2) before a word containing "conftest.", or (3) at the end.
18960 # Note that $ac_compile itself does not contain backslashes and begins
18961 # with a dollar sign (not a hyphen), so the echo should work correctly.
18962 lt_compile=`echo "$ac_compile" | $SED \
18963 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18965 -e 's:$: $lt_compiler_flag:'`
18966 (eval echo "\"\$as_me:18966: $lt_compile\"" >&5)
18967 (eval "$lt_compile" 2>out/conftest.err)
18969 cat out/conftest.err >&5
18970 echo "$as_me:18970: \$? = $ac_status" >&5
18971 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18973 # The compiler can only warn and ignore the option if not recognized
18974 # So say no if there are warnings
18975 if test ! -s out/conftest.err; then
18976 lt_cv_prog_compiler_c_o_F77=yes
18981 # SGI C++ compiler will create directory out/ii_files/ for
18982 # template instantiation
18983 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18984 $rm out/* && rmdir out
18990 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18991 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18994 hard_links="nottested"
18995 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18996 # do not overwrite the value of need_locks provided by the user
18997 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18998 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19001 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19003 ln conftest.a conftest.b 2>&5 || hard_links=no
19004 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19005 echo "$as_me:$LINENO: result: $hard_links" >&5
19006 echo "${ECHO_T}$hard_links" >&6
19007 if test "$hard_links" = no; then
19008 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19009 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19016 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19017 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19020 allow_undefined_flag_F77=
19021 enable_shared_with_static_runtimes_F77=no
19023 archive_expsym_cmds_F77=
19024 old_archive_From_new_cmds_F77=
19025 old_archive_from_expsyms_cmds_F77=
19026 export_dynamic_flag_spec_F77=
19027 whole_archive_flag_spec_F77=
19028 thread_safe_flag_spec_F77=
19029 hardcode_libdir_flag_spec_F77=
19030 hardcode_libdir_flag_spec_ld_F77=
19031 hardcode_libdir_separator_F77=
19032 hardcode_direct_F77=no
19033 hardcode_minus_L_F77=no
19034 hardcode_shlibpath_var_F77=unsupported
19035 link_all_deplibs_F77=unknown
19036 hardcode_automatic_F77=no
19038 module_expsym_cmds_F77=
19039 always_export_symbols_F77=no
19040 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19041 # include_expsyms should be a list of space-separated symbols to be *always*
19042 # included in the symbol list
19043 include_expsyms_F77=
19044 # exclude_expsyms can be an extended regexp of symbols to exclude
19045 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19046 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19047 # as well as any symbol that contains `d'.
19048 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19049 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19050 # platforms (ab)use it in PIC code, but their linkers get confused if
19051 # the symbol is explicitly referenced. Since portable code cannot
19052 # rely on this symbol name, it's probably fine to never include it in
19053 # preloaded symbol tables.
19054 extract_expsyms_cmds=
19057 cygwin* | mingw* | pw32*)
19058 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19059 # When not using gcc, we currently assume that we are using
19060 # Microsoft Visual C++.
19061 if test "$GCC" != yes; then
19071 if test "$with_gnu_ld" = yes; then
19072 # If archive_cmds runs LD, not CC, wlarc should be empty
19075 # See if GNU ld supports shared libraries.
19077 aix3* | aix4* | aix5*)
19078 # On AIX/PPC, the GNU linker is very broken
19079 if test "$host_cpu" != ia64; then
19083 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19084 *** to be unable to reliably create shared libraries on AIX.
19085 *** Therefore, libtool is disabling shared libraries support. If you
19086 *** really care for shared libraries, you may want to modify your PATH
19087 *** so that a non-GNU linker is found, and then restart.
19094 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)'
19095 hardcode_libdir_flag_spec_F77='-L$libdir'
19096 hardcode_minus_L_F77=yes
19098 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19099 # that the semantics of dynamic libraries on AmigaOS, at least up
19100 # to version 4, is to share data among multiple programs linked
19101 # with the same dynamic library. Since this doesn't match the
19102 # behavior of shared libraries on other platforms, we can't use
19108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19109 allow_undefined_flag_F77=unsupported
19110 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19111 # support --undefined. This deserves some investigation. FIXME
19112 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19118 cygwin* | mingw* | pw32*)
19119 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19120 # as there is no search path for DLLs.
19121 hardcode_libdir_flag_spec_F77='-L$libdir'
19122 allow_undefined_flag_F77=unsupported
19123 always_export_symbols_F77=no
19124 enable_shared_with_static_runtimes_F77=yes
19125 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19127 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19128 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19129 # If the export-symbols file already is a .def file (1st line
19130 # is EXPORTS), use it as is; otherwise, prepend...
19131 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19132 cp $export_symbols $output_objdir/$soname.def;
19134 echo EXPORTS > $output_objdir/$soname.def;
19135 cat $export_symbols >> $output_objdir/$soname.def;
19137 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19144 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19145 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19148 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19149 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19154 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19158 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19159 *** create shared libraries on Solaris systems. Therefore, libtool
19160 *** is disabling shared libraries support. We urge you to upgrade GNU
19161 *** binutils to release 2.9.1 or newer. Another option is to modify
19162 *** your PATH or compiler configuration so that the native linker is
19163 *** used, and then restart.
19166 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19167 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19168 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19175 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19177 hardcode_direct_F77=yes
19178 hardcode_shlibpath_var_F77=no
19182 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19183 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19184 archive_cmds_F77="$tmp_archive_cmds"
19185 supports_anon_versioning=no
19186 case `$LD -v 2>/dev/null` in
19187 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19188 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19189 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19190 *\ 2.11.*) ;; # other 2.11 versions
19191 *) supports_anon_versioning=yes ;;
19193 if test $supports_anon_versioning = yes; then
19194 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19195 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19196 $echo "local: *; };" >> $output_objdir/$libname.ver~
19197 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19199 archive_expsym_cmds_F77="$tmp_archive_cmds"
19207 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19208 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19209 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19216 if test "$ld_shlibs_F77" = yes; then
19217 runpath_var=LD_RUN_PATH
19218 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19219 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19220 # ancient GNU ld didn't support --whole-archive et. al.
19221 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19222 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19224 whole_archive_flag_spec_F77=
19228 # PORTME fill in a description of your system's linker (not GNU ld)
19231 allow_undefined_flag_F77=unsupported
19232 always_export_symbols_F77=yes
19233 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'
19234 # Note: this linker hardcodes the directories in LIBPATH if there
19235 # are no directories specified by -L.
19236 hardcode_minus_L_F77=yes
19237 if test "$GCC" = yes && test -z "$link_static_flag"; then
19238 # Neither direct hardcoding nor static linking is supported with a
19240 hardcode_direct_F77=unsupported
19245 if test "$host_cpu" = ia64; then
19246 # On IA64, the linker does run time linking by default, so we don't
19247 # have to do anything special.
19248 aix_use_runtimelinking=no
19249 exp_sym_flag='-Bexport'
19252 # If we're using GNU nm, then we don't want the "-C" option.
19253 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19254 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19255 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'
19257 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'
19259 aix_use_runtimelinking=no
19261 # Test if we are trying to use run time linking or normal
19262 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19263 # need to do runtime linking.
19264 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19265 for ld_flag in $LDFLAGS; do
19266 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19267 aix_use_runtimelinking=yes
19273 exp_sym_flag='-bexport'
19274 no_entry_flag='-bnoentry'
19277 # When large executables or shared objects are built, AIX ld can
19278 # have problems creating the table of contents. If linking a library
19279 # or program results in "error TOC overflow" add -mminimal-toc to
19280 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19281 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19283 archive_cmds_F77=''
19284 hardcode_direct_F77=yes
19285 hardcode_libdir_separator_F77=':'
19286 link_all_deplibs_F77=yes
19288 if test "$GCC" = yes; then
19289 case $host_os in aix4.012|aix4.012.*)
19290 # We only want to do this on AIX 4.2 and lower, the check
19291 # below for broken collect2 doesn't work under 4.3+
19292 collect2name=`${CC} -print-prog-name=collect2`
19293 if test -f "$collect2name" && \
19294 strings "$collect2name" | grep resolve_lib_name >/dev/null
19296 # We have reworked collect2
19297 hardcode_direct_F77=yes
19299 # We have old collect2
19300 hardcode_direct_F77=unsupported
19301 # It fails to find uninstalled libraries when the uninstalled
19302 # path is not listed in the libpath. Setting hardcode_minus_L
19303 # to unsupported forces relinking
19304 hardcode_minus_L_F77=yes
19305 hardcode_libdir_flag_spec_F77='-L$libdir'
19306 hardcode_libdir_separator_F77=
19309 shared_flag='-shared'
19312 if test "$host_cpu" = ia64; then
19313 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19314 # chokes on -Wl,-G. The following line is correct:
19317 if test "$aix_use_runtimelinking" = yes; then
19318 shared_flag='${wl}-G'
19320 shared_flag='${wl}-bM:SRE'
19325 # It seems that -bexpall does not export symbols beginning with
19326 # underscore (_), so it is better to generate a list of symbols to export.
19327 always_export_symbols_F77=yes
19328 if test "$aix_use_runtimelinking" = yes; then
19329 # Warning - without using the other runtime loading flags (-brtl),
19330 # -berok will link without error, but may produce a broken library.
19331 allow_undefined_flag_F77='-berok'
19332 # Determine the default libpath from the value encoded in an empty executable.
19333 cat >conftest.$ac_ext <<_ACEOF
19338 rm -f conftest.$ac_objext conftest$ac_exeext
19339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19340 (eval $ac_link) 2>conftest.er1
19342 grep -v '^ *+' conftest.er1 >conftest.err
19344 cat conftest.err >&5
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); } &&
19347 { ac_try='test -z "$ac_f77_werror_flag"
19348 || test ! -s conftest.err'
19349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19350 (eval $ac_try) 2>&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); }; } &&
19354 { ac_try='test -s conftest$ac_exeext'
19355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19356 (eval $ac_try) 2>&5
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); }; }; then
19361 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19363 # Check for a 64-bit object if we didn't find anything.
19364 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; }
19367 echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19371 rm -f conftest.err conftest.$ac_objext \
19372 conftest$ac_exeext conftest.$ac_ext
19373 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19375 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19376 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"
19378 if test "$host_cpu" = ia64; then
19379 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19380 allow_undefined_flag_F77="-z nodefs"
19381 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"
19383 # Determine the default libpath from the value encoded in an empty executable.
19384 cat >conftest.$ac_ext <<_ACEOF
19389 rm -f conftest.$ac_objext conftest$ac_exeext
19390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19391 (eval $ac_link) 2>conftest.er1
19393 grep -v '^ *+' conftest.er1 >conftest.err
19395 cat conftest.err >&5
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); } &&
19398 { ac_try='test -z "$ac_f77_werror_flag"
19399 || test ! -s conftest.err'
19400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401 (eval $ac_try) 2>&5
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); }; } &&
19405 { ac_try='test -s conftest$ac_exeext'
19406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407 (eval $ac_try) 2>&5
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; }; then
19412 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19414 # Check for a 64-bit object if we didn't find anything.
19415 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; }
19418 echo "$as_me: failed program was:" >&5
19419 sed 's/^/| /' conftest.$ac_ext >&5
19422 rm -f conftest.err conftest.$ac_objext \
19423 conftest$ac_exeext conftest.$ac_ext
19424 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19426 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19427 # Warning - without using the other run time loading flags,
19428 # -berok will link without error, but may produce a broken library.
19429 no_undefined_flag_F77=' ${wl}-bernotok'
19430 allow_undefined_flag_F77=' ${wl}-berok'
19431 # -bexpall does not export symbols beginning with underscore (_)
19432 always_export_symbols_F77=yes
19433 # Exported symbols can be pulled into shared objects from archives
19434 whole_archive_flag_spec_F77=' '
19435 archive_cmds_need_lc_F77=yes
19436 # This is similar to how AIX traditionally builds it's shared libraries.
19437 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'
19443 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)'
19444 hardcode_libdir_flag_spec_F77='-L$libdir'
19445 hardcode_minus_L_F77=yes
19446 # see comment about different semantics on the GNU ld section
19451 export_dynamic_flag_spec_F77=-rdynamic
19454 cygwin* | mingw* | pw32*)
19455 # When not using gcc, we currently assume that we are using
19456 # Microsoft Visual C++.
19457 # hardcode_libdir_flag_spec is actually meaningless, as there is
19458 # no search path for DLLs.
19459 hardcode_libdir_flag_spec_F77=' '
19460 allow_undefined_flag_F77=unsupported
19461 # Tell ltmain to make .lib files, not .a files.
19463 # Tell ltmain to make .dll files, not .so files.
19465 # FIXME: Setting linknames here is a bad hack.
19466 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19467 # The linker will automatically build a .lib file if we build a DLL.
19468 old_archive_From_new_cmds_F77='true'
19469 # FIXME: Should let the user specify the lib program.
19470 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19471 fix_srcfile_path='`cygpath -w "$srcfile"`'
19472 enable_shared_with_static_runtimes_F77=yes
19475 darwin* | rhapsody*)
19477 rhapsody* | darwin1.[012])
19478 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19481 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19482 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19484 case ${MACOSX_DEPLOYMENT_TARGET} in
19486 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19489 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19495 archive_cmds_need_lc_F77=no
19496 hardcode_direct_F77=no
19497 hardcode_automatic_F77=yes
19498 hardcode_shlibpath_var_F77=unsupported
19499 whole_archive_flag_spec_F77=''
19500 link_all_deplibs_F77=yes
19501 if test "$GCC" = yes ; then
19502 output_verbose_link_cmd='echo'
19503 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19504 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19505 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19506 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}'
19507 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}'
19509 case "$cc_basename" in
19511 output_verbose_link_cmd='echo'
19512 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19513 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19514 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19515 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}'
19516 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}'
19526 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19527 hardcode_libdir_flag_spec_F77='-L$libdir'
19528 hardcode_shlibpath_var_F77=no
19535 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19536 # support. Future versions do this automatically, but an explicit c++rt0.o
19537 # does not break anything, and helps significantly (at the cost of a little
19540 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19541 hardcode_libdir_flag_spec_F77='-R$libdir'
19542 hardcode_direct_F77=yes
19543 hardcode_shlibpath_var_F77=no
19546 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19548 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19549 hardcode_direct_F77=yes
19550 hardcode_minus_L_F77=yes
19551 hardcode_shlibpath_var_F77=no
19554 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19555 freebsd* | kfreebsd*-gnu)
19556 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19557 hardcode_libdir_flag_spec_F77='-R$libdir'
19558 hardcode_direct_F77=yes
19559 hardcode_shlibpath_var_F77=no
19563 if test "$GCC" = yes; then
19564 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'
19566 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'
19568 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19569 hardcode_libdir_separator_F77=:
19570 hardcode_direct_F77=yes
19572 # hardcode_minus_L: Not really in the search PATH,
19573 # but as the default location of the library.
19574 hardcode_minus_L_F77=yes
19575 export_dynamic_flag_spec_F77='${wl}-E'
19579 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19580 case "$host_cpu" in
19582 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19585 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19589 case "$host_cpu" in
19591 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19594 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19598 if test "$with_gnu_ld" = no; then
19599 case "$host_cpu" in
19601 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19602 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19603 hardcode_libdir_separator_F77=:
19604 hardcode_direct_F77=no
19605 hardcode_shlibpath_var_F77=no
19608 hardcode_libdir_flag_spec_F77='-L$libdir'
19609 hardcode_direct_F77=no
19610 hardcode_shlibpath_var_F77=no
19612 # hardcode_minus_L: Not really in the search PATH,
19613 # but as the default location of the library.
19614 hardcode_minus_L_F77=yes
19617 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19618 hardcode_libdir_separator_F77=:
19619 hardcode_direct_F77=yes
19620 export_dynamic_flag_spec_F77='${wl}-E'
19622 # hardcode_minus_L: Not really in the search PATH,
19623 # but as the default location of the library.
19624 hardcode_minus_L_F77=yes
19630 irix5* | irix6* | nonstopux*)
19631 if test "$GCC" = yes; then
19632 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'
19634 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'
19635 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19637 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19638 hardcode_libdir_separator_F77=:
19639 link_all_deplibs_F77=yes
19643 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19644 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19646 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19648 hardcode_libdir_flag_spec_F77='-R$libdir'
19649 hardcode_direct_F77=yes
19650 hardcode_shlibpath_var_F77=no
19654 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19655 hardcode_direct_F77=yes
19656 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19657 hardcode_libdir_separator_F77=:
19658 hardcode_shlibpath_var_F77=no
19662 hardcode_direct_F77=yes
19663 hardcode_shlibpath_var_F77=no
19664 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19665 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19666 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19667 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19668 export_dynamic_flag_spec_F77='${wl}-E'
19671 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19672 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19673 hardcode_libdir_flag_spec_F77='-R$libdir'
19676 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19677 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19684 hardcode_libdir_flag_spec_F77='-L$libdir'
19685 hardcode_minus_L_F77=yes
19686 allow_undefined_flag_F77=unsupported
19687 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'
19688 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19692 if test "$GCC" = yes; then
19693 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19694 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'
19696 allow_undefined_flag_F77=' -expect_unresolved \*'
19697 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'
19699 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19700 hardcode_libdir_separator_F77=:
19703 osf4* | osf5*) # as osf3* with the addition of -msym flag
19704 if test "$GCC" = yes; then
19705 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19706 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'
19707 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19709 allow_undefined_flag_F77=' -expect_unresolved \*'
19710 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'
19711 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~
19712 $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'
19714 # Both c and cxx compiler support -rpath directly
19715 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19717 hardcode_libdir_separator_F77=:
19721 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19722 hardcode_shlibpath_var_F77=no
19723 export_dynamic_flag_spec_F77='${wl}-Bexport'
19724 runpath_var=LD_RUN_PATH
19725 hardcode_runpath_var=yes
19729 no_undefined_flag_F77=' -z text'
19730 if test "$GCC" = yes; then
19731 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19732 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19733 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19735 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19736 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19737 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19739 hardcode_libdir_flag_spec_F77='-R$libdir'
19740 hardcode_shlibpath_var_F77=no
19742 solaris2.[0-5] | solaris2.[0-5].*) ;;
19743 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19744 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19746 link_all_deplibs_F77=yes
19750 if test "x$host_vendor" = xsequent; then
19751 # Use $CC to link under sequent, because it throws in some extra .o
19752 # files that make .init and .fini sections work.
19753 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19755 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19757 hardcode_libdir_flag_spec_F77='-L$libdir'
19758 hardcode_direct_F77=yes
19759 hardcode_minus_L_F77=yes
19760 hardcode_shlibpath_var_F77=no
19764 case $host_vendor in
19766 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19767 hardcode_direct_F77=yes # is this really true???
19770 ## LD is ld it makes a PLAMLIB
19771 ## CC just makes a GrossModule.
19772 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19773 reload_cmds_F77='$CC -r -o $output$reload_objs'
19774 hardcode_direct_F77=no
19777 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19778 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19781 runpath_var='LD_RUN_PATH'
19782 hardcode_shlibpath_var_F77=no
19786 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19787 hardcode_shlibpath_var_F77=no
19788 export_dynamic_flag_spec_F77='-Bexport'
19792 if test -d /usr/nec; then
19793 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19794 hardcode_shlibpath_var_F77=no
19795 runpath_var=LD_RUN_PATH
19796 hardcode_runpath_var=yes
19802 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19803 hardcode_direct_F77=yes
19804 hardcode_minus_L_F77=no
19805 hardcode_shlibpath_var_F77=no
19806 hardcode_runpath_var=yes
19807 runpath_var=LD_RUN_PATH
19810 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19811 no_undefined_flag_F77='${wl}-z ${wl}text'
19812 if test "$GCC" = yes; then
19813 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19815 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19817 runpath_var='LD_RUN_PATH'
19818 hardcode_shlibpath_var_F77=no
19822 no_undefined_flag_F77=' -z text'
19823 # $CC -shared without GNU ld will not create a library from C++
19824 # object files and a static libstdc++, better avoid it by now
19825 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19826 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19827 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19828 hardcode_libdir_flag_spec_F77=
19829 hardcode_shlibpath_var_F77=no
19830 runpath_var='LD_RUN_PATH'
19834 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19835 hardcode_libdir_flag_spec_F77='-L$libdir'
19836 hardcode_shlibpath_var_F77=no
19845 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19846 echo "${ECHO_T}$ld_shlibs_F77" >&6
19847 test "$ld_shlibs_F77" = no && can_build_shared=no
19849 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19850 if test "$GCC" = yes; then
19851 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19855 # Do we need to explicitly link libc?
19857 case "x$archive_cmds_need_lc_F77" in
19859 # Assume -lc should be added
19860 archive_cmds_need_lc_F77=yes
19862 if test "$enable_shared" = yes && test "$GCC" = yes; then
19863 case $archive_cmds_F77 in
19865 # FIXME: we may have to deal with multi-command sequences.
19868 # Test whether the compiler implicitly links with -lc since on some
19869 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19870 # to ld, don't add -lc before -lgcc.
19871 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19872 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19874 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19877 (eval $ac_compile) 2>&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } 2>conftest.err; then
19883 libobjs=conftest.$ac_objext
19885 wl=$lt_prog_compiler_wl_F77
19891 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19892 allow_undefined_flag_F77=
19893 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19894 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); }
19899 archive_cmds_need_lc_F77=no
19901 archive_cmds_need_lc_F77=yes
19903 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19905 cat conftest.err 1>&5
19908 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19909 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19916 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19917 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19918 library_names_spec=
19919 libname_spec='lib$name'
19923 postuninstall_cmds=
19927 shlibpath_overrides_runpath=unknown
19929 dynamic_linker="$host_os ld.so"
19930 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19931 if test "$GCC" = yes; then
19932 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19933 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19934 # if the path contains ";" then we assume it to be the separator
19935 # otherwise default to the standard path separator (i.e. ":") - it is
19936 # assumed that no part of a normal pathname contains ";" but that should
19937 # okay in the real world where ";" in dirpaths is itself problematic.
19938 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19943 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19945 need_lib_prefix=unknown
19946 hardcode_into_libs=no
19948 # when you set need_version to no, make sure it does not cause -set_version
19949 # flags to be left without arguments
19950 need_version=unknown
19955 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19956 shlibpath_var=LIBPATH
19958 # AIX 3 has no versioning support, so we append a major version to the name.
19959 soname_spec='${libname}${release}${shared_ext}$major'
19966 hardcode_into_libs=yes
19967 if test "$host_cpu" = ia64; then
19968 # AIX 5 supports IA64
19969 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19970 shlibpath_var=LD_LIBRARY_PATH
19972 # With GCC up to 2.95.x, collect2 would create an import file
19973 # for dependence libraries. The import file would start with
19974 # the line `#! .'. This would cause the generated library to
19975 # depend on `.', always an invalid library. This was fixed in
19976 # development snapshots of GCC prior to 3.0.
19978 aix4 | aix4.[01] | aix4.[01].*)
19979 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19981 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19984 can_build_shared=no
19988 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19989 # soname into executable. Probably we can add versioning support to
19990 # collect2, so additional links can be useful in future.
19991 if test "$aix_use_runtimelinking" = yes; then
19992 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19993 # instead of lib<name>.a to let people know that these are not
19994 # typical AIX shared libraries.
19995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19997 # We preserve .a as extension for shared libraries through AIX4.2
19998 # and later when we are not doing run time linking.
19999 library_names_spec='${libname}${release}.a $libname.a'
20000 soname_spec='${libname}${release}${shared_ext}$major'
20002 shlibpath_var=LIBPATH
20007 library_names_spec='$libname.ixlibrary $libname.a'
20008 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20009 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'
20013 library_names_spec='${libname}${shared_ext}'
20014 dynamic_linker="$host_os ld.so"
20015 shlibpath_var=LIBRARY_PATH
20021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20022 soname_spec='${libname}${release}${shared_ext}$major'
20023 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20024 shlibpath_var=LD_LIBRARY_PATH
20025 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20026 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20027 # the default ld.so.conf also contains /usr/contrib/lib and
20028 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20029 # libtool to hard-code these into programs
20032 cygwin* | mingw* | pw32*)
20033 version_type=windows
20038 case $GCC,$host_os in
20039 yes,cygwin* | yes,mingw* | yes,pw32*)
20040 library_names_spec='$libname.dll.a'
20041 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20042 postinstall_cmds='base_file=`basename \${file}`~
20043 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20044 dldir=$destdir/`dirname \$dlpath`~
20045 test -d \$dldir || mkdir -p \$dldir~
20046 $install_prog $dir/$dlname \$dldir/$dlname'
20047 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20048 dlpath=$dir/\$dldll~
20050 shlibpath_overrides_runpath=yes
20054 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20055 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20056 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20059 # MinGW DLLs use traditional 'lib' prefix
20060 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20061 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20062 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20063 # It is most probably a Windows format PATH printed by
20064 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20065 # path with ; separators, and with drive letters. We can handle the
20066 # drive letters (cygwin fileutils understands them), so leave them,
20067 # especially as we might pass files found there to a mingw objdump,
20068 # which wouldn't understand a cygwinified path. Ahh.
20069 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20071 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20075 # pw32 DLLs use 'pw' prefix rather than 'lib'
20076 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20082 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20085 dynamic_linker='Win32 ld.exe'
20086 # FIXME: first we should search . and the directory the executable is in
20090 darwin* | rhapsody*)
20091 dynamic_linker="$host_os dyld"
20092 version_type=darwin
20095 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20096 soname_spec='${libname}${release}${major}$shared_ext'
20097 shlibpath_overrides_runpath=yes
20098 shlibpath_var=DYLD_LIBRARY_PATH
20099 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20100 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20101 if test "$GCC" = yes; then
20102 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"`
20104 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20106 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20114 soname_spec='${libname}${release}${shared_ext}$major'
20115 shlibpath_var=LD_LIBRARY_PATH
20126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20127 soname_spec='${libname}${release}${shared_ext}$major'
20128 shlibpath_var=LD_LIBRARY_PATH
20129 shlibpath_overrides_runpath=no
20130 hardcode_into_libs=yes
20131 dynamic_linker='GNU ld.so'
20135 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20136 version_type=freebsd-$objformat
20137 case $version_type in
20139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20144 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20148 shlibpath_var=LD_LIBRARY_PATH
20151 shlibpath_overrides_runpath=yes
20153 freebsd3.01* | freebsdelf3.01*)
20154 shlibpath_overrides_runpath=yes
20155 hardcode_into_libs=yes
20158 shlibpath_overrides_runpath=no
20159 hardcode_into_libs=yes
20168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20169 soname_spec='${libname}${release}${shared_ext}$major'
20170 shlibpath_var=LD_LIBRARY_PATH
20171 hardcode_into_libs=yes
20174 hpux9* | hpux10* | hpux11*)
20175 # Give a soname corresponding to the major version so that dld.sl refuses to
20176 # link against other versions.
20180 case "$host_cpu" in
20183 hardcode_into_libs=yes
20184 dynamic_linker="$host_os dld.so"
20185 shlibpath_var=LD_LIBRARY_PATH
20186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20188 soname_spec='${libname}${release}${shared_ext}$major'
20189 if test "X$HPUX_IA64_MODE" = X32; then
20190 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20192 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20194 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20198 hardcode_into_libs=yes
20199 dynamic_linker="$host_os dld.sl"
20200 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20201 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20203 soname_spec='${libname}${release}${shared_ext}$major'
20204 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20205 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20209 dynamic_linker="$host_os dld.sl"
20210 shlibpath_var=SHLIB_PATH
20211 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20213 soname_spec='${libname}${release}${shared_ext}$major'
20216 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20217 postinstall_cmds='chmod 555 $lib'
20220 irix5* | irix6* | nonstopux*)
20222 nonstopux*) version_type=nonstopux ;;
20224 if test "$lt_cv_prog_gnu_ld" = yes; then
20232 soname_spec='${libname}${release}${shared_ext}$major'
20233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20235 irix5* | nonstopux*)
20236 libsuff= shlibsuff=
20239 case $LD in # libtool.m4 will add one of these switches to LD
20240 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20241 libsuff= shlibsuff= libmagic=32-bit;;
20242 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20243 libsuff=32 shlibsuff=N32 libmagic=N32;;
20244 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20245 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20246 *) libsuff= shlibsuff= libmagic=never-match;;
20250 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20251 shlibpath_overrides_runpath=no
20252 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20253 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20254 hardcode_into_libs=yes
20257 # No shared lib support for Linux oldld, aout, or coff.
20258 linux*oldld* | linux*aout* | linux*coff*)
20262 # This must be Linux ELF.
20267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20268 soname_spec='${libname}${release}${shared_ext}$major'
20269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20270 shlibpath_var=LD_LIBRARY_PATH
20271 shlibpath_overrides_runpath=no
20272 # This implies no fast_install, which is unacceptable.
20273 # Some rework will be needed to allow for fast_install
20274 # before this can be enabled.
20275 hardcode_into_libs=yes
20277 # Append ld.so.conf contents to the search path
20278 if test -f /etc/ld.so.conf; then
20279 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20280 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20283 # We used to test for /lib/ld.so.1 and disable shared libraries on
20284 # powerpc, because MkLinux only supported shared libraries with the
20285 # GNU dynamic linker. Since this was broken with cross compilers,
20286 # most powerpc-linux boxes support dynamic linking these days and
20287 # people can always --disable-shared, the test was removed, and we
20288 # assume the GNU/Linux dynamic linker is in use.
20289 dynamic_linker='GNU/Linux ld.so'
20296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20297 soname_spec='${libname}${release}${shared_ext}$major'
20298 shlibpath_var=LD_LIBRARY_PATH
20299 shlibpath_overrides_runpath=no
20300 hardcode_into_libs=yes
20301 dynamic_linker='GNU ld.so'
20308 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20311 dynamic_linker='NetBSD (a.out) ld.so'
20313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20314 soname_spec='${libname}${release}${shared_ext}$major'
20315 dynamic_linker='NetBSD ld.elf_so'
20317 shlibpath_var=LD_LIBRARY_PATH
20318 shlibpath_overrides_runpath=yes
20319 hardcode_into_libs=yes
20324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20325 shlibpath_var=LD_LIBRARY_PATH
20326 shlibpath_overrides_runpath=yes
20333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20334 soname_spec='${libname}${release}${shared_ext}$major'
20335 shlibpath_var=LD_LIBRARY_PATH
20336 shlibpath_overrides_runpath=yes
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20345 shlibpath_var=LD_LIBRARY_PATH
20346 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20348 openbsd2.[89] | openbsd2.[89].*)
20349 shlibpath_overrides_runpath=no
20352 shlibpath_overrides_runpath=yes
20356 shlibpath_overrides_runpath=yes
20361 libname_spec='$name'
20364 library_names_spec='$libname${shared_ext} $libname.a'
20365 dynamic_linker='OS/2 ld.exe'
20366 shlibpath_var=LIBPATH
20369 osf3* | osf4* | osf5*)
20373 soname_spec='${libname}${release}${shared_ext}$major'
20374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20375 shlibpath_var=LD_LIBRARY_PATH
20376 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20377 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20382 soname_spec='${libname}${release}${shared_ext}$major'
20383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20384 shlibpath_var=LD_LIBRARY_PATH
20391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20392 soname_spec='${libname}${release}${shared_ext}$major'
20393 shlibpath_var=LD_LIBRARY_PATH
20394 shlibpath_overrides_runpath=yes
20395 hardcode_into_libs=yes
20396 # ldd complains unless libraries are executable
20397 postinstall_cmds='chmod +x $lib'
20402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20403 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20404 shlibpath_var=LD_LIBRARY_PATH
20405 shlibpath_overrides_runpath=yes
20406 if test "$with_gnu_ld" = yes; then
20412 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20415 soname_spec='${libname}${release}${shared_ext}$major'
20416 shlibpath_var=LD_LIBRARY_PATH
20417 case $host_vendor in
20419 shlibpath_overrides_runpath=no
20421 export_dynamic_flag_spec='${wl}-Blargedynsym'
20422 runpath_var=LD_RUN_PATH
20430 shlibpath_overrides_runpath=no
20431 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20437 if test -d /usr/nec ;then
20439 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20440 soname_spec='$libname${shared_ext}.$major'
20441 shlibpath_var=LD_LIBRARY_PATH
20447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20448 soname_spec='${libname}${release}${shared_ext}$major'
20449 shlibpath_var=LD_LIBRARY_PATH
20456 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20457 echo "${ECHO_T}$dynamic_linker" >&6
20458 test "$dynamic_linker" = no && can_build_shared=no
20460 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20461 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20462 hardcode_action_F77=
20463 if test -n "$hardcode_libdir_flag_spec_F77" || \
20464 test -n "$runpath_var_F77" || \
20465 test "X$hardcode_automatic_F77" = "Xyes" ; then
20467 # We can hardcode non-existant directories.
20468 if test "$hardcode_direct_F77" != no &&
20469 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20470 # have to relink, otherwise we might link with an installed library
20471 # when we should be linking with a yet-to-be-installed one
20472 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20473 test "$hardcode_minus_L_F77" != no; then
20474 # Linking always hardcodes the temporary library directory.
20475 hardcode_action_F77=relink
20477 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20478 hardcode_action_F77=immediate
20481 # We cannot hardcode anything, or else we can only hardcode existing
20483 hardcode_action_F77=unsupported
20485 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20486 echo "${ECHO_T}$hardcode_action_F77" >&6
20488 if test "$hardcode_action_F77" = relink; then
20489 # Fast installation is not supported
20490 enable_fast_install=no
20491 elif test "$shlibpath_overrides_runpath" = yes ||
20492 test "$enable_shared" = no; then
20493 # Fast installation is not necessary
20494 enable_fast_install=needless
20499 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20500 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20501 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20502 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20503 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20504 echo "$as_me:$LINENO: result: yes" >&5
20505 echo "${ECHO_T}yes" >&6
20507 # FIXME - insert some real tests, host_os isn't really good enough
20510 if test -n "$STRIP" ; then
20511 striplib="$STRIP -x"
20512 echo "$as_me:$LINENO: result: yes" >&5
20513 echo "${ECHO_T}yes" >&6
20515 echo "$as_me:$LINENO: result: no" >&5
20516 echo "${ECHO_T}no" >&6
20520 echo "$as_me:$LINENO: result: no" >&5
20521 echo "${ECHO_T}no" >&6
20528 # The else clause should only fire when bootstrapping the
20529 # libtool distribution, otherwise you forgot to ship ltmain.sh
20530 # with your package, and you will get complaints that there are
20531 # no rules to generate ltmain.sh.
20532 if test -f "$ltmain"; then
20533 # See if we are running on zsh, and set the options which allow our commands through
20534 # without removal of \ escapes.
20535 if test -n "${ZSH_VERSION+set}" ; then
20536 setopt NO_GLOB_SUBST
20538 # Now quote all the things that may contain metacharacters while being
20539 # careful not to overquote the AC_SUBSTed values. We take copies of the
20540 # variables and quote the copies for generation of the libtool script.
20541 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20543 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20544 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20545 deplibs_check_method reload_flag reload_cmds need_locks \
20546 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20547 lt_cv_sys_global_symbol_to_c_name_address \
20548 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20549 old_postinstall_cmds old_postuninstall_cmds \
20553 lt_prog_compiler_wl_F77 \
20554 lt_prog_compiler_pic_F77 \
20555 lt_prog_compiler_static_F77 \
20556 lt_prog_compiler_no_builtin_flag_F77 \
20557 export_dynamic_flag_spec_F77 \
20558 thread_safe_flag_spec_F77 \
20559 whole_archive_flag_spec_F77 \
20560 enable_shared_with_static_runtimes_F77 \
20561 old_archive_cmds_F77 \
20562 old_archive_from_new_cmds_F77 \
20563 predep_objects_F77 \
20564 postdep_objects_F77 \
20567 compiler_lib_search_path_F77 \
20569 archive_expsym_cmds_F77 \
20570 postinstall_cmds_F77 \
20571 postuninstall_cmds_F77 \
20572 old_archive_from_expsyms_cmds_F77 \
20573 allow_undefined_flag_F77 \
20574 no_undefined_flag_F77 \
20575 export_symbols_cmds_F77 \
20576 hardcode_libdir_flag_spec_F77 \
20577 hardcode_libdir_flag_spec_ld_F77 \
20578 hardcode_libdir_separator_F77 \
20579 hardcode_automatic_F77 \
20581 module_expsym_cmds_F77 \
20582 lt_cv_prog_compiler_c_o_F77 \
20583 exclude_expsyms_F77 \
20584 include_expsyms_F77; do
20587 old_archive_cmds_F77 | \
20588 old_archive_from_new_cmds_F77 | \
20589 archive_cmds_F77 | \
20590 archive_expsym_cmds_F77 | \
20591 module_cmds_F77 | \
20592 module_expsym_cmds_F77 | \
20593 old_archive_from_expsyms_cmds_F77 | \
20594 export_symbols_cmds_F77 | \
20595 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20596 postinstall_cmds | postuninstall_cmds | \
20597 old_postinstall_cmds | old_postuninstall_cmds | \
20598 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20599 # Double-quote double-evaled strings.
20600 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20603 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20609 *'\$0 --fallback-echo"')
20610 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20616 cat <<__EOF__ >> "$cfgfile"
20617 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20619 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20621 # Shell to use when invoking shell scripts.
20624 # Whether or not to build shared libraries.
20625 build_libtool_libs=$enable_shared
20627 # Whether or not to build static libraries.
20628 build_old_libs=$enable_static
20630 # Whether or not to add -lc for building shared libraries.
20631 build_libtool_need_lc=$archive_cmds_need_lc_F77
20633 # Whether or not to disallow shared libs when runtime libs are static
20634 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20636 # Whether or not to optimize for fast installation.
20637 fast_install=$enable_fast_install
20640 host_alias=$host_alias
20643 # An echo program that does not interpret backslashes.
20648 AR_FLAGS=$lt_AR_FLAGS
20653 # A language-specific compiler.
20654 CC=$lt_compiler_F77
20656 # Is the compiler the GNU C compiler?
20662 # The linker used to build libraries.
20665 # Whether we need hard or soft links.
20668 # A BSD-compatible nm program.
20671 # A symbol stripping program
20674 # Used to examine libraries when file_magic_cmd begins "file"
20675 MAGIC_CMD=$MAGIC_CMD
20677 # Used on cygwin: DLL creation program.
20680 # Used on cygwin: object dumper.
20683 # Used on cygwin: assembler.
20686 # The name of the directory that contains temporary libtool files.
20689 # How to create reloadable object files.
20690 reload_flag=$lt_reload_flag
20691 reload_cmds=$lt_reload_cmds
20693 # How to pass a linker flag through the compiler.
20694 wl=$lt_lt_prog_compiler_wl_F77
20696 # Object file suffix (normally "o").
20697 objext="$ac_objext"
20699 # Old archive suffix (normally "a").
20702 # Shared library suffix (normally ".so").
20703 shrext_cmds='$shrext_cmds'
20705 # Executable file suffix (normally "").
20708 # Additional compiler flags for building library objects.
20709 pic_flag=$lt_lt_prog_compiler_pic_F77
20712 # What is the maximum length of a command?
20713 max_cmd_len=$lt_cv_sys_max_cmd_len
20715 # Does compiler simultaneously support -c and -o options?
20716 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20718 # Must we lock files when doing compilation ?
20719 need_locks=$lt_need_locks
20721 # Do we need the lib prefix for modules?
20722 need_lib_prefix=$need_lib_prefix
20724 # Do we need a version for libraries?
20725 need_version=$need_version
20727 # Whether dlopen is supported.
20728 dlopen_support=$enable_dlopen
20730 # Whether dlopen of programs is supported.
20731 dlopen_self=$enable_dlopen_self
20733 # Whether dlopen of statically linked programs is supported.
20734 dlopen_self_static=$enable_dlopen_self_static
20736 # Compiler flag to prevent dynamic linking.
20737 link_static_flag=$lt_lt_prog_compiler_static_F77
20739 # Compiler flag to turn off builtin functions.
20740 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20742 # Compiler flag to allow reflexive dlopens.
20743 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20745 # Compiler flag to generate shared objects directly from archives.
20746 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20748 # Compiler flag to generate thread-safe objects.
20749 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20751 # Library versioning type.
20752 version_type=$version_type
20754 # Format of library name prefix.
20755 libname_spec=$lt_libname_spec
20757 # List of archive names. First name is the real one, the rest are links.
20758 # The last name is the one that the linker finds with -lNAME.
20759 library_names_spec=$lt_library_names_spec
20761 # The coded name of the library, if different from the real name.
20762 soname_spec=$lt_soname_spec
20764 # Commands used to build and install an old-style archive.
20766 old_archive_cmds=$lt_old_archive_cmds_F77
20767 old_postinstall_cmds=$lt_old_postinstall_cmds
20768 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20770 # Create an old-style archive from a shared archive.
20771 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20773 # Create a temporary old-style archive to link instead of a shared archive.
20774 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20776 # Commands used to build and install a shared archive.
20777 archive_cmds=$lt_archive_cmds_F77
20778 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20779 postinstall_cmds=$lt_postinstall_cmds
20780 postuninstall_cmds=$lt_postuninstall_cmds
20782 # Commands used to build a loadable module (assumed same as above if empty)
20783 module_cmds=$lt_module_cmds_F77
20784 module_expsym_cmds=$lt_module_expsym_cmds_F77
20786 # Commands to strip libraries.
20787 old_striplib=$lt_old_striplib
20788 striplib=$lt_striplib
20790 # Dependencies to place before the objects being linked to create a
20792 predep_objects=$lt_predep_objects_F77
20794 # Dependencies to place after the objects being linked to create a
20796 postdep_objects=$lt_postdep_objects_F77
20798 # Dependencies to place before the objects being linked to create a
20800 predeps=$lt_predeps_F77
20802 # Dependencies to place after the objects being linked to create a
20804 postdeps=$lt_postdeps_F77
20806 # The library search path used internally by the compiler when linking
20807 # a shared library.
20808 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20810 # Method to check whether dependent libraries are shared objects.
20811 deplibs_check_method=$lt_deplibs_check_method
20813 # Command to use when deplibs_check_method == file_magic.
20814 file_magic_cmd=$lt_file_magic_cmd
20816 # Flag that allows shared libraries with undefined symbols to be built.
20817 allow_undefined_flag=$lt_allow_undefined_flag_F77
20819 # Flag that forces no undefined symbols.
20820 no_undefined_flag=$lt_no_undefined_flag_F77
20822 # Commands used to finish a libtool library installation in a directory.
20823 finish_cmds=$lt_finish_cmds
20825 # Same as above, but a single script fragment to be evaled but not shown.
20826 finish_eval=$lt_finish_eval
20828 # Take the output of nm and produce a listing of raw symbols and C names.
20829 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20831 # Transform the output of nm in a proper C declaration
20832 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20834 # Transform the output of nm in a C name address pair
20835 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20837 # This is the shared library runtime path variable.
20838 runpath_var=$runpath_var
20840 # This is the shared library path variable.
20841 shlibpath_var=$shlibpath_var
20843 # Is shlibpath searched before the hard-coded library search path?
20844 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20846 # How to hardcode a shared library path into an executable.
20847 hardcode_action=$hardcode_action_F77
20849 # Whether we should hardcode library paths into libraries.
20850 hardcode_into_libs=$hardcode_into_libs
20852 # Flag to hardcode \$libdir into a binary during linking.
20853 # This must work even if \$libdir does not exist.
20854 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20856 # If ld is used when linking, flag to hardcode \$libdir into
20857 # a binary during linking. This must work even if \$libdir does
20859 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20861 # Whether we need a single -rpath flag with a separated argument.
20862 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20864 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20865 # resulting binary.
20866 hardcode_direct=$hardcode_direct_F77
20868 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20869 # resulting binary.
20870 hardcode_minus_L=$hardcode_minus_L_F77
20872 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20873 # the resulting binary.
20874 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20876 # Set to yes if building a shared library automatically hardcodes DIR into the library
20877 # and all subsequent libraries and executables linked against it.
20878 hardcode_automatic=$hardcode_automatic_F77
20880 # Variables whose values should be saved in libtool wrapper scripts and
20881 # restored at relink time.
20882 variables_saved_for_relink="$variables_saved_for_relink"
20884 # Whether libtool must link a program against all its dependency libraries.
20885 link_all_deplibs=$link_all_deplibs_F77
20887 # Compile-time system search path for libraries
20888 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20890 # Run-time system search path for libraries
20891 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20893 # Fix the shell variable \$srcfile for the compiler.
20894 fix_srcfile_path="$fix_srcfile_path_F77"
20896 # Set to yes if exported symbols are required.
20897 always_export_symbols=$always_export_symbols_F77
20899 # The commands to list exported symbols.
20900 export_symbols_cmds=$lt_export_symbols_cmds_F77
20902 # The commands to extract the exported symbol list from a shared archive.
20903 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20905 # Symbols that should not be listed in the preloaded symbols.
20906 exclude_expsyms=$lt_exclude_expsyms_F77
20908 # Symbols that must always be exported.
20909 include_expsyms=$lt_include_expsyms_F77
20911 # ### END LIBTOOL TAG CONFIG: $tagname
20917 # If there is no Makefile yet, we rely on a make rule to execute
20918 # `config.status --recheck' to rerun these tests and create the
20919 # libtool script then.
20920 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20921 if test -f "$ltmain_in"; then
20922 test -f Makefile && make "$ltmain"
20928 ac_cpp='$CPP $CPPFLAGS'
20929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20941 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20943 ac_cpp='$CPP $CPPFLAGS'
20944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20949 # Source file extension for Java test sources.
20952 # Object file extension for compiled Java test sources.
20956 # Code to be used in simple compile tests
20957 lt_simple_compile_test_code="class foo {}\n"
20959 # Code to be used in simple link tests
20960 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20962 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20964 # If no C compiler was specified, use CC.
20967 # Allow CC to be a program name with arguments.
20971 # Allow CC to be a program name with arguments.
20977 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20978 archive_cmds_need_lc_GCJ=no
20981 lt_prog_compiler_no_builtin_flag_GCJ=
20983 if test "$GCC" = yes; then
20984 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20987 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20988 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20989 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20990 echo $ECHO_N "(cached) $ECHO_C" >&6
20992 lt_cv_prog_compiler_rtti_exceptions=no
20993 ac_outfile=conftest.$ac_objext
20994 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20995 lt_compiler_flag="-fno-rtti -fno-exceptions"
20996 # Insert the option either (1) after the last *FLAGS variable, or
20997 # (2) before a word containing "conftest.", or (3) at the end.
20998 # Note that $ac_compile itself does not contain backslashes and begins
20999 # with a dollar sign (not a hyphen), so the echo should work correctly.
21000 # The option is referenced via a variable to avoid confusing sed.
21001 lt_compile=`echo "$ac_compile" | $SED \
21002 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21004 -e 's:$: $lt_compiler_flag:'`
21005 (eval echo "\"\$as_me:21005: $lt_compile\"" >&5)
21006 (eval "$lt_compile" 2>conftest.err)
21008 cat conftest.err >&5
21009 echo "$as_me:21009: \$? = $ac_status" >&5
21010 if (exit $ac_status) && test -s "$ac_outfile"; then
21011 # The compiler can only warn and ignore the option if not recognized
21012 # So say no if there are warnings
21013 if test ! -s conftest.err; then
21014 lt_cv_prog_compiler_rtti_exceptions=yes
21020 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21021 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21023 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21024 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21031 lt_prog_compiler_wl_GCJ=
21032 lt_prog_compiler_pic_GCJ=
21033 lt_prog_compiler_static_GCJ=
21035 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21036 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21038 if test "$GCC" = yes; then
21039 lt_prog_compiler_wl_GCJ='-Wl,'
21040 lt_prog_compiler_static_GCJ='-static'
21044 # All AIX code is PIC.
21045 if test "$host_cpu" = ia64; then
21046 # AIX 5 now supports IA64 processor
21047 lt_prog_compiler_static_GCJ='-Bstatic'
21052 # FIXME: we need at least 68020 code to build shared libraries, but
21053 # adding the `-m68020' flag to GCC prevents building anything better,
21055 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21058 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21059 # PIC is the default for these OSes.
21062 mingw* | pw32* | os2*)
21063 # This hack is so that the source file can tell whether it is being
21064 # built for inclusion in a dll (and should export symbols for example).
21065 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21068 darwin* | rhapsody*)
21069 # PIC is the default on this platform
21070 # Common symbols not allowed in MH_DYLIB files
21071 lt_prog_compiler_pic_GCJ='-fno-common'
21075 # Just because we use GCC doesn't mean we suddenly get shared libraries
21076 # on systems that don't support them.
21077 lt_prog_compiler_can_build_shared_GCJ=no
21082 if test -d /usr/nec; then
21083 lt_prog_compiler_pic_GCJ=-Kconform_pic
21088 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21089 # not for PA HP-UX.
21090 case "$host_cpu" in
21095 lt_prog_compiler_pic_GCJ='-fPIC'
21101 lt_prog_compiler_pic_GCJ='-fPIC'
21105 # PORTME Check for flag to pass linker flags through the system compiler.
21108 lt_prog_compiler_wl_GCJ='-Wl,'
21109 if test "$host_cpu" = ia64; then
21110 # AIX 5 now supports IA64 processor
21111 lt_prog_compiler_static_GCJ='-Bstatic'
21113 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21117 # PIC is the default on this platform
21118 # Common symbols not allowed in MH_DYLIB files
21119 case "$cc_basename" in
21121 lt_prog_compiler_pic_GCJ='-qnocommon'
21122 lt_prog_compiler_wl_GCJ='-Wl,'
21127 mingw* | pw32* | os2*)
21128 # This hack is so that the source file can tell whether it is being
21129 # built for inclusion in a dll (and should export symbols for example).
21130 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21133 hpux9* | hpux10* | hpux11*)
21134 lt_prog_compiler_wl_GCJ='-Wl,'
21135 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21136 # not for PA HP-UX.
21137 case "$host_cpu" in
21142 lt_prog_compiler_pic_GCJ='+Z'
21145 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21146 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21149 irix5* | irix6* | nonstopux*)
21150 lt_prog_compiler_wl_GCJ='-Wl,'
21151 # PIC (with -KPIC) is the default.
21152 lt_prog_compiler_static_GCJ='-non_shared'
21156 lt_prog_compiler_pic_GCJ='-KPIC'
21157 lt_prog_compiler_static_GCJ='-Bstatic'
21163 lt_prog_compiler_wl_GCJ='-Wl,'
21164 lt_prog_compiler_pic_GCJ='-KPIC'
21165 lt_prog_compiler_static_GCJ='-static'
21168 lt_prog_compiler_wl_GCJ='-Wl,'
21169 # All Alpha code is PIC.
21170 lt_prog_compiler_static_GCJ='-non_shared'
21175 osf3* | osf4* | osf5*)
21176 lt_prog_compiler_wl_GCJ='-Wl,'
21177 # All OSF/1 code is PIC.
21178 lt_prog_compiler_static_GCJ='-non_shared'
21182 lt_prog_compiler_pic_GCJ='-Kpic'
21183 lt_prog_compiler_static_GCJ='-dn'
21187 lt_prog_compiler_wl_GCJ='-Wl,'
21188 lt_prog_compiler_pic_GCJ='-KPIC'
21189 lt_prog_compiler_static_GCJ='-Bstatic'
21193 lt_prog_compiler_wl_GCJ='-Qoption ld '
21194 lt_prog_compiler_pic_GCJ='-PIC'
21195 lt_prog_compiler_static_GCJ='-Bstatic'
21198 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21199 lt_prog_compiler_wl_GCJ='-Wl,'
21200 lt_prog_compiler_pic_GCJ='-KPIC'
21201 lt_prog_compiler_static_GCJ='-Bstatic'
21205 if test -d /usr/nec ;then
21206 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21207 lt_prog_compiler_static_GCJ='-Bstatic'
21212 lt_prog_compiler_pic_GCJ='-pic'
21213 lt_prog_compiler_static_GCJ='-Bstatic'
21217 lt_prog_compiler_can_build_shared_GCJ=no
21222 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21223 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21226 # Check to make sure the PIC flag actually works.
21228 if test -n "$lt_prog_compiler_pic_GCJ"; then
21230 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21231 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21232 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21233 echo $ECHO_N "(cached) $ECHO_C" >&6
21235 lt_prog_compiler_pic_works_GCJ=no
21236 ac_outfile=conftest.$ac_objext
21237 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21238 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21239 # Insert the option either (1) after the last *FLAGS variable, or
21240 # (2) before a word containing "conftest.", or (3) at the end.
21241 # Note that $ac_compile itself does not contain backslashes and begins
21242 # with a dollar sign (not a hyphen), so the echo should work correctly.
21243 # The option is referenced via a variable to avoid confusing sed.
21244 lt_compile=`echo "$ac_compile" | $SED \
21245 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21247 -e 's:$: $lt_compiler_flag:'`
21248 (eval echo "\"\$as_me:21248: $lt_compile\"" >&5)
21249 (eval "$lt_compile" 2>conftest.err)
21251 cat conftest.err >&5
21252 echo "$as_me:21252: \$? = $ac_status" >&5
21253 if (exit $ac_status) && test -s "$ac_outfile"; then
21254 # The compiler can only warn and ignore the option if not recognized
21255 # So say no if there are warnings
21256 if test ! -s conftest.err; then
21257 lt_prog_compiler_pic_works_GCJ=yes
21263 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21264 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21266 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21267 case $lt_prog_compiler_pic_GCJ in
21269 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21272 lt_prog_compiler_pic_GCJ=
21273 lt_prog_compiler_can_build_shared_GCJ=no
21278 # For platforms which do not support PIC, -DPIC is meaningless:
21280 lt_prog_compiler_pic_GCJ=
21283 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21287 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21288 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21289 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21290 echo $ECHO_N "(cached) $ECHO_C" >&6
21292 lt_cv_prog_compiler_c_o_GCJ=no
21293 $rm -r conftest 2>/dev/null
21297 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21299 lt_compiler_flag="-o out/conftest2.$ac_objext"
21300 # Insert the option either (1) after the last *FLAGS variable, or
21301 # (2) before a word containing "conftest.", or (3) at the end.
21302 # Note that $ac_compile itself does not contain backslashes and begins
21303 # with a dollar sign (not a hyphen), so the echo should work correctly.
21304 lt_compile=`echo "$ac_compile" | $SED \
21305 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21307 -e 's:$: $lt_compiler_flag:'`
21308 (eval echo "\"\$as_me:21308: $lt_compile\"" >&5)
21309 (eval "$lt_compile" 2>out/conftest.err)
21311 cat out/conftest.err >&5
21312 echo "$as_me:21312: \$? = $ac_status" >&5
21313 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21315 # The compiler can only warn and ignore the option if not recognized
21316 # So say no if there are warnings
21317 if test ! -s out/conftest.err; then
21318 lt_cv_prog_compiler_c_o_GCJ=yes
21323 # SGI C++ compiler will create directory out/ii_files/ for
21324 # template instantiation
21325 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21326 $rm out/* && rmdir out
21332 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21333 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21336 hard_links="nottested"
21337 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21338 # do not overwrite the value of need_locks provided by the user
21339 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21340 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21343 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21345 ln conftest.a conftest.b 2>&5 || hard_links=no
21346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21347 echo "$as_me:$LINENO: result: $hard_links" >&5
21348 echo "${ECHO_T}$hard_links" >&6
21349 if test "$hard_links" = no; then
21350 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21351 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21358 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21359 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21362 allow_undefined_flag_GCJ=
21363 enable_shared_with_static_runtimes_GCJ=no
21365 archive_expsym_cmds_GCJ=
21366 old_archive_From_new_cmds_GCJ=
21367 old_archive_from_expsyms_cmds_GCJ=
21368 export_dynamic_flag_spec_GCJ=
21369 whole_archive_flag_spec_GCJ=
21370 thread_safe_flag_spec_GCJ=
21371 hardcode_libdir_flag_spec_GCJ=
21372 hardcode_libdir_flag_spec_ld_GCJ=
21373 hardcode_libdir_separator_GCJ=
21374 hardcode_direct_GCJ=no
21375 hardcode_minus_L_GCJ=no
21376 hardcode_shlibpath_var_GCJ=unsupported
21377 link_all_deplibs_GCJ=unknown
21378 hardcode_automatic_GCJ=no
21380 module_expsym_cmds_GCJ=
21381 always_export_symbols_GCJ=no
21382 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21383 # include_expsyms should be a list of space-separated symbols to be *always*
21384 # included in the symbol list
21385 include_expsyms_GCJ=
21386 # exclude_expsyms can be an extended regexp of symbols to exclude
21387 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21388 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21389 # as well as any symbol that contains `d'.
21390 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21391 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21392 # platforms (ab)use it in PIC code, but their linkers get confused if
21393 # the symbol is explicitly referenced. Since portable code cannot
21394 # rely on this symbol name, it's probably fine to never include it in
21395 # preloaded symbol tables.
21396 extract_expsyms_cmds=
21399 cygwin* | mingw* | pw32*)
21400 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21401 # When not using gcc, we currently assume that we are using
21402 # Microsoft Visual C++.
21403 if test "$GCC" != yes; then
21413 if test "$with_gnu_ld" = yes; then
21414 # If archive_cmds runs LD, not CC, wlarc should be empty
21417 # See if GNU ld supports shared libraries.
21419 aix3* | aix4* | aix5*)
21420 # On AIX/PPC, the GNU linker is very broken
21421 if test "$host_cpu" != ia64; then
21425 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21426 *** to be unable to reliably create shared libraries on AIX.
21427 *** Therefore, libtool is disabling shared libraries support. If you
21428 *** really care for shared libraries, you may want to modify your PATH
21429 *** so that a non-GNU linker is found, and then restart.
21436 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)'
21437 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21438 hardcode_minus_L_GCJ=yes
21440 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21441 # that the semantics of dynamic libraries on AmigaOS, at least up
21442 # to version 4, is to share data among multiple programs linked
21443 # with the same dynamic library. Since this doesn't match the
21444 # behavior of shared libraries on other platforms, we can't use
21450 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21451 allow_undefined_flag_GCJ=unsupported
21452 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21453 # support --undefined. This deserves some investigation. FIXME
21454 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21460 cygwin* | mingw* | pw32*)
21461 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21462 # as there is no search path for DLLs.
21463 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21464 allow_undefined_flag_GCJ=unsupported
21465 always_export_symbols_GCJ=no
21466 enable_shared_with_static_runtimes_GCJ=yes
21467 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21469 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21470 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21471 # If the export-symbols file already is a .def file (1st line
21472 # is EXPORTS), use it as is; otherwise, prepend...
21473 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21474 cp $export_symbols $output_objdir/$soname.def;
21476 echo EXPORTS > $output_objdir/$soname.def;
21477 cat $export_symbols >> $output_objdir/$soname.def;
21479 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21486 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21487 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21490 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21491 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21496 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21500 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21501 *** create shared libraries on Solaris systems. Therefore, libtool
21502 *** is disabling shared libraries support. We urge you to upgrade GNU
21503 *** binutils to release 2.9.1 or newer. Another option is to modify
21504 *** your PATH or compiler configuration so that the native linker is
21505 *** used, and then restart.
21508 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21509 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21510 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21517 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21519 hardcode_direct_GCJ=yes
21520 hardcode_shlibpath_var_GCJ=no
21524 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21525 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21526 archive_cmds_GCJ="$tmp_archive_cmds"
21527 supports_anon_versioning=no
21528 case `$LD -v 2>/dev/null` in
21529 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21530 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21531 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21532 *\ 2.11.*) ;; # other 2.11 versions
21533 *) supports_anon_versioning=yes ;;
21535 if test $supports_anon_versioning = yes; then
21536 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21537 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21538 $echo "local: *; };" >> $output_objdir/$libname.ver~
21539 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21541 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21549 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21550 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21551 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21558 if test "$ld_shlibs_GCJ" = yes; then
21559 runpath_var=LD_RUN_PATH
21560 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21561 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21562 # ancient GNU ld didn't support --whole-archive et. al.
21563 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21564 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21566 whole_archive_flag_spec_GCJ=
21570 # PORTME fill in a description of your system's linker (not GNU ld)
21573 allow_undefined_flag_GCJ=unsupported
21574 always_export_symbols_GCJ=yes
21575 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'
21576 # Note: this linker hardcodes the directories in LIBPATH if there
21577 # are no directories specified by -L.
21578 hardcode_minus_L_GCJ=yes
21579 if test "$GCC" = yes && test -z "$link_static_flag"; then
21580 # Neither direct hardcoding nor static linking is supported with a
21582 hardcode_direct_GCJ=unsupported
21587 if test "$host_cpu" = ia64; then
21588 # On IA64, the linker does run time linking by default, so we don't
21589 # have to do anything special.
21590 aix_use_runtimelinking=no
21591 exp_sym_flag='-Bexport'
21594 # If we're using GNU nm, then we don't want the "-C" option.
21595 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21596 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21597 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'
21599 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'
21601 aix_use_runtimelinking=no
21603 # Test if we are trying to use run time linking or normal
21604 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21605 # need to do runtime linking.
21606 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21607 for ld_flag in $LDFLAGS; do
21608 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21609 aix_use_runtimelinking=yes
21615 exp_sym_flag='-bexport'
21616 no_entry_flag='-bnoentry'
21619 # When large executables or shared objects are built, AIX ld can
21620 # have problems creating the table of contents. If linking a library
21621 # or program results in "error TOC overflow" add -mminimal-toc to
21622 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21623 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21625 archive_cmds_GCJ=''
21626 hardcode_direct_GCJ=yes
21627 hardcode_libdir_separator_GCJ=':'
21628 link_all_deplibs_GCJ=yes
21630 if test "$GCC" = yes; then
21631 case $host_os in aix4.012|aix4.012.*)
21632 # We only want to do this on AIX 4.2 and lower, the check
21633 # below for broken collect2 doesn't work under 4.3+
21634 collect2name=`${CC} -print-prog-name=collect2`
21635 if test -f "$collect2name" && \
21636 strings "$collect2name" | grep resolve_lib_name >/dev/null
21638 # We have reworked collect2
21639 hardcode_direct_GCJ=yes
21641 # We have old collect2
21642 hardcode_direct_GCJ=unsupported
21643 # It fails to find uninstalled libraries when the uninstalled
21644 # path is not listed in the libpath. Setting hardcode_minus_L
21645 # to unsupported forces relinking
21646 hardcode_minus_L_GCJ=yes
21647 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21648 hardcode_libdir_separator_GCJ=
21651 shared_flag='-shared'
21654 if test "$host_cpu" = ia64; then
21655 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21656 # chokes on -Wl,-G. The following line is correct:
21659 if test "$aix_use_runtimelinking" = yes; then
21660 shared_flag='${wl}-G'
21662 shared_flag='${wl}-bM:SRE'
21667 # It seems that -bexpall does not export symbols beginning with
21668 # underscore (_), so it is better to generate a list of symbols to export.
21669 always_export_symbols_GCJ=yes
21670 if test "$aix_use_runtimelinking" = yes; then
21671 # Warning - without using the other runtime loading flags (-brtl),
21672 # -berok will link without error, but may produce a broken library.
21673 allow_undefined_flag_GCJ='-berok'
21674 # Determine the default libpath from the value encoded in an empty executable.
21675 cat >conftest.$ac_ext <<_ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h. */
21690 rm -f conftest.$ac_objext conftest$ac_exeext
21691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21692 (eval $ac_link) 2>conftest.er1
21694 grep -v '^ *+' conftest.er1 >conftest.err
21696 cat conftest.err >&5
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); } &&
21699 { ac_try='test -z "$ac_c_werror_flag"
21700 || test ! -s conftest.err'
21701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21702 (eval $ac_try) 2>&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); }; } &&
21706 { ac_try='test -s conftest$ac_exeext'
21707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21708 (eval $ac_try) 2>&5
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); }; }; then
21713 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21715 # Check for a 64-bit object if we didn't find anything.
21716 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; }
21719 echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21723 rm -f conftest.err conftest.$ac_objext \
21724 conftest$ac_exeext conftest.$ac_ext
21725 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21727 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21728 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"
21730 if test "$host_cpu" = ia64; then
21731 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21732 allow_undefined_flag_GCJ="-z nodefs"
21733 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"
21735 # Determine the default libpath from the value encoded in an empty executable.
21736 cat >conftest.$ac_ext <<_ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h. */
21751 rm -f conftest.$ac_objext conftest$ac_exeext
21752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21753 (eval $ac_link) 2>conftest.er1
21755 grep -v '^ *+' conftest.er1 >conftest.err
21757 cat conftest.err >&5
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); } &&
21760 { ac_try='test -z "$ac_c_werror_flag"
21761 || test ! -s conftest.err'
21762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21763 (eval $ac_try) 2>&5
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); }; } &&
21767 { ac_try='test -s conftest$ac_exeext'
21768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21769 (eval $ac_try) 2>&5
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); }; }; then
21774 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21776 # Check for a 64-bit object if we didn't find anything.
21777 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; }
21780 echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21784 rm -f conftest.err conftest.$ac_objext \
21785 conftest$ac_exeext conftest.$ac_ext
21786 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21788 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21789 # Warning - without using the other run time loading flags,
21790 # -berok will link without error, but may produce a broken library.
21791 no_undefined_flag_GCJ=' ${wl}-bernotok'
21792 allow_undefined_flag_GCJ=' ${wl}-berok'
21793 # -bexpall does not export symbols beginning with underscore (_)
21794 always_export_symbols_GCJ=yes
21795 # Exported symbols can be pulled into shared objects from archives
21796 whole_archive_flag_spec_GCJ=' '
21797 archive_cmds_need_lc_GCJ=yes
21798 # This is similar to how AIX traditionally builds it's shared libraries.
21799 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'
21805 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)'
21806 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21807 hardcode_minus_L_GCJ=yes
21808 # see comment about different semantics on the GNU ld section
21813 export_dynamic_flag_spec_GCJ=-rdynamic
21816 cygwin* | mingw* | pw32*)
21817 # When not using gcc, we currently assume that we are using
21818 # Microsoft Visual C++.
21819 # hardcode_libdir_flag_spec is actually meaningless, as there is
21820 # no search path for DLLs.
21821 hardcode_libdir_flag_spec_GCJ=' '
21822 allow_undefined_flag_GCJ=unsupported
21823 # Tell ltmain to make .lib files, not .a files.
21825 # Tell ltmain to make .dll files, not .so files.
21827 # FIXME: Setting linknames here is a bad hack.
21828 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21829 # The linker will automatically build a .lib file if we build a DLL.
21830 old_archive_From_new_cmds_GCJ='true'
21831 # FIXME: Should let the user specify the lib program.
21832 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21833 fix_srcfile_path='`cygpath -w "$srcfile"`'
21834 enable_shared_with_static_runtimes_GCJ=yes
21837 darwin* | rhapsody*)
21839 rhapsody* | darwin1.[012])
21840 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21843 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21844 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21846 case ${MACOSX_DEPLOYMENT_TARGET} in
21848 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21851 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21857 archive_cmds_need_lc_GCJ=no
21858 hardcode_direct_GCJ=no
21859 hardcode_automatic_GCJ=yes
21860 hardcode_shlibpath_var_GCJ=unsupported
21861 whole_archive_flag_spec_GCJ=''
21862 link_all_deplibs_GCJ=yes
21863 if test "$GCC" = yes ; then
21864 output_verbose_link_cmd='echo'
21865 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21866 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21867 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21868 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}'
21869 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}'
21871 case "$cc_basename" in
21873 output_verbose_link_cmd='echo'
21874 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21875 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21876 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21877 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}'
21878 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}'
21888 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21889 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21890 hardcode_shlibpath_var_GCJ=no
21897 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21898 # support. Future versions do this automatically, but an explicit c++rt0.o
21899 # does not break anything, and helps significantly (at the cost of a little
21902 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21903 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21904 hardcode_direct_GCJ=yes
21905 hardcode_shlibpath_var_GCJ=no
21908 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21910 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21911 hardcode_direct_GCJ=yes
21912 hardcode_minus_L_GCJ=yes
21913 hardcode_shlibpath_var_GCJ=no
21916 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21917 freebsd* | kfreebsd*-gnu)
21918 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21919 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21920 hardcode_direct_GCJ=yes
21921 hardcode_shlibpath_var_GCJ=no
21925 if test "$GCC" = yes; then
21926 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'
21928 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'
21930 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21931 hardcode_libdir_separator_GCJ=:
21932 hardcode_direct_GCJ=yes
21934 # hardcode_minus_L: Not really in the search PATH,
21935 # but as the default location of the library.
21936 hardcode_minus_L_GCJ=yes
21937 export_dynamic_flag_spec_GCJ='${wl}-E'
21941 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21942 case "$host_cpu" in
21944 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21947 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21951 case "$host_cpu" in
21953 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21956 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21960 if test "$with_gnu_ld" = no; then
21961 case "$host_cpu" in
21963 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21964 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21965 hardcode_libdir_separator_GCJ=:
21966 hardcode_direct_GCJ=no
21967 hardcode_shlibpath_var_GCJ=no
21970 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21971 hardcode_direct_GCJ=no
21972 hardcode_shlibpath_var_GCJ=no
21974 # hardcode_minus_L: Not really in the search PATH,
21975 # but as the default location of the library.
21976 hardcode_minus_L_GCJ=yes
21979 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21980 hardcode_libdir_separator_GCJ=:
21981 hardcode_direct_GCJ=yes
21982 export_dynamic_flag_spec_GCJ='${wl}-E'
21984 # hardcode_minus_L: Not really in the search PATH,
21985 # but as the default location of the library.
21986 hardcode_minus_L_GCJ=yes
21992 irix5* | irix6* | nonstopux*)
21993 if test "$GCC" = yes; then
21994 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'
21996 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'
21997 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21999 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22000 hardcode_libdir_separator_GCJ=:
22001 link_all_deplibs_GCJ=yes
22005 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22006 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22008 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22010 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22011 hardcode_direct_GCJ=yes
22012 hardcode_shlibpath_var_GCJ=no
22016 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22017 hardcode_direct_GCJ=yes
22018 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22019 hardcode_libdir_separator_GCJ=:
22020 hardcode_shlibpath_var_GCJ=no
22024 hardcode_direct_GCJ=yes
22025 hardcode_shlibpath_var_GCJ=no
22026 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22027 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22028 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22029 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22030 export_dynamic_flag_spec_GCJ='${wl}-E'
22033 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22034 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22035 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22038 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22039 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22046 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22047 hardcode_minus_L_GCJ=yes
22048 allow_undefined_flag_GCJ=unsupported
22049 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'
22050 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22054 if test "$GCC" = yes; then
22055 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22056 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'
22058 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22059 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'
22061 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22062 hardcode_libdir_separator_GCJ=:
22065 osf4* | osf5*) # as osf3* with the addition of -msym flag
22066 if test "$GCC" = yes; then
22067 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22068 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'
22069 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22071 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22072 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'
22073 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~
22074 $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'
22076 # Both c and cxx compiler support -rpath directly
22077 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22079 hardcode_libdir_separator_GCJ=:
22083 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22084 hardcode_shlibpath_var_GCJ=no
22085 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22086 runpath_var=LD_RUN_PATH
22087 hardcode_runpath_var=yes
22091 no_undefined_flag_GCJ=' -z text'
22092 if test "$GCC" = yes; then
22093 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22094 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22095 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22097 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22098 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22099 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22101 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22102 hardcode_shlibpath_var_GCJ=no
22104 solaris2.[0-5] | solaris2.[0-5].*) ;;
22105 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22106 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22108 link_all_deplibs_GCJ=yes
22112 if test "x$host_vendor" = xsequent; then
22113 # Use $CC to link under sequent, because it throws in some extra .o
22114 # files that make .init and .fini sections work.
22115 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22117 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22119 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22120 hardcode_direct_GCJ=yes
22121 hardcode_minus_L_GCJ=yes
22122 hardcode_shlibpath_var_GCJ=no
22126 case $host_vendor in
22128 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22129 hardcode_direct_GCJ=yes # is this really true???
22132 ## LD is ld it makes a PLAMLIB
22133 ## CC just makes a GrossModule.
22134 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22135 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22136 hardcode_direct_GCJ=no
22139 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22140 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22143 runpath_var='LD_RUN_PATH'
22144 hardcode_shlibpath_var_GCJ=no
22148 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22149 hardcode_shlibpath_var_GCJ=no
22150 export_dynamic_flag_spec_GCJ='-Bexport'
22154 if test -d /usr/nec; then
22155 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22156 hardcode_shlibpath_var_GCJ=no
22157 runpath_var=LD_RUN_PATH
22158 hardcode_runpath_var=yes
22164 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22165 hardcode_direct_GCJ=yes
22166 hardcode_minus_L_GCJ=no
22167 hardcode_shlibpath_var_GCJ=no
22168 hardcode_runpath_var=yes
22169 runpath_var=LD_RUN_PATH
22172 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22173 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22174 if test "$GCC" = yes; then
22175 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22177 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22179 runpath_var='LD_RUN_PATH'
22180 hardcode_shlibpath_var_GCJ=no
22184 no_undefined_flag_GCJ=' -z text'
22185 # $CC -shared without GNU ld will not create a library from C++
22186 # object files and a static libstdc++, better avoid it by now
22187 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22188 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22189 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22190 hardcode_libdir_flag_spec_GCJ=
22191 hardcode_shlibpath_var_GCJ=no
22192 runpath_var='LD_RUN_PATH'
22196 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22197 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22198 hardcode_shlibpath_var_GCJ=no
22207 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22208 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22209 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22211 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22212 if test "$GCC" = yes; then
22213 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22217 # Do we need to explicitly link libc?
22219 case "x$archive_cmds_need_lc_GCJ" in
22221 # Assume -lc should be added
22222 archive_cmds_need_lc_GCJ=yes
22224 if test "$enable_shared" = yes && test "$GCC" = yes; then
22225 case $archive_cmds_GCJ in
22227 # FIXME: we may have to deal with multi-command sequences.
22230 # Test whether the compiler implicitly links with -lc since on some
22231 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22232 # to ld, don't add -lc before -lgcc.
22233 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22234 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22236 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22239 (eval $ac_compile) 2>&5
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); } 2>conftest.err; then
22245 libobjs=conftest.$ac_objext
22247 wl=$lt_prog_compiler_wl_GCJ
22253 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22254 allow_undefined_flag_GCJ=
22255 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22256 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); }
22261 archive_cmds_need_lc_GCJ=no
22263 archive_cmds_need_lc_GCJ=yes
22265 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22267 cat conftest.err 1>&5
22270 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22271 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22278 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22279 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22280 library_names_spec=
22281 libname_spec='lib$name'
22285 postuninstall_cmds=
22289 shlibpath_overrides_runpath=unknown
22291 dynamic_linker="$host_os ld.so"
22292 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22293 if test "$GCC" = yes; then
22294 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22295 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22296 # if the path contains ";" then we assume it to be the separator
22297 # otherwise default to the standard path separator (i.e. ":") - it is
22298 # assumed that no part of a normal pathname contains ";" but that should
22299 # okay in the real world where ";" in dirpaths is itself problematic.
22300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22302 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22305 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22307 need_lib_prefix=unknown
22308 hardcode_into_libs=no
22310 # when you set need_version to no, make sure it does not cause -set_version
22311 # flags to be left without arguments
22312 need_version=unknown
22317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22318 shlibpath_var=LIBPATH
22320 # AIX 3 has no versioning support, so we append a major version to the name.
22321 soname_spec='${libname}${release}${shared_ext}$major'
22328 hardcode_into_libs=yes
22329 if test "$host_cpu" = ia64; then
22330 # AIX 5 supports IA64
22331 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22332 shlibpath_var=LD_LIBRARY_PATH
22334 # With GCC up to 2.95.x, collect2 would create an import file
22335 # for dependence libraries. The import file would start with
22336 # the line `#! .'. This would cause the generated library to
22337 # depend on `.', always an invalid library. This was fixed in
22338 # development snapshots of GCC prior to 3.0.
22340 aix4 | aix4.[01] | aix4.[01].*)
22341 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22343 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22346 can_build_shared=no
22350 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22351 # soname into executable. Probably we can add versioning support to
22352 # collect2, so additional links can be useful in future.
22353 if test "$aix_use_runtimelinking" = yes; then
22354 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22355 # instead of lib<name>.a to let people know that these are not
22356 # typical AIX shared libraries.
22357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22359 # We preserve .a as extension for shared libraries through AIX4.2
22360 # and later when we are not doing run time linking.
22361 library_names_spec='${libname}${release}.a $libname.a'
22362 soname_spec='${libname}${release}${shared_ext}$major'
22364 shlibpath_var=LIBPATH
22369 library_names_spec='$libname.ixlibrary $libname.a'
22370 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22371 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'
22375 library_names_spec='${libname}${shared_ext}'
22376 dynamic_linker="$host_os ld.so"
22377 shlibpath_var=LIBRARY_PATH
22383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22384 soname_spec='${libname}${release}${shared_ext}$major'
22385 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22386 shlibpath_var=LD_LIBRARY_PATH
22387 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22388 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22389 # the default ld.so.conf also contains /usr/contrib/lib and
22390 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22391 # libtool to hard-code these into programs
22394 cygwin* | mingw* | pw32*)
22395 version_type=windows
22400 case $GCC,$host_os in
22401 yes,cygwin* | yes,mingw* | yes,pw32*)
22402 library_names_spec='$libname.dll.a'
22403 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22404 postinstall_cmds='base_file=`basename \${file}`~
22405 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22406 dldir=$destdir/`dirname \$dlpath`~
22407 test -d \$dldir || mkdir -p \$dldir~
22408 $install_prog $dir/$dlname \$dldir/$dlname'
22409 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22410 dlpath=$dir/\$dldll~
22412 shlibpath_overrides_runpath=yes
22416 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22417 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22418 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22421 # MinGW DLLs use traditional 'lib' prefix
22422 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22423 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22424 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22425 # It is most probably a Windows format PATH printed by
22426 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22427 # path with ; separators, and with drive letters. We can handle the
22428 # drive letters (cygwin fileutils understands them), so leave them,
22429 # especially as we might pass files found there to a mingw objdump,
22430 # which wouldn't understand a cygwinified path. Ahh.
22431 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22433 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22437 # pw32 DLLs use 'pw' prefix rather than 'lib'
22438 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22444 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22447 dynamic_linker='Win32 ld.exe'
22448 # FIXME: first we should search . and the directory the executable is in
22452 darwin* | rhapsody*)
22453 dynamic_linker="$host_os dyld"
22454 version_type=darwin
22457 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22458 soname_spec='${libname}${release}${major}$shared_ext'
22459 shlibpath_overrides_runpath=yes
22460 shlibpath_var=DYLD_LIBRARY_PATH
22461 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22462 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22463 if test "$GCC" = yes; then
22464 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"`
22466 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22468 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22476 soname_spec='${libname}${release}${shared_ext}$major'
22477 shlibpath_var=LD_LIBRARY_PATH
22488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22489 soname_spec='${libname}${release}${shared_ext}$major'
22490 shlibpath_var=LD_LIBRARY_PATH
22491 shlibpath_overrides_runpath=no
22492 hardcode_into_libs=yes
22493 dynamic_linker='GNU ld.so'
22497 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22498 version_type=freebsd-$objformat
22499 case $version_type in
22501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22506 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22510 shlibpath_var=LD_LIBRARY_PATH
22513 shlibpath_overrides_runpath=yes
22515 freebsd3.01* | freebsdelf3.01*)
22516 shlibpath_overrides_runpath=yes
22517 hardcode_into_libs=yes
22520 shlibpath_overrides_runpath=no
22521 hardcode_into_libs=yes
22530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22531 soname_spec='${libname}${release}${shared_ext}$major'
22532 shlibpath_var=LD_LIBRARY_PATH
22533 hardcode_into_libs=yes
22536 hpux9* | hpux10* | hpux11*)
22537 # Give a soname corresponding to the major version so that dld.sl refuses to
22538 # link against other versions.
22542 case "$host_cpu" in
22545 hardcode_into_libs=yes
22546 dynamic_linker="$host_os dld.so"
22547 shlibpath_var=LD_LIBRARY_PATH
22548 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22550 soname_spec='${libname}${release}${shared_ext}$major'
22551 if test "X$HPUX_IA64_MODE" = X32; then
22552 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22554 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22556 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22560 hardcode_into_libs=yes
22561 dynamic_linker="$host_os dld.sl"
22562 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22565 soname_spec='${libname}${release}${shared_ext}$major'
22566 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22567 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22571 dynamic_linker="$host_os dld.sl"
22572 shlibpath_var=SHLIB_PATH
22573 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22575 soname_spec='${libname}${release}${shared_ext}$major'
22578 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22579 postinstall_cmds='chmod 555 $lib'
22582 irix5* | irix6* | nonstopux*)
22584 nonstopux*) version_type=nonstopux ;;
22586 if test "$lt_cv_prog_gnu_ld" = yes; then
22594 soname_spec='${libname}${release}${shared_ext}$major'
22595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22597 irix5* | nonstopux*)
22598 libsuff= shlibsuff=
22601 case $LD in # libtool.m4 will add one of these switches to LD
22602 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22603 libsuff= shlibsuff= libmagic=32-bit;;
22604 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22605 libsuff=32 shlibsuff=N32 libmagic=N32;;
22606 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22607 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22608 *) libsuff= shlibsuff= libmagic=never-match;;
22612 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22613 shlibpath_overrides_runpath=no
22614 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22615 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22616 hardcode_into_libs=yes
22619 # No shared lib support for Linux oldld, aout, or coff.
22620 linux*oldld* | linux*aout* | linux*coff*)
22624 # This must be Linux ELF.
22629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22630 soname_spec='${libname}${release}${shared_ext}$major'
22631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22632 shlibpath_var=LD_LIBRARY_PATH
22633 shlibpath_overrides_runpath=no
22634 # This implies no fast_install, which is unacceptable.
22635 # Some rework will be needed to allow for fast_install
22636 # before this can be enabled.
22637 hardcode_into_libs=yes
22639 # Append ld.so.conf contents to the search path
22640 if test -f /etc/ld.so.conf; then
22641 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22642 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22645 # We used to test for /lib/ld.so.1 and disable shared libraries on
22646 # powerpc, because MkLinux only supported shared libraries with the
22647 # GNU dynamic linker. Since this was broken with cross compilers,
22648 # most powerpc-linux boxes support dynamic linking these days and
22649 # people can always --disable-shared, the test was removed, and we
22650 # assume the GNU/Linux dynamic linker is in use.
22651 dynamic_linker='GNU/Linux ld.so'
22658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22659 soname_spec='${libname}${release}${shared_ext}$major'
22660 shlibpath_var=LD_LIBRARY_PATH
22661 shlibpath_overrides_runpath=no
22662 hardcode_into_libs=yes
22663 dynamic_linker='GNU ld.so'
22670 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22673 dynamic_linker='NetBSD (a.out) ld.so'
22675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22676 soname_spec='${libname}${release}${shared_ext}$major'
22677 dynamic_linker='NetBSD ld.elf_so'
22679 shlibpath_var=LD_LIBRARY_PATH
22680 shlibpath_overrides_runpath=yes
22681 hardcode_into_libs=yes
22686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22687 shlibpath_var=LD_LIBRARY_PATH
22688 shlibpath_overrides_runpath=yes
22695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22696 soname_spec='${libname}${release}${shared_ext}$major'
22697 shlibpath_var=LD_LIBRARY_PATH
22698 shlibpath_overrides_runpath=yes
22705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22707 shlibpath_var=LD_LIBRARY_PATH
22708 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22710 openbsd2.[89] | openbsd2.[89].*)
22711 shlibpath_overrides_runpath=no
22714 shlibpath_overrides_runpath=yes
22718 shlibpath_overrides_runpath=yes
22723 libname_spec='$name'
22726 library_names_spec='$libname${shared_ext} $libname.a'
22727 dynamic_linker='OS/2 ld.exe'
22728 shlibpath_var=LIBPATH
22731 osf3* | osf4* | osf5*)
22735 soname_spec='${libname}${release}${shared_ext}$major'
22736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22737 shlibpath_var=LD_LIBRARY_PATH
22738 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22739 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22744 soname_spec='${libname}${release}${shared_ext}$major'
22745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22746 shlibpath_var=LD_LIBRARY_PATH
22753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22754 soname_spec='${libname}${release}${shared_ext}$major'
22755 shlibpath_var=LD_LIBRARY_PATH
22756 shlibpath_overrides_runpath=yes
22757 hardcode_into_libs=yes
22758 # ldd complains unless libraries are executable
22759 postinstall_cmds='chmod +x $lib'
22764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22765 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22766 shlibpath_var=LD_LIBRARY_PATH
22767 shlibpath_overrides_runpath=yes
22768 if test "$with_gnu_ld" = yes; then
22774 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22777 soname_spec='${libname}${release}${shared_ext}$major'
22778 shlibpath_var=LD_LIBRARY_PATH
22779 case $host_vendor in
22781 shlibpath_overrides_runpath=no
22783 export_dynamic_flag_spec='${wl}-Blargedynsym'
22784 runpath_var=LD_RUN_PATH
22792 shlibpath_overrides_runpath=no
22793 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22799 if test -d /usr/nec ;then
22801 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22802 soname_spec='$libname${shared_ext}.$major'
22803 shlibpath_var=LD_LIBRARY_PATH
22809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22810 soname_spec='${libname}${release}${shared_ext}$major'
22811 shlibpath_var=LD_LIBRARY_PATH
22818 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22819 echo "${ECHO_T}$dynamic_linker" >&6
22820 test "$dynamic_linker" = no && can_build_shared=no
22822 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22823 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22824 hardcode_action_GCJ=
22825 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22826 test -n "$runpath_var_GCJ" || \
22827 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22829 # We can hardcode non-existant directories.
22830 if test "$hardcode_direct_GCJ" != no &&
22831 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22832 # have to relink, otherwise we might link with an installed library
22833 # when we should be linking with a yet-to-be-installed one
22834 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22835 test "$hardcode_minus_L_GCJ" != no; then
22836 # Linking always hardcodes the temporary library directory.
22837 hardcode_action_GCJ=relink
22839 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22840 hardcode_action_GCJ=immediate
22843 # We cannot hardcode anything, or else we can only hardcode existing
22845 hardcode_action_GCJ=unsupported
22847 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22848 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22850 if test "$hardcode_action_GCJ" = relink; then
22851 # Fast installation is not supported
22852 enable_fast_install=no
22853 elif test "$shlibpath_overrides_runpath" = yes ||
22854 test "$enable_shared" = no; then
22855 # Fast installation is not necessary
22856 enable_fast_install=needless
22861 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22862 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22863 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22864 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22865 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22866 echo "$as_me:$LINENO: result: yes" >&5
22867 echo "${ECHO_T}yes" >&6
22869 # FIXME - insert some real tests, host_os isn't really good enough
22872 if test -n "$STRIP" ; then
22873 striplib="$STRIP -x"
22874 echo "$as_me:$LINENO: result: yes" >&5
22875 echo "${ECHO_T}yes" >&6
22877 echo "$as_me:$LINENO: result: no" >&5
22878 echo "${ECHO_T}no" >&6
22882 echo "$as_me:$LINENO: result: no" >&5
22883 echo "${ECHO_T}no" >&6
22888 if test "x$enable_dlopen" != xyes; then
22889 enable_dlopen=unknown
22890 enable_dlopen_self=unknown
22891 enable_dlopen_self_static=unknown
22898 lt_cv_dlopen="load_add_on"
22900 lt_cv_dlopen_self=yes
22904 lt_cv_dlopen="LoadLibrary"
22909 lt_cv_dlopen="dlopen"
22914 # if libdl is installed we need to link against it
22915 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22916 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22917 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22918 echo $ECHO_N "(cached) $ECHO_C" >&6
22920 ac_check_lib_save_LIBS=$LIBS
22922 cat >conftest.$ac_ext <<_ACEOF
22925 cat confdefs.h >>conftest.$ac_ext
22926 cat >>conftest.$ac_ext <<_ACEOF
22927 /* end confdefs.h. */
22929 /* Override any gcc2 internal prototype to avoid an error. */
22933 /* We use char because int might match the return type of a gcc2
22934 builtin and then its argument prototype would still apply. */
22944 rm -f conftest.$ac_objext conftest$ac_exeext
22945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22946 (eval $ac_link) 2>conftest.er1
22948 grep -v '^ *+' conftest.er1 >conftest.err
22950 cat conftest.err >&5
22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); } &&
22953 { ac_try='test -z "$ac_c_werror_flag"
22954 || test ! -s conftest.err'
22955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956 (eval $ac_try) 2>&5
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); }; } &&
22960 { ac_try='test -s conftest$ac_exeext'
22961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22962 (eval $ac_try) 2>&5
22964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 (exit $ac_status); }; }; then
22966 ac_cv_lib_dl_dlopen=yes
22968 echo "$as_me: failed program was:" >&5
22969 sed 's/^/| /' conftest.$ac_ext >&5
22971 ac_cv_lib_dl_dlopen=no
22973 rm -f conftest.err conftest.$ac_objext \
22974 conftest$ac_exeext conftest.$ac_ext
22975 LIBS=$ac_check_lib_save_LIBS
22977 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22978 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22979 if test $ac_cv_lib_dl_dlopen = yes; then
22980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22983 lt_cv_dlopen="dyld"
22985 lt_cv_dlopen_self=yes
22992 echo "$as_me:$LINENO: checking for shl_load" >&5
22993 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22994 if test "${ac_cv_func_shl_load+set}" = set; then
22995 echo $ECHO_N "(cached) $ECHO_C" >&6
22997 cat >conftest.$ac_ext <<_ACEOF
23000 cat confdefs.h >>conftest.$ac_ext
23001 cat >>conftest.$ac_ext <<_ACEOF
23002 /* end confdefs.h. */
23003 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23005 #define shl_load innocuous_shl_load
23007 /* System header to define __stub macros and hopefully few prototypes,
23008 which can conflict with char shl_load (); below.
23009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23010 <limits.h> exists even on freestanding compilers. */
23013 # include <limits.h>
23015 # include <assert.h>
23020 /* Override any gcc2 internal prototype to avoid an error. */
23025 /* We use char because int might match the return type of a gcc2
23026 builtin and then its argument prototype would still apply. */
23028 /* The GNU C library defines this for functions which it implements
23029 to always fail with ENOSYS. Some functions are actually named
23030 something starting with __ and the normal name is an alias. */
23031 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23034 char (*f) () = shl_load;
23043 return f != shl_load;
23048 rm -f conftest.$ac_objext conftest$ac_exeext
23049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23050 (eval $ac_link) 2>conftest.er1
23052 grep -v '^ *+' conftest.er1 >conftest.err
23054 cat conftest.err >&5
23055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056 (exit $ac_status); } &&
23057 { ac_try='test -z "$ac_c_werror_flag"
23058 || test ! -s conftest.err'
23059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); }; } &&
23064 { ac_try='test -s conftest$ac_exeext'
23065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23066 (eval $ac_try) 2>&5
23068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); }; }; then
23070 ac_cv_func_shl_load=yes
23072 echo "$as_me: failed program was:" >&5
23073 sed 's/^/| /' conftest.$ac_ext >&5
23075 ac_cv_func_shl_load=no
23077 rm -f conftest.err conftest.$ac_objext \
23078 conftest$ac_exeext conftest.$ac_ext
23080 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23081 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23082 if test $ac_cv_func_shl_load = yes; then
23083 lt_cv_dlopen="shl_load"
23085 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23086 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23087 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23088 echo $ECHO_N "(cached) $ECHO_C" >&6
23090 ac_check_lib_save_LIBS=$LIBS
23092 cat >conftest.$ac_ext <<_ACEOF
23095 cat confdefs.h >>conftest.$ac_ext
23096 cat >>conftest.$ac_ext <<_ACEOF
23097 /* end confdefs.h. */
23099 /* Override any gcc2 internal prototype to avoid an error. */
23103 /* We use char because int might match the return type of a gcc2
23104 builtin and then its argument prototype would still apply. */
23114 rm -f conftest.$ac_objext conftest$ac_exeext
23115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23116 (eval $ac_link) 2>conftest.er1
23118 grep -v '^ *+' conftest.er1 >conftest.err
23120 cat conftest.err >&5
23121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122 (exit $ac_status); } &&
23123 { ac_try='test -z "$ac_c_werror_flag"
23124 || test ! -s conftest.err'
23125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23126 (eval $ac_try) 2>&5
23128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); }; } &&
23130 { ac_try='test -s conftest$ac_exeext'
23131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132 (eval $ac_try) 2>&5
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); }; }; then
23136 ac_cv_lib_dld_shl_load=yes
23138 echo "$as_me: failed program was:" >&5
23139 sed 's/^/| /' conftest.$ac_ext >&5
23141 ac_cv_lib_dld_shl_load=no
23143 rm -f conftest.err conftest.$ac_objext \
23144 conftest$ac_exeext conftest.$ac_ext
23145 LIBS=$ac_check_lib_save_LIBS
23147 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23148 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23149 if test $ac_cv_lib_dld_shl_load = yes; then
23150 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23152 echo "$as_me:$LINENO: checking for dlopen" >&5
23153 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23154 if test "${ac_cv_func_dlopen+set}" = set; then
23155 echo $ECHO_N "(cached) $ECHO_C" >&6
23157 cat >conftest.$ac_ext <<_ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h. */
23163 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23165 #define dlopen innocuous_dlopen
23167 /* System header to define __stub macros and hopefully few prototypes,
23168 which can conflict with char dlopen (); below.
23169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23170 <limits.h> exists even on freestanding compilers. */
23173 # include <limits.h>
23175 # include <assert.h>
23180 /* Override any gcc2 internal prototype to avoid an error. */
23185 /* We use char because int might match the return type of a gcc2
23186 builtin and then its argument prototype would still apply. */
23188 /* The GNU C library defines this for functions which it implements
23189 to always fail with ENOSYS. Some functions are actually named
23190 something starting with __ and the normal name is an alias. */
23191 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23194 char (*f) () = dlopen;
23203 return f != dlopen;
23208 rm -f conftest.$ac_objext conftest$ac_exeext
23209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23210 (eval $ac_link) 2>conftest.er1
23212 grep -v '^ *+' conftest.er1 >conftest.err
23214 cat conftest.err >&5
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); } &&
23217 { ac_try='test -z "$ac_c_werror_flag"
23218 || test ! -s conftest.err'
23219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23220 (eval $ac_try) 2>&5
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); }; } &&
23224 { ac_try='test -s conftest$ac_exeext'
23225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23226 (eval $ac_try) 2>&5
23228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229 (exit $ac_status); }; }; then
23230 ac_cv_func_dlopen=yes
23232 echo "$as_me: failed program was:" >&5
23233 sed 's/^/| /' conftest.$ac_ext >&5
23235 ac_cv_func_dlopen=no
23237 rm -f conftest.err conftest.$ac_objext \
23238 conftest$ac_exeext conftest.$ac_ext
23240 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23241 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23242 if test $ac_cv_func_dlopen = yes; then
23243 lt_cv_dlopen="dlopen"
23245 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23246 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23247 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23248 echo $ECHO_N "(cached) $ECHO_C" >&6
23250 ac_check_lib_save_LIBS=$LIBS
23252 cat >conftest.$ac_ext <<_ACEOF
23255 cat confdefs.h >>conftest.$ac_ext
23256 cat >>conftest.$ac_ext <<_ACEOF
23257 /* end confdefs.h. */
23259 /* Override any gcc2 internal prototype to avoid an error. */
23263 /* We use char because int might match the return type of a gcc2
23264 builtin and then its argument prototype would still apply. */
23274 rm -f conftest.$ac_objext conftest$ac_exeext
23275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23276 (eval $ac_link) 2>conftest.er1
23278 grep -v '^ *+' conftest.er1 >conftest.err
23280 cat conftest.err >&5
23281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282 (exit $ac_status); } &&
23283 { ac_try='test -z "$ac_c_werror_flag"
23284 || test ! -s conftest.err'
23285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23286 (eval $ac_try) 2>&5
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); }; } &&
23290 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
23296 ac_cv_lib_dl_dlopen=yes
23298 echo "$as_me: failed program was:" >&5
23299 sed 's/^/| /' conftest.$ac_ext >&5
23301 ac_cv_lib_dl_dlopen=no
23303 rm -f conftest.err conftest.$ac_objext \
23304 conftest$ac_exeext conftest.$ac_ext
23305 LIBS=$ac_check_lib_save_LIBS
23307 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23308 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23309 if test $ac_cv_lib_dl_dlopen = yes; then
23310 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23312 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23313 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23314 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23315 echo $ECHO_N "(cached) $ECHO_C" >&6
23317 ac_check_lib_save_LIBS=$LIBS
23318 LIBS="-lsvld $LIBS"
23319 cat >conftest.$ac_ext <<_ACEOF
23322 cat confdefs.h >>conftest.$ac_ext
23323 cat >>conftest.$ac_ext <<_ACEOF
23324 /* end confdefs.h. */
23326 /* Override any gcc2 internal prototype to avoid an error. */
23330 /* We use char because int might match the return type of a gcc2
23331 builtin and then its argument prototype would still apply. */
23341 rm -f conftest.$ac_objext conftest$ac_exeext
23342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23343 (eval $ac_link) 2>conftest.er1
23345 grep -v '^ *+' conftest.er1 >conftest.err
23347 cat conftest.err >&5
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); } &&
23350 { ac_try='test -z "$ac_c_werror_flag"
23351 || test ! -s conftest.err'
23352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353 (eval $ac_try) 2>&5
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); }; } &&
23357 { ac_try='test -s conftest$ac_exeext'
23358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359 (eval $ac_try) 2>&5
23361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362 (exit $ac_status); }; }; then
23363 ac_cv_lib_svld_dlopen=yes
23365 echo "$as_me: failed program was:" >&5
23366 sed 's/^/| /' conftest.$ac_ext >&5
23368 ac_cv_lib_svld_dlopen=no
23370 rm -f conftest.err conftest.$ac_objext \
23371 conftest$ac_exeext conftest.$ac_ext
23372 LIBS=$ac_check_lib_save_LIBS
23374 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23375 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23376 if test $ac_cv_lib_svld_dlopen = yes; then
23377 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23379 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23380 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23381 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23382 echo $ECHO_N "(cached) $ECHO_C" >&6
23384 ac_check_lib_save_LIBS=$LIBS
23386 cat >conftest.$ac_ext <<_ACEOF
23389 cat confdefs.h >>conftest.$ac_ext
23390 cat >>conftest.$ac_ext <<_ACEOF
23391 /* end confdefs.h. */
23393 /* Override any gcc2 internal prototype to avoid an error. */
23397 /* We use char because int might match the return type of a gcc2
23398 builtin and then its argument prototype would still apply. */
23408 rm -f conftest.$ac_objext conftest$ac_exeext
23409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23410 (eval $ac_link) 2>conftest.er1
23412 grep -v '^ *+' conftest.er1 >conftest.err
23414 cat conftest.err >&5
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); } &&
23417 { ac_try='test -z "$ac_c_werror_flag"
23418 || test ! -s conftest.err'
23419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23420 (eval $ac_try) 2>&5
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); }; } &&
23424 { ac_try='test -s conftest$ac_exeext'
23425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23426 (eval $ac_try) 2>&5
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); }; }; then
23430 ac_cv_lib_dld_dld_link=yes
23432 echo "$as_me: failed program was:" >&5
23433 sed 's/^/| /' conftest.$ac_ext >&5
23435 ac_cv_lib_dld_dld_link=no
23437 rm -f conftest.err conftest.$ac_objext \
23438 conftest$ac_exeext conftest.$ac_ext
23439 LIBS=$ac_check_lib_save_LIBS
23441 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23442 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23443 if test $ac_cv_lib_dld_dld_link = yes; then
23444 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23465 if test "x$lt_cv_dlopen" != xno; then
23471 case $lt_cv_dlopen in
23473 save_CPPFLAGS="$CPPFLAGS"
23474 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23476 save_LDFLAGS="$LDFLAGS"
23477 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23480 LIBS="$lt_cv_dlopen_libs $LIBS"
23482 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23483 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23484 if test "${lt_cv_dlopen_self+set}" = set; then
23485 echo $ECHO_N "(cached) $ECHO_C" >&6
23487 if test "$cross_compiling" = yes; then :
23488 lt_cv_dlopen_self=cross
23490 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23491 lt_status=$lt_dlunknown
23492 cat > conftest.$ac_ext <<EOF
23493 #line 23493 "configure"
23494 #include "confdefs.h"
23503 # define LT_DLGLOBAL RTLD_GLOBAL
23506 # define LT_DLGLOBAL DL_GLOBAL
23508 # define LT_DLGLOBAL 0
23512 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23513 find out it does not work in some platform. */
23514 #ifndef LT_DLLAZY_OR_NOW
23516 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23519 # define LT_DLLAZY_OR_NOW DL_LAZY
23522 # define LT_DLLAZY_OR_NOW RTLD_NOW
23525 # define LT_DLLAZY_OR_NOW DL_NOW
23527 # define LT_DLLAZY_OR_NOW 0
23535 extern "C" void exit (int);
23538 void fnord() { int i=42;}
23541 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23542 int status = $lt_dlunknown;
23546 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23547 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23548 /* dlclose (self); */
23554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23555 (eval $ac_link) 2>&5
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23559 (./conftest; exit; ) 2>/dev/null
23561 case x$lt_status in
23562 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23563 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23564 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23567 # compilation failed
23568 lt_cv_dlopen_self=no
23575 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23576 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23578 if test "x$lt_cv_dlopen_self" = xyes; then
23579 LDFLAGS="$LDFLAGS $link_static_flag"
23580 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23581 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23582 if test "${lt_cv_dlopen_self_static+set}" = set; then
23583 echo $ECHO_N "(cached) $ECHO_C" >&6
23585 if test "$cross_compiling" = yes; then :
23586 lt_cv_dlopen_self_static=cross
23588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23589 lt_status=$lt_dlunknown
23590 cat > conftest.$ac_ext <<EOF
23591 #line 23591 "configure"
23592 #include "confdefs.h"
23601 # define LT_DLGLOBAL RTLD_GLOBAL
23604 # define LT_DLGLOBAL DL_GLOBAL
23606 # define LT_DLGLOBAL 0
23610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23611 find out it does not work in some platform. */
23612 #ifndef LT_DLLAZY_OR_NOW
23614 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23617 # define LT_DLLAZY_OR_NOW DL_LAZY
23620 # define LT_DLLAZY_OR_NOW RTLD_NOW
23623 # define LT_DLLAZY_OR_NOW DL_NOW
23625 # define LT_DLLAZY_OR_NOW 0
23633 extern "C" void exit (int);
23636 void fnord() { int i=42;}
23639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23640 int status = $lt_dlunknown;
23644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23645 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23646 /* dlclose (self); */
23652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23653 (eval $ac_link) 2>&5
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23657 (./conftest; exit; ) 2>/dev/null
23659 case x$lt_status in
23660 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23661 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23662 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23665 # compilation failed
23666 lt_cv_dlopen_self_static=no
23673 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23674 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23677 CPPFLAGS="$save_CPPFLAGS"
23678 LDFLAGS="$save_LDFLAGS"
23683 case $lt_cv_dlopen_self in
23684 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23685 *) enable_dlopen_self=unknown ;;
23688 case $lt_cv_dlopen_self_static in
23689 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23690 *) enable_dlopen_self_static=unknown ;;
23695 # The else clause should only fire when bootstrapping the
23696 # libtool distribution, otherwise you forgot to ship ltmain.sh
23697 # with your package, and you will get complaints that there are
23698 # no rules to generate ltmain.sh.
23699 if test -f "$ltmain"; then
23700 # See if we are running on zsh, and set the options which allow our commands through
23701 # without removal of \ escapes.
23702 if test -n "${ZSH_VERSION+set}" ; then
23703 setopt NO_GLOB_SUBST
23705 # Now quote all the things that may contain metacharacters while being
23706 # careful not to overquote the AC_SUBSTed values. We take copies of the
23707 # variables and quote the copies for generation of the libtool script.
23708 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23710 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23711 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23712 deplibs_check_method reload_flag reload_cmds need_locks \
23713 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23714 lt_cv_sys_global_symbol_to_c_name_address \
23715 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23716 old_postinstall_cmds old_postuninstall_cmds \
23720 lt_prog_compiler_wl_GCJ \
23721 lt_prog_compiler_pic_GCJ \
23722 lt_prog_compiler_static_GCJ \
23723 lt_prog_compiler_no_builtin_flag_GCJ \
23724 export_dynamic_flag_spec_GCJ \
23725 thread_safe_flag_spec_GCJ \
23726 whole_archive_flag_spec_GCJ \
23727 enable_shared_with_static_runtimes_GCJ \
23728 old_archive_cmds_GCJ \
23729 old_archive_from_new_cmds_GCJ \
23730 predep_objects_GCJ \
23731 postdep_objects_GCJ \
23734 compiler_lib_search_path_GCJ \
23736 archive_expsym_cmds_GCJ \
23737 postinstall_cmds_GCJ \
23738 postuninstall_cmds_GCJ \
23739 old_archive_from_expsyms_cmds_GCJ \
23740 allow_undefined_flag_GCJ \
23741 no_undefined_flag_GCJ \
23742 export_symbols_cmds_GCJ \
23743 hardcode_libdir_flag_spec_GCJ \
23744 hardcode_libdir_flag_spec_ld_GCJ \
23745 hardcode_libdir_separator_GCJ \
23746 hardcode_automatic_GCJ \
23748 module_expsym_cmds_GCJ \
23749 lt_cv_prog_compiler_c_o_GCJ \
23750 exclude_expsyms_GCJ \
23751 include_expsyms_GCJ; do
23754 old_archive_cmds_GCJ | \
23755 old_archive_from_new_cmds_GCJ | \
23756 archive_cmds_GCJ | \
23757 archive_expsym_cmds_GCJ | \
23758 module_cmds_GCJ | \
23759 module_expsym_cmds_GCJ | \
23760 old_archive_from_expsyms_cmds_GCJ | \
23761 export_symbols_cmds_GCJ | \
23762 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23763 postinstall_cmds | postuninstall_cmds | \
23764 old_postinstall_cmds | old_postuninstall_cmds | \
23765 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23766 # Double-quote double-evaled strings.
23767 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23770 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23776 *'\$0 --fallback-echo"')
23777 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23783 cat <<__EOF__ >> "$cfgfile"
23784 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23786 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23788 # Shell to use when invoking shell scripts.
23791 # Whether or not to build shared libraries.
23792 build_libtool_libs=$enable_shared
23794 # Whether or not to build static libraries.
23795 build_old_libs=$enable_static
23797 # Whether or not to add -lc for building shared libraries.
23798 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23800 # Whether or not to disallow shared libs when runtime libs are static
23801 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23803 # Whether or not to optimize for fast installation.
23804 fast_install=$enable_fast_install
23807 host_alias=$host_alias
23810 # An echo program that does not interpret backslashes.
23815 AR_FLAGS=$lt_AR_FLAGS
23820 # A language-specific compiler.
23821 CC=$lt_compiler_GCJ
23823 # Is the compiler the GNU C compiler?
23829 # The linker used to build libraries.
23832 # Whether we need hard or soft links.
23835 # A BSD-compatible nm program.
23838 # A symbol stripping program
23841 # Used to examine libraries when file_magic_cmd begins "file"
23842 MAGIC_CMD=$MAGIC_CMD
23844 # Used on cygwin: DLL creation program.
23847 # Used on cygwin: object dumper.
23850 # Used on cygwin: assembler.
23853 # The name of the directory that contains temporary libtool files.
23856 # How to create reloadable object files.
23857 reload_flag=$lt_reload_flag
23858 reload_cmds=$lt_reload_cmds
23860 # How to pass a linker flag through the compiler.
23861 wl=$lt_lt_prog_compiler_wl_GCJ
23863 # Object file suffix (normally "o").
23864 objext="$ac_objext"
23866 # Old archive suffix (normally "a").
23869 # Shared library suffix (normally ".so").
23870 shrext_cmds='$shrext_cmds'
23872 # Executable file suffix (normally "").
23875 # Additional compiler flags for building library objects.
23876 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23879 # What is the maximum length of a command?
23880 max_cmd_len=$lt_cv_sys_max_cmd_len
23882 # Does compiler simultaneously support -c and -o options?
23883 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23885 # Must we lock files when doing compilation ?
23886 need_locks=$lt_need_locks
23888 # Do we need the lib prefix for modules?
23889 need_lib_prefix=$need_lib_prefix
23891 # Do we need a version for libraries?
23892 need_version=$need_version
23894 # Whether dlopen is supported.
23895 dlopen_support=$enable_dlopen
23897 # Whether dlopen of programs is supported.
23898 dlopen_self=$enable_dlopen_self
23900 # Whether dlopen of statically linked programs is supported.
23901 dlopen_self_static=$enable_dlopen_self_static
23903 # Compiler flag to prevent dynamic linking.
23904 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23906 # Compiler flag to turn off builtin functions.
23907 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23909 # Compiler flag to allow reflexive dlopens.
23910 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23912 # Compiler flag to generate shared objects directly from archives.
23913 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23915 # Compiler flag to generate thread-safe objects.
23916 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23918 # Library versioning type.
23919 version_type=$version_type
23921 # Format of library name prefix.
23922 libname_spec=$lt_libname_spec
23924 # List of archive names. First name is the real one, the rest are links.
23925 # The last name is the one that the linker finds with -lNAME.
23926 library_names_spec=$lt_library_names_spec
23928 # The coded name of the library, if different from the real name.
23929 soname_spec=$lt_soname_spec
23931 # Commands used to build and install an old-style archive.
23933 old_archive_cmds=$lt_old_archive_cmds_GCJ
23934 old_postinstall_cmds=$lt_old_postinstall_cmds
23935 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23937 # Create an old-style archive from a shared archive.
23938 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23940 # Create a temporary old-style archive to link instead of a shared archive.
23941 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23943 # Commands used to build and install a shared archive.
23944 archive_cmds=$lt_archive_cmds_GCJ
23945 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23946 postinstall_cmds=$lt_postinstall_cmds
23947 postuninstall_cmds=$lt_postuninstall_cmds
23949 # Commands used to build a loadable module (assumed same as above if empty)
23950 module_cmds=$lt_module_cmds_GCJ
23951 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23953 # Commands to strip libraries.
23954 old_striplib=$lt_old_striplib
23955 striplib=$lt_striplib
23957 # Dependencies to place before the objects being linked to create a
23959 predep_objects=$lt_predep_objects_GCJ
23961 # Dependencies to place after the objects being linked to create a
23963 postdep_objects=$lt_postdep_objects_GCJ
23965 # Dependencies to place before the objects being linked to create a
23967 predeps=$lt_predeps_GCJ
23969 # Dependencies to place after the objects being linked to create a
23971 postdeps=$lt_postdeps_GCJ
23973 # The library search path used internally by the compiler when linking
23974 # a shared library.
23975 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23977 # Method to check whether dependent libraries are shared objects.
23978 deplibs_check_method=$lt_deplibs_check_method
23980 # Command to use when deplibs_check_method == file_magic.
23981 file_magic_cmd=$lt_file_magic_cmd
23983 # Flag that allows shared libraries with undefined symbols to be built.
23984 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23986 # Flag that forces no undefined symbols.
23987 no_undefined_flag=$lt_no_undefined_flag_GCJ
23989 # Commands used to finish a libtool library installation in a directory.
23990 finish_cmds=$lt_finish_cmds
23992 # Same as above, but a single script fragment to be evaled but not shown.
23993 finish_eval=$lt_finish_eval
23995 # Take the output of nm and produce a listing of raw symbols and C names.
23996 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23998 # Transform the output of nm in a proper C declaration
23999 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24001 # Transform the output of nm in a C name address pair
24002 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24004 # This is the shared library runtime path variable.
24005 runpath_var=$runpath_var
24007 # This is the shared library path variable.
24008 shlibpath_var=$shlibpath_var
24010 # Is shlibpath searched before the hard-coded library search path?
24011 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24013 # How to hardcode a shared library path into an executable.
24014 hardcode_action=$hardcode_action_GCJ
24016 # Whether we should hardcode library paths into libraries.
24017 hardcode_into_libs=$hardcode_into_libs
24019 # Flag to hardcode \$libdir into a binary during linking.
24020 # This must work even if \$libdir does not exist.
24021 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24023 # If ld is used when linking, flag to hardcode \$libdir into
24024 # a binary during linking. This must work even if \$libdir does
24026 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24028 # Whether we need a single -rpath flag with a separated argument.
24029 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24031 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24032 # resulting binary.
24033 hardcode_direct=$hardcode_direct_GCJ
24035 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24036 # resulting binary.
24037 hardcode_minus_L=$hardcode_minus_L_GCJ
24039 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24040 # the resulting binary.
24041 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24043 # Set to yes if building a shared library automatically hardcodes DIR into the library
24044 # and all subsequent libraries and executables linked against it.
24045 hardcode_automatic=$hardcode_automatic_GCJ
24047 # Variables whose values should be saved in libtool wrapper scripts and
24048 # restored at relink time.
24049 variables_saved_for_relink="$variables_saved_for_relink"
24051 # Whether libtool must link a program against all its dependency libraries.
24052 link_all_deplibs=$link_all_deplibs_GCJ
24054 # Compile-time system search path for libraries
24055 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24057 # Run-time system search path for libraries
24058 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24060 # Fix the shell variable \$srcfile for the compiler.
24061 fix_srcfile_path="$fix_srcfile_path_GCJ"
24063 # Set to yes if exported symbols are required.
24064 always_export_symbols=$always_export_symbols_GCJ
24066 # The commands to list exported symbols.
24067 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24069 # The commands to extract the exported symbol list from a shared archive.
24070 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24072 # Symbols that should not be listed in the preloaded symbols.
24073 exclude_expsyms=$lt_exclude_expsyms_GCJ
24075 # Symbols that must always be exported.
24076 include_expsyms=$lt_include_expsyms_GCJ
24078 # ### END LIBTOOL TAG CONFIG: $tagname
24084 # If there is no Makefile yet, we rely on a make rule to execute
24085 # `config.status --recheck' to rerun these tests and create the
24086 # libtool script then.
24087 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24088 if test -f "$ltmain_in"; then
24089 test -f Makefile && make "$ltmain"
24095 ac_cpp='$CPP $CPPFLAGS'
24096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24109 ac_cpp='$CPP $CPPFLAGS'
24110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24115 # Source file extension for RC test sources.
24118 # Object file extension for compiled RC test sources.
24122 # Code to be used in simple compile tests
24123 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24125 # Code to be used in simple link tests
24126 lt_simple_link_test_code="$lt_simple_compile_test_code"
24128 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24130 # If no C compiler was specified, use CC.
24133 # Allow CC to be a program name with arguments.
24137 # Allow CC to be a program name with arguments.
24142 lt_cv_prog_compiler_c_o_RC=yes
24144 # The else clause should only fire when bootstrapping the
24145 # libtool distribution, otherwise you forgot to ship ltmain.sh
24146 # with your package, and you will get complaints that there are
24147 # no rules to generate ltmain.sh.
24148 if test -f "$ltmain"; then
24149 # See if we are running on zsh, and set the options which allow our commands through
24150 # without removal of \ escapes.
24151 if test -n "${ZSH_VERSION+set}" ; then
24152 setopt NO_GLOB_SUBST
24154 # Now quote all the things that may contain metacharacters while being
24155 # careful not to overquote the AC_SUBSTed values. We take copies of the
24156 # variables and quote the copies for generation of the libtool script.
24157 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24159 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24160 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24161 deplibs_check_method reload_flag reload_cmds need_locks \
24162 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24163 lt_cv_sys_global_symbol_to_c_name_address \
24164 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24165 old_postinstall_cmds old_postuninstall_cmds \
24169 lt_prog_compiler_wl_RC \
24170 lt_prog_compiler_pic_RC \
24171 lt_prog_compiler_static_RC \
24172 lt_prog_compiler_no_builtin_flag_RC \
24173 export_dynamic_flag_spec_RC \
24174 thread_safe_flag_spec_RC \
24175 whole_archive_flag_spec_RC \
24176 enable_shared_with_static_runtimes_RC \
24177 old_archive_cmds_RC \
24178 old_archive_from_new_cmds_RC \
24179 predep_objects_RC \
24180 postdep_objects_RC \
24183 compiler_lib_search_path_RC \
24185 archive_expsym_cmds_RC \
24186 postinstall_cmds_RC \
24187 postuninstall_cmds_RC \
24188 old_archive_from_expsyms_cmds_RC \
24189 allow_undefined_flag_RC \
24190 no_undefined_flag_RC \
24191 export_symbols_cmds_RC \
24192 hardcode_libdir_flag_spec_RC \
24193 hardcode_libdir_flag_spec_ld_RC \
24194 hardcode_libdir_separator_RC \
24195 hardcode_automatic_RC \
24197 module_expsym_cmds_RC \
24198 lt_cv_prog_compiler_c_o_RC \
24199 exclude_expsyms_RC \
24200 include_expsyms_RC; do
24203 old_archive_cmds_RC | \
24204 old_archive_from_new_cmds_RC | \
24205 archive_cmds_RC | \
24206 archive_expsym_cmds_RC | \
24208 module_expsym_cmds_RC | \
24209 old_archive_from_expsyms_cmds_RC | \
24210 export_symbols_cmds_RC | \
24211 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24212 postinstall_cmds | postuninstall_cmds | \
24213 old_postinstall_cmds | old_postuninstall_cmds | \
24214 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24215 # Double-quote double-evaled strings.
24216 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24219 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24225 *'\$0 --fallback-echo"')
24226 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24232 cat <<__EOF__ >> "$cfgfile"
24233 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24235 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24237 # Shell to use when invoking shell scripts.
24240 # Whether or not to build shared libraries.
24241 build_libtool_libs=$enable_shared
24243 # Whether or not to build static libraries.
24244 build_old_libs=$enable_static
24246 # Whether or not to add -lc for building shared libraries.
24247 build_libtool_need_lc=$archive_cmds_need_lc_RC
24249 # Whether or not to disallow shared libs when runtime libs are static
24250 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24252 # Whether or not to optimize for fast installation.
24253 fast_install=$enable_fast_install
24256 host_alias=$host_alias
24259 # An echo program that does not interpret backslashes.
24264 AR_FLAGS=$lt_AR_FLAGS
24269 # A language-specific compiler.
24272 # Is the compiler the GNU C compiler?
24278 # The linker used to build libraries.
24281 # Whether we need hard or soft links.
24284 # A BSD-compatible nm program.
24287 # A symbol stripping program
24290 # Used to examine libraries when file_magic_cmd begins "file"
24291 MAGIC_CMD=$MAGIC_CMD
24293 # Used on cygwin: DLL creation program.
24296 # Used on cygwin: object dumper.
24299 # Used on cygwin: assembler.
24302 # The name of the directory that contains temporary libtool files.
24305 # How to create reloadable object files.
24306 reload_flag=$lt_reload_flag
24307 reload_cmds=$lt_reload_cmds
24309 # How to pass a linker flag through the compiler.
24310 wl=$lt_lt_prog_compiler_wl_RC
24312 # Object file suffix (normally "o").
24313 objext="$ac_objext"
24315 # Old archive suffix (normally "a").
24318 # Shared library suffix (normally ".so").
24319 shrext_cmds='$shrext_cmds'
24321 # Executable file suffix (normally "").
24324 # Additional compiler flags for building library objects.
24325 pic_flag=$lt_lt_prog_compiler_pic_RC
24328 # What is the maximum length of a command?
24329 max_cmd_len=$lt_cv_sys_max_cmd_len
24331 # Does compiler simultaneously support -c and -o options?
24332 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24334 # Must we lock files when doing compilation ?
24335 need_locks=$lt_need_locks
24337 # Do we need the lib prefix for modules?
24338 need_lib_prefix=$need_lib_prefix
24340 # Do we need a version for libraries?
24341 need_version=$need_version
24343 # Whether dlopen is supported.
24344 dlopen_support=$enable_dlopen
24346 # Whether dlopen of programs is supported.
24347 dlopen_self=$enable_dlopen_self
24349 # Whether dlopen of statically linked programs is supported.
24350 dlopen_self_static=$enable_dlopen_self_static
24352 # Compiler flag to prevent dynamic linking.
24353 link_static_flag=$lt_lt_prog_compiler_static_RC
24355 # Compiler flag to turn off builtin functions.
24356 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24358 # Compiler flag to allow reflexive dlopens.
24359 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24361 # Compiler flag to generate shared objects directly from archives.
24362 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24364 # Compiler flag to generate thread-safe objects.
24365 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24367 # Library versioning type.
24368 version_type=$version_type
24370 # Format of library name prefix.
24371 libname_spec=$lt_libname_spec
24373 # List of archive names. First name is the real one, the rest are links.
24374 # The last name is the one that the linker finds with -lNAME.
24375 library_names_spec=$lt_library_names_spec
24377 # The coded name of the library, if different from the real name.
24378 soname_spec=$lt_soname_spec
24380 # Commands used to build and install an old-style archive.
24382 old_archive_cmds=$lt_old_archive_cmds_RC
24383 old_postinstall_cmds=$lt_old_postinstall_cmds
24384 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24386 # Create an old-style archive from a shared archive.
24387 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24389 # Create a temporary old-style archive to link instead of a shared archive.
24390 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24392 # Commands used to build and install a shared archive.
24393 archive_cmds=$lt_archive_cmds_RC
24394 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24395 postinstall_cmds=$lt_postinstall_cmds
24396 postuninstall_cmds=$lt_postuninstall_cmds
24398 # Commands used to build a loadable module (assumed same as above if empty)
24399 module_cmds=$lt_module_cmds_RC
24400 module_expsym_cmds=$lt_module_expsym_cmds_RC
24402 # Commands to strip libraries.
24403 old_striplib=$lt_old_striplib
24404 striplib=$lt_striplib
24406 # Dependencies to place before the objects being linked to create a
24408 predep_objects=$lt_predep_objects_RC
24410 # Dependencies to place after the objects being linked to create a
24412 postdep_objects=$lt_postdep_objects_RC
24414 # Dependencies to place before the objects being linked to create a
24416 predeps=$lt_predeps_RC
24418 # Dependencies to place after the objects being linked to create a
24420 postdeps=$lt_postdeps_RC
24422 # The library search path used internally by the compiler when linking
24423 # a shared library.
24424 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24426 # Method to check whether dependent libraries are shared objects.
24427 deplibs_check_method=$lt_deplibs_check_method
24429 # Command to use when deplibs_check_method == file_magic.
24430 file_magic_cmd=$lt_file_magic_cmd
24432 # Flag that allows shared libraries with undefined symbols to be built.
24433 allow_undefined_flag=$lt_allow_undefined_flag_RC
24435 # Flag that forces no undefined symbols.
24436 no_undefined_flag=$lt_no_undefined_flag_RC
24438 # Commands used to finish a libtool library installation in a directory.
24439 finish_cmds=$lt_finish_cmds
24441 # Same as above, but a single script fragment to be evaled but not shown.
24442 finish_eval=$lt_finish_eval
24444 # Take the output of nm and produce a listing of raw symbols and C names.
24445 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24447 # Transform the output of nm in a proper C declaration
24448 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24450 # Transform the output of nm in a C name address pair
24451 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24453 # This is the shared library runtime path variable.
24454 runpath_var=$runpath_var
24456 # This is the shared library path variable.
24457 shlibpath_var=$shlibpath_var
24459 # Is shlibpath searched before the hard-coded library search path?
24460 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24462 # How to hardcode a shared library path into an executable.
24463 hardcode_action=$hardcode_action_RC
24465 # Whether we should hardcode library paths into libraries.
24466 hardcode_into_libs=$hardcode_into_libs
24468 # Flag to hardcode \$libdir into a binary during linking.
24469 # This must work even if \$libdir does not exist.
24470 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24472 # If ld is used when linking, flag to hardcode \$libdir into
24473 # a binary during linking. This must work even if \$libdir does
24475 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24477 # Whether we need a single -rpath flag with a separated argument.
24478 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24480 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24481 # resulting binary.
24482 hardcode_direct=$hardcode_direct_RC
24484 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24485 # resulting binary.
24486 hardcode_minus_L=$hardcode_minus_L_RC
24488 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24489 # the resulting binary.
24490 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24492 # Set to yes if building a shared library automatically hardcodes DIR into the library
24493 # and all subsequent libraries and executables linked against it.
24494 hardcode_automatic=$hardcode_automatic_RC
24496 # Variables whose values should be saved in libtool wrapper scripts and
24497 # restored at relink time.
24498 variables_saved_for_relink="$variables_saved_for_relink"
24500 # Whether libtool must link a program against all its dependency libraries.
24501 link_all_deplibs=$link_all_deplibs_RC
24503 # Compile-time system search path for libraries
24504 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24506 # Run-time system search path for libraries
24507 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24509 # Fix the shell variable \$srcfile for the compiler.
24510 fix_srcfile_path="$fix_srcfile_path_RC"
24512 # Set to yes if exported symbols are required.
24513 always_export_symbols=$always_export_symbols_RC
24515 # The commands to list exported symbols.
24516 export_symbols_cmds=$lt_export_symbols_cmds_RC
24518 # The commands to extract the exported symbol list from a shared archive.
24519 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24521 # Symbols that should not be listed in the preloaded symbols.
24522 exclude_expsyms=$lt_exclude_expsyms_RC
24524 # Symbols that must always be exported.
24525 include_expsyms=$lt_include_expsyms_RC
24527 # ### END LIBTOOL TAG CONFIG: $tagname
24533 # If there is no Makefile yet, we rely on a make rule to execute
24534 # `config.status --recheck' to rerun these tests and create the
24535 # libtool script then.
24536 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24537 if test -f "$ltmain_in"; then
24538 test -f Makefile && make "$ltmain"
24544 ac_cpp='$CPP $CPPFLAGS'
24545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24554 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24555 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24556 { (exit 1); exit 1; }; }
24560 # Append the new tag name to the list of available tags.
24561 if test -n "$tagname" ; then
24562 available_tags="$available_tags $tagname"
24568 # Now substitute the updated list of available tags.
24569 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24570 mv "${ofile}T" "$ofile"
24574 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24575 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24576 { (exit 1); exit 1; }; }
24582 # This can be used to rebuild libtool when needed
24583 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24585 # Always use our own libtool.
24586 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24588 # Prevent multiple expansion
24610 if test "$lt_cv_dlopen_self" = "yes" ; then
24612 cat >>confdefs.h <<\_ACEOF
24613 #define CAN_DLOPEN_SELF 1
24618 etags_version=`$ETAGS --version 2>&1`
24619 case "$etags_version" in
24620 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24621 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24622 *) ETAGSFLAGS="" ;;
24624 ETAGSFLAGS=$ETAGSFLAGS
24627 if test "$WITH_LLVMGCCDIR" = "default" ; then
24628 # Extract the first word of "llvm-gcc", so it can be a program name with args.
24629 set dummy llvm-gcc; ac_word=$2
24630 echo "$as_me:$LINENO: checking for $ac_word" >&5
24631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24632 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24633 echo $ECHO_N "(cached) $ECHO_C" >&6
24637 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24641 for as_dir in $PATH
24644 test -z "$as_dir" && as_dir=.
24645 for ac_exec_ext in '' $ac_executable_extensions; do
24646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24647 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24657 LLVMGCC=$ac_cv_path_LLVMGCC
24659 if test -n "$LLVMGCC"; then
24660 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24661 echo "${ECHO_T}$LLVMGCC" >&6
24663 echo "$as_me:$LINENO: result: no" >&5
24664 echo "${ECHO_T}no" >&6
24667 # Extract the first word of "llvm-g++", so it can be a program name with args.
24668 set dummy llvm-g++; ac_word=$2
24669 echo "$as_me:$LINENO: checking for $ac_word" >&5
24670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24671 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24672 echo $ECHO_N "(cached) $ECHO_C" >&6
24676 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24680 for as_dir in $PATH
24683 test -z "$as_dir" && as_dir=.
24684 for ac_exec_ext in '' $ac_executable_extensions; do
24685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24686 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24696 LLVMGXX=$ac_cv_path_LLVMGXX
24698 if test -n "$LLVMGXX"; then
24699 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24700 echo "${ECHO_T}$LLVMGXX" >&6
24702 echo "$as_me:$LINENO: result: no" >&5
24703 echo "${ECHO_T}no" >&6
24707 LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24708 LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24715 echo "$as_me:$LINENO: checking tool compatibility" >&5
24716 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24729 if test "$GCC" != "yes" && test "$ICC" != "yes"
24731 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24732 echo "$as_me: error: gcc|icc required but not found" >&2;}
24733 { (exit 1); exit 1; }; }
24736 if test "$GXX" != "yes" && test "$IXX" != "yes"
24738 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24739 echo "$as_me: error: g++|icc required but not found" >&2;}
24740 { (exit 1); exit 1; }; }
24743 if test "$GCC" = "yes"
24745 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24746 if test "$gccmajor" -lt "3"
24748 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24749 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24750 { (exit 1); exit 1; }; }
24754 if test -z "$llvm_cv_gnu_make_command"
24756 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24757 echo "$as_me: error: GNU Make required but not found" >&2;}
24758 { (exit 1); exit 1; }; }
24761 echo "$as_me:$LINENO: result: ok" >&5
24762 echo "${ECHO_T}ok" >&6
24766 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24767 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24768 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24769 echo $ECHO_N "(cached) $ECHO_C" >&6
24771 ac_check_lib_save_LIBS=$LIBS
24773 cat >conftest.$ac_ext <<_ACEOF
24776 cat confdefs.h >>conftest.$ac_ext
24777 cat >>conftest.$ac_ext <<_ACEOF
24778 /* end confdefs.h. */
24780 /* Override any gcc2 internal prototype to avoid an error. */
24784 /* We use char because int might match the return type of a gcc2
24785 builtin and then its argument prototype would still apply. */
24795 rm -f conftest.$ac_objext conftest$ac_exeext
24796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24797 (eval $ac_link) 2>conftest.er1
24799 grep -v '^ *+' conftest.er1 >conftest.err
24801 cat conftest.err >&5
24802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803 (exit $ac_status); } &&
24804 { ac_try='test -z "$ac_c_werror_flag"
24805 || test ! -s conftest.err'
24806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24807 (eval $ac_try) 2>&5
24809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24810 (exit $ac_status); }; } &&
24811 { ac_try='test -s conftest$ac_exeext'
24812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24813 (eval $ac_try) 2>&5
24815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24816 (exit $ac_status); }; }; then
24817 ac_cv_lib_elf_elf_begin=yes
24819 echo "$as_me: failed program was:" >&5
24820 sed 's/^/| /' conftest.$ac_ext >&5
24822 ac_cv_lib_elf_elf_begin=no
24824 rm -f conftest.err conftest.$ac_objext \
24825 conftest$ac_exeext conftest.$ac_ext
24826 LIBS=$ac_check_lib_save_LIBS
24828 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24829 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24830 if test $ac_cv_lib_elf_elf_begin = yes; then
24831 cat >>confdefs.h <<_ACEOF
24832 #define HAVE_LIBELF 1
24840 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24841 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24842 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24843 echo $ECHO_N "(cached) $ECHO_C" >&6
24845 ac_func_search_save_LIBS=$LIBS
24846 ac_cv_search_lt_dlopen=no
24847 cat >conftest.$ac_ext <<_ACEOF
24850 cat confdefs.h >>conftest.$ac_ext
24851 cat >>conftest.$ac_ext <<_ACEOF
24852 /* end confdefs.h. */
24854 /* Override any gcc2 internal prototype to avoid an error. */
24858 /* We use char because int might match the return type of a gcc2
24859 builtin and then its argument prototype would still apply. */
24869 rm -f conftest.$ac_objext conftest$ac_exeext
24870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24871 (eval $ac_link) 2>conftest.er1
24873 grep -v '^ *+' conftest.er1 >conftest.err
24875 cat conftest.err >&5
24876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877 (exit $ac_status); } &&
24878 { ac_try='test -z "$ac_c_werror_flag"
24879 || test ! -s conftest.err'
24880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24881 (eval $ac_try) 2>&5
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); }; } &&
24885 { ac_try='test -s conftest$ac_exeext'
24886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887 (eval $ac_try) 2>&5
24889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); }; }; then
24891 ac_cv_search_lt_dlopen="none required"
24893 echo "$as_me: failed program was:" >&5
24894 sed 's/^/| /' conftest.$ac_ext >&5
24897 rm -f conftest.err conftest.$ac_objext \
24898 conftest$ac_exeext conftest.$ac_ext
24899 if test "$ac_cv_search_lt_dlopen" = no; then
24900 for ac_lib in ltdl; do
24901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24902 cat >conftest.$ac_ext <<_ACEOF
24905 cat confdefs.h >>conftest.$ac_ext
24906 cat >>conftest.$ac_ext <<_ACEOF
24907 /* end confdefs.h. */
24909 /* Override any gcc2 internal prototype to avoid an error. */
24913 /* We use char because int might match the return type of a gcc2
24914 builtin and then its argument prototype would still apply. */
24924 rm -f conftest.$ac_objext conftest$ac_exeext
24925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24926 (eval $ac_link) 2>conftest.er1
24928 grep -v '^ *+' conftest.er1 >conftest.err
24930 cat conftest.err >&5
24931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932 (exit $ac_status); } &&
24933 { ac_try='test -z "$ac_c_werror_flag"
24934 || test ! -s conftest.err'
24935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936 (eval $ac_try) 2>&5
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); }; } &&
24940 { ac_try='test -s conftest$ac_exeext'
24941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24942 (eval $ac_try) 2>&5
24944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24945 (exit $ac_status); }; }; then
24946 ac_cv_search_lt_dlopen="-l$ac_lib"
24949 echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.$ac_ext >&5
24953 rm -f conftest.err conftest.$ac_objext \
24954 conftest$ac_exeext conftest.$ac_ext
24957 LIBS=$ac_func_search_save_LIBS
24959 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24960 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24961 if test "$ac_cv_search_lt_dlopen" != no; then
24962 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24964 cat >>confdefs.h <<\_ACEOF
24965 #define HAVE_LT_DLOPEN 1
24969 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24970 not be available" >&5
24971 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24972 not be available" >&2;}
24976 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24977 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24978 if test "${ac_cv_search_dlopen+set}" = set; then
24979 echo $ECHO_N "(cached) $ECHO_C" >&6
24981 ac_func_search_save_LIBS=$LIBS
24982 ac_cv_search_dlopen=no
24983 cat >conftest.$ac_ext <<_ACEOF
24986 cat confdefs.h >>conftest.$ac_ext
24987 cat >>conftest.$ac_ext <<_ACEOF
24988 /* end confdefs.h. */
24990 /* Override any gcc2 internal prototype to avoid an error. */
24994 /* We use char because int might match the return type of a gcc2
24995 builtin and then its argument prototype would still apply. */
25005 rm -f conftest.$ac_objext conftest$ac_exeext
25006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25007 (eval $ac_link) 2>conftest.er1
25009 grep -v '^ *+' conftest.er1 >conftest.err
25011 cat conftest.err >&5
25012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013 (exit $ac_status); } &&
25014 { ac_try='test -z "$ac_c_werror_flag"
25015 || test ! -s conftest.err'
25016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25017 (eval $ac_try) 2>&5
25019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020 (exit $ac_status); }; } &&
25021 { ac_try='test -s conftest$ac_exeext'
25022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25023 (eval $ac_try) 2>&5
25025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026 (exit $ac_status); }; }; then
25027 ac_cv_search_dlopen="none required"
25029 echo "$as_me: failed program was:" >&5
25030 sed 's/^/| /' conftest.$ac_ext >&5
25033 rm -f conftest.err conftest.$ac_objext \
25034 conftest$ac_exeext conftest.$ac_ext
25035 if test "$ac_cv_search_dlopen" = no; then
25036 for ac_lib in dl; do
25037 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25038 cat >conftest.$ac_ext <<_ACEOF
25041 cat confdefs.h >>conftest.$ac_ext
25042 cat >>conftest.$ac_ext <<_ACEOF
25043 /* end confdefs.h. */
25045 /* Override any gcc2 internal prototype to avoid an error. */
25049 /* We use char because int might match the return type of a gcc2
25050 builtin and then its argument prototype would still apply. */
25060 rm -f conftest.$ac_objext conftest$ac_exeext
25061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25062 (eval $ac_link) 2>conftest.er1
25064 grep -v '^ *+' conftest.er1 >conftest.err
25066 cat conftest.err >&5
25067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068 (exit $ac_status); } &&
25069 { ac_try='test -z "$ac_c_werror_flag"
25070 || test ! -s conftest.err'
25071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25072 (eval $ac_try) 2>&5
25074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075 (exit $ac_status); }; } &&
25076 { ac_try='test -s conftest$ac_exeext'
25077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25078 (eval $ac_try) 2>&5
25080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081 (exit $ac_status); }; }; then
25082 ac_cv_search_dlopen="-l$ac_lib"
25085 echo "$as_me: failed program was:" >&5
25086 sed 's/^/| /' conftest.$ac_ext >&5
25089 rm -f conftest.err conftest.$ac_objext \
25090 conftest$ac_exeext conftest.$ac_ext
25093 LIBS=$ac_func_search_save_LIBS
25095 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25096 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25097 if test "$ac_cv_search_dlopen" != no; then
25098 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25100 cat >>confdefs.h <<\_ACEOF
25101 #define HAVE_DLOPEN 1
25105 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25106 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25110 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25111 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25112 if test "${ac_cv_search_mallinfo+set}" = set; then
25113 echo $ECHO_N "(cached) $ECHO_C" >&6
25115 ac_func_search_save_LIBS=$LIBS
25116 ac_cv_search_mallinfo=no
25117 cat >conftest.$ac_ext <<_ACEOF
25120 cat confdefs.h >>conftest.$ac_ext
25121 cat >>conftest.$ac_ext <<_ACEOF
25122 /* end confdefs.h. */
25124 /* Override any gcc2 internal prototype to avoid an error. */
25128 /* We use char because int might match the return type of a gcc2
25129 builtin and then its argument prototype would still apply. */
25139 rm -f conftest.$ac_objext conftest$ac_exeext
25140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25141 (eval $ac_link) 2>conftest.er1
25143 grep -v '^ *+' conftest.er1 >conftest.err
25145 cat conftest.err >&5
25146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147 (exit $ac_status); } &&
25148 { ac_try='test -z "$ac_c_werror_flag"
25149 || test ! -s conftest.err'
25150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25151 (eval $ac_try) 2>&5
25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154 (exit $ac_status); }; } &&
25155 { ac_try='test -s conftest$ac_exeext'
25156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25157 (eval $ac_try) 2>&5
25159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25160 (exit $ac_status); }; }; then
25161 ac_cv_search_mallinfo="none required"
25163 echo "$as_me: failed program was:" >&5
25164 sed 's/^/| /' conftest.$ac_ext >&5
25167 rm -f conftest.err conftest.$ac_objext \
25168 conftest$ac_exeext conftest.$ac_ext
25169 if test "$ac_cv_search_mallinfo" = no; then
25170 for ac_lib in malloc; do
25171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25172 cat >conftest.$ac_ext <<_ACEOF
25175 cat confdefs.h >>conftest.$ac_ext
25176 cat >>conftest.$ac_ext <<_ACEOF
25177 /* end confdefs.h. */
25179 /* Override any gcc2 internal prototype to avoid an error. */
25183 /* We use char because int might match the return type of a gcc2
25184 builtin and then its argument prototype would still apply. */
25194 rm -f conftest.$ac_objext conftest$ac_exeext
25195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25196 (eval $ac_link) 2>conftest.er1
25198 grep -v '^ *+' conftest.er1 >conftest.err
25200 cat conftest.err >&5
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); } &&
25203 { ac_try='test -z "$ac_c_werror_flag"
25204 || test ! -s conftest.err'
25205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25206 (eval $ac_try) 2>&5
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); }; } &&
25210 { ac_try='test -s conftest$ac_exeext'
25211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25212 (eval $ac_try) 2>&5
25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); }; }; then
25216 ac_cv_search_mallinfo="-l$ac_lib"
25219 echo "$as_me: failed program was:" >&5
25220 sed 's/^/| /' conftest.$ac_ext >&5
25223 rm -f conftest.err conftest.$ac_objext \
25224 conftest$ac_exeext conftest.$ac_ext
25227 LIBS=$ac_func_search_save_LIBS
25229 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25230 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25231 if test "$ac_cv_search_mallinfo" != no; then
25232 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25234 cat >>confdefs.h <<\_ACEOF
25235 #define HAVE_MALLINFO 1
25241 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25242 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25243 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25244 echo $ECHO_N "(cached) $ECHO_C" >&6
25246 ac_func_search_save_LIBS=$LIBS
25247 ac_cv_search_pthread_mutex_lock=no
25248 cat >conftest.$ac_ext <<_ACEOF
25251 cat confdefs.h >>conftest.$ac_ext
25252 cat >>conftest.$ac_ext <<_ACEOF
25253 /* end confdefs.h. */
25255 /* Override any gcc2 internal prototype to avoid an error. */
25259 /* We use char because int might match the return type of a gcc2
25260 builtin and then its argument prototype would still apply. */
25261 char pthread_mutex_lock ();
25265 pthread_mutex_lock ();
25270 rm -f conftest.$ac_objext conftest$ac_exeext
25271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25272 (eval $ac_link) 2>conftest.er1
25274 grep -v '^ *+' conftest.er1 >conftest.err
25276 cat conftest.err >&5
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); } &&
25279 { ac_try='test -z "$ac_c_werror_flag"
25280 || test ! -s conftest.err'
25281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282 (eval $ac_try) 2>&5
25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); }; } &&
25286 { ac_try='test -s conftest$ac_exeext'
25287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25288 (eval $ac_try) 2>&5
25290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291 (exit $ac_status); }; }; then
25292 ac_cv_search_pthread_mutex_lock="none required"
25294 echo "$as_me: failed program was:" >&5
25295 sed 's/^/| /' conftest.$ac_ext >&5
25298 rm -f conftest.err conftest.$ac_objext \
25299 conftest$ac_exeext conftest.$ac_ext
25300 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25301 for ac_lib in pthread; do
25302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25303 cat >conftest.$ac_ext <<_ACEOF
25306 cat confdefs.h >>conftest.$ac_ext
25307 cat >>conftest.$ac_ext <<_ACEOF
25308 /* end confdefs.h. */
25310 /* Override any gcc2 internal prototype to avoid an error. */
25314 /* We use char because int might match the return type of a gcc2
25315 builtin and then its argument prototype would still apply. */
25316 char pthread_mutex_lock ();
25320 pthread_mutex_lock ();
25325 rm -f conftest.$ac_objext conftest$ac_exeext
25326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25327 (eval $ac_link) 2>conftest.er1
25329 grep -v '^ *+' conftest.er1 >conftest.err
25331 cat conftest.err >&5
25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); } &&
25334 { ac_try='test -z "$ac_c_werror_flag"
25335 || test ! -s conftest.err'
25336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25337 (eval $ac_try) 2>&5
25339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340 (exit $ac_status); }; } &&
25341 { ac_try='test -s conftest$ac_exeext'
25342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25343 (eval $ac_try) 2>&5
25345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346 (exit $ac_status); }; }; then
25347 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25350 echo "$as_me: failed program was:" >&5
25351 sed 's/^/| /' conftest.$ac_ext >&5
25354 rm -f conftest.err conftest.$ac_objext \
25355 conftest$ac_exeext conftest.$ac_ext
25358 LIBS=$ac_func_search_save_LIBS
25360 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25361 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25362 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25363 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25365 cat >>confdefs.h <<\_ACEOF
25366 #define HAVE_PTHREAD_MUTEX_LOCK 1
25378 ac_header_dirent=no
25379 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25380 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25381 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25382 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25384 echo $ECHO_N "(cached) $ECHO_C" >&6
25386 cat >conftest.$ac_ext <<_ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h. */
25392 #include <sys/types.h>
25404 rm -f conftest.$ac_objext
25405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25406 (eval $ac_compile) 2>conftest.er1
25408 grep -v '^ *+' conftest.er1 >conftest.err
25410 cat conftest.err >&5
25411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412 (exit $ac_status); } &&
25413 { ac_try='test -z "$ac_c_werror_flag"
25414 || test ! -s conftest.err'
25415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25416 (eval $ac_try) 2>&5
25418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419 (exit $ac_status); }; } &&
25420 { ac_try='test -s conftest.$ac_objext'
25421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25422 (eval $ac_try) 2>&5
25424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425 (exit $ac_status); }; }; then
25426 eval "$as_ac_Header=yes"
25428 echo "$as_me: failed program was:" >&5
25429 sed 's/^/| /' conftest.$ac_ext >&5
25431 eval "$as_ac_Header=no"
25433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25438 cat >>confdefs.h <<_ACEOF
25439 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25442 ac_header_dirent=$ac_hdr; break
25446 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25447 if test $ac_header_dirent = dirent.h; then
25448 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25449 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25450 if test "${ac_cv_search_opendir+set}" = set; then
25451 echo $ECHO_N "(cached) $ECHO_C" >&6
25453 ac_func_search_save_LIBS=$LIBS
25454 ac_cv_search_opendir=no
25455 cat >conftest.$ac_ext <<_ACEOF
25458 cat confdefs.h >>conftest.$ac_ext
25459 cat >>conftest.$ac_ext <<_ACEOF
25460 /* end confdefs.h. */
25462 /* Override any gcc2 internal prototype to avoid an error. */
25466 /* We use char because int might match the return type of a gcc2
25467 builtin and then its argument prototype would still apply. */
25477 rm -f conftest.$ac_objext conftest$ac_exeext
25478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25479 (eval $ac_link) 2>conftest.er1
25481 grep -v '^ *+' conftest.er1 >conftest.err
25483 cat conftest.err >&5
25484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25485 (exit $ac_status); } &&
25486 { ac_try='test -z "$ac_c_werror_flag"
25487 || test ! -s conftest.err'
25488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25489 (eval $ac_try) 2>&5
25491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); }; } &&
25493 { ac_try='test -s conftest$ac_exeext'
25494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25495 (eval $ac_try) 2>&5
25497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498 (exit $ac_status); }; }; then
25499 ac_cv_search_opendir="none required"
25501 echo "$as_me: failed program was:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25505 rm -f conftest.err conftest.$ac_objext \
25506 conftest$ac_exeext conftest.$ac_ext
25507 if test "$ac_cv_search_opendir" = no; then
25508 for ac_lib in dir; do
25509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25510 cat >conftest.$ac_ext <<_ACEOF
25513 cat confdefs.h >>conftest.$ac_ext
25514 cat >>conftest.$ac_ext <<_ACEOF
25515 /* end confdefs.h. */
25517 /* Override any gcc2 internal prototype to avoid an error. */
25521 /* We use char because int might match the return type of a gcc2
25522 builtin and then its argument prototype would still apply. */
25532 rm -f conftest.$ac_objext conftest$ac_exeext
25533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25534 (eval $ac_link) 2>conftest.er1
25536 grep -v '^ *+' conftest.er1 >conftest.err
25538 cat conftest.err >&5
25539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540 (exit $ac_status); } &&
25541 { ac_try='test -z "$ac_c_werror_flag"
25542 || test ! -s conftest.err'
25543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25544 (eval $ac_try) 2>&5
25546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547 (exit $ac_status); }; } &&
25548 { ac_try='test -s conftest$ac_exeext'
25549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25550 (eval $ac_try) 2>&5
25552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553 (exit $ac_status); }; }; then
25554 ac_cv_search_opendir="-l$ac_lib"
25557 echo "$as_me: failed program was:" >&5
25558 sed 's/^/| /' conftest.$ac_ext >&5
25561 rm -f conftest.err conftest.$ac_objext \
25562 conftest$ac_exeext conftest.$ac_ext
25565 LIBS=$ac_func_search_save_LIBS
25567 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25568 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25569 if test "$ac_cv_search_opendir" != no; then
25570 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25575 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25576 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25577 if test "${ac_cv_search_opendir+set}" = set; then
25578 echo $ECHO_N "(cached) $ECHO_C" >&6
25580 ac_func_search_save_LIBS=$LIBS
25581 ac_cv_search_opendir=no
25582 cat >conftest.$ac_ext <<_ACEOF
25585 cat confdefs.h >>conftest.$ac_ext
25586 cat >>conftest.$ac_ext <<_ACEOF
25587 /* end confdefs.h. */
25589 /* Override any gcc2 internal prototype to avoid an error. */
25593 /* We use char because int might match the return type of a gcc2
25594 builtin and then its argument prototype would still apply. */
25604 rm -f conftest.$ac_objext conftest$ac_exeext
25605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25606 (eval $ac_link) 2>conftest.er1
25608 grep -v '^ *+' conftest.er1 >conftest.err
25610 cat conftest.err >&5
25611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612 (exit $ac_status); } &&
25613 { ac_try='test -z "$ac_c_werror_flag"
25614 || test ! -s conftest.err'
25615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25616 (eval $ac_try) 2>&5
25618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619 (exit $ac_status); }; } &&
25620 { ac_try='test -s conftest$ac_exeext'
25621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25622 (eval $ac_try) 2>&5
25624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); }; }; then
25626 ac_cv_search_opendir="none required"
25628 echo "$as_me: failed program was:" >&5
25629 sed 's/^/| /' conftest.$ac_ext >&5
25632 rm -f conftest.err conftest.$ac_objext \
25633 conftest$ac_exeext conftest.$ac_ext
25634 if test "$ac_cv_search_opendir" = no; then
25635 for ac_lib in x; do
25636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25637 cat >conftest.$ac_ext <<_ACEOF
25640 cat confdefs.h >>conftest.$ac_ext
25641 cat >>conftest.$ac_ext <<_ACEOF
25642 /* end confdefs.h. */
25644 /* Override any gcc2 internal prototype to avoid an error. */
25648 /* We use char because int might match the return type of a gcc2
25649 builtin and then its argument prototype would still apply. */
25659 rm -f conftest.$ac_objext conftest$ac_exeext
25660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25661 (eval $ac_link) 2>conftest.er1
25663 grep -v '^ *+' conftest.er1 >conftest.err
25665 cat conftest.err >&5
25666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667 (exit $ac_status); } &&
25668 { ac_try='test -z "$ac_c_werror_flag"
25669 || test ! -s conftest.err'
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); }; } &&
25675 { ac_try='test -s conftest$ac_exeext'
25676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25677 (eval $ac_try) 2>&5
25679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680 (exit $ac_status); }; }; then
25681 ac_cv_search_opendir="-l$ac_lib"
25684 echo "$as_me: failed program was:" >&5
25685 sed 's/^/| /' conftest.$ac_ext >&5
25688 rm -f conftest.err conftest.$ac_objext \
25689 conftest$ac_exeext conftest.$ac_ext
25692 LIBS=$ac_func_search_save_LIBS
25694 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25695 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25696 if test "$ac_cv_search_opendir" != no; then
25697 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25703 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25704 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25705 if test "${ac_cv_header_mmap_anon+set}" = set; then
25706 echo $ECHO_N "(cached) $ECHO_C" >&6
25709 ac_cpp='$CPP $CPPFLAGS'
25710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25714 cat >conftest.$ac_ext <<_ACEOF
25717 cat confdefs.h >>conftest.$ac_ext
25718 cat >>conftest.$ac_ext <<_ACEOF
25719 /* end confdefs.h. */
25720 #include <sys/mman.h>
25721 #include <unistd.h>
25726 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25731 rm -f conftest.$ac_objext
25732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25733 (eval $ac_compile) 2>conftest.er1
25735 grep -v '^ *+' conftest.er1 >conftest.err
25737 cat conftest.err >&5
25738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739 (exit $ac_status); } &&
25740 { ac_try='test -z "$ac_c_werror_flag"
25741 || test ! -s conftest.err'
25742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25743 (eval $ac_try) 2>&5
25745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746 (exit $ac_status); }; } &&
25747 { ac_try='test -s conftest.$ac_objext'
25748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25749 (eval $ac_try) 2>&5
25751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25752 (exit $ac_status); }; }; then
25753 ac_cv_header_mmap_anon=yes
25755 echo "$as_me: failed program was:" >&5
25756 sed 's/^/| /' conftest.$ac_ext >&5
25758 ac_cv_header_mmap_anon=no
25760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25762 ac_cpp='$CPP $CPPFLAGS'
25763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25769 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25770 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25771 if test "$ac_cv_header_mmap_anon" = yes; then
25773 cat >>confdefs.h <<\_ACEOF
25774 #define HAVE_MMAP_ANONYMOUS 1
25779 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25780 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25781 if test "${ac_cv_header_stat_broken+set}" = set; then
25782 echo $ECHO_N "(cached) $ECHO_C" >&6
25784 cat >conftest.$ac_ext <<_ACEOF
25787 cat confdefs.h >>conftest.$ac_ext
25788 cat >>conftest.$ac_ext <<_ACEOF
25789 /* end confdefs.h. */
25790 #include <sys/types.h>
25791 #include <sys/stat.h>
25793 #if defined(S_ISBLK) && defined(S_IFDIR)
25794 # if S_ISBLK (S_IFDIR)
25799 #if defined(S_ISBLK) && defined(S_IFCHR)
25800 # if S_ISBLK (S_IFCHR)
25805 #if defined(S_ISLNK) && defined(S_IFREG)
25806 # if S_ISLNK (S_IFREG)
25811 #if defined(S_ISSOCK) && defined(S_IFREG)
25812 # if S_ISSOCK (S_IFREG)
25818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25819 $EGREP "You lose" >/dev/null 2>&1; then
25820 ac_cv_header_stat_broken=yes
25822 ac_cv_header_stat_broken=no
25827 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25828 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25829 if test $ac_cv_header_stat_broken = yes; then
25831 cat >>confdefs.h <<\_ACEOF
25832 #define STAT_MACROS_BROKEN 1
25837 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25838 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25839 if test "${ac_cv_header_stdc+set}" = set; then
25840 echo $ECHO_N "(cached) $ECHO_C" >&6
25842 cat >conftest.$ac_ext <<_ACEOF
25845 cat confdefs.h >>conftest.$ac_ext
25846 cat >>conftest.$ac_ext <<_ACEOF
25847 /* end confdefs.h. */
25848 #include <stdlib.h>
25849 #include <stdarg.h>
25850 #include <string.h>
25861 rm -f conftest.$ac_objext
25862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25863 (eval $ac_compile) 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_objext'
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_header_stdc=yes
25885 echo "$as_me: failed program was:" >&5
25886 sed 's/^/| /' conftest.$ac_ext >&5
25888 ac_cv_header_stdc=no
25890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25892 if test $ac_cv_header_stdc = yes; then
25893 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25894 cat >conftest.$ac_ext <<_ACEOF
25897 cat confdefs.h >>conftest.$ac_ext
25898 cat >>conftest.$ac_ext <<_ACEOF
25899 /* end confdefs.h. */
25900 #include <string.h>
25903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25904 $EGREP "memchr" >/dev/null 2>&1; then
25907 ac_cv_header_stdc=no
25913 if test $ac_cv_header_stdc = yes; then
25914 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25915 cat >conftest.$ac_ext <<_ACEOF
25918 cat confdefs.h >>conftest.$ac_ext
25919 cat >>conftest.$ac_ext <<_ACEOF
25920 /* end confdefs.h. */
25921 #include <stdlib.h>
25924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25925 $EGREP "free" >/dev/null 2>&1; then
25928 ac_cv_header_stdc=no
25934 if test $ac_cv_header_stdc = yes; then
25935 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25936 if test "$cross_compiling" = yes; then
25939 cat >conftest.$ac_ext <<_ACEOF
25942 cat confdefs.h >>conftest.$ac_ext
25943 cat >>conftest.$ac_ext <<_ACEOF
25944 /* end confdefs.h. */
25946 #if ((' ' & 0x0FF) == 0x020)
25947 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25948 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25950 # define ISLOWER(c) \
25951 (('a' <= (c) && (c) <= 'i') \
25952 || ('j' <= (c) && (c) <= 'r') \
25953 || ('s' <= (c) && (c) <= 'z'))
25954 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25957 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25962 for (i = 0; i < 256; i++)
25963 if (XOR (islower (i), ISLOWER (i))
25964 || toupper (i) != TOUPPER (i))
25969 rm -f conftest$ac_exeext
25970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25971 (eval $ac_link) 2>&5
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25976 (eval $ac_try) 2>&5
25978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); }; }; then
25982 echo "$as_me: program exited with status $ac_status" >&5
25983 echo "$as_me: failed program was:" >&5
25984 sed 's/^/| /' conftest.$ac_ext >&5
25986 ( exit $ac_status )
25987 ac_cv_header_stdc=no
25989 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25993 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25994 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25995 if test $ac_cv_header_stdc = yes; then
25997 cat >>confdefs.h <<\_ACEOF
25998 #define STDC_HEADERS 1
26003 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26004 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26005 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26006 echo $ECHO_N "(cached) $ECHO_C" >&6
26008 cat >conftest.$ac_ext <<_ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h. */
26014 #include <sys/types.h>
26015 #include <sys/wait.h>
26016 #ifndef WEXITSTATUS
26017 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26020 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26028 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26033 rm -f conftest.$ac_objext
26034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26035 (eval $ac_compile) 2>conftest.er1
26037 grep -v '^ *+' conftest.er1 >conftest.err
26039 cat conftest.err >&5
26040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041 (exit $ac_status); } &&
26042 { ac_try='test -z "$ac_c_werror_flag"
26043 || test ! -s conftest.err'
26044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26045 (eval $ac_try) 2>&5
26047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26048 (exit $ac_status); }; } &&
26049 { ac_try='test -s conftest.$ac_objext'
26050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26051 (eval $ac_try) 2>&5
26053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054 (exit $ac_status); }; }; then
26055 ac_cv_header_sys_wait_h=yes
26057 echo "$as_me: failed program was:" >&5
26058 sed 's/^/| /' conftest.$ac_ext >&5
26060 ac_cv_header_sys_wait_h=no
26062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26064 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26065 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26066 if test $ac_cv_header_sys_wait_h = yes; then
26068 cat >>confdefs.h <<\_ACEOF
26069 #define HAVE_SYS_WAIT_H 1
26074 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26075 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26076 if test "${ac_cv_header_time+set}" = set; then
26077 echo $ECHO_N "(cached) $ECHO_C" >&6
26079 cat >conftest.$ac_ext <<_ACEOF
26082 cat confdefs.h >>conftest.$ac_ext
26083 cat >>conftest.$ac_ext <<_ACEOF
26084 /* end confdefs.h. */
26085 #include <sys/types.h>
26086 #include <sys/time.h>
26092 if ((struct tm *) 0)
26098 rm -f conftest.$ac_objext
26099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26100 (eval $ac_compile) 2>conftest.er1
26102 grep -v '^ *+' conftest.er1 >conftest.err
26104 cat conftest.err >&5
26105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106 (exit $ac_status); } &&
26107 { ac_try='test -z "$ac_c_werror_flag"
26108 || test ! -s conftest.err'
26109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26110 (eval $ac_try) 2>&5
26112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113 (exit $ac_status); }; } &&
26114 { ac_try='test -s conftest.$ac_objext'
26115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26116 (eval $ac_try) 2>&5
26118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119 (exit $ac_status); }; }; then
26120 ac_cv_header_time=yes
26122 echo "$as_me: failed program was:" >&5
26123 sed 's/^/| /' conftest.$ac_ext >&5
26125 ac_cv_header_time=no
26127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26129 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26130 echo "${ECHO_T}$ac_cv_header_time" >&6
26131 if test $ac_cv_header_time = yes; then
26133 cat >>confdefs.h <<\_ACEOF
26134 #define TIME_WITH_SYS_TIME 1
26146 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26150 echo "$as_me:$LINENO: checking for $ac_header" >&5
26151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26153 echo $ECHO_N "(cached) $ECHO_C" >&6
26155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26158 # Is the header compilable?
26159 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26161 cat >conftest.$ac_ext <<_ACEOF
26164 cat confdefs.h >>conftest.$ac_ext
26165 cat >>conftest.$ac_ext <<_ACEOF
26166 /* end confdefs.h. */
26167 $ac_includes_default
26168 #include <$ac_header>
26170 rm -f conftest.$ac_objext
26171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26172 (eval $ac_compile) 2>conftest.er1
26174 grep -v '^ *+' conftest.er1 >conftest.err
26176 cat conftest.err >&5
26177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); } &&
26179 { ac_try='test -z "$ac_c_werror_flag"
26180 || test ! -s conftest.err'
26181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26182 (eval $ac_try) 2>&5
26184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185 (exit $ac_status); }; } &&
26186 { ac_try='test -s conftest.$ac_objext'
26187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26188 (eval $ac_try) 2>&5
26190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); }; }; then
26192 ac_header_compiler=yes
26194 echo "$as_me: failed program was:" >&5
26195 sed 's/^/| /' conftest.$ac_ext >&5
26197 ac_header_compiler=no
26199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26201 echo "${ECHO_T}$ac_header_compiler" >&6
26203 # Is the header present?
26204 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26206 cat >conftest.$ac_ext <<_ACEOF
26209 cat confdefs.h >>conftest.$ac_ext
26210 cat >>conftest.$ac_ext <<_ACEOF
26211 /* end confdefs.h. */
26212 #include <$ac_header>
26214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26217 grep -v '^ *+' conftest.er1 >conftest.err
26219 cat conftest.err >&5
26220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26221 (exit $ac_status); } >/dev/null; then
26222 if test -s conftest.err; then
26223 ac_cpp_err=$ac_c_preproc_warn_flag
26224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26231 if test -z "$ac_cpp_err"; then
26232 ac_header_preproc=yes
26234 echo "$as_me: failed program was:" >&5
26235 sed 's/^/| /' conftest.$ac_ext >&5
26237 ac_header_preproc=no
26239 rm -f conftest.err conftest.$ac_ext
26240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26241 echo "${ECHO_T}$ac_header_preproc" >&6
26243 # So? What about this header?
26244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26250 ac_header_preproc=yes
26253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26260 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26267 ## ----------------------------------- ##
26268 ## Report this to llvmbugs@cs.uiuc.edu ##
26269 ## ----------------------------------- ##
26272 sed "s/^/$as_me: WARNING: /" >&2
26275 echo "$as_me:$LINENO: checking for $ac_header" >&5
26276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26278 echo $ECHO_N "(cached) $ECHO_C" >&6
26280 eval "$as_ac_Header=\$ac_header_preproc"
26282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26287 cat >>confdefs.h <<_ACEOF
26288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26301 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26305 echo "$as_me:$LINENO: checking for $ac_header" >&5
26306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26308 echo $ECHO_N "(cached) $ECHO_C" >&6
26310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26313 # Is the header compilable?
26314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26316 cat >conftest.$ac_ext <<_ACEOF
26319 cat confdefs.h >>conftest.$ac_ext
26320 cat >>conftest.$ac_ext <<_ACEOF
26321 /* end confdefs.h. */
26322 $ac_includes_default
26323 #include <$ac_header>
26325 rm -f conftest.$ac_objext
26326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26327 (eval $ac_compile) 2>conftest.er1
26329 grep -v '^ *+' conftest.er1 >conftest.err
26331 cat conftest.err >&5
26332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26333 (exit $ac_status); } &&
26334 { ac_try='test -z "$ac_c_werror_flag"
26335 || test ! -s conftest.err'
26336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26337 (eval $ac_try) 2>&5
26339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26340 (exit $ac_status); }; } &&
26341 { ac_try='test -s conftest.$ac_objext'
26342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26343 (eval $ac_try) 2>&5
26345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346 (exit $ac_status); }; }; then
26347 ac_header_compiler=yes
26349 echo "$as_me: failed program was:" >&5
26350 sed 's/^/| /' conftest.$ac_ext >&5
26352 ac_header_compiler=no
26354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26356 echo "${ECHO_T}$ac_header_compiler" >&6
26358 # Is the header present?
26359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26361 cat >conftest.$ac_ext <<_ACEOF
26364 cat confdefs.h >>conftest.$ac_ext
26365 cat >>conftest.$ac_ext <<_ACEOF
26366 /* end confdefs.h. */
26367 #include <$ac_header>
26369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26372 grep -v '^ *+' conftest.er1 >conftest.err
26374 cat conftest.err >&5
26375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376 (exit $ac_status); } >/dev/null; then
26377 if test -s conftest.err; then
26378 ac_cpp_err=$ac_c_preproc_warn_flag
26379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26386 if test -z "$ac_cpp_err"; then
26387 ac_header_preproc=yes
26389 echo "$as_me: failed program was:" >&5
26390 sed 's/^/| /' conftest.$ac_ext >&5
26392 ac_header_preproc=no
26394 rm -f conftest.err conftest.$ac_ext
26395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26396 echo "${ECHO_T}$ac_header_preproc" >&6
26398 # So? What about this header?
26399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26405 ac_header_preproc=yes
26408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26422 ## ----------------------------------- ##
26423 ## Report this to llvmbugs@cs.uiuc.edu ##
26424 ## ----------------------------------- ##
26427 sed "s/^/$as_me: WARNING: /" >&2
26430 echo "$as_me:$LINENO: checking for $ac_header" >&5
26431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26433 echo $ECHO_N "(cached) $ECHO_C" >&6
26435 eval "$as_ac_Header=\$ac_header_preproc"
26437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26442 cat >>confdefs.h <<_ACEOF
26443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26455 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26459 echo "$as_me:$LINENO: checking for $ac_header" >&5
26460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26462 echo $ECHO_N "(cached) $ECHO_C" >&6
26464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26467 # Is the header compilable?
26468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26470 cat >conftest.$ac_ext <<_ACEOF
26473 cat confdefs.h >>conftest.$ac_ext
26474 cat >>conftest.$ac_ext <<_ACEOF
26475 /* end confdefs.h. */
26476 $ac_includes_default
26477 #include <$ac_header>
26479 rm -f conftest.$ac_objext
26480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26481 (eval $ac_compile) 2>conftest.er1
26483 grep -v '^ *+' conftest.er1 >conftest.err
26485 cat conftest.err >&5
26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 (exit $ac_status); } &&
26488 { ac_try='test -z "$ac_c_werror_flag"
26489 || test ! -s conftest.err'
26490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26491 (eval $ac_try) 2>&5
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); }; } &&
26495 { ac_try='test -s conftest.$ac_objext'
26496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26497 (eval $ac_try) 2>&5
26499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500 (exit $ac_status); }; }; then
26501 ac_header_compiler=yes
26503 echo "$as_me: failed program was:" >&5
26504 sed 's/^/| /' conftest.$ac_ext >&5
26506 ac_header_compiler=no
26508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26510 echo "${ECHO_T}$ac_header_compiler" >&6
26512 # Is the header present?
26513 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26515 cat >conftest.$ac_ext <<_ACEOF
26518 cat confdefs.h >>conftest.$ac_ext
26519 cat >>conftest.$ac_ext <<_ACEOF
26520 /* end confdefs.h. */
26521 #include <$ac_header>
26523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26526 grep -v '^ *+' conftest.er1 >conftest.err
26528 cat conftest.err >&5
26529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530 (exit $ac_status); } >/dev/null; then
26531 if test -s conftest.err; then
26532 ac_cpp_err=$ac_c_preproc_warn_flag
26533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26540 if test -z "$ac_cpp_err"; then
26541 ac_header_preproc=yes
26543 echo "$as_me: failed program was:" >&5
26544 sed 's/^/| /' conftest.$ac_ext >&5
26546 ac_header_preproc=no
26548 rm -f conftest.err conftest.$ac_ext
26549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26550 echo "${ECHO_T}$ac_header_preproc" >&6
26552 # So? What about this header?
26553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26559 ac_header_preproc=yes
26562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26569 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26576 ## ----------------------------------- ##
26577 ## Report this to llvmbugs@cs.uiuc.edu ##
26578 ## ----------------------------------- ##
26581 sed "s/^/$as_me: WARNING: /" >&2
26584 echo "$as_me:$LINENO: checking for $ac_header" >&5
26585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26587 echo $ECHO_N "(cached) $ECHO_C" >&6
26589 eval "$as_ac_Header=\$ac_header_preproc"
26591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26596 cat >>confdefs.h <<_ACEOF
26597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26606 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26610 echo "$as_me:$LINENO: checking for $ac_header" >&5
26611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26613 echo $ECHO_N "(cached) $ECHO_C" >&6
26615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26618 # Is the header compilable?
26619 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26620 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26621 cat >conftest.$ac_ext <<_ACEOF
26624 cat confdefs.h >>conftest.$ac_ext
26625 cat >>conftest.$ac_ext <<_ACEOF
26626 /* end confdefs.h. */
26627 $ac_includes_default
26628 #include <$ac_header>
26630 rm -f conftest.$ac_objext
26631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26632 (eval $ac_compile) 2>conftest.er1
26634 grep -v '^ *+' conftest.er1 >conftest.err
26636 cat conftest.err >&5
26637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26638 (exit $ac_status); } &&
26639 { ac_try='test -z "$ac_c_werror_flag"
26640 || test ! -s conftest.err'
26641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26642 (eval $ac_try) 2>&5
26644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645 (exit $ac_status); }; } &&
26646 { ac_try='test -s conftest.$ac_objext'
26647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26648 (eval $ac_try) 2>&5
26650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); }; }; then
26652 ac_header_compiler=yes
26654 echo "$as_me: failed program was:" >&5
26655 sed 's/^/| /' conftest.$ac_ext >&5
26657 ac_header_compiler=no
26659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26661 echo "${ECHO_T}$ac_header_compiler" >&6
26663 # Is the header present?
26664 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26666 cat >conftest.$ac_ext <<_ACEOF
26669 cat confdefs.h >>conftest.$ac_ext
26670 cat >>conftest.$ac_ext <<_ACEOF
26671 /* end confdefs.h. */
26672 #include <$ac_header>
26674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26677 grep -v '^ *+' conftest.er1 >conftest.err
26679 cat conftest.err >&5
26680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26681 (exit $ac_status); } >/dev/null; then
26682 if test -s conftest.err; then
26683 ac_cpp_err=$ac_c_preproc_warn_flag
26684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26691 if test -z "$ac_cpp_err"; then
26692 ac_header_preproc=yes
26694 echo "$as_me: failed program was:" >&5
26695 sed 's/^/| /' conftest.$ac_ext >&5
26697 ac_header_preproc=no
26699 rm -f conftest.err conftest.$ac_ext
26700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26701 echo "${ECHO_T}$ac_header_preproc" >&6
26703 # So? What about this header?
26704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26710 ac_header_preproc=yes
26713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26716 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26718 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26720 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26724 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26727 ## ----------------------------------- ##
26728 ## Report this to llvmbugs@cs.uiuc.edu ##
26729 ## ----------------------------------- ##
26732 sed "s/^/$as_me: WARNING: /" >&2
26735 echo "$as_me:$LINENO: checking for $ac_header" >&5
26736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26738 echo $ECHO_N "(cached) $ECHO_C" >&6
26740 eval "$as_ac_Header=\$ac_header_preproc"
26742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26747 cat >>confdefs.h <<_ACEOF
26748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26757 echo "$as_me:$LINENO: checking for pid_t" >&5
26758 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26759 if test "${ac_cv_type_pid_t+set}" = set; then
26760 echo $ECHO_N "(cached) $ECHO_C" >&6
26762 cat >conftest.$ac_ext <<_ACEOF
26765 cat confdefs.h >>conftest.$ac_ext
26766 cat >>conftest.$ac_ext <<_ACEOF
26767 /* end confdefs.h. */
26768 $ac_includes_default
26774 if (sizeof (pid_t))
26780 rm -f conftest.$ac_objext
26781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26782 (eval $ac_compile) 2>conftest.er1
26784 grep -v '^ *+' conftest.er1 >conftest.err
26786 cat conftest.err >&5
26787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788 (exit $ac_status); } &&
26789 { ac_try='test -z "$ac_c_werror_flag"
26790 || test ! -s conftest.err'
26791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26792 (eval $ac_try) 2>&5
26794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795 (exit $ac_status); }; } &&
26796 { ac_try='test -s conftest.$ac_objext'
26797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26798 (eval $ac_try) 2>&5
26800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801 (exit $ac_status); }; }; then
26802 ac_cv_type_pid_t=yes
26804 echo "$as_me: failed program was:" >&5
26805 sed 's/^/| /' conftest.$ac_ext >&5
26807 ac_cv_type_pid_t=no
26809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26811 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26812 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26813 if test $ac_cv_type_pid_t = yes; then
26817 cat >>confdefs.h <<_ACEOF
26823 echo "$as_me:$LINENO: checking for size_t" >&5
26824 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26825 if test "${ac_cv_type_size_t+set}" = set; then
26826 echo $ECHO_N "(cached) $ECHO_C" >&6
26828 cat >conftest.$ac_ext <<_ACEOF
26831 cat confdefs.h >>conftest.$ac_ext
26832 cat >>conftest.$ac_ext <<_ACEOF
26833 /* end confdefs.h. */
26834 $ac_includes_default
26840 if (sizeof (size_t))
26846 rm -f conftest.$ac_objext
26847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26848 (eval $ac_compile) 2>conftest.er1
26850 grep -v '^ *+' conftest.er1 >conftest.err
26852 cat conftest.err >&5
26853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854 (exit $ac_status); } &&
26855 { ac_try='test -z "$ac_c_werror_flag"
26856 || test ! -s conftest.err'
26857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26858 (eval $ac_try) 2>&5
26860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26861 (exit $ac_status); }; } &&
26862 { ac_try='test -s conftest.$ac_objext'
26863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26864 (eval $ac_try) 2>&5
26866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867 (exit $ac_status); }; }; then
26868 ac_cv_type_size_t=yes
26870 echo "$as_me: failed program was:" >&5
26871 sed 's/^/| /' conftest.$ac_ext >&5
26873 ac_cv_type_size_t=no
26875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26877 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26878 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26879 if test $ac_cv_type_size_t = yes; then
26883 cat >>confdefs.h <<_ACEOF
26884 #define size_t unsigned
26889 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26890 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26891 if test "${ac_cv_type_signal+set}" = set; then
26892 echo $ECHO_N "(cached) $ECHO_C" >&6
26894 cat >conftest.$ac_ext <<_ACEOF
26897 cat confdefs.h >>conftest.$ac_ext
26898 cat >>conftest.$ac_ext <<_ACEOF
26899 /* end confdefs.h. */
26900 #include <sys/types.h>
26901 #include <signal.h>
26906 extern "C" void (*signal (int, void (*)(int)))(int);
26908 void (*signal ()) ();
26919 rm -f conftest.$ac_objext
26920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26921 (eval $ac_compile) 2>conftest.er1
26923 grep -v '^ *+' conftest.er1 >conftest.err
26925 cat conftest.err >&5
26926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927 (exit $ac_status); } &&
26928 { ac_try='test -z "$ac_c_werror_flag"
26929 || test ! -s conftest.err'
26930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26931 (eval $ac_try) 2>&5
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); }; } &&
26935 { ac_try='test -s conftest.$ac_objext'
26936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26937 (eval $ac_try) 2>&5
26939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940 (exit $ac_status); }; }; then
26941 ac_cv_type_signal=void
26943 echo "$as_me: failed program was:" >&5
26944 sed 's/^/| /' conftest.$ac_ext >&5
26946 ac_cv_type_signal=int
26948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26950 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26951 echo "${ECHO_T}$ac_cv_type_signal" >&6
26953 cat >>confdefs.h <<_ACEOF
26954 #define RETSIGTYPE $ac_cv_type_signal
26958 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26959 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26960 if test "${ac_cv_struct_tm+set}" = set; then
26961 echo $ECHO_N "(cached) $ECHO_C" >&6
26963 cat >conftest.$ac_ext <<_ACEOF
26966 cat confdefs.h >>conftest.$ac_ext
26967 cat >>conftest.$ac_ext <<_ACEOF
26968 /* end confdefs.h. */
26969 #include <sys/types.h>
26975 struct tm *tp; tp->tm_sec;
26980 rm -f conftest.$ac_objext
26981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26982 (eval $ac_compile) 2>conftest.er1
26984 grep -v '^ *+' conftest.er1 >conftest.err
26986 cat conftest.err >&5
26987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988 (exit $ac_status); } &&
26989 { ac_try='test -z "$ac_c_werror_flag"
26990 || test ! -s conftest.err'
26991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26992 (eval $ac_try) 2>&5
26994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26995 (exit $ac_status); }; } &&
26996 { ac_try='test -s conftest.$ac_objext'
26997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26998 (eval $ac_try) 2>&5
27000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27001 (exit $ac_status); }; }; then
27002 ac_cv_struct_tm=time.h
27004 echo "$as_me: failed program was:" >&5
27005 sed 's/^/| /' conftest.$ac_ext >&5
27007 ac_cv_struct_tm=sys/time.h
27009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27011 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27012 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27013 if test $ac_cv_struct_tm = sys/time.h; then
27015 cat >>confdefs.h <<\_ACEOF
27016 #define TM_IN_SYS_TIME 1
27021 echo "$as_me:$LINENO: checking for int64_t" >&5
27022 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27023 if test "${ac_cv_type_int64_t+set}" = set; then
27024 echo $ECHO_N "(cached) $ECHO_C" >&6
27026 cat >conftest.$ac_ext <<_ACEOF
27029 cat confdefs.h >>conftest.$ac_ext
27030 cat >>conftest.$ac_ext <<_ACEOF
27031 /* end confdefs.h. */
27032 $ac_includes_default
27038 if (sizeof (int64_t))
27044 rm -f conftest.$ac_objext
27045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27046 (eval $ac_compile) 2>conftest.er1
27048 grep -v '^ *+' conftest.er1 >conftest.err
27050 cat conftest.err >&5
27051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052 (exit $ac_status); } &&
27053 { ac_try='test -z "$ac_c_werror_flag"
27054 || test ! -s conftest.err'
27055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27056 (eval $ac_try) 2>&5
27058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059 (exit $ac_status); }; } &&
27060 { ac_try='test -s conftest.$ac_objext'
27061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27062 (eval $ac_try) 2>&5
27064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065 (exit $ac_status); }; }; then
27066 ac_cv_type_int64_t=yes
27068 echo "$as_me: failed program was:" >&5
27069 sed 's/^/| /' conftest.$ac_ext >&5
27071 ac_cv_type_int64_t=no
27073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27075 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27076 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27077 if test $ac_cv_type_int64_t = yes; then
27079 cat >>confdefs.h <<_ACEOF
27080 #define HAVE_INT64_T 1
27085 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27086 echo "$as_me: error: Type int64_t required but not found" >&2;}
27087 { (exit 1); exit 1; }; }
27090 echo "$as_me:$LINENO: checking for uint64_t" >&5
27091 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27092 if test "${ac_cv_type_uint64_t+set}" = set; then
27093 echo $ECHO_N "(cached) $ECHO_C" >&6
27095 cat >conftest.$ac_ext <<_ACEOF
27098 cat confdefs.h >>conftest.$ac_ext
27099 cat >>conftest.$ac_ext <<_ACEOF
27100 /* end confdefs.h. */
27101 $ac_includes_default
27105 if ((uint64_t *) 0)
27107 if (sizeof (uint64_t))
27113 rm -f conftest.$ac_objext
27114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27115 (eval $ac_compile) 2>conftest.er1
27117 grep -v '^ *+' conftest.er1 >conftest.err
27119 cat conftest.err >&5
27120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121 (exit $ac_status); } &&
27122 { ac_try='test -z "$ac_c_werror_flag"
27123 || test ! -s conftest.err'
27124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27125 (eval $ac_try) 2>&5
27127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128 (exit $ac_status); }; } &&
27129 { ac_try='test -s conftest.$ac_objext'
27130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27131 (eval $ac_try) 2>&5
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); }; }; then
27135 ac_cv_type_uint64_t=yes
27137 echo "$as_me: failed program was:" >&5
27138 sed 's/^/| /' conftest.$ac_ext >&5
27140 ac_cv_type_uint64_t=no
27142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27144 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27145 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27146 if test $ac_cv_type_uint64_t = yes; then
27148 cat >>confdefs.h <<_ACEOF
27149 #define HAVE_UINT64_T 1
27154 echo "$as_me:$LINENO: checking for u_int64_t" >&5
27155 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27156 if test "${ac_cv_type_u_int64_t+set}" = set; then
27157 echo $ECHO_N "(cached) $ECHO_C" >&6
27159 cat >conftest.$ac_ext <<_ACEOF
27162 cat confdefs.h >>conftest.$ac_ext
27163 cat >>conftest.$ac_ext <<_ACEOF
27164 /* end confdefs.h. */
27165 $ac_includes_default
27169 if ((u_int64_t *) 0)
27171 if (sizeof (u_int64_t))
27177 rm -f conftest.$ac_objext
27178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27179 (eval $ac_compile) 2>conftest.er1
27181 grep -v '^ *+' conftest.er1 >conftest.err
27183 cat conftest.err >&5
27184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); } &&
27186 { ac_try='test -z "$ac_c_werror_flag"
27187 || test ! -s conftest.err'
27188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27189 (eval $ac_try) 2>&5
27191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192 (exit $ac_status); }; } &&
27193 { ac_try='test -s conftest.$ac_objext'
27194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27195 (eval $ac_try) 2>&5
27197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198 (exit $ac_status); }; }; then
27199 ac_cv_type_u_int64_t=yes
27201 echo "$as_me: failed program was:" >&5
27202 sed 's/^/| /' conftest.$ac_ext >&5
27204 ac_cv_type_u_int64_t=no
27206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27208 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27209 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27210 if test $ac_cv_type_u_int64_t = yes; then
27212 cat >>confdefs.h <<_ACEOF
27213 #define HAVE_U_INT64_T 1
27218 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27219 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27220 { (exit 1); exit 1; }; }
27232 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday
27234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27235 echo "$as_me:$LINENO: checking for $ac_func" >&5
27236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27237 if eval "test \"\${$as_ac_var+set}\" = set"; then
27238 echo $ECHO_N "(cached) $ECHO_C" >&6
27240 cat >conftest.$ac_ext <<_ACEOF
27243 cat confdefs.h >>conftest.$ac_ext
27244 cat >>conftest.$ac_ext <<_ACEOF
27245 /* end confdefs.h. */
27246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27248 #define $ac_func innocuous_$ac_func
27250 /* System header to define __stub macros and hopefully few prototypes,
27251 which can conflict with char $ac_func (); below.
27252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27253 <limits.h> exists even on freestanding compilers. */
27256 # include <limits.h>
27258 # include <assert.h>
27263 /* Override any gcc2 internal prototype to avoid an error. */
27268 /* We use char because int might match the return type of a gcc2
27269 builtin and then its argument prototype would still apply. */
27271 /* The GNU C library defines this for functions which it implements
27272 to always fail with ENOSYS. Some functions are actually named
27273 something starting with __ and the normal name is an alias. */
27274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27277 char (*f) () = $ac_func;
27286 return f != $ac_func;
27291 rm -f conftest.$ac_objext conftest$ac_exeext
27292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27293 (eval $ac_link) 2>conftest.er1
27295 grep -v '^ *+' conftest.er1 >conftest.err
27297 cat conftest.err >&5
27298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299 (exit $ac_status); } &&
27300 { ac_try='test -z "$ac_c_werror_flag"
27301 || test ! -s conftest.err'
27302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303 (eval $ac_try) 2>&5
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); }; } &&
27307 { ac_try='test -s conftest$ac_exeext'
27308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27309 (eval $ac_try) 2>&5
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); }; }; then
27313 eval "$as_ac_var=yes"
27315 echo "$as_me: failed program was:" >&5
27316 sed 's/^/| /' conftest.$ac_ext >&5
27318 eval "$as_ac_var=no"
27320 rm -f conftest.err conftest.$ac_objext \
27321 conftest$ac_exeext conftest.$ac_ext
27323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27325 if test `eval echo '${'$as_ac_var'}'` = yes; then
27326 cat >>confdefs.h <<_ACEOF
27327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27337 for ac_func in isatty mkdtemp mkstemp mktemp
27339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27340 echo "$as_me:$LINENO: checking for $ac_func" >&5
27341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27342 if eval "test \"\${$as_ac_var+set}\" = set"; then
27343 echo $ECHO_N "(cached) $ECHO_C" >&6
27345 cat >conftest.$ac_ext <<_ACEOF
27348 cat confdefs.h >>conftest.$ac_ext
27349 cat >>conftest.$ac_ext <<_ACEOF
27350 /* end confdefs.h. */
27351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27353 #define $ac_func innocuous_$ac_func
27355 /* System header to define __stub macros and hopefully few prototypes,
27356 which can conflict with char $ac_func (); below.
27357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27358 <limits.h> exists even on freestanding compilers. */
27361 # include <limits.h>
27363 # include <assert.h>
27368 /* Override any gcc2 internal prototype to avoid an error. */
27373 /* We use char because int might match the return type of a gcc2
27374 builtin and then its argument prototype would still apply. */
27376 /* The GNU C library defines this for functions which it implements
27377 to always fail with ENOSYS. Some functions are actually named
27378 something starting with __ and the normal name is an alias. */
27379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27382 char (*f) () = $ac_func;
27391 return f != $ac_func;
27396 rm -f conftest.$ac_objext conftest$ac_exeext
27397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27398 (eval $ac_link) 2>conftest.er1
27400 grep -v '^ *+' conftest.er1 >conftest.err
27402 cat conftest.err >&5
27403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404 (exit $ac_status); } &&
27405 { ac_try='test -z "$ac_c_werror_flag"
27406 || test ! -s conftest.err'
27407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27408 (eval $ac_try) 2>&5
27410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411 (exit $ac_status); }; } &&
27412 { ac_try='test -s conftest$ac_exeext'
27413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27414 (eval $ac_try) 2>&5
27416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417 (exit $ac_status); }; }; then
27418 eval "$as_ac_var=yes"
27420 echo "$as_me: failed program was:" >&5
27421 sed 's/^/| /' conftest.$ac_ext >&5
27423 eval "$as_ac_var=no"
27425 rm -f conftest.err conftest.$ac_objext \
27426 conftest$ac_exeext conftest.$ac_ext
27428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27430 if test `eval echo '${'$as_ac_var'}'` = yes; then
27431 cat >>confdefs.h <<_ACEOF
27432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27444 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27447 echo "$as_me:$LINENO: checking for $ac_func" >&5
27448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27449 if eval "test \"\${$as_ac_var+set}\" = set"; then
27450 echo $ECHO_N "(cached) $ECHO_C" >&6
27452 cat >conftest.$ac_ext <<_ACEOF
27455 cat confdefs.h >>conftest.$ac_ext
27456 cat >>conftest.$ac_ext <<_ACEOF
27457 /* end confdefs.h. */
27458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27460 #define $ac_func innocuous_$ac_func
27462 /* System header to define __stub macros and hopefully few prototypes,
27463 which can conflict with char $ac_func (); below.
27464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27465 <limits.h> exists even on freestanding compilers. */
27468 # include <limits.h>
27470 # include <assert.h>
27475 /* Override any gcc2 internal prototype to avoid an error. */
27480 /* We use char because int might match the return type of a gcc2
27481 builtin and then its argument prototype would still apply. */
27483 /* The GNU C library defines this for functions which it implements
27484 to always fail with ENOSYS. Some functions are actually named
27485 something starting with __ and the normal name is an alias. */
27486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27489 char (*f) () = $ac_func;
27498 return f != $ac_func;
27503 rm -f conftest.$ac_objext conftest$ac_exeext
27504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27505 (eval $ac_link) 2>conftest.er1
27507 grep -v '^ *+' conftest.er1 >conftest.err
27509 cat conftest.err >&5
27510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511 (exit $ac_status); } &&
27512 { ac_try='test -z "$ac_c_werror_flag"
27513 || test ! -s conftest.err'
27514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27515 (eval $ac_try) 2>&5
27517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); }; } &&
27519 { ac_try='test -s conftest$ac_exeext'
27520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27521 (eval $ac_try) 2>&5
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); }; }; then
27525 eval "$as_ac_var=yes"
27527 echo "$as_me: failed program was:" >&5
27528 sed 's/^/| /' conftest.$ac_ext >&5
27530 eval "$as_ac_var=no"
27532 rm -f conftest.err conftest.$ac_objext \
27533 conftest$ac_exeext conftest.$ac_ext
27535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27537 if test `eval echo '${'$as_ac_var'}'` = yes; then
27538 cat >>confdefs.h <<_ACEOF
27539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27548 for ac_func in strtoll strtoq sysconf
27550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27551 echo "$as_me:$LINENO: checking for $ac_func" >&5
27552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27553 if eval "test \"\${$as_ac_var+set}\" = set"; then
27554 echo $ECHO_N "(cached) $ECHO_C" >&6
27556 cat >conftest.$ac_ext <<_ACEOF
27559 cat confdefs.h >>conftest.$ac_ext
27560 cat >>conftest.$ac_ext <<_ACEOF
27561 /* end confdefs.h. */
27562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27564 #define $ac_func innocuous_$ac_func
27566 /* System header to define __stub macros and hopefully few prototypes,
27567 which can conflict with char $ac_func (); below.
27568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27569 <limits.h> exists even on freestanding compilers. */
27572 # include <limits.h>
27574 # include <assert.h>
27579 /* Override any gcc2 internal prototype to avoid an error. */
27584 /* We use char because int might match the return type of a gcc2
27585 builtin and then its argument prototype would still apply. */
27587 /* The GNU C library defines this for functions which it implements
27588 to always fail with ENOSYS. Some functions are actually named
27589 something starting with __ and the normal name is an alias. */
27590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27593 char (*f) () = $ac_func;
27602 return f != $ac_func;
27607 rm -f conftest.$ac_objext conftest$ac_exeext
27608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27609 (eval $ac_link) 2>conftest.er1
27611 grep -v '^ *+' conftest.er1 >conftest.err
27613 cat conftest.err >&5
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); } &&
27616 { ac_try='test -z "$ac_c_werror_flag"
27617 || test ! -s conftest.err'
27618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27619 (eval $ac_try) 2>&5
27621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622 (exit $ac_status); }; } &&
27623 { ac_try='test -s conftest$ac_exeext'
27624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27625 (eval $ac_try) 2>&5
27627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628 (exit $ac_status); }; }; then
27629 eval "$as_ac_var=yes"
27631 echo "$as_me: failed program was:" >&5
27632 sed 's/^/| /' conftest.$ac_ext >&5
27634 eval "$as_ac_var=no"
27636 rm -f conftest.err conftest.$ac_objext \
27637 conftest$ac_exeext conftest.$ac_ext
27639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27641 if test `eval echo '${'$as_ac_var'}'` = yes; then
27642 cat >>confdefs.h <<_ACEOF
27643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27649 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27650 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27651 if test "${llvm_cv_c_printf_a+set}" = set; then
27652 echo $ECHO_N "(cached) $ECHO_C" >&6
27655 ac_cpp='$CPP $CPPFLAGS'
27656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27660 if test "$cross_compiling" = yes; then
27661 llvmac_cv_c_printf_a=no
27663 cat >conftest.$ac_ext <<_ACEOF
27667 cat confdefs.h >>conftest.$ac_ext
27668 cat >>conftest.$ac_ext <<_ACEOF
27669 /* end confdefs.h. */
27672 #include <stdlib.h>
27678 volatile double A, B;
27682 sprintf(Buffer, "%a", A);
27686 if (A != 0x1.999999999999ap-4)
27693 rm -f conftest$ac_exeext
27694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27695 (eval $ac_link) 2>&5
27697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27700 (eval $ac_try) 2>&5
27702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703 (exit $ac_status); }; }; then
27704 llvm_cv_c_printf_a=yes
27706 echo "$as_me: program exited with status $ac_status" >&5
27707 echo "$as_me: failed program was:" >&5
27708 sed 's/^/| /' conftest.$ac_ext >&5
27710 ( exit $ac_status )
27711 llvmac_cv_c_printf_a=no
27713 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27716 ac_cpp='$CPP $CPPFLAGS'
27717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27722 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27723 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27724 if test "$llvm_cv_c_printf_a" = "yes"; then
27726 cat >>confdefs.h <<\_ACEOF
27727 #define HAVE_PRINTF_A 1
27732 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27733 # for constant arguments. Useless!
27734 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27735 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27736 if test "${ac_cv_working_alloca_h+set}" = set; then
27737 echo $ECHO_N "(cached) $ECHO_C" >&6
27739 cat >conftest.$ac_ext <<_ACEOF
27742 cat confdefs.h >>conftest.$ac_ext
27743 cat >>conftest.$ac_ext <<_ACEOF
27744 /* end confdefs.h. */
27745 #include <alloca.h>
27749 char *p = (char *) alloca (2 * sizeof (int));
27754 rm -f conftest.$ac_objext conftest$ac_exeext
27755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27756 (eval $ac_link) 2>conftest.er1
27758 grep -v '^ *+' conftest.er1 >conftest.err
27760 cat conftest.err >&5
27761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762 (exit $ac_status); } &&
27763 { ac_try='test -z "$ac_c_werror_flag"
27764 || test ! -s conftest.err'
27765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27766 (eval $ac_try) 2>&5
27768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769 (exit $ac_status); }; } &&
27770 { ac_try='test -s conftest$ac_exeext'
27771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27772 (eval $ac_try) 2>&5
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); }; }; then
27776 ac_cv_working_alloca_h=yes
27778 echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.$ac_ext >&5
27781 ac_cv_working_alloca_h=no
27783 rm -f conftest.err conftest.$ac_objext \
27784 conftest$ac_exeext conftest.$ac_ext
27786 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27787 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27788 if test $ac_cv_working_alloca_h = yes; then
27790 cat >>confdefs.h <<\_ACEOF
27791 #define HAVE_ALLOCA_H 1
27796 echo "$as_me:$LINENO: checking for alloca" >&5
27797 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27798 if test "${ac_cv_func_alloca_works+set}" = set; then
27799 echo $ECHO_N "(cached) $ECHO_C" >&6
27801 cat >conftest.$ac_ext <<_ACEOF
27804 cat confdefs.h >>conftest.$ac_ext
27805 cat >>conftest.$ac_ext <<_ACEOF
27806 /* end confdefs.h. */
27808 # define alloca __builtin_alloca
27811 # include <malloc.h>
27812 # define alloca _alloca
27815 # include <alloca.h>
27820 # ifndef alloca /* predefined by HP cc +Olibcalls */
27831 char *p = (char *) alloca (1);
27836 rm -f conftest.$ac_objext conftest$ac_exeext
27837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27838 (eval $ac_link) 2>conftest.er1
27840 grep -v '^ *+' conftest.er1 >conftest.err
27842 cat conftest.err >&5
27843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844 (exit $ac_status); } &&
27845 { ac_try='test -z "$ac_c_werror_flag"
27846 || test ! -s conftest.err'
27847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27848 (eval $ac_try) 2>&5
27850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27851 (exit $ac_status); }; } &&
27852 { ac_try='test -s conftest$ac_exeext'
27853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27854 (eval $ac_try) 2>&5
27856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857 (exit $ac_status); }; }; then
27858 ac_cv_func_alloca_works=yes
27860 echo "$as_me: failed program was:" >&5
27861 sed 's/^/| /' conftest.$ac_ext >&5
27863 ac_cv_func_alloca_works=no
27865 rm -f conftest.err conftest.$ac_objext \
27866 conftest$ac_exeext conftest.$ac_ext
27868 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27869 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27871 if test $ac_cv_func_alloca_works = yes; then
27873 cat >>confdefs.h <<\_ACEOF
27874 #define HAVE_ALLOCA 1
27878 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27879 # that cause trouble. Some versions do not even contain alloca or
27880 # contain a buggy version. If you still want to use their alloca,
27881 # use ar to extract alloca.o from them instead of compiling alloca.c.
27883 ALLOCA=alloca.$ac_objext
27885 cat >>confdefs.h <<\_ACEOF
27890 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27891 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27892 if test "${ac_cv_os_cray+set}" = set; then
27893 echo $ECHO_N "(cached) $ECHO_C" >&6
27895 cat >conftest.$ac_ext <<_ACEOF
27898 cat confdefs.h >>conftest.$ac_ext
27899 cat >>conftest.$ac_ext <<_ACEOF
27900 /* end confdefs.h. */
27901 #if defined(CRAY) && ! defined(CRAY2)
27908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27909 $EGREP "webecray" >/dev/null 2>&1; then
27917 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27918 echo "${ECHO_T}$ac_cv_os_cray" >&6
27919 if test $ac_cv_os_cray = yes; then
27920 for ac_func in _getb67 GETB67 getb67; do
27921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27922 echo "$as_me:$LINENO: checking for $ac_func" >&5
27923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27924 if eval "test \"\${$as_ac_var+set}\" = set"; then
27925 echo $ECHO_N "(cached) $ECHO_C" >&6
27927 cat >conftest.$ac_ext <<_ACEOF
27930 cat confdefs.h >>conftest.$ac_ext
27931 cat >>conftest.$ac_ext <<_ACEOF
27932 /* end confdefs.h. */
27933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27935 #define $ac_func innocuous_$ac_func
27937 /* System header to define __stub macros and hopefully few prototypes,
27938 which can conflict with char $ac_func (); below.
27939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27940 <limits.h> exists even on freestanding compilers. */
27943 # include <limits.h>
27945 # include <assert.h>
27950 /* Override any gcc2 internal prototype to avoid an error. */
27955 /* We use char because int might match the return type of a gcc2
27956 builtin and then its argument prototype would still apply. */
27958 /* The GNU C library defines this for functions which it implements
27959 to always fail with ENOSYS. Some functions are actually named
27960 something starting with __ and the normal name is an alias. */
27961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27964 char (*f) () = $ac_func;
27973 return f != $ac_func;
27978 rm -f conftest.$ac_objext conftest$ac_exeext
27979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27980 (eval $ac_link) 2>conftest.er1
27982 grep -v '^ *+' conftest.er1 >conftest.err
27984 cat conftest.err >&5
27985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986 (exit $ac_status); } &&
27987 { ac_try='test -z "$ac_c_werror_flag"
27988 || test ! -s conftest.err'
27989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27990 (eval $ac_try) 2>&5
27992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993 (exit $ac_status); }; } &&
27994 { ac_try='test -s conftest$ac_exeext'
27995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27996 (eval $ac_try) 2>&5
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); }; }; then
28000 eval "$as_ac_var=yes"
28002 echo "$as_me: failed program was:" >&5
28003 sed 's/^/| /' conftest.$ac_ext >&5
28005 eval "$as_ac_var=no"
28007 rm -f conftest.err conftest.$ac_objext \
28008 conftest$ac_exeext conftest.$ac_ext
28010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28012 if test `eval echo '${'$as_ac_var'}'` = yes; then
28014 cat >>confdefs.h <<_ACEOF
28015 #define CRAY_STACKSEG_END $ac_func
28024 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28025 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28026 if test "${ac_cv_c_stack_direction+set}" = set; then
28027 echo $ECHO_N "(cached) $ECHO_C" >&6
28029 if test "$cross_compiling" = yes; then
28030 ac_cv_c_stack_direction=0
28032 cat >conftest.$ac_ext <<_ACEOF
28035 cat confdefs.h >>conftest.$ac_ext
28036 cat >>conftest.$ac_ext <<_ACEOF
28037 /* end confdefs.h. */
28039 find_stack_direction ()
28041 static char *addr = 0;
28046 return find_stack_direction ();
28049 return (&dummy > addr) ? 1 : -1;
28055 exit (find_stack_direction () < 0);
28058 rm -f conftest$ac_exeext
28059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28060 (eval $ac_link) 2>&5
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28065 (eval $ac_try) 2>&5
28067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068 (exit $ac_status); }; }; then
28069 ac_cv_c_stack_direction=1
28071 echo "$as_me: program exited with status $ac_status" >&5
28072 echo "$as_me: failed program was:" >&5
28073 sed 's/^/| /' conftest.$ac_ext >&5
28075 ( exit $ac_status )
28076 ac_cv_c_stack_direction=-1
28078 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28081 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28082 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28084 cat >>confdefs.h <<_ACEOF
28085 #define STACK_DIRECTION $ac_cv_c_stack_direction
28092 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28093 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28094 if test "${ac_cv_func_rand48+set}" = set; then
28095 echo $ECHO_N "(cached) $ECHO_C" >&6
28098 ac_cpp='$CXXCPP $CPPFLAGS'
28099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28103 cat >conftest.$ac_ext <<_ACEOF
28106 cat confdefs.h >>conftest.$ac_ext
28107 cat >>conftest.$ac_ext <<_ACEOF
28108 /* end confdefs.h. */
28109 #include <stdlib.h>
28113 srand48(0);lrand48();drand48();
28118 rm -f conftest.$ac_objext
28119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28120 (eval $ac_compile) 2>conftest.er1
28122 grep -v '^ *+' conftest.er1 >conftest.err
28124 cat conftest.err >&5
28125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126 (exit $ac_status); } &&
28127 { ac_try='test -z "$ac_cxx_werror_flag"
28128 || test ! -s conftest.err'
28129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28130 (eval $ac_try) 2>&5
28132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133 (exit $ac_status); }; } &&
28134 { ac_try='test -s conftest.$ac_objext'
28135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28136 (eval $ac_try) 2>&5
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); }; }; then
28140 ac_cv_func_rand48=yes
28142 echo "$as_me: failed program was:" >&5
28143 sed 's/^/| /' conftest.$ac_ext >&5
28145 ac_cv_func_rand48=no
28147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28149 ac_cpp='$CPP $CPPFLAGS'
28150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28155 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28156 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28158 if test "$ac_cv_func_rand48" = "yes" ; then
28160 cat >>confdefs.h <<\_ACEOF
28161 #define HAVE_RAND48 1
28167 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28168 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28169 if test "${ac_cv_cxx_namespaces+set}" = set; then
28170 echo $ECHO_N "(cached) $ECHO_C" >&6
28173 ac_cpp='$CXXCPP $CPPFLAGS'
28174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28178 cat >conftest.$ac_ext <<_ACEOF
28181 cat confdefs.h >>conftest.$ac_ext
28182 cat >>conftest.$ac_ext <<_ACEOF
28183 /* end confdefs.h. */
28184 namespace Outer { namespace Inner { int i = 0; }}
28188 using namespace Outer::Inner; return i;
28193 rm -f conftest.$ac_objext
28194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28195 (eval $ac_compile) 2>conftest.er1
28197 grep -v '^ *+' conftest.er1 >conftest.err
28199 cat conftest.err >&5
28200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201 (exit $ac_status); } &&
28202 { ac_try='test -z "$ac_cxx_werror_flag"
28203 || test ! -s conftest.err'
28204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28205 (eval $ac_try) 2>&5
28207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208 (exit $ac_status); }; } &&
28209 { ac_try='test -s conftest.$ac_objext'
28210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28211 (eval $ac_try) 2>&5
28213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214 (exit $ac_status); }; }; then
28215 ac_cv_cxx_namespaces=yes
28217 echo "$as_me: failed program was:" >&5
28218 sed 's/^/| /' conftest.$ac_ext >&5
28220 ac_cv_cxx_namespaces=no
28222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28224 ac_cpp='$CPP $CPPFLAGS'
28225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28231 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28232 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28233 if test "$ac_cv_cxx_namespaces" = yes; then
28235 cat >>confdefs.h <<\_ACEOF
28236 #define HAVE_NAMESPACES
28241 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28242 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28243 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28244 echo $ECHO_N "(cached) $ECHO_C" >&6
28248 ac_cpp='$CXXCPP $CPPFLAGS'
28249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28253 cat >conftest.$ac_ext <<_ACEOF
28256 cat confdefs.h >>conftest.$ac_ext
28257 cat >>conftest.$ac_ext <<_ACEOF
28258 /* end confdefs.h. */
28259 #include <ext/hash_map>
28260 #ifdef HAVE_NAMESPACES
28261 using namespace std;
28266 hash_map<int, int> t;
28271 rm -f conftest.$ac_objext
28272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28273 (eval $ac_compile) 2>conftest.er1
28275 grep -v '^ *+' conftest.er1 >conftest.err
28277 cat conftest.err >&5
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); } &&
28280 { ac_try='test -z "$ac_cxx_werror_flag"
28281 || test ! -s conftest.err'
28282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28283 (eval $ac_try) 2>&5
28285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286 (exit $ac_status); }; } &&
28287 { ac_try='test -s conftest.$ac_objext'
28288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28289 (eval $ac_try) 2>&5
28291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292 (exit $ac_status); }; }; then
28293 ac_cv_cxx_have_std_ext_hash_map=yes
28295 echo "$as_me: failed program was:" >&5
28296 sed 's/^/| /' conftest.$ac_ext >&5
28298 ac_cv_cxx_have_std_ext_hash_map=no
28300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28302 ac_cpp='$CPP $CPPFLAGS'
28303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28308 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28309 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28310 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28313 cat >>confdefs.h <<\_ACEOF
28314 #define HAVE_STD_EXT_HASH_MAP 1
28319 cat >>confdefs.h <<\_ACEOF
28320 #define HAVE_STD_EXT_HASH_MAP 0
28325 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28326 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28327 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28328 echo $ECHO_N "(cached) $ECHO_C" >&6
28332 ac_cpp='$CXXCPP $CPPFLAGS'
28333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28337 cat >conftest.$ac_ext <<_ACEOF
28340 cat confdefs.h >>conftest.$ac_ext
28341 cat >>conftest.$ac_ext <<_ACEOF
28342 /* end confdefs.h. */
28343 #include <ext/hash_map>
28344 #ifdef HAVE_NAMESPACES
28345 using namespace __gnu_cxx;
28350 hash_map<int,int> t;
28355 rm -f conftest.$ac_objext
28356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28357 (eval $ac_compile) 2>conftest.er1
28359 grep -v '^ *+' conftest.er1 >conftest.err
28361 cat conftest.err >&5
28362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28363 (exit $ac_status); } &&
28364 { ac_try='test -z "$ac_cxx_werror_flag"
28365 || test ! -s conftest.err'
28366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28367 (eval $ac_try) 2>&5
28369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370 (exit $ac_status); }; } &&
28371 { ac_try='test -s conftest.$ac_objext'
28372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28373 (eval $ac_try) 2>&5
28375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376 (exit $ac_status); }; }; then
28377 ac_cv_cxx_have_gnu_ext_hash_map=yes
28379 echo "$as_me: failed program was:" >&5
28380 sed 's/^/| /' conftest.$ac_ext >&5
28382 ac_cv_cxx_have_gnu_ext_hash_map=no
28384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28386 ac_cpp='$CPP $CPPFLAGS'
28387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28392 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28393 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28394 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28397 cat >>confdefs.h <<\_ACEOF
28398 #define HAVE_GNU_EXT_HASH_MAP 1
28403 cat >>confdefs.h <<\_ACEOF
28404 #define HAVE_GNU_EXT_HASH_MAP 0
28409 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28410 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28411 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28412 echo $ECHO_N "(cached) $ECHO_C" >&6
28416 ac_cpp='$CXXCPP $CPPFLAGS'
28417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28421 cat >conftest.$ac_ext <<_ACEOF
28424 cat confdefs.h >>conftest.$ac_ext
28425 cat >>conftest.$ac_ext <<_ACEOF
28426 /* end confdefs.h. */
28427 #include <hash_map>
28431 hash_map<int,int> t;
28436 rm -f conftest.$ac_objext
28437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28438 (eval $ac_compile) 2>conftest.er1
28440 grep -v '^ *+' conftest.er1 >conftest.err
28442 cat conftest.err >&5
28443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444 (exit $ac_status); } &&
28445 { ac_try='test -z "$ac_cxx_werror_flag"
28446 || test ! -s conftest.err'
28447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28448 (eval $ac_try) 2>&5
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); }; } &&
28452 { ac_try='test -s conftest.$ac_objext'
28453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28454 (eval $ac_try) 2>&5
28456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457 (exit $ac_status); }; }; then
28458 ac_cv_cxx_have_global_hash_map=yes
28460 echo "$as_me: failed program was:" >&5
28461 sed 's/^/| /' conftest.$ac_ext >&5
28463 ac_cv_cxx_have_global_hash_map=no
28465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28467 ac_cpp='$CPP $CPPFLAGS'
28468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28473 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28474 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28475 if test "$ac_cv_cxx_have_global_hash_map" = yes
28478 cat >>confdefs.h <<\_ACEOF
28479 #define HAVE_GLOBAL_HASH_MAP 1
28484 cat >>confdefs.h <<\_ACEOF
28485 #define HAVE_GLOBAL_HASH_MAP 0
28490 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28491 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28492 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28493 echo $ECHO_N "(cached) $ECHO_C" >&6
28497 ac_cpp='$CXXCPP $CPPFLAGS'
28498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28502 cat >conftest.$ac_ext <<_ACEOF
28505 cat confdefs.h >>conftest.$ac_ext
28506 cat >>conftest.$ac_ext <<_ACEOF
28507 /* end confdefs.h. */
28508 #include <ext/hash_set>
28509 #ifdef HAVE_NAMESPACES
28510 using namespace std;
28520 rm -f conftest.$ac_objext
28521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28522 (eval $ac_compile) 2>conftest.er1
28524 grep -v '^ *+' conftest.er1 >conftest.err
28526 cat conftest.err >&5
28527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528 (exit $ac_status); } &&
28529 { ac_try='test -z "$ac_cxx_werror_flag"
28530 || test ! -s conftest.err'
28531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28532 (eval $ac_try) 2>&5
28534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28535 (exit $ac_status); }; } &&
28536 { ac_try='test -s conftest.$ac_objext'
28537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28538 (eval $ac_try) 2>&5
28540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541 (exit $ac_status); }; }; then
28542 ac_cv_cxx_have_std_ext_hash_set=yes
28544 echo "$as_me: failed program was:" >&5
28545 sed 's/^/| /' conftest.$ac_ext >&5
28547 ac_cv_cxx_have_std_ext_hash_set=no
28549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28551 ac_cpp='$CPP $CPPFLAGS'
28552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28557 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28558 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28559 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28562 cat >>confdefs.h <<\_ACEOF
28563 #define HAVE_STD_EXT_HASH_SET 1
28568 cat >>confdefs.h <<\_ACEOF
28569 #define HAVE_STD_EXT_HASH_SET 0
28574 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28575 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28576 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28577 echo $ECHO_N "(cached) $ECHO_C" >&6
28581 ac_cpp='$CXXCPP $CPPFLAGS'
28582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28586 cat >conftest.$ac_ext <<_ACEOF
28589 cat confdefs.h >>conftest.$ac_ext
28590 cat >>conftest.$ac_ext <<_ACEOF
28591 /* end confdefs.h. */
28592 #include <ext/hash_set>
28593 #ifdef HAVE_NAMESPACES
28594 using namespace __gnu_cxx;
28604 rm -f conftest.$ac_objext
28605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28606 (eval $ac_compile) 2>conftest.er1
28608 grep -v '^ *+' conftest.er1 >conftest.err
28610 cat conftest.err >&5
28611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); } &&
28613 { ac_try='test -z "$ac_cxx_werror_flag"
28614 || test ! -s conftest.err'
28615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28616 (eval $ac_try) 2>&5
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); }; } &&
28620 { ac_try='test -s conftest.$ac_objext'
28621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28622 (eval $ac_try) 2>&5
28624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625 (exit $ac_status); }; }; then
28626 ac_cv_cxx_have_gnu_ext_hash_set=yes
28628 echo "$as_me: failed program was:" >&5
28629 sed 's/^/| /' conftest.$ac_ext >&5
28631 ac_cv_cxx_have_gnu_ext_hash_set=no
28633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28635 ac_cpp='$CPP $CPPFLAGS'
28636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28641 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28642 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28643 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28646 cat >>confdefs.h <<\_ACEOF
28647 #define HAVE_GNU_EXT_HASH_SET 1
28652 cat >>confdefs.h <<\_ACEOF
28653 #define HAVE_GNU_EXT_HASH_SET 0
28658 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28659 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28660 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28661 echo $ECHO_N "(cached) $ECHO_C" >&6
28665 ac_cpp='$CXXCPP $CPPFLAGS'
28666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28670 cat >conftest.$ac_ext <<_ACEOF
28673 cat confdefs.h >>conftest.$ac_ext
28674 cat >>conftest.$ac_ext <<_ACEOF
28675 /* end confdefs.h. */
28676 #include <hash_set>
28680 hash_set<int> t; return 0;
28685 rm -f conftest.$ac_objext
28686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28687 (eval $ac_compile) 2>conftest.er1
28689 grep -v '^ *+' conftest.er1 >conftest.err
28691 cat conftest.err >&5
28692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 (exit $ac_status); } &&
28694 { ac_try='test -z "$ac_cxx_werror_flag"
28695 || test ! -s conftest.err'
28696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28697 (eval $ac_try) 2>&5
28699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700 (exit $ac_status); }; } &&
28701 { ac_try='test -s conftest.$ac_objext'
28702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28703 (eval $ac_try) 2>&5
28705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28706 (exit $ac_status); }; }; then
28707 ac_cv_cxx_have_global_hash_set=yes
28709 echo "$as_me: failed program was:" >&5
28710 sed 's/^/| /' conftest.$ac_ext >&5
28712 ac_cv_cxx_have_global_hash_set=no
28714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28716 ac_cpp='$CPP $CPPFLAGS'
28717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28722 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28723 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28724 if test "$ac_cv_cxx_have_global_hash_set" = yes
28727 cat >>confdefs.h <<\_ACEOF
28728 #define HAVE_GLOBAL_HASH_SET 1
28733 cat >>confdefs.h <<\_ACEOF
28734 #define HAVE_GLOBAL_HASH_SET 0
28739 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28740 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28741 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28742 echo $ECHO_N "(cached) $ECHO_C" >&6
28746 ac_cpp='$CXXCPP $CPPFLAGS'
28747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28751 cat >conftest.$ac_ext <<_ACEOF
28754 cat confdefs.h >>conftest.$ac_ext
28755 cat >>conftest.$ac_ext <<_ACEOF
28756 /* end confdefs.h. */
28757 #include <iterator>
28758 #ifdef HAVE_NAMESPACES
28759 using namespace std;
28764 iterator<int,int,int> t; return 0;
28769 rm -f conftest.$ac_objext
28770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28771 (eval $ac_compile) 2>conftest.er1
28773 grep -v '^ *+' conftest.er1 >conftest.err
28775 cat conftest.err >&5
28776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777 (exit $ac_status); } &&
28778 { ac_try='test -z "$ac_cxx_werror_flag"
28779 || test ! -s conftest.err'
28780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28781 (eval $ac_try) 2>&5
28783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784 (exit $ac_status); }; } &&
28785 { ac_try='test -s conftest.$ac_objext'
28786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28787 (eval $ac_try) 2>&5
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); }; }; then
28791 ac_cv_cxx_have_std_iterator=yes
28793 echo "$as_me: failed program was:" >&5
28794 sed 's/^/| /' conftest.$ac_ext >&5
28796 ac_cv_cxx_have_std_iterator=no
28798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28800 ac_cpp='$CPP $CPPFLAGS'
28801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28807 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28808 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28809 if test "$ac_cv_cxx_have_std_iterator" = yes
28812 cat >>confdefs.h <<\_ACEOF
28813 #define HAVE_STD_ITERATOR 1
28818 cat >>confdefs.h <<\_ACEOF
28819 #define HAVE_STD_ITERATOR 0
28824 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28825 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28826 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28827 echo $ECHO_N "(cached) $ECHO_C" >&6
28831 ac_cpp='$CXXCPP $CPPFLAGS'
28832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28836 cat >conftest.$ac_ext <<_ACEOF
28839 cat confdefs.h >>conftest.$ac_ext
28840 cat >>conftest.$ac_ext <<_ACEOF
28841 /* end confdefs.h. */
28842 #include <iterator>
28843 #ifdef HAVE_NAMESPACES
28844 using namespace std;
28849 bidirectional_iterator<int,int> t; return 0;
28854 rm -f conftest.$ac_objext
28855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28856 (eval $ac_compile) 2>conftest.er1
28858 grep -v '^ *+' conftest.er1 >conftest.err
28860 cat conftest.err >&5
28861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862 (exit $ac_status); } &&
28863 { ac_try='test -z "$ac_cxx_werror_flag"
28864 || test ! -s conftest.err'
28865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28866 (eval $ac_try) 2>&5
28868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869 (exit $ac_status); }; } &&
28870 { ac_try='test -s conftest.$ac_objext'
28871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28872 (eval $ac_try) 2>&5
28874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875 (exit $ac_status); }; }; then
28876 ac_cv_cxx_have_bi_iterator=yes
28878 echo "$as_me: failed program was:" >&5
28879 sed 's/^/| /' conftest.$ac_ext >&5
28881 ac_cv_cxx_have_bi_iterator=no
28883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28885 ac_cpp='$CPP $CPPFLAGS'
28886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28892 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28893 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28894 if test "$ac_cv_cxx_have_bi_iterator" = yes
28897 cat >>confdefs.h <<\_ACEOF
28898 #define HAVE_BI_ITERATOR 1
28903 cat >>confdefs.h <<\_ACEOF
28904 #define HAVE_BI_ITERATOR 0
28909 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28910 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28911 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28912 echo $ECHO_N "(cached) $ECHO_C" >&6
28916 ac_cpp='$CXXCPP $CPPFLAGS'
28917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28921 cat >conftest.$ac_ext <<_ACEOF
28924 cat confdefs.h >>conftest.$ac_ext
28925 cat >>conftest.$ac_ext <<_ACEOF
28926 /* end confdefs.h. */
28927 #include <iterator>
28928 #ifdef HAVE_NAMESPACES
28929 using namespace std;
28934 forward_iterator<int,int> t; return 0;
28939 rm -f conftest.$ac_objext
28940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28941 (eval $ac_compile) 2>conftest.er1
28943 grep -v '^ *+' conftest.er1 >conftest.err
28945 cat conftest.err >&5
28946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947 (exit $ac_status); } &&
28948 { ac_try='test -z "$ac_cxx_werror_flag"
28949 || test ! -s conftest.err'
28950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28951 (eval $ac_try) 2>&5
28953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954 (exit $ac_status); }; } &&
28955 { ac_try='test -s conftest.$ac_objext'
28956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28957 (eval $ac_try) 2>&5
28959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28960 (exit $ac_status); }; }; then
28961 ac_cv_cxx_have_fwd_iterator=yes
28963 echo "$as_me: failed program was:" >&5
28964 sed 's/^/| /' conftest.$ac_ext >&5
28966 ac_cv_cxx_have_fwd_iterator=no
28968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28970 ac_cpp='$CPP $CPPFLAGS'
28971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28977 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28978 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28979 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28982 cat >>confdefs.h <<\_ACEOF
28983 #define HAVE_FWD_ITERATOR 1
28988 cat >>confdefs.h <<\_ACEOF
28989 #define HAVE_FWD_ITERATOR 0
28995 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28996 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28997 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28998 echo $ECHO_N "(cached) $ECHO_C" >&6
29001 ac_cpp='$CXXCPP $CPPFLAGS'
29002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29006 cat >conftest.$ac_ext <<_ACEOF
29009 cat confdefs.h >>conftest.$ac_ext
29010 cat >>conftest.$ac_ext <<_ACEOF
29011 /* end confdefs.h. */
29021 rm -f conftest.$ac_objext
29022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29023 (eval $ac_compile) 2>conftest.er1
29025 grep -v '^ *+' conftest.er1 >conftest.err
29027 cat conftest.err >&5
29028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029 (exit $ac_status); } &&
29030 { ac_try='test -z "$ac_cxx_werror_flag"
29031 || test ! -s conftest.err'
29032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29033 (eval $ac_try) 2>&5
29035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29036 (exit $ac_status); }; } &&
29037 { ac_try='test -s conftest.$ac_objext'
29038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29039 (eval $ac_try) 2>&5
29041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042 (exit $ac_status); }; }; then
29043 ac_cv_func_isnan_in_math_h=yes
29045 echo "$as_me: failed program was:" >&5
29046 sed 's/^/| /' conftest.$ac_ext >&5
29048 ac_cv_func_isnan_in_math_h=no
29050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29052 ac_cpp='$CPP $CPPFLAGS'
29053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29058 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29059 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29062 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29064 cat >>confdefs.h <<\_ACEOF
29065 #define HAVE_ISNAN_IN_MATH_H 1
29070 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29071 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29072 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29073 echo $ECHO_N "(cached) $ECHO_C" >&6
29076 ac_cpp='$CXXCPP $CPPFLAGS'
29077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29081 cat >conftest.$ac_ext <<_ACEOF
29084 cat confdefs.h >>conftest.$ac_ext
29085 cat >>conftest.$ac_ext <<_ACEOF
29086 /* end confdefs.h. */
29096 rm -f conftest.$ac_objext
29097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29098 (eval $ac_compile) 2>conftest.er1
29100 grep -v '^ *+' conftest.er1 >conftest.err
29102 cat conftest.err >&5
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104 (exit $ac_status); } &&
29105 { ac_try='test -z "$ac_cxx_werror_flag"
29106 || test ! -s conftest.err'
29107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29108 (eval $ac_try) 2>&5
29110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111 (exit $ac_status); }; } &&
29112 { ac_try='test -s conftest.$ac_objext'
29113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29114 (eval $ac_try) 2>&5
29116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117 (exit $ac_status); }; }; then
29118 ac_cv_func_isnan_in_cmath=yes
29120 echo "$as_me: failed program was:" >&5
29121 sed 's/^/| /' conftest.$ac_ext >&5
29123 ac_cv_func_isnan_in_cmath=no
29125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29127 ac_cpp='$CPP $CPPFLAGS'
29128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29133 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29134 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29136 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29138 cat >>confdefs.h <<\_ACEOF
29139 #define HAVE_ISNAN_IN_CMATH 1
29144 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29145 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29146 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29147 echo $ECHO_N "(cached) $ECHO_C" >&6
29150 ac_cpp='$CXXCPP $CPPFLAGS'
29151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29155 cat >conftest.$ac_ext <<_ACEOF
29158 cat confdefs.h >>conftest.$ac_ext
29159 cat >>conftest.$ac_ext <<_ACEOF
29160 /* end confdefs.h. */
29165 float f; std::isnan(f);
29170 rm -f conftest.$ac_objext
29171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29172 (eval $ac_compile) 2>conftest.er1
29174 grep -v '^ *+' conftest.er1 >conftest.err
29176 cat conftest.err >&5
29177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178 (exit $ac_status); } &&
29179 { ac_try='test -z "$ac_cxx_werror_flag"
29180 || test ! -s conftest.err'
29181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29182 (eval $ac_try) 2>&5
29184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29185 (exit $ac_status); }; } &&
29186 { ac_try='test -s conftest.$ac_objext'
29187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29188 (eval $ac_try) 2>&5
29190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29191 (exit $ac_status); }; }; then
29192 ac_cv_func_std_isnan_in_cmath=yes
29194 echo "$as_me: failed program was:" >&5
29195 sed 's/^/| /' conftest.$ac_ext >&5
29197 ac_cv_func_std_isnan_in_cmath=no
29199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29201 ac_cpp='$CPP $CPPFLAGS'
29202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29207 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29208 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29210 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29212 cat >>confdefs.h <<\_ACEOF
29213 #define HAVE_STD_ISNAN_IN_CMATH 1
29219 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29220 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29221 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29222 echo $ECHO_N "(cached) $ECHO_C" >&6
29225 ac_cpp='$CXXCPP $CPPFLAGS'
29226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29230 cat >conftest.$ac_ext <<_ACEOF
29233 cat confdefs.h >>conftest.$ac_ext
29234 cat >>conftest.$ac_ext <<_ACEOF
29235 /* end confdefs.h. */
29245 rm -f conftest.$ac_objext
29246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29247 (eval $ac_compile) 2>conftest.er1
29249 grep -v '^ *+' conftest.er1 >conftest.err
29251 cat conftest.err >&5
29252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253 (exit $ac_status); } &&
29254 { ac_try='test -z "$ac_cxx_werror_flag"
29255 || test ! -s conftest.err'
29256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29257 (eval $ac_try) 2>&5
29259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29260 (exit $ac_status); }; } &&
29261 { ac_try='test -s conftest.$ac_objext'
29262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29263 (eval $ac_try) 2>&5
29265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266 (exit $ac_status); }; }; then
29267 ac_cv_func_isinf_in_math_h=yes
29269 echo "$as_me: failed program was:" >&5
29270 sed 's/^/| /' conftest.$ac_ext >&5
29272 ac_cv_func_isinf_in_math_h=no
29274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29276 ac_cpp='$CPP $CPPFLAGS'
29277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29282 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29283 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29285 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29287 cat >>confdefs.h <<\_ACEOF
29288 #define HAVE_ISINF_IN_MATH_H 1
29293 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29294 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29295 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29296 echo $ECHO_N "(cached) $ECHO_C" >&6
29299 ac_cpp='$CXXCPP $CPPFLAGS'
29300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29304 cat >conftest.$ac_ext <<_ACEOF
29307 cat confdefs.h >>conftest.$ac_ext
29308 cat >>conftest.$ac_ext <<_ACEOF
29309 /* end confdefs.h. */
29319 rm -f conftest.$ac_objext
29320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29321 (eval $ac_compile) 2>conftest.er1
29323 grep -v '^ *+' conftest.er1 >conftest.err
29325 cat conftest.err >&5
29326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327 (exit $ac_status); } &&
29328 { ac_try='test -z "$ac_cxx_werror_flag"
29329 || test ! -s conftest.err'
29330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29331 (eval $ac_try) 2>&5
29333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334 (exit $ac_status); }; } &&
29335 { ac_try='test -s conftest.$ac_objext'
29336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29337 (eval $ac_try) 2>&5
29339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340 (exit $ac_status); }; }; then
29341 ac_cv_func_isinf_in_cmath=yes
29343 echo "$as_me: failed program was:" >&5
29344 sed 's/^/| /' conftest.$ac_ext >&5
29346 ac_cv_func_isinf_in_cmath=no
29348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29350 ac_cpp='$CPP $CPPFLAGS'
29351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29356 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29357 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29359 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29361 cat >>confdefs.h <<\_ACEOF
29362 #define HAVE_ISINF_IN_CMATH 1
29367 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29368 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29369 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29370 echo $ECHO_N "(cached) $ECHO_C" >&6
29373 ac_cpp='$CXXCPP $CPPFLAGS'
29374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29378 cat >conftest.$ac_ext <<_ACEOF
29381 cat confdefs.h >>conftest.$ac_ext
29382 cat >>conftest.$ac_ext <<_ACEOF
29383 /* end confdefs.h. */
29388 float f; std::isinf(f)}
29393 rm -f conftest.$ac_objext
29394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29395 (eval $ac_compile) 2>conftest.er1
29397 grep -v '^ *+' conftest.er1 >conftest.err
29399 cat conftest.err >&5
29400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 (exit $ac_status); } &&
29402 { ac_try='test -z "$ac_cxx_werror_flag"
29403 || test ! -s conftest.err'
29404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405 (eval $ac_try) 2>&5
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); }; } &&
29409 { ac_try='test -s conftest.$ac_objext'
29410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411 (eval $ac_try) 2>&5
29413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414 (exit $ac_status); }; }; then
29415 ac_cv_func_std_isinf_in_cmath=yes
29417 echo "$as_me: failed program was:" >&5
29418 sed 's/^/| /' conftest.$ac_ext >&5
29420 ac_cv_func_std_isinf_in_cmath=no
29422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29424 ac_cpp='$CPP $CPPFLAGS'
29425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29430 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29431 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29433 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29435 cat >>confdefs.h <<\_ACEOF
29436 #define HAVE_STD_ISINF_IN_CMATH 1
29441 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29442 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29443 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29444 echo $ECHO_N "(cached) $ECHO_C" >&6
29447 ac_cpp='$CXXCPP $CPPFLAGS'
29448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29452 cat >conftest.$ac_ext <<_ACEOF
29455 cat confdefs.h >>conftest.$ac_ext
29456 cat >>conftest.$ac_ext <<_ACEOF
29457 /* end confdefs.h. */
29458 #include <ieeefp.h>
29462 float f; finite(f);
29467 rm -f conftest.$ac_objext
29468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29469 (eval $ac_compile) 2>conftest.er1
29471 grep -v '^ *+' conftest.er1 >conftest.err
29473 cat conftest.err >&5
29474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); } &&
29476 { ac_try='test -z "$ac_cxx_werror_flag"
29477 || test ! -s conftest.err'
29478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29479 (eval $ac_try) 2>&5
29481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29482 (exit $ac_status); }; } &&
29483 { ac_try='test -s conftest.$ac_objext'
29484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29485 (eval $ac_try) 2>&5
29487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488 (exit $ac_status); }; }; then
29489 ac_cv_func_finite_in_ieeefp_h=yes
29491 echo "$as_me: failed program was:" >&5
29492 sed 's/^/| /' conftest.$ac_ext >&5
29494 ac_cv_func_finite_in_ieeefp_h=no
29496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29498 ac_cpp='$CPP $CPPFLAGS'
29499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29504 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29505 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29507 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29509 cat >>confdefs.h <<\_ACEOF
29510 #define HAVE_FINITE_IN_IEEEFP_H 1
29519 for ac_header in stdlib.h unistd.h
29521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29523 echo "$as_me:$LINENO: checking for $ac_header" >&5
29524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29526 echo $ECHO_N "(cached) $ECHO_C" >&6
29528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29531 # Is the header compilable?
29532 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29534 cat >conftest.$ac_ext <<_ACEOF
29537 cat confdefs.h >>conftest.$ac_ext
29538 cat >>conftest.$ac_ext <<_ACEOF
29539 /* end confdefs.h. */
29540 $ac_includes_default
29541 #include <$ac_header>
29543 rm -f conftest.$ac_objext
29544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29545 (eval $ac_compile) 2>conftest.er1
29547 grep -v '^ *+' conftest.er1 >conftest.err
29549 cat conftest.err >&5
29550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551 (exit $ac_status); } &&
29552 { ac_try='test -z "$ac_c_werror_flag"
29553 || test ! -s conftest.err'
29554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29555 (eval $ac_try) 2>&5
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); }; } &&
29559 { ac_try='test -s conftest.$ac_objext'
29560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29561 (eval $ac_try) 2>&5
29563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29564 (exit $ac_status); }; }; then
29565 ac_header_compiler=yes
29567 echo "$as_me: failed program was:" >&5
29568 sed 's/^/| /' conftest.$ac_ext >&5
29570 ac_header_compiler=no
29572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29574 echo "${ECHO_T}$ac_header_compiler" >&6
29576 # Is the header present?
29577 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29579 cat >conftest.$ac_ext <<_ACEOF
29582 cat confdefs.h >>conftest.$ac_ext
29583 cat >>conftest.$ac_ext <<_ACEOF
29584 /* end confdefs.h. */
29585 #include <$ac_header>
29587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29590 grep -v '^ *+' conftest.er1 >conftest.err
29592 cat conftest.err >&5
29593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29594 (exit $ac_status); } >/dev/null; then
29595 if test -s conftest.err; then
29596 ac_cpp_err=$ac_c_preproc_warn_flag
29597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29604 if test -z "$ac_cpp_err"; then
29605 ac_header_preproc=yes
29607 echo "$as_me: failed program was:" >&5
29608 sed 's/^/| /' conftest.$ac_ext >&5
29610 ac_header_preproc=no
29612 rm -f conftest.err conftest.$ac_ext
29613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29614 echo "${ECHO_T}$ac_header_preproc" >&6
29616 # So? What about this header?
29617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29623 ac_header_preproc=yes
29626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29633 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29640 ## ----------------------------------- ##
29641 ## Report this to llvmbugs@cs.uiuc.edu ##
29642 ## ----------------------------------- ##
29645 sed "s/^/$as_me: WARNING: /" >&2
29648 echo "$as_me:$LINENO: checking for $ac_header" >&5
29649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29651 echo $ECHO_N "(cached) $ECHO_C" >&6
29653 eval "$as_ac_Header=\$ac_header_preproc"
29655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29660 cat >>confdefs.h <<_ACEOF
29661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29669 for ac_func in getpagesize
29671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29672 echo "$as_me:$LINENO: checking for $ac_func" >&5
29673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29674 if eval "test \"\${$as_ac_var+set}\" = set"; then
29675 echo $ECHO_N "(cached) $ECHO_C" >&6
29677 cat >conftest.$ac_ext <<_ACEOF
29680 cat confdefs.h >>conftest.$ac_ext
29681 cat >>conftest.$ac_ext <<_ACEOF
29682 /* end confdefs.h. */
29683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29685 #define $ac_func innocuous_$ac_func
29687 /* System header to define __stub macros and hopefully few prototypes,
29688 which can conflict with char $ac_func (); below.
29689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29690 <limits.h> exists even on freestanding compilers. */
29693 # include <limits.h>
29695 # include <assert.h>
29700 /* Override any gcc2 internal prototype to avoid an error. */
29705 /* We use char because int might match the return type of a gcc2
29706 builtin and then its argument prototype would still apply. */
29708 /* The GNU C library defines this for functions which it implements
29709 to always fail with ENOSYS. Some functions are actually named
29710 something starting with __ and the normal name is an alias. */
29711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29714 char (*f) () = $ac_func;
29723 return f != $ac_func;
29728 rm -f conftest.$ac_objext conftest$ac_exeext
29729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29730 (eval $ac_link) 2>conftest.er1
29732 grep -v '^ *+' conftest.er1 >conftest.err
29734 cat conftest.err >&5
29735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736 (exit $ac_status); } &&
29737 { ac_try='test -z "$ac_c_werror_flag"
29738 || test ! -s conftest.err'
29739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29740 (eval $ac_try) 2>&5
29742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743 (exit $ac_status); }; } &&
29744 { ac_try='test -s conftest$ac_exeext'
29745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29746 (eval $ac_try) 2>&5
29748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749 (exit $ac_status); }; }; then
29750 eval "$as_ac_var=yes"
29752 echo "$as_me: failed program was:" >&5
29753 sed 's/^/| /' conftest.$ac_ext >&5
29755 eval "$as_ac_var=no"
29757 rm -f conftest.err conftest.$ac_objext \
29758 conftest$ac_exeext conftest.$ac_ext
29760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29762 if test `eval echo '${'$as_ac_var'}'` = yes; then
29763 cat >>confdefs.h <<_ACEOF
29764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29770 echo "$as_me:$LINENO: checking for working mmap" >&5
29771 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29772 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29773 echo $ECHO_N "(cached) $ECHO_C" >&6
29775 if test "$cross_compiling" = yes; then
29776 ac_cv_func_mmap_fixed_mapped=no
29778 cat >conftest.$ac_ext <<_ACEOF
29781 cat confdefs.h >>conftest.$ac_ext
29782 cat >>conftest.$ac_ext <<_ACEOF
29783 /* end confdefs.h. */
29784 $ac_includes_default
29785 /* malloc might have been renamed as rpl_malloc. */
29788 /* Thanks to Mike Haertel and Jim Avera for this test.
29789 Here is a matrix of mmap possibilities:
29790 mmap private not fixed
29791 mmap private fixed at somewhere currently unmapped
29792 mmap private fixed at somewhere already mapped
29793 mmap shared not fixed
29794 mmap shared fixed at somewhere currently unmapped
29795 mmap shared fixed at somewhere already mapped
29796 For private mappings, we should verify that changes cannot be read()
29797 back from the file, nor mmap's back from the file at a different
29798 address. (There have been systems where private was not correctly
29799 implemented like the infamous i386 svr4.0, and systems where the
29800 VM page cache was not coherent with the file system buffer cache
29801 like early versions of FreeBSD and possibly contemporary NetBSD.)
29802 For shared mappings, we should conversely verify that changes get
29803 propagated back to all the places they're supposed to be.
29805 Grep wants private fixed already mapped.
29806 The main things grep needs to know about mmap are:
29807 * does it exist and is it safe to write into the mmap'd area
29808 * how to use it (BSD variants) */
29811 #include <sys/mman.h>
29813 #if !STDC_HEADERS && !HAVE_STDLIB_H
29817 /* This mess was copied from the GNU getpagesize.h. */
29818 #if !HAVE_GETPAGESIZE
29819 /* Assume that all systems that can run configure have sys/param.h. */
29820 # if !HAVE_SYS_PARAM_H
29821 # define HAVE_SYS_PARAM_H 1
29824 # ifdef _SC_PAGESIZE
29825 # define getpagesize() sysconf(_SC_PAGESIZE)
29826 # else /* no _SC_PAGESIZE */
29827 # if HAVE_SYS_PARAM_H
29828 # include <sys/param.h>
29829 # ifdef EXEC_PAGESIZE
29830 # define getpagesize() EXEC_PAGESIZE
29831 # else /* no EXEC_PAGESIZE */
29833 # define getpagesize() NBPG * CLSIZE
29836 # endif /* no CLSIZE */
29837 # else /* no NBPG */
29839 # define getpagesize() NBPC
29840 # else /* no NBPC */
29842 # define getpagesize() PAGESIZE
29843 # endif /* PAGESIZE */
29844 # endif /* no NBPC */
29845 # endif /* no NBPG */
29846 # endif /* no EXEC_PAGESIZE */
29847 # else /* no HAVE_SYS_PARAM_H */
29848 # define getpagesize() 8192 /* punt totally */
29849 # endif /* no HAVE_SYS_PARAM_H */
29850 # endif /* no _SC_PAGESIZE */
29852 #endif /* no HAVE_GETPAGESIZE */
29857 char *data, *data2, *data3;
29861 pagesize = getpagesize ();
29863 /* First, make a file with some known garbage in it. */
29864 data = (char *) malloc (pagesize);
29867 for (i = 0; i < pagesize; ++i)
29868 *(data + i) = rand ();
29870 fd = creat ("conftest.mmap", 0600);
29873 if (write (fd, data, pagesize) != pagesize)
29877 /* Next, try to mmap the file at a fixed address which already has
29878 something else allocated at it. If we can, also make sure that
29879 we see the same garbage. */
29880 fd = open ("conftest.mmap", O_RDWR);
29883 data2 = (char *) malloc (2 * pagesize);
29886 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29887 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29888 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29890 for (i = 0; i < pagesize; ++i)
29891 if (*(data + i) != *(data2 + i))
29894 /* Finally, make sure that changes to the mapped area do not
29895 percolate back to the file as seen by read(). (This is a bug on
29896 some variants of i386 svr4.0.) */
29897 for (i = 0; i < pagesize; ++i)
29898 *(data2 + i) = *(data2 + i) + 1;
29899 data3 = (char *) malloc (pagesize);
29902 if (read (fd, data3, pagesize) != pagesize)
29904 for (i = 0; i < pagesize; ++i)
29905 if (*(data + i) != *(data3 + i))
29911 rm -f conftest$ac_exeext
29912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29913 (eval $ac_link) 2>&5
29915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29918 (eval $ac_try) 2>&5
29920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921 (exit $ac_status); }; }; then
29922 ac_cv_func_mmap_fixed_mapped=yes
29924 echo "$as_me: program exited with status $ac_status" >&5
29925 echo "$as_me: failed program was:" >&5
29926 sed 's/^/| /' conftest.$ac_ext >&5
29928 ( exit $ac_status )
29929 ac_cv_func_mmap_fixed_mapped=no
29931 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29934 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29935 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29936 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29938 cat >>confdefs.h <<\_ACEOF
29939 #define HAVE_MMAP 1
29943 rm -f conftest.mmap
29945 echo "$as_me:$LINENO: checking for mmap of files" >&5
29946 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29947 if test "${ac_cv_func_mmap_file+set}" = set; then
29948 echo $ECHO_N "(cached) $ECHO_C" >&6
29951 ac_cpp='$CPP $CPPFLAGS'
29952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29956 if test "$cross_compiling" = yes; then
29957 ac_cv_func_mmap_file=no
29959 cat >conftest.$ac_ext <<_ACEOF
29963 cat confdefs.h >>conftest.$ac_ext
29964 cat >>conftest.$ac_ext <<_ACEOF
29965 /* end confdefs.h. */
29967 #include <sys/types.h>
29968 #include <sys/mman.h>
29976 fd = creat ("foo",0777);
29977 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29979 return (fd != (int) MAP_FAILED);
29984 rm -f conftest$ac_exeext
29985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29986 (eval $ac_link) 2>&5
29988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29991 (eval $ac_try) 2>&5
29993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29994 (exit $ac_status); }; }; then
29995 ac_cv_func_mmap_file=yes
29997 echo "$as_me: program exited with status $ac_status" >&5
29998 echo "$as_me: failed program was:" >&5
29999 sed 's/^/| /' conftest.$ac_ext >&5
30001 ( exit $ac_status )
30002 ac_cv_func_mmap_file=no
30004 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30007 ac_cpp='$CPP $CPPFLAGS'
30008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30014 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30015 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30016 if test "$ac_cv_func_mmap_file" = yes; then
30018 cat >>confdefs.h <<\_ACEOF
30019 #define HAVE_MMAP_FILE
30026 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30027 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30028 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30029 echo $ECHO_N "(cached) $ECHO_C" >&6
30031 if test "$llvm_cv_os_type" = "Interix" ; then
30032 ac_cv_need_dev_zero_for_mmap=yes
30034 ac_cv_need_dev_zero_for_mmap=no
30038 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30039 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30040 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30042 cat >>confdefs.h <<\_ACEOF
30043 #define NEED_DEV_ZERO_FOR_MMAP 1
30047 echo "$as_me:$LINENO: checking for mprotect" >&5
30048 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30049 if test "${ac_cv_func_mprotect+set}" = set; then
30050 echo $ECHO_N "(cached) $ECHO_C" >&6
30052 cat >conftest.$ac_ext <<_ACEOF
30055 cat confdefs.h >>conftest.$ac_ext
30056 cat >>conftest.$ac_ext <<_ACEOF
30057 /* end confdefs.h. */
30058 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30060 #define mprotect innocuous_mprotect
30062 /* System header to define __stub macros and hopefully few prototypes,
30063 which can conflict with char mprotect (); below.
30064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30065 <limits.h> exists even on freestanding compilers. */
30068 # include <limits.h>
30070 # include <assert.h>
30075 /* Override any gcc2 internal prototype to avoid an error. */
30080 /* We use char because int might match the return type of a gcc2
30081 builtin and then its argument prototype would still apply. */
30083 /* The GNU C library defines this for functions which it implements
30084 to always fail with ENOSYS. Some functions are actually named
30085 something starting with __ and the normal name is an alias. */
30086 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30089 char (*f) () = mprotect;
30098 return f != mprotect;
30103 rm -f conftest.$ac_objext conftest$ac_exeext
30104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30105 (eval $ac_link) 2>conftest.er1
30107 grep -v '^ *+' conftest.er1 >conftest.err
30109 cat conftest.err >&5
30110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111 (exit $ac_status); } &&
30112 { ac_try='test -z "$ac_c_werror_flag"
30113 || test ! -s conftest.err'
30114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30115 (eval $ac_try) 2>&5
30117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118 (exit $ac_status); }; } &&
30119 { ac_try='test -s conftest$ac_exeext'
30120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30121 (eval $ac_try) 2>&5
30123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124 (exit $ac_status); }; }; then
30125 ac_cv_func_mprotect=yes
30127 echo "$as_me: failed program was:" >&5
30128 sed 's/^/| /' conftest.$ac_ext >&5
30130 ac_cv_func_mprotect=no
30132 rm -f conftest.err conftest.$ac_objext \
30133 conftest$ac_exeext conftest.$ac_ext
30135 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30136 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30137 if test $ac_cv_func_mprotect = yes; then
30140 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30141 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30142 { (exit 1); exit 1; }; }
30146 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30148 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30149 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30151 if test "$ac_cv_func_mmap_file" = "no"
30153 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30154 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30158 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30159 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30160 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30161 echo $ECHO_N "(cached) $ECHO_C" >&6
30163 llvm_cv_llvmgcc_sanity="no"
30164 if test -x "$LLVMGCC" ; then
30165 cp /dev/null conftest.c
30166 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30167 if test $? -eq 0 ; then
30168 llvm_cv_llvmgcc_sanity="yes"
30173 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30174 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30176 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30177 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30178 LLVMCC1=$llvmcc1path
30180 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30181 LLVMCC1PLUS=$llvmcc1pluspath
30183 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30184 LLVMGCCDIR=$llvmgccdir
30188 SHLIBEXT=$libltdl_cv_shlibext
30191 # Translate the various configuration directories and other basic
30192 # information into substitutions that will end up in Makefile.config.in
30193 # that these configured values can be used by the makefiles
30194 eval LLVM_PREFIX="${prefix}";
30195 eval LLVM_BINDIR="${prefix}/bin";
30196 eval LLVM_LIBDIR="${prefix}/lib";
30197 eval LLVM_DATADIR="${prefix}/share/llvm";
30198 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30199 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30200 eval LLVM_INCLUDEDIR="${prefix}/include";
30201 eval LLVM_INFODIR="${prefix}/info";
30202 eval LLVM_MANDIR="${prefix}/man";
30203 LLVM_CONFIGTIME=`date`
30215 # Place the various directores into the config.h file as #defines so that we
30216 # can know about the installation paths within LLVM.
30218 cat >>confdefs.h <<_ACEOF
30219 #define LLVM_PREFIX "$LLVM_PREFIX"
30223 cat >>confdefs.h <<_ACEOF
30224 #define LLVM_BINDIR "$LLVM_BINDIR"
30228 cat >>confdefs.h <<_ACEOF
30229 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30233 cat >>confdefs.h <<_ACEOF
30234 #define LLVM_DATADIR "$LLVM_DATADIR"
30238 cat >>confdefs.h <<_ACEOF
30239 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30243 cat >>confdefs.h <<_ACEOF
30244 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30248 cat >>confdefs.h <<_ACEOF
30249 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30253 cat >>confdefs.h <<_ACEOF
30254 #define LLVM_INFODIR "$LLVM_INFODIR"
30258 cat >>confdefs.h <<_ACEOF
30259 #define LLVM_MANDIR "$LLVM_MANDIR"
30263 cat >>confdefs.h <<_ACEOF
30264 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30269 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30272 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30274 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30276 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30278 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30280 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30283 ac_config_files="$ac_config_files Makefile.config"
30286 ac_config_files="$ac_config_files docs/doxygen.cfg"
30289 ac_config_commands="$ac_config_commands setup"
30291 ac_config_commands="$ac_config_commands Makefile"
30294 ac_config_commands="$ac_config_commands Makefile.common"
30297 ac_config_commands="$ac_config_commands examples/Makefile"
30300 ac_config_commands="$ac_config_commands lib/Makefile"
30303 ac_config_commands="$ac_config_commands runtime/Makefile"
30306 ac_config_commands="$ac_config_commands test/Makefile"
30309 ac_config_commands="$ac_config_commands test/Makefile.tests"
30312 ac_config_commands="$ac_config_commands tools/Makefile"
30315 ac_config_commands="$ac_config_commands utils/Makefile"
30318 ac_config_commands="$ac_config_commands projects/Makefile"
30322 cat >confcache <<\_ACEOF
30323 # This file is a shell script that caches the results of configure
30324 # tests run on this system so they can be shared between configure
30325 # scripts and configure runs, see configure's option --config-cache.
30326 # It is not useful on other systems. If it contains results you don't
30327 # want to keep, you may remove or edit it.
30329 # config.status only pays attention to the cache file if you give it
30330 # the --recheck option to rerun configure.
30332 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30333 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30334 # following values.
30338 # The following way of writing the cache mishandles newlines in values,
30339 # but we know of no workaround that is simple, portable, and efficient.
30340 # So, don't put newlines in cache variables' values.
30341 # Ultrix sh set writes to stderr and can't be redirected directly,
30342 # and sets the high bit in the cache file unless we assign to the vars.
30345 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30347 # `set' does not quote correctly, so add quotes (double-quote
30348 # substitution turns \\\\ into \\, and sed turns \\ into \).
30351 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30354 # `set' quotes correctly as required by POSIX, so do not add quotes.
30356 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30363 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30365 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30367 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30368 if test -w $cache_file; then
30369 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30370 cat confcache >$cache_file
30372 echo "not updating unwritable cache $cache_file"
30377 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30378 # Let make expand exec_prefix.
30379 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30381 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30382 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30383 # trailing colons and then remove the whole line if VPATH becomes empty
30384 # (actually we leave an empty line to preserve line numbers).
30385 if test "x$srcdir" = x.; then
30386 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30387 s/:*\$(srcdir):*/:/;
30388 s/:*\${srcdir}:*/:/;
30390 s/^\([^=]*=[ ]*\):*/\1/;
30396 DEFS=-DHAVE_CONFIG_H
30400 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30401 # 1. Remove the extension, and $U if already installed.
30402 ac_i=`echo "$ac_i" |
30403 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30405 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30406 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30408 LIBOBJS=$ac_libobjs
30410 LTLIBOBJS=$ac_ltlibobjs
30413 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30414 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30415 Usually this means the macro was only invoked conditionally." >&5
30416 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30417 Usually this means the macro was only invoked conditionally." >&2;}
30418 { (exit 1); exit 1; }; }
30420 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30421 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30422 Usually this means the macro was only invoked conditionally." >&5
30423 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30424 Usually this means the macro was only invoked conditionally." >&2;}
30425 { (exit 1); exit 1; }; }
30428 : ${CONFIG_STATUS=./config.status}
30429 ac_clean_files_save=$ac_clean_files
30430 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30431 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30432 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30433 cat >$CONFIG_STATUS <<_ACEOF
30435 # Generated by $as_me.
30436 # Run this file to recreate the current configuration.
30437 # Compiler output produced by configure, useful for debugging
30438 # configure, is in config.log if it exists.
30441 ac_cs_recheck=false
30443 SHELL=\${CONFIG_SHELL-$SHELL}
30446 cat >>$CONFIG_STATUS <<\_ACEOF
30447 ## --------------------- ##
30448 ## M4sh Initialization. ##
30449 ## --------------------- ##
30451 # Be Bourne compatible
30452 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30455 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30456 # is contrary to our usage. Disable this feature.
30457 alias -g '${1+"$@"}'='"$@"'
30458 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30461 DUALCASE=1; export DUALCASE # for MKS sh
30463 # Support unset when possible.
30464 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30471 # Work around bugs in pre-3.0 UWIN ksh.
30472 $as_unset ENV MAIL MAILPATH
30479 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30480 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30481 LC_TELEPHONE LC_TIME
30483 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30484 eval $as_var=C; export $as_var
30490 # Required to use basename.
30491 if expr a : '\(a\)' >/dev/null 2>&1; then
30497 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30498 as_basename=basename
30504 # Name of the executable.
30505 as_me=`$as_basename "$0" ||
30506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30507 X"$0" : 'X\(//\)$' \| \
30508 X"$0" : 'X\(/\)$' \| \
30509 . : '\(.\)' 2>/dev/null ||
30511 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30512 /^X\/\(\/\/\)$/{ s//\1/; q; }
30513 /^X\/\(\/\).*/{ s//\1/; q; }
30517 # PATH needs CR, and LINENO needs CR and PATH.
30518 # Avoid depending upon Character Ranges.
30519 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30520 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30521 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30522 as_cr_digits='0123456789'
30523 as_cr_alnum=$as_cr_Letters$as_cr_digits
30525 # The user is always right.
30526 if test "${PATH_SEPARATOR+set}" != set; then
30527 echo "#! /bin/sh" >conf$$.sh
30528 echo "exit 0" >>conf$$.sh
30530 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30539 as_lineno_1=$LINENO
30540 as_lineno_2=$LINENO
30541 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30542 test "x$as_lineno_1" != "x$as_lineno_2" &&
30543 test "x$as_lineno_3" = "x$as_lineno_2" || {
30544 # Find who we are. Look in the path if we contain no path at all
30547 *[\\/]* ) as_myself=$0 ;;
30548 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30549 for as_dir in $PATH
30552 test -z "$as_dir" && as_dir=.
30553 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30558 # We did not find ourselves, most probably we were run as `sh COMMAND'
30559 # in which case we are not to be found in the path.
30560 if test "x$as_myself" = x; then
30563 if test ! -f "$as_myself"; then
30564 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30565 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30566 { (exit 1); exit 1; }; }
30568 case $CONFIG_SHELL in
30570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30571 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30574 test -z "$as_dir" && as_dir=.
30575 for as_base in sh bash ksh sh5; do
30578 if ("$as_dir/$as_base" -c '
30579 as_lineno_1=$LINENO
30580 as_lineno_2=$LINENO
30581 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30582 test "x$as_lineno_1" != "x$as_lineno_2" &&
30583 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30584 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30585 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30586 CONFIG_SHELL=$as_dir/$as_base
30587 export CONFIG_SHELL
30588 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30596 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30597 # uniformly replaced by the line number. The first 'sed' inserts a
30598 # line-number line before each line; the second 'sed' does the real
30599 # work. The second script uses 'N' to pair each line-number line
30600 # with the numbered line, and appends trailing '-' during
30601 # substitution so that $LINENO is not a special case at line end.
30602 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30603 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30604 sed '=' <$as_myself |
30609 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30612 s,^['$as_cr_digits']*\n,,
30613 ' >$as_me.lineno &&
30614 chmod +x $as_me.lineno ||
30615 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30616 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30617 { (exit 1); exit 1; }; }
30619 # Don't try to exec as it changes $[0], causing all sort of problems
30620 # (the dirname of $[0] is not the place where we might find the
30621 # original and so on. Autoconf is especially sensible to this).
30623 # Exit status is that of the last command.
30628 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30629 *c*,-n*) ECHO_N= ECHO_C='
30631 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30632 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30635 if expr a : '\(a\)' >/dev/null 2>&1; then
30641 rm -f conf$$ conf$$.exe conf$$.file
30643 if ln -s conf$$.file conf$$ 2>/dev/null; then
30644 # We could just check for DJGPP; but this test a) works b) is more generic
30645 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30646 if test -f conf$$.exe; then
30647 # Don't use ln at all; we don't have any links
30652 elif ln conf$$.file conf$$ 2>/dev/null; then
30657 rm -f conf$$ conf$$.exe conf$$.file
30659 if mkdir -p . 2>/dev/null; then
30662 test -d ./-p && rmdir ./-p
30666 as_executable_p="test -f"
30668 # Sed expression to map a string onto a valid CPP name.
30669 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30671 # Sed expression to map a string onto a valid variable name.
30672 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30676 # We need space, tab and new line, in precisely that order.
30686 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30687 # report actual input values of CONFIG_FILES etc. instead of their
30688 # values after options handling. Logging --version etc. is OK.
30692 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30693 ## Running $as_me. ##
30698 This file was extended by llvm $as_me 1.6cvs, which was
30699 generated by GNU Autoconf 2.59. Invocation command line was
30701 CONFIG_FILES = $CONFIG_FILES
30702 CONFIG_HEADERS = $CONFIG_HEADERS
30703 CONFIG_LINKS = $CONFIG_LINKS
30704 CONFIG_COMMANDS = $CONFIG_COMMANDS
30708 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30712 # Files that config.status was made for.
30713 if test -n "$ac_config_files"; then
30714 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30717 if test -n "$ac_config_headers"; then
30718 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30721 if test -n "$ac_config_links"; then
30722 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30725 if test -n "$ac_config_commands"; then
30726 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30729 cat >>$CONFIG_STATUS <<\_ACEOF
30732 \`$as_me' instantiates files from templates according to the
30733 current configuration.
30735 Usage: $0 [OPTIONS] [FILE]...
30737 -h, --help print this help, then exit
30738 -V, --version print version number, then exit
30739 -q, --quiet do not print progress messages
30740 -d, --debug don't remove temporary files
30741 --recheck update $as_me by reconfiguring in the same conditions
30742 --file=FILE[:TEMPLATE]
30743 instantiate the configuration file FILE
30744 --header=FILE[:TEMPLATE]
30745 instantiate the configuration header FILE
30747 Configuration files:
30750 Configuration headers:
30753 Configuration commands:
30756 Report bugs to <bug-autoconf@gnu.org>."
30759 cat >>$CONFIG_STATUS <<_ACEOF
30761 llvm config.status 1.6cvs
30762 configured by $0, generated by GNU Autoconf 2.59,
30763 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30765 Copyright (C) 2003 Free Software Foundation, Inc.
30766 This config.status script is free software; the Free Software Foundation
30767 gives unlimited permission to copy, distribute and modify it."
30772 cat >>$CONFIG_STATUS <<\_ACEOF
30773 # If no file are specified by the user, then we need to provide default
30774 # value. By we need to know if files were specified by the user.
30780 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30781 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30789 *) # This is not an option, so the user has probably given explicit
30792 ac_need_defaults=false;;
30796 # Handling of the options.
30798 cat >>$CONFIG_STATUS <<\_ACEOF
30799 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30801 --version | --vers* | -V )
30802 echo "$ac_cs_version"; exit 0 ;;
30804 # Conflict between --help and --header
30805 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30806 Try \`$0 --help' for more information." >&5
30807 echo "$as_me: error: ambiguous option: $1
30808 Try \`$0 --help' for more information." >&2;}
30809 { (exit 1); exit 1; }; };;
30810 --help | --hel | -h )
30811 echo "$ac_cs_usage"; exit 0 ;;
30812 --debug | --d* | -d )
30814 --file | --fil | --fi | --f )
30816 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30817 ac_need_defaults=false;;
30818 --header | --heade | --head | --hea )
30820 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30821 ac_need_defaults=false;;
30822 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30823 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30826 # This is an error.
30827 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30828 Try \`$0 --help' for more information." >&5
30829 echo "$as_me: error: unrecognized option: $1
30830 Try \`$0 --help' for more information." >&2;}
30831 { (exit 1); exit 1; }; } ;;
30833 *) ac_config_targets="$ac_config_targets $1" ;;
30839 ac_configure_extra_args=
30841 if $ac_cs_silent; then
30843 ac_configure_extra_args="$ac_configure_extra_args --silent"
30847 cat >>$CONFIG_STATUS <<_ACEOF
30848 if \$ac_cs_recheck; then
30849 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30850 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30855 cat >>$CONFIG_STATUS <<_ACEOF
30857 # INIT-COMMANDS section.
30860 llvm_src="${srcdir}"
30866 cat >>$CONFIG_STATUS <<\_ACEOF
30867 for ac_config_target in $ac_config_targets
30869 case "$ac_config_target" in
30870 # Handling of arguments.
30871 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30872 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30873 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
30874 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30875 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30876 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30877 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30878 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30879 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30880 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30881 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30882 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30883 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30884 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30885 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30886 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30887 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30888 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30889 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30890 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30891 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30892 { (exit 1); exit 1; }; };;
30896 # If the user did not use the arguments to specify the items to instantiate,
30897 # then the envvar interface is used. Set only those that are not.
30898 # We use the long form for the default assignment because of an extremely
30899 # bizarre bug on SunOS 4.1.3.
30900 if $ac_need_defaults; then
30901 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30902 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30903 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30906 # Have a temporary directory for convenience. Make it in the build tree
30907 # simply because there is no reason to put it here, and in addition,
30908 # creating and moving files from /tmp can sometimes cause problems.
30909 # Create a temporary directory, and hook for its removal unless debugging.
30912 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30913 trap '{ (exit 1); exit 1; }' 1 2 13 15
30916 # Create a (secure) tmp directory for tmp files.
30919 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30920 test -n "$tmp" && test -d "$tmp"
30923 tmp=./confstat$$-$RANDOM
30924 (umask 077 && mkdir $tmp)
30927 echo "$me: cannot create a temporary directory in ." >&2
30928 { (exit 1); exit 1; }
30933 cat >>$CONFIG_STATUS <<_ACEOF
30936 # CONFIG_FILES section.
30939 # No need to generate the scripts if there are no CONFIG_FILES.
30940 # This happens for instance when ./config.status config.h
30941 if test -n "\$CONFIG_FILES"; then
30942 # Protect against being on the right side of a sed subst in config.status.
30943 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30944 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30945 s,@SHELL@,$SHELL,;t t
30946 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30947 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30948 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30949 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30950 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30951 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30952 s,@exec_prefix@,$exec_prefix,;t t
30953 s,@prefix@,$prefix,;t t
30954 s,@program_transform_name@,$program_transform_name,;t t
30955 s,@bindir@,$bindir,;t t
30956 s,@sbindir@,$sbindir,;t t
30957 s,@libexecdir@,$libexecdir,;t t
30958 s,@datadir@,$datadir,;t t
30959 s,@sysconfdir@,$sysconfdir,;t t
30960 s,@sharedstatedir@,$sharedstatedir,;t t
30961 s,@localstatedir@,$localstatedir,;t t
30962 s,@libdir@,$libdir,;t t
30963 s,@includedir@,$includedir,;t t
30964 s,@oldincludedir@,$oldincludedir,;t t
30965 s,@infodir@,$infodir,;t t
30966 s,@mandir@,$mandir,;t t
30967 s,@build_alias@,$build_alias,;t t
30968 s,@host_alias@,$host_alias,;t t
30969 s,@target_alias@,$target_alias,;t t
30970 s,@DEFS@,$DEFS,;t t
30971 s,@ECHO_C@,$ECHO_C,;t t
30972 s,@ECHO_N@,$ECHO_N,;t t
30973 s,@ECHO_T@,$ECHO_T,;t t
30974 s,@LIBS@,$LIBS,;t t
30975 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30976 s,@subdirs@,$subdirs,;t t
30977 s,@build@,$build,;t t
30978 s,@build_cpu@,$build_cpu,;t t
30979 s,@build_vendor@,$build_vendor,;t t
30980 s,@build_os@,$build_os,;t t
30981 s,@host@,$host,;t t
30982 s,@host_cpu@,$host_cpu,;t t
30983 s,@host_vendor@,$host_vendor,;t t
30984 s,@host_os@,$host_os,;t t
30985 s,@target@,$target,;t t
30986 s,@target_cpu@,$target_cpu,;t t
30987 s,@target_vendor@,$target_vendor,;t t
30988 s,@target_os@,$target_os,;t t
30990 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
30991 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
30992 s,@ARCH@,$ARCH,;t t
30993 s,@ENDIAN@,$ENDIAN,;t t
30995 s,@CFLAGS@,$CFLAGS,;t t
30996 s,@LDFLAGS@,$LDFLAGS,;t t
30997 s,@CPPFLAGS@,$CPPFLAGS,;t t
30998 s,@ac_ct_CC@,$ac_ct_CC,;t t
30999 s,@EXEEXT@,$EXEEXT,;t t
31000 s,@OBJEXT@,$OBJEXT,;t t
31001 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31003 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31004 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31007 s,@CXXFLAGS@,$CXXFLAGS,;t t
31008 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31010 s,@LEXLIB@,$LEXLIB,;t t
31011 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31012 s,@FLEX@,$FLEX,;t t
31013 s,@YACC@,$YACC,;t t
31014 s,@BISON@,$BISON,;t t
31015 s,@ifGNUmake@,$ifGNUmake,;t t
31016 s,@LN_S@,$LN_S,;t t
31019 s,@DATE@,$DATE,;t t
31020 s,@FIND@,$FIND,;t t
31021 s,@GREP@,$GREP,;t t
31022 s,@MKDIR@,$MKDIR,;t t
31024 s,@RANLIB@,$RANLIB,;t t
31025 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31029 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31030 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31031 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31032 s,@BZIP2@,$BZIP2,;t t
31034 s,@DOXYGEN@,$DOXYGEN,;t t
31035 s,@ETAGS@,$ETAGS,;t t
31036 s,@GROFF@,$GROFF,;t t
31037 s,@GZIP@,$GZIP,;t t
31038 s,@POD2HTML@,$POD2HTML,;t t
31039 s,@POD2MAN@,$POD2MAN,;t t
31040 s,@RUNTEST@,$RUNTEST,;t t
31041 s,@TCLSH@,$TCLSH,;t t
31043 s,@EGREP@,$EGREP,;t t
31044 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31045 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31046 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31047 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31048 s,@LIBADD_DL@,$LIBADD_DL,;t t
31049 s,@ECHO@,$ECHO,;t t
31051 s,@ac_ct_AR@,$ac_ct_AR,;t t
31052 s,@STRIP@,$STRIP,;t t
31053 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31054 s,@CXXCPP@,$CXXCPP,;t t
31056 s,@FFLAGS@,$FFLAGS,;t t
31057 s,@ac_ct_F77@,$ac_ct_F77,;t t
31058 s,@LIBTOOL@,$LIBTOOL,;t t
31059 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31060 s,@LLVMGCC@,$LLVMGCC,;t t
31061 s,@LLVMGXX@,$LLVMGXX,;t t
31062 s,@ALLOCA@,$ALLOCA,;t t
31063 s,@MMAP_FILE@,$MMAP_FILE,;t t
31064 s,@LLVMCC1@,$LLVMCC1,;t t
31065 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31066 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31067 s,@SHLIBEXT@,$SHLIBEXT,;t t
31068 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31069 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31070 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31071 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31072 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31073 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31074 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31075 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31076 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31077 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31078 s,@LIBOBJS@,$LIBOBJS,;t t
31079 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31084 cat >>$CONFIG_STATUS <<\_ACEOF
31085 # Split the substitutions into bite-sized pieces for seds with
31086 # small command number limits, like on Digital OSF/1 and HP-UX.
31087 ac_max_sed_lines=48
31088 ac_sed_frag=1 # Number of current file.
31089 ac_beg=1 # First line for current file.
31090 ac_end=$ac_max_sed_lines # Line after last line for current file.
31093 while $ac_more_lines; do
31094 if test $ac_beg -gt 1; then
31095 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31097 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31099 if test ! -s $tmp/subs.frag; then
31100 ac_more_lines=false
31102 # The purpose of the label and of the branching condition is to
31103 # speed up the sed processing (if there are no `@' at all, there
31104 # is no need to browse any of the substitutions).
31105 # These are the two extra sed commands mentioned above.
31107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31108 if test -z "$ac_sed_cmds"; then
31109 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31111 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31113 ac_sed_frag=`expr $ac_sed_frag + 1`
31115 ac_end=`expr $ac_end + $ac_max_sed_lines`
31118 if test -z "$ac_sed_cmds"; then
31121 fi # test -n "$CONFIG_FILES"
31124 cat >>$CONFIG_STATUS <<\_ACEOF
31125 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31126 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31128 - | *:- | *:-:* ) # input from stdin
31130 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31131 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31132 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31133 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31134 * ) ac_file_in=$ac_file.in ;;
31137 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31138 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31139 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31140 X"$ac_file" : 'X\(//\)[^/]' \| \
31141 X"$ac_file" : 'X\(//\)$' \| \
31142 X"$ac_file" : 'X\(/\)' \| \
31143 . : '\(.\)' 2>/dev/null ||
31145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31147 /^X\(\/\/\)$/{ s//\1/; q; }
31148 /^X\(\/\).*/{ s//\1/; q; }
31150 { if $as_mkdir_p; then
31155 while test ! -d "$as_dir"; do
31156 as_dirs="$as_dir $as_dirs"
31157 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31158 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31159 X"$as_dir" : 'X\(//\)[^/]' \| \
31160 X"$as_dir" : 'X\(//\)$' \| \
31161 X"$as_dir" : 'X\(/\)' \| \
31162 . : '\(.\)' 2>/dev/null ||
31164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31166 /^X\(\/\/\)$/{ s//\1/; q; }
31167 /^X\(\/\).*/{ s//\1/; q; }
31170 test ! -n "$as_dirs" || mkdir $as_dirs
31171 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31172 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31173 { (exit 1); exit 1; }; }; }
31177 if test "$ac_dir" != .; then
31178 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31179 # A "../" for each directory in $ac_dir_suffix.
31180 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31182 ac_dir_suffix= ac_top_builddir=
31186 .) # No --srcdir option. We are building in place.
31188 if test -z "$ac_top_builddir"; then
31191 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31193 [\\/]* | ?:[\\/]* ) # Absolute path.
31194 ac_srcdir=$srcdir$ac_dir_suffix;
31195 ac_top_srcdir=$srcdir ;;
31196 *) # Relative path.
31197 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31198 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31201 # Do not use `cd foo && pwd` to compute absolute paths, because
31202 # the directories may not exist.
31204 .) ac_abs_builddir="$ac_dir";;
31207 .) ac_abs_builddir=`pwd`;;
31208 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31209 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31212 case $ac_abs_builddir in
31213 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31215 case ${ac_top_builddir}. in
31216 .) ac_abs_top_builddir=$ac_abs_builddir;;
31217 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31218 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31221 case $ac_abs_builddir in
31222 .) ac_abs_srcdir=$ac_srcdir;;
31225 .) ac_abs_srcdir=$ac_abs_builddir;;
31226 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31227 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31230 case $ac_abs_builddir in
31231 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31233 case $ac_top_srcdir in
31234 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31235 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31236 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31242 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31243 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31246 if test x"$ac_file" != x-; then
31247 { echo "$as_me:$LINENO: creating $ac_file" >&5
31248 echo "$as_me: creating $ac_file" >&6;}
31251 # Let's still pretend it is `configure' which instantiates (i.e., don't
31252 # use $as_me), people would be surprised to read:
31253 # /* config.h. Generated by config.status. */
31254 if test x"$ac_file" = x-; then
31257 configure_input="$ac_file. "
31259 configure_input=$configure_input"Generated from `echo $ac_file_in |
31260 sed 's,.*/,,'` by configure."
31262 # First look for the input files in the build tree, otherwise in the
31264 ac_file_inputs=`IFS=:
31265 for f in $ac_file_in; do
31267 -) echo $tmp/stdin ;;
31269 # Absolute (can't be DOS-style, as IFS=:)
31270 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31271 echo "$as_me: error: cannot find input file: $f" >&2;}
31272 { (exit 1); exit 1; }; }
31275 if test -f "$f"; then
31278 elif test -f "$srcdir/$f"; then
31283 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31284 echo "$as_me: error: cannot find input file: $f" >&2;}
31285 { (exit 1); exit 1; }; }
31288 done` || { (exit 1); exit 1; }
31290 cat >>$CONFIG_STATUS <<_ACEOF
31294 cat >>$CONFIG_STATUS <<\_ACEOF
31296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31297 s,@configure_input@,$configure_input,;t t
31298 s,@srcdir@,$ac_srcdir,;t t
31299 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31300 s,@top_srcdir@,$ac_top_srcdir,;t t
31301 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31302 s,@builddir@,$ac_builddir,;t t
31303 s,@abs_builddir@,$ac_abs_builddir,;t t
31304 s,@top_builddir@,$ac_top_builddir,;t t
31305 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31306 s,@INSTALL@,$ac_INSTALL,;t t
31307 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31309 if test x"$ac_file" != x-; then
31310 mv $tmp/out $ac_file
31318 cat >>$CONFIG_STATUS <<\_ACEOF
31321 # CONFIG_HEADER section.
31324 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31325 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31327 # ac_d sets the value in "#define NAME VALUE" lines.
31328 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31329 ac_dB='[ ].*$,\1#\2'
31332 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31333 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31334 ac_uB='$,\1#\2define\3'
31338 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31339 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31341 - | *:- | *:-:* ) # input from stdin
31343 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31344 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31345 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31346 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31347 * ) ac_file_in=$ac_file.in ;;
31350 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31351 echo "$as_me: creating $ac_file" >&6;}
31353 # First look for the input files in the build tree, otherwise in the
31355 ac_file_inputs=`IFS=:
31356 for f in $ac_file_in; do
31358 -) echo $tmp/stdin ;;
31360 # Absolute (can't be DOS-style, as IFS=:)
31361 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31362 echo "$as_me: error: cannot find input file: $f" >&2;}
31363 { (exit 1); exit 1; }; }
31364 # Do quote $f, to prevent DOS paths from being IFS'd.
31367 if test -f "$f"; then
31370 elif test -f "$srcdir/$f"; then
31375 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31376 echo "$as_me: error: cannot find input file: $f" >&2;}
31377 { (exit 1); exit 1; }; }
31380 done` || { (exit 1); exit 1; }
31381 # Remove the trailing spaces.
31382 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31386 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31387 # `conftest.undefs', that substitutes the proper values into
31388 # config.h.in to produce config.h. The first handles `#define'
31389 # templates, and the second `#undef' templates.
31390 # And first: Protect against being on the right side of a sed subst in
31391 # config.status. Protect against being in an unquoted here document
31392 # in config.status.
31393 rm -f conftest.defines conftest.undefs
31394 # Using a here document instead of a string reduces the quoting nightmare.
31395 # Putting comments in sed scripts is not portable.
31397 # `end' is used to avoid that the second main sed command (meant for
31398 # 0-ary CPP macros) applies to n-ary macro definitions.
31399 # See the Autoconf documentation for `clear'.
31400 cat >confdef2sed.sed <<\_ACEOF
31405 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31407 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31410 # If some macros were called several times there might be several times
31411 # the same #defines, which is useless. Nevertheless, we may not want to
31412 # sort them, since we want the *last* AC-DEFINE to be honored.
31413 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31414 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31415 rm -f confdef2sed.sed
31417 # This sed command replaces #undef with comments. This is necessary, for
31418 # example, in the case of _POSIX_SOURCE, which is predefined and required
31419 # on some systems where configure will not decide to define it.
31420 cat >>conftest.undefs <<\_ACEOF
31421 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31424 # Break up conftest.defines because some shells have a limit on the size
31425 # of here documents, and old seds have small limits too (100 cmds).
31426 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31427 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31428 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31429 echo ' :' >>$CONFIG_STATUS
31430 rm -f conftest.tail
31431 while grep . conftest.defines >/dev/null
31433 # Write a limited-size here document to $tmp/defines.sed.
31434 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31435 # Speed up: don't consider the non `#define' lines.
31436 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31437 # Work around the forget-to-reset-the-flag bug.
31438 echo 't clr' >>$CONFIG_STATUS
31439 echo ': clr' >>$CONFIG_STATUS
31440 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31442 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31444 mv $tmp/out $tmp/in
31446 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31447 rm -f conftest.defines
31448 mv conftest.tail conftest.defines
31450 rm -f conftest.defines
31451 echo ' fi # grep' >>$CONFIG_STATUS
31452 echo >>$CONFIG_STATUS
31454 # Break up conftest.undefs because some shells have a limit on the size
31455 # of here documents, and old seds have small limits too (100 cmds).
31456 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31457 rm -f conftest.tail
31458 while grep . conftest.undefs >/dev/null
31460 # Write a limited-size here document to $tmp/undefs.sed.
31461 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31462 # Speed up: don't consider the non `#undef'
31463 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31464 # Work around the forget-to-reset-the-flag bug.
31465 echo 't clr' >>$CONFIG_STATUS
31466 echo ': clr' >>$CONFIG_STATUS
31467 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31469 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31471 mv $tmp/out $tmp/in
31473 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31474 rm -f conftest.undefs
31475 mv conftest.tail conftest.undefs
31477 rm -f conftest.undefs
31479 cat >>$CONFIG_STATUS <<\_ACEOF
31480 # Let's still pretend it is `configure' which instantiates (i.e., don't
31481 # use $as_me), people would be surprised to read:
31482 # /* config.h. Generated by config.status. */
31483 if test x"$ac_file" = x-; then
31484 echo "/* Generated by configure. */" >$tmp/config.h
31486 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31488 cat $tmp/in >>$tmp/config.h
31490 if test x"$ac_file" != x-; then
31491 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31492 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31493 echo "$as_me: $ac_file is unchanged" >&6;}
31495 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31496 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31497 X"$ac_file" : 'X\(//\)[^/]' \| \
31498 X"$ac_file" : 'X\(//\)$' \| \
31499 X"$ac_file" : 'X\(/\)' \| \
31500 . : '\(.\)' 2>/dev/null ||
31502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31503 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31504 /^X\(\/\/\)$/{ s//\1/; q; }
31505 /^X\(\/\).*/{ s//\1/; q; }
31507 { if $as_mkdir_p; then
31512 while test ! -d "$as_dir"; do
31513 as_dirs="$as_dir $as_dirs"
31514 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31515 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31516 X"$as_dir" : 'X\(//\)[^/]' \| \
31517 X"$as_dir" : 'X\(//\)$' \| \
31518 X"$as_dir" : 'X\(/\)' \| \
31519 . : '\(.\)' 2>/dev/null ||
31521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31522 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31523 /^X\(\/\/\)$/{ s//\1/; q; }
31524 /^X\(\/\).*/{ s//\1/; q; }
31527 test ! -n "$as_dirs" || mkdir $as_dirs
31528 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31529 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31530 { (exit 1); exit 1; }; }; }
31533 mv $tmp/config.h $ac_file
31537 rm -f $tmp/config.h
31541 cat >>$CONFIG_STATUS <<\_ACEOF
31544 # CONFIG_COMMANDS section.
31546 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31547 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31548 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31549 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31550 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31551 X"$ac_dest" : 'X\(//\)[^/]' \| \
31552 X"$ac_dest" : 'X\(//\)$' \| \
31553 X"$ac_dest" : 'X\(/\)' \| \
31554 . : '\(.\)' 2>/dev/null ||
31556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31557 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31558 /^X\(\/\/\)$/{ s//\1/; q; }
31559 /^X\(\/\).*/{ s//\1/; q; }
31561 { if $as_mkdir_p; then
31566 while test ! -d "$as_dir"; do
31567 as_dirs="$as_dir $as_dirs"
31568 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31569 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31570 X"$as_dir" : 'X\(//\)[^/]' \| \
31571 X"$as_dir" : 'X\(//\)$' \| \
31572 X"$as_dir" : 'X\(/\)' \| \
31573 . : '\(.\)' 2>/dev/null ||
31575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31576 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31577 /^X\(\/\/\)$/{ s//\1/; q; }
31578 /^X\(\/\).*/{ s//\1/; q; }
31581 test ! -n "$as_dirs" || mkdir $as_dirs
31582 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31583 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31584 { (exit 1); exit 1; }; }; }
31588 if test "$ac_dir" != .; then
31589 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31590 # A "../" for each directory in $ac_dir_suffix.
31591 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31593 ac_dir_suffix= ac_top_builddir=
31597 .) # No --srcdir option. We are building in place.
31599 if test -z "$ac_top_builddir"; then
31602 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31604 [\\/]* | ?:[\\/]* ) # Absolute path.
31605 ac_srcdir=$srcdir$ac_dir_suffix;
31606 ac_top_srcdir=$srcdir ;;
31607 *) # Relative path.
31608 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31609 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31612 # Do not use `cd foo && pwd` to compute absolute paths, because
31613 # the directories may not exist.
31615 .) ac_abs_builddir="$ac_dir";;
31618 .) ac_abs_builddir=`pwd`;;
31619 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31620 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31623 case $ac_abs_builddir in
31624 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31626 case ${ac_top_builddir}. in
31627 .) ac_abs_top_builddir=$ac_abs_builddir;;
31628 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31629 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31632 case $ac_abs_builddir in
31633 .) ac_abs_srcdir=$ac_srcdir;;
31636 .) ac_abs_srcdir=$ac_abs_builddir;;
31637 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31638 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31641 case $ac_abs_builddir in
31642 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31644 case $ac_top_srcdir in
31645 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31646 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31647 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31652 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31653 echo "$as_me: executing $ac_dest commands" >&6;}
31655 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31656 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31657 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31658 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31659 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31660 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31661 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31662 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31663 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31664 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31665 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31666 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31667 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31668 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31669 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31670 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31671 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31672 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31673 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31674 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31679 cat >>$CONFIG_STATUS <<\_ACEOF
31681 { (exit 0); exit 0; }
31683 chmod +x $CONFIG_STATUS
31684 ac_clean_files=$ac_clean_files_save
31687 # configure is writing to config.log, and then calls config.status.
31688 # config.status does its own redirection, appending to config.log.
31689 # Unfortunately, on DOS this fails, as config.log is still kept open
31690 # by configure, so config.status won't be able to write to it; its
31691 # output is simply discarded. So we exec the FD to /dev/null,
31692 # effectively closing config.log, so it can be properly (re)opened and
31693 # appended to by config.status. When coming back to configure, we
31694 # need to make the FD available again.
31695 if test "$no_create" != yes; then
31697 ac_config_status_args=
31698 test "$silent" = yes &&
31699 ac_config_status_args="$ac_config_status_args --quiet"
31701 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31703 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31704 # would make configure fail if this is the last instruction.
31705 $ac_cs_success || { (exit 1); exit 1; }
31709 # CONFIG_SUBDIRS section.
31711 if test "$no_recursion" != yes; then
31713 # Remove --cache-file and --srcdir arguments so they do not pile up.
31714 ac_sub_configure_args=
31716 for ac_arg in $ac_configure_args; do
31717 if test -n "$ac_prev"; then
31722 -cache-file | --cache-file | --cache-fil | --cache-fi \
31723 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31724 ac_prev=cache_file ;;
31725 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31726 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31729 --config-cache | -C)
31731 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31733 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31735 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31737 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31739 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31743 # Always prepend --prefix to ensure using the same prefix
31744 # in subdir configurations.
31745 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31748 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31750 # Do not complain, so a configure script can configure whichever
31751 # parts of a large source tree are present.
31752 test -d $srcdir/$ac_dir || continue
31754 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31755 echo "$as_me: configuring in $ac_dir" >&6;}
31756 { if $as_mkdir_p; then
31761 while test ! -d "$as_dir"; do
31762 as_dirs="$as_dir $as_dirs"
31763 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31765 X"$as_dir" : 'X\(//\)[^/]' \| \
31766 X"$as_dir" : 'X\(//\)$' \| \
31767 X"$as_dir" : 'X\(/\)' \| \
31768 . : '\(.\)' 2>/dev/null ||
31770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31771 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31772 /^X\(\/\/\)$/{ s//\1/; q; }
31773 /^X\(\/\).*/{ s//\1/; q; }
31776 test ! -n "$as_dirs" || mkdir $as_dirs
31777 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31778 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31779 { (exit 1); exit 1; }; }; }
31783 if test "$ac_dir" != .; then
31784 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31785 # A "../" for each directory in $ac_dir_suffix.
31786 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31788 ac_dir_suffix= ac_top_builddir=
31792 .) # No --srcdir option. We are building in place.
31794 if test -z "$ac_top_builddir"; then
31797 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31799 [\\/]* | ?:[\\/]* ) # Absolute path.
31800 ac_srcdir=$srcdir$ac_dir_suffix;
31801 ac_top_srcdir=$srcdir ;;
31802 *) # Relative path.
31803 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31804 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31807 # Do not use `cd foo && pwd` to compute absolute paths, because
31808 # the directories may not exist.
31810 .) ac_abs_builddir="$ac_dir";;
31813 .) ac_abs_builddir=`pwd`;;
31814 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31815 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31818 case $ac_abs_builddir in
31819 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31821 case ${ac_top_builddir}. in
31822 .) ac_abs_top_builddir=$ac_abs_builddir;;
31823 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31824 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31827 case $ac_abs_builddir in
31828 .) ac_abs_srcdir=$ac_srcdir;;
31831 .) ac_abs_srcdir=$ac_abs_builddir;;
31832 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31833 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31836 case $ac_abs_builddir in
31837 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31839 case $ac_top_srcdir in
31840 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31841 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31842 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31849 # Check for guested configure; otherwise get Cygnus style configure.
31850 if test -f $ac_srcdir/configure.gnu; then
31851 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31852 elif test -f $ac_srcdir/configure; then
31853 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31854 elif test -f $ac_srcdir/configure.in; then
31855 ac_sub_configure=$ac_configure
31857 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31858 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31862 # The recursion is here.
31863 if test -n "$ac_sub_configure"; then
31864 # Make the cache file name correct relative to the subdirectory.
31865 case $cache_file in
31866 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31867 *) # Relative path.
31868 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31871 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31872 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31873 # The eval makes quoting arguments work.
31874 eval $ac_sub_configure $ac_sub_configure_args \
31875 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31876 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31877 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31878 { (exit 1); exit 1; }; }
31886 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31887 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31888 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
31889 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31890 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31891 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31892 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31893 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31894 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31895 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31896 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}