2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.5cvs.
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.5cvs'
429 PACKAGE_STRING='llvm 1.5cvs'
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.5cvs 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.5cvs:";;
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.5cvs
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.5cvs, 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="Interix"
1719 llvm_cv_platform_type="Unix" ;;
1721 llvm_cv_os_type="Linux"
1722 llvm_cv_platform_type="Unix" ;;
1724 llvm_cv_os_type="SunOS"
1725 llvm_cv_platform_type="Unix" ;;
1727 llvm_cv_os_type="Win32"
1728 llvm_cv_platform_type="Win32" ;;
1730 llvm_cv_os_type="MingW"
1731 llvm_cv_platform_type="Win32" ;;
1733 llvm_cv_os_type="Unknown"
1734 llvm_cv_platform_type="Unknown" ;;
1737 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1738 echo "${ECHO_T}$llvm_cv_os_type" >&6
1740 if test "$llvm_cv_os_type" = "Unknown" ; then
1741 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1742 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1743 { (exit 1); exit 1; }; }
1749 case $llvm_cv_platform_type in
1752 cat >>confdefs.h <<\_ACEOF
1753 #define LLVM_ON_UNIX 1
1763 cat >>confdefs.h <<\_ACEOF
1764 #define LLVM_ON_WIN32 1
1775 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1780 echo "$as_me:$LINENO: checking target architecture" >&5
1781 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1782 if test "${llvm_cv_target_arch+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1786 i?86-*) llvm_cv_target_arch="x86" ;;
1787 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
1788 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1789 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1790 alpha*-*) llvm_cv_target_arch="Alpha" ;;
1791 ia64-*) llvm_cv_target_arch="IA64" ;;
1792 *) llvm_cv_target_arch="Unknown" ;;
1795 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1796 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1798 if test "$llvm_cv_target_arch" = "Unknown" ; then
1799 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1800 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1803 ARCH=$llvm_cv_target_arch
1807 ac_cpp='$CPP $CPPFLAGS'
1808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1811 if test -n "$ac_tool_prefix"; then
1812 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1813 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1814 echo "$as_me:$LINENO: checking for $ac_word" >&5
1815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816 if test "${ac_cv_prog_CC+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1819 if test -n "$CC"; then
1820 ac_cv_prog_CC="$CC" # Let the user override the test.
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 test -z "$as_dir" && as_dir=.
1827 for ac_exec_ext in '' $ac_executable_extensions; do
1828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839 if test -n "$CC"; then
1840 echo "$as_me:$LINENO: result: $CC" >&5
1841 echo "${ECHO_T}$CC" >&6
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1848 if test -z "$ac_cv_prog_CC"; then
1850 # Extract the first word of "gcc", so it can be a program name with args.
1851 set dummy gcc; ac_word=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 if test -n "$ac_ct_CC"; then
1858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_ac_ct_CC="gcc"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1877 if test -n "$ac_ct_CC"; then
1878 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1879 echo "${ECHO_T}$ac_ct_CC" >&6
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1890 if test -z "$CC"; then
1891 if test -n "$ac_tool_prefix"; then
1892 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1893 set dummy ${ac_tool_prefix}cc; ac_word=$2
1894 echo "$as_me:$LINENO: checking for $ac_word" >&5
1895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896 if test "${ac_cv_prog_CC+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 if test -n "$CC"; then
1900 ac_cv_prog_CC="$CC" # Let the user override the test.
1902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 test -z "$as_dir" && as_dir=.
1907 for ac_exec_ext in '' $ac_executable_extensions; do
1908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909 ac_cv_prog_CC="${ac_tool_prefix}cc"
1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919 if test -n "$CC"; then
1920 echo "$as_me:$LINENO: result: $CC" >&5
1921 echo "${ECHO_T}$CC" >&6
1923 echo "$as_me:$LINENO: result: no" >&5
1924 echo "${ECHO_T}no" >&6
1928 if test -z "$ac_cv_prog_CC"; then
1930 # Extract the first word of "cc", so it can be a program name with args.
1931 set dummy cc; ac_word=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 if test -n "$ac_ct_CC"; then
1938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 ac_cv_prog_ac_ct_CC="cc"
1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1957 if test -n "$ac_ct_CC"; then
1958 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1959 echo "${ECHO_T}$ac_ct_CC" >&6
1961 echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6
1971 if test -z "$CC"; then
1972 # Extract the first word of "cc", so it can be a program name with args.
1973 set dummy cc; ac_word=$2
1974 echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976 if test "${ac_cv_prog_CC+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 if test -n "$CC"; then
1980 ac_cv_prog_CC="$CC" # Let the user override the test.
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 test -z "$as_dir" && as_dir=.
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1990 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1991 ac_prog_rejected=yes
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 if test $ac_prog_rejected = yes; then
2002 # We found a bogon in the path, so make sure we never use it.
2003 set dummy $ac_cv_prog_CC
2005 if test $# != 0; then
2006 # We chose a different compiler from the bogus one.
2007 # However, it has the same basename, so the bogon will be chosen
2008 # first if we set CC to just the basename; use the full file name.
2010 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2016 if test -n "$CC"; then
2017 echo "$as_me:$LINENO: result: $CC" >&5
2018 echo "${ECHO_T}$CC" >&6
2020 echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6
2025 if test -z "$CC"; then
2026 if test -n "$ac_tool_prefix"; then
2029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2031 echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 if test -n "$CC"; then
2037 ac_cv_prog_CC="$CC" # Let the user override the test.
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 if test -n "$CC"; then
2057 echo "$as_me:$LINENO: result: $CC" >&5
2058 echo "${ECHO_T}$CC" >&6
2060 echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2064 test -n "$CC" && break
2067 if test -z "$CC"; then
2071 # Extract the first word of "$ac_prog", so it can be a program name with args.
2072 set dummy $ac_prog; ac_word=$2
2073 echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 if test -n "$ac_ct_CC"; then
2079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085 test -z "$as_dir" && as_dir=.
2086 for ac_exec_ext in '' $ac_executable_extensions; do
2087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088 ac_cv_prog_ac_ct_CC="$ac_prog"
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2098 if test -n "$ac_ct_CC"; then
2099 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2100 echo "${ECHO_T}$ac_ct_CC" >&6
2102 echo "$as_me:$LINENO: result: no" >&5
2103 echo "${ECHO_T}no" >&6
2106 test -n "$ac_ct_CC" && break
2115 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&5
2117 echo "$as_me: error: no acceptable C compiler found in \$PATH
2118 See \`config.log' for more details." >&2;}
2119 { (exit 1); exit 1; }; }
2121 # Provide some information about the compiler.
2122 echo "$as_me:$LINENO:" \
2123 "checking for C compiler version" >&5
2124 ac_compiler=`set X $ac_compile; echo $2`
2125 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2126 (eval $ac_compiler --version </dev/null >&5) 2>&5
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2130 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2131 (eval $ac_compiler -v </dev/null >&5) 2>&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }
2135 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2136 (eval $ac_compiler -V </dev/null >&5) 2>&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2141 cat >conftest.$ac_ext <<_ACEOF
2144 cat confdefs.h >>conftest.$ac_ext
2145 cat >>conftest.$ac_ext <<_ACEOF
2146 /* end confdefs.h. */
2156 ac_clean_files_save=$ac_clean_files
2157 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2158 # Try to create an executable without -o first, disregard a.out.
2159 # It will help us diagnose broken compilers, and finding out an intuition
2161 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2162 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2163 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2164 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2165 (eval $ac_link_default) 2>&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; then
2169 # Find the output, starting from the most likely. This scheme is
2170 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2173 # Be careful to initialize this variable, since it used to be cached.
2174 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2176 # b.out is created by i960 compilers.
2177 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2179 test -f "$ac_file" || continue
2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2184 # This is the source file.
2187 # We found the default executable, but exeext='' is most
2191 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192 # FIXME: I believe we export ac_cv_exeext for Libtool,
2193 # but it would be cool to find out if it's true. Does anybody
2194 # maintain Libtool? --akim.
2202 echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.$ac_ext >&5
2205 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2206 See \`config.log' for more details." >&5
2207 echo "$as_me: error: C compiler cannot create executables
2208 See \`config.log' for more details." >&2;}
2209 { (exit 77); exit 77; }; }
2212 ac_exeext=$ac_cv_exeext
2213 echo "$as_me:$LINENO: result: $ac_file" >&5
2214 echo "${ECHO_T}$ac_file" >&6
2216 # Check the compiler produces executables we can run. If not, either
2217 # the compiler is broken, or we cross compile.
2218 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2219 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2220 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2221 # If not cross compiling, check that we can run a simple program.
2222 if test "$cross_compiling" != yes; then
2223 if { ac_try='./$ac_file'
2224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; }; then
2231 if test "$cross_compiling" = maybe; then
2234 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2235 If you meant to cross compile, use \`--host'.
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: cannot run C compiled programs.
2238 If you meant to cross compile, use \`--host'.
2239 See \`config.log' for more details." >&2;}
2240 { (exit 1); exit 1; }; }
2244 echo "$as_me:$LINENO: result: yes" >&5
2245 echo "${ECHO_T}yes" >&6
2247 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2248 ac_clean_files=$ac_clean_files_save
2249 # Check the compiler produces executables we can run. If not, either
2250 # the compiler is broken, or we cross compile.
2251 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2252 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2253 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2254 echo "${ECHO_T}$cross_compiling" >&6
2256 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2257 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2259 (eval $ac_link) 2>&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; then
2263 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2264 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2265 # work properly (i.e., refer to `conftest.exe'), while it won't with
2267 for ac_file in conftest.exe conftest conftest.*; do
2268 test -f "$ac_file" || continue
2270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2271 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2278 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2279 See \`config.log' for more details." >&5
2280 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2281 See \`config.log' for more details." >&2;}
2282 { (exit 1); exit 1; }; }
2285 rm -f conftest$ac_cv_exeext
2286 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2287 echo "${ECHO_T}$ac_cv_exeext" >&6
2289 rm -f conftest.$ac_ext
2290 EXEEXT=$ac_cv_exeext
2292 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2293 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2294 if test "${ac_cv_objext+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 cat >conftest.$ac_ext <<_ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h. */
2312 rm -f conftest.o conftest.obj
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314 (eval $ac_compile) 2>&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; then
2318 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2321 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2326 echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2329 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2330 See \`config.log' for more details." >&5
2331 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2332 See \`config.log' for more details." >&2;}
2333 { (exit 1); exit 1; }; }
2336 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2338 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2339 echo "${ECHO_T}$ac_cv_objext" >&6
2340 OBJEXT=$ac_cv_objext
2342 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2343 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2344 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 cat >conftest.$ac_ext <<_ACEOF
2350 cat confdefs.h >>conftest.$ac_ext
2351 cat >>conftest.$ac_ext <<_ACEOF
2352 /* end confdefs.h. */
2365 rm -f conftest.$ac_objext
2366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367 (eval $ac_compile) 2>conftest.er1
2369 grep -v '^ *+' conftest.er1 >conftest.err
2371 cat conftest.err >&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); } &&
2374 { ac_try='test -z "$ac_c_werror_flag"
2375 || test ! -s conftest.err'
2376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; } &&
2381 { ac_try='test -s conftest.$ac_objext'
2382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; }; then
2389 echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2395 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2398 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2399 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2400 GCC=`test $ac_compiler_gnu = yes && echo yes`
2401 ac_test_CFLAGS=${CFLAGS+set}
2402 ac_save_CFLAGS=$CFLAGS
2404 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2405 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2406 if test "${ac_cv_prog_cc_g+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 cat >conftest.$ac_ext <<_ACEOF
2412 cat confdefs.h >>conftest.$ac_ext
2413 cat >>conftest.$ac_ext <<_ACEOF
2414 /* end confdefs.h. */
2424 rm -f conftest.$ac_objext
2425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2426 (eval $ac_compile) 2>conftest.er1
2428 grep -v '^ *+' conftest.er1 >conftest.err
2430 cat conftest.err >&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
2433 { ac_try='test -z "$ac_c_werror_flag"
2434 || test ! -s conftest.err'
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; } &&
2440 { ac_try='test -s conftest.$ac_objext'
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; }; then
2448 echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2455 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2456 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2457 if test "$ac_test_CFLAGS" = set; then
2458 CFLAGS=$ac_save_CFLAGS
2459 elif test $ac_cv_prog_cc_g = yes; then
2460 if test "$GCC" = yes; then
2466 if test "$GCC" = yes; then
2472 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2473 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2474 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 ac_cv_prog_cc_stdc=no
2479 cat >conftest.$ac_ext <<_ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2487 #include <sys/types.h>
2488 #include <sys/stat.h>
2489 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2490 struct buf { int x; };
2491 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2492 static char *e (p, i)
2498 static char *f (char * (*g) (char **, int), char **p, ...)
2503 s = g (p, va_arg (v,int));
2508 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2509 function prototypes and stuff, but not '\xHH' hex character constants.
2510 These don't provoke an error unfortunately, instead are silently treated
2511 as 'x'. The following induces an error, until -std1 is added to get
2512 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2513 array size at least. It's necessary to write '\x00'==0 to get something
2514 that's true only with -std1. */
2515 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2517 int test (int i, double x);
2518 struct s1 {int (*f) (int a);};
2519 struct s2 {int (*f) (double a);};
2520 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2526 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2531 # Don't try gcc -ansi; that turns off useful extensions and
2532 # breaks some systems' header files.
2533 # AIX -qlanglvl=ansi
2534 # Ultrix and OSF/1 -std1
2535 # HP-UX 10.20 and later -Ae
2536 # HP-UX older versions -Aa -D_HPUX_SOURCE
2537 # SVR4 -Xc -D__EXTENSIONS__
2538 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2540 CC="$ac_save_CC $ac_arg"
2541 rm -f conftest.$ac_objext
2542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543 (eval $ac_compile) 2>conftest.er1
2545 grep -v '^ *+' conftest.er1 >conftest.err
2547 cat conftest.err >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } &&
2550 { ac_try='test -z "$ac_c_werror_flag"
2551 || test ! -s conftest.err'
2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; } &&
2557 { ac_try='test -s conftest.$ac_objext'
2558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; }; then
2563 ac_cv_prog_cc_stdc=$ac_arg
2566 echo "$as_me: failed program was:" >&5
2567 sed 's/^/| /' conftest.$ac_ext >&5
2570 rm -f conftest.err conftest.$ac_objext
2572 rm -f conftest.$ac_ext conftest.$ac_objext
2577 case "x$ac_cv_prog_cc_stdc" in
2579 echo "$as_me:$LINENO: result: none needed" >&5
2580 echo "${ECHO_T}none needed" >&6 ;;
2582 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2583 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2584 CC="$CC $ac_cv_prog_cc_stdc" ;;
2587 # Some people use a C++ compiler to compile C. Since we use `exit',
2588 # in C++ we need to declare it. In case someone uses the same compiler
2589 # for both compiling C and C++ we need to have the C++ compiler decide
2590 # the declaration of exit, since it's the most demanding environment.
2591 cat >conftest.$ac_ext <<_ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598 (eval $ac_compile) 2>conftest.er1
2600 grep -v '^ *+' conftest.er1 >conftest.err
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -z "$ac_c_werror_flag"
2606 || test ! -s conftest.err'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; } &&
2612 { ac_try='test -s conftest.$ac_objext'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2618 for ac_declaration in \
2620 'extern "C" void std::exit (int) throw (); using std::exit;' \
2621 'extern "C" void std::exit (int); using std::exit;' \
2622 'extern "C" void exit (int) throw ();' \
2623 'extern "C" void exit (int);' \
2626 cat >conftest.$ac_ext <<_ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h. */
2642 rm -f conftest.$ac_objext
2643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644 (eval $ac_compile) 2>conftest.er1
2646 grep -v '^ *+' conftest.er1 >conftest.err
2648 cat conftest.err >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } &&
2651 { ac_try='test -z "$ac_c_werror_flag"
2652 || test ! -s conftest.err'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; } &&
2658 { ac_try='test -s conftest.$ac_objext'
2659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; }; then
2666 echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2672 cat >conftest.$ac_ext <<_ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2687 rm -f conftest.$ac_objext
2688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2689 (eval $ac_compile) 2>conftest.er1
2691 grep -v '^ *+' conftest.er1 >conftest.err
2693 cat conftest.err >&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); } &&
2696 { ac_try='test -z "$ac_c_werror_flag"
2697 || test ! -s conftest.err'
2698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; } &&
2703 { ac_try='test -s conftest.$ac_objext'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; }; then
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2718 if test -n "$ac_declaration"; then
2719 echo '#ifdef __cplusplus' >>confdefs.h
2720 echo $ac_declaration >>confdefs.h
2721 echo '#endif' >>confdefs.h
2725 echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2731 ac_cpp='$CPP $CPPFLAGS'
2732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2738 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2739 if test "${ac_cv_c_bigendian+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2742 # See if sys/param.h defines the BYTE_ORDER macro.
2743 cat >conftest.$ac_ext <<_ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2749 #include <sys/types.h>
2750 #include <sys/param.h>
2755 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>conftest.er1
2767 grep -v '^ *+' conftest.er1 >conftest.err
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -z "$ac_c_werror_flag"
2773 || test ! -s conftest.err'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2785 # It does; now see whether it defined to BIG_ENDIAN or not.
2786 cat >conftest.$ac_ext <<_ACEOF
2789 cat confdefs.h >>conftest.$ac_ext
2790 cat >>conftest.$ac_ext <<_ACEOF
2791 /* end confdefs.h. */
2792 #include <sys/types.h>
2793 #include <sys/param.h>
2798 #if BYTE_ORDER != BIG_ENDIAN
2806 rm -f conftest.$ac_objext
2807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2808 (eval $ac_compile) 2>conftest.er1
2810 grep -v '^ *+' conftest.er1 >conftest.err
2812 cat conftest.err >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); } &&
2815 { ac_try='test -z "$ac_c_werror_flag"
2816 || test ! -s conftest.err'
2817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; } &&
2822 { ac_try='test -s conftest.$ac_objext'
2823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; }; then
2828 ac_cv_c_bigendian=yes
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2833 ac_cv_c_bigendian=no
2835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2840 # It does not; compile a test program.
2841 if test "$cross_compiling" = yes; then
2842 # try to guess the endianness by grepping values into an object file
2843 ac_cv_c_bigendian=unknown
2844 cat >conftest.$ac_ext <<_ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h. */
2850 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2851 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2852 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2853 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2854 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2855 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2859 _ascii (); _ebcdic ();
2864 rm -f conftest.$ac_objext
2865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2866 (eval $ac_compile) 2>conftest.er1
2868 grep -v '^ *+' conftest.er1 >conftest.err
2870 cat conftest.err >&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); } &&
2873 { ac_try='test -z "$ac_c_werror_flag"
2874 || test ! -s conftest.err'
2875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; } &&
2880 { ac_try='test -s conftest.$ac_objext'
2881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; }; then
2886 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2887 ac_cv_c_bigendian=yes
2889 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2890 if test "$ac_cv_c_bigendian" = unknown; then
2891 ac_cv_c_bigendian=no
2893 # finding both strings is unlikely to happen, but who knows?
2894 ac_cv_c_bigendian=unknown
2898 echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2904 cat >conftest.$ac_ext <<_ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2913 /* Are we little or big endian? From Harbison&Steele. */
2917 char c[sizeof (long)];
2920 exit (u.c[sizeof (long) - 1] == 1);
2923 rm -f conftest$ac_exeext
2924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2925 (eval $ac_link) 2>&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; }; then
2934 ac_cv_c_bigendian=no
2936 echo "$as_me: program exited with status $ac_status" >&5
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2941 ac_cv_c_bigendian=yes
2943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2948 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2949 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2950 case $ac_cv_c_bigendian in
2958 { { echo "$as_me:$LINENO: error: unknown endianness
2959 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2960 echo "$as_me: error: unknown endianness
2961 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2962 { (exit 1); exit 1; }; } ;;
2967 # Check whether --enable-optimized or --disable-optimized was given.
2968 if test "${enable_optimized+set}" = set; then
2969 enableval="$enable_optimized"
2974 if test ${enableval} = "no" ; then
2978 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2982 # Check whether --enable-jit or --disable-jit was given.
2983 if test "${enable_jit+set}" = set; then
2984 enableval="$enable_jit"
2989 if test ${enableval} = "no"
2994 case "$llvm_cv_target_arch" in
2995 x86) JIT=TARGET_HAS_JIT=1
2997 Sparc) JIT=TARGET_HAS_JIT=1
2999 PowerPC) JIT=TARGET_HAS_JIT=1
3012 # Check whether --enable-doxygen or --disable-doxygen was given.
3013 if test "${enable_doxygen+set}" = set; then
3014 enableval="$enable_doxygen"
3019 case "$enableval" in
3020 yes) ENABLE_DOXYGEN=1
3022 no) ENABLE_DOXYGEN=0
3024 default) ENABLE_DOXYGEN=0
3026 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3027 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3028 { (exit 1); exit 1; }; } ;;
3032 # Check whether --enable-targets or --disable-targets was given.
3033 if test "${enable_targets+set}" = set; then
3034 enableval="$enable_targets"
3039 case "$enableval" in
3040 all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;;
3042 case "$llvm_cv_target_arch" in
3043 x86) TARGETS_TO_BUILD="X86" ;;
3044 x86_64) TARGETS_TO_BUILD="X86" ;;
3045 Sparc) TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3046 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3047 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3048 IA64) TARGETS_TO_BUILD="IA64" ;;
3049 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3050 echo "$as_me: error: Can not set target to build" >&2;}
3051 { (exit 1); exit 1; }; } ;;
3054 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3056 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3057 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3058 sparc) TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;;
3059 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3060 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3061 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3062 skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3063 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3064 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3065 { (exit 1); exit 1; }; } ;;
3070 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3071 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3075 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3076 if test "${with_llvmgccdir+set}" = set; then
3077 withval="$with_llvmgccdir"
3083 default) WITH_LLVMGCCDIR=default ;;
3084 /*) WITH_LLVMGCCDIR=$withval ;;
3085 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3086 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3087 { (exit 1); exit 1; }; } ;;
3093 ac_cpp='$CPP $CPPFLAGS'
3094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3098 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3099 # On Suns, sometimes $CPP names a directory.
3100 if test -n "$CPP" && test -d "$CPP"; then
3103 if test -z "$CPP"; then
3104 if test "${ac_cv_prog_CPP+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 # Double quotes because CPP needs to be expanded
3108 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3111 for ac_c_preproc_warn_flag in '' yes
3113 # Use a header file that comes with gcc, so configuring glibc
3114 # with a fresh cross-compiler works.
3115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3116 # <limits.h> exists even on freestanding compilers.
3117 # On the NeXT, cc -E runs the code through the compiler's parser,
3118 # not just through cpp. "Syntax error" is here to catch this case.
3119 cat >conftest.$ac_ext <<_ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3126 # include <limits.h>
3128 # include <assert.h>
3132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3135 grep -v '^ *+' conftest.er1 >conftest.err
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev/null; then
3140 if test -s conftest.err; then
3141 ac_cpp_err=$ac_c_preproc_warn_flag
3142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3149 if test -z "$ac_cpp_err"; then
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3155 # Broken: fails on valid input.
3158 rm -f conftest.err conftest.$ac_ext
3160 # OK, works on sane cases. Now check whether non-existent headers
3161 # can be detected and how.
3162 cat >conftest.$ac_ext <<_ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3168 #include <ac_nonexistent.h>
3170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3173 grep -v '^ *+' conftest.er1 >conftest.err
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } >/dev/null; then
3178 if test -s conftest.err; then
3179 ac_cpp_err=$ac_c_preproc_warn_flag
3180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3187 if test -z "$ac_cpp_err"; then
3188 # Broken: success on invalid input.
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3194 # Passes both tests.
3198 rm -f conftest.err conftest.$ac_ext
3201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3202 rm -f conftest.err conftest.$ac_ext
3203 if $ac_preproc_ok; then
3215 echo "$as_me:$LINENO: result: $CPP" >&5
3216 echo "${ECHO_T}$CPP" >&6
3218 for ac_c_preproc_warn_flag in '' yes
3220 # Use a header file that comes with gcc, so configuring glibc
3221 # with a fresh cross-compiler works.
3222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3223 # <limits.h> exists even on freestanding compilers.
3224 # On the NeXT, cc -E runs the code through the compiler's parser,
3225 # not just through cpp. "Syntax error" is here to catch this case.
3226 cat >conftest.$ac_ext <<_ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3233 # include <limits.h>
3235 # include <assert.h>
3239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3242 grep -v '^ *+' conftest.er1 >conftest.err
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } >/dev/null; then
3247 if test -s conftest.err; then
3248 ac_cpp_err=$ac_c_preproc_warn_flag
3249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3256 if test -z "$ac_cpp_err"; then
3259 echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3262 # Broken: fails on valid input.
3265 rm -f conftest.err conftest.$ac_ext
3267 # OK, works on sane cases. Now check whether non-existent headers
3268 # can be detected and how.
3269 cat >conftest.$ac_ext <<_ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3275 #include <ac_nonexistent.h>
3277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3280 grep -v '^ *+' conftest.er1 >conftest.err
3282 cat conftest.err >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } >/dev/null; then
3285 if test -s conftest.err; then
3286 ac_cpp_err=$ac_c_preproc_warn_flag
3287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3294 if test -z "$ac_cpp_err"; then
3295 # Broken: success on invalid input.
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3301 # Passes both tests.
3305 rm -f conftest.err conftest.$ac_ext
3308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3309 rm -f conftest.err conftest.$ac_ext
3310 if $ac_preproc_ok; then
3313 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3314 See \`config.log' for more details." >&5
3315 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3316 See \`config.log' for more details." >&2;}
3317 { (exit 1); exit 1; }; }
3321 ac_cpp='$CPP $CPPFLAGS'
3322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327 ac_cpp='$CPP $CPPFLAGS'
3328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3331 if test -n "$ac_tool_prefix"; then
3334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3336 echo "$as_me:$LINENO: checking for $ac_word" >&5
3337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3338 if test "${ac_cv_prog_CC+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 if test -n "$CC"; then
3342 ac_cv_prog_CC="$CC" # Let the user override the test.
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 test -z "$as_dir" && as_dir=.
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3351 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 if test -n "$CC"; then
3362 echo "$as_me:$LINENO: result: $CC" >&5
3363 echo "${ECHO_T}$CC" >&6
3365 echo "$as_me:$LINENO: result: no" >&5
3366 echo "${ECHO_T}no" >&6
3369 test -n "$CC" && break
3372 if test -z "$CC"; then
3376 # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy $ac_prog; ac_word=$2
3378 echo "$as_me:$LINENO: checking for $ac_word" >&5
3379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3380 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 if test -n "$ac_ct_CC"; then
3384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 ac_cv_prog_ac_ct_CC="$ac_prog"
3394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3403 if test -n "$ac_ct_CC"; then
3404 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3405 echo "${ECHO_T}$ac_ct_CC" >&6
3407 echo "$as_me:$LINENO: result: no" >&5
3408 echo "${ECHO_T}no" >&6
3411 test -n "$ac_ct_CC" && break
3418 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3419 See \`config.log' for more details." >&5
3420 echo "$as_me: error: no acceptable C compiler found in \$PATH
3421 See \`config.log' for more details." >&2;}
3422 { (exit 1); exit 1; }; }
3424 # Provide some information about the compiler.
3425 echo "$as_me:$LINENO:" \
3426 "checking for C compiler version" >&5
3427 ac_compiler=`set X $ac_compile; echo $2`
3428 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3429 (eval $ac_compiler --version </dev/null >&5) 2>&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }
3433 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3434 (eval $ac_compiler -v </dev/null >&5) 2>&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }
3438 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3439 (eval $ac_compiler -V </dev/null >&5) 2>&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }
3444 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3445 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3446 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 cat >conftest.$ac_ext <<_ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3467 rm -f conftest.$ac_objext
3468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3469 (eval $ac_compile) 2>conftest.er1
3471 grep -v '^ *+' conftest.er1 >conftest.err
3473 cat conftest.err >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } &&
3476 { ac_try='test -z "$ac_c_werror_flag"
3477 || test ! -s conftest.err'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; } &&
3483 { ac_try='test -s conftest.$ac_objext'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3497 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3500 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3501 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3502 GCC=`test $ac_compiler_gnu = yes && echo yes`
3503 ac_test_CFLAGS=${CFLAGS+set}
3504 ac_save_CFLAGS=$CFLAGS
3506 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3507 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3508 if test "${ac_cv_prog_cc_g+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 cat >conftest.$ac_ext <<_ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3526 rm -f conftest.$ac_objext
3527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3528 (eval $ac_compile) 2>conftest.er1
3530 grep -v '^ *+' conftest.er1 >conftest.err
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try='test -z "$ac_c_werror_flag"
3536 || test ! -s conftest.err'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; } &&
3542 { ac_try='test -s conftest.$ac_objext'
3543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; }; then
3550 echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3557 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3558 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3559 if test "$ac_test_CFLAGS" = set; then
3560 CFLAGS=$ac_save_CFLAGS
3561 elif test $ac_cv_prog_cc_g = yes; then
3562 if test "$GCC" = yes; then
3568 if test "$GCC" = yes; then
3574 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3575 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3576 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 ac_cv_prog_cc_stdc=no
3581 cat >conftest.$ac_ext <<_ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3589 #include <sys/types.h>
3590 #include <sys/stat.h>
3591 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3592 struct buf { int x; };
3593 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3594 static char *e (p, i)
3600 static char *f (char * (*g) (char **, int), char **p, ...)
3605 s = g (p, va_arg (v,int));
3610 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3611 function prototypes and stuff, but not '\xHH' hex character constants.
3612 These don't provoke an error unfortunately, instead are silently treated
3613 as 'x'. The following induces an error, until -std1 is added to get
3614 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3615 array size at least. It's necessary to write '\x00'==0 to get something
3616 that's true only with -std1. */
3617 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3619 int test (int i, double x);
3620 struct s1 {int (*f) (int a);};
3621 struct s2 {int (*f) (double a);};
3622 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3628 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3633 # Don't try gcc -ansi; that turns off useful extensions and
3634 # breaks some systems' header files.
3635 # AIX -qlanglvl=ansi
3636 # Ultrix and OSF/1 -std1
3637 # HP-UX 10.20 and later -Ae
3638 # HP-UX older versions -Aa -D_HPUX_SOURCE
3639 # SVR4 -Xc -D__EXTENSIONS__
3640 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3642 CC="$ac_save_CC $ac_arg"
3643 rm -f conftest.$ac_objext
3644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3645 (eval $ac_compile) 2>conftest.er1
3647 grep -v '^ *+' conftest.er1 >conftest.err
3649 cat conftest.err >&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } &&
3652 { ac_try='test -z "$ac_c_werror_flag"
3653 || test ! -s conftest.err'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; } &&
3659 { ac_try='test -s conftest.$ac_objext'
3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
3665 ac_cv_prog_cc_stdc=$ac_arg
3668 echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3672 rm -f conftest.err conftest.$ac_objext
3674 rm -f conftest.$ac_ext conftest.$ac_objext
3679 case "x$ac_cv_prog_cc_stdc" in
3681 echo "$as_me:$LINENO: result: none needed" >&5
3682 echo "${ECHO_T}none needed" >&6 ;;
3684 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3685 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3686 CC="$CC $ac_cv_prog_cc_stdc" ;;
3689 # Some people use a C++ compiler to compile C. Since we use `exit',
3690 # in C++ we need to declare it. In case someone uses the same compiler
3691 # for both compiling C and C++ we need to have the C++ compiler decide
3692 # the declaration of exit, since it's the most demanding environment.
3693 cat >conftest.$ac_ext <<_ACEOF
3698 rm -f conftest.$ac_objext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700 (eval $ac_compile) 2>conftest.er1
3702 grep -v '^ *+' conftest.er1 >conftest.err
3704 cat conftest.err >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } &&
3707 { ac_try='test -z "$ac_c_werror_flag"
3708 || test ! -s conftest.err'
3709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; } &&
3714 { ac_try='test -s conftest.$ac_objext'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3720 for ac_declaration in \
3722 'extern "C" void std::exit (int) throw (); using std::exit;' \
3723 'extern "C" void std::exit (int); using std::exit;' \
3724 'extern "C" void exit (int) throw ();' \
3725 'extern "C" void exit (int);' \
3728 cat >conftest.$ac_ext <<_ACEOF
3731 cat confdefs.h >>conftest.$ac_ext
3732 cat >>conftest.$ac_ext <<_ACEOF
3733 /* end confdefs.h. */
3744 rm -f conftest.$ac_objext
3745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3746 (eval $ac_compile) 2>conftest.er1
3748 grep -v '^ *+' conftest.er1 >conftest.err
3750 cat conftest.err >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } &&
3753 { ac_try='test -z "$ac_c_werror_flag"
3754 || test ! -s conftest.err'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; } &&
3760 { ac_try='test -s conftest.$ac_objext'
3761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; }; then
3768 echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3774 cat >conftest.$ac_ext <<_ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3789 rm -f conftest.$ac_objext
3790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3791 (eval $ac_compile) 2>conftest.er1
3793 grep -v '^ *+' conftest.er1 >conftest.err
3795 cat conftest.err >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } &&
3798 { ac_try='test -z "$ac_c_werror_flag"
3799 || test ! -s conftest.err'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; } &&
3805 { ac_try='test -s conftest.$ac_objext'
3806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; }; then
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3820 if test -n "$ac_declaration"; then
3821 echo '#ifdef __cplusplus' >>confdefs.h
3822 echo $ac_declaration >>confdefs.h
3823 echo '#endif' >>confdefs.h
3827 echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3833 ac_cpp='$CPP $CPPFLAGS'
3834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3839 ac_cpp='$CXXCPP $CPPFLAGS'
3840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3843 if test -n "$ac_tool_prefix"; then
3844 for ac_prog in $CCC g++
3846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3848 echo "$as_me:$LINENO: checking for $ac_word" >&5
3849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3850 if test "${ac_cv_prog_CXX+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 if test -n "$CXX"; then
3854 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 test -z "$as_dir" && as_dir=.
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3863 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 if test -n "$CXX"; then
3874 echo "$as_me:$LINENO: result: $CXX" >&5
3875 echo "${ECHO_T}$CXX" >&6
3877 echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3881 test -n "$CXX" && break
3884 if test -z "$CXX"; then
3886 for ac_prog in $CCC g++
3888 # Extract the first word of "$ac_prog", so it can be a program name with args.
3889 set dummy $ac_prog; ac_word=$2
3890 echo "$as_me:$LINENO: checking for $ac_word" >&5
3891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3892 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 if test -n "$ac_ct_CXX"; then
3896 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905 ac_cv_prog_ac_ct_CXX="$ac_prog"
3906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3915 if test -n "$ac_ct_CXX"; then
3916 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3917 echo "${ECHO_T}$ac_ct_CXX" >&6
3919 echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3923 test -n "$ac_ct_CXX" && break
3925 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3931 # Provide some information about the compiler.
3932 echo "$as_me:$LINENO:" \
3933 "checking for C++ compiler version" >&5
3934 ac_compiler=`set X $ac_compile; echo $2`
3935 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3936 (eval $ac_compiler --version </dev/null >&5) 2>&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }
3940 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3941 (eval $ac_compiler -v </dev/null >&5) 2>&5
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }
3945 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3946 (eval $ac_compiler -V </dev/null >&5) 2>&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); }
3951 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3952 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3953 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 cat >conftest.$ac_ext <<_ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3974 rm -f conftest.$ac_objext
3975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3976 (eval $ac_compile) 2>conftest.er1
3978 grep -v '^ *+' conftest.er1 >conftest.err
3980 cat conftest.err >&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } &&
3983 { ac_try='test -z "$ac_cxx_werror_flag"
3984 || test ! -s conftest.err'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; } &&
3990 { ac_try='test -s conftest.$ac_objext'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; }; then
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4004 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4007 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4008 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4009 GXX=`test $ac_compiler_gnu = yes && echo yes`
4010 ac_test_CXXFLAGS=${CXXFLAGS+set}
4011 ac_save_CXXFLAGS=$CXXFLAGS
4013 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4014 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4015 if test "${ac_cv_prog_cxx_g+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 cat >conftest.$ac_ext <<_ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4033 rm -f conftest.$ac_objext
4034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>conftest.er1
4037 grep -v '^ *+' conftest.er1 >conftest.err
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_cxx_werror_flag"
4043 || test ! -s conftest.err'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; } &&
4049 { ac_try='test -s conftest.$ac_objext'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
4055 ac_cv_prog_cxx_g=yes
4057 echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4064 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4065 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4066 if test "$ac_test_CXXFLAGS" = set; then
4067 CXXFLAGS=$ac_save_CXXFLAGS
4068 elif test $ac_cv_prog_cxx_g = yes; then
4069 if test "$GXX" = yes; then
4075 if test "$GXX" = yes; then
4081 for ac_declaration in \
4083 'extern "C" void std::exit (int) throw (); using std::exit;' \
4084 'extern "C" void std::exit (int); using std::exit;' \
4085 'extern "C" void exit (int) throw ();' \
4086 'extern "C" void exit (int);' \
4089 cat >conftest.$ac_ext <<_ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4105 rm -f conftest.$ac_objext
4106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4107 (eval $ac_compile) 2>conftest.er1
4109 grep -v '^ *+' conftest.er1 >conftest.err
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } &&
4114 { ac_try='test -z "$ac_cxx_werror_flag"
4115 || test ! -s conftest.err'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; } &&
4121 { ac_try='test -s conftest.$ac_objext'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4129 echo "$as_me: failed program was:" >&5
4130 sed 's/^/| /' conftest.$ac_ext >&5
4134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4135 cat >conftest.$ac_ext <<_ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4150 rm -f conftest.$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>conftest.er1
4154 grep -v '^ *+' conftest.er1 >conftest.err
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_cxx_werror_flag"
4160 || test ! -s conftest.err'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; } &&
4166 { ac_try='test -s conftest.$ac_objext'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
4174 echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4181 if test -n "$ac_declaration"; then
4182 echo '#ifdef __cplusplus' >>confdefs.h
4183 echo $ac_declaration >>confdefs.h
4184 echo '#endif' >>confdefs.h
4188 ac_cpp='$CPP $CPPFLAGS'
4189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193 echo "$as_me:$LINENO: checking " >&5
4194 echo $ECHO_N "checking ... $ECHO_C" >&6
4195 if test "${ac_cv_has_flex+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 for ac_prog in flex lex
4200 # Extract the first word of "$ac_prog", so it can be a program name with args.
4201 set dummy $ac_prog; ac_word=$2
4202 echo "$as_me:$LINENO: checking for $ac_word" >&5
4203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4204 if test "${ac_cv_prog_LEX+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 if test -n "$LEX"; then
4208 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217 ac_cv_prog_LEX="$ac_prog"
4218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 if test -n "$LEX"; then
4228 echo "$as_me:$LINENO: result: $LEX" >&5
4229 echo "${ECHO_T}$LEX" >&6
4231 echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6
4235 test -n "$LEX" && break
4237 test -n "$LEX" || LEX=":"
4239 if test -z "$LEXLIB"
4241 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4242 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4243 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 ac_check_lib_save_LIBS=$LIBS
4248 cat >conftest.$ac_ext <<_ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4255 /* Override any gcc2 internal prototype to avoid an error. */
4259 /* We use char because int might match the return type of a gcc2
4260 builtin and then its argument prototype would still apply. */
4270 rm -f conftest.$ac_objext conftest$ac_exeext
4271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4272 (eval $ac_link) 2>conftest.er1
4274 grep -v '^ *+' conftest.er1 >conftest.err
4276 cat conftest.err >&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } &&
4279 { ac_try='test -z "$ac_c_werror_flag"
4280 || test ! -s conftest.err'
4281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; } &&
4286 { ac_try='test -s conftest$ac_exeext'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4292 ac_cv_lib_fl_yywrap=yes
4294 echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4297 ac_cv_lib_fl_yywrap=no
4299 rm -f conftest.err conftest.$ac_objext \
4300 conftest$ac_exeext conftest.$ac_ext
4301 LIBS=$ac_check_lib_save_LIBS
4303 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4304 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4305 if test $ac_cv_lib_fl_yywrap = yes; then
4308 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4309 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4310 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 ac_check_lib_save_LIBS=$LIBS
4315 cat >conftest.$ac_ext <<_ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h. */
4322 /* Override any gcc2 internal prototype to avoid an error. */
4326 /* We use char because int might match the return type of a gcc2
4327 builtin and then its argument prototype would still apply. */
4337 rm -f conftest.$ac_objext conftest$ac_exeext
4338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4339 (eval $ac_link) 2>conftest.er1
4341 grep -v '^ *+' conftest.er1 >conftest.err
4343 cat conftest.err >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } &&
4346 { ac_try='test -z "$ac_c_werror_flag"
4347 || test ! -s conftest.err'
4348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); }; } &&
4353 { ac_try='test -s conftest$ac_exeext'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; }; then
4359 ac_cv_lib_l_yywrap=yes
4361 echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4364 ac_cv_lib_l_yywrap=no
4366 rm -f conftest.err conftest.$ac_objext \
4367 conftest$ac_exeext conftest.$ac_ext
4368 LIBS=$ac_check_lib_save_LIBS
4370 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4371 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4372 if test $ac_cv_lib_l_yywrap = yes; then
4380 if test "x$LEX" != "x:"; then
4381 echo "$as_me:$LINENO: checking lex output file root" >&5
4382 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4383 if test "${ac_cv_prog_lex_root+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 # The minimal lex program is just a single line: %%. But some broken lexes
4387 # (Solaris, I think it was) want two %% lines, so accommodate them.
4388 cat >conftest.l <<_ACEOF
4392 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4393 (eval $LEX conftest.l) 2>&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }
4397 if test -f lex.yy.c; then
4398 ac_cv_prog_lex_root=lex.yy
4399 elif test -f lexyy.c; then
4400 ac_cv_prog_lex_root=lexyy
4402 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4403 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4404 { (exit 1); exit 1; }; }
4407 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4408 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4410 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4412 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4413 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4414 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 # POSIX says lex can declare yytext either as a pointer or an array; the
4418 # default is implementation-dependent. Figure out which it is, since
4419 # not all implementations provide the %pointer and %array declarations.
4420 ac_cv_prog_lex_yytext_pointer=no
4421 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4423 LIBS="$LIBS $LEXLIB"
4424 cat >conftest.$ac_ext <<_ACEOF
4425 `cat $LEX_OUTPUT_ROOT.c`
4427 rm -f conftest.$ac_objext conftest$ac_exeext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4429 (eval $ac_link) 2>conftest.er1
4431 grep -v '^ *+' conftest.er1 >conftest.err
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -z "$ac_c_werror_flag"
4437 || test ! -s conftest.err'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; } &&
4443 { ac_try='test -s conftest$ac_exeext'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
4449 ac_cv_prog_lex_yytext_pointer=yes
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4455 rm -f conftest.err conftest.$ac_objext \
4456 conftest$ac_exeext conftest.$ac_ext
4458 rm -f "${LEX_OUTPUT_ROOT}.c"
4461 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4462 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4463 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4465 cat >>confdefs.h <<\_ACEOF
4466 #define YYTEXT_POINTER 1
4474 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4475 echo "${ECHO_T}$ac_cv_has_flex" >&6
4476 if test "$LEX" != "flex"; then
4477 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4478 echo "$as_me: error: flex not found but required" >&2;}
4479 { (exit 1); exit 1; }; }
4485 echo "$as_me:$LINENO: checking " >&5
4486 echo $ECHO_N "checking ... $ECHO_C" >&6
4487 if test "${llvm_cv_has_bison+set}" = set; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 for ac_prog in 'bison -y' byacc
4492 # Extract the first word of "$ac_prog", so it can be a program name with args.
4493 set dummy $ac_prog; ac_word=$2
4494 echo "$as_me:$LINENO: checking for $ac_word" >&5
4495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4496 if test "${ac_cv_prog_YACC+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 if test -n "$YACC"; then
4500 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4509 ac_cv_prog_YACC="$ac_prog"
4510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 YACC=$ac_cv_prog_YACC
4519 if test -n "$YACC"; then
4520 echo "$as_me:$LINENO: result: $YACC" >&5
4521 echo "${ECHO_T}$YACC" >&6
4523 echo "$as_me:$LINENO: result: no" >&5
4524 echo "${ECHO_T}no" >&6
4527 test -n "$YACC" && break
4529 test -n "$YACC" || YACC="yacc"
4532 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4533 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4534 if test "$YACC" != "bison -y"; then
4535 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4536 echo "$as_me: error: bison not found but required" >&2;}
4537 { (exit 1); exit 1; }; }
4543 echo "$as_me:$LINENO: checking for GNU make" >&5
4544 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4545 if test "${llvm_cv_gnu_make_command+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 llvm_cv_gnu_make_command=''
4549 for a in "$MAKE" make gmake gnumake ; do
4550 if test -z "$a" ; then continue ; fi ;
4551 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4553 llvm_cv_gnu_make_command=$a ;
4558 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4559 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4560 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4564 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4565 echo "${ECHO_T}\"Not found\"" >&6;
4569 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4570 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4572 if test "$LN_S" = "ln -s"; then
4573 echo "$as_me:$LINENO: result: yes" >&5
4574 echo "${ECHO_T}yes" >&6
4576 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4577 echo "${ECHO_T}no, using $LN_S" >&6
4580 # Extract the first word of "cmp", so it can be a program name with args.
4581 set dummy cmp; ac_word=$2
4582 echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4584 if test "${ac_cv_path_CMP+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4612 if test -n "$CMP"; then
4613 echo "$as_me:$LINENO: result: $CMP" >&5
4614 echo "${ECHO_T}$CMP" >&6
4616 echo "$as_me:$LINENO: result: no" >&5
4617 echo "${ECHO_T}no" >&6
4620 # Extract the first word of "cp", so it can be a program name with args.
4621 set dummy cp; ac_word=$2
4622 echo "$as_me:$LINENO: checking for $ac_word" >&5
4623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4624 if test "${ac_cv_path_CP+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4639 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4652 if test -n "$CP"; then
4653 echo "$as_me:$LINENO: result: $CP" >&5
4654 echo "${ECHO_T}$CP" >&6
4656 echo "$as_me:$LINENO: result: no" >&5
4657 echo "${ECHO_T}no" >&6
4660 # Extract the first word of "date", so it can be a program name with args.
4661 set dummy date; ac_word=$2
4662 echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4664 if test "${ac_cv_path_DATE+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4679 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4690 DATE=$ac_cv_path_DATE
4692 if test -n "$DATE"; then
4693 echo "$as_me:$LINENO: result: $DATE" >&5
4694 echo "${ECHO_T}$DATE" >&6
4696 echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6
4700 # Extract the first word of "find", so it can be a program name with args.
4701 set dummy find; ac_word=$2
4702 echo "$as_me:$LINENO: checking for $ac_word" >&5
4703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4704 if test "${ac_cv_path_FIND+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 test -z "$as_dir" && as_dir=.
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4719 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4730 FIND=$ac_cv_path_FIND
4732 if test -n "$FIND"; then
4733 echo "$as_me:$LINENO: result: $FIND" >&5
4734 echo "${ECHO_T}$FIND" >&6
4736 echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6
4740 # Extract the first word of "grep", so it can be a program name with args.
4741 set dummy grep; ac_word=$2
4742 echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4744 if test "${ac_cv_path_GREP+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4770 GREP=$ac_cv_path_GREP
4772 if test -n "$GREP"; then
4773 echo "$as_me:$LINENO: result: $GREP" >&5
4774 echo "${ECHO_T}$GREP" >&6
4776 echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6
4780 # Extract the first word of "mkdir", so it can be a program name with args.
4781 set dummy mkdir; ac_word=$2
4782 echo "$as_me:$LINENO: checking for $ac_word" >&5
4783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4784 if test "${ac_cv_path_MKDIR+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4810 MKDIR=$ac_cv_path_MKDIR
4812 if test -n "$MKDIR"; then
4813 echo "$as_me:$LINENO: result: $MKDIR" >&5
4814 echo "${ECHO_T}$MKDIR" >&6
4816 echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6
4820 # Extract the first word of "mv", so it can be a program name with args.
4821 set dummy mv; ac_word=$2
4822 echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4824 if test "${ac_cv_path_MV+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4839 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4852 if test -n "$MV"; then
4853 echo "$as_me:$LINENO: result: $MV" >&5
4854 echo "${ECHO_T}$MV" >&6
4856 echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6
4860 if test -n "$ac_tool_prefix"; then
4861 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4862 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4863 echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4865 if test "${ac_cv_prog_RANLIB+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 if test -n "$RANLIB"; then
4869 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 test -z "$as_dir" && as_dir=.
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4878 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 RANLIB=$ac_cv_prog_RANLIB
4888 if test -n "$RANLIB"; then
4889 echo "$as_me:$LINENO: result: $RANLIB" >&5
4890 echo "${ECHO_T}$RANLIB" >&6
4892 echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6
4897 if test -z "$ac_cv_prog_RANLIB"; then
4898 ac_ct_RANLIB=$RANLIB
4899 # Extract the first word of "ranlib", so it can be a program name with args.
4900 set dummy ranlib; ac_word=$2
4901 echo "$as_me:$LINENO: checking for $ac_word" >&5
4902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4903 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 if test -n "$ac_ct_RANLIB"; then
4907 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916 ac_cv_prog_ac_ct_RANLIB="ranlib"
4917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4926 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4927 if test -n "$ac_ct_RANLIB"; then
4928 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4929 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4931 echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6
4935 RANLIB=$ac_ct_RANLIB
4937 RANLIB="$ac_cv_prog_RANLIB"
4940 # Extract the first word of "rm", so it can be a program name with args.
4941 set dummy rm; ac_word=$2
4942 echo "$as_me:$LINENO: checking for $ac_word" >&5
4943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4944 if test "${ac_cv_path_RM+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4959 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4972 if test -n "$RM"; then
4973 echo "$as_me:$LINENO: result: $RM" >&5
4974 echo "${ECHO_T}$RM" >&6
4976 echo "$as_me:$LINENO: result: no" >&5
4977 echo "${ECHO_T}no" >&6
4980 # Extract the first word of "sed", so it can be a program name with args.
4981 set dummy sed; ac_word=$2
4982 echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4984 if test "${ac_cv_path_SED+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4999 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5012 if test -n "$SED"; then
5013 echo "$as_me:$LINENO: result: $SED" >&5
5014 echo "${ECHO_T}$SED" >&6
5016 echo "$as_me:$LINENO: result: no" >&5
5017 echo "${ECHO_T}no" >&6
5020 # Extract the first word of "tar", so it can be a program name with args.
5021 set dummy tar; ac_word=$2
5022 echo "$as_me:$LINENO: checking for $ac_word" >&5
5023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5024 if test "${ac_cv_path_TAR+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5052 if test -n "$TAR"; then
5053 echo "$as_me:$LINENO: result: $TAR" >&5
5054 echo "${ECHO_T}$TAR" >&6
5056 echo "$as_me:$LINENO: result: no" >&5
5057 echo "${ECHO_T}no" >&6
5061 # Find a good install program. We prefer a C program (faster),
5062 # so one script is as good as another. But avoid the broken or
5063 # incompatible versions:
5064 # SysV /etc/install, /usr/sbin/install
5065 # SunOS /usr/etc/install
5066 # IRIX /sbin/install
5068 # AmigaOS /C/install, which installs bootblocks on floppy discs
5069 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5070 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5071 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5072 # OS/2's system install, which has a completely different semantic
5073 # ./install, which can be erroneously created by make from ./install.sh.
5074 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5075 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5076 if test -z "$INSTALL"; then
5077 if test "${ac_cv_path_install+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 test -z "$as_dir" && as_dir=.
5085 # Account for people who put trailing slashes in PATH elements.
5087 ./ | .// | /cC/* | \
5088 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5089 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5092 # OSF1 and SCO ODT 3.0 have their own names for install.
5093 # Don't use installbsd from OSF since it installs stuff as root
5095 for ac_prog in ginstall scoinst install; do
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5098 if test $ac_prog = install &&
5099 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5100 # AIX install. It has an incompatible calling convention.
5102 elif test $ac_prog = install &&
5103 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5104 # program-specific install script used by HP pwplus--don't use.
5107 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5119 if test "${ac_cv_path_install+set}" = set; then
5120 INSTALL=$ac_cv_path_install
5122 # As a last resort, use the slow shell script. We don't cache a
5123 # path for INSTALL within a source directory, because that will
5124 # break other packages using the cache if that directory is
5125 # removed, or if the path is relative.
5126 INSTALL=$ac_install_sh
5129 echo "$as_me:$LINENO: result: $INSTALL" >&5
5130 echo "${ECHO_T}$INSTALL" >&6
5132 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5133 # It thinks the first close brace ends the variable substitution.
5134 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5136 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5138 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5141 # Extract the first word of "bzip2", so it can be a program name with args.
5142 set dummy bzip2; ac_word=$2
5143 echo "$as_me:$LINENO: checking for $ac_word" >&5
5144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5145 if test "${ac_cv_path_BZIP2+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5171 BZIP2=$ac_cv_path_BZIP2
5173 if test -n "$BZIP2"; then
5174 echo "$as_me:$LINENO: result: $BZIP2" >&5
5175 echo "${ECHO_T}$BZIP2" >&6
5177 echo "$as_me:$LINENO: result: no" >&5
5178 echo "${ECHO_T}no" >&6
5181 # Extract the first word of "dot", so it can be a program name with args.
5182 set dummy dot; ac_word=$2
5183 echo "$as_me:$LINENO: checking for $ac_word" >&5
5184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5185 if test "${ac_cv_path_DOT+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5213 if test -n "$DOT"; then
5214 echo "$as_me:$LINENO: result: $DOT" >&5
5215 echo "${ECHO_T}$DOT" >&6
5217 echo "$as_me:$LINENO: result: no" >&5
5218 echo "${ECHO_T}no" >&6
5221 # Extract the first word of "doxygen", so it can be a program name with args.
5222 set dummy doxygen; ac_word=$2
5223 echo "$as_me:$LINENO: checking for $ac_word" >&5
5224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5225 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5240 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5251 DOXYGEN=$ac_cv_path_DOXYGEN
5253 if test -n "$DOXYGEN"; then
5254 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5255 echo "${ECHO_T}$DOXYGEN" >&6
5257 echo "$as_me:$LINENO: result: no" >&5
5258 echo "${ECHO_T}no" >&6
5261 # Extract the first word of "etags", so it can be a program name with args.
5262 set dummy etags; ac_word=$2
5263 echo "$as_me:$LINENO: checking for $ac_word" >&5
5264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5265 if test "${ac_cv_path_ETAGS+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5280 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5291 ETAGS=$ac_cv_path_ETAGS
5293 if test -n "$ETAGS"; then
5294 echo "$as_me:$LINENO: result: $ETAGS" >&5
5295 echo "${ECHO_T}$ETAGS" >&6
5297 echo "$as_me:$LINENO: result: no" >&5
5298 echo "${ECHO_T}no" >&6
5301 # Extract the first word of "groff", so it can be a program name with args.
5302 set dummy groff; ac_word=$2
5303 echo "$as_me:$LINENO: checking for $ac_word" >&5
5304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5305 if test "${ac_cv_path_GROFF+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 test -z "$as_dir" && as_dir=.
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5320 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5331 GROFF=$ac_cv_path_GROFF
5333 if test -n "$GROFF"; then
5334 echo "$as_me:$LINENO: result: $GROFF" >&5
5335 echo "${ECHO_T}$GROFF" >&6
5337 echo "$as_me:$LINENO: result: no" >&5
5338 echo "${ECHO_T}no" >&6
5341 # Extract the first word of "gzip", so it can be a program name with args.
5342 set dummy gzip; ac_word=$2
5343 echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5345 if test "${ac_cv_path_GZIP+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5371 GZIP=$ac_cv_path_GZIP
5373 if test -n "$GZIP"; then
5374 echo "$as_me:$LINENO: result: $GZIP" >&5
5375 echo "${ECHO_T}$GZIP" >&6
5377 echo "$as_me:$LINENO: result: no" >&5
5378 echo "${ECHO_T}no" >&6
5381 # Extract the first word of "pod2html", so it can be a program name with args.
5382 set dummy pod2html; ac_word=$2
5383 echo "$as_me:$LINENO: checking for $ac_word" >&5
5384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5385 if test "${ac_cv_path_POD2HTML+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5411 POD2HTML=$ac_cv_path_POD2HTML
5413 if test -n "$POD2HTML"; then
5414 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5415 echo "${ECHO_T}$POD2HTML" >&6
5417 echo "$as_me:$LINENO: result: no" >&5
5418 echo "${ECHO_T}no" >&6
5421 # Extract the first word of "pod2man", so it can be a program name with args.
5422 set dummy pod2man; ac_word=$2
5423 echo "$as_me:$LINENO: checking for $ac_word" >&5
5424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5425 if test "${ac_cv_path_POD2MAN+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5451 POD2MAN=$ac_cv_path_POD2MAN
5453 if test -n "$POD2MAN"; then
5454 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5455 echo "${ECHO_T}$POD2MAN" >&6
5457 echo "$as_me:$LINENO: result: no" >&5
5458 echo "${ECHO_T}no" >&6
5461 # Extract the first word of "runtest", so it can be a program name with args.
5462 set dummy runtest; ac_word=$2
5463 echo "$as_me:$LINENO: checking for $ac_word" >&5
5464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5465 if test "${ac_cv_path_RUNTEST+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5470 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5480 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5491 RUNTEST=$ac_cv_path_RUNTEST
5493 if test -n "$RUNTEST"; then
5494 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5495 echo "${ECHO_T}$RUNTEST" >&6
5497 echo "$as_me:$LINENO: result: no" >&5
5498 echo "${ECHO_T}no" >&6
5503 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5504 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5506 # Check whether --with-tclinclude or --without-tclinclude was given.
5507 if test "${with_tclinclude+set}" = set; then
5508 withval="$with_tclinclude"
5509 with_tclinclude=${withval}
5513 if test "${ac_cv_path_tclsh+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 if test x"${with_tclinclude}" != x ; then
5518 if test -f ${with_tclinclude}/tclsh ; then
5519 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5520 elif test -f ${with_tclinclude}/src/tclsh ; then
5521 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5523 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5524 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5525 { (exit 1); exit 1; }; }
5529 if test x"${ac_cv_path_tclsh}" = x ; then
5530 echo "$as_me:$LINENO: result: none" >&5
5531 echo "${ECHO_T}none" >&6
5532 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
5534 # Extract the first word of "$ac_prog", so it can be a program name with args.
5535 set dummy $ac_prog; ac_word=$2
5536 echo "$as_me:$LINENO: checking for $ac_word" >&5
5537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5538 if test "${ac_cv_path_TCLSH+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 test -z "$as_dir" && as_dir=.
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5553 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 TCLSH=$ac_cv_path_TCLSH
5565 if test -n "$TCLSH"; then
5566 echo "$as_me:$LINENO: result: $TCLSH" >&5
5567 echo "${ECHO_T}$TCLSH" >&6
5569 echo "$as_me:$LINENO: result: no" >&5
5570 echo "${ECHO_T}no" >&6
5573 test -n "$TCLSH" && break
5576 if test x"${TCLSH}" = x ; then
5577 ac_cv_path_tclsh='';
5579 ac_cv_path_tclsh="${TCLSH}";
5582 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5583 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5584 TCLSH="${ac_cv_path_tclsh}"
5590 # Extract the first word of "zip", so it can be a program name with args.
5591 set dummy zip; ac_word=$2
5592 echo "$as_me:$LINENO: checking for $ac_word" >&5
5593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5594 if test "${ac_cv_path_ZIP+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5599 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5609 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5616 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5622 if test -n "$ZIP"; then
5623 echo "$as_me:$LINENO: result: $ZIP" >&5
5624 echo "${ECHO_T}$ZIP" >&6
5626 echo "$as_me:$LINENO: result: no" >&5
5627 echo "${ECHO_T}no" >&6
5631 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5632 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5633 if test "${llvm_cv_link_use_r+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 ac_cpp='$CPP $CPPFLAGS'
5638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5643 CFLAGS="$CFLAGS -Wl,-R."
5644 cat >conftest.$ac_ext <<_ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5654 int main() { return 0; }
5659 rm -f conftest.$ac_objext conftest$ac_exeext
5660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5661 (eval $ac_link) 2>conftest.er1
5663 grep -v '^ *+' conftest.er1 >conftest.err
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } &&
5668 { ac_try='test -z "$ac_c_werror_flag"
5669 || test ! -s conftest.err'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; } &&
5675 { ac_try='test -s conftest$ac_exeext'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; }; then
5681 llvm_cv_link_use_r=yes
5683 echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5686 llvm_cv_link_use_r=no
5688 rm -f conftest.err conftest.$ac_objext \
5689 conftest$ac_exeext conftest.$ac_ext
5692 ac_cpp='$CPP $CPPFLAGS'
5693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5699 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5700 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5701 if test "$llvm_cv_link_use_r" = yes ; then
5703 cat >>confdefs.h <<\_ACEOF
5704 #define HAVE_LINK_R 1
5712 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5713 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5714 if test "${ac_cv_c_const+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 cat >conftest.$ac_ext <<_ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h. */
5727 /* FIXME: Include the comments suggested by Paul. */
5729 /* Ultrix mips cc rejects this. */
5730 typedef int charset[2];
5732 /* SunOS 4.1.1 cc rejects this. */
5733 char const *const *ccp;
5735 /* NEC SVR4.0.2 mips cc rejects this. */
5736 struct point {int x, y;};
5737 static struct point const zero = {0,0};
5738 /* AIX XL C 1.02.0.0 rejects this.
5739 It does not let you subtract one const X* pointer from another in
5740 an arm of an if-expression whose if-part is not a constant
5742 const char *g = "string";
5743 ccp = &g + (g ? g-g : 0);
5744 /* HPUX 7.0 cc rejects these. */
5747 ccp = (char const *const *) p;
5748 { /* SCO 3.2v4 cc rejects this. */
5750 char const *s = 0 ? (char *) 0 : (char const *) 0;
5754 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5756 const int *foo = &x[0];
5759 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5760 typedef const int *iptr;
5764 { /* AIX XL C 1.02.0.0 rejects this saying
5765 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5766 struct s { int j; const int *ap[3]; };
5767 struct s *b; b->j = 5;
5769 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5778 rm -f conftest.$ac_objext
5779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5780 (eval $ac_compile) 2>conftest.er1
5782 grep -v '^ *+' conftest.er1 >conftest.err
5784 cat conftest.err >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } &&
5787 { ac_try='test -z "$ac_c_werror_flag"
5788 || test ! -s conftest.err'
5789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; } &&
5794 { ac_try='test -s conftest.$ac_objext'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; }; then
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5809 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5810 echo "${ECHO_T}$ac_cv_c_const" >&6
5811 if test $ac_cv_c_const = no; then
5813 cat >>confdefs.h <<\_ACEOF
5820 echo "$as_me:$LINENO: checking for egrep" >&5
5821 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5822 if test "${ac_cv_prog_egrep+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5826 then ac_cv_prog_egrep='grep -E'
5827 else ac_cv_prog_egrep='egrep'
5830 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5831 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5832 EGREP=$ac_cv_prog_egrep
5835 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5836 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5837 if test "${ac_cv_header_stdc+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 cat >conftest.$ac_ext <<_ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5859 rm -f conftest.$ac_objext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861 (eval $ac_compile) 2>conftest.er1
5863 grep -v '^ *+' conftest.er1 >conftest.err
5865 cat conftest.err >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try='test -z "$ac_c_werror_flag"
5869 || test ! -s conftest.err'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; } &&
5875 { ac_try='test -s conftest.$ac_objext'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; }; then
5881 ac_cv_header_stdc=yes
5883 echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5886 ac_cv_header_stdc=no
5888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5890 if test $ac_cv_header_stdc = yes; then
5891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5892 cat >conftest.$ac_ext <<_ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5902 $EGREP "memchr" >/dev/null 2>&1; then
5905 ac_cv_header_stdc=no
5911 if test $ac_cv_header_stdc = yes; then
5912 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5913 cat >conftest.$ac_ext <<_ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5923 $EGREP "free" >/dev/null 2>&1; then
5926 ac_cv_header_stdc=no
5932 if test $ac_cv_header_stdc = yes; then
5933 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5934 if test "$cross_compiling" = yes; then
5937 cat >conftest.$ac_ext <<_ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h. */
5944 #if ((' ' & 0x0FF) == 0x020)
5945 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5946 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5948 # define ISLOWER(c) \
5949 (('a' <= (c) && (c) <= 'i') \
5950 || ('j' <= (c) && (c) <= 'r') \
5951 || ('s' <= (c) && (c) <= 'z'))
5952 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5955 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5960 for (i = 0; i < 256; i++)
5961 if (XOR (islower (i), ISLOWER (i))
5962 || toupper (i) != TOUPPER (i))
5967 rm -f conftest$ac_exeext
5968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5969 (eval $ac_link) 2>&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; }; then
5980 echo "$as_me: program exited with status $ac_status" >&5
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5985 ac_cv_header_stdc=no
5987 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5991 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5992 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5993 if test $ac_cv_header_stdc = yes; then
5995 cat >>confdefs.h <<\_ACEOF
5996 #define STDC_HEADERS 1
6007 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6008 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6009 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6010 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 cat >conftest.$ac_ext <<_ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6020 #include <sys/types.h>
6032 rm -f conftest.$ac_objext
6033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6034 (eval $ac_compile) 2>conftest.er1
6036 grep -v '^ *+' conftest.er1 >conftest.err
6038 cat conftest.err >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } &&
6041 { ac_try='test -z "$ac_c_werror_flag"
6042 || test ! -s conftest.err'
6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; } &&
6048 { ac_try='test -s conftest.$ac_objext'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; }; then
6054 eval "$as_ac_Header=yes"
6056 echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.$ac_ext >&5
6059 eval "$as_ac_Header=no"
6061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6066 cat >>confdefs.h <<_ACEOF
6067 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6070 ac_header_dirent=$ac_hdr; break
6074 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6075 if test $ac_header_dirent = dirent.h; then
6076 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6077 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6078 if test "${ac_cv_search_opendir+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 ac_func_search_save_LIBS=$LIBS
6082 ac_cv_search_opendir=no
6083 cat >conftest.$ac_ext <<_ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h. */
6090 /* Override any gcc2 internal prototype to avoid an error. */
6094 /* We use char because int might match the return type of a gcc2
6095 builtin and then its argument prototype would still apply. */
6105 rm -f conftest.$ac_objext conftest$ac_exeext
6106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6107 (eval $ac_link) 2>conftest.er1
6109 grep -v '^ *+' conftest.er1 >conftest.err
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -z "$ac_c_werror_flag"
6115 || test ! -s conftest.err'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; } &&
6121 { ac_try='test -s conftest$ac_exeext'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 ac_cv_search_opendir="none required"
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6133 rm -f conftest.err conftest.$ac_objext \
6134 conftest$ac_exeext conftest.$ac_ext
6135 if test "$ac_cv_search_opendir" = no; then
6136 for ac_lib in dir; do
6137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6138 cat >conftest.$ac_ext <<_ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6145 /* Override any gcc2 internal prototype to avoid an error. */
6149 /* We use char because int might match the return type of a gcc2
6150 builtin and then its argument prototype would still apply. */
6160 rm -f conftest.$ac_objext conftest$ac_exeext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6162 (eval $ac_link) 2>conftest.er1
6164 grep -v '^ *+' conftest.er1 >conftest.err
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try='test -z "$ac_c_werror_flag"
6170 || test ! -s conftest.err'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; } &&
6176 { ac_try='test -s conftest$ac_exeext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 ac_cv_search_opendir="-l$ac_lib"
6185 echo "$as_me: failed program was:" >&5
6186 sed 's/^/| /' conftest.$ac_ext >&5
6189 rm -f conftest.err conftest.$ac_objext \
6190 conftest$ac_exeext conftest.$ac_ext
6193 LIBS=$ac_func_search_save_LIBS
6195 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6196 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6197 if test "$ac_cv_search_opendir" != no; then
6198 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6203 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6204 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6205 if test "${ac_cv_search_opendir+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 ac_func_search_save_LIBS=$LIBS
6209 ac_cv_search_opendir=no
6210 cat >conftest.$ac_ext <<_ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h. */
6217 /* Override any gcc2 internal prototype to avoid an error. */
6221 /* We use char because int might match the return type of a gcc2
6222 builtin and then its argument prototype would still apply. */
6232 rm -f conftest.$ac_objext conftest$ac_exeext
6233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6234 (eval $ac_link) 2>conftest.er1
6236 grep -v '^ *+' conftest.er1 >conftest.err
6238 cat conftest.err >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } &&
6241 { ac_try='test -z "$ac_c_werror_flag"
6242 || test ! -s conftest.err'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; } &&
6248 { ac_try='test -s conftest$ac_exeext'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6254 ac_cv_search_opendir="none required"
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6260 rm -f conftest.err conftest.$ac_objext \
6261 conftest$ac_exeext conftest.$ac_ext
6262 if test "$ac_cv_search_opendir" = no; then
6264 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6265 cat >conftest.$ac_ext <<_ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h. */
6272 /* Override any gcc2 internal prototype to avoid an error. */
6276 /* We use char because int might match the return type of a gcc2
6277 builtin and then its argument prototype would still apply. */
6287 rm -f conftest.$ac_objext conftest$ac_exeext
6288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6289 (eval $ac_link) 2>conftest.er1
6291 grep -v '^ *+' conftest.er1 >conftest.err
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } &&
6296 { ac_try='test -z "$ac_c_werror_flag"
6297 || test ! -s conftest.err'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; } &&
6303 { ac_try='test -s conftest$ac_exeext'
6304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; }; then
6309 ac_cv_search_opendir="-l$ac_lib"
6312 echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.$ac_ext >&5
6316 rm -f conftest.err conftest.$ac_objext \
6317 conftest$ac_exeext conftest.$ac_ext
6320 LIBS=$ac_func_search_save_LIBS
6322 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6323 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6324 if test "$ac_cv_search_opendir" != no; then
6325 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6331 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6341 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6342 inttypes.h stdint.h unistd.h
6344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6345 echo "$as_me:$LINENO: checking for $ac_header" >&5
6346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 cat >conftest.$ac_ext <<_ACEOF
6353 cat confdefs.h >>conftest.$ac_ext
6354 cat >>conftest.$ac_ext <<_ACEOF
6355 /* end confdefs.h. */
6356 $ac_includes_default
6358 #include <$ac_header>
6360 rm -f conftest.$ac_objext
6361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6362 (eval $ac_compile) 2>conftest.er1
6364 grep -v '^ *+' conftest.er1 >conftest.err
6366 cat conftest.err >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } &&
6369 { ac_try='test -z "$ac_c_werror_flag"
6370 || test ! -s conftest.err'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; } &&
6376 { ac_try='test -s conftest.$ac_objext'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; }; then
6382 eval "$as_ac_Header=yes"
6384 echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6387 eval "$as_ac_Header=no"
6389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6394 cat >>confdefs.h <<_ACEOF
6395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6404 for ac_header in dlfcn.h
6406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408 echo "$as_me:$LINENO: checking for $ac_header" >&5
6409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6416 # Is the header compilable?
6417 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6419 cat >conftest.$ac_ext <<_ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6425 $ac_includes_default
6426 #include <$ac_header>
6428 rm -f conftest.$ac_objext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>conftest.er1
6432 grep -v '^ *+' conftest.er1 >conftest.err
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try='test -z "$ac_c_werror_flag"
6438 || test ! -s conftest.err'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try='test -s conftest.$ac_objext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_header_compiler=yes
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6455 ac_header_compiler=no
6457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6459 echo "${ECHO_T}$ac_header_compiler" >&6
6461 # Is the header present?
6462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6464 cat >conftest.$ac_ext <<_ACEOF
6467 cat confdefs.h >>conftest.$ac_ext
6468 cat >>conftest.$ac_ext <<_ACEOF
6469 /* end confdefs.h. */
6470 #include <$ac_header>
6472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6475 grep -v '^ *+' conftest.er1 >conftest.err
6477 cat conftest.err >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } >/dev/null; then
6480 if test -s conftest.err; then
6481 ac_cpp_err=$ac_c_preproc_warn_flag
6482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6489 if test -z "$ac_cpp_err"; then
6490 ac_header_preproc=yes
6492 echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6495 ac_header_preproc=no
6497 rm -f conftest.err conftest.$ac_ext
6498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6499 echo "${ECHO_T}$ac_header_preproc" >&6
6501 # So? What about this header?
6502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6508 ac_header_preproc=yes
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6525 ## ----------------------------------- ##
6526 ## Report this to llvmbugs@cs.uiuc.edu ##
6527 ## ----------------------------------- ##
6530 sed "s/^/$as_me: WARNING: /" >&2
6533 echo "$as_me:$LINENO: checking for $ac_header" >&5
6534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 eval "$as_ac_Header=\$ac_header_preproc"
6540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6545 cat >>confdefs.h <<_ACEOF
6546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6553 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6554 if test "${enable_ltdl_install+set}" = set; then
6555 enableval="$enable_ltdl_install"
6561 if test x"${enable_ltdl_install-no}" != xno; then
6563 INSTALL_LTDL_FALSE='#'
6565 INSTALL_LTDL_TRUE='#'
6571 if test x"${enable_ltdl_convenience-no}" != xno; then
6572 CONVENIENCE_LTDL_TRUE=
6573 CONVENIENCE_LTDL_FALSE='#'
6575 CONVENIENCE_LTDL_TRUE='#'
6576 CONVENIENCE_LTDL_FALSE=
6580 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6581 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6583 libname_spec='lib$name'
6591 shlibpath_overrides_runpath=unknown
6593 dynamic_linker="$host_os ld.so"
6594 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6595 if test "$GCC" = yes; then
6596 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6597 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6598 # if the path contains ";" then we assume it to be the separator
6599 # otherwise default to the standard path separator (i.e. ":") - it is
6600 # assumed that no part of a normal pathname contains ";" but that should
6601 # okay in the real world where ";" in dirpaths is itself problematic.
6602 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6604 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6607 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6609 need_lib_prefix=unknown
6610 hardcode_into_libs=no
6612 # when you set need_version to no, make sure it does not cause -set_version
6613 # flags to be left without arguments
6614 need_version=unknown
6619 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6620 shlibpath_var=LIBPATH
6622 # AIX 3 has no versioning support, so we append a major version to the name.
6623 soname_spec='${libname}${release}${shared_ext}$major'
6630 hardcode_into_libs=yes
6631 if test "$host_cpu" = ia64; then
6632 # AIX 5 supports IA64
6633 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6634 shlibpath_var=LD_LIBRARY_PATH
6636 # With GCC up to 2.95.x, collect2 would create an import file
6637 # for dependence libraries. The import file would start with
6638 # the line `#! .'. This would cause the generated library to
6639 # depend on `.', always an invalid library. This was fixed in
6640 # development snapshots of GCC prior to 3.0.
6642 aix4 | aix4.[01] | aix4.[01].*)
6643 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6645 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6652 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6653 # soname into executable. Probably we can add versioning support to
6654 # collect2, so additional links can be useful in future.
6655 if test "$aix_use_runtimelinking" = yes; then
6656 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6657 # instead of lib<name>.a to let people know that these are not
6658 # typical AIX shared libraries.
6659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6661 # We preserve .a as extension for shared libraries through AIX4.2
6662 # and later when we are not doing run time linking.
6663 library_names_spec='${libname}${release}.a $libname.a'
6664 soname_spec='${libname}${release}${shared_ext}$major'
6666 shlibpath_var=LIBPATH
6671 library_names_spec='$libname.ixlibrary $libname.a'
6672 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6673 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'
6677 library_names_spec='${libname}${shared_ext}'
6678 dynamic_linker="$host_os ld.so"
6679 shlibpath_var=LIBRARY_PATH
6685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6686 soname_spec='${libname}${release}${shared_ext}$major'
6687 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6688 shlibpath_var=LD_LIBRARY_PATH
6689 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6690 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6691 # the default ld.so.conf also contains /usr/contrib/lib and
6692 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6693 # libtool to hard-code these into programs
6696 cygwin* | mingw* | pw32*)
6697 version_type=windows
6702 case $GCC,$host_os in
6703 yes,cygwin* | yes,mingw* | yes,pw32*)
6704 library_names_spec='$libname.dll.a'
6705 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6706 postinstall_cmds='base_file=`basename \${file}`~
6707 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6708 dldir=$destdir/`dirname \$dlpath`~
6709 test -d \$dldir || mkdir -p \$dldir~
6710 $install_prog $dir/$dlname \$dldir/$dlname'
6711 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6712 dlpath=$dir/\$dldll~
6714 shlibpath_overrides_runpath=yes
6718 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6719 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6720 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6723 # MinGW DLLs use traditional 'lib' prefix
6724 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6725 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6726 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6727 # It is most probably a Windows format PATH printed by
6728 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6729 # path with ; separators, and with drive letters. We can handle the
6730 # drive letters (cygwin fileutils understands them), so leave them,
6731 # especially as we might pass files found there to a mingw objdump,
6732 # which wouldn't understand a cygwinified path. Ahh.
6733 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6735 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6739 # pw32 DLLs use 'pw' prefix rather than 'lib'
6740 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6746 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6749 dynamic_linker='Win32 ld.exe'
6750 # FIXME: first we should search . and the directory the executable is in
6754 darwin* | rhapsody*)
6755 dynamic_linker="$host_os dyld"
6759 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6760 soname_spec='${libname}${release}${major}$shared_ext'
6761 shlibpath_overrides_runpath=yes
6762 shlibpath_var=DYLD_LIBRARY_PATH
6763 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6764 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6765 if test "$GCC" = yes; then
6766 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"`
6768 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6770 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6778 soname_spec='${libname}${release}${shared_ext}$major'
6779 shlibpath_var=LD_LIBRARY_PATH
6790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6791 soname_spec='${libname}${release}${shared_ext}$major'
6792 shlibpath_var=LD_LIBRARY_PATH
6793 shlibpath_overrides_runpath=no
6794 hardcode_into_libs=yes
6795 dynamic_linker='GNU ld.so'
6799 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6800 version_type=freebsd-$objformat
6801 case $version_type in
6803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6808 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6812 shlibpath_var=LD_LIBRARY_PATH
6815 shlibpath_overrides_runpath=yes
6817 freebsd3.01* | freebsdelf3.01*)
6818 shlibpath_overrides_runpath=yes
6819 hardcode_into_libs=yes
6822 shlibpath_overrides_runpath=no
6823 hardcode_into_libs=yes
6832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6833 soname_spec='${libname}${release}${shared_ext}$major'
6834 shlibpath_var=LD_LIBRARY_PATH
6835 hardcode_into_libs=yes
6838 hpux9* | hpux10* | hpux11*)
6839 # Give a soname corresponding to the major version so that dld.sl refuses to
6840 # link against other versions.
6847 hardcode_into_libs=yes
6848 dynamic_linker="$host_os dld.so"
6849 shlibpath_var=LD_LIBRARY_PATH
6850 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6852 soname_spec='${libname}${release}${shared_ext}$major'
6853 if test "X$HPUX_IA64_MODE" = X32; then
6854 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6856 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6862 hardcode_into_libs=yes
6863 dynamic_linker="$host_os dld.sl"
6864 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6865 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6867 soname_spec='${libname}${release}${shared_ext}$major'
6868 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6869 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6873 dynamic_linker="$host_os dld.sl"
6874 shlibpath_var=SHLIB_PATH
6875 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6877 soname_spec='${libname}${release}${shared_ext}$major'
6880 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6881 postinstall_cmds='chmod 555 $lib'
6884 irix5* | irix6* | nonstopux*)
6886 nonstopux*) version_type=nonstopux ;;
6888 if test "$lt_cv_prog_gnu_ld" = yes; then
6896 soname_spec='${libname}${release}${shared_ext}$major'
6897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6899 irix5* | nonstopux*)
6903 case $LD in # libtool.m4 will add one of these switches to LD
6904 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6905 libsuff= shlibsuff= libmagic=32-bit;;
6906 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6907 libsuff=32 shlibsuff=N32 libmagic=N32;;
6908 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6909 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6910 *) libsuff= shlibsuff= libmagic=never-match;;
6914 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6915 shlibpath_overrides_runpath=no
6916 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6917 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6918 hardcode_into_libs=yes
6921 # No shared lib support for Linux oldld, aout, or coff.
6922 linux*oldld* | linux*aout* | linux*coff*)
6926 # This must be Linux ELF.
6931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6932 soname_spec='${libname}${release}${shared_ext}$major'
6933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6934 shlibpath_var=LD_LIBRARY_PATH
6935 shlibpath_overrides_runpath=no
6936 # This implies no fast_install, which is unacceptable.
6937 # Some rework will be needed to allow for fast_install
6938 # before this can be enabled.
6939 hardcode_into_libs=yes
6941 # Append ld.so.conf contents to the search path
6942 if test -f /etc/ld.so.conf; then
6943 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6944 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6947 # We used to test for /lib/ld.so.1 and disable shared libraries on
6948 # powerpc, because MkLinux only supported shared libraries with the
6949 # GNU dynamic linker. Since this was broken with cross compilers,
6950 # most powerpc-linux boxes support dynamic linking these days and
6951 # people can always --disable-shared, the test was removed, and we
6952 # assume the GNU/Linux dynamic linker is in use.
6953 dynamic_linker='GNU/Linux ld.so'
6960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6961 soname_spec='${libname}${release}${shared_ext}$major'
6962 shlibpath_var=LD_LIBRARY_PATH
6963 shlibpath_overrides_runpath=no
6964 hardcode_into_libs=yes
6965 dynamic_linker='GNU ld.so'
6972 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6975 dynamic_linker='NetBSD (a.out) ld.so'
6977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6978 soname_spec='${libname}${release}${shared_ext}$major'
6979 dynamic_linker='NetBSD ld.elf_so'
6981 shlibpath_var=LD_LIBRARY_PATH
6982 shlibpath_overrides_runpath=yes
6983 hardcode_into_libs=yes
6988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6989 shlibpath_var=LD_LIBRARY_PATH
6990 shlibpath_overrides_runpath=yes
6997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6998 soname_spec='${libname}${release}${shared_ext}$major'
6999 shlibpath_var=LD_LIBRARY_PATH
7000 shlibpath_overrides_runpath=yes
7007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7009 shlibpath_var=LD_LIBRARY_PATH
7010 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7012 openbsd2.[89] | openbsd2.[89].*)
7013 shlibpath_overrides_runpath=no
7016 shlibpath_overrides_runpath=yes
7020 shlibpath_overrides_runpath=yes
7025 libname_spec='$name'
7028 library_names_spec='$libname${shared_ext} $libname.a'
7029 dynamic_linker='OS/2 ld.exe'
7030 shlibpath_var=LIBPATH
7033 osf3* | osf4* | osf5*)
7037 soname_spec='${libname}${release}${shared_ext}$major'
7038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7039 shlibpath_var=LD_LIBRARY_PATH
7040 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7041 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7046 soname_spec='${libname}${release}${shared_ext}$major'
7047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7048 shlibpath_var=LD_LIBRARY_PATH
7055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7056 soname_spec='${libname}${release}${shared_ext}$major'
7057 shlibpath_var=LD_LIBRARY_PATH
7058 shlibpath_overrides_runpath=yes
7059 hardcode_into_libs=yes
7060 # ldd complains unless libraries are executable
7061 postinstall_cmds='chmod +x $lib'
7066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7067 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7068 shlibpath_var=LD_LIBRARY_PATH
7069 shlibpath_overrides_runpath=yes
7070 if test "$with_gnu_ld" = yes; then
7076 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7079 soname_spec='${libname}${release}${shared_ext}$major'
7080 shlibpath_var=LD_LIBRARY_PATH
7081 case $host_vendor in
7083 shlibpath_overrides_runpath=no
7085 export_dynamic_flag_spec='${wl}-Blargedynsym'
7086 runpath_var=LD_RUN_PATH
7094 shlibpath_overrides_runpath=no
7095 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7101 if test -d /usr/nec ;then
7103 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7104 soname_spec='$libname${shared_ext}.$major'
7105 shlibpath_var=LD_LIBRARY_PATH
7111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7112 soname_spec='${libname}${release}${shared_ext}$major'
7113 shlibpath_var=LD_LIBRARY_PATH
7120 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7121 echo "${ECHO_T}$dynamic_linker" >&6
7122 test "$dynamic_linker" = no && can_build_shared=no
7125 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7126 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7127 if test "${libltdl_cv_shlibext+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 eval libltdl_cv_shlibext=$shrext_cmds
7135 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7136 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7137 if test -n "$libltdl_cv_shlibext"; then
7139 cat >>confdefs.h <<_ACEOF
7140 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7146 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7147 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7148 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 libltdl_cv_shlibpath_var="$shlibpath_var"
7153 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7154 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7155 if test -n "$libltdl_cv_shlibpath_var"; then
7157 cat >>confdefs.h <<_ACEOF
7158 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7164 echo "$as_me:$LINENO: checking for the default library search path" >&5
7165 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7166 if test "${libltdl_cv_sys_search_path+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7171 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7172 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7173 if test -n "$libltdl_cv_sys_search_path"; then
7175 for dir in $libltdl_cv_sys_search_path; do
7176 if test -z "$sys_search_path"; then
7177 sys_search_path="$dir"
7179 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7183 cat >>confdefs.h <<_ACEOF
7184 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7189 echo "$as_me:$LINENO: checking for objdir" >&5
7190 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7191 if test "${libltdl_cv_objdir+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 libltdl_cv_objdir="$objdir"
7195 if test -n "$objdir"; then
7198 rm -f .libs 2>/dev/null
7199 mkdir .libs 2>/dev/null
7200 if test -d .libs; then
7201 libltdl_cv_objdir=.libs
7203 # MS-DOS does not allow filenames that begin with a dot.
7204 libltdl_cv_objdir=_libs
7206 rmdir .libs 2>/dev/null
7210 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7211 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7213 cat >>confdefs.h <<_ACEOF
7214 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7218 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7219 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7220 if test "${lt_cv_path_NM+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 if test -n "$NM"; then
7224 # Let the user override the test.
7227 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7228 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7230 test -z "$ac_dir" && ac_dir=.
7231 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7232 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7233 # Check to see if the nm accepts a BSD-compat flag.
7234 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7235 # nm: unknown option "B" ignored
7236 # Tru64's nm complains that /dev/null is an invalid object file
7237 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7238 */dev/null* | *'Invalid file or object type'*)
7239 lt_cv_path_NM="$tmp_nm -B"
7243 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7245 lt_cv_path_NM="$tmp_nm -p"
7249 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7250 continue # so that we can try to find one that supports BSD flags
7257 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7260 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7261 echo "${ECHO_T}$lt_cv_path_NM" >&6
7268 # Check for command to grab the raw symbol name followed by C symbol from nm.
7269 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7270 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7271 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 # These are sane defaults that work on at least a few old systems.
7276 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7278 # Character class describing NM global symbol codes.
7279 symcode='[BCDEGRST]'
7281 # Regexp to match symbols that can be accessed directly from C.
7282 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7284 # Transform the above into a raw symbol and a C symbol.
7285 symxfrm='\1 \2\3 \3'
7287 # Transform an extracted symbol line into a proper C declaration
7288 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7290 # Transform an extracted symbol line into symbol name and symbol address
7291 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'"
7293 # Define system-specific variables.
7298 cygwin* | mingw* | pw32*)
7299 symcode='[ABCDGISTW]'
7301 hpux*) # Its linker distinguishes data from code symbols
7302 if test "$host_cpu" = ia64; then
7303 symcode='[ABCDEGRST]'
7305 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7306 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'"
7309 if test "$host_cpu" = ia64; then
7310 symcode='[ABCDGIRSTW]'
7311 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7312 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'"
7316 symcode='[BCDEGRST]'
7319 symcode='[BCDEGQRST]'
7329 # Handle CRLF in mingw tool chain
7333 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7337 # If we're using GNU nm, then use its standard symbol codes.
7338 case `$NM -V 2>&1` in
7339 *GNU* | *'with BFD'*)
7340 symcode='[ABCDGIRSTW]' ;;
7343 # Try without a prefix undercore, then with it.
7344 for ac_symprfx in "" "_"; do
7346 # Write the raw and C identifiers.
7347 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7349 # Check to see that the pipe works correctly.
7353 cat > conftest.$ac_ext <<EOF
7358 void nm_test_func(){}
7362 int main(){nm_test_var='a';nm_test_func();return(0);}
7365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7366 (eval $ac_compile) 2>&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); }; then
7370 # Now try to grab the symbols.
7372 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7373 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } && test -s "$nlist"; then
7377 # Try sorting and uniquifying the output.
7378 if sort "$nlist" | uniq > "$nlist"T; then
7379 mv -f "$nlist"T "$nlist"
7384 # Make sure that we snagged all the symbols we need.
7385 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7386 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7387 cat <<EOF > conftest.$ac_ext
7393 # Now generate the symbol file.
7394 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7396 cat <<EOF >> conftest.$ac_ext
7397 #if defined (__STDC__) && __STDC__
7398 # define lt_ptr_t void *
7400 # define lt_ptr_t char *
7404 /* The mapping between symbol names and symbols. */
7409 lt_preloaded_symbols[] =
7412 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7413 cat <<\EOF >> conftest.$ac_ext
7421 # Now try linking the two files.
7422 mv conftest.$ac_objext conftstm.$ac_objext
7423 lt_save_LIBS="$LIBS"
7424 lt_save_CFLAGS="$CFLAGS"
7425 LIBS="conftstm.$ac_objext"
7426 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7428 (eval $ac_link) 2>&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7434 LIBS="$lt_save_LIBS"
7435 CFLAGS="$lt_save_CFLAGS"
7437 echo "cannot find nm_test_func in $nlist" >&5
7440 echo "cannot find nm_test_var in $nlist" >&5
7443 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7446 echo "$progname: failed program was:" >&5
7447 cat conftest.$ac_ext >&5
7449 rm -f conftest* conftst*
7451 # Do not use the global_symbol_pipe unless it works.
7452 if test "$pipe_works" = yes; then
7455 lt_cv_sys_global_symbol_pipe=
7461 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7462 lt_cv_sys_global_symbol_to_cdecl=
7464 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7465 echo "$as_me:$LINENO: result: failed" >&5
7466 echo "${ECHO_T}failed" >&6
7468 echo "$as_me:$LINENO: result: ok" >&5
7469 echo "${ECHO_T}ok" >&6
7473 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7474 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7475 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7479 libltdl_cv_preloaded_symbols=yes
7481 libltdl_cv_preloaded_symbols=no
7485 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7486 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7487 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7489 cat >>confdefs.h <<\_ACEOF
7490 #define HAVE_PRELOADED_SYMBOLS 1
7498 ac_cpp='$CPP $CPPFLAGS'
7499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7504 echo "$as_me:$LINENO: checking for shl_load" >&5
7505 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7506 if test "${ac_cv_func_shl_load+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 cat >conftest.$ac_ext <<_ACEOF
7512 cat confdefs.h >>conftest.$ac_ext
7513 cat >>conftest.$ac_ext <<_ACEOF
7514 /* end confdefs.h. */
7515 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7517 #define shl_load innocuous_shl_load
7519 /* System header to define __stub macros and hopefully few prototypes,
7520 which can conflict with char shl_load (); below.
7521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7522 <limits.h> exists even on freestanding compilers. */
7525 # include <limits.h>
7527 # include <assert.h>
7532 /* Override any gcc2 internal prototype to avoid an error. */
7537 /* We use char because int might match the return type of a gcc2
7538 builtin and then its argument prototype would still apply. */
7540 /* The GNU C library defines this for functions which it implements
7541 to always fail with ENOSYS. Some functions are actually named
7542 something starting with __ and the normal name is an alias. */
7543 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7546 char (*f) () = shl_load;
7555 return f != shl_load;
7560 rm -f conftest.$ac_objext conftest$ac_exeext
7561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7562 (eval $ac_link) 2>conftest.er1
7564 grep -v '^ *+' conftest.er1 >conftest.err
7566 cat conftest.err >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); } &&
7569 { ac_try='test -z "$ac_c_werror_flag"
7570 || test ! -s conftest.err'
7571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }; } &&
7576 { ac_try='test -s conftest$ac_exeext'
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; }; then
7582 ac_cv_func_shl_load=yes
7584 echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7587 ac_cv_func_shl_load=no
7589 rm -f conftest.err conftest.$ac_objext \
7590 conftest$ac_exeext conftest.$ac_ext
7592 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7593 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7594 if test $ac_cv_func_shl_load = yes; then
7596 cat >>confdefs.h <<\_ACEOF
7597 #define HAVE_SHL_LOAD 1
7601 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7602 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7603 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 ac_check_lib_save_LIBS=$LIBS
7608 cat >conftest.$ac_ext <<_ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7615 /* Override any gcc2 internal prototype to avoid an error. */
7619 /* We use char because int might match the return type of a gcc2
7620 builtin and then its argument prototype would still apply. */
7630 rm -f conftest.$ac_objext conftest$ac_exeext
7631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7632 (eval $ac_link) 2>conftest.er1
7634 grep -v '^ *+' conftest.er1 >conftest.err
7636 cat conftest.err >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } &&
7639 { ac_try='test -z "$ac_c_werror_flag"
7640 || test ! -s conftest.err'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; } &&
7646 { ac_try='test -s conftest$ac_exeext'
7647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); }; }; then
7652 ac_cv_lib_dld_shl_load=yes
7654 echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7657 ac_cv_lib_dld_shl_load=no
7659 rm -f conftest.err conftest.$ac_objext \
7660 conftest$ac_exeext conftest.$ac_ext
7661 LIBS=$ac_check_lib_save_LIBS
7663 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7664 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7665 if test $ac_cv_lib_dld_shl_load = yes; then
7667 cat >>confdefs.h <<\_ACEOF
7668 #define HAVE_SHL_LOAD 1
7671 LIBADD_DL="$LIBADD_DL -ldld"
7673 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7674 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7675 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 ac_check_lib_save_LIBS=$LIBS
7680 cat >conftest.$ac_ext <<_ACEOF
7683 cat confdefs.h >>conftest.$ac_ext
7684 cat >>conftest.$ac_ext <<_ACEOF
7685 /* end confdefs.h. */
7687 /* Override any gcc2 internal prototype to avoid an error. */
7691 /* We use char because int might match the return type of a gcc2
7692 builtin and then its argument prototype would still apply. */
7702 rm -f conftest.$ac_objext conftest$ac_exeext
7703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7704 (eval $ac_link) 2>conftest.er1
7706 grep -v '^ *+' conftest.er1 >conftest.err
7708 cat conftest.err >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } &&
7711 { ac_try='test -z "$ac_c_werror_flag"
7712 || test ! -s conftest.err'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; } &&
7718 { ac_try='test -s conftest$ac_exeext'
7719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; }; then
7724 ac_cv_lib_dl_dlopen=yes
7726 echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.$ac_ext >&5
7729 ac_cv_lib_dl_dlopen=no
7731 rm -f conftest.err conftest.$ac_objext \
7732 conftest$ac_exeext conftest.$ac_ext
7733 LIBS=$ac_check_lib_save_LIBS
7735 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7736 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7737 if test $ac_cv_lib_dl_dlopen = yes; then
7739 cat >>confdefs.h <<\_ACEOF
7740 #define HAVE_LIBDL 1
7743 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7745 cat >conftest.$ac_ext <<_ACEOF
7748 cat confdefs.h >>conftest.$ac_ext
7749 cat >>conftest.$ac_ext <<_ACEOF
7750 /* end confdefs.h. */
7763 rm -f conftest.$ac_objext conftest$ac_exeext
7764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7765 (eval $ac_link) 2>conftest.er1
7767 grep -v '^ *+' conftest.er1 >conftest.err
7769 cat conftest.err >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } &&
7772 { ac_try='test -z "$ac_c_werror_flag"
7773 || test ! -s conftest.err'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; } &&
7779 { ac_try='test -s conftest$ac_exeext'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7786 cat >>confdefs.h <<\_ACEOF
7787 #define HAVE_LIBDL 1
7789 libltdl_cv_func_dlopen="yes"
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7794 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7795 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7796 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7799 ac_check_lib_save_LIBS=$LIBS
7801 cat >conftest.$ac_ext <<_ACEOF
7804 cat confdefs.h >>conftest.$ac_ext
7805 cat >>conftest.$ac_ext <<_ACEOF
7806 /* end confdefs.h. */
7808 /* Override any gcc2 internal prototype to avoid an error. */
7812 /* We use char because int might match the return type of a gcc2
7813 builtin and then its argument prototype would still apply. */
7823 rm -f conftest.$ac_objext conftest$ac_exeext
7824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7825 (eval $ac_link) 2>conftest.er1
7827 grep -v '^ *+' conftest.er1 >conftest.err
7829 cat conftest.err >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } &&
7832 { ac_try='test -z "$ac_c_werror_flag"
7833 || test ! -s conftest.err'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; } &&
7839 { ac_try='test -s conftest$ac_exeext'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; }; then
7845 ac_cv_lib_svld_dlopen=yes
7847 echo "$as_me: failed program was:" >&5
7848 sed 's/^/| /' conftest.$ac_ext >&5
7850 ac_cv_lib_svld_dlopen=no
7852 rm -f conftest.err conftest.$ac_objext \
7853 conftest$ac_exeext conftest.$ac_ext
7854 LIBS=$ac_check_lib_save_LIBS
7856 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7857 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7858 if test $ac_cv_lib_svld_dlopen = yes; then
7860 cat >>confdefs.h <<\_ACEOF
7861 #define HAVE_LIBDL 1
7864 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7866 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7867 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7868 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 ac_check_lib_save_LIBS=$LIBS
7873 cat >conftest.$ac_ext <<_ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h. */
7880 /* Override any gcc2 internal prototype to avoid an error. */
7884 /* We use char because int might match the return type of a gcc2
7885 builtin and then its argument prototype would still apply. */
7895 rm -f conftest.$ac_objext conftest$ac_exeext
7896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7897 (eval $ac_link) 2>conftest.er1
7899 grep -v '^ *+' conftest.er1 >conftest.err
7901 cat conftest.err >&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); } &&
7904 { ac_try='test -z "$ac_c_werror_flag"
7905 || test ! -s conftest.err'
7906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; } &&
7911 { ac_try='test -s conftest$ac_exeext'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; }; then
7917 ac_cv_lib_dld_dld_link=yes
7919 echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7922 ac_cv_lib_dld_dld_link=no
7924 rm -f conftest.err conftest.$ac_objext \
7925 conftest$ac_exeext conftest.$ac_ext
7926 LIBS=$ac_check_lib_save_LIBS
7928 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7929 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7930 if test $ac_cv_lib_dld_dld_link = yes; then
7932 cat >>confdefs.h <<\_ACEOF
7936 LIBADD_DL="$LIBADD_DL -ldld"
7938 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7939 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7940 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7941 echo $ECHO_N "(cached) $ECHO_C" >&6
7943 cat >conftest.$ac_ext <<_ACEOF
7946 cat confdefs.h >>conftest.$ac_ext
7947 cat >>conftest.$ac_ext <<_ACEOF
7948 /* end confdefs.h. */
7949 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7951 #define _dyld_func_lookup innocuous__dyld_func_lookup
7953 /* System header to define __stub macros and hopefully few prototypes,
7954 which can conflict with char _dyld_func_lookup (); below.
7955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7956 <limits.h> exists even on freestanding compilers. */
7959 # include <limits.h>
7961 # include <assert.h>
7964 #undef _dyld_func_lookup
7966 /* Override any gcc2 internal prototype to avoid an error. */
7971 /* We use char because int might match the return type of a gcc2
7972 builtin and then its argument prototype would still apply. */
7973 char _dyld_func_lookup ();
7974 /* The GNU C library defines this for functions which it implements
7975 to always fail with ENOSYS. Some functions are actually named
7976 something starting with __ and the normal name is an alias. */
7977 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7980 char (*f) () = _dyld_func_lookup;
7989 return f != _dyld_func_lookup;
7994 rm -f conftest.$ac_objext conftest$ac_exeext
7995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7996 (eval $ac_link) 2>conftest.er1
7998 grep -v '^ *+' conftest.er1 >conftest.err
8000 cat conftest.err >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); } &&
8003 { ac_try='test -z "$ac_c_werror_flag"
8004 || test ! -s conftest.err'
8005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; } &&
8010 { ac_try='test -s conftest$ac_exeext'
8011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; }; then
8016 ac_cv_func__dyld_func_lookup=yes
8018 echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8021 ac_cv_func__dyld_func_lookup=no
8023 rm -f conftest.err conftest.$ac_objext \
8024 conftest$ac_exeext conftest.$ac_ext
8026 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8027 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8028 if test $ac_cv_func__dyld_func_lookup = yes; then
8030 cat >>confdefs.h <<\_ACEOF
8044 rm -f conftest.err conftest.$ac_objext \
8045 conftest$ac_exeext conftest.$ac_ext
8056 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8058 lt_save_LIBS="$LIBS"
8059 LIBS="$LIBS $LIBADD_DL"
8061 for ac_func in dlerror
8063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8064 echo "$as_me:$LINENO: checking for $ac_func" >&5
8065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8066 if eval "test \"\${$as_ac_var+set}\" = set"; then
8067 echo $ECHO_N "(cached) $ECHO_C" >&6
8069 cat >conftest.$ac_ext <<_ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h. */
8075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8077 #define $ac_func innocuous_$ac_func
8079 /* System header to define __stub macros and hopefully few prototypes,
8080 which can conflict with char $ac_func (); below.
8081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8082 <limits.h> exists even on freestanding compilers. */
8085 # include <limits.h>
8087 # include <assert.h>
8092 /* Override any gcc2 internal prototype to avoid an error. */
8097 /* We use char because int might match the return type of a gcc2
8098 builtin and then its argument prototype would still apply. */
8100 /* The GNU C library defines this for functions which it implements
8101 to always fail with ENOSYS. Some functions are actually named
8102 something starting with __ and the normal name is an alias. */
8103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8106 char (*f) () = $ac_func;
8115 return f != $ac_func;
8120 rm -f conftest.$ac_objext conftest$ac_exeext
8121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8122 (eval $ac_link) 2>conftest.er1
8124 grep -v '^ *+' conftest.er1 >conftest.err
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } &&
8129 { ac_try='test -z "$ac_c_werror_flag"
8130 || test ! -s conftest.err'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; } &&
8136 { ac_try='test -s conftest$ac_exeext'
8137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; }; then
8142 eval "$as_ac_var=yes"
8144 echo "$as_me: failed program was:" >&5
8145 sed 's/^/| /' conftest.$ac_ext >&5
8147 eval "$as_ac_var=no"
8149 rm -f conftest.err conftest.$ac_objext \
8150 conftest$ac_exeext conftest.$ac_ext
8152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8154 if test `eval echo '${'$as_ac_var'}'` = yes; then
8155 cat >>confdefs.h <<_ACEOF
8156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8162 LIBS="$lt_save_LIBS"
8165 ac_cpp='$CPP $CPPFLAGS'
8166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8172 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8173 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8174 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 ac_cv_sys_symbol_underscore=no
8178 cat > conftest.$ac_ext <<EOF
8179 void nm_test_func(){}
8180 int main(){nm_test_func;return 0;}
8182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8183 (eval $ac_compile) 2>&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; then
8187 # Now try to grab the symbols.
8188 ac_nlist=conftest.nm
8189 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8190 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } && test -s "$ac_nlist"; then
8194 # See whether the symbols have a leading underscore.
8195 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8196 ac_cv_sys_symbol_underscore=yes
8198 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8201 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8205 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8208 echo "configure: failed program was:" >&5
8214 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8215 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8218 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8219 if test x"$libltdl_cv_func_dlopen" = xyes ||
8220 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8221 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8222 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8223 if test "${libltdl_cv_need_uscore+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 libltdl_cv_need_uscore=unknown
8228 LIBS="$LIBS $LIBADD_DL"
8229 if test "$cross_compiling" = yes; then :
8230 libltdl_cv_need_uscore=cross
8232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8233 lt_status=$lt_dlunknown
8234 cat > conftest.$ac_ext <<EOF
8235 #line 8235 "configure"
8236 #include "confdefs.h"
8245 # define LT_DLGLOBAL RTLD_GLOBAL
8248 # define LT_DLGLOBAL DL_GLOBAL
8250 # define LT_DLGLOBAL 0
8254 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8255 find out it does not work in some platform. */
8256 #ifndef LT_DLLAZY_OR_NOW
8258 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8261 # define LT_DLLAZY_OR_NOW DL_LAZY
8264 # define LT_DLLAZY_OR_NOW RTLD_NOW
8267 # define LT_DLLAZY_OR_NOW DL_NOW
8269 # define LT_DLLAZY_OR_NOW 0
8277 extern "C" void exit (int);
8280 void fnord() { int i=42;}
8283 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8284 int status = $lt_dlunknown;
8288 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8289 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8290 /* dlclose (self); */
8296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8297 (eval $ac_link) 2>&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8301 (./conftest; exit; ) 2>/dev/null
8304 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8305 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8309 # compilation failed
8318 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8319 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8323 if test x"$libltdl_cv_need_uscore" = xyes; then
8325 cat >>confdefs.h <<\_ACEOF
8326 #define NEED_USCORE 1
8332 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8333 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8334 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 # PORTME does your system automatically load deplibs for dlopen?
8338 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8339 # For now, we just catch OSes we know something about -- in the
8340 # future, we'll try test this programmatically.
8341 libltdl_cv_sys_dlopen_deplibs=unknown
8343 aix3*|aix4.1.*|aix4.2.*)
8344 # Unknown whether this is true for these versions of AIX, but
8345 # we want this `case' here to explicitly catch those versions.
8346 libltdl_cv_sys_dlopen_deplibs=unknown
8349 libltdl_cv_sys_dlopen_deplibs=yes
8352 # Assuming the user has installed a libdl from somewhere, this is true
8353 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8354 libltdl_cv_sys_dlopen_deplibs=yes
8356 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8357 # GNU and its variants, using gnu ld.so (Glibc)
8358 libltdl_cv_sys_dlopen_deplibs=yes
8361 libltdl_cv_sys_dlopen_deplibs=yes
8363 irix[12345]*|irix6.[01]*)
8364 # Catch all versions of IRIX before 6.2, and indicate that we don't
8365 # know how it worked for any of those versions.
8366 libltdl_cv_sys_dlopen_deplibs=unknown
8369 # The case above catches anything before 6.2, and it's known that
8370 # at 6.2 and later dlopen does load deplibs.
8371 libltdl_cv_sys_dlopen_deplibs=yes
8374 libltdl_cv_sys_dlopen_deplibs=yes
8377 libltdl_cv_sys_dlopen_deplibs=yes
8380 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8381 # it did *not* use an RPATH in a shared library to find objects the
8382 # library depends on, so we explictly say `no'.
8383 libltdl_cv_sys_dlopen_deplibs=no
8385 osf5.0|osf5.0a|osf5.1)
8386 # dlopen *does* load deplibs and with the right loader patch applied
8387 # it even uses RPATH in a shared library to search for shared objects
8388 # that the library depends on, but there's no easy way to know if that
8389 # patch is installed. Since this is the case, all we can really
8390 # say is unknown -- it depends on the patch being installed. If
8391 # it is, this changes to `yes'. Without it, it would be `no'.
8392 libltdl_cv_sys_dlopen_deplibs=unknown
8395 # the two cases above should catch all versions of osf <= 5.1. Read
8396 # the comments above for what we know about them.
8397 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8398 # is used to find them so we can finally say `yes'.
8399 libltdl_cv_sys_dlopen_deplibs=yes
8402 libltdl_cv_sys_dlopen_deplibs=yes
8407 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8408 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8409 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8411 cat >>confdefs.h <<\_ACEOF
8412 #define LTDL_DLOPEN_DEPLIBS 1
8418 for ac_header in argz.h
8420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8422 echo "$as_me:$LINENO: checking for $ac_header" >&5
8423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8430 # Is the header compilable?
8431 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8433 cat >conftest.$ac_ext <<_ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h. */
8439 $ac_includes_default
8440 #include <$ac_header>
8442 rm -f conftest.$ac_objext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8444 (eval $ac_compile) 2>conftest.er1
8446 grep -v '^ *+' conftest.er1 >conftest.err
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } &&
8451 { ac_try='test -z "$ac_c_werror_flag"
8452 || test ! -s conftest.err'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; } &&
8458 { ac_try='test -s conftest.$ac_objext'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; }; then
8464 ac_header_compiler=yes
8466 echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8469 ac_header_compiler=no
8471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8473 echo "${ECHO_T}$ac_header_compiler" >&6
8475 # Is the header present?
8476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8478 cat >conftest.$ac_ext <<_ACEOF
8481 cat confdefs.h >>conftest.$ac_ext
8482 cat >>conftest.$ac_ext <<_ACEOF
8483 /* end confdefs.h. */
8484 #include <$ac_header>
8486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8489 grep -v '^ *+' conftest.er1 >conftest.err
8491 cat conftest.err >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } >/dev/null; then
8494 if test -s conftest.err; then
8495 ac_cpp_err=$ac_c_preproc_warn_flag
8496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8503 if test -z "$ac_cpp_err"; then
8504 ac_header_preproc=yes
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8509 ac_header_preproc=no
8511 rm -f conftest.err conftest.$ac_ext
8512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8513 echo "${ECHO_T}$ac_header_preproc" >&6
8515 # So? What about this header?
8516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8522 ac_header_preproc=yes
8525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8532 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8539 ## ----------------------------------- ##
8540 ## Report this to llvmbugs@cs.uiuc.edu ##
8541 ## ----------------------------------- ##
8544 sed "s/^/$as_me: WARNING: /" >&2
8547 echo "$as_me:$LINENO: checking for $ac_header" >&5
8548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8552 eval "$as_ac_Header=\$ac_header_preproc"
8554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8559 cat >>confdefs.h <<_ACEOF
8560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8568 echo "$as_me:$LINENO: checking for error_t" >&5
8569 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8570 if test "${ac_cv_type_error_t+set}" = set; then
8571 echo $ECHO_N "(cached) $ECHO_C" >&6
8573 cat >conftest.$ac_ext <<_ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8588 if (sizeof (error_t))
8594 rm -f conftest.$ac_objext
8595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8596 (eval $ac_compile) 2>conftest.er1
8598 grep -v '^ *+' conftest.er1 >conftest.err
8600 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } &&
8603 { ac_try='test -z "$ac_c_werror_flag"
8604 || test ! -s conftest.err'
8605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); }; } &&
8610 { ac_try='test -s conftest.$ac_objext'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; }; then
8616 ac_cv_type_error_t=yes
8618 echo "$as_me: failed program was:" >&5
8619 sed 's/^/| /' conftest.$ac_ext >&5
8621 ac_cv_type_error_t=no
8623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8625 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8626 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8627 if test $ac_cv_type_error_t = yes; then
8629 cat >>confdefs.h <<_ACEOF
8630 #define HAVE_ERROR_T 1
8636 cat >>confdefs.h <<\_ACEOF
8648 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8651 echo "$as_me:$LINENO: checking for $ac_func" >&5
8652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8653 if eval "test \"\${$as_ac_var+set}\" = set"; then
8654 echo $ECHO_N "(cached) $ECHO_C" >&6
8656 cat >conftest.$ac_ext <<_ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8664 #define $ac_func innocuous_$ac_func
8666 /* System header to define __stub macros and hopefully few prototypes,
8667 which can conflict with char $ac_func (); below.
8668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8669 <limits.h> exists even on freestanding compilers. */
8672 # include <limits.h>
8674 # include <assert.h>
8679 /* Override any gcc2 internal prototype to avoid an error. */
8684 /* We use char because int might match the return type of a gcc2
8685 builtin and then its argument prototype would still apply. */
8687 /* The GNU C library defines this for functions which it implements
8688 to always fail with ENOSYS. Some functions are actually named
8689 something starting with __ and the normal name is an alias. */
8690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8693 char (*f) () = $ac_func;
8702 return f != $ac_func;
8707 rm -f conftest.$ac_objext conftest$ac_exeext
8708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8709 (eval $ac_link) 2>conftest.er1
8711 grep -v '^ *+' conftest.er1 >conftest.err
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } &&
8716 { ac_try='test -z "$ac_c_werror_flag"
8717 || test ! -s conftest.err'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; } &&
8723 { ac_try='test -s conftest$ac_exeext'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 eval "$as_ac_var=yes"
8731 echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8734 eval "$as_ac_var=no"
8736 rm -f conftest.err conftest.$ac_objext \
8737 conftest$ac_exeext conftest.$ac_ext
8739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8741 if test `eval echo '${'$as_ac_var'}'` = yes; then
8742 cat >>confdefs.h <<_ACEOF
8743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8776 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8781 echo "$as_me:$LINENO: checking for $ac_header" >&5
8782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8789 # Is the header compilable?
8790 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8792 cat >conftest.$ac_ext <<_ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8798 $ac_includes_default
8799 #include <$ac_header>
8801 rm -f conftest.$ac_objext
8802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8803 (eval $ac_compile) 2>conftest.er1
8805 grep -v '^ *+' conftest.er1 >conftest.err
8807 cat conftest.err >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } &&
8810 { ac_try='test -z "$ac_c_werror_flag"
8811 || test ! -s conftest.err'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; } &&
8817 { ac_try='test -s conftest.$ac_objext'
8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; }; then
8823 ac_header_compiler=yes
8825 echo "$as_me: failed program was:" >&5
8826 sed 's/^/| /' conftest.$ac_ext >&5
8828 ac_header_compiler=no
8830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8831 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8832 echo "${ECHO_T}$ac_header_compiler" >&6
8834 # Is the header present?
8835 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8837 cat >conftest.$ac_ext <<_ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h. */
8843 #include <$ac_header>
8845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8848 grep -v '^ *+' conftest.er1 >conftest.err
8850 cat conftest.err >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } >/dev/null; then
8853 if test -s conftest.err; then
8854 ac_cpp_err=$ac_c_preproc_warn_flag
8855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8862 if test -z "$ac_cpp_err"; then
8863 ac_header_preproc=yes
8865 echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8868 ac_header_preproc=no
8870 rm -f conftest.err conftest.$ac_ext
8871 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8872 echo "${ECHO_T}$ac_header_preproc" >&6
8874 # So? What about this header?
8875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8881 ac_header_preproc=yes
8884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8891 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8898 ## ----------------------------------- ##
8899 ## Report this to llvmbugs@cs.uiuc.edu ##
8900 ## ----------------------------------- ##
8903 sed "s/^/$as_me: WARNING: /" >&2
8906 echo "$as_me:$LINENO: checking for $ac_header" >&5
8907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8911 eval "$as_ac_Header=\$ac_header_preproc"
8913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8918 cat >>confdefs.h <<_ACEOF
8919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8930 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8934 echo "$as_me:$LINENO: checking for $ac_header" >&5
8935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8942 # Is the header compilable?
8943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8945 cat >conftest.$ac_ext <<_ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8951 $ac_includes_default
8952 #include <$ac_header>
8954 rm -f conftest.$ac_objext
8955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8956 (eval $ac_compile) 2>conftest.er1
8958 grep -v '^ *+' conftest.er1 >conftest.err
8960 cat conftest.err >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } &&
8963 { ac_try='test -z "$ac_c_werror_flag"
8964 || test ! -s conftest.err'
8965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; } &&
8970 { ac_try='test -s conftest.$ac_objext'
8971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; }; then
8976 ac_header_compiler=yes
8978 echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8981 ac_header_compiler=no
8983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8985 echo "${ECHO_T}$ac_header_compiler" >&6
8987 # Is the header present?
8988 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8990 cat >conftest.$ac_ext <<_ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8996 #include <$ac_header>
8998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9001 grep -v '^ *+' conftest.er1 >conftest.err
9003 cat conftest.err >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } >/dev/null; then
9006 if test -s conftest.err; then
9007 ac_cpp_err=$ac_c_preproc_warn_flag
9008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9015 if test -z "$ac_cpp_err"; then
9016 ac_header_preproc=yes
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9021 ac_header_preproc=no
9023 rm -f conftest.err conftest.$ac_ext
9024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9025 echo "${ECHO_T}$ac_header_preproc" >&6
9027 # So? What about this header?
9028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9034 ac_header_preproc=yes
9037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9040 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9044 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9051 ## ----------------------------------- ##
9052 ## Report this to llvmbugs@cs.uiuc.edu ##
9053 ## ----------------------------------- ##
9056 sed "s/^/$as_me: WARNING: /" >&2
9059 echo "$as_me:$LINENO: checking for $ac_header" >&5
9060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9064 eval "$as_ac_Header=\$ac_header_preproc"
9066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9071 cat >>confdefs.h <<_ACEOF
9072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9081 for ac_header in string.h strings.h
9083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9085 echo "$as_me:$LINENO: checking for $ac_header" >&5
9086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9093 # Is the header compilable?
9094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9096 cat >conftest.$ac_ext <<_ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102 $ac_includes_default
9103 #include <$ac_header>
9105 rm -f conftest.$ac_objext
9106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9107 (eval $ac_compile) 2>conftest.er1
9109 grep -v '^ *+' conftest.er1 >conftest.err
9111 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } &&
9114 { ac_try='test -z "$ac_c_werror_flag"
9115 || test ! -s conftest.err'
9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; } &&
9121 { ac_try='test -s conftest.$ac_objext'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; }; then
9127 ac_header_compiler=yes
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9132 ac_header_compiler=no
9134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9136 echo "${ECHO_T}$ac_header_compiler" >&6
9138 # Is the header present?
9139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9141 cat >conftest.$ac_ext <<_ACEOF
9144 cat confdefs.h >>conftest.$ac_ext
9145 cat >>conftest.$ac_ext <<_ACEOF
9146 /* end confdefs.h. */
9147 #include <$ac_header>
9149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9152 grep -v '^ *+' conftest.er1 >conftest.err
9154 cat conftest.err >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } >/dev/null; then
9157 if test -s conftest.err; then
9158 ac_cpp_err=$ac_c_preproc_warn_flag
9159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9166 if test -z "$ac_cpp_err"; then
9167 ac_header_preproc=yes
9169 echo "$as_me: failed program was:" >&5
9170 sed 's/^/| /' conftest.$ac_ext >&5
9172 ac_header_preproc=no
9174 rm -f conftest.err conftest.$ac_ext
9175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9176 echo "${ECHO_T}$ac_header_preproc" >&6
9178 # So? What about this header?
9179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9185 ac_header_preproc=yes
9188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9195 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9202 ## ----------------------------------- ##
9203 ## Report this to llvmbugs@cs.uiuc.edu ##
9204 ## ----------------------------------- ##
9207 sed "s/^/$as_me: WARNING: /" >&2
9210 echo "$as_me:$LINENO: checking for $ac_header" >&5
9211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 eval "$as_ac_Header=\$ac_header_preproc"
9217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9222 cat >>confdefs.h <<_ACEOF
9223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9233 for ac_func in strchr index
9235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9236 echo "$as_me:$LINENO: checking for $ac_func" >&5
9237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9238 if eval "test \"\${$as_ac_var+set}\" = set"; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9241 cat >conftest.$ac_ext <<_ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9249 #define $ac_func innocuous_$ac_func
9251 /* System header to define __stub macros and hopefully few prototypes,
9252 which can conflict with char $ac_func (); below.
9253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9254 <limits.h> exists even on freestanding compilers. */
9257 # include <limits.h>
9259 # include <assert.h>
9264 /* Override any gcc2 internal prototype to avoid an error. */
9269 /* We use char because int might match the return type of a gcc2
9270 builtin and then its argument prototype would still apply. */
9272 /* The GNU C library defines this for functions which it implements
9273 to always fail with ENOSYS. Some functions are actually named
9274 something starting with __ and the normal name is an alias. */
9275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9278 char (*f) () = $ac_func;
9287 return f != $ac_func;
9292 rm -f conftest.$ac_objext conftest$ac_exeext
9293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9294 (eval $ac_link) 2>conftest.er1
9296 grep -v '^ *+' conftest.er1 >conftest.err
9298 cat conftest.err >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); } &&
9301 { ac_try='test -z "$ac_c_werror_flag"
9302 || test ! -s conftest.err'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; } &&
9308 { ac_try='test -s conftest$ac_exeext'
9309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); }; }; then
9314 eval "$as_ac_var=yes"
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9319 eval "$as_ac_var=no"
9321 rm -f conftest.err conftest.$ac_objext \
9322 conftest$ac_exeext conftest.$ac_ext
9324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9326 if test `eval echo '${'$as_ac_var'}'` = yes; then
9327 cat >>confdefs.h <<_ACEOF
9328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9336 for ac_func in strrchr rindex
9338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9339 echo "$as_me:$LINENO: checking for $ac_func" >&5
9340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9341 if eval "test \"\${$as_ac_var+set}\" = set"; then
9342 echo $ECHO_N "(cached) $ECHO_C" >&6
9344 cat >conftest.$ac_ext <<_ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9352 #define $ac_func innocuous_$ac_func
9354 /* System header to define __stub macros and hopefully few prototypes,
9355 which can conflict with char $ac_func (); below.
9356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9357 <limits.h> exists even on freestanding compilers. */
9360 # include <limits.h>
9362 # include <assert.h>
9367 /* Override any gcc2 internal prototype to avoid an error. */
9372 /* We use char because int might match the return type of a gcc2
9373 builtin and then its argument prototype would still apply. */
9375 /* The GNU C library defines this for functions which it implements
9376 to always fail with ENOSYS. Some functions are actually named
9377 something starting with __ and the normal name is an alias. */
9378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9381 char (*f) () = $ac_func;
9390 return f != $ac_func;
9395 rm -f conftest.$ac_objext conftest$ac_exeext
9396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9397 (eval $ac_link) 2>conftest.er1
9399 grep -v '^ *+' conftest.er1 >conftest.err
9401 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } &&
9404 { ac_try='test -z "$ac_c_werror_flag"
9405 || test ! -s conftest.err'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; } &&
9411 { ac_try='test -s conftest$ac_exeext'
9412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; }; then
9417 eval "$as_ac_var=yes"
9419 echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9422 eval "$as_ac_var=no"
9424 rm -f conftest.err conftest.$ac_objext \
9425 conftest$ac_exeext conftest.$ac_ext
9427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9429 if test `eval echo '${'$as_ac_var'}'` = yes; then
9430 cat >>confdefs.h <<_ACEOF
9431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9439 for ac_func in memcpy bcopy
9441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9442 echo "$as_me:$LINENO: checking for $ac_func" >&5
9443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9444 if eval "test \"\${$as_ac_var+set}\" = set"; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9447 cat >conftest.$ac_ext <<_ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h. */
9453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9455 #define $ac_func innocuous_$ac_func
9457 /* System header to define __stub macros and hopefully few prototypes,
9458 which can conflict with char $ac_func (); below.
9459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9460 <limits.h> exists even on freestanding compilers. */
9463 # include <limits.h>
9465 # include <assert.h>
9470 /* Override any gcc2 internal prototype to avoid an error. */
9475 /* We use char because int might match the return type of a gcc2
9476 builtin and then its argument prototype would still apply. */
9478 /* The GNU C library defines this for functions which it implements
9479 to always fail with ENOSYS. Some functions are actually named
9480 something starting with __ and the normal name is an alias. */
9481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9484 char (*f) () = $ac_func;
9493 return f != $ac_func;
9498 rm -f conftest.$ac_objext conftest$ac_exeext
9499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9500 (eval $ac_link) 2>conftest.er1
9502 grep -v '^ *+' conftest.er1 >conftest.err
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } &&
9507 { ac_try='test -z "$ac_c_werror_flag"
9508 || test ! -s conftest.err'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; } &&
9514 { ac_try='test -s conftest$ac_exeext'
9515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; }; then
9520 eval "$as_ac_var=yes"
9522 echo "$as_me: failed program was:" >&5
9523 sed 's/^/| /' conftest.$ac_ext >&5
9525 eval "$as_ac_var=no"
9527 rm -f conftest.err conftest.$ac_objext \
9528 conftest$ac_exeext conftest.$ac_ext
9530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9532 if test `eval echo '${'$as_ac_var'}'` = yes; then
9533 cat >>confdefs.h <<_ACEOF
9534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9542 for ac_func in memmove strcmp
9544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9545 echo "$as_me:$LINENO: checking for $ac_func" >&5
9546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9547 if eval "test \"\${$as_ac_var+set}\" = set"; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 cat >conftest.$ac_ext <<_ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9558 #define $ac_func innocuous_$ac_func
9560 /* System header to define __stub macros and hopefully few prototypes,
9561 which can conflict with char $ac_func (); below.
9562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9563 <limits.h> exists even on freestanding compilers. */
9566 # include <limits.h>
9568 # include <assert.h>
9573 /* Override any gcc2 internal prototype to avoid an error. */
9578 /* We use char because int might match the return type of a gcc2
9579 builtin and then its argument prototype would still apply. */
9581 /* The GNU C library defines this for functions which it implements
9582 to always fail with ENOSYS. Some functions are actually named
9583 something starting with __ and the normal name is an alias. */
9584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9587 char (*f) () = $ac_func;
9596 return f != $ac_func;
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9603 (eval $ac_link) 2>conftest.er1
9605 grep -v '^ *+' conftest.er1 >conftest.err
9607 cat conftest.err >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } &&
9610 { ac_try='test -z "$ac_c_werror_flag"
9611 || test ! -s conftest.err'
9612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); }; } &&
9617 { ac_try='test -s conftest$ac_exeext'
9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; }; then
9623 eval "$as_ac_var=yes"
9625 echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9628 eval "$as_ac_var=no"
9630 rm -f conftest.err conftest.$ac_objext \
9631 conftest$ac_exeext conftest.$ac_ext
9633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9635 if test `eval echo '${'$as_ac_var'}'` = yes; then
9636 cat >>confdefs.h <<_ACEOF
9637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9646 for ac_func in closedir opendir readdir
9648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9649 echo "$as_me:$LINENO: checking for $ac_func" >&5
9650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9651 if eval "test \"\${$as_ac_var+set}\" = set"; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9654 cat >conftest.$ac_ext <<_ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9662 #define $ac_func innocuous_$ac_func
9664 /* System header to define __stub macros and hopefully few prototypes,
9665 which can conflict with char $ac_func (); below.
9666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9667 <limits.h> exists even on freestanding compilers. */
9670 # include <limits.h>
9672 # include <assert.h>
9677 /* Override any gcc2 internal prototype to avoid an error. */
9682 /* We use char because int might match the return type of a gcc2
9683 builtin and then its argument prototype would still apply. */
9685 /* The GNU C library defines this for functions which it implements
9686 to always fail with ENOSYS. Some functions are actually named
9687 something starting with __ and the normal name is an alias. */
9688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9691 char (*f) () = $ac_func;
9700 return f != $ac_func;
9705 rm -f conftest.$ac_objext conftest$ac_exeext
9706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9707 (eval $ac_link) 2>conftest.er1
9709 grep -v '^ *+' conftest.er1 >conftest.err
9711 cat conftest.err >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } &&
9714 { ac_try='test -z "$ac_c_werror_flag"
9715 || test ! -s conftest.err'
9716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; } &&
9721 { ac_try='test -s conftest$ac_exeext'
9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 eval "$as_ac_var=yes"
9729 echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.$ac_ext >&5
9732 eval "$as_ac_var=no"
9734 rm -f conftest.err conftest.$ac_objext \
9735 conftest$ac_exeext conftest.$ac_ext
9737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9739 if test `eval echo '${'$as_ac_var'}'` = yes; then
9740 cat >>confdefs.h <<_ACEOF
9741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9748 # Check whether --enable-shared or --disable-shared was given.
9749 if test "${enable_shared+set}" = set; then
9750 enableval="$enable_shared"
9751 p=${PACKAGE-default}
9753 yes) enable_shared=yes ;;
9754 no) enable_shared=no ;;
9757 # Look at the argument we got. We use all the common list separators.
9758 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9759 for pkg in $enableval; do
9761 if test "X$pkg" = "X$p"; then
9772 # Check whether --enable-static or --disable-static was given.
9773 if test "${enable_static+set}" = set; then
9774 enableval="$enable_static"
9775 p=${PACKAGE-default}
9777 yes) enable_static=yes ;;
9778 no) enable_static=no ;;
9781 # Look at the argument we got. We use all the common list separators.
9782 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9783 for pkg in $enableval; do
9785 if test "X$pkg" = "X$p"; then
9796 # Check whether --enable-fast-install or --disable-fast-install was given.
9797 if test "${enable_fast_install+set}" = set; then
9798 enableval="$enable_fast_install"
9799 p=${PACKAGE-default}
9801 yes) enable_fast_install=yes ;;
9802 no) enable_fast_install=no ;;
9804 enable_fast_install=no
9805 # Look at the argument we got. We use all the common list separators.
9806 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9807 for pkg in $enableval; do
9809 if test "X$pkg" = "X$p"; then
9810 enable_fast_install=yes
9817 enable_fast_install=yes
9820 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9821 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9822 if test "${lt_cv_path_SED+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 # Loop through the user's path and test for sed and gsed.
9826 # Then use that list of sed's as ones to test for truncation.
9827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9831 test -z "$as_dir" && as_dir=.
9832 for lt_ac_prog in sed gsed; do
9833 for ac_exec_ext in '' $ac_executable_extensions; do
9834 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9835 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9842 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9843 # along with /bin/sed that truncates output.
9844 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9845 test ! -f $lt_ac_sed && break
9846 cat /dev/null > conftest.in
9848 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9849 # Check for GNU sed and select it if it is found.
9850 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9851 lt_cv_path_SED=$lt_ac_sed
9855 cat conftest.in conftest.in >conftest.tmp
9856 mv conftest.tmp conftest.in
9857 cp conftest.in conftest.nl
9859 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9860 cmp -s conftest.out conftest.nl || break
9861 # 10000 chars as input seems more than enough
9862 test $lt_ac_count -gt 10 && break
9863 lt_ac_count=`expr $lt_ac_count + 1`
9864 if test $lt_ac_count -gt $lt_ac_max; then
9865 lt_ac_max=$lt_ac_count
9866 lt_cv_path_SED=$lt_ac_sed
9874 echo "$as_me:$LINENO: result: $SED" >&5
9875 echo "${ECHO_T}$SED" >&6
9878 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9879 if test "${with_gnu_ld+set}" = set; then
9880 withval="$with_gnu_ld"
9881 test "$withval" = no || with_gnu_ld=yes
9886 if test "$GCC" = yes; then
9887 # Check if gcc -print-prog-name=ld gives a path.
9888 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9889 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9892 # gcc leaves a trailing carriage return which upsets mingw
9893 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9895 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9898 # Accept absolute paths.
9900 re_direlt='/[^/][^/]*/\.\./'
9901 # Canonicalize the pathname of ld
9902 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9903 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9904 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9906 test -z "$LD" && LD="$ac_prog"
9909 # If it fails, then pretend we aren't using GCC.
9913 # If it is relative, then search for the first ld in PATH.
9917 elif test "$with_gnu_ld" = yes; then
9918 echo "$as_me:$LINENO: checking for GNU ld" >&5
9919 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9921 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9922 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9924 if test "${lt_cv_path_LD+set}" = set; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 if test -z "$LD"; then
9928 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9929 for ac_dir in $PATH; do
9931 test -z "$ac_dir" && ac_dir=.
9932 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9933 lt_cv_path_LD="$ac_dir/$ac_prog"
9934 # Check to see if the program is GNU ld. I'd rather use --version,
9935 # but apparently some GNU ld's only accept -v.
9936 # Break only if it was the GNU/non-GNU ld that we prefer.
9937 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9938 *GNU* | *'with BFD'*)
9939 test "$with_gnu_ld" != no && break
9942 test "$with_gnu_ld" != yes && break
9949 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9954 if test -n "$LD"; then
9955 echo "$as_me:$LINENO: result: $LD" >&5
9956 echo "${ECHO_T}$LD" >&6
9958 echo "$as_me:$LINENO: result: no" >&5
9959 echo "${ECHO_T}no" >&6
9961 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9962 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9963 { (exit 1); exit 1; }; }
9964 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9965 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9966 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9970 case `$LD -v 2>&1 </dev/null` in
9971 *GNU* | *'with BFD'*)
9972 lt_cv_prog_gnu_ld=yes
9975 lt_cv_prog_gnu_ld=no
9979 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9980 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9981 with_gnu_ld=$lt_cv_prog_gnu_ld
9984 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9985 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9986 if test "${lt_cv_ld_reload_flag+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 lt_cv_ld_reload_flag='-r'
9991 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9992 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9993 reload_flag=$lt_cv_ld_reload_flag
9994 case $reload_flag in
9996 *) reload_flag=" $reload_flag" ;;
9998 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10001 if test "$GCC" = yes; then
10002 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10004 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10009 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10010 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10011 if test "${lt_cv_deplibs_check_method+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 lt_cv_file_magic_cmd='$MAGIC_CMD'
10015 lt_cv_file_magic_test_file=
10016 lt_cv_deplibs_check_method='unknown'
10017 # Need to set the preceding variable on all platforms that support
10018 # interlibrary dependencies.
10019 # 'none' -- dependencies not supported.
10020 # `unknown' -- same as none, but documents that we really don't know.
10021 # 'pass_all' -- all dependencies passed with no checks.
10022 # 'test_compile' -- check by making test program.
10023 # 'file_magic [[regex]]' -- check by looking for files in library path
10024 # which responds to the $file_magic_cmd with a given extended regex.
10025 # If you have `file' or equivalent on your system and you're not sure
10026 # whether `pass_all' will *always* work, you probably want this one.
10030 lt_cv_deplibs_check_method=pass_all
10034 lt_cv_deplibs_check_method=pass_all
10038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10039 lt_cv_file_magic_cmd='/usr/bin/file -L'
10040 lt_cv_file_magic_test_file=/shlib/libc.so
10044 # func_win32_libid is a shell function defined in ltmain.sh
10045 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10046 lt_cv_file_magic_cmd='func_win32_libid'
10050 # Base MSYS/MinGW do not provide the 'file' command needed by
10051 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10052 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10053 lt_cv_file_magic_cmd='$OBJDUMP -f'
10056 darwin* | rhapsody*)
10057 lt_cv_deplibs_check_method=pass_all
10060 freebsd* | kfreebsd*-gnu)
10061 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10064 # Not sure whether the presence of OpenBSD here was a mistake.
10065 # Let's accept both of them until this is cleared up.
10066 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10067 lt_cv_file_magic_cmd=/usr/bin/file
10068 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10072 lt_cv_deplibs_check_method=pass_all
10077 lt_cv_deplibs_check_method=pass_all
10080 hpux10.20* | hpux11*)
10081 lt_cv_file_magic_cmd=/usr/bin/file
10082 case "$host_cpu" in
10084 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10085 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10088 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]'
10089 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10092 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10093 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10098 irix5* | irix6* | nonstopux*)
10100 *-32|*"-32 ") libmagic=32-bit;;
10101 *-n32|*"-n32 ") libmagic=N32;;
10102 *-64|*"-64 ") libmagic=64-bit;;
10103 *) libmagic=never-match;;
10105 lt_cv_deplibs_check_method=pass_all
10108 # This must be Linux ELF.
10110 lt_cv_deplibs_check_method=pass_all
10114 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10117 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10122 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10123 lt_cv_file_magic_cmd=/usr/bin/file
10124 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10128 lt_cv_deplibs_check_method=unknown
10132 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10139 osf3* | osf4* | osf5*)
10140 lt_cv_deplibs_check_method=pass_all
10144 lt_cv_deplibs_check_method=pass_all
10148 lt_cv_deplibs_check_method=pass_all
10151 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10152 case $host_vendor in
10154 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]'
10155 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10158 lt_cv_deplibs_check_method=pass_all
10161 lt_cv_file_magic_cmd='/bin/file'
10162 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10165 lt_cv_file_magic_cmd='/bin/file'
10166 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10167 lt_cv_file_magic_test_file=/lib/libc.so
10170 lt_cv_deplibs_check_method=pass_all
10175 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10176 lt_cv_deplibs_check_method=pass_all
10181 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10182 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10183 file_magic_cmd=$lt_cv_file_magic_cmd
10184 deplibs_check_method=$lt_cv_deplibs_check_method
10185 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10189 # If no C compiler was specified, use CC.
10192 # Allow CC to be a program name with arguments.
10195 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10196 if test "${enable_libtool_lock+set}" = set; then
10197 enableval="$enable_libtool_lock"
10200 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10202 # Some flags need to be propagated to the compiler or linker for good
10206 # Find out which ABI we are using.
10207 echo 'int i;' > conftest.$ac_ext
10208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10209 (eval $ac_compile) 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; then
10213 case `/usr/bin/file conftest.$ac_objext` in
10215 HPUX_IA64_MODE="32"
10218 HPUX_IA64_MODE="64"
10225 # Find out which ABI we are using.
10226 echo '#line 10226 "configure"' > conftest.$ac_ext
10227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10228 (eval $ac_compile) 2>&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; then
10232 if test "$lt_cv_prog_gnu_ld" = yes; then
10233 case `/usr/bin/file conftest.$ac_objext` in
10235 LD="${LD-ld} -melf32bsmip"
10238 LD="${LD-ld} -melf32bmipn32"
10241 LD="${LD-ld} -melf64bmip"
10245 case `/usr/bin/file conftest.$ac_objext` in
10261 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10262 # Find out which ABI we are using.
10263 echo 'int i;' > conftest.$ac_ext
10264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10265 (eval $ac_compile) 2>&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; then
10269 case "`/usr/bin/file conftest.o`" in
10273 LD="${LD-ld} -m elf_i386"
10275 ppc64-*linux*|powerpc64-*linux*)
10276 LD="${LD-ld} -m elf32ppclinux"
10279 LD="${LD-ld} -m elf_s390"
10282 LD="${LD-ld} -m elf32_sparc"
10289 LD="${LD-ld} -m elf_x86_64"
10291 ppc*-*linux*|powerpc*-*linux*)
10292 LD="${LD-ld} -m elf64ppc"
10295 LD="${LD-ld} -m elf64_s390"
10298 LD="${LD-ld} -m elf64_sparc"
10308 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10309 SAVE_CFLAGS="$CFLAGS"
10310 CFLAGS="$CFLAGS -belf"
10311 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10312 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10313 if test "${lt_cv_cc_needs_belf+set}" = set; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
10317 ac_cpp='$CPP $CPPFLAGS'
10318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10322 cat >conftest.$ac_ext <<_ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10330 rm -f conftest.$ac_objext conftest$ac_exeext
10331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10332 (eval $ac_link) 2>conftest.er1
10334 grep -v '^ *+' conftest.er1 >conftest.err
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } &&
10339 { ac_try='test -z "$ac_c_werror_flag"
10340 || test ! -s conftest.err'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; } &&
10346 { ac_try='test -s conftest$ac_exeext'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; }; then
10352 lt_cv_cc_needs_belf=yes
10354 echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10357 lt_cv_cc_needs_belf=no
10359 rm -f conftest.err conftest.$ac_objext \
10360 conftest$ac_exeext conftest.$ac_ext
10362 ac_cpp='$CPP $CPPFLAGS'
10363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10368 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10369 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10370 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10371 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10372 CFLAGS="$SAVE_CFLAGS"
10378 need_locks="$enable_libtool_lock"
10383 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10384 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10385 (test "X$CXX" != "Xg++"))) ; then
10387 ac_cpp='$CXXCPP $CPPFLAGS'
10388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10391 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10392 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10393 if test -z "$CXXCPP"; then
10394 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
10397 # Double quotes because CXXCPP needs to be expanded
10398 for CXXCPP in "$CXX -E" "/lib/cpp"
10400 ac_preproc_ok=false
10401 for ac_cxx_preproc_warn_flag in '' yes
10403 # Use a header file that comes with gcc, so configuring glibc
10404 # with a fresh cross-compiler works.
10405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10406 # <limits.h> exists even on freestanding compilers.
10407 # On the NeXT, cc -E runs the code through the compiler's parser,
10408 # not just through cpp. "Syntax error" is here to catch this case.
10409 cat >conftest.$ac_ext <<_ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10416 # include <limits.h>
10418 # include <assert.h>
10422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10425 grep -v '^ *+' conftest.er1 >conftest.err
10427 cat conftest.err >&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } >/dev/null; then
10430 if test -s conftest.err; then
10431 ac_cpp_err=$ac_cxx_preproc_warn_flag
10432 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10439 if test -z "$ac_cpp_err"; then
10442 echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.$ac_ext >&5
10445 # Broken: fails on valid input.
10448 rm -f conftest.err conftest.$ac_ext
10450 # OK, works on sane cases. Now check whether non-existent headers
10451 # can be detected and how.
10452 cat >conftest.$ac_ext <<_ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h. */
10458 #include <ac_nonexistent.h>
10460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10463 grep -v '^ *+' conftest.er1 >conftest.err
10465 cat conftest.err >&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } >/dev/null; then
10468 if test -s conftest.err; then
10469 ac_cpp_err=$ac_cxx_preproc_warn_flag
10470 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10477 if test -z "$ac_cpp_err"; then
10478 # Broken: success on invalid input.
10481 echo "$as_me: failed program was:" >&5
10482 sed 's/^/| /' conftest.$ac_ext >&5
10484 # Passes both tests.
10488 rm -f conftest.err conftest.$ac_ext
10491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10492 rm -f conftest.err conftest.$ac_ext
10493 if $ac_preproc_ok; then
10498 ac_cv_prog_CXXCPP=$CXXCPP
10501 CXXCPP=$ac_cv_prog_CXXCPP
10503 ac_cv_prog_CXXCPP=$CXXCPP
10505 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10506 echo "${ECHO_T}$CXXCPP" >&6
10507 ac_preproc_ok=false
10508 for ac_cxx_preproc_warn_flag in '' yes
10510 # Use a header file that comes with gcc, so configuring glibc
10511 # with a fresh cross-compiler works.
10512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10513 # <limits.h> exists even on freestanding compilers.
10514 # On the NeXT, cc -E runs the code through the compiler's parser,
10515 # not just through cpp. "Syntax error" is here to catch this case.
10516 cat >conftest.$ac_ext <<_ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10523 # include <limits.h>
10525 # include <assert.h>
10529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10532 grep -v '^ *+' conftest.er1 >conftest.err
10534 cat conftest.err >&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } >/dev/null; then
10537 if test -s conftest.err; then
10538 ac_cpp_err=$ac_cxx_preproc_warn_flag
10539 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10546 if test -z "$ac_cpp_err"; then
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10552 # Broken: fails on valid input.
10555 rm -f conftest.err conftest.$ac_ext
10557 # OK, works on sane cases. Now check whether non-existent headers
10558 # can be detected and how.
10559 cat >conftest.$ac_ext <<_ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h. */
10565 #include <ac_nonexistent.h>
10567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10570 grep -v '^ *+' conftest.er1 >conftest.err
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } >/dev/null; then
10575 if test -s conftest.err; then
10576 ac_cpp_err=$ac_cxx_preproc_warn_flag
10577 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10584 if test -z "$ac_cpp_err"; then
10585 # Broken: success on invalid input.
10588 echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10591 # Passes both tests.
10595 rm -f conftest.err conftest.$ac_ext
10598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10599 rm -f conftest.err conftest.$ac_ext
10600 if $ac_preproc_ok; then
10603 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10604 See \`config.log' for more details." >&5
10605 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10606 See \`config.log' for more details." >&2;}
10607 { (exit 1); exit 1; }; }
10611 ac_cpp='$CXXCPP $CPPFLAGS'
10612 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10613 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10614 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10620 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10621 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10622 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10623 if test -n "$ac_tool_prefix"; then
10624 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10627 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10628 echo "$as_me:$LINENO: checking for $ac_word" >&5
10629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10630 if test "${ac_cv_prog_F77+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10633 if test -n "$F77"; then
10634 ac_cv_prog_F77="$F77" # Let the user override the test.
10636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10637 for as_dir in $PATH
10640 test -z "$as_dir" && as_dir=.
10641 for ac_exec_ext in '' $ac_executable_extensions; do
10642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10643 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10652 F77=$ac_cv_prog_F77
10653 if test -n "$F77"; then
10654 echo "$as_me:$LINENO: result: $F77" >&5
10655 echo "${ECHO_T}$F77" >&6
10657 echo "$as_me:$LINENO: result: no" >&5
10658 echo "${ECHO_T}no" >&6
10661 test -n "$F77" && break
10664 if test -z "$F77"; then
10666 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10668 # Extract the first word of "$ac_prog", so it can be a program name with args.
10669 set dummy $ac_prog; ac_word=$2
10670 echo "$as_me:$LINENO: checking for $ac_word" >&5
10671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10672 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 if test -n "$ac_ct_F77"; then
10676 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10679 for as_dir in $PATH
10682 test -z "$as_dir" && as_dir=.
10683 for ac_exec_ext in '' $ac_executable_extensions; do
10684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10685 ac_cv_prog_ac_ct_F77="$ac_prog"
10686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10694 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10695 if test -n "$ac_ct_F77"; then
10696 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10697 echo "${ECHO_T}$ac_ct_F77" >&6
10699 echo "$as_me:$LINENO: result: no" >&5
10700 echo "${ECHO_T}no" >&6
10703 test -n "$ac_ct_F77" && break
10710 # Provide some information about the compiler.
10711 echo "$as_me:10711:" \
10712 "checking for Fortran 77 compiler version" >&5
10713 ac_compiler=`set X $ac_compile; echo $2`
10714 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10715 (eval $ac_compiler --version </dev/null >&5) 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }
10719 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10720 (eval $ac_compiler -v </dev/null >&5) 2>&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }
10724 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10725 (eval $ac_compiler -V </dev/null >&5) 2>&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }
10731 # If we don't use `.F' as extension, the preprocessor is not run on the
10732 # input file. (Note that this only needs to work for GNU compilers.)
10733 ac_save_ext=$ac_ext
10735 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10736 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10737 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 cat >conftest.$ac_ext <<_ACEOF
10748 rm -f conftest.$ac_objext
10749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10750 (eval $ac_compile) 2>conftest.er1
10752 grep -v '^ *+' conftest.er1 >conftest.err
10754 cat conftest.err >&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } &&
10757 { ac_try='test -z "$ac_f77_werror_flag"
10758 || test ! -s conftest.err'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; } &&
10764 { ac_try='test -s conftest.$ac_objext'
10765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766 (eval $ac_try) 2>&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; }; then
10770 ac_compiler_gnu=yes
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10778 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10781 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10782 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10783 ac_ext=$ac_save_ext
10784 ac_test_FFLAGS=${FFLAGS+set}
10785 ac_save_FFLAGS=$FFLAGS
10787 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10788 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10789 if test "${ac_cv_prog_f77_g+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10793 cat >conftest.$ac_ext <<_ACEOF
10798 rm -f conftest.$ac_objext
10799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10800 (eval $ac_compile) 2>conftest.er1
10802 grep -v '^ *+' conftest.er1 >conftest.err
10804 cat conftest.err >&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } &&
10807 { ac_try='test -z "$ac_f77_werror_flag"
10808 || test ! -s conftest.err'
10809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10810 (eval $ac_try) 2>&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; } &&
10814 { ac_try='test -s conftest.$ac_objext'
10815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816 (eval $ac_try) 2>&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; }; then
10820 ac_cv_prog_f77_g=yes
10822 echo "$as_me: failed program was:" >&5
10823 sed 's/^/| /' conftest.$ac_ext >&5
10825 ac_cv_prog_f77_g=no
10827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10830 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10831 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10832 if test "$ac_test_FFLAGS" = set; then
10833 FFLAGS=$ac_save_FFLAGS
10834 elif test $ac_cv_prog_f77_g = yes; then
10835 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10841 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10848 G77=`test $ac_compiler_gnu = yes && echo yes`
10850 ac_cpp='$CPP $CPPFLAGS'
10851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10857 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10859 # find the maximum length of command line arguments
10860 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10861 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10862 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 # On DJGPP, this test can blow up pretty badly due to problems in libc
10871 # (any single argument exceeding 2000 bytes causes a buffer overrun
10872 # during glob expansion). Even if it were fixed, the result of this
10873 # check would be larger than it should be.
10874 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10878 # Under GNU Hurd, this test is not required because there is
10879 # no limit to the length of command line arguments.
10880 # Libtool will interpret -1 as no limit whatsoever
10881 lt_cv_sys_max_cmd_len=-1;
10885 # On Win9x/ME, this test blows up -- it succeeds, but takes
10886 # about 5 minutes as the teststring grows exponentially.
10887 # Worse, since 9x/ME are not pre-emptively multitasking,
10888 # you end up with a "frozen" computer, even though with patience
10889 # the test eventually succeeds (with a max line length of 256k).
10890 # Instead, let's just punt: use the minimum linelength reported by
10891 # all of the supported platforms: 8192 (on NT/2K/XP).
10892 lt_cv_sys_max_cmd_len=8192;
10896 # On AmigaOS with pdksh, this test takes hours, literally.
10897 # So we just punt and use a minimum line length of 8192.
10898 lt_cv_sys_max_cmd_len=8192;
10901 netbsd* | freebsd* | openbsd* | darwin* )
10902 # This has been around since 386BSD, at least. Likely further.
10903 if test -x /sbin/sysctl; then
10904 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10905 elif test -x /usr/sbin/sysctl; then
10906 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10908 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10910 # And add a safety zone
10911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10915 # If test is not a shell built-in, we'll probably end up computing a
10916 # maximum length that is only half of the actual maximum length, but
10918 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10919 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10920 = "XX$teststring") >/dev/null 2>&1 &&
10921 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10922 lt_cv_sys_max_cmd_len=$new_result &&
10923 test $i != 17 # 1/2 MB should be enough
10926 teststring=$teststring$teststring
10929 # Add a significant safety factor because C++ compilers can tack on massive
10930 # amounts of additional arguments before passing them to the linker.
10931 # It appears as though 1/2 is a usable value.
10932 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10938 if test -n $lt_cv_sys_max_cmd_len ; then
10939 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10940 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10942 echo "$as_me:$LINENO: result: none" >&5
10943 echo "${ECHO_T}none" >&6
10949 # Check for command to grab the raw symbol name followed by C symbol from nm.
10950 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10951 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10952 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
10956 # These are sane defaults that work on at least a few old systems.
10957 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10959 # Character class describing NM global symbol codes.
10960 symcode='[BCDEGRST]'
10962 # Regexp to match symbols that can be accessed directly from C.
10963 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10965 # Transform the above into a raw symbol and a C symbol.
10966 symxfrm='\1 \2\3 \3'
10968 # Transform an extracted symbol line into a proper C declaration
10969 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10971 # Transform an extracted symbol line into symbol name and symbol address
10972 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'"
10974 # Define system-specific variables.
10979 cygwin* | mingw* | pw32*)
10980 symcode='[ABCDGISTW]'
10982 hpux*) # Its linker distinguishes data from code symbols
10983 if test "$host_cpu" = ia64; then
10984 symcode='[ABCDEGRST]'
10986 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10987 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'"
10990 if test "$host_cpu" = ia64; then
10991 symcode='[ABCDGIRSTW]'
10992 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10993 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'"
10996 irix* | nonstopux*)
10997 symcode='[BCDEGRST]'
11000 symcode='[BCDEGQRST]'
11010 # Handle CRLF in mingw tool chain
11014 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11018 # If we're using GNU nm, then use its standard symbol codes.
11019 case `$NM -V 2>&1` in
11020 *GNU* | *'with BFD'*)
11021 symcode='[ABCDGIRSTW]' ;;
11024 # Try without a prefix undercore, then with it.
11025 for ac_symprfx in "" "_"; do
11027 # Write the raw and C identifiers.
11028 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11030 # Check to see that the pipe works correctly.
11034 cat > conftest.$ac_ext <<EOF
11039 void nm_test_func(){}
11043 int main(){nm_test_var='a';nm_test_func();return(0);}
11046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11047 (eval $ac_compile) 2>&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; then
11051 # Now try to grab the symbols.
11053 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11054 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } && test -s "$nlist"; then
11058 # Try sorting and uniquifying the output.
11059 if sort "$nlist" | uniq > "$nlist"T; then
11060 mv -f "$nlist"T "$nlist"
11065 # Make sure that we snagged all the symbols we need.
11066 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11067 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11068 cat <<EOF > conftest.$ac_ext
11074 # Now generate the symbol file.
11075 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11077 cat <<EOF >> conftest.$ac_ext
11078 #if defined (__STDC__) && __STDC__
11079 # define lt_ptr_t void *
11081 # define lt_ptr_t char *
11085 /* The mapping between symbol names and symbols. */
11090 lt_preloaded_symbols[] =
11093 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11094 cat <<\EOF >> conftest.$ac_ext
11102 # Now try linking the two files.
11103 mv conftest.$ac_objext conftstm.$ac_objext
11104 lt_save_LIBS="$LIBS"
11105 lt_save_CFLAGS="$CFLAGS"
11106 LIBS="conftstm.$ac_objext"
11107 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11109 (eval $ac_link) 2>&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11115 LIBS="$lt_save_LIBS"
11116 CFLAGS="$lt_save_CFLAGS"
11118 echo "cannot find nm_test_func in $nlist" >&5
11121 echo "cannot find nm_test_var in $nlist" >&5
11124 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11127 echo "$progname: failed program was:" >&5
11128 cat conftest.$ac_ext >&5
11130 rm -f conftest* conftst*
11132 # Do not use the global_symbol_pipe unless it works.
11133 if test "$pipe_works" = yes; then
11136 lt_cv_sys_global_symbol_pipe=
11142 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11143 lt_cv_sys_global_symbol_to_cdecl=
11145 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11146 echo "$as_me:$LINENO: result: failed" >&5
11147 echo "${ECHO_T}failed" >&6
11149 echo "$as_me:$LINENO: result: ok" >&5
11150 echo "${ECHO_T}ok" >&6
11153 echo "$as_me:$LINENO: checking for objdir" >&5
11154 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11155 if test "${lt_cv_objdir+set}" = set; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 rm -f .libs 2>/dev/null
11159 mkdir .libs 2>/dev/null
11160 if test -d .libs; then
11163 # MS-DOS does not allow filenames that begin with a dot.
11166 rmdir .libs 2>/dev/null
11168 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11169 echo "${ECHO_T}$lt_cv_objdir" >&6
11170 objdir=$lt_cv_objdir
11178 # AIX sometimes has problems with the GCC collect2 program. For some
11179 # reason, if we set the COLLECT_NAMES environment variable, the problems
11180 # vanish in a puff of smoke.
11181 if test "X${COLLECT_NAMES+set}" != Xset; then
11183 export COLLECT_NAMES
11188 # Sed substitution that helps us do robust quoting. It backslashifies
11189 # metacharacters that are still active within double-quoted strings.
11190 Xsed='sed -e s/^X//'
11191 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11193 # Same as above, but do not quote variable references.
11194 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11196 # Sed substitution to delay expansion of an escaped shell variable in a
11197 # double_quote_subst'ed string.
11198 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11200 # Sed substitution to avoid accidental globbing in evaled expressions
11201 no_glob_subst='s/\*/\\\*/g'
11206 # Global variables:
11207 default_ofile=mklib
11208 can_build_shared=yes
11210 # All known linkers require a `.a' archive for static linking (except M$VC,
11211 # which needs '.lib').
11213 ltmain="$ac_aux_dir/ltmain.sh"
11214 ofile="$default_ofile"
11215 with_gnu_ld="$lt_cv_prog_gnu_ld"
11217 if test -n "$ac_tool_prefix"; then
11218 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11219 set dummy ${ac_tool_prefix}ar; ac_word=$2
11220 echo "$as_me:$LINENO: checking for $ac_word" >&5
11221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11222 if test "${ac_cv_prog_AR+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11225 if test -n "$AR"; then
11226 ac_cv_prog_AR="$AR" # Let the user override the test.
11228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229 for as_dir in $PATH
11232 test -z "$as_dir" && as_dir=.
11233 for ac_exec_ext in '' $ac_executable_extensions; do
11234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11235 ac_cv_prog_AR="${ac_tool_prefix}ar"
11236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11245 if test -n "$AR"; then
11246 echo "$as_me:$LINENO: result: $AR" >&5
11247 echo "${ECHO_T}$AR" >&6
11249 echo "$as_me:$LINENO: result: no" >&5
11250 echo "${ECHO_T}no" >&6
11254 if test -z "$ac_cv_prog_AR"; then
11256 # Extract the first word of "ar", so it can be a program name with args.
11257 set dummy ar; ac_word=$2
11258 echo "$as_me:$LINENO: checking for $ac_word" >&5
11259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11260 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11263 if test -n "$ac_ct_AR"; then
11264 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267 for as_dir in $PATH
11270 test -z "$as_dir" && as_dir=.
11271 for ac_exec_ext in '' $ac_executable_extensions; do
11272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11273 ac_cv_prog_ac_ct_AR="ar"
11274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11280 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11283 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11284 if test -n "$ac_ct_AR"; then
11285 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11286 echo "${ECHO_T}$ac_ct_AR" >&6
11288 echo "$as_me:$LINENO: result: no" >&5
11289 echo "${ECHO_T}no" >&6
11294 AR="$ac_cv_prog_AR"
11297 if test -n "$ac_tool_prefix"; then
11298 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11299 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11300 echo "$as_me:$LINENO: checking for $ac_word" >&5
11301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11302 if test "${ac_cv_prog_RANLIB+set}" = set; then
11303 echo $ECHO_N "(cached) $ECHO_C" >&6
11305 if test -n "$RANLIB"; then
11306 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11309 for as_dir in $PATH
11312 test -z "$as_dir" && as_dir=.
11313 for ac_exec_ext in '' $ac_executable_extensions; do
11314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11315 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11324 RANLIB=$ac_cv_prog_RANLIB
11325 if test -n "$RANLIB"; then
11326 echo "$as_me:$LINENO: result: $RANLIB" >&5
11327 echo "${ECHO_T}$RANLIB" >&6
11329 echo "$as_me:$LINENO: result: no" >&5
11330 echo "${ECHO_T}no" >&6
11334 if test -z "$ac_cv_prog_RANLIB"; then
11335 ac_ct_RANLIB=$RANLIB
11336 # Extract the first word of "ranlib", so it can be a program name with args.
11337 set dummy ranlib; ac_word=$2
11338 echo "$as_me:$LINENO: checking for $ac_word" >&5
11339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11340 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11343 if test -n "$ac_ct_RANLIB"; then
11344 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11347 for as_dir in $PATH
11350 test -z "$as_dir" && as_dir=.
11351 for ac_exec_ext in '' $ac_executable_extensions; do
11352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11353 ac_cv_prog_ac_ct_RANLIB="ranlib"
11354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11360 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11363 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11364 if test -n "$ac_ct_RANLIB"; then
11365 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11366 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11368 echo "$as_me:$LINENO: result: no" >&5
11369 echo "${ECHO_T}no" >&6
11372 RANLIB=$ac_ct_RANLIB
11374 RANLIB="$ac_cv_prog_RANLIB"
11377 if test -n "$ac_tool_prefix"; then
11378 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11379 set dummy ${ac_tool_prefix}strip; ac_word=$2
11380 echo "$as_me:$LINENO: checking for $ac_word" >&5
11381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11382 if test "${ac_cv_prog_STRIP+set}" = set; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 if test -n "$STRIP"; then
11386 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389 for as_dir in $PATH
11392 test -z "$as_dir" && as_dir=.
11393 for ac_exec_ext in '' $ac_executable_extensions; do
11394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11395 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11404 STRIP=$ac_cv_prog_STRIP
11405 if test -n "$STRIP"; then
11406 echo "$as_me:$LINENO: result: $STRIP" >&5
11407 echo "${ECHO_T}$STRIP" >&6
11409 echo "$as_me:$LINENO: result: no" >&5
11410 echo "${ECHO_T}no" >&6
11414 if test -z "$ac_cv_prog_STRIP"; then
11416 # Extract the first word of "strip", so it can be a program name with args.
11417 set dummy strip; ac_word=$2
11418 echo "$as_me:$LINENO: checking for $ac_word" >&5
11419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11420 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11421 echo $ECHO_N "(cached) $ECHO_C" >&6
11423 if test -n "$ac_ct_STRIP"; then
11424 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11427 for as_dir in $PATH
11430 test -z "$as_dir" && as_dir=.
11431 for ac_exec_ext in '' $ac_executable_extensions; do
11432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11433 ac_cv_prog_ac_ct_STRIP="strip"
11434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11440 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11443 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11444 if test -n "$ac_ct_STRIP"; then
11445 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11446 echo "${ECHO_T}$ac_ct_STRIP" >&6
11448 echo "$as_me:$LINENO: result: no" >&5
11449 echo "${ECHO_T}no" >&6
11454 STRIP="$ac_cv_prog_STRIP"
11459 old_CFLAGS="$CFLAGS"
11461 # Set sane defaults for various variables
11462 test -z "$AR" && AR=ar
11463 test -z "$AR_FLAGS" && AR_FLAGS=cru
11464 test -z "$AS" && AS=as
11465 test -z "$CC" && CC=cc
11466 test -z "$LTCC" && LTCC=$CC
11467 test -z "$DLLTOOL" && DLLTOOL=dlltool
11468 test -z "$LD" && LD=ld
11469 test -z "$LN_S" && LN_S="ln -s"
11470 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11471 test -z "$NM" && NM=nm
11472 test -z "$SED" && SED=sed
11473 test -z "$OBJDUMP" && OBJDUMP=objdump
11474 test -z "$RANLIB" && RANLIB=:
11475 test -z "$STRIP" && STRIP=:
11476 test -z "$ac_objext" && ac_objext=o
11478 # Determine commands to create old-style static archives.
11479 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11480 old_postinstall_cmds='chmod 644 $oldlib'
11481 old_postuninstall_cmds=
11483 if test -n "$RANLIB"; then
11486 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11489 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11492 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11495 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11497 # Only perform the check for file, if the check method requires it
11498 case $deplibs_check_method in
11500 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11501 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11502 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11503 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11504 echo $ECHO_N "(cached) $ECHO_C" >&6
11508 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11511 lt_save_MAGIC_CMD="$MAGIC_CMD"
11512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11513 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11514 for ac_dir in $ac_dummy; do
11516 test -z "$ac_dir" && ac_dir=.
11517 if test -f $ac_dir/${ac_tool_prefix}file; then
11518 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11519 if test -n "$file_magic_test_file"; then
11520 case $deplibs_check_method in
11522 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11523 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11524 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11525 $EGREP "$file_magic_regex" > /dev/null; then
11530 *** Warning: the command libtool uses to detect shared libraries,
11531 *** $file_magic_cmd, produces output that libtool cannot recognize.
11532 *** The result is that libtool may fail to recognize shared libraries
11533 *** as such. This will affect the creation of libtool libraries that
11534 *** depend on shared libraries, but programs linked with such libtool
11535 *** libraries will work regardless of this problem. Nevertheless, you
11536 *** may want to report the problem to your system manager and/or to
11537 *** bug-libtool@gnu.org
11547 MAGIC_CMD="$lt_save_MAGIC_CMD"
11552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11553 if test -n "$MAGIC_CMD"; then
11554 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11555 echo "${ECHO_T}$MAGIC_CMD" >&6
11557 echo "$as_me:$LINENO: result: no" >&5
11558 echo "${ECHO_T}no" >&6
11561 if test -z "$lt_cv_path_MAGIC_CMD"; then
11562 if test -n "$ac_tool_prefix"; then
11563 echo "$as_me:$LINENO: checking for file" >&5
11564 echo $ECHO_N "checking for file... $ECHO_C" >&6
11565 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11570 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11573 lt_save_MAGIC_CMD="$MAGIC_CMD"
11574 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11575 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11576 for ac_dir in $ac_dummy; do
11578 test -z "$ac_dir" && ac_dir=.
11579 if test -f $ac_dir/file; then
11580 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11581 if test -n "$file_magic_test_file"; then
11582 case $deplibs_check_method in
11584 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11585 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11586 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11587 $EGREP "$file_magic_regex" > /dev/null; then
11592 *** Warning: the command libtool uses to detect shared libraries,
11593 *** $file_magic_cmd, produces output that libtool cannot recognize.
11594 *** The result is that libtool may fail to recognize shared libraries
11595 *** as such. This will affect the creation of libtool libraries that
11596 *** depend on shared libraries, but programs linked with such libtool
11597 *** libraries will work regardless of this problem. Nevertheless, you
11598 *** may want to report the problem to your system manager and/or to
11599 *** bug-libtool@gnu.org
11609 MAGIC_CMD="$lt_save_MAGIC_CMD"
11614 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11615 if test -n "$MAGIC_CMD"; then
11616 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11617 echo "${ECHO_T}$MAGIC_CMD" >&6
11619 echo "$as_me:$LINENO: result: no" >&5
11620 echo "${ECHO_T}no" >&6
11633 enable_win32_dll=no
11635 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11636 if test "${enable_libtool_lock+set}" = set; then
11637 enableval="$enable_libtool_lock"
11640 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11643 # Check whether --with-pic or --without-pic was given.
11644 if test "${with_pic+set}" = set; then
11645 withval="$with_pic"
11646 pic_mode="$withval"
11650 test -z "$pic_mode" && pic_mode=default
11652 # Use C for the default configuration in the libtool script
11656 ac_cpp='$CPP $CPPFLAGS'
11657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11662 # Source file extension for C test sources.
11665 # Object file extension for compiled C test sources.
11669 # Code to be used in simple compile tests
11670 lt_simple_compile_test_code="int some_variable = 0;\n"
11672 # Code to be used in simple link tests
11673 lt_simple_link_test_code='int main(){return(0);}\n'
11676 # If no C compiler was specified, use CC.
11679 # Allow CC to be a program name with arguments.
11684 # Check for any special shared library compilation flags.
11687 if test "$GCC" = no; then
11690 lt_prog_cc_shlib='-belf'
11694 if test -n "$lt_prog_cc_shlib"; then
11695 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11696 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11697 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11699 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11700 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11701 lt_cv_prog_cc_can_build_shared=no
11707 # Check to make sure the static flag actually works.
11709 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11710 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11711 if test "${lt_prog_compiler_static_works+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11714 lt_prog_compiler_static_works=no
11715 save_LDFLAGS="$LDFLAGS"
11716 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11717 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11718 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11719 # The compiler can only warn and ignore the option if not recognized
11720 # So say no if there are warnings
11721 if test -s conftest.err; then
11722 # Append any errors to the config.log.
11723 cat conftest.err 1>&5
11725 lt_prog_compiler_static_works=yes
11729 LDFLAGS="$save_LDFLAGS"
11732 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11733 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11735 if test x"$lt_prog_compiler_static_works" = xyes; then
11738 lt_prog_compiler_static=
11744 lt_prog_compiler_no_builtin_flag=
11746 if test "$GCC" = yes; then
11747 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11750 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11751 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11752 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 lt_cv_prog_compiler_rtti_exceptions=no
11756 ac_outfile=conftest.$ac_objext
11757 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11758 lt_compiler_flag="-fno-rtti -fno-exceptions"
11759 # Insert the option either (1) after the last *FLAGS variable, or
11760 # (2) before a word containing "conftest.", or (3) at the end.
11761 # Note that $ac_compile itself does not contain backslashes and begins
11762 # with a dollar sign (not a hyphen), so the echo should work correctly.
11763 # The option is referenced via a variable to avoid confusing sed.
11764 lt_compile=`echo "$ac_compile" | $SED \
11765 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11767 -e 's:$: $lt_compiler_flag:'`
11768 (eval echo "\"\$as_me:11768: $lt_compile\"" >&5)
11769 (eval "$lt_compile" 2>conftest.err)
11771 cat conftest.err >&5
11772 echo "$as_me:11772: \$? = $ac_status" >&5
11773 if (exit $ac_status) && test -s "$ac_outfile"; then
11774 # The compiler can only warn and ignore the option if not recognized
11775 # So say no if there are warnings
11776 if test ! -s conftest.err; then
11777 lt_cv_prog_compiler_rtti_exceptions=yes
11783 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11784 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11786 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11787 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11794 lt_prog_compiler_wl=
11795 lt_prog_compiler_pic=
11796 lt_prog_compiler_static=
11798 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11799 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11801 if test "$GCC" = yes; then
11802 lt_prog_compiler_wl='-Wl,'
11803 lt_prog_compiler_static='-static'
11807 # All AIX code is PIC.
11808 if test "$host_cpu" = ia64; then
11809 # AIX 5 now supports IA64 processor
11810 lt_prog_compiler_static='-Bstatic'
11815 # FIXME: we need at least 68020 code to build shared libraries, but
11816 # adding the `-m68020' flag to GCC prevents building anything better,
11818 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11821 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11822 # PIC is the default for these OSes.
11825 mingw* | pw32* | os2*)
11826 # This hack is so that the source file can tell whether it is being
11827 # built for inclusion in a dll (and should export symbols for example).
11828 lt_prog_compiler_pic='-DDLL_EXPORT'
11831 darwin* | rhapsody*)
11832 # PIC is the default on this platform
11833 # Common symbols not allowed in MH_DYLIB files
11834 lt_prog_compiler_pic='-fno-common'
11838 # Just because we use GCC doesn't mean we suddenly get shared libraries
11839 # on systems that don't support them.
11840 lt_prog_compiler_can_build_shared=no
11845 if test -d /usr/nec; then
11846 lt_prog_compiler_pic=-Kconform_pic
11851 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11852 # not for PA HP-UX.
11853 case "$host_cpu" in
11858 lt_prog_compiler_pic='-fPIC'
11864 lt_prog_compiler_pic='-fPIC'
11868 # PORTME Check for flag to pass linker flags through the system compiler.
11871 lt_prog_compiler_wl='-Wl,'
11872 if test "$host_cpu" = ia64; then
11873 # AIX 5 now supports IA64 processor
11874 lt_prog_compiler_static='-Bstatic'
11876 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11880 # PIC is the default on this platform
11881 # Common symbols not allowed in MH_DYLIB files
11882 case "$cc_basename" in
11884 lt_prog_compiler_pic='-qnocommon'
11885 lt_prog_compiler_wl='-Wl,'
11890 mingw* | pw32* | os2*)
11891 # This hack is so that the source file can tell whether it is being
11892 # built for inclusion in a dll (and should export symbols for example).
11893 lt_prog_compiler_pic='-DDLL_EXPORT'
11896 hpux9* | hpux10* | hpux11*)
11897 lt_prog_compiler_wl='-Wl,'
11898 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11899 # not for PA HP-UX.
11900 case "$host_cpu" in
11905 lt_prog_compiler_pic='+Z'
11908 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11909 lt_prog_compiler_static='${wl}-a ${wl}archive'
11912 irix5* | irix6* | nonstopux*)
11913 lt_prog_compiler_wl='-Wl,'
11914 # PIC (with -KPIC) is the default.
11915 lt_prog_compiler_static='-non_shared'
11919 lt_prog_compiler_pic='-KPIC'
11920 lt_prog_compiler_static='-Bstatic'
11926 lt_prog_compiler_wl='-Wl,'
11927 lt_prog_compiler_pic='-KPIC'
11928 lt_prog_compiler_static='-static'
11931 lt_prog_compiler_wl='-Wl,'
11932 # All Alpha code is PIC.
11933 lt_prog_compiler_static='-non_shared'
11938 osf3* | osf4* | osf5*)
11939 lt_prog_compiler_wl='-Wl,'
11940 # All OSF/1 code is PIC.
11941 lt_prog_compiler_static='-non_shared'
11945 lt_prog_compiler_pic='-Kpic'
11946 lt_prog_compiler_static='-dn'
11950 lt_prog_compiler_wl='-Wl,'
11951 lt_prog_compiler_pic='-KPIC'
11952 lt_prog_compiler_static='-Bstatic'
11956 lt_prog_compiler_wl='-Qoption ld '
11957 lt_prog_compiler_pic='-PIC'
11958 lt_prog_compiler_static='-Bstatic'
11961 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11962 lt_prog_compiler_wl='-Wl,'
11963 lt_prog_compiler_pic='-KPIC'
11964 lt_prog_compiler_static='-Bstatic'
11968 if test -d /usr/nec ;then
11969 lt_prog_compiler_pic='-Kconform_pic'
11970 lt_prog_compiler_static='-Bstatic'
11975 lt_prog_compiler_pic='-pic'
11976 lt_prog_compiler_static='-Bstatic'
11980 lt_prog_compiler_can_build_shared=no
11985 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11986 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11989 # Check to make sure the PIC flag actually works.
11991 if test -n "$lt_prog_compiler_pic"; then
11993 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11994 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11995 if test "${lt_prog_compiler_pic_works+set}" = set; then
11996 echo $ECHO_N "(cached) $ECHO_C" >&6
11998 lt_prog_compiler_pic_works=no
11999 ac_outfile=conftest.$ac_objext
12000 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12001 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12002 # Insert the option either (1) after the last *FLAGS variable, or
12003 # (2) before a word containing "conftest.", or (3) at the end.
12004 # Note that $ac_compile itself does not contain backslashes and begins
12005 # with a dollar sign (not a hyphen), so the echo should work correctly.
12006 # The option is referenced via a variable to avoid confusing sed.
12007 lt_compile=`echo "$ac_compile" | $SED \
12008 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12010 -e 's:$: $lt_compiler_flag:'`
12011 (eval echo "\"\$as_me:12011: $lt_compile\"" >&5)
12012 (eval "$lt_compile" 2>conftest.err)
12014 cat conftest.err >&5
12015 echo "$as_me:12015: \$? = $ac_status" >&5
12016 if (exit $ac_status) && test -s "$ac_outfile"; then
12017 # The compiler can only warn and ignore the option if not recognized
12018 # So say no if there are warnings
12019 if test ! -s conftest.err; then
12020 lt_prog_compiler_pic_works=yes
12026 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12027 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12029 if test x"$lt_prog_compiler_pic_works" = xyes; then
12030 case $lt_prog_compiler_pic in
12032 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12035 lt_prog_compiler_pic=
12036 lt_prog_compiler_can_build_shared=no
12041 # For platforms which do not support PIC, -DPIC is meaningless:
12043 lt_prog_compiler_pic=
12046 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12050 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12051 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12052 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 lt_cv_prog_compiler_c_o=no
12056 $rm -r conftest 2>/dev/null
12060 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12062 lt_compiler_flag="-o out/conftest2.$ac_objext"
12063 # Insert the option either (1) after the last *FLAGS variable, or
12064 # (2) before a word containing "conftest.", or (3) at the end.
12065 # Note that $ac_compile itself does not contain backslashes and begins
12066 # with a dollar sign (not a hyphen), so the echo should work correctly.
12067 lt_compile=`echo "$ac_compile" | $SED \
12068 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12070 -e 's:$: $lt_compiler_flag:'`
12071 (eval echo "\"\$as_me:12071: $lt_compile\"" >&5)
12072 (eval "$lt_compile" 2>out/conftest.err)
12074 cat out/conftest.err >&5
12075 echo "$as_me:12075: \$? = $ac_status" >&5
12076 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12078 # The compiler can only warn and ignore the option if not recognized
12079 # So say no if there are warnings
12080 if test ! -s out/conftest.err; then
12081 lt_cv_prog_compiler_c_o=yes
12086 # SGI C++ compiler will create directory out/ii_files/ for
12087 # template instantiation
12088 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12089 $rm out/* && rmdir out
12095 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12096 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12099 hard_links="nottested"
12100 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12101 # do not overwrite the value of need_locks provided by the user
12102 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12103 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12108 ln conftest.a conftest.b 2>&5 || hard_links=no
12109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12110 echo "$as_me:$LINENO: result: $hard_links" >&5
12111 echo "${ECHO_T}$hard_links" >&6
12112 if test "$hard_links" = no; then
12113 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12114 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12121 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12122 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12125 allow_undefined_flag=
12126 enable_shared_with_static_runtimes=no
12128 archive_expsym_cmds=
12129 old_archive_From_new_cmds=
12130 old_archive_from_expsyms_cmds=
12131 export_dynamic_flag_spec=
12132 whole_archive_flag_spec=
12133 thread_safe_flag_spec=
12134 hardcode_libdir_flag_spec=
12135 hardcode_libdir_flag_spec_ld=
12136 hardcode_libdir_separator=
12138 hardcode_minus_L=no
12139 hardcode_shlibpath_var=unsupported
12140 link_all_deplibs=unknown
12141 hardcode_automatic=no
12143 module_expsym_cmds=
12144 always_export_symbols=no
12145 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12146 # include_expsyms should be a list of space-separated symbols to be *always*
12147 # included in the symbol list
12149 # exclude_expsyms can be an extended regexp of symbols to exclude
12150 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12151 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12152 # as well as any symbol that contains `d'.
12153 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12154 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12155 # platforms (ab)use it in PIC code, but their linkers get confused if
12156 # the symbol is explicitly referenced. Since portable code cannot
12157 # rely on this symbol name, it's probably fine to never include it in
12158 # preloaded symbol tables.
12159 extract_expsyms_cmds=
12162 cygwin* | mingw* | pw32*)
12163 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12164 # When not using gcc, we currently assume that we are using
12165 # Microsoft Visual C++.
12166 if test "$GCC" != yes; then
12176 if test "$with_gnu_ld" = yes; then
12177 # If archive_cmds runs LD, not CC, wlarc should be empty
12180 # See if GNU ld supports shared libraries.
12182 aix3* | aix4* | aix5*)
12183 # On AIX/PPC, the GNU linker is very broken
12184 if test "$host_cpu" != ia64; then
12188 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12189 *** to be unable to reliably create shared libraries on AIX.
12190 *** Therefore, libtool is disabling shared libraries support. If you
12191 *** really care for shared libraries, you may want to modify your PATH
12192 *** so that a non-GNU linker is found, and then restart.
12199 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)'
12200 hardcode_libdir_flag_spec='-L$libdir'
12201 hardcode_minus_L=yes
12203 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12204 # that the semantics of dynamic libraries on AmigaOS, at least up
12205 # to version 4, is to share data among multiple programs linked
12206 # with the same dynamic library. Since this doesn't match the
12207 # behavior of shared libraries on other platforms, we can't use
12213 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12214 allow_undefined_flag=unsupported
12215 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12216 # support --undefined. This deserves some investigation. FIXME
12217 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12223 cygwin* | mingw* | pw32*)
12224 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12225 # as there is no search path for DLLs.
12226 hardcode_libdir_flag_spec='-L$libdir'
12227 allow_undefined_flag=unsupported
12228 always_export_symbols=no
12229 enable_shared_with_static_runtimes=yes
12230 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12232 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12234 # If the export-symbols file already is a .def file (1st line
12235 # is EXPORTS), use it as is; otherwise, prepend...
12236 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12237 cp $export_symbols $output_objdir/$soname.def;
12239 echo EXPORTS > $output_objdir/$soname.def;
12240 cat $export_symbols >> $output_objdir/$soname.def;
12242 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12249 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12250 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12254 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12259 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12263 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12264 *** create shared libraries on Solaris systems. Therefore, libtool
12265 *** is disabling shared libraries support. We urge you to upgrade GNU
12266 *** binutils to release 2.9.1 or newer. Another option is to modify
12267 *** your PATH or compiler configuration so that the native linker is
12268 *** used, and then restart.
12271 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12273 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12280 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12282 hardcode_direct=yes
12283 hardcode_shlibpath_var=no
12287 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12288 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12289 archive_cmds="$tmp_archive_cmds"
12290 supports_anon_versioning=no
12291 case `$LD -v 2>/dev/null` in
12292 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12293 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12294 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12295 *\ 2.11.*) ;; # other 2.11 versions
12296 *) supports_anon_versioning=yes ;;
12298 if test $supports_anon_versioning = yes; then
12299 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12300 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12301 $echo "local: *; };" >> $output_objdir/$libname.ver~
12302 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12304 archive_expsym_cmds="$tmp_archive_cmds"
12312 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12314 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12321 if test "$ld_shlibs" = yes; then
12322 runpath_var=LD_RUN_PATH
12323 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12324 export_dynamic_flag_spec='${wl}--export-dynamic'
12325 # ancient GNU ld didn't support --whole-archive et. al.
12326 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12327 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12329 whole_archive_flag_spec=
12333 # PORTME fill in a description of your system's linker (not GNU ld)
12336 allow_undefined_flag=unsupported
12337 always_export_symbols=yes
12338 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'
12339 # Note: this linker hardcodes the directories in LIBPATH if there
12340 # are no directories specified by -L.
12341 hardcode_minus_L=yes
12342 if test "$GCC" = yes && test -z "$link_static_flag"; then
12343 # Neither direct hardcoding nor static linking is supported with a
12345 hardcode_direct=unsupported
12350 if test "$host_cpu" = ia64; then
12351 # On IA64, the linker does run time linking by default, so we don't
12352 # have to do anything special.
12353 aix_use_runtimelinking=no
12354 exp_sym_flag='-Bexport'
12357 # If we're using GNU nm, then we don't want the "-C" option.
12358 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12359 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12360 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'
12362 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'
12364 aix_use_runtimelinking=no
12366 # Test if we are trying to use run time linking or normal
12367 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12368 # need to do runtime linking.
12369 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12370 for ld_flag in $LDFLAGS; do
12371 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12372 aix_use_runtimelinking=yes
12378 exp_sym_flag='-bexport'
12379 no_entry_flag='-bnoentry'
12382 # When large executables or shared objects are built, AIX ld can
12383 # have problems creating the table of contents. If linking a library
12384 # or program results in "error TOC overflow" add -mminimal-toc to
12385 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12386 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12389 hardcode_direct=yes
12390 hardcode_libdir_separator=':'
12391 link_all_deplibs=yes
12393 if test "$GCC" = yes; then
12394 case $host_os in aix4.012|aix4.012.*)
12395 # We only want to do this on AIX 4.2 and lower, the check
12396 # below for broken collect2 doesn't work under 4.3+
12397 collect2name=`${CC} -print-prog-name=collect2`
12398 if test -f "$collect2name" && \
12399 strings "$collect2name" | grep resolve_lib_name >/dev/null
12401 # We have reworked collect2
12402 hardcode_direct=yes
12404 # We have old collect2
12405 hardcode_direct=unsupported
12406 # It fails to find uninstalled libraries when the uninstalled
12407 # path is not listed in the libpath. Setting hardcode_minus_L
12408 # to unsupported forces relinking
12409 hardcode_minus_L=yes
12410 hardcode_libdir_flag_spec='-L$libdir'
12411 hardcode_libdir_separator=
12414 shared_flag='-shared'
12417 if test "$host_cpu" = ia64; then
12418 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12419 # chokes on -Wl,-G. The following line is correct:
12422 if test "$aix_use_runtimelinking" = yes; then
12423 shared_flag='${wl}-G'
12425 shared_flag='${wl}-bM:SRE'
12430 # It seems that -bexpall does not export symbols beginning with
12431 # underscore (_), so it is better to generate a list of symbols to export.
12432 always_export_symbols=yes
12433 if test "$aix_use_runtimelinking" = yes; then
12434 # Warning - without using the other runtime loading flags (-brtl),
12435 # -berok will link without error, but may produce a broken library.
12436 allow_undefined_flag='-berok'
12437 # Determine the default libpath from the value encoded in an empty executable.
12438 cat >conftest.$ac_ext <<_ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h. */
12453 rm -f conftest.$ac_objext conftest$ac_exeext
12454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12455 (eval $ac_link) 2>conftest.er1
12457 grep -v '^ *+' conftest.er1 >conftest.err
12459 cat conftest.err >&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } &&
12462 { ac_try='test -z "$ac_c_werror_flag"
12463 || test ! -s conftest.err'
12464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; } &&
12469 { ac_try='test -s conftest$ac_exeext'
12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12476 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12478 # Check for a 64-bit object if we didn't find anything.
12479 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; }
12482 echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12486 rm -f conftest.err conftest.$ac_objext \
12487 conftest$ac_exeext conftest.$ac_ext
12488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12490 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12491 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"
12493 if test "$host_cpu" = ia64; then
12494 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12495 allow_undefined_flag="-z nodefs"
12496 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"
12498 # Determine the default libpath from the value encoded in an empty executable.
12499 cat >conftest.$ac_ext <<_ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12514 rm -f conftest.$ac_objext conftest$ac_exeext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12516 (eval $ac_link) 2>conftest.er1
12518 grep -v '^ *+' conftest.er1 >conftest.err
12520 cat conftest.err >&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } &&
12523 { ac_try='test -z "$ac_c_werror_flag"
12524 || test ! -s conftest.err'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; } &&
12530 { ac_try='test -s conftest$ac_exeext'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
12537 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12539 # Check for a 64-bit object if we didn't find anything.
12540 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; }
12543 echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12547 rm -f conftest.err conftest.$ac_objext \
12548 conftest$ac_exeext conftest.$ac_ext
12549 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12551 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12552 # Warning - without using the other run time loading flags,
12553 # -berok will link without error, but may produce a broken library.
12554 no_undefined_flag=' ${wl}-bernotok'
12555 allow_undefined_flag=' ${wl}-berok'
12556 # -bexpall does not export symbols beginning with underscore (_)
12557 always_export_symbols=yes
12558 # Exported symbols can be pulled into shared objects from archives
12559 whole_archive_flag_spec=' '
12560 archive_cmds_need_lc=yes
12561 # This is similar to how AIX traditionally builds it's shared libraries.
12562 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'
12568 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)'
12569 hardcode_libdir_flag_spec='-L$libdir'
12570 hardcode_minus_L=yes
12571 # see comment about different semantics on the GNU ld section
12576 export_dynamic_flag_spec=-rdynamic
12579 cygwin* | mingw* | pw32*)
12580 # When not using gcc, we currently assume that we are using
12581 # Microsoft Visual C++.
12582 # hardcode_libdir_flag_spec is actually meaningless, as there is
12583 # no search path for DLLs.
12584 hardcode_libdir_flag_spec=' '
12585 allow_undefined_flag=unsupported
12586 # Tell ltmain to make .lib files, not .a files.
12588 # Tell ltmain to make .dll files, not .so files.
12590 # FIXME: Setting linknames here is a bad hack.
12591 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12592 # The linker will automatically build a .lib file if we build a DLL.
12593 old_archive_From_new_cmds='true'
12594 # FIXME: Should let the user specify the lib program.
12595 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12596 fix_srcfile_path='`cygpath -w "$srcfile"`'
12597 enable_shared_with_static_runtimes=yes
12600 darwin* | rhapsody*)
12602 rhapsody* | darwin1.[012])
12603 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12606 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12607 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12609 case ${MACOSX_DEPLOYMENT_TARGET} in
12611 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12614 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12620 archive_cmds_need_lc=no
12622 hardcode_automatic=yes
12623 hardcode_shlibpath_var=unsupported
12624 whole_archive_flag_spec=''
12625 link_all_deplibs=yes
12626 if test "$GCC" = yes ; then
12627 output_verbose_link_cmd='echo'
12628 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12629 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12630 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12631 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}'
12632 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}'
12634 case "$cc_basename" in
12636 output_verbose_link_cmd='echo'
12637 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12638 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12639 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12640 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}'
12641 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}'
12651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12652 hardcode_libdir_flag_spec='-L$libdir'
12653 hardcode_shlibpath_var=no
12660 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12661 # support. Future versions do this automatically, but an explicit c++rt0.o
12662 # does not break anything, and helps significantly (at the cost of a little
12665 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12666 hardcode_libdir_flag_spec='-R$libdir'
12667 hardcode_direct=yes
12668 hardcode_shlibpath_var=no
12671 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12673 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12674 hardcode_direct=yes
12675 hardcode_minus_L=yes
12676 hardcode_shlibpath_var=no
12679 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12680 freebsd* | kfreebsd*-gnu)
12681 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12682 hardcode_libdir_flag_spec='-R$libdir'
12683 hardcode_direct=yes
12684 hardcode_shlibpath_var=no
12688 if test "$GCC" = yes; then
12689 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'
12691 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'
12693 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12694 hardcode_libdir_separator=:
12695 hardcode_direct=yes
12697 # hardcode_minus_L: Not really in the search PATH,
12698 # but as the default location of the library.
12699 hardcode_minus_L=yes
12700 export_dynamic_flag_spec='${wl}-E'
12704 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12705 case "$host_cpu" in
12707 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12710 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12714 case "$host_cpu" in
12716 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12719 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12723 if test "$with_gnu_ld" = no; then
12724 case "$host_cpu" in
12726 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12727 hardcode_libdir_flag_spec_ld='+b $libdir'
12728 hardcode_libdir_separator=:
12730 hardcode_shlibpath_var=no
12733 hardcode_libdir_flag_spec='-L$libdir'
12735 hardcode_shlibpath_var=no
12737 # hardcode_minus_L: Not really in the search PATH,
12738 # but as the default location of the library.
12739 hardcode_minus_L=yes
12742 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12743 hardcode_libdir_separator=:
12744 hardcode_direct=yes
12745 export_dynamic_flag_spec='${wl}-E'
12747 # hardcode_minus_L: Not really in the search PATH,
12748 # but as the default location of the library.
12749 hardcode_minus_L=yes
12755 irix5* | irix6* | nonstopux*)
12756 if test "$GCC" = yes; then
12757 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'
12759 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'
12760 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12762 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12763 hardcode_libdir_separator=:
12764 link_all_deplibs=yes
12768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12771 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12773 hardcode_libdir_flag_spec='-R$libdir'
12774 hardcode_direct=yes
12775 hardcode_shlibpath_var=no
12779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12780 hardcode_direct=yes
12781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12782 hardcode_libdir_separator=:
12783 hardcode_shlibpath_var=no
12787 hardcode_direct=yes
12788 hardcode_shlibpath_var=no
12789 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12790 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12791 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12792 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12793 export_dynamic_flag_spec='${wl}-E'
12796 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12798 hardcode_libdir_flag_spec='-R$libdir'
12801 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12802 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12809 hardcode_libdir_flag_spec='-L$libdir'
12810 hardcode_minus_L=yes
12811 allow_undefined_flag=unsupported
12812 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'
12813 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12817 if test "$GCC" = yes; then
12818 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12819 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'
12821 allow_undefined_flag=' -expect_unresolved \*'
12822 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'
12824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12825 hardcode_libdir_separator=:
12828 osf4* | osf5*) # as osf3* with the addition of -msym flag
12829 if test "$GCC" = yes; then
12830 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12831 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'
12832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12834 allow_undefined_flag=' -expect_unresolved \*'
12835 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'
12836 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12837 $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'
12839 # Both c and cxx compiler support -rpath directly
12840 hardcode_libdir_flag_spec='-rpath $libdir'
12842 hardcode_libdir_separator=:
12846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12847 hardcode_shlibpath_var=no
12848 export_dynamic_flag_spec='${wl}-Bexport'
12849 runpath_var=LD_RUN_PATH
12850 hardcode_runpath_var=yes
12854 no_undefined_flag=' -z text'
12855 if test "$GCC" = yes; then
12856 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12857 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12858 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12860 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12861 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12862 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12864 hardcode_libdir_flag_spec='-R$libdir'
12865 hardcode_shlibpath_var=no
12867 solaris2.[0-5] | solaris2.[0-5].*) ;;
12868 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12869 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12871 link_all_deplibs=yes
12875 if test "x$host_vendor" = xsequent; then
12876 # Use $CC to link under sequent, because it throws in some extra .o
12877 # files that make .init and .fini sections work.
12878 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12880 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12882 hardcode_libdir_flag_spec='-L$libdir'
12883 hardcode_direct=yes
12884 hardcode_minus_L=yes
12885 hardcode_shlibpath_var=no
12889 case $host_vendor in
12891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12892 hardcode_direct=yes # is this really true???
12895 ## LD is ld it makes a PLAMLIB
12896 ## CC just makes a GrossModule.
12897 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12898 reload_cmds='$CC -r -o $output$reload_objs'
12902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12903 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12906 runpath_var='LD_RUN_PATH'
12907 hardcode_shlibpath_var=no
12911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12912 hardcode_shlibpath_var=no
12913 export_dynamic_flag_spec='-Bexport'
12917 if test -d /usr/nec; then
12918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12919 hardcode_shlibpath_var=no
12920 runpath_var=LD_RUN_PATH
12921 hardcode_runpath_var=yes
12927 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12928 hardcode_direct=yes
12929 hardcode_minus_L=no
12930 hardcode_shlibpath_var=no
12931 hardcode_runpath_var=yes
12932 runpath_var=LD_RUN_PATH
12935 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12936 no_undefined_flag='${wl}-z ${wl}text'
12937 if test "$GCC" = yes; then
12938 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12940 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12942 runpath_var='LD_RUN_PATH'
12943 hardcode_shlibpath_var=no
12947 no_undefined_flag=' -z text'
12948 # $CC -shared without GNU ld will not create a library from C++
12949 # object files and a static libstdc++, better avoid it by now
12950 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12951 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12952 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12953 hardcode_libdir_flag_spec=
12954 hardcode_shlibpath_var=no
12955 runpath_var='LD_RUN_PATH'
12959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12960 hardcode_libdir_flag_spec='-L$libdir'
12961 hardcode_shlibpath_var=no
12970 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12971 echo "${ECHO_T}$ld_shlibs" >&6
12972 test "$ld_shlibs" = no && can_build_shared=no
12974 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12975 if test "$GCC" = yes; then
12976 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12980 # Do we need to explicitly link libc?
12982 case "x$archive_cmds_need_lc" in
12984 # Assume -lc should be added
12985 archive_cmds_need_lc=yes
12987 if test "$enable_shared" = yes && test "$GCC" = yes; then
12988 case $archive_cmds in
12990 # FIXME: we may have to deal with multi-command sequences.
12993 # Test whether the compiler implicitly links with -lc since on some
12994 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12995 # to ld, don't add -lc before -lgcc.
12996 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12997 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12999 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13002 (eval $ac_compile) 2>&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } 2>conftest.err; then
13008 libobjs=conftest.$ac_objext
13010 wl=$lt_prog_compiler_wl
13016 lt_save_allow_undefined_flag=$allow_undefined_flag
13017 allow_undefined_flag=
13018 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13019 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }
13024 archive_cmds_need_lc=no
13026 archive_cmds_need_lc=yes
13028 allow_undefined_flag=$lt_save_allow_undefined_flag
13030 cat conftest.err 1>&5
13033 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13034 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13041 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13042 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13043 library_names_spec=
13044 libname_spec='lib$name'
13048 postuninstall_cmds=
13052 shlibpath_overrides_runpath=unknown
13054 dynamic_linker="$host_os ld.so"
13055 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13056 if test "$GCC" = yes; then
13057 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13058 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13059 # if the path contains ";" then we assume it to be the separator
13060 # otherwise default to the standard path separator (i.e. ":") - it is
13061 # assumed that no part of a normal pathname contains ";" but that should
13062 # okay in the real world where ";" in dirpaths is itself problematic.
13063 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13065 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13068 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13070 need_lib_prefix=unknown
13071 hardcode_into_libs=no
13073 # when you set need_version to no, make sure it does not cause -set_version
13074 # flags to be left without arguments
13075 need_version=unknown
13080 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13081 shlibpath_var=LIBPATH
13083 # AIX 3 has no versioning support, so we append a major version to the name.
13084 soname_spec='${libname}${release}${shared_ext}$major'
13091 hardcode_into_libs=yes
13092 if test "$host_cpu" = ia64; then
13093 # AIX 5 supports IA64
13094 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13095 shlibpath_var=LD_LIBRARY_PATH
13097 # With GCC up to 2.95.x, collect2 would create an import file
13098 # for dependence libraries. The import file would start with
13099 # the line `#! .'. This would cause the generated library to
13100 # depend on `.', always an invalid library. This was fixed in
13101 # development snapshots of GCC prior to 3.0.
13103 aix4 | aix4.[01] | aix4.[01].*)
13104 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13106 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13109 can_build_shared=no
13113 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13114 # soname into executable. Probably we can add versioning support to
13115 # collect2, so additional links can be useful in future.
13116 if test "$aix_use_runtimelinking" = yes; then
13117 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13118 # instead of lib<name>.a to let people know that these are not
13119 # typical AIX shared libraries.
13120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13122 # We preserve .a as extension for shared libraries through AIX4.2
13123 # and later when we are not doing run time linking.
13124 library_names_spec='${libname}${release}.a $libname.a'
13125 soname_spec='${libname}${release}${shared_ext}$major'
13127 shlibpath_var=LIBPATH
13132 library_names_spec='$libname.ixlibrary $libname.a'
13133 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13134 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'
13138 library_names_spec='${libname}${shared_ext}'
13139 dynamic_linker="$host_os ld.so"
13140 shlibpath_var=LIBRARY_PATH
13146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13147 soname_spec='${libname}${release}${shared_ext}$major'
13148 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13149 shlibpath_var=LD_LIBRARY_PATH
13150 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13151 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13152 # the default ld.so.conf also contains /usr/contrib/lib and
13153 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13154 # libtool to hard-code these into programs
13157 cygwin* | mingw* | pw32*)
13158 version_type=windows
13163 case $GCC,$host_os in
13164 yes,cygwin* | yes,mingw* | yes,pw32*)
13165 library_names_spec='$libname.dll.a'
13166 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13167 postinstall_cmds='base_file=`basename \${file}`~
13168 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13169 dldir=$destdir/`dirname \$dlpath`~
13170 test -d \$dldir || mkdir -p \$dldir~
13171 $install_prog $dir/$dlname \$dldir/$dlname'
13172 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13173 dlpath=$dir/\$dldll~
13175 shlibpath_overrides_runpath=yes
13179 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13180 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13181 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13184 # MinGW DLLs use traditional 'lib' prefix
13185 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13186 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13187 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13188 # It is most probably a Windows format PATH printed by
13189 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13190 # path with ; separators, and with drive letters. We can handle the
13191 # drive letters (cygwin fileutils understands them), so leave them,
13192 # especially as we might pass files found there to a mingw objdump,
13193 # which wouldn't understand a cygwinified path. Ahh.
13194 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13200 # pw32 DLLs use 'pw' prefix rather than 'lib'
13201 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13207 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13210 dynamic_linker='Win32 ld.exe'
13211 # FIXME: first we should search . and the directory the executable is in
13215 darwin* | rhapsody*)
13216 dynamic_linker="$host_os dyld"
13217 version_type=darwin
13220 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13221 soname_spec='${libname}${release}${major}$shared_ext'
13222 shlibpath_overrides_runpath=yes
13223 shlibpath_var=DYLD_LIBRARY_PATH
13224 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13225 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13226 if test "$GCC" = yes; then
13227 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"`
13229 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13231 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13239 soname_spec='${libname}${release}${shared_ext}$major'
13240 shlibpath_var=LD_LIBRARY_PATH
13251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13252 soname_spec='${libname}${release}${shared_ext}$major'
13253 shlibpath_var=LD_LIBRARY_PATH
13254 shlibpath_overrides_runpath=no
13255 hardcode_into_libs=yes
13256 dynamic_linker='GNU ld.so'
13260 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13261 version_type=freebsd-$objformat
13262 case $version_type in
13264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13269 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13273 shlibpath_var=LD_LIBRARY_PATH
13276 shlibpath_overrides_runpath=yes
13278 freebsd3.01* | freebsdelf3.01*)
13279 shlibpath_overrides_runpath=yes
13280 hardcode_into_libs=yes
13283 shlibpath_overrides_runpath=no
13284 hardcode_into_libs=yes
13293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13294 soname_spec='${libname}${release}${shared_ext}$major'
13295 shlibpath_var=LD_LIBRARY_PATH
13296 hardcode_into_libs=yes
13299 hpux9* | hpux10* | hpux11*)
13300 # Give a soname corresponding to the major version so that dld.sl refuses to
13301 # link against other versions.
13305 case "$host_cpu" in
13308 hardcode_into_libs=yes
13309 dynamic_linker="$host_os dld.so"
13310 shlibpath_var=LD_LIBRARY_PATH
13311 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13313 soname_spec='${libname}${release}${shared_ext}$major'
13314 if test "X$HPUX_IA64_MODE" = X32; then
13315 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13317 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13319 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13323 hardcode_into_libs=yes
13324 dynamic_linker="$host_os dld.sl"
13325 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13326 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13328 soname_spec='${libname}${release}${shared_ext}$major'
13329 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13330 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13334 dynamic_linker="$host_os dld.sl"
13335 shlibpath_var=SHLIB_PATH
13336 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13338 soname_spec='${libname}${release}${shared_ext}$major'
13341 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13342 postinstall_cmds='chmod 555 $lib'
13345 irix5* | irix6* | nonstopux*)
13347 nonstopux*) version_type=nonstopux ;;
13349 if test "$lt_cv_prog_gnu_ld" = yes; then
13357 soname_spec='${libname}${release}${shared_ext}$major'
13358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13360 irix5* | nonstopux*)
13361 libsuff= shlibsuff=
13364 case $LD in # libtool.m4 will add one of these switches to LD
13365 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13366 libsuff= shlibsuff= libmagic=32-bit;;
13367 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13368 libsuff=32 shlibsuff=N32 libmagic=N32;;
13369 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13370 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13371 *) libsuff= shlibsuff= libmagic=never-match;;
13375 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13376 shlibpath_overrides_runpath=no
13377 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13378 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13379 hardcode_into_libs=yes
13382 # No shared lib support for Linux oldld, aout, or coff.
13383 linux*oldld* | linux*aout* | linux*coff*)
13387 # This must be Linux ELF.
13392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13393 soname_spec='${libname}${release}${shared_ext}$major'
13394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13395 shlibpath_var=LD_LIBRARY_PATH
13396 shlibpath_overrides_runpath=no
13397 # This implies no fast_install, which is unacceptable.
13398 # Some rework will be needed to allow for fast_install
13399 # before this can be enabled.
13400 hardcode_into_libs=yes
13402 # Append ld.so.conf contents to the search path
13403 if test -f /etc/ld.so.conf; then
13404 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13405 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13408 # We used to test for /lib/ld.so.1 and disable shared libraries on
13409 # powerpc, because MkLinux only supported shared libraries with the
13410 # GNU dynamic linker. Since this was broken with cross compilers,
13411 # most powerpc-linux boxes support dynamic linking these days and
13412 # people can always --disable-shared, the test was removed, and we
13413 # assume the GNU/Linux dynamic linker is in use.
13414 dynamic_linker='GNU/Linux ld.so'
13421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13422 soname_spec='${libname}${release}${shared_ext}$major'
13423 shlibpath_var=LD_LIBRARY_PATH
13424 shlibpath_overrides_runpath=no
13425 hardcode_into_libs=yes
13426 dynamic_linker='GNU ld.so'
13433 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13436 dynamic_linker='NetBSD (a.out) ld.so'
13438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13439 soname_spec='${libname}${release}${shared_ext}$major'
13440 dynamic_linker='NetBSD ld.elf_so'
13442 shlibpath_var=LD_LIBRARY_PATH
13443 shlibpath_overrides_runpath=yes
13444 hardcode_into_libs=yes
13449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13450 shlibpath_var=LD_LIBRARY_PATH
13451 shlibpath_overrides_runpath=yes
13458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13459 soname_spec='${libname}${release}${shared_ext}$major'
13460 shlibpath_var=LD_LIBRARY_PATH
13461 shlibpath_overrides_runpath=yes
13468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13470 shlibpath_var=LD_LIBRARY_PATH
13471 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13473 openbsd2.[89] | openbsd2.[89].*)
13474 shlibpath_overrides_runpath=no
13477 shlibpath_overrides_runpath=yes
13481 shlibpath_overrides_runpath=yes
13486 libname_spec='$name'
13489 library_names_spec='$libname${shared_ext} $libname.a'
13490 dynamic_linker='OS/2 ld.exe'
13491 shlibpath_var=LIBPATH
13494 osf3* | osf4* | osf5*)
13498 soname_spec='${libname}${release}${shared_ext}$major'
13499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13500 shlibpath_var=LD_LIBRARY_PATH
13501 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13502 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13507 soname_spec='${libname}${release}${shared_ext}$major'
13508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13509 shlibpath_var=LD_LIBRARY_PATH
13516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13517 soname_spec='${libname}${release}${shared_ext}$major'
13518 shlibpath_var=LD_LIBRARY_PATH
13519 shlibpath_overrides_runpath=yes
13520 hardcode_into_libs=yes
13521 # ldd complains unless libraries are executable
13522 postinstall_cmds='chmod +x $lib'
13527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13528 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13529 shlibpath_var=LD_LIBRARY_PATH
13530 shlibpath_overrides_runpath=yes
13531 if test "$with_gnu_ld" = yes; then
13537 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13540 soname_spec='${libname}${release}${shared_ext}$major'
13541 shlibpath_var=LD_LIBRARY_PATH
13542 case $host_vendor in
13544 shlibpath_overrides_runpath=no
13546 export_dynamic_flag_spec='${wl}-Blargedynsym'
13547 runpath_var=LD_RUN_PATH
13555 shlibpath_overrides_runpath=no
13556 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13562 if test -d /usr/nec ;then
13564 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13565 soname_spec='$libname${shared_ext}.$major'
13566 shlibpath_var=LD_LIBRARY_PATH
13572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13573 soname_spec='${libname}${release}${shared_ext}$major'
13574 shlibpath_var=LD_LIBRARY_PATH
13581 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13582 echo "${ECHO_T}$dynamic_linker" >&6
13583 test "$dynamic_linker" = no && can_build_shared=no
13585 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13586 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13588 if test -n "$hardcode_libdir_flag_spec" || \
13589 test -n "$runpath_var" || \
13590 test "X$hardcode_automatic" = "Xyes" ; then
13592 # We can hardcode non-existant directories.
13593 if test "$hardcode_direct" != no &&
13594 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13595 # have to relink, otherwise we might link with an installed library
13596 # when we should be linking with a yet-to-be-installed one
13597 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13598 test "$hardcode_minus_L" != no; then
13599 # Linking always hardcodes the temporary library directory.
13600 hardcode_action=relink
13602 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13603 hardcode_action=immediate
13606 # We cannot hardcode anything, or else we can only hardcode existing
13608 hardcode_action=unsupported
13610 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13611 echo "${ECHO_T}$hardcode_action" >&6
13613 if test "$hardcode_action" = relink; then
13614 # Fast installation is not supported
13615 enable_fast_install=no
13616 elif test "$shlibpath_overrides_runpath" = yes ||
13617 test "$enable_shared" = no; then
13618 # Fast installation is not necessary
13619 enable_fast_install=needless
13624 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13625 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13626 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13627 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13628 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13629 echo "$as_me:$LINENO: result: yes" >&5
13630 echo "${ECHO_T}yes" >&6
13632 # FIXME - insert some real tests, host_os isn't really good enough
13635 if test -n "$STRIP" ; then
13636 striplib="$STRIP -x"
13637 echo "$as_me:$LINENO: result: yes" >&5
13638 echo "${ECHO_T}yes" >&6
13640 echo "$as_me:$LINENO: result: no" >&5
13641 echo "${ECHO_T}no" >&6
13645 echo "$as_me:$LINENO: result: no" >&5
13646 echo "${ECHO_T}no" >&6
13651 if test "x$enable_dlopen" != xyes; then
13652 enable_dlopen=unknown
13653 enable_dlopen_self=unknown
13654 enable_dlopen_self_static=unknown
13661 lt_cv_dlopen="load_add_on"
13663 lt_cv_dlopen_self=yes
13667 lt_cv_dlopen="LoadLibrary"
13672 lt_cv_dlopen="dlopen"
13677 # if libdl is installed we need to link against it
13678 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13679 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13680 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
13683 ac_check_lib_save_LIBS=$LIBS
13685 cat >conftest.$ac_ext <<_ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h. */
13692 /* Override any gcc2 internal prototype to avoid an error. */
13696 /* We use char because int might match the return type of a gcc2
13697 builtin and then its argument prototype would still apply. */
13707 rm -f conftest.$ac_objext conftest$ac_exeext
13708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13709 (eval $ac_link) 2>conftest.er1
13711 grep -v '^ *+' conftest.er1 >conftest.err
13713 cat conftest.err >&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } &&
13716 { ac_try='test -z "$ac_c_werror_flag"
13717 || test ! -s conftest.err'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; } &&
13723 { ac_try='test -s conftest$ac_exeext'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
13729 ac_cv_lib_dl_dlopen=yes
13731 echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13734 ac_cv_lib_dl_dlopen=no
13736 rm -f conftest.err conftest.$ac_objext \
13737 conftest$ac_exeext conftest.$ac_ext
13738 LIBS=$ac_check_lib_save_LIBS
13740 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13741 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13742 if test $ac_cv_lib_dl_dlopen = yes; then
13743 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13746 lt_cv_dlopen="dyld"
13748 lt_cv_dlopen_self=yes
13755 echo "$as_me:$LINENO: checking for shl_load" >&5
13756 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13757 if test "${ac_cv_func_shl_load+set}" = set; then
13758 echo $ECHO_N "(cached) $ECHO_C" >&6
13760 cat >conftest.$ac_ext <<_ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13766 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13768 #define shl_load innocuous_shl_load
13770 /* System header to define __stub macros and hopefully few prototypes,
13771 which can conflict with char shl_load (); below.
13772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13773 <limits.h> exists even on freestanding compilers. */
13776 # include <limits.h>
13778 # include <assert.h>
13783 /* Override any gcc2 internal prototype to avoid an error. */
13788 /* We use char because int might match the return type of a gcc2
13789 builtin and then its argument prototype would still apply. */
13791 /* The GNU C library defines this for functions which it implements
13792 to always fail with ENOSYS. Some functions are actually named
13793 something starting with __ and the normal name is an alias. */
13794 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13797 char (*f) () = shl_load;
13806 return f != shl_load;
13811 rm -f conftest.$ac_objext conftest$ac_exeext
13812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13813 (eval $ac_link) 2>conftest.er1
13815 grep -v '^ *+' conftest.er1 >conftest.err
13817 cat conftest.err >&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } &&
13820 { ac_try='test -z "$ac_c_werror_flag"
13821 || test ! -s conftest.err'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; } &&
13827 { ac_try='test -s conftest$ac_exeext'
13828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829 (eval $ac_try) 2>&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; }; then
13833 ac_cv_func_shl_load=yes
13835 echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13838 ac_cv_func_shl_load=no
13840 rm -f conftest.err conftest.$ac_objext \
13841 conftest$ac_exeext conftest.$ac_ext
13843 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13844 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13845 if test $ac_cv_func_shl_load = yes; then
13846 lt_cv_dlopen="shl_load"
13848 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13849 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13850 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
13853 ac_check_lib_save_LIBS=$LIBS
13855 cat >conftest.$ac_ext <<_ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h. */
13862 /* Override any gcc2 internal prototype to avoid an error. */
13866 /* We use char because int might match the return type of a gcc2
13867 builtin and then its argument prototype would still apply. */
13877 rm -f conftest.$ac_objext conftest$ac_exeext
13878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13879 (eval $ac_link) 2>conftest.er1
13881 grep -v '^ *+' conftest.er1 >conftest.err
13883 cat conftest.err >&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } &&
13886 { ac_try='test -z "$ac_c_werror_flag"
13887 || test ! -s conftest.err'
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; } &&
13893 { ac_try='test -s conftest$ac_exeext'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }; then
13899 ac_cv_lib_dld_shl_load=yes
13901 echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13904 ac_cv_lib_dld_shl_load=no
13906 rm -f conftest.err conftest.$ac_objext \
13907 conftest$ac_exeext conftest.$ac_ext
13908 LIBS=$ac_check_lib_save_LIBS
13910 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13911 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13912 if test $ac_cv_lib_dld_shl_load = yes; then
13913 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13915 echo "$as_me:$LINENO: checking for dlopen" >&5
13916 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13917 if test "${ac_cv_func_dlopen+set}" = set; then
13918 echo $ECHO_N "(cached) $ECHO_C" >&6
13920 cat >conftest.$ac_ext <<_ACEOF
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h. */
13926 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13928 #define dlopen innocuous_dlopen
13930 /* System header to define __stub macros and hopefully few prototypes,
13931 which can conflict with char dlopen (); below.
13932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13933 <limits.h> exists even on freestanding compilers. */
13936 # include <limits.h>
13938 # include <assert.h>
13943 /* Override any gcc2 internal prototype to avoid an error. */
13948 /* We use char because int might match the return type of a gcc2
13949 builtin and then its argument prototype would still apply. */
13951 /* The GNU C library defines this for functions which it implements
13952 to always fail with ENOSYS. Some functions are actually named
13953 something starting with __ and the normal name is an alias. */
13954 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13957 char (*f) () = dlopen;
13966 return f != dlopen;
13971 rm -f conftest.$ac_objext conftest$ac_exeext
13972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13973 (eval $ac_link) 2>conftest.er1
13975 grep -v '^ *+' conftest.er1 >conftest.err
13977 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } &&
13980 { ac_try='test -z "$ac_c_werror_flag"
13981 || test ! -s conftest.err'
13982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983 (eval $ac_try) 2>&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }; } &&
13987 { ac_try='test -s conftest$ac_exeext'
13988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989 (eval $ac_try) 2>&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13993 ac_cv_func_dlopen=yes
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13998 ac_cv_func_dlopen=no
14000 rm -f conftest.err conftest.$ac_objext \
14001 conftest$ac_exeext conftest.$ac_ext
14003 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14004 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14005 if test $ac_cv_func_dlopen = yes; then
14006 lt_cv_dlopen="dlopen"
14008 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14009 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14010 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14013 ac_check_lib_save_LIBS=$LIBS
14015 cat >conftest.$ac_ext <<_ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h. */
14022 /* Override any gcc2 internal prototype to avoid an error. */
14026 /* We use char because int might match the return type of a gcc2
14027 builtin and then its argument prototype would still apply. */
14037 rm -f conftest.$ac_objext conftest$ac_exeext
14038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14039 (eval $ac_link) 2>conftest.er1
14041 grep -v '^ *+' conftest.er1 >conftest.err
14043 cat conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } &&
14046 { ac_try='test -z "$ac_c_werror_flag"
14047 || test ! -s conftest.err'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; } &&
14053 { ac_try='test -s conftest$ac_exeext'
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; }; then
14059 ac_cv_lib_dl_dlopen=yes
14061 echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14064 ac_cv_lib_dl_dlopen=no
14066 rm -f conftest.err conftest.$ac_objext \
14067 conftest$ac_exeext conftest.$ac_ext
14068 LIBS=$ac_check_lib_save_LIBS
14070 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14071 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14072 if test $ac_cv_lib_dl_dlopen = yes; then
14073 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14075 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14076 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14077 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14078 echo $ECHO_N "(cached) $ECHO_C" >&6
14080 ac_check_lib_save_LIBS=$LIBS
14081 LIBS="-lsvld $LIBS"
14082 cat >conftest.$ac_ext <<_ACEOF
14085 cat confdefs.h >>conftest.$ac_ext
14086 cat >>conftest.$ac_ext <<_ACEOF
14087 /* end confdefs.h. */
14089 /* Override any gcc2 internal prototype to avoid an error. */
14093 /* We use char because int might match the return type of a gcc2
14094 builtin and then its argument prototype would still apply. */
14104 rm -f conftest.$ac_objext conftest$ac_exeext
14105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14106 (eval $ac_link) 2>conftest.er1
14108 grep -v '^ *+' conftest.er1 >conftest.err
14110 cat conftest.err >&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); } &&
14113 { ac_try='test -z "$ac_c_werror_flag"
14114 || test ! -s conftest.err'
14115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116 (eval $ac_try) 2>&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; } &&
14120 { ac_try='test -s conftest$ac_exeext'
14121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122 (eval $ac_try) 2>&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; }; then
14126 ac_cv_lib_svld_dlopen=yes
14128 echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.$ac_ext >&5
14131 ac_cv_lib_svld_dlopen=no
14133 rm -f conftest.err conftest.$ac_objext \
14134 conftest$ac_exeext conftest.$ac_ext
14135 LIBS=$ac_check_lib_save_LIBS
14137 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14138 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14139 if test $ac_cv_lib_svld_dlopen = yes; then
14140 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14142 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14143 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14144 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14147 ac_check_lib_save_LIBS=$LIBS
14149 cat >conftest.$ac_ext <<_ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14156 /* Override any gcc2 internal prototype to avoid an error. */
14160 /* We use char because int might match the return type of a gcc2
14161 builtin and then its argument prototype would still apply. */
14171 rm -f conftest.$ac_objext conftest$ac_exeext
14172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14173 (eval $ac_link) 2>conftest.er1
14175 grep -v '^ *+' conftest.er1 >conftest.err
14177 cat conftest.err >&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } &&
14180 { ac_try='test -z "$ac_c_werror_flag"
14181 || test ! -s conftest.err'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; } &&
14187 { ac_try='test -s conftest$ac_exeext'
14188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189 (eval $ac_try) 2>&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; }; then
14193 ac_cv_lib_dld_dld_link=yes
14195 echo "$as_me: failed program was:" >&5
14196 sed 's/^/| /' conftest.$ac_ext >&5
14198 ac_cv_lib_dld_dld_link=no
14200 rm -f conftest.err conftest.$ac_objext \
14201 conftest$ac_exeext conftest.$ac_ext
14202 LIBS=$ac_check_lib_save_LIBS
14204 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14205 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14206 if test $ac_cv_lib_dld_dld_link = yes; then
14207 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14228 if test "x$lt_cv_dlopen" != xno; then
14234 case $lt_cv_dlopen in
14236 save_CPPFLAGS="$CPPFLAGS"
14237 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14239 save_LDFLAGS="$LDFLAGS"
14240 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14243 LIBS="$lt_cv_dlopen_libs $LIBS"
14245 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14246 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14247 if test "${lt_cv_dlopen_self+set}" = set; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14250 if test "$cross_compiling" = yes; then :
14251 lt_cv_dlopen_self=cross
14253 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14254 lt_status=$lt_dlunknown
14255 cat > conftest.$ac_ext <<EOF
14256 #line 14256 "configure"
14257 #include "confdefs.h"
14266 # define LT_DLGLOBAL RTLD_GLOBAL
14269 # define LT_DLGLOBAL DL_GLOBAL
14271 # define LT_DLGLOBAL 0
14275 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14276 find out it does not work in some platform. */
14277 #ifndef LT_DLLAZY_OR_NOW
14279 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14282 # define LT_DLLAZY_OR_NOW DL_LAZY
14285 # define LT_DLLAZY_OR_NOW RTLD_NOW
14288 # define LT_DLLAZY_OR_NOW DL_NOW
14290 # define LT_DLLAZY_OR_NOW 0
14298 extern "C" void exit (int);
14301 void fnord() { int i=42;}
14304 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14305 int status = $lt_dlunknown;
14309 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14310 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14311 /* dlclose (self); */
14317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14318 (eval $ac_link) 2>&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14322 (./conftest; exit; ) 2>/dev/null
14324 case x$lt_status in
14325 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14326 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14327 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14330 # compilation failed
14331 lt_cv_dlopen_self=no
14338 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14339 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14341 if test "x$lt_cv_dlopen_self" = xyes; then
14342 LDFLAGS="$LDFLAGS $link_static_flag"
14343 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14344 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14345 if test "${lt_cv_dlopen_self_static+set}" = set; then
14346 echo $ECHO_N "(cached) $ECHO_C" >&6
14348 if test "$cross_compiling" = yes; then :
14349 lt_cv_dlopen_self_static=cross
14351 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14352 lt_status=$lt_dlunknown
14353 cat > conftest.$ac_ext <<EOF
14354 #line 14354 "configure"
14355 #include "confdefs.h"
14364 # define LT_DLGLOBAL RTLD_GLOBAL
14367 # define LT_DLGLOBAL DL_GLOBAL
14369 # define LT_DLGLOBAL 0
14373 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14374 find out it does not work in some platform. */
14375 #ifndef LT_DLLAZY_OR_NOW
14377 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14380 # define LT_DLLAZY_OR_NOW DL_LAZY
14383 # define LT_DLLAZY_OR_NOW RTLD_NOW
14386 # define LT_DLLAZY_OR_NOW DL_NOW
14388 # define LT_DLLAZY_OR_NOW 0
14396 extern "C" void exit (int);
14399 void fnord() { int i=42;}
14402 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14403 int status = $lt_dlunknown;
14407 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14408 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14409 /* dlclose (self); */
14415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14416 (eval $ac_link) 2>&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14420 (./conftest; exit; ) 2>/dev/null
14422 case x$lt_status in
14423 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14424 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14425 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14428 # compilation failed
14429 lt_cv_dlopen_self_static=no
14436 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14437 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14440 CPPFLAGS="$save_CPPFLAGS"
14441 LDFLAGS="$save_LDFLAGS"
14446 case $lt_cv_dlopen_self in
14447 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14448 *) enable_dlopen_self=unknown ;;
14451 case $lt_cv_dlopen_self_static in
14452 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14453 *) enable_dlopen_self_static=unknown ;;
14458 # Report which librarie types wil actually be built
14459 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14460 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14461 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14462 echo "${ECHO_T}$can_build_shared" >&6
14464 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14465 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14466 test "$can_build_shared" = "no" && enable_shared=no
14468 # On AIX, shared libraries and static libraries use the same namespace, and
14469 # are all built from PIC.
14472 test "$enable_shared" = yes && enable_static=no
14473 if test -n "$RANLIB"; then
14474 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14475 postinstall_cmds='$RANLIB $lib'
14480 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14481 test "$enable_shared" = yes && enable_static=no
14485 echo "$as_me:$LINENO: result: $enable_shared" >&5
14486 echo "${ECHO_T}$enable_shared" >&6
14488 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14489 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14490 # Make sure either enable_shared or enable_static is yes.
14491 test "$enable_shared" = yes || enable_static=yes
14492 echo "$as_me:$LINENO: result: $enable_static" >&5
14493 echo "${ECHO_T}$enable_static" >&6
14495 # The else clause should only fire when bootstrapping the
14496 # libtool distribution, otherwise you forgot to ship ltmain.sh
14497 # with your package, and you will get complaints that there are
14498 # no rules to generate ltmain.sh.
14499 if test -f "$ltmain"; then
14500 # See if we are running on zsh, and set the options which allow our commands through
14501 # without removal of \ escapes.
14502 if test -n "${ZSH_VERSION+set}" ; then
14503 setopt NO_GLOB_SUBST
14505 # Now quote all the things that may contain metacharacters while being
14506 # careful not to overquote the AC_SUBSTed values. We take copies of the
14507 # variables and quote the copies for generation of the libtool script.
14508 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14510 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14511 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14512 deplibs_check_method reload_flag reload_cmds need_locks \
14513 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14514 lt_cv_sys_global_symbol_to_c_name_address \
14515 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14516 old_postinstall_cmds old_postuninstall_cmds \
14520 lt_prog_compiler_wl \
14521 lt_prog_compiler_pic \
14522 lt_prog_compiler_static \
14523 lt_prog_compiler_no_builtin_flag \
14524 export_dynamic_flag_spec \
14525 thread_safe_flag_spec \
14526 whole_archive_flag_spec \
14527 enable_shared_with_static_runtimes \
14529 old_archive_from_new_cmds \
14534 compiler_lib_search_path \
14536 archive_expsym_cmds \
14538 postuninstall_cmds \
14539 old_archive_from_expsyms_cmds \
14540 allow_undefined_flag \
14541 no_undefined_flag \
14542 export_symbols_cmds \
14543 hardcode_libdir_flag_spec \
14544 hardcode_libdir_flag_spec_ld \
14545 hardcode_libdir_separator \
14546 hardcode_automatic \
14548 module_expsym_cmds \
14549 lt_cv_prog_compiler_c_o \
14551 include_expsyms; do
14554 old_archive_cmds | \
14555 old_archive_from_new_cmds | \
14557 archive_expsym_cmds | \
14559 module_expsym_cmds | \
14560 old_archive_from_expsyms_cmds | \
14561 export_symbols_cmds | \
14562 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14563 postinstall_cmds | postuninstall_cmds | \
14564 old_postinstall_cmds | old_postuninstall_cmds | \
14565 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14566 # Double-quote double-evaled strings.
14567 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14570 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14576 *'\$0 --fallback-echo"')
14577 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14581 cfgfile="${ofile}T"
14582 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14584 { echo "$as_me:$LINENO: creating $ofile" >&5
14585 echo "$as_me: creating $ofile" >&6;}
14587 cat <<__EOF__ >> "$cfgfile"
14590 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14591 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14592 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14594 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14595 # Free Software Foundation, Inc.
14597 # This file is part of GNU Libtool:
14598 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14600 # This program is free software; you can redistribute it and/or modify
14601 # it under the terms of the GNU General Public License as published by
14602 # the Free Software Foundation; either version 2 of the License, or
14603 # (at your option) any later version.
14605 # This program is distributed in the hope that it will be useful, but
14606 # WITHOUT ANY WARRANTY; without even the implied warranty of
14607 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14608 # General Public License for more details.
14610 # You should have received a copy of the GNU General Public License
14611 # along with this program; if not, write to the Free Software
14612 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14614 # As a special exception to the GNU General Public License, if you
14615 # distribute this file as part of a program that contains a
14616 # configuration script generated by Autoconf, you may include it under
14617 # the same distribution terms that you use for the rest of that program.
14619 # A sed program that does not truncate output.
14622 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14623 Xsed="$SED -e s/^X//"
14625 # The HP-UX ksh and POSIX shell print the target directory to stdout
14626 # if CDPATH is set.
14627 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14629 # The names of the tagged configurations supported by this script.
14632 # ### BEGIN LIBTOOL CONFIG
14634 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14636 # Shell to use when invoking shell scripts.
14639 # Whether or not to build shared libraries.
14640 build_libtool_libs=$enable_shared
14642 # Whether or not to build static libraries.
14643 build_old_libs=$enable_static
14645 # Whether or not to add -lc for building shared libraries.
14646 build_libtool_need_lc=$archive_cmds_need_lc
14648 # Whether or not to disallow shared libs when runtime libs are static
14649 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14651 # Whether or not to optimize for fast installation.
14652 fast_install=$enable_fast_install
14655 host_alias=$host_alias
14658 # An echo program that does not interpret backslashes.
14663 AR_FLAGS=$lt_AR_FLAGS
14668 # A language-specific compiler.
14671 # Is the compiler the GNU C compiler?
14677 # The linker used to build libraries.
14680 # Whether we need hard or soft links.
14683 # A BSD-compatible nm program.
14686 # A symbol stripping program
14689 # Used to examine libraries when file_magic_cmd begins "file"
14690 MAGIC_CMD=$MAGIC_CMD
14692 # Used on cygwin: DLL creation program.
14695 # Used on cygwin: object dumper.
14698 # Used on cygwin: assembler.
14701 # The name of the directory that contains temporary libtool files.
14704 # How to create reloadable object files.
14705 reload_flag=$lt_reload_flag
14706 reload_cmds=$lt_reload_cmds
14708 # How to pass a linker flag through the compiler.
14709 wl=$lt_lt_prog_compiler_wl
14711 # Object file suffix (normally "o").
14712 objext="$ac_objext"
14714 # Old archive suffix (normally "a").
14717 # Shared library suffix (normally ".so").
14718 shrext_cmds='$shrext_cmds'
14720 # Executable file suffix (normally "").
14723 # Additional compiler flags for building library objects.
14724 pic_flag=$lt_lt_prog_compiler_pic
14727 # What is the maximum length of a command?
14728 max_cmd_len=$lt_cv_sys_max_cmd_len
14730 # Does compiler simultaneously support -c and -o options?
14731 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14733 # Must we lock files when doing compilation ?
14734 need_locks=$lt_need_locks
14736 # Do we need the lib prefix for modules?
14737 need_lib_prefix=$need_lib_prefix
14739 # Do we need a version for libraries?
14740 need_version=$need_version
14742 # Whether dlopen is supported.
14743 dlopen_support=$enable_dlopen
14745 # Whether dlopen of programs is supported.
14746 dlopen_self=$enable_dlopen_self
14748 # Whether dlopen of statically linked programs is supported.
14749 dlopen_self_static=$enable_dlopen_self_static
14751 # Compiler flag to prevent dynamic linking.
14752 link_static_flag=$lt_lt_prog_compiler_static
14754 # Compiler flag to turn off builtin functions.
14755 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14757 # Compiler flag to allow reflexive dlopens.
14758 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14760 # Compiler flag to generate shared objects directly from archives.
14761 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14763 # Compiler flag to generate thread-safe objects.
14764 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14766 # Library versioning type.
14767 version_type=$version_type
14769 # Format of library name prefix.
14770 libname_spec=$lt_libname_spec
14772 # List of archive names. First name is the real one, the rest are links.
14773 # The last name is the one that the linker finds with -lNAME.
14774 library_names_spec=$lt_library_names_spec
14776 # The coded name of the library, if different from the real name.
14777 soname_spec=$lt_soname_spec
14779 # Commands used to build and install an old-style archive.
14781 old_archive_cmds=$lt_old_archive_cmds
14782 old_postinstall_cmds=$lt_old_postinstall_cmds
14783 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14785 # Create an old-style archive from a shared archive.
14786 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14788 # Create a temporary old-style archive to link instead of a shared archive.
14789 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14791 # Commands used to build and install a shared archive.
14792 archive_cmds=$lt_archive_cmds
14793 archive_expsym_cmds=$lt_archive_expsym_cmds
14794 postinstall_cmds=$lt_postinstall_cmds
14795 postuninstall_cmds=$lt_postuninstall_cmds
14797 # Commands used to build a loadable module (assumed same as above if empty)
14798 module_cmds=$lt_module_cmds
14799 module_expsym_cmds=$lt_module_expsym_cmds
14801 # Commands to strip libraries.
14802 old_striplib=$lt_old_striplib
14803 striplib=$lt_striplib
14805 # Dependencies to place before the objects being linked to create a
14807 predep_objects=$lt_predep_objects
14809 # Dependencies to place after the objects being linked to create a
14811 postdep_objects=$lt_postdep_objects
14813 # Dependencies to place before the objects being linked to create a
14815 predeps=$lt_predeps
14817 # Dependencies to place after the objects being linked to create a
14819 postdeps=$lt_postdeps
14821 # The library search path used internally by the compiler when linking
14822 # a shared library.
14823 compiler_lib_search_path=$lt_compiler_lib_search_path
14825 # Method to check whether dependent libraries are shared objects.
14826 deplibs_check_method=$lt_deplibs_check_method
14828 # Command to use when deplibs_check_method == file_magic.
14829 file_magic_cmd=$lt_file_magic_cmd
14831 # Flag that allows shared libraries with undefined symbols to be built.
14832 allow_undefined_flag=$lt_allow_undefined_flag
14834 # Flag that forces no undefined symbols.
14835 no_undefined_flag=$lt_no_undefined_flag
14837 # Commands used to finish a libtool library installation in a directory.
14838 finish_cmds=$lt_finish_cmds
14840 # Same as above, but a single script fragment to be evaled but not shown.
14841 finish_eval=$lt_finish_eval
14843 # Take the output of nm and produce a listing of raw symbols and C names.
14844 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14846 # Transform the output of nm in a proper C declaration
14847 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14849 # Transform the output of nm in a C name address pair
14850 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14852 # This is the shared library runtime path variable.
14853 runpath_var=$runpath_var
14855 # This is the shared library path variable.
14856 shlibpath_var=$shlibpath_var
14858 # Is shlibpath searched before the hard-coded library search path?
14859 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14861 # How to hardcode a shared library path into an executable.
14862 hardcode_action=$hardcode_action
14864 # Whether we should hardcode library paths into libraries.
14865 hardcode_into_libs=$hardcode_into_libs
14867 # Flag to hardcode \$libdir into a binary during linking.
14868 # This must work even if \$libdir does not exist.
14869 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14871 # If ld is used when linking, flag to hardcode \$libdir into
14872 # a binary during linking. This must work even if \$libdir does
14874 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14876 # Whether we need a single -rpath flag with a separated argument.
14877 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14879 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14880 # resulting binary.
14881 hardcode_direct=$hardcode_direct
14883 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14884 # resulting binary.
14885 hardcode_minus_L=$hardcode_minus_L
14887 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14888 # the resulting binary.
14889 hardcode_shlibpath_var=$hardcode_shlibpath_var
14891 # Set to yes if building a shared library automatically hardcodes DIR into the library
14892 # and all subsequent libraries and executables linked against it.
14893 hardcode_automatic=$hardcode_automatic
14895 # Variables whose values should be saved in libtool wrapper scripts and
14896 # restored at relink time.
14897 variables_saved_for_relink="$variables_saved_for_relink"
14899 # Whether libtool must link a program against all its dependency libraries.
14900 link_all_deplibs=$link_all_deplibs
14902 # Compile-time system search path for libraries
14903 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14905 # Run-time system search path for libraries
14906 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14908 # Fix the shell variable \$srcfile for the compiler.
14909 fix_srcfile_path="$fix_srcfile_path"
14911 # Set to yes if exported symbols are required.
14912 always_export_symbols=$always_export_symbols
14914 # The commands to list exported symbols.
14915 export_symbols_cmds=$lt_export_symbols_cmds
14917 # The commands to extract the exported symbol list from a shared archive.
14918 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14920 # Symbols that should not be listed in the preloaded symbols.
14921 exclude_expsyms=$lt_exclude_expsyms
14923 # Symbols that must always be exported.
14924 include_expsyms=$lt_include_expsyms
14926 # ### END LIBTOOL CONFIG
14933 cat <<\EOF >> "$cfgfile"
14935 # AIX sometimes has problems with the GCC collect2 program. For some
14936 # reason, if we set the COLLECT_NAMES environment variable, the problems
14937 # vanish in a puff of smoke.
14938 if test "X${COLLECT_NAMES+set}" != Xset; then
14940 export COLLECT_NAMES
14946 # We use sed instead of cat because bash on DJGPP gets confused if
14947 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14948 # text mode, it properly converts lines to CR/LF. This bash problem
14949 # is reportedly fixed, but why not run on old versions too?
14950 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14952 mv -f "$cfgfile" "$ofile" || \
14953 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14957 # If there is no Makefile yet, we rely on a make rule to execute
14958 # `config.status --recheck' to rerun these tests and create the
14959 # libtool script then.
14960 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14961 if test -f "$ltmain_in"; then
14962 test -f Makefile && make "$ltmain"
14968 ac_cpp='$CPP $CPPFLAGS'
14969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14976 # Check whether --with-tags or --without-tags was given.
14977 if test "${with_tags+set}" = set; then
14978 withval="$with_tags"
14979 tagnames="$withval"
14982 if test -f "$ltmain" && test -n "$tagnames"; then
14983 if test ! -f "${ofile}"; then
14984 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14985 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14988 if test -z "$LTCC"; then
14989 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14990 if test -z "$LTCC"; then
14991 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14992 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14995 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14999 # Extract list of available tagged configurations in $ofile.
15000 # Note that this assumes the entire list is on one line.
15001 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15003 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15004 for tagname in $tagnames; do
15006 # Check whether tagname contains only valid characters
15007 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15009 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15010 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15011 { (exit 1); exit 1; }; }
15015 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15017 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15018 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15019 { (exit 1); exit 1; }; }
15022 # Update the list of available tags.
15023 if test -n "$tagname"; then
15024 echo appending configuration tag "$tagname" to $ofile
15028 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15029 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15030 (test "X$CXX" != "Xg++"))) ; then
15032 ac_cpp='$CXXCPP $CPPFLAGS'
15033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15040 archive_cmds_need_lc_CXX=no
15041 allow_undefined_flag_CXX=
15042 always_export_symbols_CXX=no
15043 archive_expsym_cmds_CXX=
15044 export_dynamic_flag_spec_CXX=
15045 hardcode_direct_CXX=no
15046 hardcode_libdir_flag_spec_CXX=
15047 hardcode_libdir_flag_spec_ld_CXX=
15048 hardcode_libdir_separator_CXX=
15049 hardcode_minus_L_CXX=no
15050 hardcode_automatic_CXX=no
15052 module_expsym_cmds_CXX=
15053 link_all_deplibs_CXX=unknown
15054 old_archive_cmds_CXX=$old_archive_cmds
15055 no_undefined_flag_CXX=
15056 whole_archive_flag_spec_CXX=
15057 enable_shared_with_static_runtimes_CXX=no
15059 # Dependencies to place before and after the object being linked:
15060 predep_objects_CXX=
15061 postdep_objects_CXX=
15064 compiler_lib_search_path_CXX=
15066 # Source file extension for C++ test sources.
15069 # Object file extension for compiled C++ test sources.
15073 # Code to be used in simple compile tests
15074 lt_simple_compile_test_code="int some_variable = 0;\n"
15076 # Code to be used in simple link tests
15077 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15079 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15081 # If no C compiler was specified, use CC.
15084 # Allow CC to be a program name with arguments.
15088 # Allow CC to be a program name with arguments.
15093 lt_save_with_gnu_ld=$with_gnu_ld
15094 lt_save_path_LD=$lt_cv_path_LD
15095 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15096 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15098 unset lt_cv_prog_gnu_ld
15100 if test -n "${lt_cv_path_LDCXX+set}"; then
15101 lt_cv_path_LD=$lt_cv_path_LDCXX
15103 unset lt_cv_path_LD
15105 test -z "${LDCXX+set}" || LD=$LDCXX
15109 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15111 # We don't want -fno-exception wen compiling C++ code, so set the
15112 # no_builtin_flag separately
15113 if test "$GXX" = yes; then
15114 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15116 lt_prog_compiler_no_builtin_flag_CXX=
15119 if test "$GXX" = yes; then
15120 # Set up default GNU C++ configuration
15123 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15124 if test "${with_gnu_ld+set}" = set; then
15125 withval="$with_gnu_ld"
15126 test "$withval" = no || with_gnu_ld=yes
15131 if test "$GCC" = yes; then
15132 # Check if gcc -print-prog-name=ld gives a path.
15133 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15134 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15137 # gcc leaves a trailing carriage return which upsets mingw
15138 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15140 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15143 # Accept absolute paths.
15145 re_direlt='/[^/][^/]*/\.\./'
15146 # Canonicalize the pathname of ld
15147 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15148 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15149 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15151 test -z "$LD" && LD="$ac_prog"
15154 # If it fails, then pretend we aren't using GCC.
15158 # If it is relative, then search for the first ld in PATH.
15159 with_gnu_ld=unknown
15162 elif test "$with_gnu_ld" = yes; then
15163 echo "$as_me:$LINENO: checking for GNU ld" >&5
15164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15166 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15169 if test "${lt_cv_path_LD+set}" = set; then
15170 echo $ECHO_N "(cached) $ECHO_C" >&6
15172 if test -z "$LD"; then
15173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15174 for ac_dir in $PATH; do
15176 test -z "$ac_dir" && ac_dir=.
15177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15178 lt_cv_path_LD="$ac_dir/$ac_prog"
15179 # Check to see if the program is GNU ld. I'd rather use --version,
15180 # but apparently some GNU ld's only accept -v.
15181 # Break only if it was the GNU/non-GNU ld that we prefer.
15182 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15183 *GNU* | *'with BFD'*)
15184 test "$with_gnu_ld" != no && break
15187 test "$with_gnu_ld" != yes && break
15194 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15198 LD="$lt_cv_path_LD"
15199 if test -n "$LD"; then
15200 echo "$as_me:$LINENO: result: $LD" >&5
15201 echo "${ECHO_T}$LD" >&6
15203 echo "$as_me:$LINENO: result: no" >&5
15204 echo "${ECHO_T}no" >&6
15206 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15207 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15208 { (exit 1); exit 1; }; }
15209 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15210 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15211 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15212 echo $ECHO_N "(cached) $ECHO_C" >&6
15214 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15215 case `$LD -v 2>&1 </dev/null` in
15216 *GNU* | *'with BFD'*)
15217 lt_cv_prog_gnu_ld=yes
15220 lt_cv_prog_gnu_ld=no
15224 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15225 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15226 with_gnu_ld=$lt_cv_prog_gnu_ld
15230 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15231 # archiving commands below assume that GNU ld is being used.
15232 if test "$with_gnu_ld" = yes; then
15233 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15234 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'
15236 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15237 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15239 # If archive_cmds runs LD, not CC, wlarc should be empty
15240 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15241 # investigate it a little bit more. (MM)
15244 # ancient GNU ld didn't support --whole-archive et. al.
15245 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15246 grep 'no-whole-archive' > /dev/null; then
15247 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15249 whole_archive_flag_spec_CXX=
15255 # A generic and very simple default shared library creation
15256 # command for GNU C++ for the case where it uses the native
15257 # linker, instead of GNU ld. If possible, this setting should
15258 # overridden to take advantage of the native linker features on
15259 # the platform it is being used on.
15260 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15263 # Commands to make compiler produce verbose output that lists
15264 # what "hidden" libraries, object files and flags are used when
15265 # linking a shared library.
15266 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15274 # PORTME: fill in a description of your system's C++ link characteristics
15275 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15276 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15280 # FIXME: insert proper C++ library support
15284 if test "$host_cpu" = ia64; then
15285 # On IA64, the linker does run time linking by default, so we don't
15286 # have to do anything special.
15287 aix_use_runtimelinking=no
15288 exp_sym_flag='-Bexport'
15291 aix_use_runtimelinking=no
15293 # Test if we are trying to use run time linking or normal
15294 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15295 # need to do runtime linking.
15296 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15297 for ld_flag in $LDFLAGS; do
15300 aix_use_runtimelinking=yes
15307 exp_sym_flag='-bexport'
15308 no_entry_flag='-bnoentry'
15311 # When large executables or shared objects are built, AIX ld can
15312 # have problems creating the table of contents. If linking a library
15313 # or program results in "error TOC overflow" add -mminimal-toc to
15314 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15315 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15317 archive_cmds_CXX=''
15318 hardcode_direct_CXX=yes
15319 hardcode_libdir_separator_CXX=':'
15320 link_all_deplibs_CXX=yes
15322 if test "$GXX" = yes; then
15323 case $host_os in aix4.012|aix4.012.*)
15324 # We only want to do this on AIX 4.2 and lower, the check
15325 # below for broken collect2 doesn't work under 4.3+
15326 collect2name=`${CC} -print-prog-name=collect2`
15327 if test -f "$collect2name" && \
15328 strings "$collect2name" | grep resolve_lib_name >/dev/null
15330 # We have reworked collect2
15331 hardcode_direct_CXX=yes
15333 # We have old collect2
15334 hardcode_direct_CXX=unsupported
15335 # It fails to find uninstalled libraries when the uninstalled
15336 # path is not listed in the libpath. Setting hardcode_minus_L
15337 # to unsupported forces relinking
15338 hardcode_minus_L_CXX=yes
15339 hardcode_libdir_flag_spec_CXX='-L$libdir'
15340 hardcode_libdir_separator_CXX=
15343 shared_flag='-shared'
15346 if test "$host_cpu" = ia64; then
15347 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15348 # chokes on -Wl,-G. The following line is correct:
15351 if test "$aix_use_runtimelinking" = yes; then
15352 shared_flag='${wl}-G'
15354 shared_flag='${wl}-bM:SRE'
15359 # It seems that -bexpall does not export symbols beginning with
15360 # underscore (_), so it is better to generate a list of symbols to export.
15361 always_export_symbols_CXX=yes
15362 if test "$aix_use_runtimelinking" = yes; then
15363 # Warning - without using the other runtime loading flags (-brtl),
15364 # -berok will link without error, but may produce a broken library.
15365 allow_undefined_flag_CXX='-berok'
15366 # Determine the default libpath from the value encoded in an empty executable.
15367 cat >conftest.$ac_ext <<_ACEOF
15370 cat confdefs.h >>conftest.$ac_ext
15371 cat >>conftest.$ac_ext <<_ACEOF
15372 /* end confdefs.h. */
15382 rm -f conftest.$ac_objext conftest$ac_exeext
15383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15384 (eval $ac_link) 2>conftest.er1
15386 grep -v '^ *+' conftest.er1 >conftest.err
15388 cat conftest.err >&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); } &&
15391 { ac_try='test -z "$ac_cxx_werror_flag"
15392 || test ! -s conftest.err'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; } &&
15398 { ac_try='test -s conftest$ac_exeext'
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }; then
15405 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15407 # Check for a 64-bit object if we didn't find anything.
15408 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; }
15411 echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15415 rm -f conftest.err conftest.$ac_objext \
15416 conftest$ac_exeext conftest.$ac_ext
15417 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15419 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15421 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"
15423 if test "$host_cpu" = ia64; then
15424 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15425 allow_undefined_flag_CXX="-z nodefs"
15426 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"
15428 # Determine the default libpath from the value encoded in an empty executable.
15429 cat >conftest.$ac_ext <<_ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h. */
15444 rm -f conftest.$ac_objext conftest$ac_exeext
15445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15446 (eval $ac_link) 2>conftest.er1
15448 grep -v '^ *+' conftest.er1 >conftest.err
15450 cat conftest.err >&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); } &&
15453 { ac_try='test -z "$ac_cxx_werror_flag"
15454 || test ! -s conftest.err'
15455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456 (eval $ac_try) 2>&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; } &&
15460 { ac_try='test -s conftest$ac_exeext'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; }; then
15467 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15469 # Check for a 64-bit object if we didn't find anything.
15470 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; }
15473 echo "$as_me: failed program was:" >&5
15474 sed 's/^/| /' conftest.$ac_ext >&5
15477 rm -f conftest.err conftest.$ac_objext \
15478 conftest$ac_exeext conftest.$ac_ext
15479 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15481 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15482 # Warning - without using the other run time loading flags,
15483 # -berok will link without error, but may produce a broken library.
15484 no_undefined_flag_CXX=' ${wl}-bernotok'
15485 allow_undefined_flag_CXX=' ${wl}-berok'
15486 # -bexpall does not export symbols beginning with underscore (_)
15487 always_export_symbols_CXX=yes
15488 # Exported symbols can be pulled into shared objects from archives
15489 whole_archive_flag_spec_CXX=' '
15490 archive_cmds_need_lc_CXX=yes
15491 # This is similar to how AIX traditionally builds it's shared libraries.
15492 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'
15497 case $cc_basename in
15499 # FIXME: insert proper C++ library support
15506 cygwin* | mingw* | pw32*)
15507 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15508 # as there is no search path for DLLs.
15509 hardcode_libdir_flag_spec_CXX='-L$libdir'
15510 allow_undefined_flag_CXX=unsupported
15511 always_export_symbols_CXX=no
15512 enable_shared_with_static_runtimes_CXX=yes
15514 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15515 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'
15516 # If the export-symbols file already is a .def file (1st line
15517 # is EXPORTS), use it as is; otherwise, prepend...
15518 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15519 cp $export_symbols $output_objdir/$soname.def;
15521 echo EXPORTS > $output_objdir/$soname.def;
15522 cat $export_symbols >> $output_objdir/$soname.def;
15524 $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'
15529 darwin* | rhapsody*)
15531 rhapsody* | darwin1.[012])
15532 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15535 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15536 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15538 case ${MACOSX_DEPLOYMENT_TARGET} in
15540 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15543 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15549 archive_cmds_need_lc_CXX=no
15550 hardcode_direct_CXX=no
15551 hardcode_automatic_CXX=yes
15552 hardcode_shlibpath_var_CXX=unsupported
15553 whole_archive_flag_spec_CXX=''
15554 link_all_deplibs_CXX=yes
15556 if test "$GXX" = yes ; then
15557 lt_int_apple_cc_single_mod=no
15558 output_verbose_link_cmd='echo'
15559 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15560 lt_int_apple_cc_single_mod=yes
15562 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15563 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15565 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'
15567 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15568 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15569 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15570 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}'
15572 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}'
15574 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}'
15576 case "$cc_basename" in
15578 output_verbose_link_cmd='echo'
15579 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'
15580 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15581 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15582 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}'
15583 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}'
15593 case $cc_basename in
15595 # FIXME: insert proper C++ library support
15599 # Green Hills C++ Compiler
15600 # FIXME: insert proper C++ library support
15604 # FIXME: insert proper C++ library support
15610 # C++ shared libraries reported to be fairly broken before switch to ELF
15614 archive_cmds_need_lc_CXX=no
15616 freebsd* | kfreebsd*-gnu)
15617 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15624 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15625 hardcode_libdir_separator_CXX=:
15626 export_dynamic_flag_spec_CXX='${wl}-E'
15627 hardcode_direct_CXX=yes
15628 hardcode_minus_L_CXX=yes # Not in the search PATH,
15629 # but as the default
15630 # location of the library.
15632 case $cc_basename in
15634 # FIXME: insert proper C++ library support
15638 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'
15639 # Commands to make compiler produce verbose output that lists
15640 # what "hidden" libraries, object files and flags are used when
15641 # linking a shared library.
15643 # There doesn't appear to be a way to prevent this compiler from
15644 # explicitly linking system object files so we need to strip them
15645 # from the output so that they don't get included in the library
15647 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'
15650 if test "$GXX" = yes; then
15651 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'
15653 # FIXME: insert proper C++ library support
15660 if test $with_gnu_ld = no; then
15661 case "$host_cpu" in
15663 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15664 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15665 hardcode_libdir_separator_CXX=:
15668 hardcode_libdir_flag_spec_CXX='-L$libdir'
15671 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15672 hardcode_libdir_separator_CXX=:
15673 export_dynamic_flag_spec_CXX='${wl}-E'
15677 case "$host_cpu" in
15679 hardcode_direct_CXX=no
15680 hardcode_shlibpath_var_CXX=no
15683 hardcode_direct_CXX=no
15684 hardcode_shlibpath_var_CXX=no
15685 hardcode_minus_L_CXX=yes # Not in the search PATH,
15686 # but as the default
15687 # location of the library.
15690 hardcode_direct_CXX=yes
15691 hardcode_minus_L_CXX=yes # Not in the search PATH,
15692 # but as the default
15693 # location of the library.
15697 case $cc_basename in
15699 # FIXME: insert proper C++ library support
15703 case "$host_cpu" in
15705 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15708 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15711 # Commands to make compiler produce verbose output that lists
15712 # what "hidden" libraries, object files and flags are used when
15713 # linking a shared library.
15715 # There doesn't appear to be a way to prevent this compiler from
15716 # explicitly linking system object files so we need to strip them
15717 # from the output so that they don't get included in the library
15719 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'
15722 if test "$GXX" = yes; then
15723 if test $with_gnu_ld = no; then
15724 case "$host_cpu" in
15726 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15729 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'
15734 # FIXME: insert proper C++ library support
15741 case $cc_basename in
15744 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'
15746 # Archives containing C++ object files must be created using
15747 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15748 # necessary to make sure instantiated templates are included
15750 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15753 if test "$GXX" = yes; then
15754 if test "$with_gnu_ld" = no; then
15755 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'
15757 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'
15760 link_all_deplibs_CXX=yes
15763 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15764 hardcode_libdir_separator_CXX=:
15767 case $cc_basename in
15769 # Kuck and Associates, Inc. (KAI) C++ Compiler
15771 # KCC will only create a shared library if the output file
15772 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15773 # to its proper name (with version) after linking.
15774 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'
15775 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'
15776 # Commands to make compiler produce verbose output that lists
15777 # what "hidden" libraries, object files and flags are used when
15778 # linking a shared library.
15780 # There doesn't appear to be a way to prevent this compiler from
15781 # explicitly linking system object files so we need to strip them
15782 # from the output so that they don't get included in the library
15784 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'
15786 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15787 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15789 # Archives containing C++ object files must be created using
15790 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15791 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15796 # version 8.0 and above of icpc choke on multiply defined symbols
15797 # if we add $predep_objects and $postdep_objects, however 7.1 and
15798 # earlier do not add the objects themselves.
15799 case `$CC -V 2>&1` in
15801 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15802 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'
15804 *) # Version 8.0 or newer
15805 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15806 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15809 archive_cmds_need_lc_CXX=no
15810 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15811 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15812 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15816 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15817 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'
15819 runpath_var=LD_RUN_PATH
15820 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15821 hardcode_libdir_separator_CXX=:
15823 # Commands to make compiler produce verbose output that lists
15824 # what "hidden" libraries, object files and flags are used when
15825 # linking a shared library.
15827 # There doesn't appear to be a way to prevent this compiler from
15828 # explicitly linking system object files so we need to strip them
15829 # from the output so that they don't get included in the library
15831 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'
15836 # FIXME: insert proper C++ library support
15840 # FIXME: insert proper C++ library support
15844 case $cc_basename in
15846 # FIXME: insert proper C++ library support
15850 # FIXME: insert proper C++ library support
15856 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15857 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15859 hardcode_libdir_flag_spec_CXX='-R$libdir'
15860 hardcode_direct_CXX=yes
15861 hardcode_shlibpath_var_CXX=no
15863 # Workaround some broken pre-1.5 toolchains
15864 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15867 # C++ shared libraries are fairly broken
15871 hardcode_direct_CXX=yes
15872 hardcode_shlibpath_var_CXX=no
15873 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15874 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15875 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15876 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15877 export_dynamic_flag_spec_CXX='${wl}-E'
15878 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15880 output_verbose_link_cmd='echo'
15883 case $cc_basename in
15885 # Kuck and Associates, Inc. (KAI) C++ Compiler
15887 # KCC will only create a shared library if the output file
15888 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15889 # to its proper name (with version) after linking.
15890 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'
15892 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15893 hardcode_libdir_separator_CXX=:
15895 # Archives containing C++ object files must be created using
15896 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15897 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15901 # Rational C++ 2.4.1
15902 # FIXME: insert proper C++ library support
15906 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15907 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'
15909 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15910 hardcode_libdir_separator_CXX=:
15912 # Commands to make compiler produce verbose output that lists
15913 # what "hidden" libraries, object files and flags are used when
15914 # linking a shared library.
15916 # There doesn't appear to be a way to prevent this compiler from
15917 # explicitly linking system object files so we need to strip them
15918 # from the output so that they don't get included in the library
15920 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'
15923 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15924 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15925 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'
15927 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15928 hardcode_libdir_separator_CXX=:
15930 # Commands to make compiler produce verbose output that lists
15931 # what "hidden" libraries, object files and flags are used when
15932 # linking a shared library.
15933 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15936 # FIXME: insert proper C++ library support
15943 case $cc_basename in
15945 # Kuck and Associates, Inc. (KAI) C++ Compiler
15947 # KCC will only create a shared library if the output file
15948 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15949 # to its proper name (with version) after linking.
15950 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'
15952 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15953 hardcode_libdir_separator_CXX=:
15955 # Archives containing C++ object files must be created using
15956 # the KAI C++ compiler.
15957 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15960 # Rational C++ 2.4.1
15961 # FIXME: insert proper C++ library support
15965 allow_undefined_flag_CXX=' -expect_unresolved \*'
15966 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'
15967 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15968 echo "-hidden">> $lib.exp~
15969 $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~
15972 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15973 hardcode_libdir_separator_CXX=:
15975 # Commands to make compiler produce verbose output that lists
15976 # what "hidden" libraries, object files and flags are used when
15977 # linking a shared library.
15979 # There doesn't appear to be a way to prevent this compiler from
15980 # explicitly linking system object files so we need to strip them
15981 # from the output so that they don't get included in the library
15983 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'
15986 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15987 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15988 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'
15990 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15991 hardcode_libdir_separator_CXX=:
15993 # Commands to make compiler produce verbose output that lists
15994 # what "hidden" libraries, object files and flags are used when
15995 # linking a shared library.
15996 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15999 # FIXME: insert proper C++ library support
16006 # FIXME: insert proper C++ library support
16010 archive_cmds_need_lc_CXX=no
16011 case $cc_basename in
16013 # FIXME: insert proper C++ library support
16017 # FIXME: insert proper C++ library support
16023 case $cc_basename in
16026 # FIXME: insert proper C++ library support
16031 # FIXME: insert proper C++ library support
16035 # FIXME: insert proper C++ library support
16041 case $cc_basename in
16043 # Sun C++ 4.2, 5.x and Centerline C++
16044 no_undefined_flag_CXX=' -zdefs'
16045 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16046 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16047 $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'
16049 hardcode_libdir_flag_spec_CXX='-R$libdir'
16050 hardcode_shlibpath_var_CXX=no
16052 solaris2.0-5 | solaris2.0-5.*) ;;
16054 # The C++ compiler is used as linker so we must use $wl
16055 # flag to pass the commands to the underlying system
16057 # Supported since Solaris 2.6 (maybe 2.5.1?)
16058 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16061 link_all_deplibs_CXX=yes
16063 # Commands to make compiler produce verbose output that lists
16064 # what "hidden" libraries, object files and flags are used when
16065 # linking a shared library.
16067 # There doesn't appear to be a way to prevent this compiler from
16068 # explicitly linking system object files so we need to strip them
16069 # from the output so that they don't get included in the library
16071 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'
16073 # Archives containing C++ object files must be created using
16074 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16075 # necessary to make sure instantiated templates are included
16077 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16080 # Green Hills C++ Compiler
16081 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16083 # The C++ compiler must be used to create the archive.
16084 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16087 # GNU C++ compiler with Solaris linker
16088 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16089 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16090 if $CC --version | grep -v '^2\.7' > /dev/null; then
16091 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16092 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16093 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16095 # Commands to make compiler produce verbose output that lists
16096 # what "hidden" libraries, object files and flags are used when
16097 # linking a shared library.
16098 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16100 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16102 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16103 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16104 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16106 # Commands to make compiler produce verbose output that lists
16107 # what "hidden" libraries, object files and flags are used when
16108 # linking a shared library.
16109 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16112 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16117 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16118 archive_cmds_need_lc_CXX=no
16121 case $cc_basename in
16123 # NonStop-UX NCC 3.20
16124 # FIXME: insert proper C++ library support
16128 # FIXME: insert proper C++ library support
16134 # FIXME: insert proper C++ library support
16138 # FIXME: insert proper C++ library support
16142 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16143 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16144 test "$ld_shlibs_CXX" = no && can_build_shared=no
16150 cat > conftest.$ac_ext <<EOF
16154 Foo (void) { a = 0; }
16160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16161 (eval $ac_compile) 2>&5
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); }; then
16165 # Parse the compiler output and extract the necessary
16166 # objects, libraries and library flags.
16168 # Sentinel used to keep track of whether or not we are before
16169 # the conftest object file.
16170 pre_test_object_deps_done=no
16172 # The `*' in the case matches for architectures that use `case' in
16173 # $output_verbose_cmd can trigger glob expansion during the loop
16174 # eval without this substitution.
16175 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16177 for p in `eval $output_verbose_link_cmd`; do
16181 # Some compilers place space between "-{L,R}" and the path.
16182 # Remove the space.
16183 if test $p = "-L" \
16184 || test $p = "-R"; then
16191 if test "$pre_test_object_deps_done" = no; then
16194 # Internal compiler library paths should come after those
16195 # provided the user. The postdeps already come after the
16196 # user supplied libs so there is no need to process them.
16197 if test -z "$compiler_lib_search_path_CXX"; then
16198 compiler_lib_search_path_CXX="${prev}${p}"
16200 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16203 # The "-l" case would never come before the object being
16204 # linked, so don't bother handling this case.
16207 if test -z "$postdeps_CXX"; then
16208 postdeps_CXX="${prev}${p}"
16210 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16216 # This assumes that the test object file only shows up
16217 # once in the compiler output.
16218 if test "$p" = "conftest.$objext"; then
16219 pre_test_object_deps_done=yes
16223 if test "$pre_test_object_deps_done" = no; then
16224 if test -z "$predep_objects_CXX"; then
16225 predep_objects_CXX="$p"
16227 predep_objects_CXX="$predep_objects_CXX $p"
16230 if test -z "$postdep_objects_CXX"; then
16231 postdep_objects_CXX="$p"
16233 postdep_objects_CXX="$postdep_objects_CXX $p"
16238 *) ;; # Ignore the rest.
16246 echo "libtool.m4: error: problem compiling CXX test program"
16249 $rm -f confest.$objext
16251 case " $postdeps_CXX " in
16252 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16255 lt_prog_compiler_wl_CXX=
16256 lt_prog_compiler_pic_CXX=
16257 lt_prog_compiler_static_CXX=
16259 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16260 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16262 # C++ specific cases for pic, static, wl, etc.
16263 if test "$GXX" = yes; then
16264 lt_prog_compiler_wl_CXX='-Wl,'
16265 lt_prog_compiler_static_CXX='-static'
16269 # All AIX code is PIC.
16270 if test "$host_cpu" = ia64; then
16271 # AIX 5 now supports IA64 processor
16272 lt_prog_compiler_static_CXX='-Bstatic'
16276 # FIXME: we need at least 68020 code to build shared libraries, but
16277 # adding the `-m68020' flag to GCC prevents building anything better,
16279 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16281 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16282 # PIC is the default for these OSes.
16284 mingw* | os2* | pw32*)
16285 # This hack is so that the source file can tell whether it is being
16286 # built for inclusion in a dll (and should export symbols for example).
16287 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16289 darwin* | rhapsody*)
16290 # PIC is the default on this platform
16291 # Common symbols not allowed in MH_DYLIB files
16292 lt_prog_compiler_pic_CXX='-fno-common'
16295 # DJGPP does not support shared libraries at all
16296 lt_prog_compiler_pic_CXX=
16299 if test -d /usr/nec; then
16300 lt_prog_compiler_pic_CXX=-Kconform_pic
16304 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16305 # not for PA HP-UX.
16306 case "$host_cpu" in
16310 lt_prog_compiler_pic_CXX='-fPIC'
16315 lt_prog_compiler_pic_CXX='-fPIC'
16321 # All AIX code is PIC.
16322 if test "$host_cpu" = ia64; then
16323 # AIX 5 now supports IA64 processor
16324 lt_prog_compiler_static_CXX='-Bstatic'
16326 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16330 case $cc_basename in
16332 # Green Hills C++ Compiler
16333 # _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"
16338 # PIC is the default on this platform
16339 # Common symbols not allowed in MH_DYLIB files
16340 case "$cc_basename" in
16342 lt_prog_compiler_pic_CXX='-qnocommon'
16343 lt_prog_compiler_wl_CXX='-Wl,'
16348 case $cc_basename in
16350 lt_prog_compiler_pic_CXX='-KPIC'
16353 # Green Hills C++ Compiler
16354 lt_prog_compiler_pic_CXX='-pic'
16360 freebsd* | kfreebsd*-gnu)
16361 # FreeBSD uses GNU C++
16363 hpux9* | hpux10* | hpux11*)
16364 case $cc_basename in
16366 lt_prog_compiler_wl_CXX='-Wl,'
16367 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16368 if test "$host_cpu" != ia64; then
16369 lt_prog_compiler_pic_CXX='+Z'
16373 lt_prog_compiler_wl_CXX='-Wl,'
16374 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16375 case "$host_cpu" in
16380 lt_prog_compiler_pic_CXX='+Z'
16388 irix5* | irix6* | nonstopux*)
16389 case $cc_basename in
16391 lt_prog_compiler_wl_CXX='-Wl,'
16392 lt_prog_compiler_static_CXX='-non_shared'
16393 # CC pic flag -KPIC is the default.
16400 case $cc_basename in
16403 lt_prog_compiler_wl_CXX='--backend -Wl,'
16404 lt_prog_compiler_pic_CXX='-fPIC'
16408 lt_prog_compiler_wl_CXX='-Wl,'
16409 lt_prog_compiler_pic_CXX='-KPIC'
16410 lt_prog_compiler_static_CXX='-static'
16414 # Make sure the PIC flag is empty. It appears that all Alpha
16415 # Linux and Compaq Tru64 Unix objects are PIC.
16416 lt_prog_compiler_pic_CXX=
16417 lt_prog_compiler_static_CXX='-non_shared'
16428 case $cc_basename in
16430 lt_prog_compiler_pic_CXX='-W c,exportall'
16438 osf3* | osf4* | osf5*)
16439 case $cc_basename in
16441 lt_prog_compiler_wl_CXX='--backend -Wl,'
16444 # Rational C++ 2.4.1
16445 lt_prog_compiler_pic_CXX='-pic'
16448 # Digital/Compaq C++
16449 lt_prog_compiler_wl_CXX='-Wl,'
16450 # Make sure the PIC flag is empty. It appears that all Alpha
16451 # Linux and Compaq Tru64 Unix objects are PIC.
16452 lt_prog_compiler_pic_CXX=
16453 lt_prog_compiler_static_CXX='-non_shared'
16462 case $cc_basename in
16464 lt_prog_compiler_pic_CXX='-fPIC'
16471 case $cc_basename in
16473 # Sun C++ 4.2, 5.x and Centerline C++
16474 lt_prog_compiler_pic_CXX='-KPIC'
16475 lt_prog_compiler_static_CXX='-Bstatic'
16476 lt_prog_compiler_wl_CXX='-Qoption ld '
16479 # Green Hills C++ Compiler
16480 lt_prog_compiler_pic_CXX='-PIC'
16487 case $cc_basename in
16490 lt_prog_compiler_pic_CXX='-pic'
16491 lt_prog_compiler_static_CXX='-Bstatic'
16495 lt_prog_compiler_pic_CXX='-pic'
16502 case $cc_basename in
16504 # NonStop-UX NCC 3.20
16505 lt_prog_compiler_pic_CXX='-KPIC'
16516 lt_prog_compiler_can_build_shared_CXX=no
16521 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16522 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16525 # Check to make sure the PIC flag actually works.
16527 if test -n "$lt_prog_compiler_pic_CXX"; then
16529 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16530 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16531 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16532 echo $ECHO_N "(cached) $ECHO_C" >&6
16534 lt_prog_compiler_pic_works_CXX=no
16535 ac_outfile=conftest.$ac_objext
16536 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16537 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16538 # Insert the option either (1) after the last *FLAGS variable, or
16539 # (2) before a word containing "conftest.", or (3) at the end.
16540 # Note that $ac_compile itself does not contain backslashes and begins
16541 # with a dollar sign (not a hyphen), so the echo should work correctly.
16542 # The option is referenced via a variable to avoid confusing sed.
16543 lt_compile=`echo "$ac_compile" | $SED \
16544 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16546 -e 's:$: $lt_compiler_flag:'`
16547 (eval echo "\"\$as_me:16547: $lt_compile\"" >&5)
16548 (eval "$lt_compile" 2>conftest.err)
16550 cat conftest.err >&5
16551 echo "$as_me:16551: \$? = $ac_status" >&5
16552 if (exit $ac_status) && test -s "$ac_outfile"; then
16553 # The compiler can only warn and ignore the option if not recognized
16554 # So say no if there are warnings
16555 if test ! -s conftest.err; then
16556 lt_prog_compiler_pic_works_CXX=yes
16562 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16563 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16565 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16566 case $lt_prog_compiler_pic_CXX in
16568 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16571 lt_prog_compiler_pic_CXX=
16572 lt_prog_compiler_can_build_shared_CXX=no
16577 # For platforms which do not support PIC, -DPIC is meaningless:
16579 lt_prog_compiler_pic_CXX=
16582 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16586 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16587 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16588 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16589 echo $ECHO_N "(cached) $ECHO_C" >&6
16591 lt_cv_prog_compiler_c_o_CXX=no
16592 $rm -r conftest 2>/dev/null
16596 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16598 lt_compiler_flag="-o out/conftest2.$ac_objext"
16599 # Insert the option either (1) after the last *FLAGS variable, or
16600 # (2) before a word containing "conftest.", or (3) at the end.
16601 # Note that $ac_compile itself does not contain backslashes and begins
16602 # with a dollar sign (not a hyphen), so the echo should work correctly.
16603 lt_compile=`echo "$ac_compile" | $SED \
16604 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16606 -e 's:$: $lt_compiler_flag:'`
16607 (eval echo "\"\$as_me:16607: $lt_compile\"" >&5)
16608 (eval "$lt_compile" 2>out/conftest.err)
16610 cat out/conftest.err >&5
16611 echo "$as_me:16611: \$? = $ac_status" >&5
16612 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16614 # The compiler can only warn and ignore the option if not recognized
16615 # So say no if there are warnings
16616 if test ! -s out/conftest.err; then
16617 lt_cv_prog_compiler_c_o_CXX=yes
16622 # SGI C++ compiler will create directory out/ii_files/ for
16623 # template instantiation
16624 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16625 $rm out/* && rmdir out
16631 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16632 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16635 hard_links="nottested"
16636 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16637 # do not overwrite the value of need_locks provided by the user
16638 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16639 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16644 ln conftest.a conftest.b 2>&5 || hard_links=no
16645 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16646 echo "$as_me:$LINENO: result: $hard_links" >&5
16647 echo "${ECHO_T}$hard_links" >&6
16648 if test "$hard_links" = no; then
16649 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16650 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16657 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16658 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16660 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16663 # If we're using GNU nm, then we don't want the "-C" option.
16664 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16665 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16666 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'
16668 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'
16672 export_symbols_cmds_CXX="$ltdll_cmds"
16675 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16678 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16682 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16683 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16684 test "$ld_shlibs_CXX" = no && can_build_shared=no
16686 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16687 if test "$GCC" = yes; then
16688 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16692 # Do we need to explicitly link libc?
16694 case "x$archive_cmds_need_lc_CXX" in
16696 # Assume -lc should be added
16697 archive_cmds_need_lc_CXX=yes
16699 if test "$enable_shared" = yes && test "$GCC" = yes; then
16700 case $archive_cmds_CXX in
16702 # FIXME: we may have to deal with multi-command sequences.
16705 # Test whether the compiler implicitly links with -lc since on some
16706 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16707 # to ld, don't add -lc before -lgcc.
16708 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16709 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16711 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16714 (eval $ac_compile) 2>&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); } 2>conftest.err; then
16720 libobjs=conftest.$ac_objext
16722 wl=$lt_prog_compiler_wl_CXX
16728 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16729 allow_undefined_flag_CXX=
16730 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16731 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }
16736 archive_cmds_need_lc_CXX=no
16738 archive_cmds_need_lc_CXX=yes
16740 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16742 cat conftest.err 1>&5
16745 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16746 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16753 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16754 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16755 library_names_spec=
16756 libname_spec='lib$name'
16760 postuninstall_cmds=
16764 shlibpath_overrides_runpath=unknown
16766 dynamic_linker="$host_os ld.so"
16767 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16768 if test "$GCC" = yes; then
16769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16770 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16771 # if the path contains ";" then we assume it to be the separator
16772 # otherwise default to the standard path separator (i.e. ":") - it is
16773 # assumed that no part of a normal pathname contains ";" but that should
16774 # okay in the real world where ";" in dirpaths is itself problematic.
16775 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16780 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16782 need_lib_prefix=unknown
16783 hardcode_into_libs=no
16785 # when you set need_version to no, make sure it does not cause -set_version
16786 # flags to be left without arguments
16787 need_version=unknown
16792 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16793 shlibpath_var=LIBPATH
16795 # AIX 3 has no versioning support, so we append a major version to the name.
16796 soname_spec='${libname}${release}${shared_ext}$major'
16803 hardcode_into_libs=yes
16804 if test "$host_cpu" = ia64; then
16805 # AIX 5 supports IA64
16806 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16807 shlibpath_var=LD_LIBRARY_PATH
16809 # With GCC up to 2.95.x, collect2 would create an import file
16810 # for dependence libraries. The import file would start with
16811 # the line `#! .'. This would cause the generated library to
16812 # depend on `.', always an invalid library. This was fixed in
16813 # development snapshots of GCC prior to 3.0.
16815 aix4 | aix4.[01] | aix4.[01].*)
16816 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16818 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16821 can_build_shared=no
16825 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16826 # soname into executable. Probably we can add versioning support to
16827 # collect2, so additional links can be useful in future.
16828 if test "$aix_use_runtimelinking" = yes; then
16829 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16830 # instead of lib<name>.a to let people know that these are not
16831 # typical AIX shared libraries.
16832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16834 # We preserve .a as extension for shared libraries through AIX4.2
16835 # and later when we are not doing run time linking.
16836 library_names_spec='${libname}${release}.a $libname.a'
16837 soname_spec='${libname}${release}${shared_ext}$major'
16839 shlibpath_var=LIBPATH
16844 library_names_spec='$libname.ixlibrary $libname.a'
16845 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16846 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'
16850 library_names_spec='${libname}${shared_ext}'
16851 dynamic_linker="$host_os ld.so"
16852 shlibpath_var=LIBRARY_PATH
16858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16859 soname_spec='${libname}${release}${shared_ext}$major'
16860 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16861 shlibpath_var=LD_LIBRARY_PATH
16862 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16863 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16864 # the default ld.so.conf also contains /usr/contrib/lib and
16865 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16866 # libtool to hard-code these into programs
16869 cygwin* | mingw* | pw32*)
16870 version_type=windows
16875 case $GCC,$host_os in
16876 yes,cygwin* | yes,mingw* | yes,pw32*)
16877 library_names_spec='$libname.dll.a'
16878 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16879 postinstall_cmds='base_file=`basename \${file}`~
16880 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16881 dldir=$destdir/`dirname \$dlpath`~
16882 test -d \$dldir || mkdir -p \$dldir~
16883 $install_prog $dir/$dlname \$dldir/$dlname'
16884 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16885 dlpath=$dir/\$dldll~
16887 shlibpath_overrides_runpath=yes
16891 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16892 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16893 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16896 # MinGW DLLs use traditional 'lib' prefix
16897 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16898 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16899 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16900 # It is most probably a Windows format PATH printed by
16901 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16902 # path with ; separators, and with drive letters. We can handle the
16903 # drive letters (cygwin fileutils understands them), so leave them,
16904 # especially as we might pass files found there to a mingw objdump,
16905 # which wouldn't understand a cygwinified path. Ahh.
16906 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16908 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16912 # pw32 DLLs use 'pw' prefix rather than 'lib'
16913 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16919 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16922 dynamic_linker='Win32 ld.exe'
16923 # FIXME: first we should search . and the directory the executable is in
16927 darwin* | rhapsody*)
16928 dynamic_linker="$host_os dyld"
16929 version_type=darwin
16932 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16933 soname_spec='${libname}${release}${major}$shared_ext'
16934 shlibpath_overrides_runpath=yes
16935 shlibpath_var=DYLD_LIBRARY_PATH
16936 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16937 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16938 if test "$GCC" = yes; then
16939 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"`
16941 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16943 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16951 soname_spec='${libname}${release}${shared_ext}$major'
16952 shlibpath_var=LD_LIBRARY_PATH
16963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16964 soname_spec='${libname}${release}${shared_ext}$major'
16965 shlibpath_var=LD_LIBRARY_PATH
16966 shlibpath_overrides_runpath=no
16967 hardcode_into_libs=yes
16968 dynamic_linker='GNU ld.so'
16972 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16973 version_type=freebsd-$objformat
16974 case $version_type in
16976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16981 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16985 shlibpath_var=LD_LIBRARY_PATH
16988 shlibpath_overrides_runpath=yes
16990 freebsd3.01* | freebsdelf3.01*)
16991 shlibpath_overrides_runpath=yes
16992 hardcode_into_libs=yes
16995 shlibpath_overrides_runpath=no
16996 hardcode_into_libs=yes
17005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17006 soname_spec='${libname}${release}${shared_ext}$major'
17007 shlibpath_var=LD_LIBRARY_PATH
17008 hardcode_into_libs=yes
17011 hpux9* | hpux10* | hpux11*)
17012 # Give a soname corresponding to the major version so that dld.sl refuses to
17013 # link against other versions.
17017 case "$host_cpu" in
17020 hardcode_into_libs=yes
17021 dynamic_linker="$host_os dld.so"
17022 shlibpath_var=LD_LIBRARY_PATH
17023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17025 soname_spec='${libname}${release}${shared_ext}$major'
17026 if test "X$HPUX_IA64_MODE" = X32; then
17027 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17029 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17031 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17035 hardcode_into_libs=yes
17036 dynamic_linker="$host_os dld.sl"
17037 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17038 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17040 soname_spec='${libname}${release}${shared_ext}$major'
17041 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17042 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17046 dynamic_linker="$host_os dld.sl"
17047 shlibpath_var=SHLIB_PATH
17048 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17050 soname_spec='${libname}${release}${shared_ext}$major'
17053 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17054 postinstall_cmds='chmod 555 $lib'
17057 irix5* | irix6* | nonstopux*)
17059 nonstopux*) version_type=nonstopux ;;
17061 if test "$lt_cv_prog_gnu_ld" = yes; then
17069 soname_spec='${libname}${release}${shared_ext}$major'
17070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17072 irix5* | nonstopux*)
17073 libsuff= shlibsuff=
17076 case $LD in # libtool.m4 will add one of these switches to LD
17077 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17078 libsuff= shlibsuff= libmagic=32-bit;;
17079 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17080 libsuff=32 shlibsuff=N32 libmagic=N32;;
17081 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17082 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17083 *) libsuff= shlibsuff= libmagic=never-match;;
17087 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17088 shlibpath_overrides_runpath=no
17089 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17090 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17091 hardcode_into_libs=yes
17094 # No shared lib support for Linux oldld, aout, or coff.
17095 linux*oldld* | linux*aout* | linux*coff*)
17099 # This must be Linux ELF.
17104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17105 soname_spec='${libname}${release}${shared_ext}$major'
17106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17107 shlibpath_var=LD_LIBRARY_PATH
17108 shlibpath_overrides_runpath=no
17109 # This implies no fast_install, which is unacceptable.
17110 # Some rework will be needed to allow for fast_install
17111 # before this can be enabled.
17112 hardcode_into_libs=yes
17114 # Append ld.so.conf contents to the search path
17115 if test -f /etc/ld.so.conf; then
17116 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17117 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17120 # We used to test for /lib/ld.so.1 and disable shared libraries on
17121 # powerpc, because MkLinux only supported shared libraries with the
17122 # GNU dynamic linker. Since this was broken with cross compilers,
17123 # most powerpc-linux boxes support dynamic linking these days and
17124 # people can always --disable-shared, the test was removed, and we
17125 # assume the GNU/Linux dynamic linker is in use.
17126 dynamic_linker='GNU/Linux ld.so'
17133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17134 soname_spec='${libname}${release}${shared_ext}$major'
17135 shlibpath_var=LD_LIBRARY_PATH
17136 shlibpath_overrides_runpath=no
17137 hardcode_into_libs=yes
17138 dynamic_linker='GNU ld.so'
17145 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17148 dynamic_linker='NetBSD (a.out) ld.so'
17150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17151 soname_spec='${libname}${release}${shared_ext}$major'
17152 dynamic_linker='NetBSD ld.elf_so'
17154 shlibpath_var=LD_LIBRARY_PATH
17155 shlibpath_overrides_runpath=yes
17156 hardcode_into_libs=yes
17161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17162 shlibpath_var=LD_LIBRARY_PATH
17163 shlibpath_overrides_runpath=yes
17170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17171 soname_spec='${libname}${release}${shared_ext}$major'
17172 shlibpath_var=LD_LIBRARY_PATH
17173 shlibpath_overrides_runpath=yes
17180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17182 shlibpath_var=LD_LIBRARY_PATH
17183 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17185 openbsd2.[89] | openbsd2.[89].*)
17186 shlibpath_overrides_runpath=no
17189 shlibpath_overrides_runpath=yes
17193 shlibpath_overrides_runpath=yes
17198 libname_spec='$name'
17201 library_names_spec='$libname${shared_ext} $libname.a'
17202 dynamic_linker='OS/2 ld.exe'
17203 shlibpath_var=LIBPATH
17206 osf3* | osf4* | osf5*)
17210 soname_spec='${libname}${release}${shared_ext}$major'
17211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17212 shlibpath_var=LD_LIBRARY_PATH
17213 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17214 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17219 soname_spec='${libname}${release}${shared_ext}$major'
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221 shlibpath_var=LD_LIBRARY_PATH
17228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17229 soname_spec='${libname}${release}${shared_ext}$major'
17230 shlibpath_var=LD_LIBRARY_PATH
17231 shlibpath_overrides_runpath=yes
17232 hardcode_into_libs=yes
17233 # ldd complains unless libraries are executable
17234 postinstall_cmds='chmod +x $lib'
17239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17240 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17241 shlibpath_var=LD_LIBRARY_PATH
17242 shlibpath_overrides_runpath=yes
17243 if test "$with_gnu_ld" = yes; then
17249 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17252 soname_spec='${libname}${release}${shared_ext}$major'
17253 shlibpath_var=LD_LIBRARY_PATH
17254 case $host_vendor in
17256 shlibpath_overrides_runpath=no
17258 export_dynamic_flag_spec='${wl}-Blargedynsym'
17259 runpath_var=LD_RUN_PATH
17267 shlibpath_overrides_runpath=no
17268 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17274 if test -d /usr/nec ;then
17276 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17277 soname_spec='$libname${shared_ext}.$major'
17278 shlibpath_var=LD_LIBRARY_PATH
17284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17285 soname_spec='${libname}${release}${shared_ext}$major'
17286 shlibpath_var=LD_LIBRARY_PATH
17293 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17294 echo "${ECHO_T}$dynamic_linker" >&6
17295 test "$dynamic_linker" = no && can_build_shared=no
17297 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17298 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17299 hardcode_action_CXX=
17300 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17301 test -n "$runpath_var_CXX" || \
17302 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17304 # We can hardcode non-existant directories.
17305 if test "$hardcode_direct_CXX" != no &&
17306 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17307 # have to relink, otherwise we might link with an installed library
17308 # when we should be linking with a yet-to-be-installed one
17309 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17310 test "$hardcode_minus_L_CXX" != no; then
17311 # Linking always hardcodes the temporary library directory.
17312 hardcode_action_CXX=relink
17314 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17315 hardcode_action_CXX=immediate
17318 # We cannot hardcode anything, or else we can only hardcode existing
17320 hardcode_action_CXX=unsupported
17322 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17323 echo "${ECHO_T}$hardcode_action_CXX" >&6
17325 if test "$hardcode_action_CXX" = relink; then
17326 # Fast installation is not supported
17327 enable_fast_install=no
17328 elif test "$shlibpath_overrides_runpath" = yes ||
17329 test "$enable_shared" = no; then
17330 # Fast installation is not necessary
17331 enable_fast_install=needless
17336 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17337 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17338 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17339 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17340 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17341 echo "$as_me:$LINENO: result: yes" >&5
17342 echo "${ECHO_T}yes" >&6
17344 # FIXME - insert some real tests, host_os isn't really good enough
17347 if test -n "$STRIP" ; then
17348 striplib="$STRIP -x"
17349 echo "$as_me:$LINENO: result: yes" >&5
17350 echo "${ECHO_T}yes" >&6
17352 echo "$as_me:$LINENO: result: no" >&5
17353 echo "${ECHO_T}no" >&6
17357 echo "$as_me:$LINENO: result: no" >&5
17358 echo "${ECHO_T}no" >&6
17363 if test "x$enable_dlopen" != xyes; then
17364 enable_dlopen=unknown
17365 enable_dlopen_self=unknown
17366 enable_dlopen_self_static=unknown
17373 lt_cv_dlopen="load_add_on"
17375 lt_cv_dlopen_self=yes
17379 lt_cv_dlopen="LoadLibrary"
17384 lt_cv_dlopen="dlopen"
17389 # if libdl is installed we need to link against it
17390 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17391 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17392 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17395 ac_check_lib_save_LIBS=$LIBS
17397 cat >conftest.$ac_ext <<_ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17404 /* Override any gcc2 internal prototype to avoid an error. */
17408 /* We use char because int might match the return type of a gcc2
17409 builtin and then its argument prototype would still apply. */
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17421 (eval $ac_link) 2>conftest.er1
17423 grep -v '^ *+' conftest.er1 >conftest.err
17425 cat conftest.err >&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } &&
17428 { ac_try='test -z "$ac_cxx_werror_flag"
17429 || test ! -s conftest.err'
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; } &&
17435 { ac_try='test -s conftest$ac_exeext'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
17441 ac_cv_lib_dl_dlopen=yes
17443 echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17446 ac_cv_lib_dl_dlopen=no
17448 rm -f conftest.err conftest.$ac_objext \
17449 conftest$ac_exeext conftest.$ac_ext
17450 LIBS=$ac_check_lib_save_LIBS
17452 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17453 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17454 if test $ac_cv_lib_dl_dlopen = yes; then
17455 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17458 lt_cv_dlopen="dyld"
17460 lt_cv_dlopen_self=yes
17467 echo "$as_me:$LINENO: checking for shl_load" >&5
17468 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17469 if test "${ac_cv_func_shl_load+set}" = set; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17472 cat >conftest.$ac_ext <<_ACEOF
17475 cat confdefs.h >>conftest.$ac_ext
17476 cat >>conftest.$ac_ext <<_ACEOF
17477 /* end confdefs.h. */
17478 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17480 #define shl_load innocuous_shl_load
17482 /* System header to define __stub macros and hopefully few prototypes,
17483 which can conflict with char shl_load (); below.
17484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17485 <limits.h> exists even on freestanding compilers. */
17488 # include <limits.h>
17490 # include <assert.h>
17495 /* Override any gcc2 internal prototype to avoid an error. */
17500 /* We use char because int might match the return type of a gcc2
17501 builtin and then its argument prototype would still apply. */
17503 /* The GNU C library defines this for functions which it implements
17504 to always fail with ENOSYS. Some functions are actually named
17505 something starting with __ and the normal name is an alias. */
17506 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17509 char (*f) () = shl_load;
17518 return f != shl_load;
17523 rm -f conftest.$ac_objext conftest$ac_exeext
17524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17525 (eval $ac_link) 2>conftest.er1
17527 grep -v '^ *+' conftest.er1 >conftest.err
17529 cat conftest.err >&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } &&
17532 { ac_try='test -z "$ac_cxx_werror_flag"
17533 || test ! -s conftest.err'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; } &&
17539 { ac_try='test -s conftest$ac_exeext'
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
17545 ac_cv_func_shl_load=yes
17547 echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17550 ac_cv_func_shl_load=no
17552 rm -f conftest.err conftest.$ac_objext \
17553 conftest$ac_exeext conftest.$ac_ext
17555 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17556 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17557 if test $ac_cv_func_shl_load = yes; then
17558 lt_cv_dlopen="shl_load"
17560 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17561 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17562 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17565 ac_check_lib_save_LIBS=$LIBS
17567 cat >conftest.$ac_ext <<_ACEOF
17570 cat confdefs.h >>conftest.$ac_ext
17571 cat >>conftest.$ac_ext <<_ACEOF
17572 /* end confdefs.h. */
17574 /* Override any gcc2 internal prototype to avoid an error. */
17578 /* We use char because int might match the return type of a gcc2
17579 builtin and then its argument prototype would still apply. */
17589 rm -f conftest.$ac_objext conftest$ac_exeext
17590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17591 (eval $ac_link) 2>conftest.er1
17593 grep -v '^ *+' conftest.er1 >conftest.err
17595 cat conftest.err >&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } &&
17598 { ac_try='test -z "$ac_cxx_werror_flag"
17599 || test ! -s conftest.err'
17600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601 (eval $ac_try) 2>&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; } &&
17605 { ac_try='test -s conftest$ac_exeext'
17606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17607 (eval $ac_try) 2>&5
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); }; }; then
17611 ac_cv_lib_dld_shl_load=yes
17613 echo "$as_me: failed program was:" >&5
17614 sed 's/^/| /' conftest.$ac_ext >&5
17616 ac_cv_lib_dld_shl_load=no
17618 rm -f conftest.err conftest.$ac_objext \
17619 conftest$ac_exeext conftest.$ac_ext
17620 LIBS=$ac_check_lib_save_LIBS
17622 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17623 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17624 if test $ac_cv_lib_dld_shl_load = yes; then
17625 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17627 echo "$as_me:$LINENO: checking for dlopen" >&5
17628 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17629 if test "${ac_cv_func_dlopen+set}" = set; then
17630 echo $ECHO_N "(cached) $ECHO_C" >&6
17632 cat >conftest.$ac_ext <<_ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h. */
17638 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17640 #define dlopen innocuous_dlopen
17642 /* System header to define __stub macros and hopefully few prototypes,
17643 which can conflict with char dlopen (); below.
17644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17645 <limits.h> exists even on freestanding compilers. */
17648 # include <limits.h>
17650 # include <assert.h>
17655 /* Override any gcc2 internal prototype to avoid an error. */
17660 /* We use char because int might match the return type of a gcc2
17661 builtin and then its argument prototype would still apply. */
17663 /* The GNU C library defines this for functions which it implements
17664 to always fail with ENOSYS. Some functions are actually named
17665 something starting with __ and the normal name is an alias. */
17666 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17669 char (*f) () = dlopen;
17678 return f != dlopen;
17683 rm -f conftest.$ac_objext conftest$ac_exeext
17684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17685 (eval $ac_link) 2>conftest.er1
17687 grep -v '^ *+' conftest.er1 >conftest.err
17689 cat conftest.err >&5
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); } &&
17692 { ac_try='test -z "$ac_cxx_werror_flag"
17693 || test ! -s conftest.err'
17694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695 (eval $ac_try) 2>&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); }; } &&
17699 { ac_try='test -s conftest$ac_exeext'
17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701 (eval $ac_try) 2>&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; }; then
17705 ac_cv_func_dlopen=yes
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17710 ac_cv_func_dlopen=no
17712 rm -f conftest.err conftest.$ac_objext \
17713 conftest$ac_exeext conftest.$ac_ext
17715 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17716 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17717 if test $ac_cv_func_dlopen = yes; then
17718 lt_cv_dlopen="dlopen"
17720 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17721 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17722 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17723 echo $ECHO_N "(cached) $ECHO_C" >&6
17725 ac_check_lib_save_LIBS=$LIBS
17727 cat >conftest.$ac_ext <<_ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17734 /* Override any gcc2 internal prototype to avoid an error. */
17738 /* We use char because int might match the return type of a gcc2
17739 builtin and then its argument prototype would still apply. */
17749 rm -f conftest.$ac_objext conftest$ac_exeext
17750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17751 (eval $ac_link) 2>conftest.er1
17753 grep -v '^ *+' conftest.er1 >conftest.err
17755 cat conftest.err >&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } &&
17758 { ac_try='test -z "$ac_cxx_werror_flag"
17759 || test ! -s conftest.err'
17760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761 (eval $ac_try) 2>&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; } &&
17765 { ac_try='test -s conftest$ac_exeext'
17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; }; then
17771 ac_cv_lib_dl_dlopen=yes
17773 echo "$as_me: failed program was:" >&5
17774 sed 's/^/| /' conftest.$ac_ext >&5
17776 ac_cv_lib_dl_dlopen=no
17778 rm -f conftest.err conftest.$ac_objext \
17779 conftest$ac_exeext conftest.$ac_ext
17780 LIBS=$ac_check_lib_save_LIBS
17782 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17783 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17784 if test $ac_cv_lib_dl_dlopen = yes; then
17785 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17787 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17788 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17789 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17790 echo $ECHO_N "(cached) $ECHO_C" >&6
17792 ac_check_lib_save_LIBS=$LIBS
17793 LIBS="-lsvld $LIBS"
17794 cat >conftest.$ac_ext <<_ACEOF
17797 cat confdefs.h >>conftest.$ac_ext
17798 cat >>conftest.$ac_ext <<_ACEOF
17799 /* end confdefs.h. */
17801 /* Override any gcc2 internal prototype to avoid an error. */
17805 /* We use char because int might match the return type of a gcc2
17806 builtin and then its argument prototype would still apply. */
17816 rm -f conftest.$ac_objext conftest$ac_exeext
17817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17818 (eval $ac_link) 2>conftest.er1
17820 grep -v '^ *+' conftest.er1 >conftest.err
17822 cat conftest.err >&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } &&
17825 { ac_try='test -z "$ac_cxx_werror_flag"
17826 || test ! -s conftest.err'
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; } &&
17832 { ac_try='test -s conftest$ac_exeext'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17838 ac_cv_lib_svld_dlopen=yes
17840 echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.$ac_ext >&5
17843 ac_cv_lib_svld_dlopen=no
17845 rm -f conftest.err conftest.$ac_objext \
17846 conftest$ac_exeext conftest.$ac_ext
17847 LIBS=$ac_check_lib_save_LIBS
17849 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17850 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17851 if test $ac_cv_lib_svld_dlopen = yes; then
17852 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17854 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17855 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17856 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17857 echo $ECHO_N "(cached) $ECHO_C" >&6
17859 ac_check_lib_save_LIBS=$LIBS
17861 cat >conftest.$ac_ext <<_ACEOF
17864 cat confdefs.h >>conftest.$ac_ext
17865 cat >>conftest.$ac_ext <<_ACEOF
17866 /* end confdefs.h. */
17868 /* Override any gcc2 internal prototype to avoid an error. */
17872 /* We use char because int might match the return type of a gcc2
17873 builtin and then its argument prototype would still apply. */
17883 rm -f conftest.$ac_objext conftest$ac_exeext
17884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17885 (eval $ac_link) 2>conftest.er1
17887 grep -v '^ *+' conftest.er1 >conftest.err
17889 cat conftest.err >&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } &&
17892 { ac_try='test -z "$ac_cxx_werror_flag"
17893 || test ! -s conftest.err'
17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895 (eval $ac_try) 2>&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; } &&
17899 { ac_try='test -s conftest$ac_exeext'
17900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17901 (eval $ac_try) 2>&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); }; }; then
17905 ac_cv_lib_dld_dld_link=yes
17907 echo "$as_me: failed program was:" >&5
17908 sed 's/^/| /' conftest.$ac_ext >&5
17910 ac_cv_lib_dld_dld_link=no
17912 rm -f conftest.err conftest.$ac_objext \
17913 conftest$ac_exeext conftest.$ac_ext
17914 LIBS=$ac_check_lib_save_LIBS
17916 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17917 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17918 if test $ac_cv_lib_dld_dld_link = yes; then
17919 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17940 if test "x$lt_cv_dlopen" != xno; then
17946 case $lt_cv_dlopen in
17948 save_CPPFLAGS="$CPPFLAGS"
17949 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17951 save_LDFLAGS="$LDFLAGS"
17952 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17955 LIBS="$lt_cv_dlopen_libs $LIBS"
17957 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17958 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17959 if test "${lt_cv_dlopen_self+set}" = set; then
17960 echo $ECHO_N "(cached) $ECHO_C" >&6
17962 if test "$cross_compiling" = yes; then :
17963 lt_cv_dlopen_self=cross
17965 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17966 lt_status=$lt_dlunknown
17967 cat > conftest.$ac_ext <<EOF
17968 #line 17968 "configure"
17969 #include "confdefs.h"
17978 # define LT_DLGLOBAL RTLD_GLOBAL
17981 # define LT_DLGLOBAL DL_GLOBAL
17983 # define LT_DLGLOBAL 0
17987 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17988 find out it does not work in some platform. */
17989 #ifndef LT_DLLAZY_OR_NOW
17991 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17994 # define LT_DLLAZY_OR_NOW DL_LAZY
17997 # define LT_DLLAZY_OR_NOW RTLD_NOW
18000 # define LT_DLLAZY_OR_NOW DL_NOW
18002 # define LT_DLLAZY_OR_NOW 0
18010 extern "C" void exit (int);
18013 void fnord() { int i=42;}
18016 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18017 int status = $lt_dlunknown;
18021 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18022 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18023 /* dlclose (self); */
18029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18030 (eval $ac_link) 2>&5
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18034 (./conftest; exit; ) 2>/dev/null
18036 case x$lt_status in
18037 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18038 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18039 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18042 # compilation failed
18043 lt_cv_dlopen_self=no
18050 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18051 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18053 if test "x$lt_cv_dlopen_self" = xyes; then
18054 LDFLAGS="$LDFLAGS $link_static_flag"
18055 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18056 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18057 if test "${lt_cv_dlopen_self_static+set}" = set; then
18058 echo $ECHO_N "(cached) $ECHO_C" >&6
18060 if test "$cross_compiling" = yes; then :
18061 lt_cv_dlopen_self_static=cross
18063 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18064 lt_status=$lt_dlunknown
18065 cat > conftest.$ac_ext <<EOF
18066 #line 18066 "configure"
18067 #include "confdefs.h"
18076 # define LT_DLGLOBAL RTLD_GLOBAL
18079 # define LT_DLGLOBAL DL_GLOBAL
18081 # define LT_DLGLOBAL 0
18085 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18086 find out it does not work in some platform. */
18087 #ifndef LT_DLLAZY_OR_NOW
18089 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18092 # define LT_DLLAZY_OR_NOW DL_LAZY
18095 # define LT_DLLAZY_OR_NOW RTLD_NOW
18098 # define LT_DLLAZY_OR_NOW DL_NOW
18100 # define LT_DLLAZY_OR_NOW 0
18108 extern "C" void exit (int);
18111 void fnord() { int i=42;}
18114 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18115 int status = $lt_dlunknown;
18119 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18120 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18121 /* dlclose (self); */
18127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18128 (eval $ac_link) 2>&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18132 (./conftest; exit; ) 2>/dev/null
18134 case x$lt_status in
18135 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18136 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18137 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18140 # compilation failed
18141 lt_cv_dlopen_self_static=no
18148 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18149 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18152 CPPFLAGS="$save_CPPFLAGS"
18153 LDFLAGS="$save_LDFLAGS"
18158 case $lt_cv_dlopen_self in
18159 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18160 *) enable_dlopen_self=unknown ;;
18163 case $lt_cv_dlopen_self_static in
18164 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18165 *) enable_dlopen_self_static=unknown ;;
18170 # The else clause should only fire when bootstrapping the
18171 # libtool distribution, otherwise you forgot to ship ltmain.sh
18172 # with your package, and you will get complaints that there are
18173 # no rules to generate ltmain.sh.
18174 if test -f "$ltmain"; then
18175 # See if we are running on zsh, and set the options which allow our commands through
18176 # without removal of \ escapes.
18177 if test -n "${ZSH_VERSION+set}" ; then
18178 setopt NO_GLOB_SUBST
18180 # Now quote all the things that may contain metacharacters while being
18181 # careful not to overquote the AC_SUBSTed values. We take copies of the
18182 # variables and quote the copies for generation of the libtool script.
18183 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18185 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18186 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18187 deplibs_check_method reload_flag reload_cmds need_locks \
18188 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18189 lt_cv_sys_global_symbol_to_c_name_address \
18190 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18191 old_postinstall_cmds old_postuninstall_cmds \
18195 lt_prog_compiler_wl_CXX \
18196 lt_prog_compiler_pic_CXX \
18197 lt_prog_compiler_static_CXX \
18198 lt_prog_compiler_no_builtin_flag_CXX \
18199 export_dynamic_flag_spec_CXX \
18200 thread_safe_flag_spec_CXX \
18201 whole_archive_flag_spec_CXX \
18202 enable_shared_with_static_runtimes_CXX \
18203 old_archive_cmds_CXX \
18204 old_archive_from_new_cmds_CXX \
18205 predep_objects_CXX \
18206 postdep_objects_CXX \
18209 compiler_lib_search_path_CXX \
18211 archive_expsym_cmds_CXX \
18212 postinstall_cmds_CXX \
18213 postuninstall_cmds_CXX \
18214 old_archive_from_expsyms_cmds_CXX \
18215 allow_undefined_flag_CXX \
18216 no_undefined_flag_CXX \
18217 export_symbols_cmds_CXX \
18218 hardcode_libdir_flag_spec_CXX \
18219 hardcode_libdir_flag_spec_ld_CXX \
18220 hardcode_libdir_separator_CXX \
18221 hardcode_automatic_CXX \
18223 module_expsym_cmds_CXX \
18224 lt_cv_prog_compiler_c_o_CXX \
18225 exclude_expsyms_CXX \
18226 include_expsyms_CXX; do
18229 old_archive_cmds_CXX | \
18230 old_archive_from_new_cmds_CXX | \
18231 archive_cmds_CXX | \
18232 archive_expsym_cmds_CXX | \
18233 module_cmds_CXX | \
18234 module_expsym_cmds_CXX | \
18235 old_archive_from_expsyms_cmds_CXX | \
18236 export_symbols_cmds_CXX | \
18237 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18238 postinstall_cmds | postuninstall_cmds | \
18239 old_postinstall_cmds | old_postuninstall_cmds | \
18240 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18241 # Double-quote double-evaled strings.
18242 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18245 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18251 *'\$0 --fallback-echo"')
18252 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18258 cat <<__EOF__ >> "$cfgfile"
18259 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18261 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18263 # Shell to use when invoking shell scripts.
18266 # Whether or not to build shared libraries.
18267 build_libtool_libs=$enable_shared
18269 # Whether or not to build static libraries.
18270 build_old_libs=$enable_static
18272 # Whether or not to add -lc for building shared libraries.
18273 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18275 # Whether or not to disallow shared libs when runtime libs are static
18276 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18278 # Whether or not to optimize for fast installation.
18279 fast_install=$enable_fast_install
18282 host_alias=$host_alias
18285 # An echo program that does not interpret backslashes.
18290 AR_FLAGS=$lt_AR_FLAGS
18295 # A language-specific compiler.
18296 CC=$lt_compiler_CXX
18298 # Is the compiler the GNU C compiler?
18304 # The linker used to build libraries.
18307 # Whether we need hard or soft links.
18310 # A BSD-compatible nm program.
18313 # A symbol stripping program
18316 # Used to examine libraries when file_magic_cmd begins "file"
18317 MAGIC_CMD=$MAGIC_CMD
18319 # Used on cygwin: DLL creation program.
18322 # Used on cygwin: object dumper.
18325 # Used on cygwin: assembler.
18328 # The name of the directory that contains temporary libtool files.
18331 # How to create reloadable object files.
18332 reload_flag=$lt_reload_flag
18333 reload_cmds=$lt_reload_cmds
18335 # How to pass a linker flag through the compiler.
18336 wl=$lt_lt_prog_compiler_wl_CXX
18338 # Object file suffix (normally "o").
18339 objext="$ac_objext"
18341 # Old archive suffix (normally "a").
18344 # Shared library suffix (normally ".so").
18345 shrext_cmds='$shrext_cmds'
18347 # Executable file suffix (normally "").
18350 # Additional compiler flags for building library objects.
18351 pic_flag=$lt_lt_prog_compiler_pic_CXX
18354 # What is the maximum length of a command?
18355 max_cmd_len=$lt_cv_sys_max_cmd_len
18357 # Does compiler simultaneously support -c and -o options?
18358 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18360 # Must we lock files when doing compilation ?
18361 need_locks=$lt_need_locks
18363 # Do we need the lib prefix for modules?
18364 need_lib_prefix=$need_lib_prefix
18366 # Do we need a version for libraries?
18367 need_version=$need_version
18369 # Whether dlopen is supported.
18370 dlopen_support=$enable_dlopen
18372 # Whether dlopen of programs is supported.
18373 dlopen_self=$enable_dlopen_self
18375 # Whether dlopen of statically linked programs is supported.
18376 dlopen_self_static=$enable_dlopen_self_static
18378 # Compiler flag to prevent dynamic linking.
18379 link_static_flag=$lt_lt_prog_compiler_static_CXX
18381 # Compiler flag to turn off builtin functions.
18382 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18384 # Compiler flag to allow reflexive dlopens.
18385 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18387 # Compiler flag to generate shared objects directly from archives.
18388 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18390 # Compiler flag to generate thread-safe objects.
18391 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18393 # Library versioning type.
18394 version_type=$version_type
18396 # Format of library name prefix.
18397 libname_spec=$lt_libname_spec
18399 # List of archive names. First name is the real one, the rest are links.
18400 # The last name is the one that the linker finds with -lNAME.
18401 library_names_spec=$lt_library_names_spec
18403 # The coded name of the library, if different from the real name.
18404 soname_spec=$lt_soname_spec
18406 # Commands used to build and install an old-style archive.
18408 old_archive_cmds=$lt_old_archive_cmds_CXX
18409 old_postinstall_cmds=$lt_old_postinstall_cmds
18410 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18412 # Create an old-style archive from a shared archive.
18413 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18415 # Create a temporary old-style archive to link instead of a shared archive.
18416 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18418 # Commands used to build and install a shared archive.
18419 archive_cmds=$lt_archive_cmds_CXX
18420 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18421 postinstall_cmds=$lt_postinstall_cmds
18422 postuninstall_cmds=$lt_postuninstall_cmds
18424 # Commands used to build a loadable module (assumed same as above if empty)
18425 module_cmds=$lt_module_cmds_CXX
18426 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18428 # Commands to strip libraries.
18429 old_striplib=$lt_old_striplib
18430 striplib=$lt_striplib
18432 # Dependencies to place before the objects being linked to create a
18434 predep_objects=$lt_predep_objects_CXX
18436 # Dependencies to place after the objects being linked to create a
18438 postdep_objects=$lt_postdep_objects_CXX
18440 # Dependencies to place before the objects being linked to create a
18442 predeps=$lt_predeps_CXX
18444 # Dependencies to place after the objects being linked to create a
18446 postdeps=$lt_postdeps_CXX
18448 # The library search path used internally by the compiler when linking
18449 # a shared library.
18450 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18452 # Method to check whether dependent libraries are shared objects.
18453 deplibs_check_method=$lt_deplibs_check_method
18455 # Command to use when deplibs_check_method == file_magic.
18456 file_magic_cmd=$lt_file_magic_cmd
18458 # Flag that allows shared libraries with undefined symbols to be built.
18459 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18461 # Flag that forces no undefined symbols.
18462 no_undefined_flag=$lt_no_undefined_flag_CXX
18464 # Commands used to finish a libtool library installation in a directory.
18465 finish_cmds=$lt_finish_cmds
18467 # Same as above, but a single script fragment to be evaled but not shown.
18468 finish_eval=$lt_finish_eval
18470 # Take the output of nm and produce a listing of raw symbols and C names.
18471 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18473 # Transform the output of nm in a proper C declaration
18474 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18476 # Transform the output of nm in a C name address pair
18477 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18479 # This is the shared library runtime path variable.
18480 runpath_var=$runpath_var
18482 # This is the shared library path variable.
18483 shlibpath_var=$shlibpath_var
18485 # Is shlibpath searched before the hard-coded library search path?
18486 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18488 # How to hardcode a shared library path into an executable.
18489 hardcode_action=$hardcode_action_CXX
18491 # Whether we should hardcode library paths into libraries.
18492 hardcode_into_libs=$hardcode_into_libs
18494 # Flag to hardcode \$libdir into a binary during linking.
18495 # This must work even if \$libdir does not exist.
18496 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18498 # If ld is used when linking, flag to hardcode \$libdir into
18499 # a binary during linking. This must work even if \$libdir does
18501 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18503 # Whether we need a single -rpath flag with a separated argument.
18504 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18506 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18507 # resulting binary.
18508 hardcode_direct=$hardcode_direct_CXX
18510 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18511 # resulting binary.
18512 hardcode_minus_L=$hardcode_minus_L_CXX
18514 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18515 # the resulting binary.
18516 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18518 # Set to yes if building a shared library automatically hardcodes DIR into the library
18519 # and all subsequent libraries and executables linked against it.
18520 hardcode_automatic=$hardcode_automatic_CXX
18522 # Variables whose values should be saved in libtool wrapper scripts and
18523 # restored at relink time.
18524 variables_saved_for_relink="$variables_saved_for_relink"
18526 # Whether libtool must link a program against all its dependency libraries.
18527 link_all_deplibs=$link_all_deplibs_CXX
18529 # Compile-time system search path for libraries
18530 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18532 # Run-time system search path for libraries
18533 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18535 # Fix the shell variable \$srcfile for the compiler.
18536 fix_srcfile_path="$fix_srcfile_path_CXX"
18538 # Set to yes if exported symbols are required.
18539 always_export_symbols=$always_export_symbols_CXX
18541 # The commands to list exported symbols.
18542 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18544 # The commands to extract the exported symbol list from a shared archive.
18545 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18547 # Symbols that should not be listed in the preloaded symbols.
18548 exclude_expsyms=$lt_exclude_expsyms_CXX
18550 # Symbols that must always be exported.
18551 include_expsyms=$lt_include_expsyms_CXX
18553 # ### END LIBTOOL TAG CONFIG: $tagname
18559 # If there is no Makefile yet, we rely on a make rule to execute
18560 # `config.status --recheck' to rerun these tests and create the
18561 # libtool script then.
18562 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18563 if test -f "$ltmain_in"; then
18564 test -f Makefile && make "$ltmain"
18570 ac_cpp='$CPP $CPPFLAGS'
18571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18579 with_gnu_ldcxx=$with_gnu_ld
18580 with_gnu_ld=$lt_save_with_gnu_ld
18581 lt_cv_path_LDCXX=$lt_cv_path_LD
18582 lt_cv_path_LD=$lt_save_path_LD
18583 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18584 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18592 if test -n "$F77" && test "X$F77" != "Xno"; then
18595 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18596 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18597 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18600 archive_cmds_need_lc_F77=no
18601 allow_undefined_flag_F77=
18602 always_export_symbols_F77=no
18603 archive_expsym_cmds_F77=
18604 export_dynamic_flag_spec_F77=
18605 hardcode_direct_F77=no
18606 hardcode_libdir_flag_spec_F77=
18607 hardcode_libdir_flag_spec_ld_F77=
18608 hardcode_libdir_separator_F77=
18609 hardcode_minus_L_F77=no
18610 hardcode_automatic_F77=no
18612 module_expsym_cmds_F77=
18613 link_all_deplibs_F77=unknown
18614 old_archive_cmds_F77=$old_archive_cmds
18615 no_undefined_flag_F77=
18616 whole_archive_flag_spec_F77=
18617 enable_shared_with_static_runtimes_F77=no
18619 # Source file extension for f77 test sources.
18622 # Object file extension for compiled f77 test sources.
18626 # Code to be used in simple compile tests
18627 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18629 # Code to be used in simple link tests
18630 lt_simple_link_test_code=" program t\n end\n"
18632 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18634 # If no C compiler was specified, use CC.
18637 # Allow CC to be a program name with arguments.
18641 # Allow CC to be a program name with arguments.
18646 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18648 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18649 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18650 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18651 echo "${ECHO_T}$can_build_shared" >&6
18653 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18654 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18655 test "$can_build_shared" = "no" && enable_shared=no
18657 # On AIX, shared libraries and static libraries use the same namespace, and
18658 # are all built from PIC.
18661 test "$enable_shared" = yes && enable_static=no
18662 if test -n "$RANLIB"; then
18663 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18664 postinstall_cmds='$RANLIB $lib'
18668 test "$enable_shared" = yes && enable_static=no
18671 echo "$as_me:$LINENO: result: $enable_shared" >&5
18672 echo "${ECHO_T}$enable_shared" >&6
18674 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18675 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18676 # Make sure either enable_shared or enable_static is yes.
18677 test "$enable_shared" = yes || enable_static=yes
18678 echo "$as_me:$LINENO: result: $enable_static" >&5
18679 echo "${ECHO_T}$enable_static" >&6
18681 test "$ld_shlibs_F77" = no && can_build_shared=no
18686 lt_prog_compiler_wl_F77=
18687 lt_prog_compiler_pic_F77=
18688 lt_prog_compiler_static_F77=
18690 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18691 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18693 if test "$GCC" = yes; then
18694 lt_prog_compiler_wl_F77='-Wl,'
18695 lt_prog_compiler_static_F77='-static'
18699 # All AIX code is PIC.
18700 if test "$host_cpu" = ia64; then
18701 # AIX 5 now supports IA64 processor
18702 lt_prog_compiler_static_F77='-Bstatic'
18707 # FIXME: we need at least 68020 code to build shared libraries, but
18708 # adding the `-m68020' flag to GCC prevents building anything better,
18710 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18713 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18714 # PIC is the default for these OSes.
18717 mingw* | pw32* | os2*)
18718 # This hack is so that the source file can tell whether it is being
18719 # built for inclusion in a dll (and should export symbols for example).
18720 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18723 darwin* | rhapsody*)
18724 # PIC is the default on this platform
18725 # Common symbols not allowed in MH_DYLIB files
18726 lt_prog_compiler_pic_F77='-fno-common'
18730 # Just because we use GCC doesn't mean we suddenly get shared libraries
18731 # on systems that don't support them.
18732 lt_prog_compiler_can_build_shared_F77=no
18737 if test -d /usr/nec; then
18738 lt_prog_compiler_pic_F77=-Kconform_pic
18743 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18744 # not for PA HP-UX.
18745 case "$host_cpu" in
18750 lt_prog_compiler_pic_F77='-fPIC'
18756 lt_prog_compiler_pic_F77='-fPIC'
18760 # PORTME Check for flag to pass linker flags through the system compiler.
18763 lt_prog_compiler_wl_F77='-Wl,'
18764 if test "$host_cpu" = ia64; then
18765 # AIX 5 now supports IA64 processor
18766 lt_prog_compiler_static_F77='-Bstatic'
18768 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18772 # PIC is the default on this platform
18773 # Common symbols not allowed in MH_DYLIB files
18774 case "$cc_basename" in
18776 lt_prog_compiler_pic_F77='-qnocommon'
18777 lt_prog_compiler_wl_F77='-Wl,'
18782 mingw* | pw32* | os2*)
18783 # This hack is so that the source file can tell whether it is being
18784 # built for inclusion in a dll (and should export symbols for example).
18785 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18788 hpux9* | hpux10* | hpux11*)
18789 lt_prog_compiler_wl_F77='-Wl,'
18790 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18791 # not for PA HP-UX.
18792 case "$host_cpu" in
18797 lt_prog_compiler_pic_F77='+Z'
18800 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18801 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18804 irix5* | irix6* | nonstopux*)
18805 lt_prog_compiler_wl_F77='-Wl,'
18806 # PIC (with -KPIC) is the default.
18807 lt_prog_compiler_static_F77='-non_shared'
18811 lt_prog_compiler_pic_F77='-KPIC'
18812 lt_prog_compiler_static_F77='-Bstatic'
18818 lt_prog_compiler_wl_F77='-Wl,'
18819 lt_prog_compiler_pic_F77='-KPIC'
18820 lt_prog_compiler_static_F77='-static'
18823 lt_prog_compiler_wl_F77='-Wl,'
18824 # All Alpha code is PIC.
18825 lt_prog_compiler_static_F77='-non_shared'
18830 osf3* | osf4* | osf5*)
18831 lt_prog_compiler_wl_F77='-Wl,'
18832 # All OSF/1 code is PIC.
18833 lt_prog_compiler_static_F77='-non_shared'
18837 lt_prog_compiler_pic_F77='-Kpic'
18838 lt_prog_compiler_static_F77='-dn'
18842 lt_prog_compiler_wl_F77='-Wl,'
18843 lt_prog_compiler_pic_F77='-KPIC'
18844 lt_prog_compiler_static_F77='-Bstatic'
18848 lt_prog_compiler_wl_F77='-Qoption ld '
18849 lt_prog_compiler_pic_F77='-PIC'
18850 lt_prog_compiler_static_F77='-Bstatic'
18853 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18854 lt_prog_compiler_wl_F77='-Wl,'
18855 lt_prog_compiler_pic_F77='-KPIC'
18856 lt_prog_compiler_static_F77='-Bstatic'
18860 if test -d /usr/nec ;then
18861 lt_prog_compiler_pic_F77='-Kconform_pic'
18862 lt_prog_compiler_static_F77='-Bstatic'
18867 lt_prog_compiler_pic_F77='-pic'
18868 lt_prog_compiler_static_F77='-Bstatic'
18872 lt_prog_compiler_can_build_shared_F77=no
18877 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18878 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18881 # Check to make sure the PIC flag actually works.
18883 if test -n "$lt_prog_compiler_pic_F77"; then
18885 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18886 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18887 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18888 echo $ECHO_N "(cached) $ECHO_C" >&6
18890 lt_prog_compiler_pic_works_F77=no
18891 ac_outfile=conftest.$ac_objext
18892 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18893 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18894 # Insert the option either (1) after the last *FLAGS variable, or
18895 # (2) before a word containing "conftest.", or (3) at the end.
18896 # Note that $ac_compile itself does not contain backslashes and begins
18897 # with a dollar sign (not a hyphen), so the echo should work correctly.
18898 # The option is referenced via a variable to avoid confusing sed.
18899 lt_compile=`echo "$ac_compile" | $SED \
18900 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18902 -e 's:$: $lt_compiler_flag:'`
18903 (eval echo "\"\$as_me:18903: $lt_compile\"" >&5)
18904 (eval "$lt_compile" 2>conftest.err)
18906 cat conftest.err >&5
18907 echo "$as_me:18907: \$? = $ac_status" >&5
18908 if (exit $ac_status) && test -s "$ac_outfile"; then
18909 # The compiler can only warn and ignore the option if not recognized
18910 # So say no if there are warnings
18911 if test ! -s conftest.err; then
18912 lt_prog_compiler_pic_works_F77=yes
18918 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18919 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18921 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18922 case $lt_prog_compiler_pic_F77 in
18924 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18927 lt_prog_compiler_pic_F77=
18928 lt_prog_compiler_can_build_shared_F77=no
18933 # For platforms which do not support PIC, -DPIC is meaningless:
18935 lt_prog_compiler_pic_F77=
18938 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18942 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18943 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18944 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18945 echo $ECHO_N "(cached) $ECHO_C" >&6
18947 lt_cv_prog_compiler_c_o_F77=no
18948 $rm -r conftest 2>/dev/null
18952 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18954 lt_compiler_flag="-o out/conftest2.$ac_objext"
18955 # Insert the option either (1) after the last *FLAGS variable, or
18956 # (2) before a word containing "conftest.", or (3) at the end.
18957 # Note that $ac_compile itself does not contain backslashes and begins
18958 # with a dollar sign (not a hyphen), so the echo should work correctly.
18959 lt_compile=`echo "$ac_compile" | $SED \
18960 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18962 -e 's:$: $lt_compiler_flag:'`
18963 (eval echo "\"\$as_me:18963: $lt_compile\"" >&5)
18964 (eval "$lt_compile" 2>out/conftest.err)
18966 cat out/conftest.err >&5
18967 echo "$as_me:18967: \$? = $ac_status" >&5
18968 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18970 # The compiler can only warn and ignore the option if not recognized
18971 # So say no if there are warnings
18972 if test ! -s out/conftest.err; then
18973 lt_cv_prog_compiler_c_o_F77=yes
18978 # SGI C++ compiler will create directory out/ii_files/ for
18979 # template instantiation
18980 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18981 $rm out/* && rmdir out
18987 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18988 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18991 hard_links="nottested"
18992 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18993 # do not overwrite the value of need_locks provided by the user
18994 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18995 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18998 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19000 ln conftest.a conftest.b 2>&5 || hard_links=no
19001 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19002 echo "$as_me:$LINENO: result: $hard_links" >&5
19003 echo "${ECHO_T}$hard_links" >&6
19004 if test "$hard_links" = no; then
19005 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19006 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19013 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19014 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19017 allow_undefined_flag_F77=
19018 enable_shared_with_static_runtimes_F77=no
19020 archive_expsym_cmds_F77=
19021 old_archive_From_new_cmds_F77=
19022 old_archive_from_expsyms_cmds_F77=
19023 export_dynamic_flag_spec_F77=
19024 whole_archive_flag_spec_F77=
19025 thread_safe_flag_spec_F77=
19026 hardcode_libdir_flag_spec_F77=
19027 hardcode_libdir_flag_spec_ld_F77=
19028 hardcode_libdir_separator_F77=
19029 hardcode_direct_F77=no
19030 hardcode_minus_L_F77=no
19031 hardcode_shlibpath_var_F77=unsupported
19032 link_all_deplibs_F77=unknown
19033 hardcode_automatic_F77=no
19035 module_expsym_cmds_F77=
19036 always_export_symbols_F77=no
19037 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19038 # include_expsyms should be a list of space-separated symbols to be *always*
19039 # included in the symbol list
19040 include_expsyms_F77=
19041 # exclude_expsyms can be an extended regexp of symbols to exclude
19042 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19043 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19044 # as well as any symbol that contains `d'.
19045 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19046 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19047 # platforms (ab)use it in PIC code, but their linkers get confused if
19048 # the symbol is explicitly referenced. Since portable code cannot
19049 # rely on this symbol name, it's probably fine to never include it in
19050 # preloaded symbol tables.
19051 extract_expsyms_cmds=
19054 cygwin* | mingw* | pw32*)
19055 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19056 # When not using gcc, we currently assume that we are using
19057 # Microsoft Visual C++.
19058 if test "$GCC" != yes; then
19068 if test "$with_gnu_ld" = yes; then
19069 # If archive_cmds runs LD, not CC, wlarc should be empty
19072 # See if GNU ld supports shared libraries.
19074 aix3* | aix4* | aix5*)
19075 # On AIX/PPC, the GNU linker is very broken
19076 if test "$host_cpu" != ia64; then
19080 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19081 *** to be unable to reliably create shared libraries on AIX.
19082 *** Therefore, libtool is disabling shared libraries support. If you
19083 *** really care for shared libraries, you may want to modify your PATH
19084 *** so that a non-GNU linker is found, and then restart.
19091 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)'
19092 hardcode_libdir_flag_spec_F77='-L$libdir'
19093 hardcode_minus_L_F77=yes
19095 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19096 # that the semantics of dynamic libraries on AmigaOS, at least up
19097 # to version 4, is to share data among multiple programs linked
19098 # with the same dynamic library. Since this doesn't match the
19099 # behavior of shared libraries on other platforms, we can't use
19105 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19106 allow_undefined_flag_F77=unsupported
19107 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19108 # support --undefined. This deserves some investigation. FIXME
19109 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19115 cygwin* | mingw* | pw32*)
19116 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19117 # as there is no search path for DLLs.
19118 hardcode_libdir_flag_spec_F77='-L$libdir'
19119 allow_undefined_flag_F77=unsupported
19120 always_export_symbols_F77=no
19121 enable_shared_with_static_runtimes_F77=yes
19122 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19124 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19125 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19126 # If the export-symbols file already is a .def file (1st line
19127 # is EXPORTS), use it as is; otherwise, prepend...
19128 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19129 cp $export_symbols $output_objdir/$soname.def;
19131 echo EXPORTS > $output_objdir/$soname.def;
19132 cat $export_symbols >> $output_objdir/$soname.def;
19134 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19141 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19142 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19145 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19146 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19151 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19155 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19156 *** create shared libraries on Solaris systems. Therefore, libtool
19157 *** is disabling shared libraries support. We urge you to upgrade GNU
19158 *** binutils to release 2.9.1 or newer. Another option is to modify
19159 *** your PATH or compiler configuration so that the native linker is
19160 *** used, and then restart.
19163 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19164 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19165 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19172 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19174 hardcode_direct_F77=yes
19175 hardcode_shlibpath_var_F77=no
19179 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19180 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19181 archive_cmds_F77="$tmp_archive_cmds"
19182 supports_anon_versioning=no
19183 case `$LD -v 2>/dev/null` in
19184 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19185 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19186 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19187 *\ 2.11.*) ;; # other 2.11 versions
19188 *) supports_anon_versioning=yes ;;
19190 if test $supports_anon_versioning = yes; then
19191 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19192 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19193 $echo "local: *; };" >> $output_objdir/$libname.ver~
19194 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19196 archive_expsym_cmds_F77="$tmp_archive_cmds"
19204 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19205 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19206 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19213 if test "$ld_shlibs_F77" = yes; then
19214 runpath_var=LD_RUN_PATH
19215 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19216 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19217 # ancient GNU ld didn't support --whole-archive et. al.
19218 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19219 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19221 whole_archive_flag_spec_F77=
19225 # PORTME fill in a description of your system's linker (not GNU ld)
19228 allow_undefined_flag_F77=unsupported
19229 always_export_symbols_F77=yes
19230 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'
19231 # Note: this linker hardcodes the directories in LIBPATH if there
19232 # are no directories specified by -L.
19233 hardcode_minus_L_F77=yes
19234 if test "$GCC" = yes && test -z "$link_static_flag"; then
19235 # Neither direct hardcoding nor static linking is supported with a
19237 hardcode_direct_F77=unsupported
19242 if test "$host_cpu" = ia64; then
19243 # On IA64, the linker does run time linking by default, so we don't
19244 # have to do anything special.
19245 aix_use_runtimelinking=no
19246 exp_sym_flag='-Bexport'
19249 # If we're using GNU nm, then we don't want the "-C" option.
19250 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19251 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19252 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'
19254 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'
19256 aix_use_runtimelinking=no
19258 # Test if we are trying to use run time linking or normal
19259 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19260 # need to do runtime linking.
19261 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19262 for ld_flag in $LDFLAGS; do
19263 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19264 aix_use_runtimelinking=yes
19270 exp_sym_flag='-bexport'
19271 no_entry_flag='-bnoentry'
19274 # When large executables or shared objects are built, AIX ld can
19275 # have problems creating the table of contents. If linking a library
19276 # or program results in "error TOC overflow" add -mminimal-toc to
19277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19280 archive_cmds_F77=''
19281 hardcode_direct_F77=yes
19282 hardcode_libdir_separator_F77=':'
19283 link_all_deplibs_F77=yes
19285 if test "$GCC" = yes; then
19286 case $host_os in aix4.012|aix4.012.*)
19287 # We only want to do this on AIX 4.2 and lower, the check
19288 # below for broken collect2 doesn't work under 4.3+
19289 collect2name=`${CC} -print-prog-name=collect2`
19290 if test -f "$collect2name" && \
19291 strings "$collect2name" | grep resolve_lib_name >/dev/null
19293 # We have reworked collect2
19294 hardcode_direct_F77=yes
19296 # We have old collect2
19297 hardcode_direct_F77=unsupported
19298 # It fails to find uninstalled libraries when the uninstalled
19299 # path is not listed in the libpath. Setting hardcode_minus_L
19300 # to unsupported forces relinking
19301 hardcode_minus_L_F77=yes
19302 hardcode_libdir_flag_spec_F77='-L$libdir'
19303 hardcode_libdir_separator_F77=
19306 shared_flag='-shared'
19309 if test "$host_cpu" = ia64; then
19310 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19311 # chokes on -Wl,-G. The following line is correct:
19314 if test "$aix_use_runtimelinking" = yes; then
19315 shared_flag='${wl}-G'
19317 shared_flag='${wl}-bM:SRE'
19322 # It seems that -bexpall does not export symbols beginning with
19323 # underscore (_), so it is better to generate a list of symbols to export.
19324 always_export_symbols_F77=yes
19325 if test "$aix_use_runtimelinking" = yes; then
19326 # Warning - without using the other runtime loading flags (-brtl),
19327 # -berok will link without error, but may produce a broken library.
19328 allow_undefined_flag_F77='-berok'
19329 # Determine the default libpath from the value encoded in an empty executable.
19330 cat >conftest.$ac_ext <<_ACEOF
19335 rm -f conftest.$ac_objext conftest$ac_exeext
19336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19337 (eval $ac_link) 2>conftest.er1
19339 grep -v '^ *+' conftest.er1 >conftest.err
19341 cat conftest.err >&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); } &&
19344 { ac_try='test -z "$ac_f77_werror_flag"
19345 || test ! -s conftest.err'
19346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347 (eval $ac_try) 2>&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; } &&
19351 { ac_try='test -s conftest$ac_exeext'
19352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353 (eval $ac_try) 2>&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); }; }; then
19358 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19360 # Check for a 64-bit object if we didn't find anything.
19361 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; }
19364 echo "$as_me: failed program was:" >&5
19365 sed 's/^/| /' conftest.$ac_ext >&5
19368 rm -f conftest.err conftest.$ac_objext \
19369 conftest$ac_exeext conftest.$ac_ext
19370 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19372 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19373 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"
19375 if test "$host_cpu" = ia64; then
19376 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19377 allow_undefined_flag_F77="-z nodefs"
19378 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"
19380 # Determine the default libpath from the value encoded in an empty executable.
19381 cat >conftest.$ac_ext <<_ACEOF
19386 rm -f conftest.$ac_objext conftest$ac_exeext
19387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19388 (eval $ac_link) 2>conftest.er1
19390 grep -v '^ *+' conftest.er1 >conftest.err
19392 cat conftest.err >&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); } &&
19395 { ac_try='test -z "$ac_f77_werror_flag"
19396 || test ! -s conftest.err'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; } &&
19402 { ac_try='test -s conftest$ac_exeext'
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; }; then
19409 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19411 # Check for a 64-bit object if we didn't find anything.
19412 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; }
19415 echo "$as_me: failed program was:" >&5
19416 sed 's/^/| /' conftest.$ac_ext >&5
19419 rm -f conftest.err conftest.$ac_objext \
19420 conftest$ac_exeext conftest.$ac_ext
19421 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19423 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19424 # Warning - without using the other run time loading flags,
19425 # -berok will link without error, but may produce a broken library.
19426 no_undefined_flag_F77=' ${wl}-bernotok'
19427 allow_undefined_flag_F77=' ${wl}-berok'
19428 # -bexpall does not export symbols beginning with underscore (_)
19429 always_export_symbols_F77=yes
19430 # Exported symbols can be pulled into shared objects from archives
19431 whole_archive_flag_spec_F77=' '
19432 archive_cmds_need_lc_F77=yes
19433 # This is similar to how AIX traditionally builds it's shared libraries.
19434 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'
19440 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)'
19441 hardcode_libdir_flag_spec_F77='-L$libdir'
19442 hardcode_minus_L_F77=yes
19443 # see comment about different semantics on the GNU ld section
19448 export_dynamic_flag_spec_F77=-rdynamic
19451 cygwin* | mingw* | pw32*)
19452 # When not using gcc, we currently assume that we are using
19453 # Microsoft Visual C++.
19454 # hardcode_libdir_flag_spec is actually meaningless, as there is
19455 # no search path for DLLs.
19456 hardcode_libdir_flag_spec_F77=' '
19457 allow_undefined_flag_F77=unsupported
19458 # Tell ltmain to make .lib files, not .a files.
19460 # Tell ltmain to make .dll files, not .so files.
19462 # FIXME: Setting linknames here is a bad hack.
19463 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19464 # The linker will automatically build a .lib file if we build a DLL.
19465 old_archive_From_new_cmds_F77='true'
19466 # FIXME: Should let the user specify the lib program.
19467 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19468 fix_srcfile_path='`cygpath -w "$srcfile"`'
19469 enable_shared_with_static_runtimes_F77=yes
19472 darwin* | rhapsody*)
19474 rhapsody* | darwin1.[012])
19475 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19478 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19479 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19481 case ${MACOSX_DEPLOYMENT_TARGET} in
19483 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19486 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19492 archive_cmds_need_lc_F77=no
19493 hardcode_direct_F77=no
19494 hardcode_automatic_F77=yes
19495 hardcode_shlibpath_var_F77=unsupported
19496 whole_archive_flag_spec_F77=''
19497 link_all_deplibs_F77=yes
19498 if test "$GCC" = yes ; then
19499 output_verbose_link_cmd='echo'
19500 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19501 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19502 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19503 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}'
19504 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}'
19506 case "$cc_basename" in
19508 output_verbose_link_cmd='echo'
19509 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19510 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19511 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19512 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}'
19513 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}'
19523 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19524 hardcode_libdir_flag_spec_F77='-L$libdir'
19525 hardcode_shlibpath_var_F77=no
19532 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19533 # support. Future versions do this automatically, but an explicit c++rt0.o
19534 # does not break anything, and helps significantly (at the cost of a little
19537 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19538 hardcode_libdir_flag_spec_F77='-R$libdir'
19539 hardcode_direct_F77=yes
19540 hardcode_shlibpath_var_F77=no
19543 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19545 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19546 hardcode_direct_F77=yes
19547 hardcode_minus_L_F77=yes
19548 hardcode_shlibpath_var_F77=no
19551 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19552 freebsd* | kfreebsd*-gnu)
19553 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19554 hardcode_libdir_flag_spec_F77='-R$libdir'
19555 hardcode_direct_F77=yes
19556 hardcode_shlibpath_var_F77=no
19560 if test "$GCC" = yes; then
19561 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'
19563 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'
19565 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19566 hardcode_libdir_separator_F77=:
19567 hardcode_direct_F77=yes
19569 # hardcode_minus_L: Not really in the search PATH,
19570 # but as the default location of the library.
19571 hardcode_minus_L_F77=yes
19572 export_dynamic_flag_spec_F77='${wl}-E'
19576 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19577 case "$host_cpu" in
19579 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19582 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19586 case "$host_cpu" in
19588 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19591 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19595 if test "$with_gnu_ld" = no; then
19596 case "$host_cpu" in
19598 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19599 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19600 hardcode_libdir_separator_F77=:
19601 hardcode_direct_F77=no
19602 hardcode_shlibpath_var_F77=no
19605 hardcode_libdir_flag_spec_F77='-L$libdir'
19606 hardcode_direct_F77=no
19607 hardcode_shlibpath_var_F77=no
19609 # hardcode_minus_L: Not really in the search PATH,
19610 # but as the default location of the library.
19611 hardcode_minus_L_F77=yes
19614 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19615 hardcode_libdir_separator_F77=:
19616 hardcode_direct_F77=yes
19617 export_dynamic_flag_spec_F77='${wl}-E'
19619 # hardcode_minus_L: Not really in the search PATH,
19620 # but as the default location of the library.
19621 hardcode_minus_L_F77=yes
19627 irix5* | irix6* | nonstopux*)
19628 if test "$GCC" = yes; then
19629 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'
19631 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'
19632 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19634 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19635 hardcode_libdir_separator_F77=:
19636 link_all_deplibs_F77=yes
19640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19641 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19643 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19645 hardcode_libdir_flag_spec_F77='-R$libdir'
19646 hardcode_direct_F77=yes
19647 hardcode_shlibpath_var_F77=no
19651 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19652 hardcode_direct_F77=yes
19653 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19654 hardcode_libdir_separator_F77=:
19655 hardcode_shlibpath_var_F77=no
19659 hardcode_direct_F77=yes
19660 hardcode_shlibpath_var_F77=no
19661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19662 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19663 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19664 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19665 export_dynamic_flag_spec_F77='${wl}-E'
19668 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19669 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19670 hardcode_libdir_flag_spec_F77='-R$libdir'
19673 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19674 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19681 hardcode_libdir_flag_spec_F77='-L$libdir'
19682 hardcode_minus_L_F77=yes
19683 allow_undefined_flag_F77=unsupported
19684 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'
19685 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19689 if test "$GCC" = yes; then
19690 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19691 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'
19693 allow_undefined_flag_F77=' -expect_unresolved \*'
19694 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'
19696 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19697 hardcode_libdir_separator_F77=:
19700 osf4* | osf5*) # as osf3* with the addition of -msym flag
19701 if test "$GCC" = yes; then
19702 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19703 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'
19704 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19706 allow_undefined_flag_F77=' -expect_unresolved \*'
19707 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'
19708 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~
19709 $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'
19711 # Both c and cxx compiler support -rpath directly
19712 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19714 hardcode_libdir_separator_F77=:
19718 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19719 hardcode_shlibpath_var_F77=no
19720 export_dynamic_flag_spec_F77='${wl}-Bexport'
19721 runpath_var=LD_RUN_PATH
19722 hardcode_runpath_var=yes
19726 no_undefined_flag_F77=' -z text'
19727 if test "$GCC" = yes; then
19728 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19729 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19730 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19732 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19733 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19734 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19736 hardcode_libdir_flag_spec_F77='-R$libdir'
19737 hardcode_shlibpath_var_F77=no
19739 solaris2.[0-5] | solaris2.[0-5].*) ;;
19740 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19741 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19743 link_all_deplibs_F77=yes
19747 if test "x$host_vendor" = xsequent; then
19748 # Use $CC to link under sequent, because it throws in some extra .o
19749 # files that make .init and .fini sections work.
19750 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19752 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19754 hardcode_libdir_flag_spec_F77='-L$libdir'
19755 hardcode_direct_F77=yes
19756 hardcode_minus_L_F77=yes
19757 hardcode_shlibpath_var_F77=no
19761 case $host_vendor in
19763 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19764 hardcode_direct_F77=yes # is this really true???
19767 ## LD is ld it makes a PLAMLIB
19768 ## CC just makes a GrossModule.
19769 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19770 reload_cmds_F77='$CC -r -o $output$reload_objs'
19771 hardcode_direct_F77=no
19774 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19775 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19778 runpath_var='LD_RUN_PATH'
19779 hardcode_shlibpath_var_F77=no
19783 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19784 hardcode_shlibpath_var_F77=no
19785 export_dynamic_flag_spec_F77='-Bexport'
19789 if test -d /usr/nec; then
19790 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19791 hardcode_shlibpath_var_F77=no
19792 runpath_var=LD_RUN_PATH
19793 hardcode_runpath_var=yes
19799 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19800 hardcode_direct_F77=yes
19801 hardcode_minus_L_F77=no
19802 hardcode_shlibpath_var_F77=no
19803 hardcode_runpath_var=yes
19804 runpath_var=LD_RUN_PATH
19807 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19808 no_undefined_flag_F77='${wl}-z ${wl}text'
19809 if test "$GCC" = yes; then
19810 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19812 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19814 runpath_var='LD_RUN_PATH'
19815 hardcode_shlibpath_var_F77=no
19819 no_undefined_flag_F77=' -z text'
19820 # $CC -shared without GNU ld will not create a library from C++
19821 # object files and a static libstdc++, better avoid it by now
19822 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19823 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19824 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19825 hardcode_libdir_flag_spec_F77=
19826 hardcode_shlibpath_var_F77=no
19827 runpath_var='LD_RUN_PATH'
19831 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19832 hardcode_libdir_flag_spec_F77='-L$libdir'
19833 hardcode_shlibpath_var_F77=no
19842 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19843 echo "${ECHO_T}$ld_shlibs_F77" >&6
19844 test "$ld_shlibs_F77" = no && can_build_shared=no
19846 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19847 if test "$GCC" = yes; then
19848 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19852 # Do we need to explicitly link libc?
19854 case "x$archive_cmds_need_lc_F77" in
19856 # Assume -lc should be added
19857 archive_cmds_need_lc_F77=yes
19859 if test "$enable_shared" = yes && test "$GCC" = yes; then
19860 case $archive_cmds_F77 in
19862 # FIXME: we may have to deal with multi-command sequences.
19865 # Test whether the compiler implicitly links with -lc since on some
19866 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19867 # to ld, don't add -lc before -lgcc.
19868 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19869 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19871 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19874 (eval $ac_compile) 2>&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } 2>conftest.err; then
19880 libobjs=conftest.$ac_objext
19882 wl=$lt_prog_compiler_wl_F77
19888 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19889 allow_undefined_flag_F77=
19890 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19891 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }
19896 archive_cmds_need_lc_F77=no
19898 archive_cmds_need_lc_F77=yes
19900 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19902 cat conftest.err 1>&5
19905 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19906 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19913 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19914 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19915 library_names_spec=
19916 libname_spec='lib$name'
19920 postuninstall_cmds=
19924 shlibpath_overrides_runpath=unknown
19926 dynamic_linker="$host_os ld.so"
19927 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19928 if test "$GCC" = yes; then
19929 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19930 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19931 # if the path contains ";" then we assume it to be the separator
19932 # otherwise default to the standard path separator (i.e. ":") - it is
19933 # assumed that no part of a normal pathname contains ";" but that should
19934 # okay in the real world where ";" in dirpaths is itself problematic.
19935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19937 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19940 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19942 need_lib_prefix=unknown
19943 hardcode_into_libs=no
19945 # when you set need_version to no, make sure it does not cause -set_version
19946 # flags to be left without arguments
19947 need_version=unknown
19952 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19953 shlibpath_var=LIBPATH
19955 # AIX 3 has no versioning support, so we append a major version to the name.
19956 soname_spec='${libname}${release}${shared_ext}$major'
19963 hardcode_into_libs=yes
19964 if test "$host_cpu" = ia64; then
19965 # AIX 5 supports IA64
19966 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19967 shlibpath_var=LD_LIBRARY_PATH
19969 # With GCC up to 2.95.x, collect2 would create an import file
19970 # for dependence libraries. The import file would start with
19971 # the line `#! .'. This would cause the generated library to
19972 # depend on `.', always an invalid library. This was fixed in
19973 # development snapshots of GCC prior to 3.0.
19975 aix4 | aix4.[01] | aix4.[01].*)
19976 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19978 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19981 can_build_shared=no
19985 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19986 # soname into executable. Probably we can add versioning support to
19987 # collect2, so additional links can be useful in future.
19988 if test "$aix_use_runtimelinking" = yes; then
19989 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19990 # instead of lib<name>.a to let people know that these are not
19991 # typical AIX shared libraries.
19992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19994 # We preserve .a as extension for shared libraries through AIX4.2
19995 # and later when we are not doing run time linking.
19996 library_names_spec='${libname}${release}.a $libname.a'
19997 soname_spec='${libname}${release}${shared_ext}$major'
19999 shlibpath_var=LIBPATH
20004 library_names_spec='$libname.ixlibrary $libname.a'
20005 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20006 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'
20010 library_names_spec='${libname}${shared_ext}'
20011 dynamic_linker="$host_os ld.so"
20012 shlibpath_var=LIBRARY_PATH
20018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20019 soname_spec='${libname}${release}${shared_ext}$major'
20020 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20021 shlibpath_var=LD_LIBRARY_PATH
20022 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20023 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20024 # the default ld.so.conf also contains /usr/contrib/lib and
20025 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20026 # libtool to hard-code these into programs
20029 cygwin* | mingw* | pw32*)
20030 version_type=windows
20035 case $GCC,$host_os in
20036 yes,cygwin* | yes,mingw* | yes,pw32*)
20037 library_names_spec='$libname.dll.a'
20038 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20039 postinstall_cmds='base_file=`basename \${file}`~
20040 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20041 dldir=$destdir/`dirname \$dlpath`~
20042 test -d \$dldir || mkdir -p \$dldir~
20043 $install_prog $dir/$dlname \$dldir/$dlname'
20044 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20045 dlpath=$dir/\$dldll~
20047 shlibpath_overrides_runpath=yes
20051 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20052 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20053 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20056 # MinGW DLLs use traditional 'lib' prefix
20057 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20058 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20059 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20060 # It is most probably a Windows format PATH printed by
20061 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20062 # path with ; separators, and with drive letters. We can handle the
20063 # drive letters (cygwin fileutils understands them), so leave them,
20064 # especially as we might pass files found there to a mingw objdump,
20065 # which wouldn't understand a cygwinified path. Ahh.
20066 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20068 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20072 # pw32 DLLs use 'pw' prefix rather than 'lib'
20073 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20079 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20082 dynamic_linker='Win32 ld.exe'
20083 # FIXME: first we should search . and the directory the executable is in
20087 darwin* | rhapsody*)
20088 dynamic_linker="$host_os dyld"
20089 version_type=darwin
20092 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20093 soname_spec='${libname}${release}${major}$shared_ext'
20094 shlibpath_overrides_runpath=yes
20095 shlibpath_var=DYLD_LIBRARY_PATH
20096 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20097 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20098 if test "$GCC" = yes; then
20099 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"`
20101 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20103 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20111 soname_spec='${libname}${release}${shared_ext}$major'
20112 shlibpath_var=LD_LIBRARY_PATH
20123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20124 soname_spec='${libname}${release}${shared_ext}$major'
20125 shlibpath_var=LD_LIBRARY_PATH
20126 shlibpath_overrides_runpath=no
20127 hardcode_into_libs=yes
20128 dynamic_linker='GNU ld.so'
20132 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20133 version_type=freebsd-$objformat
20134 case $version_type in
20136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20141 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20145 shlibpath_var=LD_LIBRARY_PATH
20148 shlibpath_overrides_runpath=yes
20150 freebsd3.01* | freebsdelf3.01*)
20151 shlibpath_overrides_runpath=yes
20152 hardcode_into_libs=yes
20155 shlibpath_overrides_runpath=no
20156 hardcode_into_libs=yes
20165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20166 soname_spec='${libname}${release}${shared_ext}$major'
20167 shlibpath_var=LD_LIBRARY_PATH
20168 hardcode_into_libs=yes
20171 hpux9* | hpux10* | hpux11*)
20172 # Give a soname corresponding to the major version so that dld.sl refuses to
20173 # link against other versions.
20177 case "$host_cpu" in
20180 hardcode_into_libs=yes
20181 dynamic_linker="$host_os dld.so"
20182 shlibpath_var=LD_LIBRARY_PATH
20183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20185 soname_spec='${libname}${release}${shared_ext}$major'
20186 if test "X$HPUX_IA64_MODE" = X32; then
20187 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20189 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20191 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20195 hardcode_into_libs=yes
20196 dynamic_linker="$host_os dld.sl"
20197 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20198 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20200 soname_spec='${libname}${release}${shared_ext}$major'
20201 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20202 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20206 dynamic_linker="$host_os dld.sl"
20207 shlibpath_var=SHLIB_PATH
20208 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20210 soname_spec='${libname}${release}${shared_ext}$major'
20213 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20214 postinstall_cmds='chmod 555 $lib'
20217 irix5* | irix6* | nonstopux*)
20219 nonstopux*) version_type=nonstopux ;;
20221 if test "$lt_cv_prog_gnu_ld" = yes; then
20229 soname_spec='${libname}${release}${shared_ext}$major'
20230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20232 irix5* | nonstopux*)
20233 libsuff= shlibsuff=
20236 case $LD in # libtool.m4 will add one of these switches to LD
20237 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20238 libsuff= shlibsuff= libmagic=32-bit;;
20239 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20240 libsuff=32 shlibsuff=N32 libmagic=N32;;
20241 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20242 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20243 *) libsuff= shlibsuff= libmagic=never-match;;
20247 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20248 shlibpath_overrides_runpath=no
20249 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20250 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20251 hardcode_into_libs=yes
20254 # No shared lib support for Linux oldld, aout, or coff.
20255 linux*oldld* | linux*aout* | linux*coff*)
20259 # This must be Linux ELF.
20264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20265 soname_spec='${libname}${release}${shared_ext}$major'
20266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20267 shlibpath_var=LD_LIBRARY_PATH
20268 shlibpath_overrides_runpath=no
20269 # This implies no fast_install, which is unacceptable.
20270 # Some rework will be needed to allow for fast_install
20271 # before this can be enabled.
20272 hardcode_into_libs=yes
20274 # Append ld.so.conf contents to the search path
20275 if test -f /etc/ld.so.conf; then
20276 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20277 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20280 # We used to test for /lib/ld.so.1 and disable shared libraries on
20281 # powerpc, because MkLinux only supported shared libraries with the
20282 # GNU dynamic linker. Since this was broken with cross compilers,
20283 # most powerpc-linux boxes support dynamic linking these days and
20284 # people can always --disable-shared, the test was removed, and we
20285 # assume the GNU/Linux dynamic linker is in use.
20286 dynamic_linker='GNU/Linux ld.so'
20293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20294 soname_spec='${libname}${release}${shared_ext}$major'
20295 shlibpath_var=LD_LIBRARY_PATH
20296 shlibpath_overrides_runpath=no
20297 hardcode_into_libs=yes
20298 dynamic_linker='GNU ld.so'
20305 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20308 dynamic_linker='NetBSD (a.out) ld.so'
20310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20311 soname_spec='${libname}${release}${shared_ext}$major'
20312 dynamic_linker='NetBSD ld.elf_so'
20314 shlibpath_var=LD_LIBRARY_PATH
20315 shlibpath_overrides_runpath=yes
20316 hardcode_into_libs=yes
20321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20322 shlibpath_var=LD_LIBRARY_PATH
20323 shlibpath_overrides_runpath=yes
20330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20331 soname_spec='${libname}${release}${shared_ext}$major'
20332 shlibpath_var=LD_LIBRARY_PATH
20333 shlibpath_overrides_runpath=yes
20340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20342 shlibpath_var=LD_LIBRARY_PATH
20343 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20345 openbsd2.[89] | openbsd2.[89].*)
20346 shlibpath_overrides_runpath=no
20349 shlibpath_overrides_runpath=yes
20353 shlibpath_overrides_runpath=yes
20358 libname_spec='$name'
20361 library_names_spec='$libname${shared_ext} $libname.a'
20362 dynamic_linker='OS/2 ld.exe'
20363 shlibpath_var=LIBPATH
20366 osf3* | osf4* | osf5*)
20370 soname_spec='${libname}${release}${shared_ext}$major'
20371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20372 shlibpath_var=LD_LIBRARY_PATH
20373 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20374 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20379 soname_spec='${libname}${release}${shared_ext}$major'
20380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20381 shlibpath_var=LD_LIBRARY_PATH
20388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20389 soname_spec='${libname}${release}${shared_ext}$major'
20390 shlibpath_var=LD_LIBRARY_PATH
20391 shlibpath_overrides_runpath=yes
20392 hardcode_into_libs=yes
20393 # ldd complains unless libraries are executable
20394 postinstall_cmds='chmod +x $lib'
20399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20400 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20401 shlibpath_var=LD_LIBRARY_PATH
20402 shlibpath_overrides_runpath=yes
20403 if test "$with_gnu_ld" = yes; then
20409 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20412 soname_spec='${libname}${release}${shared_ext}$major'
20413 shlibpath_var=LD_LIBRARY_PATH
20414 case $host_vendor in
20416 shlibpath_overrides_runpath=no
20418 export_dynamic_flag_spec='${wl}-Blargedynsym'
20419 runpath_var=LD_RUN_PATH
20427 shlibpath_overrides_runpath=no
20428 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20434 if test -d /usr/nec ;then
20436 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20437 soname_spec='$libname${shared_ext}.$major'
20438 shlibpath_var=LD_LIBRARY_PATH
20444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20445 soname_spec='${libname}${release}${shared_ext}$major'
20446 shlibpath_var=LD_LIBRARY_PATH
20453 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20454 echo "${ECHO_T}$dynamic_linker" >&6
20455 test "$dynamic_linker" = no && can_build_shared=no
20457 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20458 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20459 hardcode_action_F77=
20460 if test -n "$hardcode_libdir_flag_spec_F77" || \
20461 test -n "$runpath_var_F77" || \
20462 test "X$hardcode_automatic_F77" = "Xyes" ; then
20464 # We can hardcode non-existant directories.
20465 if test "$hardcode_direct_F77" != no &&
20466 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20467 # have to relink, otherwise we might link with an installed library
20468 # when we should be linking with a yet-to-be-installed one
20469 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20470 test "$hardcode_minus_L_F77" != no; then
20471 # Linking always hardcodes the temporary library directory.
20472 hardcode_action_F77=relink
20474 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20475 hardcode_action_F77=immediate
20478 # We cannot hardcode anything, or else we can only hardcode existing
20480 hardcode_action_F77=unsupported
20482 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20483 echo "${ECHO_T}$hardcode_action_F77" >&6
20485 if test "$hardcode_action_F77" = relink; then
20486 # Fast installation is not supported
20487 enable_fast_install=no
20488 elif test "$shlibpath_overrides_runpath" = yes ||
20489 test "$enable_shared" = no; then
20490 # Fast installation is not necessary
20491 enable_fast_install=needless
20496 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20497 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20498 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20499 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20500 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20501 echo "$as_me:$LINENO: result: yes" >&5
20502 echo "${ECHO_T}yes" >&6
20504 # FIXME - insert some real tests, host_os isn't really good enough
20507 if test -n "$STRIP" ; then
20508 striplib="$STRIP -x"
20509 echo "$as_me:$LINENO: result: yes" >&5
20510 echo "${ECHO_T}yes" >&6
20512 echo "$as_me:$LINENO: result: no" >&5
20513 echo "${ECHO_T}no" >&6
20517 echo "$as_me:$LINENO: result: no" >&5
20518 echo "${ECHO_T}no" >&6
20525 # The else clause should only fire when bootstrapping the
20526 # libtool distribution, otherwise you forgot to ship ltmain.sh
20527 # with your package, and you will get complaints that there are
20528 # no rules to generate ltmain.sh.
20529 if test -f "$ltmain"; then
20530 # See if we are running on zsh, and set the options which allow our commands through
20531 # without removal of \ escapes.
20532 if test -n "${ZSH_VERSION+set}" ; then
20533 setopt NO_GLOB_SUBST
20535 # Now quote all the things that may contain metacharacters while being
20536 # careful not to overquote the AC_SUBSTed values. We take copies of the
20537 # variables and quote the copies for generation of the libtool script.
20538 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20540 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20541 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20542 deplibs_check_method reload_flag reload_cmds need_locks \
20543 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20544 lt_cv_sys_global_symbol_to_c_name_address \
20545 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20546 old_postinstall_cmds old_postuninstall_cmds \
20550 lt_prog_compiler_wl_F77 \
20551 lt_prog_compiler_pic_F77 \
20552 lt_prog_compiler_static_F77 \
20553 lt_prog_compiler_no_builtin_flag_F77 \
20554 export_dynamic_flag_spec_F77 \
20555 thread_safe_flag_spec_F77 \
20556 whole_archive_flag_spec_F77 \
20557 enable_shared_with_static_runtimes_F77 \
20558 old_archive_cmds_F77 \
20559 old_archive_from_new_cmds_F77 \
20560 predep_objects_F77 \
20561 postdep_objects_F77 \
20564 compiler_lib_search_path_F77 \
20566 archive_expsym_cmds_F77 \
20567 postinstall_cmds_F77 \
20568 postuninstall_cmds_F77 \
20569 old_archive_from_expsyms_cmds_F77 \
20570 allow_undefined_flag_F77 \
20571 no_undefined_flag_F77 \
20572 export_symbols_cmds_F77 \
20573 hardcode_libdir_flag_spec_F77 \
20574 hardcode_libdir_flag_spec_ld_F77 \
20575 hardcode_libdir_separator_F77 \
20576 hardcode_automatic_F77 \
20578 module_expsym_cmds_F77 \
20579 lt_cv_prog_compiler_c_o_F77 \
20580 exclude_expsyms_F77 \
20581 include_expsyms_F77; do
20584 old_archive_cmds_F77 | \
20585 old_archive_from_new_cmds_F77 | \
20586 archive_cmds_F77 | \
20587 archive_expsym_cmds_F77 | \
20588 module_cmds_F77 | \
20589 module_expsym_cmds_F77 | \
20590 old_archive_from_expsyms_cmds_F77 | \
20591 export_symbols_cmds_F77 | \
20592 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20593 postinstall_cmds | postuninstall_cmds | \
20594 old_postinstall_cmds | old_postuninstall_cmds | \
20595 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20596 # Double-quote double-evaled strings.
20597 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20600 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20606 *'\$0 --fallback-echo"')
20607 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20613 cat <<__EOF__ >> "$cfgfile"
20614 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20616 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20618 # Shell to use when invoking shell scripts.
20621 # Whether or not to build shared libraries.
20622 build_libtool_libs=$enable_shared
20624 # Whether or not to build static libraries.
20625 build_old_libs=$enable_static
20627 # Whether or not to add -lc for building shared libraries.
20628 build_libtool_need_lc=$archive_cmds_need_lc_F77
20630 # Whether or not to disallow shared libs when runtime libs are static
20631 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20633 # Whether or not to optimize for fast installation.
20634 fast_install=$enable_fast_install
20637 host_alias=$host_alias
20640 # An echo program that does not interpret backslashes.
20645 AR_FLAGS=$lt_AR_FLAGS
20650 # A language-specific compiler.
20651 CC=$lt_compiler_F77
20653 # Is the compiler the GNU C compiler?
20659 # The linker used to build libraries.
20662 # Whether we need hard or soft links.
20665 # A BSD-compatible nm program.
20668 # A symbol stripping program
20671 # Used to examine libraries when file_magic_cmd begins "file"
20672 MAGIC_CMD=$MAGIC_CMD
20674 # Used on cygwin: DLL creation program.
20677 # Used on cygwin: object dumper.
20680 # Used on cygwin: assembler.
20683 # The name of the directory that contains temporary libtool files.
20686 # How to create reloadable object files.
20687 reload_flag=$lt_reload_flag
20688 reload_cmds=$lt_reload_cmds
20690 # How to pass a linker flag through the compiler.
20691 wl=$lt_lt_prog_compiler_wl_F77
20693 # Object file suffix (normally "o").
20694 objext="$ac_objext"
20696 # Old archive suffix (normally "a").
20699 # Shared library suffix (normally ".so").
20700 shrext_cmds='$shrext_cmds'
20702 # Executable file suffix (normally "").
20705 # Additional compiler flags for building library objects.
20706 pic_flag=$lt_lt_prog_compiler_pic_F77
20709 # What is the maximum length of a command?
20710 max_cmd_len=$lt_cv_sys_max_cmd_len
20712 # Does compiler simultaneously support -c and -o options?
20713 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20715 # Must we lock files when doing compilation ?
20716 need_locks=$lt_need_locks
20718 # Do we need the lib prefix for modules?
20719 need_lib_prefix=$need_lib_prefix
20721 # Do we need a version for libraries?
20722 need_version=$need_version
20724 # Whether dlopen is supported.
20725 dlopen_support=$enable_dlopen
20727 # Whether dlopen of programs is supported.
20728 dlopen_self=$enable_dlopen_self
20730 # Whether dlopen of statically linked programs is supported.
20731 dlopen_self_static=$enable_dlopen_self_static
20733 # Compiler flag to prevent dynamic linking.
20734 link_static_flag=$lt_lt_prog_compiler_static_F77
20736 # Compiler flag to turn off builtin functions.
20737 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20739 # Compiler flag to allow reflexive dlopens.
20740 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20742 # Compiler flag to generate shared objects directly from archives.
20743 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20745 # Compiler flag to generate thread-safe objects.
20746 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20748 # Library versioning type.
20749 version_type=$version_type
20751 # Format of library name prefix.
20752 libname_spec=$lt_libname_spec
20754 # List of archive names. First name is the real one, the rest are links.
20755 # The last name is the one that the linker finds with -lNAME.
20756 library_names_spec=$lt_library_names_spec
20758 # The coded name of the library, if different from the real name.
20759 soname_spec=$lt_soname_spec
20761 # Commands used to build and install an old-style archive.
20763 old_archive_cmds=$lt_old_archive_cmds_F77
20764 old_postinstall_cmds=$lt_old_postinstall_cmds
20765 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20767 # Create an old-style archive from a shared archive.
20768 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20770 # Create a temporary old-style archive to link instead of a shared archive.
20771 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20773 # Commands used to build and install a shared archive.
20774 archive_cmds=$lt_archive_cmds_F77
20775 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20776 postinstall_cmds=$lt_postinstall_cmds
20777 postuninstall_cmds=$lt_postuninstall_cmds
20779 # Commands used to build a loadable module (assumed same as above if empty)
20780 module_cmds=$lt_module_cmds_F77
20781 module_expsym_cmds=$lt_module_expsym_cmds_F77
20783 # Commands to strip libraries.
20784 old_striplib=$lt_old_striplib
20785 striplib=$lt_striplib
20787 # Dependencies to place before the objects being linked to create a
20789 predep_objects=$lt_predep_objects_F77
20791 # Dependencies to place after the objects being linked to create a
20793 postdep_objects=$lt_postdep_objects_F77
20795 # Dependencies to place before the objects being linked to create a
20797 predeps=$lt_predeps_F77
20799 # Dependencies to place after the objects being linked to create a
20801 postdeps=$lt_postdeps_F77
20803 # The library search path used internally by the compiler when linking
20804 # a shared library.
20805 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20807 # Method to check whether dependent libraries are shared objects.
20808 deplibs_check_method=$lt_deplibs_check_method
20810 # Command to use when deplibs_check_method == file_magic.
20811 file_magic_cmd=$lt_file_magic_cmd
20813 # Flag that allows shared libraries with undefined symbols to be built.
20814 allow_undefined_flag=$lt_allow_undefined_flag_F77
20816 # Flag that forces no undefined symbols.
20817 no_undefined_flag=$lt_no_undefined_flag_F77
20819 # Commands used to finish a libtool library installation in a directory.
20820 finish_cmds=$lt_finish_cmds
20822 # Same as above, but a single script fragment to be evaled but not shown.
20823 finish_eval=$lt_finish_eval
20825 # Take the output of nm and produce a listing of raw symbols and C names.
20826 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20828 # Transform the output of nm in a proper C declaration
20829 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20831 # Transform the output of nm in a C name address pair
20832 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20834 # This is the shared library runtime path variable.
20835 runpath_var=$runpath_var
20837 # This is the shared library path variable.
20838 shlibpath_var=$shlibpath_var
20840 # Is shlibpath searched before the hard-coded library search path?
20841 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20843 # How to hardcode a shared library path into an executable.
20844 hardcode_action=$hardcode_action_F77
20846 # Whether we should hardcode library paths into libraries.
20847 hardcode_into_libs=$hardcode_into_libs
20849 # Flag to hardcode \$libdir into a binary during linking.
20850 # This must work even if \$libdir does not exist.
20851 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20853 # If ld is used when linking, flag to hardcode \$libdir into
20854 # a binary during linking. This must work even if \$libdir does
20856 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20858 # Whether we need a single -rpath flag with a separated argument.
20859 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20861 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20862 # resulting binary.
20863 hardcode_direct=$hardcode_direct_F77
20865 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20866 # resulting binary.
20867 hardcode_minus_L=$hardcode_minus_L_F77
20869 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20870 # the resulting binary.
20871 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20873 # Set to yes if building a shared library automatically hardcodes DIR into the library
20874 # and all subsequent libraries and executables linked against it.
20875 hardcode_automatic=$hardcode_automatic_F77
20877 # Variables whose values should be saved in libtool wrapper scripts and
20878 # restored at relink time.
20879 variables_saved_for_relink="$variables_saved_for_relink"
20881 # Whether libtool must link a program against all its dependency libraries.
20882 link_all_deplibs=$link_all_deplibs_F77
20884 # Compile-time system search path for libraries
20885 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20887 # Run-time system search path for libraries
20888 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20890 # Fix the shell variable \$srcfile for the compiler.
20891 fix_srcfile_path="$fix_srcfile_path_F77"
20893 # Set to yes if exported symbols are required.
20894 always_export_symbols=$always_export_symbols_F77
20896 # The commands to list exported symbols.
20897 export_symbols_cmds=$lt_export_symbols_cmds_F77
20899 # The commands to extract the exported symbol list from a shared archive.
20900 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20902 # Symbols that should not be listed in the preloaded symbols.
20903 exclude_expsyms=$lt_exclude_expsyms_F77
20905 # Symbols that must always be exported.
20906 include_expsyms=$lt_include_expsyms_F77
20908 # ### END LIBTOOL TAG CONFIG: $tagname
20914 # If there is no Makefile yet, we rely on a make rule to execute
20915 # `config.status --recheck' to rerun these tests and create the
20916 # libtool script then.
20917 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20918 if test -f "$ltmain_in"; then
20919 test -f Makefile && make "$ltmain"
20925 ac_cpp='$CPP $CPPFLAGS'
20926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20938 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20940 ac_cpp='$CPP $CPPFLAGS'
20941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20946 # Source file extension for Java test sources.
20949 # Object file extension for compiled Java test sources.
20953 # Code to be used in simple compile tests
20954 lt_simple_compile_test_code="class foo {}\n"
20956 # Code to be used in simple link tests
20957 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20959 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20961 # If no C compiler was specified, use CC.
20964 # Allow CC to be a program name with arguments.
20968 # Allow CC to be a program name with arguments.
20974 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20975 archive_cmds_need_lc_GCJ=no
20978 lt_prog_compiler_no_builtin_flag_GCJ=
20980 if test "$GCC" = yes; then
20981 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20984 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20985 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20986 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20987 echo $ECHO_N "(cached) $ECHO_C" >&6
20989 lt_cv_prog_compiler_rtti_exceptions=no
20990 ac_outfile=conftest.$ac_objext
20991 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20992 lt_compiler_flag="-fno-rtti -fno-exceptions"
20993 # Insert the option either (1) after the last *FLAGS variable, or
20994 # (2) before a word containing "conftest.", or (3) at the end.
20995 # Note that $ac_compile itself does not contain backslashes and begins
20996 # with a dollar sign (not a hyphen), so the echo should work correctly.
20997 # The option is referenced via a variable to avoid confusing sed.
20998 lt_compile=`echo "$ac_compile" | $SED \
20999 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21001 -e 's:$: $lt_compiler_flag:'`
21002 (eval echo "\"\$as_me:21002: $lt_compile\"" >&5)
21003 (eval "$lt_compile" 2>conftest.err)
21005 cat conftest.err >&5
21006 echo "$as_me:21006: \$? = $ac_status" >&5
21007 if (exit $ac_status) && test -s "$ac_outfile"; then
21008 # The compiler can only warn and ignore the option if not recognized
21009 # So say no if there are warnings
21010 if test ! -s conftest.err; then
21011 lt_cv_prog_compiler_rtti_exceptions=yes
21017 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21018 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21020 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21021 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21028 lt_prog_compiler_wl_GCJ=
21029 lt_prog_compiler_pic_GCJ=
21030 lt_prog_compiler_static_GCJ=
21032 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21033 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21035 if test "$GCC" = yes; then
21036 lt_prog_compiler_wl_GCJ='-Wl,'
21037 lt_prog_compiler_static_GCJ='-static'
21041 # All AIX code is PIC.
21042 if test "$host_cpu" = ia64; then
21043 # AIX 5 now supports IA64 processor
21044 lt_prog_compiler_static_GCJ='-Bstatic'
21049 # FIXME: we need at least 68020 code to build shared libraries, but
21050 # adding the `-m68020' flag to GCC prevents building anything better,
21052 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21055 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21056 # PIC is the default for these OSes.
21059 mingw* | pw32* | os2*)
21060 # This hack is so that the source file can tell whether it is being
21061 # built for inclusion in a dll (and should export symbols for example).
21062 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21065 darwin* | rhapsody*)
21066 # PIC is the default on this platform
21067 # Common symbols not allowed in MH_DYLIB files
21068 lt_prog_compiler_pic_GCJ='-fno-common'
21072 # Just because we use GCC doesn't mean we suddenly get shared libraries
21073 # on systems that don't support them.
21074 lt_prog_compiler_can_build_shared_GCJ=no
21079 if test -d /usr/nec; then
21080 lt_prog_compiler_pic_GCJ=-Kconform_pic
21085 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21086 # not for PA HP-UX.
21087 case "$host_cpu" in
21092 lt_prog_compiler_pic_GCJ='-fPIC'
21098 lt_prog_compiler_pic_GCJ='-fPIC'
21102 # PORTME Check for flag to pass linker flags through the system compiler.
21105 lt_prog_compiler_wl_GCJ='-Wl,'
21106 if test "$host_cpu" = ia64; then
21107 # AIX 5 now supports IA64 processor
21108 lt_prog_compiler_static_GCJ='-Bstatic'
21110 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21114 # PIC is the default on this platform
21115 # Common symbols not allowed in MH_DYLIB files
21116 case "$cc_basename" in
21118 lt_prog_compiler_pic_GCJ='-qnocommon'
21119 lt_prog_compiler_wl_GCJ='-Wl,'
21124 mingw* | pw32* | os2*)
21125 # This hack is so that the source file can tell whether it is being
21126 # built for inclusion in a dll (and should export symbols for example).
21127 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21130 hpux9* | hpux10* | hpux11*)
21131 lt_prog_compiler_wl_GCJ='-Wl,'
21132 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21133 # not for PA HP-UX.
21134 case "$host_cpu" in
21139 lt_prog_compiler_pic_GCJ='+Z'
21142 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21143 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21146 irix5* | irix6* | nonstopux*)
21147 lt_prog_compiler_wl_GCJ='-Wl,'
21148 # PIC (with -KPIC) is the default.
21149 lt_prog_compiler_static_GCJ='-non_shared'
21153 lt_prog_compiler_pic_GCJ='-KPIC'
21154 lt_prog_compiler_static_GCJ='-Bstatic'
21160 lt_prog_compiler_wl_GCJ='-Wl,'
21161 lt_prog_compiler_pic_GCJ='-KPIC'
21162 lt_prog_compiler_static_GCJ='-static'
21165 lt_prog_compiler_wl_GCJ='-Wl,'
21166 # All Alpha code is PIC.
21167 lt_prog_compiler_static_GCJ='-non_shared'
21172 osf3* | osf4* | osf5*)
21173 lt_prog_compiler_wl_GCJ='-Wl,'
21174 # All OSF/1 code is PIC.
21175 lt_prog_compiler_static_GCJ='-non_shared'
21179 lt_prog_compiler_pic_GCJ='-Kpic'
21180 lt_prog_compiler_static_GCJ='-dn'
21184 lt_prog_compiler_wl_GCJ='-Wl,'
21185 lt_prog_compiler_pic_GCJ='-KPIC'
21186 lt_prog_compiler_static_GCJ='-Bstatic'
21190 lt_prog_compiler_wl_GCJ='-Qoption ld '
21191 lt_prog_compiler_pic_GCJ='-PIC'
21192 lt_prog_compiler_static_GCJ='-Bstatic'
21195 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21196 lt_prog_compiler_wl_GCJ='-Wl,'
21197 lt_prog_compiler_pic_GCJ='-KPIC'
21198 lt_prog_compiler_static_GCJ='-Bstatic'
21202 if test -d /usr/nec ;then
21203 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21204 lt_prog_compiler_static_GCJ='-Bstatic'
21209 lt_prog_compiler_pic_GCJ='-pic'
21210 lt_prog_compiler_static_GCJ='-Bstatic'
21214 lt_prog_compiler_can_build_shared_GCJ=no
21219 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21220 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21223 # Check to make sure the PIC flag actually works.
21225 if test -n "$lt_prog_compiler_pic_GCJ"; then
21227 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21228 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21229 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21230 echo $ECHO_N "(cached) $ECHO_C" >&6
21232 lt_prog_compiler_pic_works_GCJ=no
21233 ac_outfile=conftest.$ac_objext
21234 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21235 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21236 # Insert the option either (1) after the last *FLAGS variable, or
21237 # (2) before a word containing "conftest.", or (3) at the end.
21238 # Note that $ac_compile itself does not contain backslashes and begins
21239 # with a dollar sign (not a hyphen), so the echo should work correctly.
21240 # The option is referenced via a variable to avoid confusing sed.
21241 lt_compile=`echo "$ac_compile" | $SED \
21242 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21244 -e 's:$: $lt_compiler_flag:'`
21245 (eval echo "\"\$as_me:21245: $lt_compile\"" >&5)
21246 (eval "$lt_compile" 2>conftest.err)
21248 cat conftest.err >&5
21249 echo "$as_me:21249: \$? = $ac_status" >&5
21250 if (exit $ac_status) && test -s "$ac_outfile"; then
21251 # The compiler can only warn and ignore the option if not recognized
21252 # So say no if there are warnings
21253 if test ! -s conftest.err; then
21254 lt_prog_compiler_pic_works_GCJ=yes
21260 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21261 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21263 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21264 case $lt_prog_compiler_pic_GCJ in
21266 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21269 lt_prog_compiler_pic_GCJ=
21270 lt_prog_compiler_can_build_shared_GCJ=no
21275 # For platforms which do not support PIC, -DPIC is meaningless:
21277 lt_prog_compiler_pic_GCJ=
21280 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21284 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21285 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21286 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21287 echo $ECHO_N "(cached) $ECHO_C" >&6
21289 lt_cv_prog_compiler_c_o_GCJ=no
21290 $rm -r conftest 2>/dev/null
21294 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21296 lt_compiler_flag="-o out/conftest2.$ac_objext"
21297 # Insert the option either (1) after the last *FLAGS variable, or
21298 # (2) before a word containing "conftest.", or (3) at the end.
21299 # Note that $ac_compile itself does not contain backslashes and begins
21300 # with a dollar sign (not a hyphen), so the echo should work correctly.
21301 lt_compile=`echo "$ac_compile" | $SED \
21302 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21303 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21304 -e 's:$: $lt_compiler_flag:'`
21305 (eval echo "\"\$as_me:21305: $lt_compile\"" >&5)
21306 (eval "$lt_compile" 2>out/conftest.err)
21308 cat out/conftest.err >&5
21309 echo "$as_me:21309: \$? = $ac_status" >&5
21310 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21312 # The compiler can only warn and ignore the option if not recognized
21313 # So say no if there are warnings
21314 if test ! -s out/conftest.err; then
21315 lt_cv_prog_compiler_c_o_GCJ=yes
21320 # SGI C++ compiler will create directory out/ii_files/ for
21321 # template instantiation
21322 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21323 $rm out/* && rmdir out
21329 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21330 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21333 hard_links="nottested"
21334 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21335 # do not overwrite the value of need_locks provided by the user
21336 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21337 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21340 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21342 ln conftest.a conftest.b 2>&5 || hard_links=no
21343 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21344 echo "$as_me:$LINENO: result: $hard_links" >&5
21345 echo "${ECHO_T}$hard_links" >&6
21346 if test "$hard_links" = no; then
21347 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21348 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21355 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21356 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21359 allow_undefined_flag_GCJ=
21360 enable_shared_with_static_runtimes_GCJ=no
21362 archive_expsym_cmds_GCJ=
21363 old_archive_From_new_cmds_GCJ=
21364 old_archive_from_expsyms_cmds_GCJ=
21365 export_dynamic_flag_spec_GCJ=
21366 whole_archive_flag_spec_GCJ=
21367 thread_safe_flag_spec_GCJ=
21368 hardcode_libdir_flag_spec_GCJ=
21369 hardcode_libdir_flag_spec_ld_GCJ=
21370 hardcode_libdir_separator_GCJ=
21371 hardcode_direct_GCJ=no
21372 hardcode_minus_L_GCJ=no
21373 hardcode_shlibpath_var_GCJ=unsupported
21374 link_all_deplibs_GCJ=unknown
21375 hardcode_automatic_GCJ=no
21377 module_expsym_cmds_GCJ=
21378 always_export_symbols_GCJ=no
21379 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21380 # include_expsyms should be a list of space-separated symbols to be *always*
21381 # included in the symbol list
21382 include_expsyms_GCJ=
21383 # exclude_expsyms can be an extended regexp of symbols to exclude
21384 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21385 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21386 # as well as any symbol that contains `d'.
21387 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21388 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21389 # platforms (ab)use it in PIC code, but their linkers get confused if
21390 # the symbol is explicitly referenced. Since portable code cannot
21391 # rely on this symbol name, it's probably fine to never include it in
21392 # preloaded symbol tables.
21393 extract_expsyms_cmds=
21396 cygwin* | mingw* | pw32*)
21397 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21398 # When not using gcc, we currently assume that we are using
21399 # Microsoft Visual C++.
21400 if test "$GCC" != yes; then
21410 if test "$with_gnu_ld" = yes; then
21411 # If archive_cmds runs LD, not CC, wlarc should be empty
21414 # See if GNU ld supports shared libraries.
21416 aix3* | aix4* | aix5*)
21417 # On AIX/PPC, the GNU linker is very broken
21418 if test "$host_cpu" != ia64; then
21422 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21423 *** to be unable to reliably create shared libraries on AIX.
21424 *** Therefore, libtool is disabling shared libraries support. If you
21425 *** really care for shared libraries, you may want to modify your PATH
21426 *** so that a non-GNU linker is found, and then restart.
21433 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)'
21434 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21435 hardcode_minus_L_GCJ=yes
21437 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21438 # that the semantics of dynamic libraries on AmigaOS, at least up
21439 # to version 4, is to share data among multiple programs linked
21440 # with the same dynamic library. Since this doesn't match the
21441 # behavior of shared libraries on other platforms, we can't use
21447 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21448 allow_undefined_flag_GCJ=unsupported
21449 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21450 # support --undefined. This deserves some investigation. FIXME
21451 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21457 cygwin* | mingw* | pw32*)
21458 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21459 # as there is no search path for DLLs.
21460 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21461 allow_undefined_flag_GCJ=unsupported
21462 always_export_symbols_GCJ=no
21463 enable_shared_with_static_runtimes_GCJ=yes
21464 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21466 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21467 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21468 # If the export-symbols file already is a .def file (1st line
21469 # is EXPORTS), use it as is; otherwise, prepend...
21470 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21471 cp $export_symbols $output_objdir/$soname.def;
21473 echo EXPORTS > $output_objdir/$soname.def;
21474 cat $export_symbols >> $output_objdir/$soname.def;
21476 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21483 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21484 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21487 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21488 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21493 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21497 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21498 *** create shared libraries on Solaris systems. Therefore, libtool
21499 *** is disabling shared libraries support. We urge you to upgrade GNU
21500 *** binutils to release 2.9.1 or newer. Another option is to modify
21501 *** your PATH or compiler configuration so that the native linker is
21502 *** used, and then restart.
21505 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21506 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21507 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21514 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21516 hardcode_direct_GCJ=yes
21517 hardcode_shlibpath_var_GCJ=no
21521 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21522 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21523 archive_cmds_GCJ="$tmp_archive_cmds"
21524 supports_anon_versioning=no
21525 case `$LD -v 2>/dev/null` in
21526 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21527 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21528 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21529 *\ 2.11.*) ;; # other 2.11 versions
21530 *) supports_anon_versioning=yes ;;
21532 if test $supports_anon_versioning = yes; then
21533 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21534 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21535 $echo "local: *; };" >> $output_objdir/$libname.ver~
21536 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21538 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21546 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21547 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21548 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21555 if test "$ld_shlibs_GCJ" = yes; then
21556 runpath_var=LD_RUN_PATH
21557 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21558 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21559 # ancient GNU ld didn't support --whole-archive et. al.
21560 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21561 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21563 whole_archive_flag_spec_GCJ=
21567 # PORTME fill in a description of your system's linker (not GNU ld)
21570 allow_undefined_flag_GCJ=unsupported
21571 always_export_symbols_GCJ=yes
21572 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'
21573 # Note: this linker hardcodes the directories in LIBPATH if there
21574 # are no directories specified by -L.
21575 hardcode_minus_L_GCJ=yes
21576 if test "$GCC" = yes && test -z "$link_static_flag"; then
21577 # Neither direct hardcoding nor static linking is supported with a
21579 hardcode_direct_GCJ=unsupported
21584 if test "$host_cpu" = ia64; then
21585 # On IA64, the linker does run time linking by default, so we don't
21586 # have to do anything special.
21587 aix_use_runtimelinking=no
21588 exp_sym_flag='-Bexport'
21591 # If we're using GNU nm, then we don't want the "-C" option.
21592 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21593 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21594 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'
21596 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'
21598 aix_use_runtimelinking=no
21600 # Test if we are trying to use run time linking or normal
21601 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21602 # need to do runtime linking.
21603 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21604 for ld_flag in $LDFLAGS; do
21605 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21606 aix_use_runtimelinking=yes
21612 exp_sym_flag='-bexport'
21613 no_entry_flag='-bnoentry'
21616 # When large executables or shared objects are built, AIX ld can
21617 # have problems creating the table of contents. If linking a library
21618 # or program results in "error TOC overflow" add -mminimal-toc to
21619 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21620 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21622 archive_cmds_GCJ=''
21623 hardcode_direct_GCJ=yes
21624 hardcode_libdir_separator_GCJ=':'
21625 link_all_deplibs_GCJ=yes
21627 if test "$GCC" = yes; then
21628 case $host_os in aix4.012|aix4.012.*)
21629 # We only want to do this on AIX 4.2 and lower, the check
21630 # below for broken collect2 doesn't work under 4.3+
21631 collect2name=`${CC} -print-prog-name=collect2`
21632 if test -f "$collect2name" && \
21633 strings "$collect2name" | grep resolve_lib_name >/dev/null
21635 # We have reworked collect2
21636 hardcode_direct_GCJ=yes
21638 # We have old collect2
21639 hardcode_direct_GCJ=unsupported
21640 # It fails to find uninstalled libraries when the uninstalled
21641 # path is not listed in the libpath. Setting hardcode_minus_L
21642 # to unsupported forces relinking
21643 hardcode_minus_L_GCJ=yes
21644 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21645 hardcode_libdir_separator_GCJ=
21648 shared_flag='-shared'
21651 if test "$host_cpu" = ia64; then
21652 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21653 # chokes on -Wl,-G. The following line is correct:
21656 if test "$aix_use_runtimelinking" = yes; then
21657 shared_flag='${wl}-G'
21659 shared_flag='${wl}-bM:SRE'
21664 # It seems that -bexpall does not export symbols beginning with
21665 # underscore (_), so it is better to generate a list of symbols to export.
21666 always_export_symbols_GCJ=yes
21667 if test "$aix_use_runtimelinking" = yes; then
21668 # Warning - without using the other runtime loading flags (-brtl),
21669 # -berok will link without error, but may produce a broken library.
21670 allow_undefined_flag_GCJ='-berok'
21671 # Determine the default libpath from the value encoded in an empty executable.
21672 cat >conftest.$ac_ext <<_ACEOF
21675 cat confdefs.h >>conftest.$ac_ext
21676 cat >>conftest.$ac_ext <<_ACEOF
21677 /* end confdefs.h. */
21687 rm -f conftest.$ac_objext conftest$ac_exeext
21688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21689 (eval $ac_link) 2>conftest.er1
21691 grep -v '^ *+' conftest.er1 >conftest.err
21693 cat conftest.err >&5
21694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); } &&
21696 { ac_try='test -z "$ac_c_werror_flag"
21697 || test ! -s conftest.err'
21698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21699 (eval $ac_try) 2>&5
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); }; } &&
21703 { ac_try='test -s conftest$ac_exeext'
21704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21705 (eval $ac_try) 2>&5
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); }; }; then
21710 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21712 # Check for a 64-bit object if we didn't find anything.
21713 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; }
21716 echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21720 rm -f conftest.err conftest.$ac_objext \
21721 conftest$ac_exeext conftest.$ac_ext
21722 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21724 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21725 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"
21727 if test "$host_cpu" = ia64; then
21728 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21729 allow_undefined_flag_GCJ="-z nodefs"
21730 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"
21732 # Determine the default libpath from the value encoded in an empty executable.
21733 cat >conftest.$ac_ext <<_ACEOF
21736 cat confdefs.h >>conftest.$ac_ext
21737 cat >>conftest.$ac_ext <<_ACEOF
21738 /* end confdefs.h. */
21748 rm -f conftest.$ac_objext conftest$ac_exeext
21749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21750 (eval $ac_link) 2>conftest.er1
21752 grep -v '^ *+' conftest.er1 >conftest.err
21754 cat conftest.err >&5
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); } &&
21757 { ac_try='test -z "$ac_c_werror_flag"
21758 || test ! -s conftest.err'
21759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760 (eval $ac_try) 2>&5
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); }; } &&
21764 { ac_try='test -s conftest$ac_exeext'
21765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766 (eval $ac_try) 2>&5
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); }; }; then
21771 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21773 # Check for a 64-bit object if we didn't find anything.
21774 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; }
21777 echo "$as_me: failed program was:" >&5
21778 sed 's/^/| /' conftest.$ac_ext >&5
21781 rm -f conftest.err conftest.$ac_objext \
21782 conftest$ac_exeext conftest.$ac_ext
21783 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21785 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21786 # Warning - without using the other run time loading flags,
21787 # -berok will link without error, but may produce a broken library.
21788 no_undefined_flag_GCJ=' ${wl}-bernotok'
21789 allow_undefined_flag_GCJ=' ${wl}-berok'
21790 # -bexpall does not export symbols beginning with underscore (_)
21791 always_export_symbols_GCJ=yes
21792 # Exported symbols can be pulled into shared objects from archives
21793 whole_archive_flag_spec_GCJ=' '
21794 archive_cmds_need_lc_GCJ=yes
21795 # This is similar to how AIX traditionally builds it's shared libraries.
21796 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'
21802 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)'
21803 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21804 hardcode_minus_L_GCJ=yes
21805 # see comment about different semantics on the GNU ld section
21810 export_dynamic_flag_spec_GCJ=-rdynamic
21813 cygwin* | mingw* | pw32*)
21814 # When not using gcc, we currently assume that we are using
21815 # Microsoft Visual C++.
21816 # hardcode_libdir_flag_spec is actually meaningless, as there is
21817 # no search path for DLLs.
21818 hardcode_libdir_flag_spec_GCJ=' '
21819 allow_undefined_flag_GCJ=unsupported
21820 # Tell ltmain to make .lib files, not .a files.
21822 # Tell ltmain to make .dll files, not .so files.
21824 # FIXME: Setting linknames here is a bad hack.
21825 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21826 # The linker will automatically build a .lib file if we build a DLL.
21827 old_archive_From_new_cmds_GCJ='true'
21828 # FIXME: Should let the user specify the lib program.
21829 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21830 fix_srcfile_path='`cygpath -w "$srcfile"`'
21831 enable_shared_with_static_runtimes_GCJ=yes
21834 darwin* | rhapsody*)
21836 rhapsody* | darwin1.[012])
21837 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21840 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21841 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21843 case ${MACOSX_DEPLOYMENT_TARGET} in
21845 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21848 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21854 archive_cmds_need_lc_GCJ=no
21855 hardcode_direct_GCJ=no
21856 hardcode_automatic_GCJ=yes
21857 hardcode_shlibpath_var_GCJ=unsupported
21858 whole_archive_flag_spec_GCJ=''
21859 link_all_deplibs_GCJ=yes
21860 if test "$GCC" = yes ; then
21861 output_verbose_link_cmd='echo'
21862 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21863 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21864 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21865 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}'
21866 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}'
21868 case "$cc_basename" in
21870 output_verbose_link_cmd='echo'
21871 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21872 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21873 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21874 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}'
21875 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}'
21885 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21886 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21887 hardcode_shlibpath_var_GCJ=no
21894 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21895 # support. Future versions do this automatically, but an explicit c++rt0.o
21896 # does not break anything, and helps significantly (at the cost of a little
21899 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21900 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21901 hardcode_direct_GCJ=yes
21902 hardcode_shlibpath_var_GCJ=no
21905 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21907 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21908 hardcode_direct_GCJ=yes
21909 hardcode_minus_L_GCJ=yes
21910 hardcode_shlibpath_var_GCJ=no
21913 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21914 freebsd* | kfreebsd*-gnu)
21915 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21916 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21917 hardcode_direct_GCJ=yes
21918 hardcode_shlibpath_var_GCJ=no
21922 if test "$GCC" = yes; then
21923 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'
21925 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'
21927 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21928 hardcode_libdir_separator_GCJ=:
21929 hardcode_direct_GCJ=yes
21931 # hardcode_minus_L: Not really in the search PATH,
21932 # but as the default location of the library.
21933 hardcode_minus_L_GCJ=yes
21934 export_dynamic_flag_spec_GCJ='${wl}-E'
21938 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21939 case "$host_cpu" in
21941 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21944 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21948 case "$host_cpu" in
21950 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21953 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21957 if test "$with_gnu_ld" = no; then
21958 case "$host_cpu" in
21960 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21961 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21962 hardcode_libdir_separator_GCJ=:
21963 hardcode_direct_GCJ=no
21964 hardcode_shlibpath_var_GCJ=no
21967 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21968 hardcode_direct_GCJ=no
21969 hardcode_shlibpath_var_GCJ=no
21971 # hardcode_minus_L: Not really in the search PATH,
21972 # but as the default location of the library.
21973 hardcode_minus_L_GCJ=yes
21976 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21977 hardcode_libdir_separator_GCJ=:
21978 hardcode_direct_GCJ=yes
21979 export_dynamic_flag_spec_GCJ='${wl}-E'
21981 # hardcode_minus_L: Not really in the search PATH,
21982 # but as the default location of the library.
21983 hardcode_minus_L_GCJ=yes
21989 irix5* | irix6* | nonstopux*)
21990 if test "$GCC" = yes; then
21991 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'
21993 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'
21994 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21996 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21997 hardcode_libdir_separator_GCJ=:
21998 link_all_deplibs_GCJ=yes
22002 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22003 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22005 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22007 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22008 hardcode_direct_GCJ=yes
22009 hardcode_shlibpath_var_GCJ=no
22013 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22014 hardcode_direct_GCJ=yes
22015 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22016 hardcode_libdir_separator_GCJ=:
22017 hardcode_shlibpath_var_GCJ=no
22021 hardcode_direct_GCJ=yes
22022 hardcode_shlibpath_var_GCJ=no
22023 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22024 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22025 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22026 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22027 export_dynamic_flag_spec_GCJ='${wl}-E'
22030 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22031 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22032 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22035 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22036 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22043 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22044 hardcode_minus_L_GCJ=yes
22045 allow_undefined_flag_GCJ=unsupported
22046 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'
22047 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22051 if test "$GCC" = yes; then
22052 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22053 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'
22055 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22056 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'
22058 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22059 hardcode_libdir_separator_GCJ=:
22062 osf4* | osf5*) # as osf3* with the addition of -msym flag
22063 if test "$GCC" = yes; then
22064 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22065 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'
22066 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22068 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22069 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'
22070 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~
22071 $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'
22073 # Both c and cxx compiler support -rpath directly
22074 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22076 hardcode_libdir_separator_GCJ=:
22080 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22081 hardcode_shlibpath_var_GCJ=no
22082 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22083 runpath_var=LD_RUN_PATH
22084 hardcode_runpath_var=yes
22088 no_undefined_flag_GCJ=' -z text'
22089 if test "$GCC" = yes; then
22090 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22091 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22092 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22094 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22095 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22096 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22098 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22099 hardcode_shlibpath_var_GCJ=no
22101 solaris2.[0-5] | solaris2.[0-5].*) ;;
22102 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22103 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22105 link_all_deplibs_GCJ=yes
22109 if test "x$host_vendor" = xsequent; then
22110 # Use $CC to link under sequent, because it throws in some extra .o
22111 # files that make .init and .fini sections work.
22112 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22114 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22116 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22117 hardcode_direct_GCJ=yes
22118 hardcode_minus_L_GCJ=yes
22119 hardcode_shlibpath_var_GCJ=no
22123 case $host_vendor in
22125 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22126 hardcode_direct_GCJ=yes # is this really true???
22129 ## LD is ld it makes a PLAMLIB
22130 ## CC just makes a GrossModule.
22131 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22132 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22133 hardcode_direct_GCJ=no
22136 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22137 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22140 runpath_var='LD_RUN_PATH'
22141 hardcode_shlibpath_var_GCJ=no
22145 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22146 hardcode_shlibpath_var_GCJ=no
22147 export_dynamic_flag_spec_GCJ='-Bexport'
22151 if test -d /usr/nec; then
22152 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22153 hardcode_shlibpath_var_GCJ=no
22154 runpath_var=LD_RUN_PATH
22155 hardcode_runpath_var=yes
22161 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22162 hardcode_direct_GCJ=yes
22163 hardcode_minus_L_GCJ=no
22164 hardcode_shlibpath_var_GCJ=no
22165 hardcode_runpath_var=yes
22166 runpath_var=LD_RUN_PATH
22169 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22170 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22171 if test "$GCC" = yes; then
22172 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22174 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22176 runpath_var='LD_RUN_PATH'
22177 hardcode_shlibpath_var_GCJ=no
22181 no_undefined_flag_GCJ=' -z text'
22182 # $CC -shared without GNU ld will not create a library from C++
22183 # object files and a static libstdc++, better avoid it by now
22184 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22185 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22186 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22187 hardcode_libdir_flag_spec_GCJ=
22188 hardcode_shlibpath_var_GCJ=no
22189 runpath_var='LD_RUN_PATH'
22193 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22194 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22195 hardcode_shlibpath_var_GCJ=no
22204 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22205 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22206 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22208 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22209 if test "$GCC" = yes; then
22210 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22214 # Do we need to explicitly link libc?
22216 case "x$archive_cmds_need_lc_GCJ" in
22218 # Assume -lc should be added
22219 archive_cmds_need_lc_GCJ=yes
22221 if test "$enable_shared" = yes && test "$GCC" = yes; then
22222 case $archive_cmds_GCJ in
22224 # FIXME: we may have to deal with multi-command sequences.
22227 # Test whether the compiler implicitly links with -lc since on some
22228 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22229 # to ld, don't add -lc before -lgcc.
22230 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22231 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22233 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22236 (eval $ac_compile) 2>&5
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); } 2>conftest.err; then
22242 libobjs=conftest.$ac_objext
22244 wl=$lt_prog_compiler_wl_GCJ
22250 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22251 allow_undefined_flag_GCJ=
22252 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22253 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); }
22258 archive_cmds_need_lc_GCJ=no
22260 archive_cmds_need_lc_GCJ=yes
22262 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22264 cat conftest.err 1>&5
22267 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22268 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22275 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22276 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22277 library_names_spec=
22278 libname_spec='lib$name'
22282 postuninstall_cmds=
22286 shlibpath_overrides_runpath=unknown
22288 dynamic_linker="$host_os ld.so"
22289 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22290 if test "$GCC" = yes; then
22291 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22292 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22293 # if the path contains ";" then we assume it to be the separator
22294 # otherwise default to the standard path separator (i.e. ":") - it is
22295 # assumed that no part of a normal pathname contains ";" but that should
22296 # okay in the real world where ";" in dirpaths is itself problematic.
22297 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22299 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22302 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22304 need_lib_prefix=unknown
22305 hardcode_into_libs=no
22307 # when you set need_version to no, make sure it does not cause -set_version
22308 # flags to be left without arguments
22309 need_version=unknown
22314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22315 shlibpath_var=LIBPATH
22317 # AIX 3 has no versioning support, so we append a major version to the name.
22318 soname_spec='${libname}${release}${shared_ext}$major'
22325 hardcode_into_libs=yes
22326 if test "$host_cpu" = ia64; then
22327 # AIX 5 supports IA64
22328 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22329 shlibpath_var=LD_LIBRARY_PATH
22331 # With GCC up to 2.95.x, collect2 would create an import file
22332 # for dependence libraries. The import file would start with
22333 # the line `#! .'. This would cause the generated library to
22334 # depend on `.', always an invalid library. This was fixed in
22335 # development snapshots of GCC prior to 3.0.
22337 aix4 | aix4.[01] | aix4.[01].*)
22338 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22340 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22343 can_build_shared=no
22347 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22348 # soname into executable. Probably we can add versioning support to
22349 # collect2, so additional links can be useful in future.
22350 if test "$aix_use_runtimelinking" = yes; then
22351 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22352 # instead of lib<name>.a to let people know that these are not
22353 # typical AIX shared libraries.
22354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22356 # We preserve .a as extension for shared libraries through AIX4.2
22357 # and later when we are not doing run time linking.
22358 library_names_spec='${libname}${release}.a $libname.a'
22359 soname_spec='${libname}${release}${shared_ext}$major'
22361 shlibpath_var=LIBPATH
22366 library_names_spec='$libname.ixlibrary $libname.a'
22367 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22368 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'
22372 library_names_spec='${libname}${shared_ext}'
22373 dynamic_linker="$host_os ld.so"
22374 shlibpath_var=LIBRARY_PATH
22380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22381 soname_spec='${libname}${release}${shared_ext}$major'
22382 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22383 shlibpath_var=LD_LIBRARY_PATH
22384 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22385 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22386 # the default ld.so.conf also contains /usr/contrib/lib and
22387 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22388 # libtool to hard-code these into programs
22391 cygwin* | mingw* | pw32*)
22392 version_type=windows
22397 case $GCC,$host_os in
22398 yes,cygwin* | yes,mingw* | yes,pw32*)
22399 library_names_spec='$libname.dll.a'
22400 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22401 postinstall_cmds='base_file=`basename \${file}`~
22402 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22403 dldir=$destdir/`dirname \$dlpath`~
22404 test -d \$dldir || mkdir -p \$dldir~
22405 $install_prog $dir/$dlname \$dldir/$dlname'
22406 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22407 dlpath=$dir/\$dldll~
22409 shlibpath_overrides_runpath=yes
22413 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22414 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22415 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22418 # MinGW DLLs use traditional 'lib' prefix
22419 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22420 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22421 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22422 # It is most probably a Windows format PATH printed by
22423 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22424 # path with ; separators, and with drive letters. We can handle the
22425 # drive letters (cygwin fileutils understands them), so leave them,
22426 # especially as we might pass files found there to a mingw objdump,
22427 # which wouldn't understand a cygwinified path. Ahh.
22428 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22434 # pw32 DLLs use 'pw' prefix rather than 'lib'
22435 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22441 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22444 dynamic_linker='Win32 ld.exe'
22445 # FIXME: first we should search . and the directory the executable is in
22449 darwin* | rhapsody*)
22450 dynamic_linker="$host_os dyld"
22451 version_type=darwin
22454 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22455 soname_spec='${libname}${release}${major}$shared_ext'
22456 shlibpath_overrides_runpath=yes
22457 shlibpath_var=DYLD_LIBRARY_PATH
22458 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22459 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22460 if test "$GCC" = yes; then
22461 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"`
22463 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22465 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22473 soname_spec='${libname}${release}${shared_ext}$major'
22474 shlibpath_var=LD_LIBRARY_PATH
22485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22486 soname_spec='${libname}${release}${shared_ext}$major'
22487 shlibpath_var=LD_LIBRARY_PATH
22488 shlibpath_overrides_runpath=no
22489 hardcode_into_libs=yes
22490 dynamic_linker='GNU ld.so'
22494 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22495 version_type=freebsd-$objformat
22496 case $version_type in
22498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22503 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22507 shlibpath_var=LD_LIBRARY_PATH
22510 shlibpath_overrides_runpath=yes
22512 freebsd3.01* | freebsdelf3.01*)
22513 shlibpath_overrides_runpath=yes
22514 hardcode_into_libs=yes
22517 shlibpath_overrides_runpath=no
22518 hardcode_into_libs=yes
22527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22528 soname_spec='${libname}${release}${shared_ext}$major'
22529 shlibpath_var=LD_LIBRARY_PATH
22530 hardcode_into_libs=yes
22533 hpux9* | hpux10* | hpux11*)
22534 # Give a soname corresponding to the major version so that dld.sl refuses to
22535 # link against other versions.
22539 case "$host_cpu" in
22542 hardcode_into_libs=yes
22543 dynamic_linker="$host_os dld.so"
22544 shlibpath_var=LD_LIBRARY_PATH
22545 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22547 soname_spec='${libname}${release}${shared_ext}$major'
22548 if test "X$HPUX_IA64_MODE" = X32; then
22549 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22551 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22553 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22557 hardcode_into_libs=yes
22558 dynamic_linker="$host_os dld.sl"
22559 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22560 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22562 soname_spec='${libname}${release}${shared_ext}$major'
22563 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22568 dynamic_linker="$host_os dld.sl"
22569 shlibpath_var=SHLIB_PATH
22570 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22572 soname_spec='${libname}${release}${shared_ext}$major'
22575 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22576 postinstall_cmds='chmod 555 $lib'
22579 irix5* | irix6* | nonstopux*)
22581 nonstopux*) version_type=nonstopux ;;
22583 if test "$lt_cv_prog_gnu_ld" = yes; then
22591 soname_spec='${libname}${release}${shared_ext}$major'
22592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22594 irix5* | nonstopux*)
22595 libsuff= shlibsuff=
22598 case $LD in # libtool.m4 will add one of these switches to LD
22599 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22600 libsuff= shlibsuff= libmagic=32-bit;;
22601 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22602 libsuff=32 shlibsuff=N32 libmagic=N32;;
22603 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22604 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22605 *) libsuff= shlibsuff= libmagic=never-match;;
22609 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22610 shlibpath_overrides_runpath=no
22611 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22612 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22613 hardcode_into_libs=yes
22616 # No shared lib support for Linux oldld, aout, or coff.
22617 linux*oldld* | linux*aout* | linux*coff*)
22621 # This must be Linux ELF.
22626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22627 soname_spec='${libname}${release}${shared_ext}$major'
22628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22629 shlibpath_var=LD_LIBRARY_PATH
22630 shlibpath_overrides_runpath=no
22631 # This implies no fast_install, which is unacceptable.
22632 # Some rework will be needed to allow for fast_install
22633 # before this can be enabled.
22634 hardcode_into_libs=yes
22636 # Append ld.so.conf contents to the search path
22637 if test -f /etc/ld.so.conf; then
22638 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22639 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22642 # We used to test for /lib/ld.so.1 and disable shared libraries on
22643 # powerpc, because MkLinux only supported shared libraries with the
22644 # GNU dynamic linker. Since this was broken with cross compilers,
22645 # most powerpc-linux boxes support dynamic linking these days and
22646 # people can always --disable-shared, the test was removed, and we
22647 # assume the GNU/Linux dynamic linker is in use.
22648 dynamic_linker='GNU/Linux ld.so'
22655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22656 soname_spec='${libname}${release}${shared_ext}$major'
22657 shlibpath_var=LD_LIBRARY_PATH
22658 shlibpath_overrides_runpath=no
22659 hardcode_into_libs=yes
22660 dynamic_linker='GNU ld.so'
22667 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22670 dynamic_linker='NetBSD (a.out) ld.so'
22672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22673 soname_spec='${libname}${release}${shared_ext}$major'
22674 dynamic_linker='NetBSD ld.elf_so'
22676 shlibpath_var=LD_LIBRARY_PATH
22677 shlibpath_overrides_runpath=yes
22678 hardcode_into_libs=yes
22683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22684 shlibpath_var=LD_LIBRARY_PATH
22685 shlibpath_overrides_runpath=yes
22692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22693 soname_spec='${libname}${release}${shared_ext}$major'
22694 shlibpath_var=LD_LIBRARY_PATH
22695 shlibpath_overrides_runpath=yes
22702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22703 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22704 shlibpath_var=LD_LIBRARY_PATH
22705 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22707 openbsd2.[89] | openbsd2.[89].*)
22708 shlibpath_overrides_runpath=no
22711 shlibpath_overrides_runpath=yes
22715 shlibpath_overrides_runpath=yes
22720 libname_spec='$name'
22723 library_names_spec='$libname${shared_ext} $libname.a'
22724 dynamic_linker='OS/2 ld.exe'
22725 shlibpath_var=LIBPATH
22728 osf3* | osf4* | osf5*)
22732 soname_spec='${libname}${release}${shared_ext}$major'
22733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22734 shlibpath_var=LD_LIBRARY_PATH
22735 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22736 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22741 soname_spec='${libname}${release}${shared_ext}$major'
22742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22743 shlibpath_var=LD_LIBRARY_PATH
22750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22751 soname_spec='${libname}${release}${shared_ext}$major'
22752 shlibpath_var=LD_LIBRARY_PATH
22753 shlibpath_overrides_runpath=yes
22754 hardcode_into_libs=yes
22755 # ldd complains unless libraries are executable
22756 postinstall_cmds='chmod +x $lib'
22761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22762 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22763 shlibpath_var=LD_LIBRARY_PATH
22764 shlibpath_overrides_runpath=yes
22765 if test "$with_gnu_ld" = yes; then
22771 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22774 soname_spec='${libname}${release}${shared_ext}$major'
22775 shlibpath_var=LD_LIBRARY_PATH
22776 case $host_vendor in
22778 shlibpath_overrides_runpath=no
22780 export_dynamic_flag_spec='${wl}-Blargedynsym'
22781 runpath_var=LD_RUN_PATH
22789 shlibpath_overrides_runpath=no
22790 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22796 if test -d /usr/nec ;then
22798 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22799 soname_spec='$libname${shared_ext}.$major'
22800 shlibpath_var=LD_LIBRARY_PATH
22806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22807 soname_spec='${libname}${release}${shared_ext}$major'
22808 shlibpath_var=LD_LIBRARY_PATH
22815 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22816 echo "${ECHO_T}$dynamic_linker" >&6
22817 test "$dynamic_linker" = no && can_build_shared=no
22819 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22820 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22821 hardcode_action_GCJ=
22822 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22823 test -n "$runpath_var_GCJ" || \
22824 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22826 # We can hardcode non-existant directories.
22827 if test "$hardcode_direct_GCJ" != no &&
22828 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22829 # have to relink, otherwise we might link with an installed library
22830 # when we should be linking with a yet-to-be-installed one
22831 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22832 test "$hardcode_minus_L_GCJ" != no; then
22833 # Linking always hardcodes the temporary library directory.
22834 hardcode_action_GCJ=relink
22836 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22837 hardcode_action_GCJ=immediate
22840 # We cannot hardcode anything, or else we can only hardcode existing
22842 hardcode_action_GCJ=unsupported
22844 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22845 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22847 if test "$hardcode_action_GCJ" = relink; then
22848 # Fast installation is not supported
22849 enable_fast_install=no
22850 elif test "$shlibpath_overrides_runpath" = yes ||
22851 test "$enable_shared" = no; then
22852 # Fast installation is not necessary
22853 enable_fast_install=needless
22858 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22859 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22860 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22861 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22862 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22863 echo "$as_me:$LINENO: result: yes" >&5
22864 echo "${ECHO_T}yes" >&6
22866 # FIXME - insert some real tests, host_os isn't really good enough
22869 if test -n "$STRIP" ; then
22870 striplib="$STRIP -x"
22871 echo "$as_me:$LINENO: result: yes" >&5
22872 echo "${ECHO_T}yes" >&6
22874 echo "$as_me:$LINENO: result: no" >&5
22875 echo "${ECHO_T}no" >&6
22879 echo "$as_me:$LINENO: result: no" >&5
22880 echo "${ECHO_T}no" >&6
22885 if test "x$enable_dlopen" != xyes; then
22886 enable_dlopen=unknown
22887 enable_dlopen_self=unknown
22888 enable_dlopen_self_static=unknown
22895 lt_cv_dlopen="load_add_on"
22897 lt_cv_dlopen_self=yes
22901 lt_cv_dlopen="LoadLibrary"
22906 lt_cv_dlopen="dlopen"
22911 # if libdl is installed we need to link against it
22912 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22913 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22914 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22915 echo $ECHO_N "(cached) $ECHO_C" >&6
22917 ac_check_lib_save_LIBS=$LIBS
22919 cat >conftest.$ac_ext <<_ACEOF
22922 cat confdefs.h >>conftest.$ac_ext
22923 cat >>conftest.$ac_ext <<_ACEOF
22924 /* end confdefs.h. */
22926 /* Override any gcc2 internal prototype to avoid an error. */
22930 /* We use char because int might match the return type of a gcc2
22931 builtin and then its argument prototype would still apply. */
22941 rm -f conftest.$ac_objext conftest$ac_exeext
22942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22943 (eval $ac_link) 2>conftest.er1
22945 grep -v '^ *+' conftest.er1 >conftest.err
22947 cat conftest.err >&5
22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); } &&
22950 { ac_try='test -z "$ac_c_werror_flag"
22951 || test ! -s conftest.err'
22952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953 (eval $ac_try) 2>&5
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); }; } &&
22957 { ac_try='test -s conftest$ac_exeext'
22958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22959 (eval $ac_try) 2>&5
22961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962 (exit $ac_status); }; }; then
22963 ac_cv_lib_dl_dlopen=yes
22965 echo "$as_me: failed program was:" >&5
22966 sed 's/^/| /' conftest.$ac_ext >&5
22968 ac_cv_lib_dl_dlopen=no
22970 rm -f conftest.err conftest.$ac_objext \
22971 conftest$ac_exeext conftest.$ac_ext
22972 LIBS=$ac_check_lib_save_LIBS
22974 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22975 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22976 if test $ac_cv_lib_dl_dlopen = yes; then
22977 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22980 lt_cv_dlopen="dyld"
22982 lt_cv_dlopen_self=yes
22989 echo "$as_me:$LINENO: checking for shl_load" >&5
22990 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22991 if test "${ac_cv_func_shl_load+set}" = set; then
22992 echo $ECHO_N "(cached) $ECHO_C" >&6
22994 cat >conftest.$ac_ext <<_ACEOF
22997 cat confdefs.h >>conftest.$ac_ext
22998 cat >>conftest.$ac_ext <<_ACEOF
22999 /* end confdefs.h. */
23000 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23002 #define shl_load innocuous_shl_load
23004 /* System header to define __stub macros and hopefully few prototypes,
23005 which can conflict with char shl_load (); below.
23006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23007 <limits.h> exists even on freestanding compilers. */
23010 # include <limits.h>
23012 # include <assert.h>
23017 /* Override any gcc2 internal prototype to avoid an error. */
23022 /* We use char because int might match the return type of a gcc2
23023 builtin and then its argument prototype would still apply. */
23025 /* The GNU C library defines this for functions which it implements
23026 to always fail with ENOSYS. Some functions are actually named
23027 something starting with __ and the normal name is an alias. */
23028 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23031 char (*f) () = shl_load;
23040 return f != shl_load;
23045 rm -f conftest.$ac_objext conftest$ac_exeext
23046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23047 (eval $ac_link) 2>conftest.er1
23049 grep -v '^ *+' conftest.er1 >conftest.err
23051 cat conftest.err >&5
23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); } &&
23054 { ac_try='test -z "$ac_c_werror_flag"
23055 || test ! -s conftest.err'
23056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23057 (eval $ac_try) 2>&5
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); }; } &&
23061 { ac_try='test -s conftest$ac_exeext'
23062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23063 (eval $ac_try) 2>&5
23065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); }; }; then
23067 ac_cv_func_shl_load=yes
23069 echo "$as_me: failed program was:" >&5
23070 sed 's/^/| /' conftest.$ac_ext >&5
23072 ac_cv_func_shl_load=no
23074 rm -f conftest.err conftest.$ac_objext \
23075 conftest$ac_exeext conftest.$ac_ext
23077 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23078 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23079 if test $ac_cv_func_shl_load = yes; then
23080 lt_cv_dlopen="shl_load"
23082 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23083 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23084 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23085 echo $ECHO_N "(cached) $ECHO_C" >&6
23087 ac_check_lib_save_LIBS=$LIBS
23089 cat >conftest.$ac_ext <<_ACEOF
23092 cat confdefs.h >>conftest.$ac_ext
23093 cat >>conftest.$ac_ext <<_ACEOF
23094 /* end confdefs.h. */
23096 /* Override any gcc2 internal prototype to avoid an error. */
23100 /* We use char because int might match the return type of a gcc2
23101 builtin and then its argument prototype would still apply. */
23111 rm -f conftest.$ac_objext conftest$ac_exeext
23112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23113 (eval $ac_link) 2>conftest.er1
23115 grep -v '^ *+' conftest.er1 >conftest.err
23117 cat conftest.err >&5
23118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119 (exit $ac_status); } &&
23120 { ac_try='test -z "$ac_c_werror_flag"
23121 || test ! -s conftest.err'
23122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23123 (eval $ac_try) 2>&5
23125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126 (exit $ac_status); }; } &&
23127 { ac_try='test -s conftest$ac_exeext'
23128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23129 (eval $ac_try) 2>&5
23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); }; }; then
23133 ac_cv_lib_dld_shl_load=yes
23135 echo "$as_me: failed program was:" >&5
23136 sed 's/^/| /' conftest.$ac_ext >&5
23138 ac_cv_lib_dld_shl_load=no
23140 rm -f conftest.err conftest.$ac_objext \
23141 conftest$ac_exeext conftest.$ac_ext
23142 LIBS=$ac_check_lib_save_LIBS
23144 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23145 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23146 if test $ac_cv_lib_dld_shl_load = yes; then
23147 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23149 echo "$as_me:$LINENO: checking for dlopen" >&5
23150 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23151 if test "${ac_cv_func_dlopen+set}" = set; then
23152 echo $ECHO_N "(cached) $ECHO_C" >&6
23154 cat >conftest.$ac_ext <<_ACEOF
23157 cat confdefs.h >>conftest.$ac_ext
23158 cat >>conftest.$ac_ext <<_ACEOF
23159 /* end confdefs.h. */
23160 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23162 #define dlopen innocuous_dlopen
23164 /* System header to define __stub macros and hopefully few prototypes,
23165 which can conflict with char dlopen (); below.
23166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23167 <limits.h> exists even on freestanding compilers. */
23170 # include <limits.h>
23172 # include <assert.h>
23177 /* Override any gcc2 internal prototype to avoid an error. */
23182 /* We use char because int might match the return type of a gcc2
23183 builtin and then its argument prototype would still apply. */
23185 /* The GNU C library defines this for functions which it implements
23186 to always fail with ENOSYS. Some functions are actually named
23187 something starting with __ and the normal name is an alias. */
23188 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23191 char (*f) () = dlopen;
23200 return f != dlopen;
23205 rm -f conftest.$ac_objext conftest$ac_exeext
23206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23207 (eval $ac_link) 2>conftest.er1
23209 grep -v '^ *+' conftest.er1 >conftest.err
23211 cat conftest.err >&5
23212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213 (exit $ac_status); } &&
23214 { ac_try='test -z "$ac_c_werror_flag"
23215 || test ! -s conftest.err'
23216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23217 (eval $ac_try) 2>&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); }; } &&
23221 { ac_try='test -s conftest$ac_exeext'
23222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23223 (eval $ac_try) 2>&5
23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226 (exit $ac_status); }; }; then
23227 ac_cv_func_dlopen=yes
23229 echo "$as_me: failed program was:" >&5
23230 sed 's/^/| /' conftest.$ac_ext >&5
23232 ac_cv_func_dlopen=no
23234 rm -f conftest.err conftest.$ac_objext \
23235 conftest$ac_exeext conftest.$ac_ext
23237 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23238 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23239 if test $ac_cv_func_dlopen = yes; then
23240 lt_cv_dlopen="dlopen"
23242 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23243 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23244 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23245 echo $ECHO_N "(cached) $ECHO_C" >&6
23247 ac_check_lib_save_LIBS=$LIBS
23249 cat >conftest.$ac_ext <<_ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h. */
23256 /* Override any gcc2 internal prototype to avoid an error. */
23260 /* We use char because int might match the return type of a gcc2
23261 builtin and then its argument prototype would still apply. */
23271 rm -f conftest.$ac_objext conftest$ac_exeext
23272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23273 (eval $ac_link) 2>conftest.er1
23275 grep -v '^ *+' conftest.er1 >conftest.err
23277 cat conftest.err >&5
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); } &&
23280 { ac_try='test -z "$ac_c_werror_flag"
23281 || test ! -s conftest.err'
23282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23283 (eval $ac_try) 2>&5
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); }; } &&
23287 { ac_try='test -s conftest$ac_exeext'
23288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23289 (eval $ac_try) 2>&5
23291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); }; }; then
23293 ac_cv_lib_dl_dlopen=yes
23295 echo "$as_me: failed program was:" >&5
23296 sed 's/^/| /' conftest.$ac_ext >&5
23298 ac_cv_lib_dl_dlopen=no
23300 rm -f conftest.err conftest.$ac_objext \
23301 conftest$ac_exeext conftest.$ac_ext
23302 LIBS=$ac_check_lib_save_LIBS
23304 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23305 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23306 if test $ac_cv_lib_dl_dlopen = yes; then
23307 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23309 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23310 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23311 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23312 echo $ECHO_N "(cached) $ECHO_C" >&6
23314 ac_check_lib_save_LIBS=$LIBS
23315 LIBS="-lsvld $LIBS"
23316 cat >conftest.$ac_ext <<_ACEOF
23319 cat confdefs.h >>conftest.$ac_ext
23320 cat >>conftest.$ac_ext <<_ACEOF
23321 /* end confdefs.h. */
23323 /* Override any gcc2 internal prototype to avoid an error. */
23327 /* We use char because int might match the return type of a gcc2
23328 builtin and then its argument prototype would still apply. */
23338 rm -f conftest.$ac_objext conftest$ac_exeext
23339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23340 (eval $ac_link) 2>conftest.er1
23342 grep -v '^ *+' conftest.er1 >conftest.err
23344 cat conftest.err >&5
23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); } &&
23347 { ac_try='test -z "$ac_c_werror_flag"
23348 || test ! -s conftest.err'
23349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23350 (eval $ac_try) 2>&5
23352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 (exit $ac_status); }; } &&
23354 { ac_try='test -s conftest$ac_exeext'
23355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23356 (eval $ac_try) 2>&5
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); }; }; then
23360 ac_cv_lib_svld_dlopen=yes
23362 echo "$as_me: failed program was:" >&5
23363 sed 's/^/| /' conftest.$ac_ext >&5
23365 ac_cv_lib_svld_dlopen=no
23367 rm -f conftest.err conftest.$ac_objext \
23368 conftest$ac_exeext conftest.$ac_ext
23369 LIBS=$ac_check_lib_save_LIBS
23371 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23372 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23373 if test $ac_cv_lib_svld_dlopen = yes; then
23374 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23376 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23377 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23378 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23379 echo $ECHO_N "(cached) $ECHO_C" >&6
23381 ac_check_lib_save_LIBS=$LIBS
23383 cat >conftest.$ac_ext <<_ACEOF
23386 cat confdefs.h >>conftest.$ac_ext
23387 cat >>conftest.$ac_ext <<_ACEOF
23388 /* end confdefs.h. */
23390 /* Override any gcc2 internal prototype to avoid an error. */
23394 /* We use char because int might match the return type of a gcc2
23395 builtin and then its argument prototype would still apply. */
23405 rm -f conftest.$ac_objext conftest$ac_exeext
23406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23407 (eval $ac_link) 2>conftest.er1
23409 grep -v '^ *+' conftest.er1 >conftest.err
23411 cat conftest.err >&5
23412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); } &&
23414 { ac_try='test -z "$ac_c_werror_flag"
23415 || test ! -s conftest.err'
23416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23417 (eval $ac_try) 2>&5
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); }; } &&
23421 { ac_try='test -s conftest$ac_exeext'
23422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23423 (eval $ac_try) 2>&5
23425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426 (exit $ac_status); }; }; then
23427 ac_cv_lib_dld_dld_link=yes
23429 echo "$as_me: failed program was:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23432 ac_cv_lib_dld_dld_link=no
23434 rm -f conftest.err conftest.$ac_objext \
23435 conftest$ac_exeext conftest.$ac_ext
23436 LIBS=$ac_check_lib_save_LIBS
23438 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23439 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23440 if test $ac_cv_lib_dld_dld_link = yes; then
23441 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23462 if test "x$lt_cv_dlopen" != xno; then
23468 case $lt_cv_dlopen in
23470 save_CPPFLAGS="$CPPFLAGS"
23471 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23473 save_LDFLAGS="$LDFLAGS"
23474 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23477 LIBS="$lt_cv_dlopen_libs $LIBS"
23479 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23480 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23481 if test "${lt_cv_dlopen_self+set}" = set; then
23482 echo $ECHO_N "(cached) $ECHO_C" >&6
23484 if test "$cross_compiling" = yes; then :
23485 lt_cv_dlopen_self=cross
23487 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23488 lt_status=$lt_dlunknown
23489 cat > conftest.$ac_ext <<EOF
23490 #line 23490 "configure"
23491 #include "confdefs.h"
23500 # define LT_DLGLOBAL RTLD_GLOBAL
23503 # define LT_DLGLOBAL DL_GLOBAL
23505 # define LT_DLGLOBAL 0
23509 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23510 find out it does not work in some platform. */
23511 #ifndef LT_DLLAZY_OR_NOW
23513 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23516 # define LT_DLLAZY_OR_NOW DL_LAZY
23519 # define LT_DLLAZY_OR_NOW RTLD_NOW
23522 # define LT_DLLAZY_OR_NOW DL_NOW
23524 # define LT_DLLAZY_OR_NOW 0
23532 extern "C" void exit (int);
23535 void fnord() { int i=42;}
23538 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23539 int status = $lt_dlunknown;
23543 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23544 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23545 /* dlclose (self); */
23551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23552 (eval $ac_link) 2>&5
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23556 (./conftest; exit; ) 2>/dev/null
23558 case x$lt_status in
23559 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23560 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23561 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23564 # compilation failed
23565 lt_cv_dlopen_self=no
23572 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23573 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23575 if test "x$lt_cv_dlopen_self" = xyes; then
23576 LDFLAGS="$LDFLAGS $link_static_flag"
23577 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23578 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23579 if test "${lt_cv_dlopen_self_static+set}" = set; then
23580 echo $ECHO_N "(cached) $ECHO_C" >&6
23582 if test "$cross_compiling" = yes; then :
23583 lt_cv_dlopen_self_static=cross
23585 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23586 lt_status=$lt_dlunknown
23587 cat > conftest.$ac_ext <<EOF
23588 #line 23588 "configure"
23589 #include "confdefs.h"
23598 # define LT_DLGLOBAL RTLD_GLOBAL
23601 # define LT_DLGLOBAL DL_GLOBAL
23603 # define LT_DLGLOBAL 0
23607 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23608 find out it does not work in some platform. */
23609 #ifndef LT_DLLAZY_OR_NOW
23611 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23614 # define LT_DLLAZY_OR_NOW DL_LAZY
23617 # define LT_DLLAZY_OR_NOW RTLD_NOW
23620 # define LT_DLLAZY_OR_NOW DL_NOW
23622 # define LT_DLLAZY_OR_NOW 0
23630 extern "C" void exit (int);
23633 void fnord() { int i=42;}
23636 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23637 int status = $lt_dlunknown;
23641 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23642 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23643 /* dlclose (self); */
23649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23650 (eval $ac_link) 2>&5
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23654 (./conftest; exit; ) 2>/dev/null
23656 case x$lt_status in
23657 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23658 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23659 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23662 # compilation failed
23663 lt_cv_dlopen_self_static=no
23670 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23671 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23674 CPPFLAGS="$save_CPPFLAGS"
23675 LDFLAGS="$save_LDFLAGS"
23680 case $lt_cv_dlopen_self in
23681 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23682 *) enable_dlopen_self=unknown ;;
23685 case $lt_cv_dlopen_self_static in
23686 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23687 *) enable_dlopen_self_static=unknown ;;
23692 # The else clause should only fire when bootstrapping the
23693 # libtool distribution, otherwise you forgot to ship ltmain.sh
23694 # with your package, and you will get complaints that there are
23695 # no rules to generate ltmain.sh.
23696 if test -f "$ltmain"; then
23697 # See if we are running on zsh, and set the options which allow our commands through
23698 # without removal of \ escapes.
23699 if test -n "${ZSH_VERSION+set}" ; then
23700 setopt NO_GLOB_SUBST
23702 # Now quote all the things that may contain metacharacters while being
23703 # careful not to overquote the AC_SUBSTed values. We take copies of the
23704 # variables and quote the copies for generation of the libtool script.
23705 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23707 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23708 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23709 deplibs_check_method reload_flag reload_cmds need_locks \
23710 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23711 lt_cv_sys_global_symbol_to_c_name_address \
23712 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23713 old_postinstall_cmds old_postuninstall_cmds \
23717 lt_prog_compiler_wl_GCJ \
23718 lt_prog_compiler_pic_GCJ \
23719 lt_prog_compiler_static_GCJ \
23720 lt_prog_compiler_no_builtin_flag_GCJ \
23721 export_dynamic_flag_spec_GCJ \
23722 thread_safe_flag_spec_GCJ \
23723 whole_archive_flag_spec_GCJ \
23724 enable_shared_with_static_runtimes_GCJ \
23725 old_archive_cmds_GCJ \
23726 old_archive_from_new_cmds_GCJ \
23727 predep_objects_GCJ \
23728 postdep_objects_GCJ \
23731 compiler_lib_search_path_GCJ \
23733 archive_expsym_cmds_GCJ \
23734 postinstall_cmds_GCJ \
23735 postuninstall_cmds_GCJ \
23736 old_archive_from_expsyms_cmds_GCJ \
23737 allow_undefined_flag_GCJ \
23738 no_undefined_flag_GCJ \
23739 export_symbols_cmds_GCJ \
23740 hardcode_libdir_flag_spec_GCJ \
23741 hardcode_libdir_flag_spec_ld_GCJ \
23742 hardcode_libdir_separator_GCJ \
23743 hardcode_automatic_GCJ \
23745 module_expsym_cmds_GCJ \
23746 lt_cv_prog_compiler_c_o_GCJ \
23747 exclude_expsyms_GCJ \
23748 include_expsyms_GCJ; do
23751 old_archive_cmds_GCJ | \
23752 old_archive_from_new_cmds_GCJ | \
23753 archive_cmds_GCJ | \
23754 archive_expsym_cmds_GCJ | \
23755 module_cmds_GCJ | \
23756 module_expsym_cmds_GCJ | \
23757 old_archive_from_expsyms_cmds_GCJ | \
23758 export_symbols_cmds_GCJ | \
23759 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23760 postinstall_cmds | postuninstall_cmds | \
23761 old_postinstall_cmds | old_postuninstall_cmds | \
23762 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23763 # Double-quote double-evaled strings.
23764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23767 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23773 *'\$0 --fallback-echo"')
23774 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23780 cat <<__EOF__ >> "$cfgfile"
23781 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23783 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23785 # Shell to use when invoking shell scripts.
23788 # Whether or not to build shared libraries.
23789 build_libtool_libs=$enable_shared
23791 # Whether or not to build static libraries.
23792 build_old_libs=$enable_static
23794 # Whether or not to add -lc for building shared libraries.
23795 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23797 # Whether or not to disallow shared libs when runtime libs are static
23798 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23800 # Whether or not to optimize for fast installation.
23801 fast_install=$enable_fast_install
23804 host_alias=$host_alias
23807 # An echo program that does not interpret backslashes.
23812 AR_FLAGS=$lt_AR_FLAGS
23817 # A language-specific compiler.
23818 CC=$lt_compiler_GCJ
23820 # Is the compiler the GNU C compiler?
23826 # The linker used to build libraries.
23829 # Whether we need hard or soft links.
23832 # A BSD-compatible nm program.
23835 # A symbol stripping program
23838 # Used to examine libraries when file_magic_cmd begins "file"
23839 MAGIC_CMD=$MAGIC_CMD
23841 # Used on cygwin: DLL creation program.
23844 # Used on cygwin: object dumper.
23847 # Used on cygwin: assembler.
23850 # The name of the directory that contains temporary libtool files.
23853 # How to create reloadable object files.
23854 reload_flag=$lt_reload_flag
23855 reload_cmds=$lt_reload_cmds
23857 # How to pass a linker flag through the compiler.
23858 wl=$lt_lt_prog_compiler_wl_GCJ
23860 # Object file suffix (normally "o").
23861 objext="$ac_objext"
23863 # Old archive suffix (normally "a").
23866 # Shared library suffix (normally ".so").
23867 shrext_cmds='$shrext_cmds'
23869 # Executable file suffix (normally "").
23872 # Additional compiler flags for building library objects.
23873 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23876 # What is the maximum length of a command?
23877 max_cmd_len=$lt_cv_sys_max_cmd_len
23879 # Does compiler simultaneously support -c and -o options?
23880 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23882 # Must we lock files when doing compilation ?
23883 need_locks=$lt_need_locks
23885 # Do we need the lib prefix for modules?
23886 need_lib_prefix=$need_lib_prefix
23888 # Do we need a version for libraries?
23889 need_version=$need_version
23891 # Whether dlopen is supported.
23892 dlopen_support=$enable_dlopen
23894 # Whether dlopen of programs is supported.
23895 dlopen_self=$enable_dlopen_self
23897 # Whether dlopen of statically linked programs is supported.
23898 dlopen_self_static=$enable_dlopen_self_static
23900 # Compiler flag to prevent dynamic linking.
23901 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23903 # Compiler flag to turn off builtin functions.
23904 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23906 # Compiler flag to allow reflexive dlopens.
23907 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23909 # Compiler flag to generate shared objects directly from archives.
23910 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23912 # Compiler flag to generate thread-safe objects.
23913 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23915 # Library versioning type.
23916 version_type=$version_type
23918 # Format of library name prefix.
23919 libname_spec=$lt_libname_spec
23921 # List of archive names. First name is the real one, the rest are links.
23922 # The last name is the one that the linker finds with -lNAME.
23923 library_names_spec=$lt_library_names_spec
23925 # The coded name of the library, if different from the real name.
23926 soname_spec=$lt_soname_spec
23928 # Commands used to build and install an old-style archive.
23930 old_archive_cmds=$lt_old_archive_cmds_GCJ
23931 old_postinstall_cmds=$lt_old_postinstall_cmds
23932 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23934 # Create an old-style archive from a shared archive.
23935 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23937 # Create a temporary old-style archive to link instead of a shared archive.
23938 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23940 # Commands used to build and install a shared archive.
23941 archive_cmds=$lt_archive_cmds_GCJ
23942 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23943 postinstall_cmds=$lt_postinstall_cmds
23944 postuninstall_cmds=$lt_postuninstall_cmds
23946 # Commands used to build a loadable module (assumed same as above if empty)
23947 module_cmds=$lt_module_cmds_GCJ
23948 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23950 # Commands to strip libraries.
23951 old_striplib=$lt_old_striplib
23952 striplib=$lt_striplib
23954 # Dependencies to place before the objects being linked to create a
23956 predep_objects=$lt_predep_objects_GCJ
23958 # Dependencies to place after the objects being linked to create a
23960 postdep_objects=$lt_postdep_objects_GCJ
23962 # Dependencies to place before the objects being linked to create a
23964 predeps=$lt_predeps_GCJ
23966 # Dependencies to place after the objects being linked to create a
23968 postdeps=$lt_postdeps_GCJ
23970 # The library search path used internally by the compiler when linking
23971 # a shared library.
23972 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23974 # Method to check whether dependent libraries are shared objects.
23975 deplibs_check_method=$lt_deplibs_check_method
23977 # Command to use when deplibs_check_method == file_magic.
23978 file_magic_cmd=$lt_file_magic_cmd
23980 # Flag that allows shared libraries with undefined symbols to be built.
23981 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23983 # Flag that forces no undefined symbols.
23984 no_undefined_flag=$lt_no_undefined_flag_GCJ
23986 # Commands used to finish a libtool library installation in a directory.
23987 finish_cmds=$lt_finish_cmds
23989 # Same as above, but a single script fragment to be evaled but not shown.
23990 finish_eval=$lt_finish_eval
23992 # Take the output of nm and produce a listing of raw symbols and C names.
23993 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23995 # Transform the output of nm in a proper C declaration
23996 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23998 # Transform the output of nm in a C name address pair
23999 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24001 # This is the shared library runtime path variable.
24002 runpath_var=$runpath_var
24004 # This is the shared library path variable.
24005 shlibpath_var=$shlibpath_var
24007 # Is shlibpath searched before the hard-coded library search path?
24008 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24010 # How to hardcode a shared library path into an executable.
24011 hardcode_action=$hardcode_action_GCJ
24013 # Whether we should hardcode library paths into libraries.
24014 hardcode_into_libs=$hardcode_into_libs
24016 # Flag to hardcode \$libdir into a binary during linking.
24017 # This must work even if \$libdir does not exist.
24018 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24020 # If ld is used when linking, flag to hardcode \$libdir into
24021 # a binary during linking. This must work even if \$libdir does
24023 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24025 # Whether we need a single -rpath flag with a separated argument.
24026 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24028 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24029 # resulting binary.
24030 hardcode_direct=$hardcode_direct_GCJ
24032 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24033 # resulting binary.
24034 hardcode_minus_L=$hardcode_minus_L_GCJ
24036 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24037 # the resulting binary.
24038 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24040 # Set to yes if building a shared library automatically hardcodes DIR into the library
24041 # and all subsequent libraries and executables linked against it.
24042 hardcode_automatic=$hardcode_automatic_GCJ
24044 # Variables whose values should be saved in libtool wrapper scripts and
24045 # restored at relink time.
24046 variables_saved_for_relink="$variables_saved_for_relink"
24048 # Whether libtool must link a program against all its dependency libraries.
24049 link_all_deplibs=$link_all_deplibs_GCJ
24051 # Compile-time system search path for libraries
24052 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24054 # Run-time system search path for libraries
24055 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24057 # Fix the shell variable \$srcfile for the compiler.
24058 fix_srcfile_path="$fix_srcfile_path_GCJ"
24060 # Set to yes if exported symbols are required.
24061 always_export_symbols=$always_export_symbols_GCJ
24063 # The commands to list exported symbols.
24064 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24066 # The commands to extract the exported symbol list from a shared archive.
24067 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24069 # Symbols that should not be listed in the preloaded symbols.
24070 exclude_expsyms=$lt_exclude_expsyms_GCJ
24072 # Symbols that must always be exported.
24073 include_expsyms=$lt_include_expsyms_GCJ
24075 # ### END LIBTOOL TAG CONFIG: $tagname
24081 # If there is no Makefile yet, we rely on a make rule to execute
24082 # `config.status --recheck' to rerun these tests and create the
24083 # libtool script then.
24084 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24085 if test -f "$ltmain_in"; then
24086 test -f Makefile && make "$ltmain"
24092 ac_cpp='$CPP $CPPFLAGS'
24093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24106 ac_cpp='$CPP $CPPFLAGS'
24107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24112 # Source file extension for RC test sources.
24115 # Object file extension for compiled RC test sources.
24119 # Code to be used in simple compile tests
24120 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24122 # Code to be used in simple link tests
24123 lt_simple_link_test_code="$lt_simple_compile_test_code"
24125 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24127 # If no C compiler was specified, use CC.
24130 # Allow CC to be a program name with arguments.
24134 # Allow CC to be a program name with arguments.
24139 lt_cv_prog_compiler_c_o_RC=yes
24141 # The else clause should only fire when bootstrapping the
24142 # libtool distribution, otherwise you forgot to ship ltmain.sh
24143 # with your package, and you will get complaints that there are
24144 # no rules to generate ltmain.sh.
24145 if test -f "$ltmain"; then
24146 # See if we are running on zsh, and set the options which allow our commands through
24147 # without removal of \ escapes.
24148 if test -n "${ZSH_VERSION+set}" ; then
24149 setopt NO_GLOB_SUBST
24151 # Now quote all the things that may contain metacharacters while being
24152 # careful not to overquote the AC_SUBSTed values. We take copies of the
24153 # variables and quote the copies for generation of the libtool script.
24154 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24156 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24157 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24158 deplibs_check_method reload_flag reload_cmds need_locks \
24159 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24160 lt_cv_sys_global_symbol_to_c_name_address \
24161 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24162 old_postinstall_cmds old_postuninstall_cmds \
24166 lt_prog_compiler_wl_RC \
24167 lt_prog_compiler_pic_RC \
24168 lt_prog_compiler_static_RC \
24169 lt_prog_compiler_no_builtin_flag_RC \
24170 export_dynamic_flag_spec_RC \
24171 thread_safe_flag_spec_RC \
24172 whole_archive_flag_spec_RC \
24173 enable_shared_with_static_runtimes_RC \
24174 old_archive_cmds_RC \
24175 old_archive_from_new_cmds_RC \
24176 predep_objects_RC \
24177 postdep_objects_RC \
24180 compiler_lib_search_path_RC \
24182 archive_expsym_cmds_RC \
24183 postinstall_cmds_RC \
24184 postuninstall_cmds_RC \
24185 old_archive_from_expsyms_cmds_RC \
24186 allow_undefined_flag_RC \
24187 no_undefined_flag_RC \
24188 export_symbols_cmds_RC \
24189 hardcode_libdir_flag_spec_RC \
24190 hardcode_libdir_flag_spec_ld_RC \
24191 hardcode_libdir_separator_RC \
24192 hardcode_automatic_RC \
24194 module_expsym_cmds_RC \
24195 lt_cv_prog_compiler_c_o_RC \
24196 exclude_expsyms_RC \
24197 include_expsyms_RC; do
24200 old_archive_cmds_RC | \
24201 old_archive_from_new_cmds_RC | \
24202 archive_cmds_RC | \
24203 archive_expsym_cmds_RC | \
24205 module_expsym_cmds_RC | \
24206 old_archive_from_expsyms_cmds_RC | \
24207 export_symbols_cmds_RC | \
24208 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24209 postinstall_cmds | postuninstall_cmds | \
24210 old_postinstall_cmds | old_postuninstall_cmds | \
24211 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24212 # Double-quote double-evaled strings.
24213 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24216 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24222 *'\$0 --fallback-echo"')
24223 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24229 cat <<__EOF__ >> "$cfgfile"
24230 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24232 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24234 # Shell to use when invoking shell scripts.
24237 # Whether or not to build shared libraries.
24238 build_libtool_libs=$enable_shared
24240 # Whether or not to build static libraries.
24241 build_old_libs=$enable_static
24243 # Whether or not to add -lc for building shared libraries.
24244 build_libtool_need_lc=$archive_cmds_need_lc_RC
24246 # Whether or not to disallow shared libs when runtime libs are static
24247 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24249 # Whether or not to optimize for fast installation.
24250 fast_install=$enable_fast_install
24253 host_alias=$host_alias
24256 # An echo program that does not interpret backslashes.
24261 AR_FLAGS=$lt_AR_FLAGS
24266 # A language-specific compiler.
24269 # Is the compiler the GNU C compiler?
24275 # The linker used to build libraries.
24278 # Whether we need hard or soft links.
24281 # A BSD-compatible nm program.
24284 # A symbol stripping program
24287 # Used to examine libraries when file_magic_cmd begins "file"
24288 MAGIC_CMD=$MAGIC_CMD
24290 # Used on cygwin: DLL creation program.
24293 # Used on cygwin: object dumper.
24296 # Used on cygwin: assembler.
24299 # The name of the directory that contains temporary libtool files.
24302 # How to create reloadable object files.
24303 reload_flag=$lt_reload_flag
24304 reload_cmds=$lt_reload_cmds
24306 # How to pass a linker flag through the compiler.
24307 wl=$lt_lt_prog_compiler_wl_RC
24309 # Object file suffix (normally "o").
24310 objext="$ac_objext"
24312 # Old archive suffix (normally "a").
24315 # Shared library suffix (normally ".so").
24316 shrext_cmds='$shrext_cmds'
24318 # Executable file suffix (normally "").
24321 # Additional compiler flags for building library objects.
24322 pic_flag=$lt_lt_prog_compiler_pic_RC
24325 # What is the maximum length of a command?
24326 max_cmd_len=$lt_cv_sys_max_cmd_len
24328 # Does compiler simultaneously support -c and -o options?
24329 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24331 # Must we lock files when doing compilation ?
24332 need_locks=$lt_need_locks
24334 # Do we need the lib prefix for modules?
24335 need_lib_prefix=$need_lib_prefix
24337 # Do we need a version for libraries?
24338 need_version=$need_version
24340 # Whether dlopen is supported.
24341 dlopen_support=$enable_dlopen
24343 # Whether dlopen of programs is supported.
24344 dlopen_self=$enable_dlopen_self
24346 # Whether dlopen of statically linked programs is supported.
24347 dlopen_self_static=$enable_dlopen_self_static
24349 # Compiler flag to prevent dynamic linking.
24350 link_static_flag=$lt_lt_prog_compiler_static_RC
24352 # Compiler flag to turn off builtin functions.
24353 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24355 # Compiler flag to allow reflexive dlopens.
24356 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24358 # Compiler flag to generate shared objects directly from archives.
24359 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24361 # Compiler flag to generate thread-safe objects.
24362 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24364 # Library versioning type.
24365 version_type=$version_type
24367 # Format of library name prefix.
24368 libname_spec=$lt_libname_spec
24370 # List of archive names. First name is the real one, the rest are links.
24371 # The last name is the one that the linker finds with -lNAME.
24372 library_names_spec=$lt_library_names_spec
24374 # The coded name of the library, if different from the real name.
24375 soname_spec=$lt_soname_spec
24377 # Commands used to build and install an old-style archive.
24379 old_archive_cmds=$lt_old_archive_cmds_RC
24380 old_postinstall_cmds=$lt_old_postinstall_cmds
24381 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24383 # Create an old-style archive from a shared archive.
24384 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24386 # Create a temporary old-style archive to link instead of a shared archive.
24387 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24389 # Commands used to build and install a shared archive.
24390 archive_cmds=$lt_archive_cmds_RC
24391 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24392 postinstall_cmds=$lt_postinstall_cmds
24393 postuninstall_cmds=$lt_postuninstall_cmds
24395 # Commands used to build a loadable module (assumed same as above if empty)
24396 module_cmds=$lt_module_cmds_RC
24397 module_expsym_cmds=$lt_module_expsym_cmds_RC
24399 # Commands to strip libraries.
24400 old_striplib=$lt_old_striplib
24401 striplib=$lt_striplib
24403 # Dependencies to place before the objects being linked to create a
24405 predep_objects=$lt_predep_objects_RC
24407 # Dependencies to place after the objects being linked to create a
24409 postdep_objects=$lt_postdep_objects_RC
24411 # Dependencies to place before the objects being linked to create a
24413 predeps=$lt_predeps_RC
24415 # Dependencies to place after the objects being linked to create a
24417 postdeps=$lt_postdeps_RC
24419 # The library search path used internally by the compiler when linking
24420 # a shared library.
24421 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24423 # Method to check whether dependent libraries are shared objects.
24424 deplibs_check_method=$lt_deplibs_check_method
24426 # Command to use when deplibs_check_method == file_magic.
24427 file_magic_cmd=$lt_file_magic_cmd
24429 # Flag that allows shared libraries with undefined symbols to be built.
24430 allow_undefined_flag=$lt_allow_undefined_flag_RC
24432 # Flag that forces no undefined symbols.
24433 no_undefined_flag=$lt_no_undefined_flag_RC
24435 # Commands used to finish a libtool library installation in a directory.
24436 finish_cmds=$lt_finish_cmds
24438 # Same as above, but a single script fragment to be evaled but not shown.
24439 finish_eval=$lt_finish_eval
24441 # Take the output of nm and produce a listing of raw symbols and C names.
24442 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24444 # Transform the output of nm in a proper C declaration
24445 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24447 # Transform the output of nm in a C name address pair
24448 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24450 # This is the shared library runtime path variable.
24451 runpath_var=$runpath_var
24453 # This is the shared library path variable.
24454 shlibpath_var=$shlibpath_var
24456 # Is shlibpath searched before the hard-coded library search path?
24457 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24459 # How to hardcode a shared library path into an executable.
24460 hardcode_action=$hardcode_action_RC
24462 # Whether we should hardcode library paths into libraries.
24463 hardcode_into_libs=$hardcode_into_libs
24465 # Flag to hardcode \$libdir into a binary during linking.
24466 # This must work even if \$libdir does not exist.
24467 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24469 # If ld is used when linking, flag to hardcode \$libdir into
24470 # a binary during linking. This must work even if \$libdir does
24472 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24474 # Whether we need a single -rpath flag with a separated argument.
24475 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24477 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24478 # resulting binary.
24479 hardcode_direct=$hardcode_direct_RC
24481 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24482 # resulting binary.
24483 hardcode_minus_L=$hardcode_minus_L_RC
24485 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24486 # the resulting binary.
24487 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24489 # Set to yes if building a shared library automatically hardcodes DIR into the library
24490 # and all subsequent libraries and executables linked against it.
24491 hardcode_automatic=$hardcode_automatic_RC
24493 # Variables whose values should be saved in libtool wrapper scripts and
24494 # restored at relink time.
24495 variables_saved_for_relink="$variables_saved_for_relink"
24497 # Whether libtool must link a program against all its dependency libraries.
24498 link_all_deplibs=$link_all_deplibs_RC
24500 # Compile-time system search path for libraries
24501 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24503 # Run-time system search path for libraries
24504 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24506 # Fix the shell variable \$srcfile for the compiler.
24507 fix_srcfile_path="$fix_srcfile_path_RC"
24509 # Set to yes if exported symbols are required.
24510 always_export_symbols=$always_export_symbols_RC
24512 # The commands to list exported symbols.
24513 export_symbols_cmds=$lt_export_symbols_cmds_RC
24515 # The commands to extract the exported symbol list from a shared archive.
24516 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24518 # Symbols that should not be listed in the preloaded symbols.
24519 exclude_expsyms=$lt_exclude_expsyms_RC
24521 # Symbols that must always be exported.
24522 include_expsyms=$lt_include_expsyms_RC
24524 # ### END LIBTOOL TAG CONFIG: $tagname
24530 # If there is no Makefile yet, we rely on a make rule to execute
24531 # `config.status --recheck' to rerun these tests and create the
24532 # libtool script then.
24533 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24534 if test -f "$ltmain_in"; then
24535 test -f Makefile && make "$ltmain"
24541 ac_cpp='$CPP $CPPFLAGS'
24542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24551 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24552 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24553 { (exit 1); exit 1; }; }
24557 # Append the new tag name to the list of available tags.
24558 if test -n "$tagname" ; then
24559 available_tags="$available_tags $tagname"
24565 # Now substitute the updated list of available tags.
24566 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24567 mv "${ofile}T" "$ofile"
24571 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24572 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24573 { (exit 1); exit 1; }; }
24579 # This can be used to rebuild libtool when needed
24580 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24582 # Always use our own libtool.
24583 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24585 # Prevent multiple expansion
24607 if test "$lt_cv_dlopen_self" = "yes" ; then
24609 cat >>confdefs.h <<\_ACEOF
24610 #define CAN_DLOPEN_SELF 1
24615 etags_version=`$ETAGS --version 2>&1`
24616 case "$etags_version" in
24617 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24618 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24619 *) ETAGSFLAGS="" ;;
24621 ETAGSFLAGS=$ETAGSFLAGS
24624 if test "$WITH_LLVMGCCDIR" = "default" ; then
24625 # Extract the first word of "llvm-gcc", so it can be a program name with args.
24626 set dummy llvm-gcc; ac_word=$2
24627 echo "$as_me:$LINENO: checking for $ac_word" >&5
24628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24629 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24630 echo $ECHO_N "(cached) $ECHO_C" >&6
24634 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24638 for as_dir in $PATH
24641 test -z "$as_dir" && as_dir=.
24642 for ac_exec_ext in '' $ac_executable_extensions; do
24643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24644 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24654 LLVMGCC=$ac_cv_path_LLVMGCC
24656 if test -n "$LLVMGCC"; then
24657 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24658 echo "${ECHO_T}$LLVMGCC" >&6
24660 echo "$as_me:$LINENO: result: no" >&5
24661 echo "${ECHO_T}no" >&6
24664 # Extract the first word of "llvm-g++", so it can be a program name with args.
24665 set dummy llvm-g++; ac_word=$2
24666 echo "$as_me:$LINENO: checking for $ac_word" >&5
24667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24668 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24669 echo $ECHO_N "(cached) $ECHO_C" >&6
24673 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24677 for as_dir in $PATH
24680 test -z "$as_dir" && as_dir=.
24681 for ac_exec_ext in '' $ac_executable_extensions; do
24682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24683 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24693 LLVMGXX=$ac_cv_path_LLVMGXX
24695 if test -n "$LLVMGXX"; then
24696 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24697 echo "${ECHO_T}$LLVMGXX" >&6
24699 echo "$as_me:$LINENO: result: no" >&5
24700 echo "${ECHO_T}no" >&6
24704 LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24705 LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24712 echo "$as_me:$LINENO: checking tool compatibility" >&5
24713 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24726 if test "$GCC" != "yes" && test "$ICC" != "yes"
24728 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24729 echo "$as_me: error: gcc|icc required but not found" >&2;}
24730 { (exit 1); exit 1; }; }
24733 if test "$GXX" != "yes" && test "$IXX" != "yes"
24735 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24736 echo "$as_me: error: g++|icc required but not found" >&2;}
24737 { (exit 1); exit 1; }; }
24740 if test "$GCC" = "yes"
24742 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24743 if test "$gccmajor" -lt "3"
24745 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24746 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24747 { (exit 1); exit 1; }; }
24751 if test -z "$llvm_cv_gnu_make_command"
24753 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24754 echo "$as_me: error: GNU Make required but not found" >&2;}
24755 { (exit 1); exit 1; }; }
24758 echo "$as_me:$LINENO: result: ok" >&5
24759 echo "${ECHO_T}ok" >&6
24763 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24764 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24765 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24766 echo $ECHO_N "(cached) $ECHO_C" >&6
24768 ac_check_lib_save_LIBS=$LIBS
24770 cat >conftest.$ac_ext <<_ACEOF
24773 cat confdefs.h >>conftest.$ac_ext
24774 cat >>conftest.$ac_ext <<_ACEOF
24775 /* end confdefs.h. */
24777 /* Override any gcc2 internal prototype to avoid an error. */
24781 /* We use char because int might match the return type of a gcc2
24782 builtin and then its argument prototype would still apply. */
24792 rm -f conftest.$ac_objext conftest$ac_exeext
24793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24794 (eval $ac_link) 2>conftest.er1
24796 grep -v '^ *+' conftest.er1 >conftest.err
24798 cat conftest.err >&5
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); } &&
24801 { ac_try='test -z "$ac_c_werror_flag"
24802 || test ! -s conftest.err'
24803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24804 (eval $ac_try) 2>&5
24806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807 (exit $ac_status); }; } &&
24808 { ac_try='test -s conftest$ac_exeext'
24809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24810 (eval $ac_try) 2>&5
24812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813 (exit $ac_status); }; }; then
24814 ac_cv_lib_elf_elf_begin=yes
24816 echo "$as_me: failed program was:" >&5
24817 sed 's/^/| /' conftest.$ac_ext >&5
24819 ac_cv_lib_elf_elf_begin=no
24821 rm -f conftest.err conftest.$ac_objext \
24822 conftest$ac_exeext conftest.$ac_ext
24823 LIBS=$ac_check_lib_save_LIBS
24825 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24826 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24827 if test $ac_cv_lib_elf_elf_begin = yes; then
24828 cat >>confdefs.h <<_ACEOF
24829 #define HAVE_LIBELF 1
24837 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24838 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24839 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24840 echo $ECHO_N "(cached) $ECHO_C" >&6
24842 ac_func_search_save_LIBS=$LIBS
24843 ac_cv_search_lt_dlopen=no
24844 cat >conftest.$ac_ext <<_ACEOF
24847 cat confdefs.h >>conftest.$ac_ext
24848 cat >>conftest.$ac_ext <<_ACEOF
24849 /* end confdefs.h. */
24851 /* Override any gcc2 internal prototype to avoid an error. */
24855 /* We use char because int might match the return type of a gcc2
24856 builtin and then its argument prototype would still apply. */
24866 rm -f conftest.$ac_objext conftest$ac_exeext
24867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24868 (eval $ac_link) 2>conftest.er1
24870 grep -v '^ *+' conftest.er1 >conftest.err
24872 cat conftest.err >&5
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); } &&
24875 { ac_try='test -z "$ac_c_werror_flag"
24876 || test ! -s conftest.err'
24877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24878 (eval $ac_try) 2>&5
24880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881 (exit $ac_status); }; } &&
24882 { ac_try='test -s conftest$ac_exeext'
24883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24884 (eval $ac_try) 2>&5
24886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887 (exit $ac_status); }; }; then
24888 ac_cv_search_lt_dlopen="none required"
24890 echo "$as_me: failed program was:" >&5
24891 sed 's/^/| /' conftest.$ac_ext >&5
24894 rm -f conftest.err conftest.$ac_objext \
24895 conftest$ac_exeext conftest.$ac_ext
24896 if test "$ac_cv_search_lt_dlopen" = no; then
24897 for ac_lib in ltdl; do
24898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24899 cat >conftest.$ac_ext <<_ACEOF
24902 cat confdefs.h >>conftest.$ac_ext
24903 cat >>conftest.$ac_ext <<_ACEOF
24904 /* end confdefs.h. */
24906 /* Override any gcc2 internal prototype to avoid an error. */
24910 /* We use char because int might match the return type of a gcc2
24911 builtin and then its argument prototype would still apply. */
24921 rm -f conftest.$ac_objext conftest$ac_exeext
24922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24923 (eval $ac_link) 2>conftest.er1
24925 grep -v '^ *+' conftest.er1 >conftest.err
24927 cat conftest.err >&5
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); } &&
24930 { ac_try='test -z "$ac_c_werror_flag"
24931 || test ! -s conftest.err'
24932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24933 (eval $ac_try) 2>&5
24935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936 (exit $ac_status); }; } &&
24937 { ac_try='test -s conftest$ac_exeext'
24938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24939 (eval $ac_try) 2>&5
24941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 (exit $ac_status); }; }; then
24943 ac_cv_search_lt_dlopen="-l$ac_lib"
24946 echo "$as_me: failed program was:" >&5
24947 sed 's/^/| /' conftest.$ac_ext >&5
24950 rm -f conftest.err conftest.$ac_objext \
24951 conftest$ac_exeext conftest.$ac_ext
24954 LIBS=$ac_func_search_save_LIBS
24956 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24957 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24958 if test "$ac_cv_search_lt_dlopen" != no; then
24959 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24961 cat >>confdefs.h <<\_ACEOF
24962 #define HAVE_LT_DLOPEN 1
24966 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24967 not be available" >&5
24968 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24969 not be available" >&2;}
24973 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24974 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24975 if test "${ac_cv_search_dlopen+set}" = set; then
24976 echo $ECHO_N "(cached) $ECHO_C" >&6
24978 ac_func_search_save_LIBS=$LIBS
24979 ac_cv_search_dlopen=no
24980 cat >conftest.$ac_ext <<_ACEOF
24983 cat confdefs.h >>conftest.$ac_ext
24984 cat >>conftest.$ac_ext <<_ACEOF
24985 /* end confdefs.h. */
24987 /* Override any gcc2 internal prototype to avoid an error. */
24991 /* We use char because int might match the return type of a gcc2
24992 builtin and then its argument prototype would still apply. */
25002 rm -f conftest.$ac_objext conftest$ac_exeext
25003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25004 (eval $ac_link) 2>conftest.er1
25006 grep -v '^ *+' conftest.er1 >conftest.err
25008 cat conftest.err >&5
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); } &&
25011 { ac_try='test -z "$ac_c_werror_flag"
25012 || test ! -s conftest.err'
25013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25014 (eval $ac_try) 2>&5
25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); }; } &&
25018 { ac_try='test -s conftest$ac_exeext'
25019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020 (eval $ac_try) 2>&5
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); }; }; then
25024 ac_cv_search_dlopen="none required"
25026 echo "$as_me: failed program was:" >&5
25027 sed 's/^/| /' conftest.$ac_ext >&5
25030 rm -f conftest.err conftest.$ac_objext \
25031 conftest$ac_exeext conftest.$ac_ext
25032 if test "$ac_cv_search_dlopen" = no; then
25033 for ac_lib in dl; do
25034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25035 cat >conftest.$ac_ext <<_ACEOF
25038 cat confdefs.h >>conftest.$ac_ext
25039 cat >>conftest.$ac_ext <<_ACEOF
25040 /* end confdefs.h. */
25042 /* Override any gcc2 internal prototype to avoid an error. */
25046 /* We use char because int might match the return type of a gcc2
25047 builtin and then its argument prototype would still apply. */
25057 rm -f conftest.$ac_objext conftest$ac_exeext
25058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25059 (eval $ac_link) 2>conftest.er1
25061 grep -v '^ *+' conftest.er1 >conftest.err
25063 cat conftest.err >&5
25064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065 (exit $ac_status); } &&
25066 { ac_try='test -z "$ac_c_werror_flag"
25067 || test ! -s conftest.err'
25068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25069 (eval $ac_try) 2>&5
25071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072 (exit $ac_status); }; } &&
25073 { ac_try='test -s conftest$ac_exeext'
25074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25075 (eval $ac_try) 2>&5
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); }; }; then
25079 ac_cv_search_dlopen="-l$ac_lib"
25082 echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25086 rm -f conftest.err conftest.$ac_objext \
25087 conftest$ac_exeext conftest.$ac_ext
25090 LIBS=$ac_func_search_save_LIBS
25092 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25093 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25094 if test "$ac_cv_search_dlopen" != no; then
25095 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25097 cat >>confdefs.h <<\_ACEOF
25098 #define HAVE_DLOPEN 1
25102 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25103 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25107 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25108 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25109 if test "${ac_cv_search_mallinfo+set}" = set; then
25110 echo $ECHO_N "(cached) $ECHO_C" >&6
25112 ac_func_search_save_LIBS=$LIBS
25113 ac_cv_search_mallinfo=no
25114 cat >conftest.$ac_ext <<_ACEOF
25117 cat confdefs.h >>conftest.$ac_ext
25118 cat >>conftest.$ac_ext <<_ACEOF
25119 /* end confdefs.h. */
25121 /* Override any gcc2 internal prototype to avoid an error. */
25125 /* We use char because int might match the return type of a gcc2
25126 builtin and then its argument prototype would still apply. */
25136 rm -f conftest.$ac_objext conftest$ac_exeext
25137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25138 (eval $ac_link) 2>conftest.er1
25140 grep -v '^ *+' conftest.er1 >conftest.err
25142 cat conftest.err >&5
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); } &&
25145 { ac_try='test -z "$ac_c_werror_flag"
25146 || test ! -s conftest.err'
25147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25148 (eval $ac_try) 2>&5
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); }; } &&
25152 { ac_try='test -s conftest$ac_exeext'
25153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25154 (eval $ac_try) 2>&5
25156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157 (exit $ac_status); }; }; then
25158 ac_cv_search_mallinfo="none required"
25160 echo "$as_me: failed program was:" >&5
25161 sed 's/^/| /' conftest.$ac_ext >&5
25164 rm -f conftest.err conftest.$ac_objext \
25165 conftest$ac_exeext conftest.$ac_ext
25166 if test "$ac_cv_search_mallinfo" = no; then
25167 for ac_lib in malloc; do
25168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25169 cat >conftest.$ac_ext <<_ACEOF
25172 cat confdefs.h >>conftest.$ac_ext
25173 cat >>conftest.$ac_ext <<_ACEOF
25174 /* end confdefs.h. */
25176 /* Override any gcc2 internal prototype to avoid an error. */
25180 /* We use char because int might match the return type of a gcc2
25181 builtin and then its argument prototype would still apply. */
25191 rm -f conftest.$ac_objext conftest$ac_exeext
25192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25193 (eval $ac_link) 2>conftest.er1
25195 grep -v '^ *+' conftest.er1 >conftest.err
25197 cat conftest.err >&5
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); } &&
25200 { ac_try='test -z "$ac_c_werror_flag"
25201 || test ! -s conftest.err'
25202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203 (eval $ac_try) 2>&5
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); }; } &&
25207 { ac_try='test -s conftest$ac_exeext'
25208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209 (eval $ac_try) 2>&5
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); }; }; then
25213 ac_cv_search_mallinfo="-l$ac_lib"
25216 echo "$as_me: failed program was:" >&5
25217 sed 's/^/| /' conftest.$ac_ext >&5
25220 rm -f conftest.err conftest.$ac_objext \
25221 conftest$ac_exeext conftest.$ac_ext
25224 LIBS=$ac_func_search_save_LIBS
25226 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25227 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25228 if test "$ac_cv_search_mallinfo" != no; then
25229 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25231 cat >>confdefs.h <<\_ACEOF
25232 #define HAVE_MALLINFO 1
25238 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25239 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25240 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25241 echo $ECHO_N "(cached) $ECHO_C" >&6
25243 ac_func_search_save_LIBS=$LIBS
25244 ac_cv_search_pthread_mutex_lock=no
25245 cat >conftest.$ac_ext <<_ACEOF
25248 cat confdefs.h >>conftest.$ac_ext
25249 cat >>conftest.$ac_ext <<_ACEOF
25250 /* end confdefs.h. */
25252 /* Override any gcc2 internal prototype to avoid an error. */
25256 /* We use char because int might match the return type of a gcc2
25257 builtin and then its argument prototype would still apply. */
25258 char pthread_mutex_lock ();
25262 pthread_mutex_lock ();
25267 rm -f conftest.$ac_objext conftest$ac_exeext
25268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25269 (eval $ac_link) 2>conftest.er1
25271 grep -v '^ *+' conftest.er1 >conftest.err
25273 cat conftest.err >&5
25274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275 (exit $ac_status); } &&
25276 { ac_try='test -z "$ac_c_werror_flag"
25277 || test ! -s conftest.err'
25278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25279 (eval $ac_try) 2>&5
25281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282 (exit $ac_status); }; } &&
25283 { ac_try='test -s conftest$ac_exeext'
25284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25285 (eval $ac_try) 2>&5
25287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288 (exit $ac_status); }; }; then
25289 ac_cv_search_pthread_mutex_lock="none required"
25291 echo "$as_me: failed program was:" >&5
25292 sed 's/^/| /' conftest.$ac_ext >&5
25295 rm -f conftest.err conftest.$ac_objext \
25296 conftest$ac_exeext conftest.$ac_ext
25297 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25298 for ac_lib in pthread; do
25299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25300 cat >conftest.$ac_ext <<_ACEOF
25303 cat confdefs.h >>conftest.$ac_ext
25304 cat >>conftest.$ac_ext <<_ACEOF
25305 /* end confdefs.h. */
25307 /* Override any gcc2 internal prototype to avoid an error. */
25311 /* We use char because int might match the return type of a gcc2
25312 builtin and then its argument prototype would still apply. */
25313 char pthread_mutex_lock ();
25317 pthread_mutex_lock ();
25322 rm -f conftest.$ac_objext conftest$ac_exeext
25323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25324 (eval $ac_link) 2>conftest.er1
25326 grep -v '^ *+' conftest.er1 >conftest.err
25328 cat conftest.err >&5
25329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330 (exit $ac_status); } &&
25331 { ac_try='test -z "$ac_c_werror_flag"
25332 || test ! -s conftest.err'
25333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25334 (eval $ac_try) 2>&5
25336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337 (exit $ac_status); }; } &&
25338 { ac_try='test -s conftest$ac_exeext'
25339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25340 (eval $ac_try) 2>&5
25342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); }; }; then
25344 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25347 echo "$as_me: failed program was:" >&5
25348 sed 's/^/| /' conftest.$ac_ext >&5
25351 rm -f conftest.err conftest.$ac_objext \
25352 conftest$ac_exeext conftest.$ac_ext
25355 LIBS=$ac_func_search_save_LIBS
25357 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25358 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25359 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25360 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25362 cat >>confdefs.h <<\_ACEOF
25363 #define HAVE_PTHREAD_MUTEX_LOCK 1
25375 ac_header_dirent=no
25376 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25377 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25378 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25379 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25381 echo $ECHO_N "(cached) $ECHO_C" >&6
25383 cat >conftest.$ac_ext <<_ACEOF
25386 cat confdefs.h >>conftest.$ac_ext
25387 cat >>conftest.$ac_ext <<_ACEOF
25388 /* end confdefs.h. */
25389 #include <sys/types.h>
25401 rm -f conftest.$ac_objext
25402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25403 (eval $ac_compile) 2>conftest.er1
25405 grep -v '^ *+' conftest.er1 >conftest.err
25407 cat conftest.err >&5
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); } &&
25410 { ac_try='test -z "$ac_c_werror_flag"
25411 || test ! -s conftest.err'
25412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25413 (eval $ac_try) 2>&5
25415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416 (exit $ac_status); }; } &&
25417 { ac_try='test -s conftest.$ac_objext'
25418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25419 (eval $ac_try) 2>&5
25421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422 (exit $ac_status); }; }; then
25423 eval "$as_ac_Header=yes"
25425 echo "$as_me: failed program was:" >&5
25426 sed 's/^/| /' conftest.$ac_ext >&5
25428 eval "$as_ac_Header=no"
25430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25435 cat >>confdefs.h <<_ACEOF
25436 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25439 ac_header_dirent=$ac_hdr; break
25443 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25444 if test $ac_header_dirent = dirent.h; then
25445 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25446 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25447 if test "${ac_cv_search_opendir+set}" = set; then
25448 echo $ECHO_N "(cached) $ECHO_C" >&6
25450 ac_func_search_save_LIBS=$LIBS
25451 ac_cv_search_opendir=no
25452 cat >conftest.$ac_ext <<_ACEOF
25455 cat confdefs.h >>conftest.$ac_ext
25456 cat >>conftest.$ac_ext <<_ACEOF
25457 /* end confdefs.h. */
25459 /* Override any gcc2 internal prototype to avoid an error. */
25463 /* We use char because int might match the return type of a gcc2
25464 builtin and then its argument prototype would still apply. */
25474 rm -f conftest.$ac_objext conftest$ac_exeext
25475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25476 (eval $ac_link) 2>conftest.er1
25478 grep -v '^ *+' conftest.er1 >conftest.err
25480 cat conftest.err >&5
25481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482 (exit $ac_status); } &&
25483 { ac_try='test -z "$ac_c_werror_flag"
25484 || test ! -s conftest.err'
25485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486 (eval $ac_try) 2>&5
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); }; } &&
25490 { ac_try='test -s conftest$ac_exeext'
25491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492 (eval $ac_try) 2>&5
25494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495 (exit $ac_status); }; }; then
25496 ac_cv_search_opendir="none required"
25498 echo "$as_me: failed program was:" >&5
25499 sed 's/^/| /' conftest.$ac_ext >&5
25502 rm -f conftest.err conftest.$ac_objext \
25503 conftest$ac_exeext conftest.$ac_ext
25504 if test "$ac_cv_search_opendir" = no; then
25505 for ac_lib in dir; do
25506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25507 cat >conftest.$ac_ext <<_ACEOF
25510 cat confdefs.h >>conftest.$ac_ext
25511 cat >>conftest.$ac_ext <<_ACEOF
25512 /* end confdefs.h. */
25514 /* Override any gcc2 internal prototype to avoid an error. */
25518 /* We use char because int might match the return type of a gcc2
25519 builtin and then its argument prototype would still apply. */
25529 rm -f conftest.$ac_objext conftest$ac_exeext
25530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25531 (eval $ac_link) 2>conftest.er1
25533 grep -v '^ *+' conftest.er1 >conftest.err
25535 cat conftest.err >&5
25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); } &&
25538 { ac_try='test -z "$ac_c_werror_flag"
25539 || test ! -s conftest.err'
25540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25541 (eval $ac_try) 2>&5
25543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25544 (exit $ac_status); }; } &&
25545 { ac_try='test -s conftest$ac_exeext'
25546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25547 (eval $ac_try) 2>&5
25549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550 (exit $ac_status); }; }; then
25551 ac_cv_search_opendir="-l$ac_lib"
25554 echo "$as_me: failed program was:" >&5
25555 sed 's/^/| /' conftest.$ac_ext >&5
25558 rm -f conftest.err conftest.$ac_objext \
25559 conftest$ac_exeext conftest.$ac_ext
25562 LIBS=$ac_func_search_save_LIBS
25564 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25565 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25566 if test "$ac_cv_search_opendir" != no; then
25567 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25572 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25573 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25574 if test "${ac_cv_search_opendir+set}" = set; then
25575 echo $ECHO_N "(cached) $ECHO_C" >&6
25577 ac_func_search_save_LIBS=$LIBS
25578 ac_cv_search_opendir=no
25579 cat >conftest.$ac_ext <<_ACEOF
25582 cat confdefs.h >>conftest.$ac_ext
25583 cat >>conftest.$ac_ext <<_ACEOF
25584 /* end confdefs.h. */
25586 /* Override any gcc2 internal prototype to avoid an error. */
25590 /* We use char because int might match the return type of a gcc2
25591 builtin and then its argument prototype would still apply. */
25601 rm -f conftest.$ac_objext conftest$ac_exeext
25602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25603 (eval $ac_link) 2>conftest.er1
25605 grep -v '^ *+' conftest.er1 >conftest.err
25607 cat conftest.err >&5
25608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); } &&
25610 { ac_try='test -z "$ac_c_werror_flag"
25611 || test ! -s conftest.err'
25612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25613 (eval $ac_try) 2>&5
25615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616 (exit $ac_status); }; } &&
25617 { ac_try='test -s conftest$ac_exeext'
25618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25619 (eval $ac_try) 2>&5
25621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); }; }; then
25623 ac_cv_search_opendir="none required"
25625 echo "$as_me: failed program was:" >&5
25626 sed 's/^/| /' conftest.$ac_ext >&5
25629 rm -f conftest.err conftest.$ac_objext \
25630 conftest$ac_exeext conftest.$ac_ext
25631 if test "$ac_cv_search_opendir" = no; then
25632 for ac_lib in x; do
25633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25634 cat >conftest.$ac_ext <<_ACEOF
25637 cat confdefs.h >>conftest.$ac_ext
25638 cat >>conftest.$ac_ext <<_ACEOF
25639 /* end confdefs.h. */
25641 /* Override any gcc2 internal prototype to avoid an error. */
25645 /* We use char because int might match the return type of a gcc2
25646 builtin and then its argument prototype would still apply. */
25656 rm -f conftest.$ac_objext conftest$ac_exeext
25657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25658 (eval $ac_link) 2>conftest.er1
25660 grep -v '^ *+' conftest.er1 >conftest.err
25662 cat conftest.err >&5
25663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664 (exit $ac_status); } &&
25665 { ac_try='test -z "$ac_c_werror_flag"
25666 || test ! -s conftest.err'
25667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25668 (eval $ac_try) 2>&5
25670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671 (exit $ac_status); }; } &&
25672 { ac_try='test -s conftest$ac_exeext'
25673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25674 (eval $ac_try) 2>&5
25676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677 (exit $ac_status); }; }; then
25678 ac_cv_search_opendir="-l$ac_lib"
25681 echo "$as_me: failed program was:" >&5
25682 sed 's/^/| /' conftest.$ac_ext >&5
25685 rm -f conftest.err conftest.$ac_objext \
25686 conftest$ac_exeext conftest.$ac_ext
25689 LIBS=$ac_func_search_save_LIBS
25691 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25692 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25693 if test "$ac_cv_search_opendir" != no; then
25694 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25700 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25701 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25702 if test "${ac_cv_header_mmap_anon+set}" = set; then
25703 echo $ECHO_N "(cached) $ECHO_C" >&6
25706 ac_cpp='$CPP $CPPFLAGS'
25707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25711 cat >conftest.$ac_ext <<_ACEOF
25714 cat confdefs.h >>conftest.$ac_ext
25715 cat >>conftest.$ac_ext <<_ACEOF
25716 /* end confdefs.h. */
25717 #include <sys/mman.h>
25718 #include <unistd.h>
25723 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25728 rm -f conftest.$ac_objext
25729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25730 (eval $ac_compile) 2>conftest.er1
25732 grep -v '^ *+' conftest.er1 >conftest.err
25734 cat conftest.err >&5
25735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736 (exit $ac_status); } &&
25737 { ac_try='test -z "$ac_c_werror_flag"
25738 || test ! -s conftest.err'
25739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25740 (eval $ac_try) 2>&5
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); }; } &&
25744 { ac_try='test -s conftest.$ac_objext'
25745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25746 (eval $ac_try) 2>&5
25748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749 (exit $ac_status); }; }; then
25750 ac_cv_header_mmap_anon=yes
25752 echo "$as_me: failed program was:" >&5
25753 sed 's/^/| /' conftest.$ac_ext >&5
25755 ac_cv_header_mmap_anon=no
25757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25759 ac_cpp='$CPP $CPPFLAGS'
25760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25766 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25767 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25768 if test "$ac_cv_header_mmap_anon" = yes; then
25770 cat >>confdefs.h <<\_ACEOF
25771 #define HAVE_MMAP_ANONYMOUS 1
25776 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25777 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25778 if test "${ac_cv_header_stat_broken+set}" = set; then
25779 echo $ECHO_N "(cached) $ECHO_C" >&6
25781 cat >conftest.$ac_ext <<_ACEOF
25784 cat confdefs.h >>conftest.$ac_ext
25785 cat >>conftest.$ac_ext <<_ACEOF
25786 /* end confdefs.h. */
25787 #include <sys/types.h>
25788 #include <sys/stat.h>
25790 #if defined(S_ISBLK) && defined(S_IFDIR)
25791 # if S_ISBLK (S_IFDIR)
25796 #if defined(S_ISBLK) && defined(S_IFCHR)
25797 # if S_ISBLK (S_IFCHR)
25802 #if defined(S_ISLNK) && defined(S_IFREG)
25803 # if S_ISLNK (S_IFREG)
25808 #if defined(S_ISSOCK) && defined(S_IFREG)
25809 # if S_ISSOCK (S_IFREG)
25815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25816 $EGREP "You lose" >/dev/null 2>&1; then
25817 ac_cv_header_stat_broken=yes
25819 ac_cv_header_stat_broken=no
25824 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25825 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25826 if test $ac_cv_header_stat_broken = yes; then
25828 cat >>confdefs.h <<\_ACEOF
25829 #define STAT_MACROS_BROKEN 1
25834 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25835 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25836 if test "${ac_cv_header_stdc+set}" = set; then
25837 echo $ECHO_N "(cached) $ECHO_C" >&6
25839 cat >conftest.$ac_ext <<_ACEOF
25842 cat confdefs.h >>conftest.$ac_ext
25843 cat >>conftest.$ac_ext <<_ACEOF
25844 /* end confdefs.h. */
25845 #include <stdlib.h>
25846 #include <stdarg.h>
25847 #include <string.h>
25858 rm -f conftest.$ac_objext
25859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25860 (eval $ac_compile) 2>conftest.er1
25862 grep -v '^ *+' conftest.er1 >conftest.err
25864 cat conftest.err >&5
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); } &&
25867 { ac_try='test -z "$ac_c_werror_flag"
25868 || test ! -s conftest.err'
25869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25870 (eval $ac_try) 2>&5
25872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873 (exit $ac_status); }; } &&
25874 { ac_try='test -s conftest.$ac_objext'
25875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25876 (eval $ac_try) 2>&5
25878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879 (exit $ac_status); }; }; then
25880 ac_cv_header_stdc=yes
25882 echo "$as_me: failed program was:" >&5
25883 sed 's/^/| /' conftest.$ac_ext >&5
25885 ac_cv_header_stdc=no
25887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25889 if test $ac_cv_header_stdc = yes; then
25890 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25891 cat >conftest.$ac_ext <<_ACEOF
25894 cat confdefs.h >>conftest.$ac_ext
25895 cat >>conftest.$ac_ext <<_ACEOF
25896 /* end confdefs.h. */
25897 #include <string.h>
25900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25901 $EGREP "memchr" >/dev/null 2>&1; then
25904 ac_cv_header_stdc=no
25910 if test $ac_cv_header_stdc = yes; then
25911 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25912 cat >conftest.$ac_ext <<_ACEOF
25915 cat confdefs.h >>conftest.$ac_ext
25916 cat >>conftest.$ac_ext <<_ACEOF
25917 /* end confdefs.h. */
25918 #include <stdlib.h>
25921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25922 $EGREP "free" >/dev/null 2>&1; then
25925 ac_cv_header_stdc=no
25931 if test $ac_cv_header_stdc = yes; then
25932 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25933 if test "$cross_compiling" = yes; then
25936 cat >conftest.$ac_ext <<_ACEOF
25939 cat confdefs.h >>conftest.$ac_ext
25940 cat >>conftest.$ac_ext <<_ACEOF
25941 /* end confdefs.h. */
25943 #if ((' ' & 0x0FF) == 0x020)
25944 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25945 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25947 # define ISLOWER(c) \
25948 (('a' <= (c) && (c) <= 'i') \
25949 || ('j' <= (c) && (c) <= 'r') \
25950 || ('s' <= (c) && (c) <= 'z'))
25951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25959 for (i = 0; i < 256; i++)
25960 if (XOR (islower (i), ISLOWER (i))
25961 || toupper (i) != TOUPPER (i))
25966 rm -f conftest$ac_exeext
25967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25968 (eval $ac_link) 2>&5
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25973 (eval $ac_try) 2>&5
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); }; }; then
25979 echo "$as_me: program exited with status $ac_status" >&5
25980 echo "$as_me: failed program was:" >&5
25981 sed 's/^/| /' conftest.$ac_ext >&5
25983 ( exit $ac_status )
25984 ac_cv_header_stdc=no
25986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25990 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25991 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25992 if test $ac_cv_header_stdc = yes; then
25994 cat >>confdefs.h <<\_ACEOF
25995 #define STDC_HEADERS 1
26000 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26001 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26002 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26003 echo $ECHO_N "(cached) $ECHO_C" >&6
26005 cat >conftest.$ac_ext <<_ACEOF
26008 cat confdefs.h >>conftest.$ac_ext
26009 cat >>conftest.$ac_ext <<_ACEOF
26010 /* end confdefs.h. */
26011 #include <sys/types.h>
26012 #include <sys/wait.h>
26013 #ifndef WEXITSTATUS
26014 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26017 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26025 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26030 rm -f conftest.$ac_objext
26031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26032 (eval $ac_compile) 2>conftest.er1
26034 grep -v '^ *+' conftest.er1 >conftest.err
26036 cat conftest.err >&5
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); } &&
26039 { ac_try='test -z "$ac_c_werror_flag"
26040 || test ! -s conftest.err'
26041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26042 (eval $ac_try) 2>&5
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); }; } &&
26046 { ac_try='test -s conftest.$ac_objext'
26047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26048 (eval $ac_try) 2>&5
26050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); }; }; then
26052 ac_cv_header_sys_wait_h=yes
26054 echo "$as_me: failed program was:" >&5
26055 sed 's/^/| /' conftest.$ac_ext >&5
26057 ac_cv_header_sys_wait_h=no
26059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26061 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26062 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26063 if test $ac_cv_header_sys_wait_h = yes; then
26065 cat >>confdefs.h <<\_ACEOF
26066 #define HAVE_SYS_WAIT_H 1
26071 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26072 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26073 if test "${ac_cv_header_time+set}" = set; then
26074 echo $ECHO_N "(cached) $ECHO_C" >&6
26076 cat >conftest.$ac_ext <<_ACEOF
26079 cat confdefs.h >>conftest.$ac_ext
26080 cat >>conftest.$ac_ext <<_ACEOF
26081 /* end confdefs.h. */
26082 #include <sys/types.h>
26083 #include <sys/time.h>
26089 if ((struct tm *) 0)
26095 rm -f conftest.$ac_objext
26096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26097 (eval $ac_compile) 2>conftest.er1
26099 grep -v '^ *+' conftest.er1 >conftest.err
26101 cat conftest.err >&5
26102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103 (exit $ac_status); } &&
26104 { ac_try='test -z "$ac_c_werror_flag"
26105 || test ! -s conftest.err'
26106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26107 (eval $ac_try) 2>&5
26109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110 (exit $ac_status); }; } &&
26111 { ac_try='test -s conftest.$ac_objext'
26112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26113 (eval $ac_try) 2>&5
26115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116 (exit $ac_status); }; }; then
26117 ac_cv_header_time=yes
26119 echo "$as_me: failed program was:" >&5
26120 sed 's/^/| /' conftest.$ac_ext >&5
26122 ac_cv_header_time=no
26124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26126 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26127 echo "${ECHO_T}$ac_cv_header_time" >&6
26128 if test $ac_cv_header_time = yes; then
26130 cat >>confdefs.h <<\_ACEOF
26131 #define TIME_WITH_SYS_TIME 1
26143 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26147 echo "$as_me:$LINENO: checking for $ac_header" >&5
26148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26150 echo $ECHO_N "(cached) $ECHO_C" >&6
26152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26155 # Is the header compilable?
26156 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26158 cat >conftest.$ac_ext <<_ACEOF
26161 cat confdefs.h >>conftest.$ac_ext
26162 cat >>conftest.$ac_ext <<_ACEOF
26163 /* end confdefs.h. */
26164 $ac_includes_default
26165 #include <$ac_header>
26167 rm -f conftest.$ac_objext
26168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26169 (eval $ac_compile) 2>conftest.er1
26171 grep -v '^ *+' conftest.er1 >conftest.err
26173 cat conftest.err >&5
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); } &&
26176 { ac_try='test -z "$ac_c_werror_flag"
26177 || test ! -s conftest.err'
26178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26179 (eval $ac_try) 2>&5
26181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); }; } &&
26183 { ac_try='test -s conftest.$ac_objext'
26184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26185 (eval $ac_try) 2>&5
26187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); }; }; then
26189 ac_header_compiler=yes
26191 echo "$as_me: failed program was:" >&5
26192 sed 's/^/| /' conftest.$ac_ext >&5
26194 ac_header_compiler=no
26196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26197 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26198 echo "${ECHO_T}$ac_header_compiler" >&6
26200 # Is the header present?
26201 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26203 cat >conftest.$ac_ext <<_ACEOF
26206 cat confdefs.h >>conftest.$ac_ext
26207 cat >>conftest.$ac_ext <<_ACEOF
26208 /* end confdefs.h. */
26209 #include <$ac_header>
26211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26214 grep -v '^ *+' conftest.er1 >conftest.err
26216 cat conftest.err >&5
26217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26218 (exit $ac_status); } >/dev/null; then
26219 if test -s conftest.err; then
26220 ac_cpp_err=$ac_c_preproc_warn_flag
26221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26228 if test -z "$ac_cpp_err"; then
26229 ac_header_preproc=yes
26231 echo "$as_me: failed program was:" >&5
26232 sed 's/^/| /' conftest.$ac_ext >&5
26234 ac_header_preproc=no
26236 rm -f conftest.err conftest.$ac_ext
26237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26238 echo "${ECHO_T}$ac_header_preproc" >&6
26240 # So? What about this header?
26241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26247 ac_header_preproc=yes
26250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26257 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26264 ## ----------------------------------- ##
26265 ## Report this to llvmbugs@cs.uiuc.edu ##
26266 ## ----------------------------------- ##
26269 sed "s/^/$as_me: WARNING: /" >&2
26272 echo "$as_me:$LINENO: checking for $ac_header" >&5
26273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26275 echo $ECHO_N "(cached) $ECHO_C" >&6
26277 eval "$as_ac_Header=\$ac_header_preproc"
26279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26284 cat >>confdefs.h <<_ACEOF
26285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26298 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26302 echo "$as_me:$LINENO: checking for $ac_header" >&5
26303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26305 echo $ECHO_N "(cached) $ECHO_C" >&6
26307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26310 # Is the header compilable?
26311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26313 cat >conftest.$ac_ext <<_ACEOF
26316 cat confdefs.h >>conftest.$ac_ext
26317 cat >>conftest.$ac_ext <<_ACEOF
26318 /* end confdefs.h. */
26319 $ac_includes_default
26320 #include <$ac_header>
26322 rm -f conftest.$ac_objext
26323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26324 (eval $ac_compile) 2>conftest.er1
26326 grep -v '^ *+' conftest.er1 >conftest.err
26328 cat conftest.err >&5
26329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 (exit $ac_status); } &&
26331 { ac_try='test -z "$ac_c_werror_flag"
26332 || test ! -s conftest.err'
26333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26334 (eval $ac_try) 2>&5
26336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337 (exit $ac_status); }; } &&
26338 { ac_try='test -s conftest.$ac_objext'
26339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26340 (eval $ac_try) 2>&5
26342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343 (exit $ac_status); }; }; then
26344 ac_header_compiler=yes
26346 echo "$as_me: failed program was:" >&5
26347 sed 's/^/| /' conftest.$ac_ext >&5
26349 ac_header_compiler=no
26351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26353 echo "${ECHO_T}$ac_header_compiler" >&6
26355 # Is the header present?
26356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26358 cat >conftest.$ac_ext <<_ACEOF
26361 cat confdefs.h >>conftest.$ac_ext
26362 cat >>conftest.$ac_ext <<_ACEOF
26363 /* end confdefs.h. */
26364 #include <$ac_header>
26366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26369 grep -v '^ *+' conftest.er1 >conftest.err
26371 cat conftest.err >&5
26372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373 (exit $ac_status); } >/dev/null; then
26374 if test -s conftest.err; then
26375 ac_cpp_err=$ac_c_preproc_warn_flag
26376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26383 if test -z "$ac_cpp_err"; then
26384 ac_header_preproc=yes
26386 echo "$as_me: failed program was:" >&5
26387 sed 's/^/| /' conftest.$ac_ext >&5
26389 ac_header_preproc=no
26391 rm -f conftest.err conftest.$ac_ext
26392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26393 echo "${ECHO_T}$ac_header_preproc" >&6
26395 # So? What about this header?
26396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26402 ac_header_preproc=yes
26405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26419 ## ----------------------------------- ##
26420 ## Report this to llvmbugs@cs.uiuc.edu ##
26421 ## ----------------------------------- ##
26424 sed "s/^/$as_me: WARNING: /" >&2
26427 echo "$as_me:$LINENO: checking for $ac_header" >&5
26428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26430 echo $ECHO_N "(cached) $ECHO_C" >&6
26432 eval "$as_ac_Header=\$ac_header_preproc"
26434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26439 cat >>confdefs.h <<_ACEOF
26440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26452 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26456 echo "$as_me:$LINENO: checking for $ac_header" >&5
26457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26459 echo $ECHO_N "(cached) $ECHO_C" >&6
26461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26464 # Is the header compilable?
26465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26467 cat >conftest.$ac_ext <<_ACEOF
26470 cat confdefs.h >>conftest.$ac_ext
26471 cat >>conftest.$ac_ext <<_ACEOF
26472 /* end confdefs.h. */
26473 $ac_includes_default
26474 #include <$ac_header>
26476 rm -f conftest.$ac_objext
26477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26478 (eval $ac_compile) 2>conftest.er1
26480 grep -v '^ *+' conftest.er1 >conftest.err
26482 cat conftest.err >&5
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); } &&
26485 { ac_try='test -z "$ac_c_werror_flag"
26486 || test ! -s conftest.err'
26487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26488 (eval $ac_try) 2>&5
26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); }; } &&
26492 { ac_try='test -s conftest.$ac_objext'
26493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26494 (eval $ac_try) 2>&5
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); }; }; then
26498 ac_header_compiler=yes
26500 echo "$as_me: failed program was:" >&5
26501 sed 's/^/| /' conftest.$ac_ext >&5
26503 ac_header_compiler=no
26505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26507 echo "${ECHO_T}$ac_header_compiler" >&6
26509 # Is the header present?
26510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26512 cat >conftest.$ac_ext <<_ACEOF
26515 cat confdefs.h >>conftest.$ac_ext
26516 cat >>conftest.$ac_ext <<_ACEOF
26517 /* end confdefs.h. */
26518 #include <$ac_header>
26520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26523 grep -v '^ *+' conftest.er1 >conftest.err
26525 cat conftest.err >&5
26526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527 (exit $ac_status); } >/dev/null; then
26528 if test -s conftest.err; then
26529 ac_cpp_err=$ac_c_preproc_warn_flag
26530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26537 if test -z "$ac_cpp_err"; then
26538 ac_header_preproc=yes
26540 echo "$as_me: failed program was:" >&5
26541 sed 's/^/| /' conftest.$ac_ext >&5
26543 ac_header_preproc=no
26545 rm -f conftest.err conftest.$ac_ext
26546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26547 echo "${ECHO_T}$ac_header_preproc" >&6
26549 # So? What about this header?
26550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26556 ac_header_preproc=yes
26559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26573 ## ----------------------------------- ##
26574 ## Report this to llvmbugs@cs.uiuc.edu ##
26575 ## ----------------------------------- ##
26578 sed "s/^/$as_me: WARNING: /" >&2
26581 echo "$as_me:$LINENO: checking for $ac_header" >&5
26582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26584 echo $ECHO_N "(cached) $ECHO_C" >&6
26586 eval "$as_ac_Header=\$ac_header_preproc"
26588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26593 cat >>confdefs.h <<_ACEOF
26594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26603 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26607 echo "$as_me:$LINENO: checking for $ac_header" >&5
26608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26610 echo $ECHO_N "(cached) $ECHO_C" >&6
26612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26615 # Is the header compilable?
26616 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26618 cat >conftest.$ac_ext <<_ACEOF
26621 cat confdefs.h >>conftest.$ac_ext
26622 cat >>conftest.$ac_ext <<_ACEOF
26623 /* end confdefs.h. */
26624 $ac_includes_default
26625 #include <$ac_header>
26627 rm -f conftest.$ac_objext
26628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26629 (eval $ac_compile) 2>conftest.er1
26631 grep -v '^ *+' conftest.er1 >conftest.err
26633 cat conftest.err >&5
26634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635 (exit $ac_status); } &&
26636 { ac_try='test -z "$ac_c_werror_flag"
26637 || test ! -s conftest.err'
26638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26639 (eval $ac_try) 2>&5
26641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642 (exit $ac_status); }; } &&
26643 { ac_try='test -s conftest.$ac_objext'
26644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26645 (eval $ac_try) 2>&5
26647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26648 (exit $ac_status); }; }; then
26649 ac_header_compiler=yes
26651 echo "$as_me: failed program was:" >&5
26652 sed 's/^/| /' conftest.$ac_ext >&5
26654 ac_header_compiler=no
26656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26658 echo "${ECHO_T}$ac_header_compiler" >&6
26660 # Is the header present?
26661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26663 cat >conftest.$ac_ext <<_ACEOF
26666 cat confdefs.h >>conftest.$ac_ext
26667 cat >>conftest.$ac_ext <<_ACEOF
26668 /* end confdefs.h. */
26669 #include <$ac_header>
26671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26674 grep -v '^ *+' conftest.er1 >conftest.err
26676 cat conftest.err >&5
26677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); } >/dev/null; then
26679 if test -s conftest.err; then
26680 ac_cpp_err=$ac_c_preproc_warn_flag
26681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26688 if test -z "$ac_cpp_err"; then
26689 ac_header_preproc=yes
26691 echo "$as_me: failed program was:" >&5
26692 sed 's/^/| /' conftest.$ac_ext >&5
26694 ac_header_preproc=no
26696 rm -f conftest.err conftest.$ac_ext
26697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26698 echo "${ECHO_T}$ac_header_preproc" >&6
26700 # So? What about this header?
26701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26707 ac_header_preproc=yes
26710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26724 ## ----------------------------------- ##
26725 ## Report this to llvmbugs@cs.uiuc.edu ##
26726 ## ----------------------------------- ##
26729 sed "s/^/$as_me: WARNING: /" >&2
26732 echo "$as_me:$LINENO: checking for $ac_header" >&5
26733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26735 echo $ECHO_N "(cached) $ECHO_C" >&6
26737 eval "$as_ac_Header=\$ac_header_preproc"
26739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26744 cat >>confdefs.h <<_ACEOF
26745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26754 echo "$as_me:$LINENO: checking for pid_t" >&5
26755 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26756 if test "${ac_cv_type_pid_t+set}" = set; then
26757 echo $ECHO_N "(cached) $ECHO_C" >&6
26759 cat >conftest.$ac_ext <<_ACEOF
26762 cat confdefs.h >>conftest.$ac_ext
26763 cat >>conftest.$ac_ext <<_ACEOF
26764 /* end confdefs.h. */
26765 $ac_includes_default
26771 if (sizeof (pid_t))
26777 rm -f conftest.$ac_objext
26778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26779 (eval $ac_compile) 2>conftest.er1
26781 grep -v '^ *+' conftest.er1 >conftest.err
26783 cat conftest.err >&5
26784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785 (exit $ac_status); } &&
26786 { ac_try='test -z "$ac_c_werror_flag"
26787 || test ! -s conftest.err'
26788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26789 (eval $ac_try) 2>&5
26791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792 (exit $ac_status); }; } &&
26793 { ac_try='test -s conftest.$ac_objext'
26794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26795 (eval $ac_try) 2>&5
26797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798 (exit $ac_status); }; }; then
26799 ac_cv_type_pid_t=yes
26801 echo "$as_me: failed program was:" >&5
26802 sed 's/^/| /' conftest.$ac_ext >&5
26804 ac_cv_type_pid_t=no
26806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26808 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26809 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26810 if test $ac_cv_type_pid_t = yes; then
26814 cat >>confdefs.h <<_ACEOF
26820 echo "$as_me:$LINENO: checking for size_t" >&5
26821 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26822 if test "${ac_cv_type_size_t+set}" = set; then
26823 echo $ECHO_N "(cached) $ECHO_C" >&6
26825 cat >conftest.$ac_ext <<_ACEOF
26828 cat confdefs.h >>conftest.$ac_ext
26829 cat >>conftest.$ac_ext <<_ACEOF
26830 /* end confdefs.h. */
26831 $ac_includes_default
26837 if (sizeof (size_t))
26843 rm -f conftest.$ac_objext
26844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26845 (eval $ac_compile) 2>conftest.er1
26847 grep -v '^ *+' conftest.er1 >conftest.err
26849 cat conftest.err >&5
26850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851 (exit $ac_status); } &&
26852 { ac_try='test -z "$ac_c_werror_flag"
26853 || test ! -s conftest.err'
26854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26855 (eval $ac_try) 2>&5
26857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858 (exit $ac_status); }; } &&
26859 { ac_try='test -s conftest.$ac_objext'
26860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26861 (eval $ac_try) 2>&5
26863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864 (exit $ac_status); }; }; then
26865 ac_cv_type_size_t=yes
26867 echo "$as_me: failed program was:" >&5
26868 sed 's/^/| /' conftest.$ac_ext >&5
26870 ac_cv_type_size_t=no
26872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26874 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26875 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26876 if test $ac_cv_type_size_t = yes; then
26880 cat >>confdefs.h <<_ACEOF
26881 #define size_t unsigned
26886 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26887 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26888 if test "${ac_cv_type_signal+set}" = set; then
26889 echo $ECHO_N "(cached) $ECHO_C" >&6
26891 cat >conftest.$ac_ext <<_ACEOF
26894 cat confdefs.h >>conftest.$ac_ext
26895 cat >>conftest.$ac_ext <<_ACEOF
26896 /* end confdefs.h. */
26897 #include <sys/types.h>
26898 #include <signal.h>
26903 extern "C" void (*signal (int, void (*)(int)))(int);
26905 void (*signal ()) ();
26916 rm -f conftest.$ac_objext
26917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26918 (eval $ac_compile) 2>conftest.er1
26920 grep -v '^ *+' conftest.er1 >conftest.err
26922 cat conftest.err >&5
26923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); } &&
26925 { ac_try='test -z "$ac_c_werror_flag"
26926 || test ! -s conftest.err'
26927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26928 (eval $ac_try) 2>&5
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); }; } &&
26932 { ac_try='test -s conftest.$ac_objext'
26933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26934 (eval $ac_try) 2>&5
26936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937 (exit $ac_status); }; }; then
26938 ac_cv_type_signal=void
26940 echo "$as_me: failed program was:" >&5
26941 sed 's/^/| /' conftest.$ac_ext >&5
26943 ac_cv_type_signal=int
26945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26947 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26948 echo "${ECHO_T}$ac_cv_type_signal" >&6
26950 cat >>confdefs.h <<_ACEOF
26951 #define RETSIGTYPE $ac_cv_type_signal
26955 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26956 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26957 if test "${ac_cv_struct_tm+set}" = set; then
26958 echo $ECHO_N "(cached) $ECHO_C" >&6
26960 cat >conftest.$ac_ext <<_ACEOF
26963 cat confdefs.h >>conftest.$ac_ext
26964 cat >>conftest.$ac_ext <<_ACEOF
26965 /* end confdefs.h. */
26966 #include <sys/types.h>
26972 struct tm *tp; tp->tm_sec;
26977 rm -f conftest.$ac_objext
26978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26979 (eval $ac_compile) 2>conftest.er1
26981 grep -v '^ *+' conftest.er1 >conftest.err
26983 cat conftest.err >&5
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); } &&
26986 { ac_try='test -z "$ac_c_werror_flag"
26987 || test ! -s conftest.err'
26988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26989 (eval $ac_try) 2>&5
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); }; } &&
26993 { ac_try='test -s conftest.$ac_objext'
26994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26995 (eval $ac_try) 2>&5
26997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998 (exit $ac_status); }; }; then
26999 ac_cv_struct_tm=time.h
27001 echo "$as_me: failed program was:" >&5
27002 sed 's/^/| /' conftest.$ac_ext >&5
27004 ac_cv_struct_tm=sys/time.h
27006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27008 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27009 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27010 if test $ac_cv_struct_tm = sys/time.h; then
27012 cat >>confdefs.h <<\_ACEOF
27013 #define TM_IN_SYS_TIME 1
27018 echo "$as_me:$LINENO: checking for int64_t" >&5
27019 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27020 if test "${ac_cv_type_int64_t+set}" = set; then
27021 echo $ECHO_N "(cached) $ECHO_C" >&6
27023 cat >conftest.$ac_ext <<_ACEOF
27026 cat confdefs.h >>conftest.$ac_ext
27027 cat >>conftest.$ac_ext <<_ACEOF
27028 /* end confdefs.h. */
27029 $ac_includes_default
27035 if (sizeof (int64_t))
27041 rm -f conftest.$ac_objext
27042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27043 (eval $ac_compile) 2>conftest.er1
27045 grep -v '^ *+' conftest.er1 >conftest.err
27047 cat conftest.err >&5
27048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049 (exit $ac_status); } &&
27050 { ac_try='test -z "$ac_c_werror_flag"
27051 || test ! -s conftest.err'
27052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27053 (eval $ac_try) 2>&5
27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); }; } &&
27057 { ac_try='test -s conftest.$ac_objext'
27058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27059 (eval $ac_try) 2>&5
27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); }; }; then
27063 ac_cv_type_int64_t=yes
27065 echo "$as_me: failed program was:" >&5
27066 sed 's/^/| /' conftest.$ac_ext >&5
27068 ac_cv_type_int64_t=no
27070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27072 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27073 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27074 if test $ac_cv_type_int64_t = yes; then
27076 cat >>confdefs.h <<_ACEOF
27077 #define HAVE_INT64_T 1
27082 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27083 echo "$as_me: error: Type int64_t required but not found" >&2;}
27084 { (exit 1); exit 1; }; }
27087 echo "$as_me:$LINENO: checking for uint64_t" >&5
27088 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27089 if test "${ac_cv_type_uint64_t+set}" = set; then
27090 echo $ECHO_N "(cached) $ECHO_C" >&6
27092 cat >conftest.$ac_ext <<_ACEOF
27095 cat confdefs.h >>conftest.$ac_ext
27096 cat >>conftest.$ac_ext <<_ACEOF
27097 /* end confdefs.h. */
27098 $ac_includes_default
27102 if ((uint64_t *) 0)
27104 if (sizeof (uint64_t))
27110 rm -f conftest.$ac_objext
27111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27112 (eval $ac_compile) 2>conftest.er1
27114 grep -v '^ *+' conftest.er1 >conftest.err
27116 cat conftest.err >&5
27117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118 (exit $ac_status); } &&
27119 { ac_try='test -z "$ac_c_werror_flag"
27120 || test ! -s conftest.err'
27121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27122 (eval $ac_try) 2>&5
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); }; } &&
27126 { ac_try='test -s conftest.$ac_objext'
27127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27128 (eval $ac_try) 2>&5
27130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131 (exit $ac_status); }; }; then
27132 ac_cv_type_uint64_t=yes
27134 echo "$as_me: failed program was:" >&5
27135 sed 's/^/| /' conftest.$ac_ext >&5
27137 ac_cv_type_uint64_t=no
27139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27141 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27142 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27143 if test $ac_cv_type_uint64_t = yes; then
27145 cat >>confdefs.h <<_ACEOF
27146 #define HAVE_UINT64_T 1
27151 echo "$as_me:$LINENO: checking for u_int64_t" >&5
27152 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27153 if test "${ac_cv_type_u_int64_t+set}" = set; then
27154 echo $ECHO_N "(cached) $ECHO_C" >&6
27156 cat >conftest.$ac_ext <<_ACEOF
27159 cat confdefs.h >>conftest.$ac_ext
27160 cat >>conftest.$ac_ext <<_ACEOF
27161 /* end confdefs.h. */
27162 $ac_includes_default
27166 if ((u_int64_t *) 0)
27168 if (sizeof (u_int64_t))
27174 rm -f conftest.$ac_objext
27175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27176 (eval $ac_compile) 2>conftest.er1
27178 grep -v '^ *+' conftest.er1 >conftest.err
27180 cat conftest.err >&5
27181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182 (exit $ac_status); } &&
27183 { ac_try='test -z "$ac_c_werror_flag"
27184 || test ! -s conftest.err'
27185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27186 (eval $ac_try) 2>&5
27188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189 (exit $ac_status); }; } &&
27190 { ac_try='test -s conftest.$ac_objext'
27191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192 (eval $ac_try) 2>&5
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); }; }; then
27196 ac_cv_type_u_int64_t=yes
27198 echo "$as_me: failed program was:" >&5
27199 sed 's/^/| /' conftest.$ac_ext >&5
27201 ac_cv_type_u_int64_t=no
27203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27205 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27206 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27207 if test $ac_cv_type_u_int64_t = yes; then
27209 cat >>confdefs.h <<_ACEOF
27210 #define HAVE_U_INT64_T 1
27215 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27216 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27217 { (exit 1); exit 1; }; }
27230 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27233 echo "$as_me:$LINENO: checking for $ac_func" >&5
27234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27235 if eval "test \"\${$as_ac_var+set}\" = set"; then
27236 echo $ECHO_N "(cached) $ECHO_C" >&6
27238 cat >conftest.$ac_ext <<_ACEOF
27241 cat confdefs.h >>conftest.$ac_ext
27242 cat >>conftest.$ac_ext <<_ACEOF
27243 /* end confdefs.h. */
27244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27246 #define $ac_func innocuous_$ac_func
27248 /* System header to define __stub macros and hopefully few prototypes,
27249 which can conflict with char $ac_func (); below.
27250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27251 <limits.h> exists even on freestanding compilers. */
27254 # include <limits.h>
27256 # include <assert.h>
27261 /* Override any gcc2 internal prototype to avoid an error. */
27266 /* We use char because int might match the return type of a gcc2
27267 builtin and then its argument prototype would still apply. */
27269 /* The GNU C library defines this for functions which it implements
27270 to always fail with ENOSYS. Some functions are actually named
27271 something starting with __ and the normal name is an alias. */
27272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27275 char (*f) () = $ac_func;
27284 return f != $ac_func;
27289 rm -f conftest.$ac_objext conftest$ac_exeext
27290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27291 (eval $ac_link) 2>conftest.er1
27293 grep -v '^ *+' conftest.er1 >conftest.err
27295 cat conftest.err >&5
27296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297 (exit $ac_status); } &&
27298 { ac_try='test -z "$ac_c_werror_flag"
27299 || test ! -s conftest.err'
27300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27301 (eval $ac_try) 2>&5
27303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304 (exit $ac_status); }; } &&
27305 { ac_try='test -s conftest$ac_exeext'
27306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27307 (eval $ac_try) 2>&5
27309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); }; }; then
27311 eval "$as_ac_var=yes"
27313 echo "$as_me: failed program was:" >&5
27314 sed 's/^/| /' conftest.$ac_ext >&5
27316 eval "$as_ac_var=no"
27318 rm -f conftest.err conftest.$ac_objext \
27319 conftest$ac_exeext conftest.$ac_ext
27321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27323 if test `eval echo '${'$as_ac_var'}'` = yes; then
27324 cat >>confdefs.h <<_ACEOF
27325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27334 for ac_func in mkdtemp mkstemp mktemp
27336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27337 echo "$as_me:$LINENO: checking for $ac_func" >&5
27338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27339 if eval "test \"\${$as_ac_var+set}\" = set"; then
27340 echo $ECHO_N "(cached) $ECHO_C" >&6
27342 cat >conftest.$ac_ext <<_ACEOF
27345 cat confdefs.h >>conftest.$ac_ext
27346 cat >>conftest.$ac_ext <<_ACEOF
27347 /* end confdefs.h. */
27348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27350 #define $ac_func innocuous_$ac_func
27352 /* System header to define __stub macros and hopefully few prototypes,
27353 which can conflict with char $ac_func (); below.
27354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27355 <limits.h> exists even on freestanding compilers. */
27358 # include <limits.h>
27360 # include <assert.h>
27365 /* Override any gcc2 internal prototype to avoid an error. */
27370 /* We use char because int might match the return type of a gcc2
27371 builtin and then its argument prototype would still apply. */
27373 /* The GNU C library defines this for functions which it implements
27374 to always fail with ENOSYS. Some functions are actually named
27375 something starting with __ and the normal name is an alias. */
27376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27379 char (*f) () = $ac_func;
27388 return f != $ac_func;
27393 rm -f conftest.$ac_objext conftest$ac_exeext
27394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27395 (eval $ac_link) 2>conftest.er1
27397 grep -v '^ *+' conftest.er1 >conftest.err
27399 cat conftest.err >&5
27400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401 (exit $ac_status); } &&
27402 { ac_try='test -z "$ac_c_werror_flag"
27403 || test ! -s conftest.err'
27404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405 (eval $ac_try) 2>&5
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; } &&
27409 { ac_try='test -s conftest$ac_exeext'
27410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27411 (eval $ac_try) 2>&5
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); }; }; then
27415 eval "$as_ac_var=yes"
27417 echo "$as_me: failed program was:" >&5
27418 sed 's/^/| /' conftest.$ac_ext >&5
27420 eval "$as_ac_var=no"
27422 rm -f conftest.err conftest.$ac_objext \
27423 conftest$ac_exeext conftest.$ac_ext
27425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27427 if test `eval echo '${'$as_ac_var'}'` = yes; then
27428 cat >>confdefs.h <<_ACEOF
27429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27441 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27444 echo "$as_me:$LINENO: checking for $ac_func" >&5
27445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27446 if eval "test \"\${$as_ac_var+set}\" = set"; then
27447 echo $ECHO_N "(cached) $ECHO_C" >&6
27449 cat >conftest.$ac_ext <<_ACEOF
27452 cat confdefs.h >>conftest.$ac_ext
27453 cat >>conftest.$ac_ext <<_ACEOF
27454 /* end confdefs.h. */
27455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27457 #define $ac_func innocuous_$ac_func
27459 /* System header to define __stub macros and hopefully few prototypes,
27460 which can conflict with char $ac_func (); below.
27461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27462 <limits.h> exists even on freestanding compilers. */
27465 # include <limits.h>
27467 # include <assert.h>
27472 /* Override any gcc2 internal prototype to avoid an error. */
27477 /* We use char because int might match the return type of a gcc2
27478 builtin and then its argument prototype would still apply. */
27480 /* The GNU C library defines this for functions which it implements
27481 to always fail with ENOSYS. Some functions are actually named
27482 something starting with __ and the normal name is an alias. */
27483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27486 char (*f) () = $ac_func;
27495 return f != $ac_func;
27500 rm -f conftest.$ac_objext conftest$ac_exeext
27501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27502 (eval $ac_link) 2>conftest.er1
27504 grep -v '^ *+' conftest.er1 >conftest.err
27506 cat conftest.err >&5
27507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27508 (exit $ac_status); } &&
27509 { ac_try='test -z "$ac_c_werror_flag"
27510 || test ! -s conftest.err'
27511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27512 (eval $ac_try) 2>&5
27514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515 (exit $ac_status); }; } &&
27516 { ac_try='test -s conftest$ac_exeext'
27517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27518 (eval $ac_try) 2>&5
27520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521 (exit $ac_status); }; }; then
27522 eval "$as_ac_var=yes"
27524 echo "$as_me: failed program was:" >&5
27525 sed 's/^/| /' conftest.$ac_ext >&5
27527 eval "$as_ac_var=no"
27529 rm -f conftest.err conftest.$ac_objext \
27530 conftest$ac_exeext conftest.$ac_ext
27532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27534 if test `eval echo '${'$as_ac_var'}'` = yes; then
27535 cat >>confdefs.h <<_ACEOF
27536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27545 for ac_func in strtoll strtoq sysconf
27547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27548 echo "$as_me:$LINENO: checking for $ac_func" >&5
27549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27550 if eval "test \"\${$as_ac_var+set}\" = set"; then
27551 echo $ECHO_N "(cached) $ECHO_C" >&6
27553 cat >conftest.$ac_ext <<_ACEOF
27556 cat confdefs.h >>conftest.$ac_ext
27557 cat >>conftest.$ac_ext <<_ACEOF
27558 /* end confdefs.h. */
27559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27561 #define $ac_func innocuous_$ac_func
27563 /* System header to define __stub macros and hopefully few prototypes,
27564 which can conflict with char $ac_func (); below.
27565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27566 <limits.h> exists even on freestanding compilers. */
27569 # include <limits.h>
27571 # include <assert.h>
27576 /* Override any gcc2 internal prototype to avoid an error. */
27581 /* We use char because int might match the return type of a gcc2
27582 builtin and then its argument prototype would still apply. */
27584 /* The GNU C library defines this for functions which it implements
27585 to always fail with ENOSYS. Some functions are actually named
27586 something starting with __ and the normal name is an alias. */
27587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27590 char (*f) () = $ac_func;
27599 return f != $ac_func;
27604 rm -f conftest.$ac_objext conftest$ac_exeext
27605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27606 (eval $ac_link) 2>conftest.er1
27608 grep -v '^ *+' conftest.er1 >conftest.err
27610 cat conftest.err >&5
27611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27612 (exit $ac_status); } &&
27613 { ac_try='test -z "$ac_c_werror_flag"
27614 || test ! -s conftest.err'
27615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27616 (eval $ac_try) 2>&5
27618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619 (exit $ac_status); }; } &&
27620 { ac_try='test -s conftest$ac_exeext'
27621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27622 (eval $ac_try) 2>&5
27624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625 (exit $ac_status); }; }; then
27626 eval "$as_ac_var=yes"
27628 echo "$as_me: failed program was:" >&5
27629 sed 's/^/| /' conftest.$ac_ext >&5
27631 eval "$as_ac_var=no"
27633 rm -f conftest.err conftest.$ac_objext \
27634 conftest$ac_exeext conftest.$ac_ext
27636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27638 if test `eval echo '${'$as_ac_var'}'` = yes; then
27639 cat >>confdefs.h <<_ACEOF
27640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27646 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27647 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27648 if test "${llvm_cv_c_printf_a+set}" = set; then
27649 echo $ECHO_N "(cached) $ECHO_C" >&6
27652 ac_cpp='$CPP $CPPFLAGS'
27653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27657 if test "$cross_compiling" = yes; then
27658 llvmac_cv_c_printf_a=no
27660 cat >conftest.$ac_ext <<_ACEOF
27664 cat confdefs.h >>conftest.$ac_ext
27665 cat >>conftest.$ac_ext <<_ACEOF
27666 /* end confdefs.h. */
27669 #include <stdlib.h>
27675 volatile double A, B;
27679 sprintf(Buffer, "%a", A);
27683 if (A != 0x1.999999999999ap-4)
27690 rm -f conftest$ac_exeext
27691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27692 (eval $ac_link) 2>&5
27694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27697 (eval $ac_try) 2>&5
27699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); }; }; then
27701 llvm_cv_c_printf_a=yes
27703 echo "$as_me: program exited with status $ac_status" >&5
27704 echo "$as_me: failed program was:" >&5
27705 sed 's/^/| /' conftest.$ac_ext >&5
27707 ( exit $ac_status )
27708 llvmac_cv_c_printf_a=no
27710 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27713 ac_cpp='$CPP $CPPFLAGS'
27714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27719 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27720 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27721 if test "$llvm_cv_c_printf_a" = "yes"; then
27723 cat >>confdefs.h <<\_ACEOF
27724 #define HAVE_PRINTF_A 1
27729 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27730 # for constant arguments. Useless!
27731 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27732 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27733 if test "${ac_cv_working_alloca_h+set}" = set; then
27734 echo $ECHO_N "(cached) $ECHO_C" >&6
27736 cat >conftest.$ac_ext <<_ACEOF
27739 cat confdefs.h >>conftest.$ac_ext
27740 cat >>conftest.$ac_ext <<_ACEOF
27741 /* end confdefs.h. */
27742 #include <alloca.h>
27746 char *p = (char *) alloca (2 * sizeof (int));
27751 rm -f conftest.$ac_objext conftest$ac_exeext
27752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27753 (eval $ac_link) 2>conftest.er1
27755 grep -v '^ *+' conftest.er1 >conftest.err
27757 cat conftest.err >&5
27758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); } &&
27760 { ac_try='test -z "$ac_c_werror_flag"
27761 || test ! -s conftest.err'
27762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27763 (eval $ac_try) 2>&5
27765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766 (exit $ac_status); }; } &&
27767 { ac_try='test -s conftest$ac_exeext'
27768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27769 (eval $ac_try) 2>&5
27771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772 (exit $ac_status); }; }; then
27773 ac_cv_working_alloca_h=yes
27775 echo "$as_me: failed program was:" >&5
27776 sed 's/^/| /' conftest.$ac_ext >&5
27778 ac_cv_working_alloca_h=no
27780 rm -f conftest.err conftest.$ac_objext \
27781 conftest$ac_exeext conftest.$ac_ext
27783 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27784 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27785 if test $ac_cv_working_alloca_h = yes; then
27787 cat >>confdefs.h <<\_ACEOF
27788 #define HAVE_ALLOCA_H 1
27793 echo "$as_me:$LINENO: checking for alloca" >&5
27794 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27795 if test "${ac_cv_func_alloca_works+set}" = set; then
27796 echo $ECHO_N "(cached) $ECHO_C" >&6
27798 cat >conftest.$ac_ext <<_ACEOF
27801 cat confdefs.h >>conftest.$ac_ext
27802 cat >>conftest.$ac_ext <<_ACEOF
27803 /* end confdefs.h. */
27805 # define alloca __builtin_alloca
27808 # include <malloc.h>
27809 # define alloca _alloca
27812 # include <alloca.h>
27817 # ifndef alloca /* predefined by HP cc +Olibcalls */
27828 char *p = (char *) alloca (1);
27833 rm -f conftest.$ac_objext conftest$ac_exeext
27834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27835 (eval $ac_link) 2>conftest.er1
27837 grep -v '^ *+' conftest.er1 >conftest.err
27839 cat conftest.err >&5
27840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27841 (exit $ac_status); } &&
27842 { ac_try='test -z "$ac_c_werror_flag"
27843 || test ! -s conftest.err'
27844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27845 (eval $ac_try) 2>&5
27847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848 (exit $ac_status); }; } &&
27849 { ac_try='test -s conftest$ac_exeext'
27850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27851 (eval $ac_try) 2>&5
27853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854 (exit $ac_status); }; }; then
27855 ac_cv_func_alloca_works=yes
27857 echo "$as_me: failed program was:" >&5
27858 sed 's/^/| /' conftest.$ac_ext >&5
27860 ac_cv_func_alloca_works=no
27862 rm -f conftest.err conftest.$ac_objext \
27863 conftest$ac_exeext conftest.$ac_ext
27865 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27866 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27868 if test $ac_cv_func_alloca_works = yes; then
27870 cat >>confdefs.h <<\_ACEOF
27871 #define HAVE_ALLOCA 1
27875 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27876 # that cause trouble. Some versions do not even contain alloca or
27877 # contain a buggy version. If you still want to use their alloca,
27878 # use ar to extract alloca.o from them instead of compiling alloca.c.
27880 ALLOCA=alloca.$ac_objext
27882 cat >>confdefs.h <<\_ACEOF
27887 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27888 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27889 if test "${ac_cv_os_cray+set}" = set; then
27890 echo $ECHO_N "(cached) $ECHO_C" >&6
27892 cat >conftest.$ac_ext <<_ACEOF
27895 cat confdefs.h >>conftest.$ac_ext
27896 cat >>conftest.$ac_ext <<_ACEOF
27897 /* end confdefs.h. */
27898 #if defined(CRAY) && ! defined(CRAY2)
27905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27906 $EGREP "webecray" >/dev/null 2>&1; then
27914 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27915 echo "${ECHO_T}$ac_cv_os_cray" >&6
27916 if test $ac_cv_os_cray = yes; then
27917 for ac_func in _getb67 GETB67 getb67; do
27918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27919 echo "$as_me:$LINENO: checking for $ac_func" >&5
27920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27921 if eval "test \"\${$as_ac_var+set}\" = set"; then
27922 echo $ECHO_N "(cached) $ECHO_C" >&6
27924 cat >conftest.$ac_ext <<_ACEOF
27927 cat confdefs.h >>conftest.$ac_ext
27928 cat >>conftest.$ac_ext <<_ACEOF
27929 /* end confdefs.h. */
27930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27932 #define $ac_func innocuous_$ac_func
27934 /* System header to define __stub macros and hopefully few prototypes,
27935 which can conflict with char $ac_func (); below.
27936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27937 <limits.h> exists even on freestanding compilers. */
27940 # include <limits.h>
27942 # include <assert.h>
27947 /* Override any gcc2 internal prototype to avoid an error. */
27952 /* We use char because int might match the return type of a gcc2
27953 builtin and then its argument prototype would still apply. */
27955 /* The GNU C library defines this for functions which it implements
27956 to always fail with ENOSYS. Some functions are actually named
27957 something starting with __ and the normal name is an alias. */
27958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27961 char (*f) () = $ac_func;
27970 return f != $ac_func;
27975 rm -f conftest.$ac_objext conftest$ac_exeext
27976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27977 (eval $ac_link) 2>conftest.er1
27979 grep -v '^ *+' conftest.er1 >conftest.err
27981 cat conftest.err >&5
27982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983 (exit $ac_status); } &&
27984 { ac_try='test -z "$ac_c_werror_flag"
27985 || test ! -s conftest.err'
27986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27987 (eval $ac_try) 2>&5
27989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990 (exit $ac_status); }; } &&
27991 { ac_try='test -s conftest$ac_exeext'
27992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27993 (eval $ac_try) 2>&5
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); }; }; then
27997 eval "$as_ac_var=yes"
27999 echo "$as_me: failed program was:" >&5
28000 sed 's/^/| /' conftest.$ac_ext >&5
28002 eval "$as_ac_var=no"
28004 rm -f conftest.err conftest.$ac_objext \
28005 conftest$ac_exeext conftest.$ac_ext
28007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28009 if test `eval echo '${'$as_ac_var'}'` = yes; then
28011 cat >>confdefs.h <<_ACEOF
28012 #define CRAY_STACKSEG_END $ac_func
28021 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28022 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28023 if test "${ac_cv_c_stack_direction+set}" = set; then
28024 echo $ECHO_N "(cached) $ECHO_C" >&6
28026 if test "$cross_compiling" = yes; then
28027 ac_cv_c_stack_direction=0
28029 cat >conftest.$ac_ext <<_ACEOF
28032 cat confdefs.h >>conftest.$ac_ext
28033 cat >>conftest.$ac_ext <<_ACEOF
28034 /* end confdefs.h. */
28036 find_stack_direction ()
28038 static char *addr = 0;
28043 return find_stack_direction ();
28046 return (&dummy > addr) ? 1 : -1;
28052 exit (find_stack_direction () < 0);
28055 rm -f conftest$ac_exeext
28056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28057 (eval $ac_link) 2>&5
28059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28062 (eval $ac_try) 2>&5
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); }; }; then
28066 ac_cv_c_stack_direction=1
28068 echo "$as_me: program exited with status $ac_status" >&5
28069 echo "$as_me: failed program was:" >&5
28070 sed 's/^/| /' conftest.$ac_ext >&5
28072 ( exit $ac_status )
28073 ac_cv_c_stack_direction=-1
28075 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28078 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28079 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28081 cat >>confdefs.h <<_ACEOF
28082 #define STACK_DIRECTION $ac_cv_c_stack_direction
28089 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28090 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28091 if test "${ac_cv_func_rand48+set}" = set; then
28092 echo $ECHO_N "(cached) $ECHO_C" >&6
28095 ac_cpp='$CXXCPP $CPPFLAGS'
28096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28100 cat >conftest.$ac_ext <<_ACEOF
28103 cat confdefs.h >>conftest.$ac_ext
28104 cat >>conftest.$ac_ext <<_ACEOF
28105 /* end confdefs.h. */
28106 #include <stdlib.h>
28110 srand48(0);lrand48();drand48();
28115 rm -f conftest.$ac_objext
28116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28117 (eval $ac_compile) 2>conftest.er1
28119 grep -v '^ *+' conftest.er1 >conftest.err
28121 cat conftest.err >&5
28122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123 (exit $ac_status); } &&
28124 { ac_try='test -z "$ac_cxx_werror_flag"
28125 || test ! -s conftest.err'
28126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28127 (eval $ac_try) 2>&5
28129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130 (exit $ac_status); }; } &&
28131 { ac_try='test -s conftest.$ac_objext'
28132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28133 (eval $ac_try) 2>&5
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); }; }; then
28137 ac_cv_func_rand48=yes
28139 echo "$as_me: failed program was:" >&5
28140 sed 's/^/| /' conftest.$ac_ext >&5
28142 ac_cv_func_rand48=no
28144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28146 ac_cpp='$CPP $CPPFLAGS'
28147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28152 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28153 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28155 if test "$ac_cv_func_rand48" = "yes" ; then
28157 cat >>confdefs.h <<\_ACEOF
28158 #define HAVE_RAND48 1
28164 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28165 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28166 if test "${ac_cv_cxx_namespaces+set}" = set; then
28167 echo $ECHO_N "(cached) $ECHO_C" >&6
28170 ac_cpp='$CXXCPP $CPPFLAGS'
28171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28175 cat >conftest.$ac_ext <<_ACEOF
28178 cat confdefs.h >>conftest.$ac_ext
28179 cat >>conftest.$ac_ext <<_ACEOF
28180 /* end confdefs.h. */
28181 namespace Outer { namespace Inner { int i = 0; }}
28185 using namespace Outer::Inner; return i;
28190 rm -f conftest.$ac_objext
28191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28192 (eval $ac_compile) 2>conftest.er1
28194 grep -v '^ *+' conftest.er1 >conftest.err
28196 cat conftest.err >&5
28197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28198 (exit $ac_status); } &&
28199 { ac_try='test -z "$ac_cxx_werror_flag"
28200 || test ! -s conftest.err'
28201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28202 (eval $ac_try) 2>&5
28204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205 (exit $ac_status); }; } &&
28206 { ac_try='test -s conftest.$ac_objext'
28207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28208 (eval $ac_try) 2>&5
28210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211 (exit $ac_status); }; }; then
28212 ac_cv_cxx_namespaces=yes
28214 echo "$as_me: failed program was:" >&5
28215 sed 's/^/| /' conftest.$ac_ext >&5
28217 ac_cv_cxx_namespaces=no
28219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28221 ac_cpp='$CPP $CPPFLAGS'
28222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28228 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28229 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28230 if test "$ac_cv_cxx_namespaces" = yes; then
28232 cat >>confdefs.h <<\_ACEOF
28233 #define HAVE_NAMESPACES
28238 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28239 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28240 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28241 echo $ECHO_N "(cached) $ECHO_C" >&6
28245 ac_cpp='$CXXCPP $CPPFLAGS'
28246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28250 cat >conftest.$ac_ext <<_ACEOF
28253 cat confdefs.h >>conftest.$ac_ext
28254 cat >>conftest.$ac_ext <<_ACEOF
28255 /* end confdefs.h. */
28256 #include <ext/hash_map>
28257 #ifdef HAVE_NAMESPACES
28258 using namespace std;
28263 hash_map<int, int> t;
28268 rm -f conftest.$ac_objext
28269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28270 (eval $ac_compile) 2>conftest.er1
28272 grep -v '^ *+' conftest.er1 >conftest.err
28274 cat conftest.err >&5
28275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276 (exit $ac_status); } &&
28277 { ac_try='test -z "$ac_cxx_werror_flag"
28278 || test ! -s conftest.err'
28279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28280 (eval $ac_try) 2>&5
28282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283 (exit $ac_status); }; } &&
28284 { ac_try='test -s conftest.$ac_objext'
28285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28286 (eval $ac_try) 2>&5
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289 (exit $ac_status); }; }; then
28290 ac_cv_cxx_have_std_ext_hash_map=yes
28292 echo "$as_me: failed program was:" >&5
28293 sed 's/^/| /' conftest.$ac_ext >&5
28295 ac_cv_cxx_have_std_ext_hash_map=no
28297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28299 ac_cpp='$CPP $CPPFLAGS'
28300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28305 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28306 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28307 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28310 cat >>confdefs.h <<\_ACEOF
28311 #define HAVE_STD_EXT_HASH_MAP 1
28316 cat >>confdefs.h <<\_ACEOF
28317 #define HAVE_STD_EXT_HASH_MAP 0
28322 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28323 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28324 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28325 echo $ECHO_N "(cached) $ECHO_C" >&6
28329 ac_cpp='$CXXCPP $CPPFLAGS'
28330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28334 cat >conftest.$ac_ext <<_ACEOF
28337 cat confdefs.h >>conftest.$ac_ext
28338 cat >>conftest.$ac_ext <<_ACEOF
28339 /* end confdefs.h. */
28340 #include <ext/hash_map>
28341 #ifdef HAVE_NAMESPACES
28342 using namespace __gnu_cxx;
28347 hash_map<int,int> t;
28352 rm -f conftest.$ac_objext
28353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28354 (eval $ac_compile) 2>conftest.er1
28356 grep -v '^ *+' conftest.er1 >conftest.err
28358 cat conftest.err >&5
28359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360 (exit $ac_status); } &&
28361 { ac_try='test -z "$ac_cxx_werror_flag"
28362 || test ! -s conftest.err'
28363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28364 (eval $ac_try) 2>&5
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); }; } &&
28368 { ac_try='test -s conftest.$ac_objext'
28369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28370 (eval $ac_try) 2>&5
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); }; }; then
28374 ac_cv_cxx_have_gnu_ext_hash_map=yes
28376 echo "$as_me: failed program was:" >&5
28377 sed 's/^/| /' conftest.$ac_ext >&5
28379 ac_cv_cxx_have_gnu_ext_hash_map=no
28381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28383 ac_cpp='$CPP $CPPFLAGS'
28384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28389 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28390 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28391 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28394 cat >>confdefs.h <<\_ACEOF
28395 #define HAVE_GNU_EXT_HASH_MAP 1
28400 cat >>confdefs.h <<\_ACEOF
28401 #define HAVE_GNU_EXT_HASH_MAP 0
28406 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28407 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28408 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28409 echo $ECHO_N "(cached) $ECHO_C" >&6
28413 ac_cpp='$CXXCPP $CPPFLAGS'
28414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28418 cat >conftest.$ac_ext <<_ACEOF
28421 cat confdefs.h >>conftest.$ac_ext
28422 cat >>conftest.$ac_ext <<_ACEOF
28423 /* end confdefs.h. */
28424 #include <hash_map>
28428 hash_map<int,int> t;
28433 rm -f conftest.$ac_objext
28434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28435 (eval $ac_compile) 2>conftest.er1
28437 grep -v '^ *+' conftest.er1 >conftest.err
28439 cat conftest.err >&5
28440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28441 (exit $ac_status); } &&
28442 { ac_try='test -z "$ac_cxx_werror_flag"
28443 || test ! -s conftest.err'
28444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28445 (eval $ac_try) 2>&5
28447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); }; } &&
28449 { ac_try='test -s conftest.$ac_objext'
28450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28451 (eval $ac_try) 2>&5
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); }; }; then
28455 ac_cv_cxx_have_global_hash_map=yes
28457 echo "$as_me: failed program was:" >&5
28458 sed 's/^/| /' conftest.$ac_ext >&5
28460 ac_cv_cxx_have_global_hash_map=no
28462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28464 ac_cpp='$CPP $CPPFLAGS'
28465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28470 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28471 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28472 if test "$ac_cv_cxx_have_global_hash_map" = yes
28475 cat >>confdefs.h <<\_ACEOF
28476 #define HAVE_GLOBAL_HASH_MAP 1
28481 cat >>confdefs.h <<\_ACEOF
28482 #define HAVE_GLOBAL_HASH_MAP 0
28487 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28488 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28489 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28490 echo $ECHO_N "(cached) $ECHO_C" >&6
28494 ac_cpp='$CXXCPP $CPPFLAGS'
28495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28499 cat >conftest.$ac_ext <<_ACEOF
28502 cat confdefs.h >>conftest.$ac_ext
28503 cat >>conftest.$ac_ext <<_ACEOF
28504 /* end confdefs.h. */
28505 #include <ext/hash_set>
28506 #ifdef HAVE_NAMESPACES
28507 using namespace std;
28517 rm -f conftest.$ac_objext
28518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28519 (eval $ac_compile) 2>conftest.er1
28521 grep -v '^ *+' conftest.er1 >conftest.err
28523 cat conftest.err >&5
28524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); } &&
28526 { ac_try='test -z "$ac_cxx_werror_flag"
28527 || test ! -s conftest.err'
28528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28529 (eval $ac_try) 2>&5
28531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); }; } &&
28533 { ac_try='test -s conftest.$ac_objext'
28534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28535 (eval $ac_try) 2>&5
28537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 (exit $ac_status); }; }; then
28539 ac_cv_cxx_have_std_ext_hash_set=yes
28541 echo "$as_me: failed program was:" >&5
28542 sed 's/^/| /' conftest.$ac_ext >&5
28544 ac_cv_cxx_have_std_ext_hash_set=no
28546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28548 ac_cpp='$CPP $CPPFLAGS'
28549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28554 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28555 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28556 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28559 cat >>confdefs.h <<\_ACEOF
28560 #define HAVE_STD_EXT_HASH_SET 1
28565 cat >>confdefs.h <<\_ACEOF
28566 #define HAVE_STD_EXT_HASH_SET 0
28571 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28572 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28573 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28574 echo $ECHO_N "(cached) $ECHO_C" >&6
28578 ac_cpp='$CXXCPP $CPPFLAGS'
28579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28583 cat >conftest.$ac_ext <<_ACEOF
28586 cat confdefs.h >>conftest.$ac_ext
28587 cat >>conftest.$ac_ext <<_ACEOF
28588 /* end confdefs.h. */
28589 #include <ext/hash_set>
28590 #ifdef HAVE_NAMESPACES
28591 using namespace __gnu_cxx;
28601 rm -f conftest.$ac_objext
28602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28603 (eval $ac_compile) 2>conftest.er1
28605 grep -v '^ *+' conftest.er1 >conftest.err
28607 cat conftest.err >&5
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); } &&
28610 { ac_try='test -z "$ac_cxx_werror_flag"
28611 || test ! -s conftest.err'
28612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28613 (eval $ac_try) 2>&5
28615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616 (exit $ac_status); }; } &&
28617 { ac_try='test -s conftest.$ac_objext'
28618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28619 (eval $ac_try) 2>&5
28621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28622 (exit $ac_status); }; }; then
28623 ac_cv_cxx_have_gnu_ext_hash_set=yes
28625 echo "$as_me: failed program was:" >&5
28626 sed 's/^/| /' conftest.$ac_ext >&5
28628 ac_cv_cxx_have_gnu_ext_hash_set=no
28630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28632 ac_cpp='$CPP $CPPFLAGS'
28633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28638 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28639 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28640 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28643 cat >>confdefs.h <<\_ACEOF
28644 #define HAVE_GNU_EXT_HASH_SET 1
28649 cat >>confdefs.h <<\_ACEOF
28650 #define HAVE_GNU_EXT_HASH_SET 0
28655 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28656 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28657 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28658 echo $ECHO_N "(cached) $ECHO_C" >&6
28662 ac_cpp='$CXXCPP $CPPFLAGS'
28663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28667 cat >conftest.$ac_ext <<_ACEOF
28670 cat confdefs.h >>conftest.$ac_ext
28671 cat >>conftest.$ac_ext <<_ACEOF
28672 /* end confdefs.h. */
28673 #include <hash_set>
28677 hash_set<int> t; return 0;
28682 rm -f conftest.$ac_objext
28683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28684 (eval $ac_compile) 2>conftest.er1
28686 grep -v '^ *+' conftest.er1 >conftest.err
28688 cat conftest.err >&5
28689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28690 (exit $ac_status); } &&
28691 { ac_try='test -z "$ac_cxx_werror_flag"
28692 || test ! -s conftest.err'
28693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28694 (eval $ac_try) 2>&5
28696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697 (exit $ac_status); }; } &&
28698 { ac_try='test -s conftest.$ac_objext'
28699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28700 (eval $ac_try) 2>&5
28702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703 (exit $ac_status); }; }; then
28704 ac_cv_cxx_have_global_hash_set=yes
28706 echo "$as_me: failed program was:" >&5
28707 sed 's/^/| /' conftest.$ac_ext >&5
28709 ac_cv_cxx_have_global_hash_set=no
28711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28713 ac_cpp='$CPP $CPPFLAGS'
28714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28719 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28720 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28721 if test "$ac_cv_cxx_have_global_hash_set" = yes
28724 cat >>confdefs.h <<\_ACEOF
28725 #define HAVE_GLOBAL_HASH_SET 1
28730 cat >>confdefs.h <<\_ACEOF
28731 #define HAVE_GLOBAL_HASH_SET 0
28736 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28737 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28738 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28739 echo $ECHO_N "(cached) $ECHO_C" >&6
28743 ac_cpp='$CXXCPP $CPPFLAGS'
28744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28748 cat >conftest.$ac_ext <<_ACEOF
28751 cat confdefs.h >>conftest.$ac_ext
28752 cat >>conftest.$ac_ext <<_ACEOF
28753 /* end confdefs.h. */
28754 #include <iterator>
28755 #ifdef HAVE_NAMESPACES
28756 using namespace std;
28761 iterator<int,int,int> t; return 0;
28766 rm -f conftest.$ac_objext
28767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28768 (eval $ac_compile) 2>conftest.er1
28770 grep -v '^ *+' conftest.er1 >conftest.err
28772 cat conftest.err >&5
28773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774 (exit $ac_status); } &&
28775 { ac_try='test -z "$ac_cxx_werror_flag"
28776 || test ! -s conftest.err'
28777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28778 (eval $ac_try) 2>&5
28780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); }; } &&
28782 { ac_try='test -s conftest.$ac_objext'
28783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28784 (eval $ac_try) 2>&5
28786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787 (exit $ac_status); }; }; then
28788 ac_cv_cxx_have_std_iterator=yes
28790 echo "$as_me: failed program was:" >&5
28791 sed 's/^/| /' conftest.$ac_ext >&5
28793 ac_cv_cxx_have_std_iterator=no
28795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28797 ac_cpp='$CPP $CPPFLAGS'
28798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28804 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28805 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28806 if test "$ac_cv_cxx_have_std_iterator" = yes
28809 cat >>confdefs.h <<\_ACEOF
28810 #define HAVE_STD_ITERATOR 1
28815 cat >>confdefs.h <<\_ACEOF
28816 #define HAVE_STD_ITERATOR 0
28821 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28822 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28823 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28824 echo $ECHO_N "(cached) $ECHO_C" >&6
28828 ac_cpp='$CXXCPP $CPPFLAGS'
28829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28833 cat >conftest.$ac_ext <<_ACEOF
28836 cat confdefs.h >>conftest.$ac_ext
28837 cat >>conftest.$ac_ext <<_ACEOF
28838 /* end confdefs.h. */
28839 #include <iterator>
28840 #ifdef HAVE_NAMESPACES
28841 using namespace std;
28846 bidirectional_iterator<int,int> t; return 0;
28851 rm -f conftest.$ac_objext
28852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28853 (eval $ac_compile) 2>conftest.er1
28855 grep -v '^ *+' conftest.er1 >conftest.err
28857 cat conftest.err >&5
28858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859 (exit $ac_status); } &&
28860 { ac_try='test -z "$ac_cxx_werror_flag"
28861 || test ! -s conftest.err'
28862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28863 (eval $ac_try) 2>&5
28865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866 (exit $ac_status); }; } &&
28867 { ac_try='test -s conftest.$ac_objext'
28868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28869 (eval $ac_try) 2>&5
28871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872 (exit $ac_status); }; }; then
28873 ac_cv_cxx_have_bi_iterator=yes
28875 echo "$as_me: failed program was:" >&5
28876 sed 's/^/| /' conftest.$ac_ext >&5
28878 ac_cv_cxx_have_bi_iterator=no
28880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28882 ac_cpp='$CPP $CPPFLAGS'
28883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28889 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28890 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28891 if test "$ac_cv_cxx_have_bi_iterator" = yes
28894 cat >>confdefs.h <<\_ACEOF
28895 #define HAVE_BI_ITERATOR 1
28900 cat >>confdefs.h <<\_ACEOF
28901 #define HAVE_BI_ITERATOR 0
28906 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28907 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28908 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28909 echo $ECHO_N "(cached) $ECHO_C" >&6
28913 ac_cpp='$CXXCPP $CPPFLAGS'
28914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28918 cat >conftest.$ac_ext <<_ACEOF
28921 cat confdefs.h >>conftest.$ac_ext
28922 cat >>conftest.$ac_ext <<_ACEOF
28923 /* end confdefs.h. */
28924 #include <iterator>
28925 #ifdef HAVE_NAMESPACES
28926 using namespace std;
28931 forward_iterator<int,int> t; return 0;
28936 rm -f conftest.$ac_objext
28937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28938 (eval $ac_compile) 2>conftest.er1
28940 grep -v '^ *+' conftest.er1 >conftest.err
28942 cat conftest.err >&5
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); } &&
28945 { ac_try='test -z "$ac_cxx_werror_flag"
28946 || test ! -s conftest.err'
28947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28948 (eval $ac_try) 2>&5
28950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); }; } &&
28952 { ac_try='test -s conftest.$ac_objext'
28953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28954 (eval $ac_try) 2>&5
28956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957 (exit $ac_status); }; }; then
28958 ac_cv_cxx_have_fwd_iterator=yes
28960 echo "$as_me: failed program was:" >&5
28961 sed 's/^/| /' conftest.$ac_ext >&5
28963 ac_cv_cxx_have_fwd_iterator=no
28965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28967 ac_cpp='$CPP $CPPFLAGS'
28968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28974 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28975 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28976 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28979 cat >>confdefs.h <<\_ACEOF
28980 #define HAVE_FWD_ITERATOR 1
28985 cat >>confdefs.h <<\_ACEOF
28986 #define HAVE_FWD_ITERATOR 0
28992 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28993 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28994 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28995 echo $ECHO_N "(cached) $ECHO_C" >&6
28998 ac_cpp='$CXXCPP $CPPFLAGS'
28999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29003 cat >conftest.$ac_ext <<_ACEOF
29006 cat confdefs.h >>conftest.$ac_ext
29007 cat >>conftest.$ac_ext <<_ACEOF
29008 /* end confdefs.h. */
29018 rm -f conftest.$ac_objext
29019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29020 (eval $ac_compile) 2>conftest.er1
29022 grep -v '^ *+' conftest.er1 >conftest.err
29024 cat conftest.err >&5
29025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026 (exit $ac_status); } &&
29027 { ac_try='test -z "$ac_cxx_werror_flag"
29028 || test ! -s conftest.err'
29029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29030 (eval $ac_try) 2>&5
29032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29033 (exit $ac_status); }; } &&
29034 { ac_try='test -s conftest.$ac_objext'
29035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29036 (eval $ac_try) 2>&5
29038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29039 (exit $ac_status); }; }; then
29040 ac_cv_func_isnan_in_math_h=yes
29042 echo "$as_me: failed program was:" >&5
29043 sed 's/^/| /' conftest.$ac_ext >&5
29045 ac_cv_func_isnan_in_math_h=no
29047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29049 ac_cpp='$CPP $CPPFLAGS'
29050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29055 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29056 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29059 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29061 cat >>confdefs.h <<\_ACEOF
29062 #define HAVE_ISNAN_IN_MATH_H 1
29067 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29068 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29069 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29070 echo $ECHO_N "(cached) $ECHO_C" >&6
29073 ac_cpp='$CXXCPP $CPPFLAGS'
29074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29078 cat >conftest.$ac_ext <<_ACEOF
29081 cat confdefs.h >>conftest.$ac_ext
29082 cat >>conftest.$ac_ext <<_ACEOF
29083 /* end confdefs.h. */
29093 rm -f conftest.$ac_objext
29094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29095 (eval $ac_compile) 2>conftest.er1
29097 grep -v '^ *+' conftest.er1 >conftest.err
29099 cat conftest.err >&5
29100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); } &&
29102 { ac_try='test -z "$ac_cxx_werror_flag"
29103 || test ! -s conftest.err'
29104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29105 (eval $ac_try) 2>&5
29107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108 (exit $ac_status); }; } &&
29109 { ac_try='test -s conftest.$ac_objext'
29110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29111 (eval $ac_try) 2>&5
29113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29114 (exit $ac_status); }; }; then
29115 ac_cv_func_isnan_in_cmath=yes
29117 echo "$as_me: failed program was:" >&5
29118 sed 's/^/| /' conftest.$ac_ext >&5
29120 ac_cv_func_isnan_in_cmath=no
29122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29124 ac_cpp='$CPP $CPPFLAGS'
29125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29130 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29131 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29133 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29135 cat >>confdefs.h <<\_ACEOF
29136 #define HAVE_ISNAN_IN_CMATH 1
29141 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29142 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29143 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29144 echo $ECHO_N "(cached) $ECHO_C" >&6
29147 ac_cpp='$CXXCPP $CPPFLAGS'
29148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29152 cat >conftest.$ac_ext <<_ACEOF
29155 cat confdefs.h >>conftest.$ac_ext
29156 cat >>conftest.$ac_ext <<_ACEOF
29157 /* end confdefs.h. */
29162 float f; std::isnan(f);
29167 rm -f conftest.$ac_objext
29168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29169 (eval $ac_compile) 2>conftest.er1
29171 grep -v '^ *+' conftest.er1 >conftest.err
29173 cat conftest.err >&5
29174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175 (exit $ac_status); } &&
29176 { ac_try='test -z "$ac_cxx_werror_flag"
29177 || test ! -s conftest.err'
29178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29179 (eval $ac_try) 2>&5
29181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182 (exit $ac_status); }; } &&
29183 { ac_try='test -s conftest.$ac_objext'
29184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29185 (eval $ac_try) 2>&5
29187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29188 (exit $ac_status); }; }; then
29189 ac_cv_func_std_isnan_in_cmath=yes
29191 echo "$as_me: failed program was:" >&5
29192 sed 's/^/| /' conftest.$ac_ext >&5
29194 ac_cv_func_std_isnan_in_cmath=no
29196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29198 ac_cpp='$CPP $CPPFLAGS'
29199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29204 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29205 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29207 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29209 cat >>confdefs.h <<\_ACEOF
29210 #define HAVE_STD_ISNAN_IN_CMATH 1
29216 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29217 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29218 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29219 echo $ECHO_N "(cached) $ECHO_C" >&6
29222 ac_cpp='$CXXCPP $CPPFLAGS'
29223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29227 cat >conftest.$ac_ext <<_ACEOF
29230 cat confdefs.h >>conftest.$ac_ext
29231 cat >>conftest.$ac_ext <<_ACEOF
29232 /* end confdefs.h. */
29242 rm -f conftest.$ac_objext
29243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29244 (eval $ac_compile) 2>conftest.er1
29246 grep -v '^ *+' conftest.er1 >conftest.err
29248 cat conftest.err >&5
29249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250 (exit $ac_status); } &&
29251 { ac_try='test -z "$ac_cxx_werror_flag"
29252 || test ! -s conftest.err'
29253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29254 (eval $ac_try) 2>&5
29256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257 (exit $ac_status); }; } &&
29258 { ac_try='test -s conftest.$ac_objext'
29259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29260 (eval $ac_try) 2>&5
29262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263 (exit $ac_status); }; }; then
29264 ac_cv_func_isinf_in_math_h=yes
29266 echo "$as_me: failed program was:" >&5
29267 sed 's/^/| /' conftest.$ac_ext >&5
29269 ac_cv_func_isinf_in_math_h=no
29271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29273 ac_cpp='$CPP $CPPFLAGS'
29274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29279 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29280 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29282 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29284 cat >>confdefs.h <<\_ACEOF
29285 #define HAVE_ISINF_IN_MATH_H 1
29290 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29291 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29292 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29293 echo $ECHO_N "(cached) $ECHO_C" >&6
29296 ac_cpp='$CXXCPP $CPPFLAGS'
29297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29301 cat >conftest.$ac_ext <<_ACEOF
29304 cat confdefs.h >>conftest.$ac_ext
29305 cat >>conftest.$ac_ext <<_ACEOF
29306 /* end confdefs.h. */
29316 rm -f conftest.$ac_objext
29317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29318 (eval $ac_compile) 2>conftest.er1
29320 grep -v '^ *+' conftest.er1 >conftest.err
29322 cat conftest.err >&5
29323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29324 (exit $ac_status); } &&
29325 { ac_try='test -z "$ac_cxx_werror_flag"
29326 || test ! -s conftest.err'
29327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29328 (eval $ac_try) 2>&5
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); }; } &&
29332 { ac_try='test -s conftest.$ac_objext'
29333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29334 (eval $ac_try) 2>&5
29336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29337 (exit $ac_status); }; }; then
29338 ac_cv_func_isinf_in_cmath=yes
29340 echo "$as_me: failed program was:" >&5
29341 sed 's/^/| /' conftest.$ac_ext >&5
29343 ac_cv_func_isinf_in_cmath=no
29345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29347 ac_cpp='$CPP $CPPFLAGS'
29348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29353 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29354 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29356 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29358 cat >>confdefs.h <<\_ACEOF
29359 #define HAVE_ISINF_IN_CMATH 1
29364 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29365 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29366 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29367 echo $ECHO_N "(cached) $ECHO_C" >&6
29370 ac_cpp='$CXXCPP $CPPFLAGS'
29371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29375 cat >conftest.$ac_ext <<_ACEOF
29378 cat confdefs.h >>conftest.$ac_ext
29379 cat >>conftest.$ac_ext <<_ACEOF
29380 /* end confdefs.h. */
29385 float f; std::isinf(f)}
29390 rm -f conftest.$ac_objext
29391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29392 (eval $ac_compile) 2>conftest.er1
29394 grep -v '^ *+' conftest.er1 >conftest.err
29396 cat conftest.err >&5
29397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398 (exit $ac_status); } &&
29399 { ac_try='test -z "$ac_cxx_werror_flag"
29400 || test ! -s conftest.err'
29401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29402 (eval $ac_try) 2>&5
29404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405 (exit $ac_status); }; } &&
29406 { ac_try='test -s conftest.$ac_objext'
29407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29408 (eval $ac_try) 2>&5
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); }; }; then
29412 ac_cv_func_std_isinf_in_cmath=yes
29414 echo "$as_me: failed program was:" >&5
29415 sed 's/^/| /' conftest.$ac_ext >&5
29417 ac_cv_func_std_isinf_in_cmath=no
29419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29421 ac_cpp='$CPP $CPPFLAGS'
29422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29427 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29428 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29430 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29432 cat >>confdefs.h <<\_ACEOF
29433 #define HAVE_STD_ISINF_IN_CMATH 1
29438 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29439 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29440 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29441 echo $ECHO_N "(cached) $ECHO_C" >&6
29444 ac_cpp='$CXXCPP $CPPFLAGS'
29445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29449 cat >conftest.$ac_ext <<_ACEOF
29452 cat confdefs.h >>conftest.$ac_ext
29453 cat >>conftest.$ac_ext <<_ACEOF
29454 /* end confdefs.h. */
29455 #include <ieeefp.h>
29459 float f; finite(f);
29464 rm -f conftest.$ac_objext
29465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29466 (eval $ac_compile) 2>conftest.er1
29468 grep -v '^ *+' conftest.er1 >conftest.err
29470 cat conftest.err >&5
29471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472 (exit $ac_status); } &&
29473 { ac_try='test -z "$ac_cxx_werror_flag"
29474 || test ! -s conftest.err'
29475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29476 (eval $ac_try) 2>&5
29478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479 (exit $ac_status); }; } &&
29480 { ac_try='test -s conftest.$ac_objext'
29481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29482 (eval $ac_try) 2>&5
29484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485 (exit $ac_status); }; }; then
29486 ac_cv_func_finite_in_ieeefp_h=yes
29488 echo "$as_me: failed program was:" >&5
29489 sed 's/^/| /' conftest.$ac_ext >&5
29491 ac_cv_func_finite_in_ieeefp_h=no
29493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29495 ac_cpp='$CPP $CPPFLAGS'
29496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29501 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29502 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29504 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29506 cat >>confdefs.h <<\_ACEOF
29507 #define HAVE_FINITE_IN_IEEEFP_H 1
29516 for ac_header in stdlib.h unistd.h
29518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29520 echo "$as_me:$LINENO: checking for $ac_header" >&5
29521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29523 echo $ECHO_N "(cached) $ECHO_C" >&6
29525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29528 # Is the header compilable?
29529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29531 cat >conftest.$ac_ext <<_ACEOF
29534 cat confdefs.h >>conftest.$ac_ext
29535 cat >>conftest.$ac_ext <<_ACEOF
29536 /* end confdefs.h. */
29537 $ac_includes_default
29538 #include <$ac_header>
29540 rm -f conftest.$ac_objext
29541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29542 (eval $ac_compile) 2>conftest.er1
29544 grep -v '^ *+' conftest.er1 >conftest.err
29546 cat conftest.err >&5
29547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); } &&
29549 { ac_try='test -z "$ac_c_werror_flag"
29550 || test ! -s conftest.err'
29551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29552 (eval $ac_try) 2>&5
29554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); }; } &&
29556 { ac_try='test -s conftest.$ac_objext'
29557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29558 (eval $ac_try) 2>&5
29560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561 (exit $ac_status); }; }; then
29562 ac_header_compiler=yes
29564 echo "$as_me: failed program was:" >&5
29565 sed 's/^/| /' conftest.$ac_ext >&5
29567 ac_header_compiler=no
29569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29571 echo "${ECHO_T}$ac_header_compiler" >&6
29573 # Is the header present?
29574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29576 cat >conftest.$ac_ext <<_ACEOF
29579 cat confdefs.h >>conftest.$ac_ext
29580 cat >>conftest.$ac_ext <<_ACEOF
29581 /* end confdefs.h. */
29582 #include <$ac_header>
29584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29587 grep -v '^ *+' conftest.er1 >conftest.err
29589 cat conftest.err >&5
29590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29591 (exit $ac_status); } >/dev/null; then
29592 if test -s conftest.err; then
29593 ac_cpp_err=$ac_c_preproc_warn_flag
29594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29601 if test -z "$ac_cpp_err"; then
29602 ac_header_preproc=yes
29604 echo "$as_me: failed program was:" >&5
29605 sed 's/^/| /' conftest.$ac_ext >&5
29607 ac_header_preproc=no
29609 rm -f conftest.err conftest.$ac_ext
29610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29611 echo "${ECHO_T}$ac_header_preproc" >&6
29613 # So? What about this header?
29614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29620 ac_header_preproc=yes
29623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29637 ## ----------------------------------- ##
29638 ## Report this to llvmbugs@cs.uiuc.edu ##
29639 ## ----------------------------------- ##
29642 sed "s/^/$as_me: WARNING: /" >&2
29645 echo "$as_me:$LINENO: checking for $ac_header" >&5
29646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29648 echo $ECHO_N "(cached) $ECHO_C" >&6
29650 eval "$as_ac_Header=\$ac_header_preproc"
29652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29657 cat >>confdefs.h <<_ACEOF
29658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29666 for ac_func in getpagesize
29668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29669 echo "$as_me:$LINENO: checking for $ac_func" >&5
29670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29671 if eval "test \"\${$as_ac_var+set}\" = set"; then
29672 echo $ECHO_N "(cached) $ECHO_C" >&6
29674 cat >conftest.$ac_ext <<_ACEOF
29677 cat confdefs.h >>conftest.$ac_ext
29678 cat >>conftest.$ac_ext <<_ACEOF
29679 /* end confdefs.h. */
29680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29682 #define $ac_func innocuous_$ac_func
29684 /* System header to define __stub macros and hopefully few prototypes,
29685 which can conflict with char $ac_func (); below.
29686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29687 <limits.h> exists even on freestanding compilers. */
29690 # include <limits.h>
29692 # include <assert.h>
29697 /* Override any gcc2 internal prototype to avoid an error. */
29702 /* We use char because int might match the return type of a gcc2
29703 builtin and then its argument prototype would still apply. */
29705 /* The GNU C library defines this for functions which it implements
29706 to always fail with ENOSYS. Some functions are actually named
29707 something starting with __ and the normal name is an alias. */
29708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29711 char (*f) () = $ac_func;
29720 return f != $ac_func;
29725 rm -f conftest.$ac_objext conftest$ac_exeext
29726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29727 (eval $ac_link) 2>conftest.er1
29729 grep -v '^ *+' conftest.er1 >conftest.err
29731 cat conftest.err >&5
29732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733 (exit $ac_status); } &&
29734 { ac_try='test -z "$ac_c_werror_flag"
29735 || test ! -s conftest.err'
29736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29737 (eval $ac_try) 2>&5
29739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740 (exit $ac_status); }; } &&
29741 { ac_try='test -s conftest$ac_exeext'
29742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29743 (eval $ac_try) 2>&5
29745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746 (exit $ac_status); }; }; then
29747 eval "$as_ac_var=yes"
29749 echo "$as_me: failed program was:" >&5
29750 sed 's/^/| /' conftest.$ac_ext >&5
29752 eval "$as_ac_var=no"
29754 rm -f conftest.err conftest.$ac_objext \
29755 conftest$ac_exeext conftest.$ac_ext
29757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29759 if test `eval echo '${'$as_ac_var'}'` = yes; then
29760 cat >>confdefs.h <<_ACEOF
29761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29767 echo "$as_me:$LINENO: checking for working mmap" >&5
29768 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29769 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29770 echo $ECHO_N "(cached) $ECHO_C" >&6
29772 if test "$cross_compiling" = yes; then
29773 ac_cv_func_mmap_fixed_mapped=no
29775 cat >conftest.$ac_ext <<_ACEOF
29778 cat confdefs.h >>conftest.$ac_ext
29779 cat >>conftest.$ac_ext <<_ACEOF
29780 /* end confdefs.h. */
29781 $ac_includes_default
29782 /* malloc might have been renamed as rpl_malloc. */
29785 /* Thanks to Mike Haertel and Jim Avera for this test.
29786 Here is a matrix of mmap possibilities:
29787 mmap private not fixed
29788 mmap private fixed at somewhere currently unmapped
29789 mmap private fixed at somewhere already mapped
29790 mmap shared not fixed
29791 mmap shared fixed at somewhere currently unmapped
29792 mmap shared fixed at somewhere already mapped
29793 For private mappings, we should verify that changes cannot be read()
29794 back from the file, nor mmap's back from the file at a different
29795 address. (There have been systems where private was not correctly
29796 implemented like the infamous i386 svr4.0, and systems where the
29797 VM page cache was not coherent with the file system buffer cache
29798 like early versions of FreeBSD and possibly contemporary NetBSD.)
29799 For shared mappings, we should conversely verify that changes get
29800 propagated back to all the places they're supposed to be.
29802 Grep wants private fixed already mapped.
29803 The main things grep needs to know about mmap are:
29804 * does it exist and is it safe to write into the mmap'd area
29805 * how to use it (BSD variants) */
29808 #include <sys/mman.h>
29810 #if !STDC_HEADERS && !HAVE_STDLIB_H
29814 /* This mess was copied from the GNU getpagesize.h. */
29815 #if !HAVE_GETPAGESIZE
29816 /* Assume that all systems that can run configure have sys/param.h. */
29817 # if !HAVE_SYS_PARAM_H
29818 # define HAVE_SYS_PARAM_H 1
29821 # ifdef _SC_PAGESIZE
29822 # define getpagesize() sysconf(_SC_PAGESIZE)
29823 # else /* no _SC_PAGESIZE */
29824 # if HAVE_SYS_PARAM_H
29825 # include <sys/param.h>
29826 # ifdef EXEC_PAGESIZE
29827 # define getpagesize() EXEC_PAGESIZE
29828 # else /* no EXEC_PAGESIZE */
29830 # define getpagesize() NBPG * CLSIZE
29833 # endif /* no CLSIZE */
29834 # else /* no NBPG */
29836 # define getpagesize() NBPC
29837 # else /* no NBPC */
29839 # define getpagesize() PAGESIZE
29840 # endif /* PAGESIZE */
29841 # endif /* no NBPC */
29842 # endif /* no NBPG */
29843 # endif /* no EXEC_PAGESIZE */
29844 # else /* no HAVE_SYS_PARAM_H */
29845 # define getpagesize() 8192 /* punt totally */
29846 # endif /* no HAVE_SYS_PARAM_H */
29847 # endif /* no _SC_PAGESIZE */
29849 #endif /* no HAVE_GETPAGESIZE */
29854 char *data, *data2, *data3;
29858 pagesize = getpagesize ();
29860 /* First, make a file with some known garbage in it. */
29861 data = (char *) malloc (pagesize);
29864 for (i = 0; i < pagesize; ++i)
29865 *(data + i) = rand ();
29867 fd = creat ("conftest.mmap", 0600);
29870 if (write (fd, data, pagesize) != pagesize)
29874 /* Next, try to mmap the file at a fixed address which already has
29875 something else allocated at it. If we can, also make sure that
29876 we see the same garbage. */
29877 fd = open ("conftest.mmap", O_RDWR);
29880 data2 = (char *) malloc (2 * pagesize);
29883 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29884 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29885 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29887 for (i = 0; i < pagesize; ++i)
29888 if (*(data + i) != *(data2 + i))
29891 /* Finally, make sure that changes to the mapped area do not
29892 percolate back to the file as seen by read(). (This is a bug on
29893 some variants of i386 svr4.0.) */
29894 for (i = 0; i < pagesize; ++i)
29895 *(data2 + i) = *(data2 + i) + 1;
29896 data3 = (char *) malloc (pagesize);
29899 if (read (fd, data3, pagesize) != pagesize)
29901 for (i = 0; i < pagesize; ++i)
29902 if (*(data + i) != *(data3 + i))
29908 rm -f conftest$ac_exeext
29909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29910 (eval $ac_link) 2>&5
29912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29915 (eval $ac_try) 2>&5
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918 (exit $ac_status); }; }; then
29919 ac_cv_func_mmap_fixed_mapped=yes
29921 echo "$as_me: program exited with status $ac_status" >&5
29922 echo "$as_me: failed program was:" >&5
29923 sed 's/^/| /' conftest.$ac_ext >&5
29925 ( exit $ac_status )
29926 ac_cv_func_mmap_fixed_mapped=no
29928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29931 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29932 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29933 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29935 cat >>confdefs.h <<\_ACEOF
29936 #define HAVE_MMAP 1
29940 rm -f conftest.mmap
29942 echo "$as_me:$LINENO: checking for mmap of files" >&5
29943 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29944 if test "${ac_cv_func_mmap_file+set}" = set; then
29945 echo $ECHO_N "(cached) $ECHO_C" >&6
29948 ac_cpp='$CPP $CPPFLAGS'
29949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29953 if test "$cross_compiling" = yes; then
29954 ac_cv_func_mmap_file=no
29956 cat >conftest.$ac_ext <<_ACEOF
29960 cat confdefs.h >>conftest.$ac_ext
29961 cat >>conftest.$ac_ext <<_ACEOF
29962 /* end confdefs.h. */
29964 #include <sys/types.h>
29965 #include <sys/mman.h>
29973 fd = creat ("foo",0777);
29974 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29976 return (fd != (int) MAP_FAILED);
29981 rm -f conftest$ac_exeext
29982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29983 (eval $ac_link) 2>&5
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29988 (eval $ac_try) 2>&5
29990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991 (exit $ac_status); }; }; then
29992 ac_cv_func_mmap_file=yes
29994 echo "$as_me: program exited with status $ac_status" >&5
29995 echo "$as_me: failed program was:" >&5
29996 sed 's/^/| /' conftest.$ac_ext >&5
29998 ( exit $ac_status )
29999 ac_cv_func_mmap_file=no
30001 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30004 ac_cpp='$CPP $CPPFLAGS'
30005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30011 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30012 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30013 if test "$ac_cv_func_mmap_file" = yes; then
30015 cat >>confdefs.h <<\_ACEOF
30016 #define HAVE_MMAP_FILE
30023 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30024 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30025 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30026 echo $ECHO_N "(cached) $ECHO_C" >&6
30028 if test "$llvm_cv_os_type" = "Interix" ; then
30029 ac_cv_need_dev_zero_for_mmap=yes
30031 ac_cv_need_dev_zero_for_mmap=no
30035 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30036 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30037 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30039 cat >>confdefs.h <<\_ACEOF
30040 #define NEED_DEV_ZERO_FOR_MMAP 1
30044 echo "$as_me:$LINENO: checking for mprotect" >&5
30045 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30046 if test "${ac_cv_func_mprotect+set}" = set; then
30047 echo $ECHO_N "(cached) $ECHO_C" >&6
30049 cat >conftest.$ac_ext <<_ACEOF
30052 cat confdefs.h >>conftest.$ac_ext
30053 cat >>conftest.$ac_ext <<_ACEOF
30054 /* end confdefs.h. */
30055 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30057 #define mprotect innocuous_mprotect
30059 /* System header to define __stub macros and hopefully few prototypes,
30060 which can conflict with char mprotect (); below.
30061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30062 <limits.h> exists even on freestanding compilers. */
30065 # include <limits.h>
30067 # include <assert.h>
30072 /* Override any gcc2 internal prototype to avoid an error. */
30077 /* We use char because int might match the return type of a gcc2
30078 builtin and then its argument prototype would still apply. */
30080 /* The GNU C library defines this for functions which it implements
30081 to always fail with ENOSYS. Some functions are actually named
30082 something starting with __ and the normal name is an alias. */
30083 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30086 char (*f) () = mprotect;
30095 return f != mprotect;
30100 rm -f conftest.$ac_objext conftest$ac_exeext
30101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30102 (eval $ac_link) 2>conftest.er1
30104 grep -v '^ *+' conftest.er1 >conftest.err
30106 cat conftest.err >&5
30107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30108 (exit $ac_status); } &&
30109 { ac_try='test -z "$ac_c_werror_flag"
30110 || test ! -s conftest.err'
30111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30112 (eval $ac_try) 2>&5
30114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115 (exit $ac_status); }; } &&
30116 { ac_try='test -s conftest$ac_exeext'
30117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30118 (eval $ac_try) 2>&5
30120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121 (exit $ac_status); }; }; then
30122 ac_cv_func_mprotect=yes
30124 echo "$as_me: failed program was:" >&5
30125 sed 's/^/| /' conftest.$ac_ext >&5
30127 ac_cv_func_mprotect=no
30129 rm -f conftest.err conftest.$ac_objext \
30130 conftest$ac_exeext conftest.$ac_ext
30132 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30133 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30134 if test $ac_cv_func_mprotect = yes; then
30137 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30138 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30139 { (exit 1); exit 1; }; }
30143 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30145 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30146 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30148 if test "$ac_cv_func_mmap_file" = "no"
30150 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30151 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30155 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30156 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30157 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30158 echo $ECHO_N "(cached) $ECHO_C" >&6
30160 llvm_cv_llvmgcc_sanity="no"
30161 if test -x "$LLVMGCC" ; then
30162 cp /dev/null conftest.c
30163 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30164 if test $? -eq 0 ; then
30165 llvm_cv_llvmgcc_sanity="yes"
30170 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30171 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30173 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30174 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30175 LLVMCC1=$llvmcc1path
30177 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30178 LLVMCC1PLUS=$llvmcc1pluspath
30180 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30181 LLVMGCCDIR=$llvmgccdir
30185 SHLIBEXT=$libltdl_cv_shlibext
30188 # Translate the various configuration directories and other basic
30189 # information into substitutions that will end up in Makefile.config.in
30190 # that these configured values can be used by the makefiles
30191 eval LLVM_PREFIX="${prefix}";
30192 eval LLVM_BINDIR="${prefix}/bin";
30193 eval LLVM_LIBDIR="${prefix}/lib";
30194 eval LLVM_DATADIR="${prefix}/share/llvm";
30195 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30196 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30197 eval LLVM_INCLUDEDIR="${prefix}/include";
30198 eval LLVM_INFODIR="${prefix}/info";
30199 eval LLVM_MANDIR="${prefix}/man";
30200 LLVM_CONFIGTIME=`date`
30212 # Place the various directores into the config.h file as #defines so that we
30213 # can know about the installation paths within LLVM.
30215 cat >>confdefs.h <<_ACEOF
30216 #define LLVM_PREFIX "$LLVM_PREFIX"
30220 cat >>confdefs.h <<_ACEOF
30221 #define LLVM_BINDIR "$LLVM_BINDIR"
30225 cat >>confdefs.h <<_ACEOF
30226 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30230 cat >>confdefs.h <<_ACEOF
30231 #define LLVM_DATADIR "$LLVM_DATADIR"
30235 cat >>confdefs.h <<_ACEOF
30236 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30240 cat >>confdefs.h <<_ACEOF
30241 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30245 cat >>confdefs.h <<_ACEOF
30246 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30250 cat >>confdefs.h <<_ACEOF
30251 #define LLVM_INFODIR "$LLVM_INFODIR"
30255 cat >>confdefs.h <<_ACEOF
30256 #define LLVM_MANDIR "$LLVM_MANDIR"
30260 cat >>confdefs.h <<_ACEOF
30261 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30266 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30269 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30271 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30273 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30275 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30277 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30280 ac_config_files="$ac_config_files Makefile.config"
30283 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
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.5cvs, 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.5cvs
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 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30873 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30874 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30875 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30876 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30877 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
30878 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30879 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30880 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30881 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30882 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30883 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30884 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30885 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30886 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30887 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30888 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30889 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30890 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30891 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30892 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30893 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30894 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30895 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30896 { (exit 1); exit 1; }; };;
30900 # If the user did not use the arguments to specify the items to instantiate,
30901 # then the envvar interface is used. Set only those that are not.
30902 # We use the long form for the default assignment because of an extremely
30903 # bizarre bug on SunOS 4.1.3.
30904 if $ac_need_defaults; then
30905 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30906 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30907 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30910 # Have a temporary directory for convenience. Make it in the build tree
30911 # simply because there is no reason to put it here, and in addition,
30912 # creating and moving files from /tmp can sometimes cause problems.
30913 # Create a temporary directory, and hook for its removal unless debugging.
30916 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30917 trap '{ (exit 1); exit 1; }' 1 2 13 15
30920 # Create a (secure) tmp directory for tmp files.
30923 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30924 test -n "$tmp" && test -d "$tmp"
30927 tmp=./confstat$$-$RANDOM
30928 (umask 077 && mkdir $tmp)
30931 echo "$me: cannot create a temporary directory in ." >&2
30932 { (exit 1); exit 1; }
30937 cat >>$CONFIG_STATUS <<_ACEOF
30940 # CONFIG_FILES section.
30943 # No need to generate the scripts if there are no CONFIG_FILES.
30944 # This happens for instance when ./config.status config.h
30945 if test -n "\$CONFIG_FILES"; then
30946 # Protect against being on the right side of a sed subst in config.status.
30947 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30948 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30949 s,@SHELL@,$SHELL,;t t
30950 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30951 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30952 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30953 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30954 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30955 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30956 s,@exec_prefix@,$exec_prefix,;t t
30957 s,@prefix@,$prefix,;t t
30958 s,@program_transform_name@,$program_transform_name,;t t
30959 s,@bindir@,$bindir,;t t
30960 s,@sbindir@,$sbindir,;t t
30961 s,@libexecdir@,$libexecdir,;t t
30962 s,@datadir@,$datadir,;t t
30963 s,@sysconfdir@,$sysconfdir,;t t
30964 s,@sharedstatedir@,$sharedstatedir,;t t
30965 s,@localstatedir@,$localstatedir,;t t
30966 s,@libdir@,$libdir,;t t
30967 s,@includedir@,$includedir,;t t
30968 s,@oldincludedir@,$oldincludedir,;t t
30969 s,@infodir@,$infodir,;t t
30970 s,@mandir@,$mandir,;t t
30971 s,@build_alias@,$build_alias,;t t
30972 s,@host_alias@,$host_alias,;t t
30973 s,@target_alias@,$target_alias,;t t
30974 s,@DEFS@,$DEFS,;t t
30975 s,@ECHO_C@,$ECHO_C,;t t
30976 s,@ECHO_N@,$ECHO_N,;t t
30977 s,@ECHO_T@,$ECHO_T,;t t
30978 s,@LIBS@,$LIBS,;t t
30979 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30980 s,@subdirs@,$subdirs,;t t
30981 s,@build@,$build,;t t
30982 s,@build_cpu@,$build_cpu,;t t
30983 s,@build_vendor@,$build_vendor,;t t
30984 s,@build_os@,$build_os,;t t
30985 s,@host@,$host,;t t
30986 s,@host_cpu@,$host_cpu,;t t
30987 s,@host_vendor@,$host_vendor,;t t
30988 s,@host_os@,$host_os,;t t
30989 s,@target@,$target,;t t
30990 s,@target_cpu@,$target_cpu,;t t
30991 s,@target_vendor@,$target_vendor,;t t
30992 s,@target_os@,$target_os,;t t
30994 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
30995 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
30996 s,@ARCH@,$ARCH,;t t
30997 s,@ENDIAN@,$ENDIAN,;t t
30999 s,@CFLAGS@,$CFLAGS,;t t
31000 s,@LDFLAGS@,$LDFLAGS,;t t
31001 s,@CPPFLAGS@,$CPPFLAGS,;t t
31002 s,@ac_ct_CC@,$ac_ct_CC,;t t
31003 s,@EXEEXT@,$EXEEXT,;t t
31004 s,@OBJEXT@,$OBJEXT,;t t
31005 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31007 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31008 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31011 s,@CXXFLAGS@,$CXXFLAGS,;t t
31012 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31014 s,@LEXLIB@,$LEXLIB,;t t
31015 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31016 s,@FLEX@,$FLEX,;t t
31017 s,@YACC@,$YACC,;t t
31018 s,@BISON@,$BISON,;t t
31019 s,@ifGNUmake@,$ifGNUmake,;t t
31020 s,@LN_S@,$LN_S,;t t
31023 s,@DATE@,$DATE,;t t
31024 s,@FIND@,$FIND,;t t
31025 s,@GREP@,$GREP,;t t
31026 s,@MKDIR@,$MKDIR,;t t
31028 s,@RANLIB@,$RANLIB,;t t
31029 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31033 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31034 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31035 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31036 s,@BZIP2@,$BZIP2,;t t
31038 s,@DOXYGEN@,$DOXYGEN,;t t
31039 s,@ETAGS@,$ETAGS,;t t
31040 s,@GROFF@,$GROFF,;t t
31041 s,@GZIP@,$GZIP,;t t
31042 s,@POD2HTML@,$POD2HTML,;t t
31043 s,@POD2MAN@,$POD2MAN,;t t
31044 s,@RUNTEST@,$RUNTEST,;t t
31045 s,@TCLSH@,$TCLSH,;t t
31047 s,@EGREP@,$EGREP,;t t
31048 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31049 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31050 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31051 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31052 s,@LIBADD_DL@,$LIBADD_DL,;t t
31053 s,@ECHO@,$ECHO,;t t
31055 s,@ac_ct_AR@,$ac_ct_AR,;t t
31056 s,@STRIP@,$STRIP,;t t
31057 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31058 s,@CXXCPP@,$CXXCPP,;t t
31060 s,@FFLAGS@,$FFLAGS,;t t
31061 s,@ac_ct_F77@,$ac_ct_F77,;t t
31062 s,@LIBTOOL@,$LIBTOOL,;t t
31063 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31064 s,@LLVMGCC@,$LLVMGCC,;t t
31065 s,@LLVMGXX@,$LLVMGXX,;t t
31066 s,@ALLOCA@,$ALLOCA,;t t
31067 s,@MMAP_FILE@,$MMAP_FILE,;t t
31068 s,@LLVMCC1@,$LLVMCC1,;t t
31069 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31070 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31071 s,@SHLIBEXT@,$SHLIBEXT,;t t
31072 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31073 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31074 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31075 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31076 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31077 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31078 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31079 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31080 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31081 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31082 s,@LIBOBJS@,$LIBOBJS,;t t
31083 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31088 cat >>$CONFIG_STATUS <<\_ACEOF
31089 # Split the substitutions into bite-sized pieces for seds with
31090 # small command number limits, like on Digital OSF/1 and HP-UX.
31091 ac_max_sed_lines=48
31092 ac_sed_frag=1 # Number of current file.
31093 ac_beg=1 # First line for current file.
31094 ac_end=$ac_max_sed_lines # Line after last line for current file.
31097 while $ac_more_lines; do
31098 if test $ac_beg -gt 1; then
31099 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31101 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31103 if test ! -s $tmp/subs.frag; then
31104 ac_more_lines=false
31106 # The purpose of the label and of the branching condition is to
31107 # speed up the sed processing (if there are no `@' at all, there
31108 # is no need to browse any of the substitutions).
31109 # These are the two extra sed commands mentioned above.
31111 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31112 if test -z "$ac_sed_cmds"; then
31113 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31115 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31117 ac_sed_frag=`expr $ac_sed_frag + 1`
31119 ac_end=`expr $ac_end + $ac_max_sed_lines`
31122 if test -z "$ac_sed_cmds"; then
31125 fi # test -n "$CONFIG_FILES"
31128 cat >>$CONFIG_STATUS <<\_ACEOF
31129 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31130 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31132 - | *:- | *:-:* ) # input from stdin
31134 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31135 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31136 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31137 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31138 * ) ac_file_in=$ac_file.in ;;
31141 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31142 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31143 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31144 X"$ac_file" : 'X\(//\)[^/]' \| \
31145 X"$ac_file" : 'X\(//\)$' \| \
31146 X"$ac_file" : 'X\(/\)' \| \
31147 . : '\(.\)' 2>/dev/null ||
31149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31150 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31151 /^X\(\/\/\)$/{ s//\1/; q; }
31152 /^X\(\/\).*/{ s//\1/; q; }
31154 { if $as_mkdir_p; then
31159 while test ! -d "$as_dir"; do
31160 as_dirs="$as_dir $as_dirs"
31161 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31162 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31163 X"$as_dir" : 'X\(//\)[^/]' \| \
31164 X"$as_dir" : 'X\(//\)$' \| \
31165 X"$as_dir" : 'X\(/\)' \| \
31166 . : '\(.\)' 2>/dev/null ||
31168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31170 /^X\(\/\/\)$/{ s//\1/; q; }
31171 /^X\(\/\).*/{ s//\1/; q; }
31174 test ! -n "$as_dirs" || mkdir $as_dirs
31175 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31176 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31177 { (exit 1); exit 1; }; }; }
31181 if test "$ac_dir" != .; then
31182 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31183 # A "../" for each directory in $ac_dir_suffix.
31184 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31186 ac_dir_suffix= ac_top_builddir=
31190 .) # No --srcdir option. We are building in place.
31192 if test -z "$ac_top_builddir"; then
31195 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31197 [\\/]* | ?:[\\/]* ) # Absolute path.
31198 ac_srcdir=$srcdir$ac_dir_suffix;
31199 ac_top_srcdir=$srcdir ;;
31200 *) # Relative path.
31201 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31202 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31205 # Do not use `cd foo && pwd` to compute absolute paths, because
31206 # the directories may not exist.
31208 .) ac_abs_builddir="$ac_dir";;
31211 .) ac_abs_builddir=`pwd`;;
31212 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31213 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31216 case $ac_abs_builddir in
31217 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31219 case ${ac_top_builddir}. in
31220 .) ac_abs_top_builddir=$ac_abs_builddir;;
31221 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31222 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31225 case $ac_abs_builddir in
31226 .) ac_abs_srcdir=$ac_srcdir;;
31229 .) ac_abs_srcdir=$ac_abs_builddir;;
31230 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31231 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31234 case $ac_abs_builddir in
31235 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31237 case $ac_top_srcdir in
31238 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31239 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31240 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31246 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31247 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31250 if test x"$ac_file" != x-; then
31251 { echo "$as_me:$LINENO: creating $ac_file" >&5
31252 echo "$as_me: creating $ac_file" >&6;}
31255 # Let's still pretend it is `configure' which instantiates (i.e., don't
31256 # use $as_me), people would be surprised to read:
31257 # /* config.h. Generated by config.status. */
31258 if test x"$ac_file" = x-; then
31261 configure_input="$ac_file. "
31263 configure_input=$configure_input"Generated from `echo $ac_file_in |
31264 sed 's,.*/,,'` by configure."
31266 # First look for the input files in the build tree, otherwise in the
31268 ac_file_inputs=`IFS=:
31269 for f in $ac_file_in; do
31271 -) echo $tmp/stdin ;;
31273 # Absolute (can't be DOS-style, as IFS=:)
31274 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31275 echo "$as_me: error: cannot find input file: $f" >&2;}
31276 { (exit 1); exit 1; }; }
31279 if test -f "$f"; then
31282 elif test -f "$srcdir/$f"; then
31287 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31288 echo "$as_me: error: cannot find input file: $f" >&2;}
31289 { (exit 1); exit 1; }; }
31292 done` || { (exit 1); exit 1; }
31294 cat >>$CONFIG_STATUS <<_ACEOF
31298 cat >>$CONFIG_STATUS <<\_ACEOF
31300 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31301 s,@configure_input@,$configure_input,;t t
31302 s,@srcdir@,$ac_srcdir,;t t
31303 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31304 s,@top_srcdir@,$ac_top_srcdir,;t t
31305 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31306 s,@builddir@,$ac_builddir,;t t
31307 s,@abs_builddir@,$ac_abs_builddir,;t t
31308 s,@top_builddir@,$ac_top_builddir,;t t
31309 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31310 s,@INSTALL@,$ac_INSTALL,;t t
31311 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31313 if test x"$ac_file" != x-; then
31314 mv $tmp/out $ac_file
31322 cat >>$CONFIG_STATUS <<\_ACEOF
31325 # CONFIG_HEADER section.
31328 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31329 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31331 # ac_d sets the value in "#define NAME VALUE" lines.
31332 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31333 ac_dB='[ ].*$,\1#\2'
31336 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31337 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31338 ac_uB='$,\1#\2define\3'
31342 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31343 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31345 - | *:- | *:-:* ) # input from stdin
31347 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31348 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31349 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31350 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31351 * ) ac_file_in=$ac_file.in ;;
31354 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31355 echo "$as_me: creating $ac_file" >&6;}
31357 # First look for the input files in the build tree, otherwise in the
31359 ac_file_inputs=`IFS=:
31360 for f in $ac_file_in; do
31362 -) echo $tmp/stdin ;;
31364 # Absolute (can't be DOS-style, as IFS=:)
31365 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31366 echo "$as_me: error: cannot find input file: $f" >&2;}
31367 { (exit 1); exit 1; }; }
31368 # Do quote $f, to prevent DOS paths from being IFS'd.
31371 if test -f "$f"; then
31374 elif test -f "$srcdir/$f"; then
31379 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31380 echo "$as_me: error: cannot find input file: $f" >&2;}
31381 { (exit 1); exit 1; }; }
31384 done` || { (exit 1); exit 1; }
31385 # Remove the trailing spaces.
31386 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31390 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31391 # `conftest.undefs', that substitutes the proper values into
31392 # config.h.in to produce config.h. The first handles `#define'
31393 # templates, and the second `#undef' templates.
31394 # And first: Protect against being on the right side of a sed subst in
31395 # config.status. Protect against being in an unquoted here document
31396 # in config.status.
31397 rm -f conftest.defines conftest.undefs
31398 # Using a here document instead of a string reduces the quoting nightmare.
31399 # Putting comments in sed scripts is not portable.
31401 # `end' is used to avoid that the second main sed command (meant for
31402 # 0-ary CPP macros) applies to n-ary macro definitions.
31403 # See the Autoconf documentation for `clear'.
31404 cat >confdef2sed.sed <<\_ACEOF
31409 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31411 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31414 # If some macros were called several times there might be several times
31415 # the same #defines, which is useless. Nevertheless, we may not want to
31416 # sort them, since we want the *last* AC-DEFINE to be honored.
31417 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31418 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31419 rm -f confdef2sed.sed
31421 # This sed command replaces #undef with comments. This is necessary, for
31422 # example, in the case of _POSIX_SOURCE, which is predefined and required
31423 # on some systems where configure will not decide to define it.
31424 cat >>conftest.undefs <<\_ACEOF
31425 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31428 # Break up conftest.defines because some shells have a limit on the size
31429 # of here documents, and old seds have small limits too (100 cmds).
31430 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31431 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31432 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31433 echo ' :' >>$CONFIG_STATUS
31434 rm -f conftest.tail
31435 while grep . conftest.defines >/dev/null
31437 # Write a limited-size here document to $tmp/defines.sed.
31438 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31439 # Speed up: don't consider the non `#define' lines.
31440 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31441 # Work around the forget-to-reset-the-flag bug.
31442 echo 't clr' >>$CONFIG_STATUS
31443 echo ': clr' >>$CONFIG_STATUS
31444 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31446 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31448 mv $tmp/out $tmp/in
31450 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31451 rm -f conftest.defines
31452 mv conftest.tail conftest.defines
31454 rm -f conftest.defines
31455 echo ' fi # grep' >>$CONFIG_STATUS
31456 echo >>$CONFIG_STATUS
31458 # Break up conftest.undefs because some shells have a limit on the size
31459 # of here documents, and old seds have small limits too (100 cmds).
31460 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31461 rm -f conftest.tail
31462 while grep . conftest.undefs >/dev/null
31464 # Write a limited-size here document to $tmp/undefs.sed.
31465 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31466 # Speed up: don't consider the non `#undef'
31467 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31468 # Work around the forget-to-reset-the-flag bug.
31469 echo 't clr' >>$CONFIG_STATUS
31470 echo ': clr' >>$CONFIG_STATUS
31471 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31473 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31475 mv $tmp/out $tmp/in
31477 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31478 rm -f conftest.undefs
31479 mv conftest.tail conftest.undefs
31481 rm -f conftest.undefs
31483 cat >>$CONFIG_STATUS <<\_ACEOF
31484 # Let's still pretend it is `configure' which instantiates (i.e., don't
31485 # use $as_me), people would be surprised to read:
31486 # /* config.h. Generated by config.status. */
31487 if test x"$ac_file" = x-; then
31488 echo "/* Generated by configure. */" >$tmp/config.h
31490 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31492 cat $tmp/in >>$tmp/config.h
31494 if test x"$ac_file" != x-; then
31495 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31496 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31497 echo "$as_me: $ac_file is unchanged" >&6;}
31499 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31500 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31501 X"$ac_file" : 'X\(//\)[^/]' \| \
31502 X"$ac_file" : 'X\(//\)$' \| \
31503 X"$ac_file" : 'X\(/\)' \| \
31504 . : '\(.\)' 2>/dev/null ||
31506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31507 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31508 /^X\(\/\/\)$/{ s//\1/; q; }
31509 /^X\(\/\).*/{ s//\1/; q; }
31511 { if $as_mkdir_p; then
31516 while test ! -d "$as_dir"; do
31517 as_dirs="$as_dir $as_dirs"
31518 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31519 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31520 X"$as_dir" : 'X\(//\)[^/]' \| \
31521 X"$as_dir" : 'X\(//\)$' \| \
31522 X"$as_dir" : 'X\(/\)' \| \
31523 . : '\(.\)' 2>/dev/null ||
31525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31526 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31527 /^X\(\/\/\)$/{ s//\1/; q; }
31528 /^X\(\/\).*/{ s//\1/; q; }
31531 test ! -n "$as_dirs" || mkdir $as_dirs
31532 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31533 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31534 { (exit 1); exit 1; }; }; }
31537 mv $tmp/config.h $ac_file
31541 rm -f $tmp/config.h
31545 cat >>$CONFIG_STATUS <<\_ACEOF
31548 # CONFIG_COMMANDS section.
31550 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31551 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31552 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31553 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31554 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31555 X"$ac_dest" : 'X\(//\)[^/]' \| \
31556 X"$ac_dest" : 'X\(//\)$' \| \
31557 X"$ac_dest" : 'X\(/\)' \| \
31558 . : '\(.\)' 2>/dev/null ||
31560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31561 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31562 /^X\(\/\/\)$/{ s//\1/; q; }
31563 /^X\(\/\).*/{ s//\1/; q; }
31565 { if $as_mkdir_p; then
31570 while test ! -d "$as_dir"; do
31571 as_dirs="$as_dir $as_dirs"
31572 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31573 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31574 X"$as_dir" : 'X\(//\)[^/]' \| \
31575 X"$as_dir" : 'X\(//\)$' \| \
31576 X"$as_dir" : 'X\(/\)' \| \
31577 . : '\(.\)' 2>/dev/null ||
31579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31580 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31581 /^X\(\/\/\)$/{ s//\1/; q; }
31582 /^X\(\/\).*/{ s//\1/; q; }
31585 test ! -n "$as_dirs" || mkdir $as_dirs
31586 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31587 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31588 { (exit 1); exit 1; }; }; }
31592 if test "$ac_dir" != .; then
31593 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31594 # A "../" for each directory in $ac_dir_suffix.
31595 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31597 ac_dir_suffix= ac_top_builddir=
31601 .) # No --srcdir option. We are building in place.
31603 if test -z "$ac_top_builddir"; then
31606 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31608 [\\/]* | ?:[\\/]* ) # Absolute path.
31609 ac_srcdir=$srcdir$ac_dir_suffix;
31610 ac_top_srcdir=$srcdir ;;
31611 *) # Relative path.
31612 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31613 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31616 # Do not use `cd foo && pwd` to compute absolute paths, because
31617 # the directories may not exist.
31619 .) ac_abs_builddir="$ac_dir";;
31622 .) ac_abs_builddir=`pwd`;;
31623 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31624 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31627 case $ac_abs_builddir in
31628 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31630 case ${ac_top_builddir}. in
31631 .) ac_abs_top_builddir=$ac_abs_builddir;;
31632 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31633 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31636 case $ac_abs_builddir in
31637 .) ac_abs_srcdir=$ac_srcdir;;
31640 .) ac_abs_srcdir=$ac_abs_builddir;;
31641 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31642 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31645 case $ac_abs_builddir in
31646 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31648 case $ac_top_srcdir in
31649 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31650 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31651 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31656 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31657 echo "$as_me: executing $ac_dest commands" >&6;}
31659 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31660 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31661 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31662 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31663 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31664 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31665 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31666 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31667 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31668 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31669 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31670 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31671 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31672 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31673 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31674 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31675 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31676 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31677 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31678 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31683 cat >>$CONFIG_STATUS <<\_ACEOF
31685 { (exit 0); exit 0; }
31687 chmod +x $CONFIG_STATUS
31688 ac_clean_files=$ac_clean_files_save
31691 # configure is writing to config.log, and then calls config.status.
31692 # config.status does its own redirection, appending to config.log.
31693 # Unfortunately, on DOS this fails, as config.log is still kept open
31694 # by configure, so config.status won't be able to write to it; its
31695 # output is simply discarded. So we exec the FD to /dev/null,
31696 # effectively closing config.log, so it can be properly (re)opened and
31697 # appended to by config.status. When coming back to configure, we
31698 # need to make the FD available again.
31699 if test "$no_create" != yes; then
31701 ac_config_status_args=
31702 test "$silent" = yes &&
31703 ac_config_status_args="$ac_config_status_args --quiet"
31705 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31707 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31708 # would make configure fail if this is the last instruction.
31709 $ac_cs_success || { (exit 1); exit 1; }
31713 # CONFIG_SUBDIRS section.
31715 if test "$no_recursion" != yes; then
31717 # Remove --cache-file and --srcdir arguments so they do not pile up.
31718 ac_sub_configure_args=
31720 for ac_arg in $ac_configure_args; do
31721 if test -n "$ac_prev"; then
31726 -cache-file | --cache-file | --cache-fil | --cache-fi \
31727 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31728 ac_prev=cache_file ;;
31729 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31730 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31733 --config-cache | -C)
31735 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31737 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31739 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31741 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31743 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31747 # Always prepend --prefix to ensure using the same prefix
31748 # in subdir configurations.
31749 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31752 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31754 # Do not complain, so a configure script can configure whichever
31755 # parts of a large source tree are present.
31756 test -d $srcdir/$ac_dir || continue
31758 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31759 echo "$as_me: configuring in $ac_dir" >&6;}
31760 { if $as_mkdir_p; then
31765 while test ! -d "$as_dir"; do
31766 as_dirs="$as_dir $as_dirs"
31767 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31768 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31769 X"$as_dir" : 'X\(//\)[^/]' \| \
31770 X"$as_dir" : 'X\(//\)$' \| \
31771 X"$as_dir" : 'X\(/\)' \| \
31772 . : '\(.\)' 2>/dev/null ||
31774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31775 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31776 /^X\(\/\/\)$/{ s//\1/; q; }
31777 /^X\(\/\).*/{ s//\1/; q; }
31780 test ! -n "$as_dirs" || mkdir $as_dirs
31781 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31782 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31783 { (exit 1); exit 1; }; }; }
31787 if test "$ac_dir" != .; then
31788 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31789 # A "../" for each directory in $ac_dir_suffix.
31790 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31792 ac_dir_suffix= ac_top_builddir=
31796 .) # No --srcdir option. We are building in place.
31798 if test -z "$ac_top_builddir"; then
31801 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31803 [\\/]* | ?:[\\/]* ) # Absolute path.
31804 ac_srcdir=$srcdir$ac_dir_suffix;
31805 ac_top_srcdir=$srcdir ;;
31806 *) # Relative path.
31807 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31808 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31811 # Do not use `cd foo && pwd` to compute absolute paths, because
31812 # the directories may not exist.
31814 .) ac_abs_builddir="$ac_dir";;
31817 .) ac_abs_builddir=`pwd`;;
31818 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31819 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31822 case $ac_abs_builddir in
31823 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31825 case ${ac_top_builddir}. in
31826 .) ac_abs_top_builddir=$ac_abs_builddir;;
31827 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31828 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31831 case $ac_abs_builddir in
31832 .) ac_abs_srcdir=$ac_srcdir;;
31835 .) ac_abs_srcdir=$ac_abs_builddir;;
31836 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31837 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31840 case $ac_abs_builddir in
31841 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31843 case $ac_top_srcdir in
31844 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31845 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31846 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31853 # Check for guested configure; otherwise get Cygnus style configure.
31854 if test -f $ac_srcdir/configure.gnu; then
31855 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31856 elif test -f $ac_srcdir/configure; then
31857 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31858 elif test -f $ac_srcdir/configure.in; then
31859 ac_sub_configure=$ac_configure
31861 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31862 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31866 # The recursion is here.
31867 if test -n "$ac_sub_configure"; then
31868 # Make the cache file name correct relative to the subdirectory.
31869 case $cache_file in
31870 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31871 *) # Relative path.
31872 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31875 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31876 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31877 # The eval makes quoting arguments work.
31878 eval $ac_sub_configure $ac_sub_configure_args \
31879 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31880 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31881 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31882 { (exit 1); exit 1; }; }
31890 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31891 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31892 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
31893 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31894 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31895 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31896 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31897 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31898 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31899 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31900 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}