2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.4.
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.4'
429 PACKAGE_STRING='llvm 1.4'
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-fefw"
441 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
442 # Factoring default headers for most tests.
443 ac_includes_default="\
446 # include <sys/types.h>
449 # include <sys/stat.h>
460 # if !STDC_HEADERS && HAVE_MEMORY_H
466 # include <strings.h>
469 # include <inttypes.h>
479 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV PAX 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'
482 # Initialize some variables set by options.
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
494 program_transform_name=s,x,x,
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
532 # Accept the important Cygnus configure options, so we can diagnose typos.
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
554 cache_file=config.cache ;;
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
560 datadir=$ac_optarg ;;
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "enable_$ac_feature='$ac_optarg'" ;;
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
597 -help | --help | --hel | --he | -h)
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
621 -libdir | --libdir | --libdi | --libd)
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
648 # Obsolete; use --without-fp.
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
712 sbindir=$ac_optarg ;;
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
723 sharedstatedir=$ac_optarg ;;
725 -site | --site | --sit)
727 -site=* | --site=* | --sit=*)
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
750 -version | --version | --versio | --versi | --vers | -V)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
764 eval "with_$ac_package='$ac_optarg'" ;;
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
776 # Obsolete; use --with-x.
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
819 if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838 localstatedir libdir includedir oldincludedir infodir mandir
840 eval ac_val=$`echo $ac_var`
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
869 test "$silent" = yes && exec 6>/dev/null
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
889 if test ! -r $srcdir/$ac_unique_file; then
893 ac_srcdir_defaulted=no
895 if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
962 # Report the --help message.
964 if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
968 \`configure' configures llvm 1.4 to adapt to many kinds of systems.
970 Usage: $0 [OPTION]... [VAR=VALUE]...
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE. See below for descriptions of some of the useful variables.
975 Defaults for the options are specified in brackets.
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
991 Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1002 For better control, use the options below.
1004 Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1028 if test -n "$ac_init_help"; then
1029 case $ac_init_help in
1030 short | recursive ) echo "Configuration of llvm 1.4:";;
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1038 --enable-jit Enable Just In Time Compiling (default is YES)
1039 --enable-doxygen Build doxygen documentation (default is NO)
1040 --enable-ltdl-install install libltdl
1041 --enable-shared[=PKGS]
1042 build shared libraries [default=yes]
1043 --enable-static[=PKGS]
1044 build static libraries [default=yes]
1045 --enable-fast-install[=PKGS]
1046 optimize for fast installation [default=yes]
1047 --disable-libtool-lock avoid locking (might break parallel builds)
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1052 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1054 --with-tclinclude directory where tcl headers are
1055 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1056 --with-pic try to use only PIC/non-PIC objects [default=use
1059 include additional configurations [automatic]
1061 Some influential environment variables:
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1065 nonstandard directory <lib dir>
1066 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067 headers in a nonstandard directory <include dir>
1069 CXX C++ compiler command
1070 CXXFLAGS C++ compiler flags
1071 CXXCPP C++ preprocessor
1072 F77 Fortran 77 compiler command
1073 FFLAGS Fortran 77 compiler flags
1075 Use these variables to override the choices made by `configure' or to help
1076 it to find libraries and programs with nonstandard names/locations.
1078 Report bugs to <llvmbugs@cs.uiuc.edu>.
1082 if test "$ac_init_help" = "recursive"; then
1083 # If there are subdirs, report their specific --help.
1085 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086 test -d $ac_dir || continue
1089 if test "$ac_dir" != .; then
1090 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091 # A "../" for each directory in $ac_dir_suffix.
1092 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1094 ac_dir_suffix= ac_top_builddir=
1098 .) # No --srcdir option. We are building in place.
1100 if test -z "$ac_top_builddir"; then
1103 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1105 [\\/]* | ?:[\\/]* ) # Absolute path.
1106 ac_srcdir=$srcdir$ac_dir_suffix;
1107 ac_top_srcdir=$srcdir ;;
1109 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1113 # Do not use `cd foo && pwd` to compute absolute paths, because
1114 # the directories may not exist.
1116 .) ac_abs_builddir="$ac_dir";;
1119 .) ac_abs_builddir=`pwd`;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1127 case ${ac_top_builddir}. in
1128 .) ac_abs_top_builddir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1133 case $ac_abs_builddir in
1134 .) ac_abs_srcdir=$ac_srcdir;;
1137 .) ac_abs_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1142 case $ac_abs_builddir in
1143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1145 case $ac_top_srcdir in
1146 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1153 # Check for guested configure; otherwise get Cygnus style configure.
1154 if test -f $ac_srcdir/configure.gnu; then
1156 $SHELL $ac_srcdir/configure.gnu --help=recursive
1157 elif test -f $ac_srcdir/configure; then
1159 $SHELL $ac_srcdir/configure --help=recursive
1160 elif test -f $ac_srcdir/configure.ac ||
1161 test -f $ac_srcdir/configure.in; then
1163 $ac_configure --help
1165 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171 test -n "$ac_init_help" && exit 0
1172 if $ac_init_version; then
1175 generated by GNU Autoconf 2.59
1177 Copyright (C) 2003 Free Software Foundation, Inc.
1178 This configure script is free software; the Free Software Foundation
1179 gives unlimited permission to copy, distribute and modify it.
1187 This file contains any messages produced by compilers while
1188 running configure, to aid debugging if configure makes a mistake.
1190 It was created by llvm $as_me 1.4, which was
1191 generated by GNU Autoconf 2.59. Invocation command line was
1202 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1208 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1211 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1212 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1213 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1215 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1216 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1217 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1225 test -z "$as_dir" && as_dir=.
1226 echo "PATH: $as_dir"
1241 # Keep a trace of the command line.
1242 # Strip out --no-create and --no-recursion so they do not pile up.
1243 # Strip out --silent because we don't want to record it for future runs.
1244 # Also quote any args containing shell meta-characters.
1245 # Make two passes to allow for proper duplicate-argument suppression.
1250 ac_must_keep_next=false
1256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258 | -silent | --silent | --silen | --sile | --sil)
1260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1264 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1266 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267 if test $ac_must_keep_next = true; then
1268 ac_must_keep_next=false # Got value, back to normal.
1271 *=* | --config-cache | -C | -disable-* | --disable-* \
1272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274 | -with-* | --with-* | -without-* | --without-* | --x)
1275 case "$ac_configure_args0 " in
1276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1279 -* ) ac_must_keep_next=true ;;
1282 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283 # Get rid of the leading space.
1289 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1292 # When interrupted or exit'd, cleanup temporary files, and complete
1293 # config.log. We remove comments because anyway the quotes in there
1294 # would cause problems or look ugly.
1295 # WARNING: Be sure not to use single quotes in there, as some shells,
1296 # such as our DU 5.0 friend, will then `close' the trap.
1297 trap 'exit_status=$?
1298 # Save into config.log some information that might help in debugging.
1303 ## ---------------- ##
1304 ## Cache variables. ##
1305 ## ---------------- ##
1308 # The following way of writing the cache mishandles newlines in values,
1311 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1314 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1319 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1326 ## ----------------- ##
1327 ## Output variables. ##
1328 ## ----------------- ##
1331 for ac_var in $ac_subst_vars
1333 eval ac_val=$`echo $ac_var`
1334 echo "$ac_var='"'"'$ac_val'"'"'"
1338 if test -n "$ac_subst_files"; then
1345 for ac_var in $ac_subst_files
1347 eval ac_val=$`echo $ac_var`
1348 echo "$ac_var='"'"'$ac_val'"'"'"
1353 if test -s confdefs.h; then
1360 sed "/^$/d" confdefs.h | sort
1363 test "$ac_signal" != 0 &&
1364 echo "$as_me: caught signal $ac_signal"
1365 echo "$as_me: exit $exit_status"
1367 rm -f core *.core &&
1368 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1371 for ac_signal in 1 2 13 15; do
1372 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1377 rm -rf conftest* confdefs.h
1378 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1381 # Predefined preprocessor variables.
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_NAME "$PACKAGE_NAME"
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_STRING "$PACKAGE_STRING"
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1408 # Let the site file select an alternate cache file if it wants to.
1409 # Prefer explicitly selected file to automatically selected ones.
1410 if test -z "$CONFIG_SITE"; then
1411 if test "x$prefix" != xNONE; then
1412 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1414 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1417 for ac_site_file in $CONFIG_SITE; do
1418 if test -r "$ac_site_file"; then
1419 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420 echo "$as_me: loading site script $ac_site_file" >&6;}
1421 sed 's/^/| /' "$ac_site_file" >&5
1426 if test -r "$cache_file"; then
1427 # Some versions of bash will fail to source /dev/null (special
1428 # files actually), so we avoid doing that.
1429 if test -f "$cache_file"; then
1430 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431 echo "$as_me: loading cache $cache_file" >&6;}
1433 [\\/]* | ?:[\\/]* ) . $cache_file;;
1434 *) . ./$cache_file;;
1438 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439 echo "$as_me: creating cache $cache_file" >&6;}
1443 # Check that the precious variables saved in the cache have kept the same
1445 ac_cache_corrupted=false
1446 for ac_var in `(set) 2>&1 |
1447 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449 eval ac_new_set=\$ac_env_${ac_var}_set
1450 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451 eval ac_new_val="\$ac_env_${ac_var}_value"
1452 case $ac_old_set,$ac_new_set in
1454 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456 ac_cache_corrupted=: ;;
1458 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460 ac_cache_corrupted=: ;;
1463 if test "x$ac_old_val" != "x$ac_new_val"; then
1464 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1465 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1466 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1467 echo "$as_me: former value: $ac_old_val" >&2;}
1468 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1469 echo "$as_me: current value: $ac_new_val" >&2;}
1470 ac_cache_corrupted=:
1473 # Pass precious variables to config.status.
1474 if test "$ac_new_set" = set; then
1476 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478 *) ac_arg=$ac_var=$ac_new_val ;;
1480 case " $ac_configure_args " in
1481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1482 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1486 if $ac_cache_corrupted; then
1487 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491 { (exit 1); exit 1; }; }
1495 ac_cpp='$CPP $CPPFLAGS'
1496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1527 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1536 for ac_dir in autoconf $srcdir/autoconf; do
1537 if test -f $ac_dir/install-sh; then
1539 ac_install_sh="$ac_aux_dir/install-sh -c"
1541 elif test -f $ac_dir/install.sh; then
1543 ac_install_sh="$ac_aux_dir/install.sh -c"
1545 elif test -f $ac_dir/shtool; then
1547 ac_install_sh="$ac_aux_dir/shtool install -c"
1551 if test -z "$ac_aux_dir"; then
1552 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1553 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1554 { (exit 1); exit 1; }; }
1556 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1557 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1558 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1561 if test ${srcdir} != "." ; then
1562 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1563 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1564 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1565 { (exit 1); exit 1; }; }
1569 for i in `ls ${srcdir}/projects`
1571 if test -d ${srcdir}/projects/${i} ; then
1576 subdirs="$subdirs projects/sample"
1580 subdirs="$subdirs projects/Stacker"
1584 subdirs="$subdirs projects/llvm-test"
1588 subdirs="$subdirs projects/llvm-reopt"
1592 subdirs="$subdirs projects/llvm-gcc"
1596 subdirs="$subdirs projects/llvm-java"
1600 subdirs="$subdirs projects/llvm-tv"
1604 subdirs="$subdirs projects/llvm-fefw"
1608 subdirs="$subdirs projects/poolalloc"
1611 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1612 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1619 # Make sure we can run config.sub.
1620 $ac_config_sub sun4 >/dev/null 2>&1 ||
1621 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1622 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1623 { (exit 1); exit 1; }; }
1625 echo "$as_me:$LINENO: checking build system type" >&5
1626 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1627 if test "${ac_cv_build+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 ac_cv_build_alias=$build_alias
1631 test -z "$ac_cv_build_alias" &&
1632 ac_cv_build_alias=`$ac_config_guess`
1633 test -z "$ac_cv_build_alias" &&
1634 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1635 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1636 { (exit 1); exit 1; }; }
1637 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1638 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1639 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1640 { (exit 1); exit 1; }; }
1643 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1644 echo "${ECHO_T}$ac_cv_build" >&6
1646 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1647 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1648 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651 echo "$as_me:$LINENO: checking host system type" >&5
1652 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1653 if test "${ac_cv_host+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 ac_cv_host_alias=$host_alias
1657 test -z "$ac_cv_host_alias" &&
1658 ac_cv_host_alias=$ac_cv_build_alias
1659 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1660 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1661 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1662 { (exit 1); exit 1; }; }
1665 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1666 echo "${ECHO_T}$ac_cv_host" >&6
1668 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1669 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1670 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1673 echo "$as_me:$LINENO: checking target system type" >&5
1674 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1675 if test "${ac_cv_target+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 ac_cv_target_alias=$target_alias
1679 test "x$ac_cv_target_alias" = "x" &&
1680 ac_cv_target_alias=$ac_cv_host_alias
1681 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1682 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1683 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1684 { (exit 1); exit 1; }; }
1687 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1688 echo "${ECHO_T}$ac_cv_target" >&6
1689 target=$ac_cv_target
1690 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1691 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1692 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1695 # The aliases save the names the user supplied, while $host etc.
1696 # will get canonicalized.
1697 test -n "$target_alias" &&
1698 test "$program_prefix$program_suffix$program_transform_name" = \
1700 program_prefix=${target_alias}-
1702 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1703 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1704 if test "${llvm_cv_os_type+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1709 llvm_cv_os_type="AIX"
1710 llvm_cv_platform_type="Unix" ;;
1712 llvm_cv_os_type="Cygwin"
1713 llvm_cv_platform_type="Unix" ;;
1715 llvm_cv_os_type="Darwin"
1716 llvm_cv_platform_type="Unix" ;;
1718 llvm_cv_os_type="FreeBSD"
1719 llvm_cv_platform_type="Unix" ;;
1721 llvm_cv_os_type="Interix"
1722 llvm_cv_platform_type="Unix" ;;
1724 llvm_cv_os_type="Linux"
1725 llvm_cv_platform_type="Unix" ;;
1727 llvm_cv_os_type="SunOS"
1728 llvm_cv_platform_type="Unix" ;;
1730 llvm_cv_os_type="Win32"
1731 llvm_cv_platform_type="Win32" ;;
1733 llvm_cv_os_type="MingW"
1734 llvm_cv_platform_type="Win32" ;;
1736 llvm_cv_os_type="Unknown"
1737 llvm_cv_platform_type="Unknown" ;;
1740 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1741 echo "${ECHO_T}$llvm_cv_os_type" >&6
1743 if test "$llvm_cv_os_type" = "Unknown" ; then
1744 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1745 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1746 { (exit 1); exit 1; }; }
1752 case $llvm_cv_platform_type in
1755 cat >>confdefs.h <<\_ACEOF
1756 #define LLVM_ON_UNIX 1
1766 cat >>confdefs.h <<\_ACEOF
1767 #define LLVM_ON_WIN32 1
1778 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1783 echo "$as_me:$LINENO: checking target architecture" >&5
1784 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1785 if test "${llvm_cv_target_arch+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 i?86-*) llvm_cv_target_arch="x86" ;;
1790 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
1791 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1792 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1793 *) llvm_cv_target_arch="Unknown" ;;
1796 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1797 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1799 if test "$llvm_cv_target_arch" = "Unknown" ; then
1800 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1801 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1804 ARCH=$llvm_cv_target_arch
1808 ac_cpp='$CPP $CPPFLAGS'
1809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1812 if test -n "$ac_tool_prefix"; then
1813 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1814 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1815 echo "$as_me:$LINENO: checking for $ac_word" >&5
1816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1817 if test "${ac_cv_prog_CC+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1820 if test -n "$CC"; then
1821 ac_cv_prog_CC="$CC" # Let the user override the test.
1823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 test -z "$as_dir" && as_dir=.
1828 for ac_exec_ext in '' $ac_executable_extensions; do
1829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1830 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840 if test -n "$CC"; then
1841 echo "$as_me:$LINENO: result: $CC" >&5
1842 echo "${ECHO_T}$CC" >&6
1844 echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1849 if test -z "$ac_cv_prog_CC"; then
1851 # Extract the first word of "gcc", so it can be a program name with args.
1852 set dummy gcc; ac_word=$2
1853 echo "$as_me:$LINENO: checking for $ac_word" >&5
1854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 if test -n "$ac_ct_CC"; then
1859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 test -z "$as_dir" && as_dir=.
1866 for ac_exec_ext in '' $ac_executable_extensions; do
1867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1868 ac_cv_prog_ac_ct_CC="gcc"
1869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1878 if test -n "$ac_ct_CC"; then
1879 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1880 echo "${ECHO_T}$ac_ct_CC" >&6
1882 echo "$as_me:$LINENO: result: no" >&5
1883 echo "${ECHO_T}no" >&6
1891 if test -z "$CC"; then
1892 if test -n "$ac_tool_prefix"; then
1893 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1894 set dummy ${ac_tool_prefix}cc; ac_word=$2
1895 echo "$as_me:$LINENO: checking for $ac_word" >&5
1896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1897 if test "${ac_cv_prog_CC+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1900 if test -n "$CC"; then
1901 ac_cv_prog_CC="$CC" # Let the user override the test.
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 test -z "$as_dir" && as_dir=.
1908 for ac_exec_ext in '' $ac_executable_extensions; do
1909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1910 ac_cv_prog_CC="${ac_tool_prefix}cc"
1911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 if test -n "$CC"; then
1921 echo "$as_me:$LINENO: result: $CC" >&5
1922 echo "${ECHO_T}$CC" >&6
1924 echo "$as_me:$LINENO: result: no" >&5
1925 echo "${ECHO_T}no" >&6
1929 if test -z "$ac_cv_prog_CC"; then
1931 # Extract the first word of "cc", so it can be a program name with args.
1932 set dummy cc; ac_word=$2
1933 echo "$as_me:$LINENO: checking for $ac_word" >&5
1934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1935 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 if test -n "$ac_ct_CC"; then
1939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 test -z "$as_dir" && as_dir=.
1946 for ac_exec_ext in '' $ac_executable_extensions; do
1947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1948 ac_cv_prog_ac_ct_CC="cc"
1949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1958 if test -n "$ac_ct_CC"; then
1959 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1960 echo "${ECHO_T}$ac_ct_CC" >&6
1962 echo "$as_me:$LINENO: result: no" >&5
1963 echo "${ECHO_T}no" >&6
1972 if test -z "$CC"; then
1973 # Extract the first word of "cc", so it can be a program name with args.
1974 set dummy cc; ac_word=$2
1975 echo "$as_me:$LINENO: checking for $ac_word" >&5
1976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1977 if test "${ac_cv_prog_CC+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 if test -n "$CC"; then
1981 ac_cv_prog_CC="$CC" # Let the user override the test.
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 test -z "$as_dir" && as_dir=.
1989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1991 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1992 ac_prog_rejected=yes
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 if test $ac_prog_rejected = yes; then
2003 # We found a bogon in the path, so make sure we never use it.
2004 set dummy $ac_cv_prog_CC
2006 if test $# != 0; then
2007 # We chose a different compiler from the bogus one.
2008 # However, it has the same basename, so the bogon will be chosen
2009 # first if we set CC to just the basename; use the full file name.
2011 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2017 if test -n "$CC"; then
2018 echo "$as_me:$LINENO: result: $CC" >&5
2019 echo "${ECHO_T}$CC" >&6
2021 echo "$as_me:$LINENO: result: no" >&5
2022 echo "${ECHO_T}no" >&6
2026 if test -z "$CC"; then
2027 if test -n "$ac_tool_prefix"; then
2030 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2031 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2032 echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034 if test "${ac_cv_prog_CC+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 if test -n "$CC"; then
2038 ac_cv_prog_CC="$CC" # Let the user override the test.
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
2046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057 if test -n "$CC"; then
2058 echo "$as_me:$LINENO: result: $CC" >&5
2059 echo "${ECHO_T}$CC" >&6
2061 echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6
2065 test -n "$CC" && break
2068 if test -z "$CC"; then
2072 # Extract the first word of "$ac_prog", so it can be a program name with args.
2073 set dummy $ac_prog; ac_word=$2
2074 echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 if test -n "$ac_ct_CC"; then
2080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2089 ac_cv_prog_ac_ct_CC="$ac_prog"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2099 if test -n "$ac_ct_CC"; then
2100 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2101 echo "${ECHO_T}$ac_ct_CC" >&6
2103 echo "$as_me:$LINENO: result: no" >&5
2104 echo "${ECHO_T}no" >&6
2107 test -n "$ac_ct_CC" && break
2116 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2117 See \`config.log' for more details." >&5
2118 echo "$as_me: error: no acceptable C compiler found in \$PATH
2119 See \`config.log' for more details." >&2;}
2120 { (exit 1); exit 1; }; }
2122 # Provide some information about the compiler.
2123 echo "$as_me:$LINENO:" \
2124 "checking for C compiler version" >&5
2125 ac_compiler=`set X $ac_compile; echo $2`
2126 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2127 (eval $ac_compiler --version </dev/null >&5) 2>&5
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }
2131 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2132 (eval $ac_compiler -v </dev/null >&5) 2>&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }
2136 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2137 (eval $ac_compiler -V </dev/null >&5) 2>&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }
2142 cat >conftest.$ac_ext <<_ACEOF
2145 cat confdefs.h >>conftest.$ac_ext
2146 cat >>conftest.$ac_ext <<_ACEOF
2147 /* end confdefs.h. */
2157 ac_clean_files_save=$ac_clean_files
2158 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2159 # Try to create an executable without -o first, disregard a.out.
2160 # It will help us diagnose broken compilers, and finding out an intuition
2162 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2163 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2164 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2165 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2166 (eval $ac_link_default) 2>&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; then
2170 # Find the output, starting from the most likely. This scheme is
2171 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2174 # Be careful to initialize this variable, since it used to be cached.
2175 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2177 # b.out is created by i960 compilers.
2178 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2180 test -f "$ac_file" || continue
2182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2185 # This is the source file.
2188 # We found the default executable, but exeext='' is most
2192 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2193 # FIXME: I believe we export ac_cv_exeext for Libtool,
2194 # but it would be cool to find out if it's true. Does anybody
2195 # maintain Libtool? --akim.
2203 echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2206 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2207 See \`config.log' for more details." >&5
2208 echo "$as_me: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&2;}
2210 { (exit 77); exit 77; }; }
2213 ac_exeext=$ac_cv_exeext
2214 echo "$as_me:$LINENO: result: $ac_file" >&5
2215 echo "${ECHO_T}$ac_file" >&6
2217 # Check the compiler produces executables we can run. If not, either
2218 # the compiler is broken, or we cross compile.
2219 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2220 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2221 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2222 # If not cross compiling, check that we can run a simple program.
2223 if test "$cross_compiling" != yes; then
2224 if { ac_try='./$ac_file'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2232 if test "$cross_compiling" = maybe; then
2235 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2236 If you meant to cross compile, use \`--host'.
2237 See \`config.log' for more details." >&5
2238 echo "$as_me: error: cannot run C compiled programs.
2239 If you meant to cross compile, use \`--host'.
2240 See \`config.log' for more details." >&2;}
2241 { (exit 1); exit 1; }; }
2245 echo "$as_me:$LINENO: result: yes" >&5
2246 echo "${ECHO_T}yes" >&6
2248 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2249 ac_clean_files=$ac_clean_files_save
2250 # Check the compiler produces executables we can run. If not, either
2251 # the compiler is broken, or we cross compile.
2252 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2253 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2254 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2255 echo "${ECHO_T}$cross_compiling" >&6
2257 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2258 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2260 (eval $ac_link) 2>&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; then
2264 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2265 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2266 # work properly (i.e., refer to `conftest.exe'), while it won't with
2268 for ac_file in conftest.exe conftest conftest.*; do
2269 test -f "$ac_file" || continue
2271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2272 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2279 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2280 See \`config.log' for more details." >&5
2281 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2282 See \`config.log' for more details." >&2;}
2283 { (exit 1); exit 1; }; }
2286 rm -f conftest$ac_cv_exeext
2287 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2288 echo "${ECHO_T}$ac_cv_exeext" >&6
2290 rm -f conftest.$ac_ext
2291 EXEEXT=$ac_cv_exeext
2293 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2294 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2295 if test "${ac_cv_objext+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 cat >conftest.$ac_ext <<_ACEOF
2301 cat confdefs.h >>conftest.$ac_ext
2302 cat >>conftest.$ac_ext <<_ACEOF
2303 /* end confdefs.h. */
2313 rm -f conftest.o conftest.obj
2314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315 (eval $ac_compile) 2>&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; then
2319 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2322 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2330 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2331 See \`config.log' for more details." >&5
2332 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2333 See \`config.log' for more details." >&2;}
2334 { (exit 1); exit 1; }; }
2337 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2339 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2340 echo "${ECHO_T}$ac_cv_objext" >&6
2341 OBJEXT=$ac_cv_objext
2343 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2344 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2345 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 cat >conftest.$ac_ext <<_ACEOF
2351 cat confdefs.h >>conftest.$ac_ext
2352 cat >>conftest.$ac_ext <<_ACEOF
2353 /* end confdefs.h. */
2366 rm -f conftest.$ac_objext
2367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2368 (eval $ac_compile) 2>conftest.er1
2370 grep -v '^ *+' conftest.er1 >conftest.err
2372 cat conftest.err >&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); } &&
2375 { ac_try='test -z "$ac_c_werror_flag"
2376 || test ! -s conftest.err'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; } &&
2382 { ac_try='test -s conftest.$ac_objext'
2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; }; then
2390 echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2396 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2399 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2400 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2401 GCC=`test $ac_compiler_gnu = yes && echo yes`
2402 ac_test_CFLAGS=${CFLAGS+set}
2403 ac_save_CFLAGS=$CFLAGS
2405 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2406 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2407 if test "${ac_cv_prog_cc_g+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 cat >conftest.$ac_ext <<_ACEOF
2413 cat confdefs.h >>conftest.$ac_ext
2414 cat >>conftest.$ac_ext <<_ACEOF
2415 /* end confdefs.h. */
2425 rm -f conftest.$ac_objext
2426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427 (eval $ac_compile) 2>conftest.er1
2429 grep -v '^ *+' conftest.er1 >conftest.err
2431 cat conftest.err >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); } &&
2434 { ac_try='test -z "$ac_c_werror_flag"
2435 || test ! -s conftest.err'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; } &&
2441 { ac_try='test -s conftest.$ac_objext'
2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; }; then
2449 echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2457 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2458 if test "$ac_test_CFLAGS" = set; then
2459 CFLAGS=$ac_save_CFLAGS
2460 elif test $ac_cv_prog_cc_g = yes; then
2461 if test "$GCC" = yes; then
2467 if test "$GCC" = yes; then
2473 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2474 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2475 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 ac_cv_prog_cc_stdc=no
2480 cat >conftest.$ac_ext <<_ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2488 #include <sys/types.h>
2489 #include <sys/stat.h>
2490 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2491 struct buf { int x; };
2492 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2493 static char *e (p, i)
2499 static char *f (char * (*g) (char **, int), char **p, ...)
2504 s = g (p, va_arg (v,int));
2509 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2510 function prototypes and stuff, but not '\xHH' hex character constants.
2511 These don't provoke an error unfortunately, instead are silently treated
2512 as 'x'. The following induces an error, until -std1 is added to get
2513 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2514 array size at least. It's necessary to write '\x00'==0 to get something
2515 that's true only with -std1. */
2516 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2518 int test (int i, double x);
2519 struct s1 {int (*f) (int a);};
2520 struct s2 {int (*f) (double a);};
2521 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2527 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2532 # Don't try gcc -ansi; that turns off useful extensions and
2533 # breaks some systems' header files.
2534 # AIX -qlanglvl=ansi
2535 # Ultrix and OSF/1 -std1
2536 # HP-UX 10.20 and later -Ae
2537 # HP-UX older versions -Aa -D_HPUX_SOURCE
2538 # SVR4 -Xc -D__EXTENSIONS__
2539 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2541 CC="$ac_save_CC $ac_arg"
2542 rm -f conftest.$ac_objext
2543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2544 (eval $ac_compile) 2>conftest.er1
2546 grep -v '^ *+' conftest.er1 >conftest.err
2548 cat conftest.err >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try='test -z "$ac_c_werror_flag"
2552 || test ! -s conftest.err'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 ac_cv_prog_cc_stdc=$ac_arg
2567 echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.$ac_ext >&5
2571 rm -f conftest.err conftest.$ac_objext
2573 rm -f conftest.$ac_ext conftest.$ac_objext
2578 case "x$ac_cv_prog_cc_stdc" in
2580 echo "$as_me:$LINENO: result: none needed" >&5
2581 echo "${ECHO_T}none needed" >&6 ;;
2583 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2584 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2585 CC="$CC $ac_cv_prog_cc_stdc" ;;
2588 # Some people use a C++ compiler to compile C. Since we use `exit',
2589 # in C++ we need to declare it. In case someone uses the same compiler
2590 # for both compiling C and C++ we need to have the C++ compiler decide
2591 # the declaration of exit, since it's the most demanding environment.
2592 cat >conftest.$ac_ext <<_ACEOF
2597 rm -f conftest.$ac_objext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599 (eval $ac_compile) 2>conftest.er1
2601 grep -v '^ *+' conftest.er1 >conftest.err
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 { ac_try='test -z "$ac_c_werror_flag"
2607 || test ! -s conftest.err'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; } &&
2613 { ac_try='test -s conftest.$ac_objext'
2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; }; then
2619 for ac_declaration in \
2621 'extern "C" void std::exit (int) throw (); using std::exit;' \
2622 'extern "C" void std::exit (int); using std::exit;' \
2623 'extern "C" void exit (int) throw ();' \
2624 'extern "C" void exit (int);' \
2627 cat >conftest.$ac_ext <<_ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2643 rm -f conftest.$ac_objext
2644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645 (eval $ac_compile) 2>conftest.er1
2647 grep -v '^ *+' conftest.er1 >conftest.err
2649 cat conftest.err >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } &&
2652 { ac_try='test -z "$ac_c_werror_flag"
2653 || test ! -s conftest.err'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; } &&
2659 { ac_try='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2673 cat >conftest.$ac_ext <<_ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2688 rm -f conftest.$ac_objext
2689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690 (eval $ac_compile) 2>conftest.er1
2692 grep -v '^ *+' conftest.er1 >conftest.err
2694 cat conftest.err >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } &&
2697 { ac_try='test -z "$ac_c_werror_flag"
2698 || test ! -s conftest.err'
2699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; } &&
2704 { ac_try='test -s conftest.$ac_objext'
2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; }; then
2712 echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2719 if test -n "$ac_declaration"; then
2720 echo '#ifdef __cplusplus' >>confdefs.h
2721 echo $ac_declaration >>confdefs.h
2722 echo '#endif' >>confdefs.h
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732 ac_cpp='$CPP $CPPFLAGS'
2733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2739 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2740 if test "${ac_cv_c_bigendian+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 # See if sys/param.h defines the BYTE_ORDER macro.
2744 cat >conftest.$ac_ext <<_ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h. */
2750 #include <sys/types.h>
2751 #include <sys/param.h>
2756 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2764 rm -f conftest.$ac_objext
2765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766 (eval $ac_compile) 2>conftest.er1
2768 grep -v '^ *+' conftest.er1 >conftest.err
2770 cat conftest.err >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); } &&
2773 { ac_try='test -z "$ac_c_werror_flag"
2774 || test ! -s conftest.err'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; } &&
2780 { ac_try='test -s conftest.$ac_objext'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; }; then
2786 # It does; now see whether it defined to BIG_ENDIAN or not.
2787 cat >conftest.$ac_ext <<_ACEOF
2790 cat confdefs.h >>conftest.$ac_ext
2791 cat >>conftest.$ac_ext <<_ACEOF
2792 /* end confdefs.h. */
2793 #include <sys/types.h>
2794 #include <sys/param.h>
2799 #if BYTE_ORDER != BIG_ENDIAN
2807 rm -f conftest.$ac_objext
2808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2809 (eval $ac_compile) 2>conftest.er1
2811 grep -v '^ *+' conftest.er1 >conftest.err
2813 cat conftest.err >&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); } &&
2816 { ac_try='test -z "$ac_c_werror_flag"
2817 || test ! -s conftest.err'
2818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; } &&
2823 { ac_try='test -s conftest.$ac_objext'
2824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }; }; then
2829 ac_cv_c_bigendian=yes
2831 echo "$as_me: failed program was:" >&5
2832 sed 's/^/| /' conftest.$ac_ext >&5
2834 ac_cv_c_bigendian=no
2836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2838 echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2841 # It does not; compile a test program.
2842 if test "$cross_compiling" = yes; then
2843 # try to guess the endianness by grepping values into an object file
2844 ac_cv_c_bigendian=unknown
2845 cat >conftest.$ac_ext <<_ACEOF
2848 cat confdefs.h >>conftest.$ac_ext
2849 cat >>conftest.$ac_ext <<_ACEOF
2850 /* end confdefs.h. */
2851 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2852 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2853 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2854 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2855 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2856 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2860 _ascii (); _ebcdic ();
2865 rm -f conftest.$ac_objext
2866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2867 (eval $ac_compile) 2>conftest.er1
2869 grep -v '^ *+' conftest.er1 >conftest.err
2871 cat conftest.err >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); } &&
2874 { ac_try='test -z "$ac_c_werror_flag"
2875 || test ! -s conftest.err'
2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; } &&
2881 { ac_try='test -s conftest.$ac_objext'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
2887 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2888 ac_cv_c_bigendian=yes
2890 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2891 if test "$ac_cv_c_bigendian" = unknown; then
2892 ac_cv_c_bigendian=no
2894 # finding both strings is unlikely to happen, but who knows?
2895 ac_cv_c_bigendian=unknown
2899 echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2905 cat >conftest.$ac_ext <<_ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h. */
2914 /* Are we little or big endian? From Harbison&Steele. */
2918 char c[sizeof (long)];
2921 exit (u.c[sizeof (long) - 1] == 1);
2924 rm -f conftest$ac_exeext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2926 (eval $ac_link) 2>&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; }; then
2935 ac_cv_c_bigendian=no
2937 echo "$as_me: program exited with status $ac_status" >&5
2938 echo "$as_me: failed program was:" >&5
2939 sed 's/^/| /' conftest.$ac_ext >&5
2942 ac_cv_c_bigendian=yes
2944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2949 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2950 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2951 case $ac_cv_c_bigendian in
2959 { { echo "$as_me:$LINENO: error: unknown endianness
2960 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2961 echo "$as_me: error: unknown endianness
2962 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2963 { (exit 1); exit 1; }; } ;;
2968 # Check whether --enable-optimized or --disable-optimized was given.
2969 if test "${enable_optimized+set}" = set; then
2970 enableval="$enable_optimized"
2975 if test ${enableval} = "no" ; then
2979 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2983 # Check whether --enable-jit or --disable-jit was given.
2984 if test "${enable_jit+set}" = set; then
2985 enableval="$enable_jit"
2990 if test ${enableval} = "no"
2995 case "$llvm_cv_target_arch" in
2996 x86) JIT=TARGET_HAS_JIT=1
2998 Sparc) JIT=TARGET_HAS_JIT=1
3000 PowerPC) JIT=TARGET_HAS_JIT=1
3009 # Check whether --enable-doxygen or --disable-doxygen was given.
3010 if test "${enable_doxygen+set}" = set; then
3011 enableval="$enable_doxygen"
3016 case "$enableval" in
3017 yes) ENABLE_DOXYGEN=1
3019 no) ENABLE_DOXYGEN=0
3021 default) ENABLE_DOXYGEN=0
3023 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3024 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3025 { (exit 1); exit 1; }; } ;;
3029 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3030 if test "${with_llvmgccdir+set}" = set; then
3031 withval="$with_llvmgccdir"
3037 default) WITH_LLVMGCCDIR=default ;;
3038 /*) WITH_LLVMGCCDIR=$withval ;;
3039 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3040 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3041 { (exit 1); exit 1; }; } ;;
3046 ac_cpp='$CPP $CPPFLAGS'
3047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3050 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3051 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3052 # On Suns, sometimes $CPP names a directory.
3053 if test -n "$CPP" && test -d "$CPP"; then
3056 if test -z "$CPP"; then
3057 if test "${ac_cv_prog_CPP+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 # Double quotes because CPP needs to be expanded
3061 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3064 for ac_c_preproc_warn_flag in '' yes
3066 # Use a header file that comes with gcc, so configuring glibc
3067 # with a fresh cross-compiler works.
3068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3069 # <limits.h> exists even on freestanding compilers.
3070 # On the NeXT, cc -E runs the code through the compiler's parser,
3071 # not just through cpp. "Syntax error" is here to catch this case.
3072 cat >conftest.$ac_ext <<_ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3079 # include <limits.h>
3081 # include <assert.h>
3085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3088 grep -v '^ *+' conftest.er1 >conftest.err
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } >/dev/null; then
3093 if test -s conftest.err; then
3094 ac_cpp_err=$ac_c_preproc_warn_flag
3095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3102 if test -z "$ac_cpp_err"; then
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3108 # Broken: fails on valid input.
3111 rm -f conftest.err conftest.$ac_ext
3113 # OK, works on sane cases. Now check whether non-existent headers
3114 # can be detected and how.
3115 cat >conftest.$ac_ext <<_ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3121 #include <ac_nonexistent.h>
3123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3126 grep -v '^ *+' conftest.er1 >conftest.err
3128 cat conftest.err >&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); } >/dev/null; then
3131 if test -s conftest.err; then
3132 ac_cpp_err=$ac_c_preproc_warn_flag
3133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3140 if test -z "$ac_cpp_err"; then
3141 # Broken: success on invalid input.
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3147 # Passes both tests.
3151 rm -f conftest.err conftest.$ac_ext
3154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3155 rm -f conftest.err conftest.$ac_ext
3156 if $ac_preproc_ok; then
3168 echo "$as_me:$LINENO: result: $CPP" >&5
3169 echo "${ECHO_T}$CPP" >&6
3171 for ac_c_preproc_warn_flag in '' yes
3173 # Use a header file that comes with gcc, so configuring glibc
3174 # with a fresh cross-compiler works.
3175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3176 # <limits.h> exists even on freestanding compilers.
3177 # On the NeXT, cc -E runs the code through the compiler's parser,
3178 # not just through cpp. "Syntax error" is here to catch this case.
3179 cat >conftest.$ac_ext <<_ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3186 # include <limits.h>
3188 # include <assert.h>
3192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3195 grep -v '^ *+' conftest.er1 >conftest.err
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } >/dev/null; then
3200 if test -s conftest.err; then
3201 ac_cpp_err=$ac_c_preproc_warn_flag
3202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3209 if test -z "$ac_cpp_err"; then
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3215 # Broken: fails on valid input.
3218 rm -f conftest.err conftest.$ac_ext
3220 # OK, works on sane cases. Now check whether non-existent headers
3221 # can be detected and how.
3222 cat >conftest.$ac_ext <<_ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3228 #include <ac_nonexistent.h>
3230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3233 grep -v '^ *+' conftest.er1 >conftest.err
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } >/dev/null; then
3238 if test -s conftest.err; then
3239 ac_cpp_err=$ac_c_preproc_warn_flag
3240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3247 if test -z "$ac_cpp_err"; then
3248 # Broken: success on invalid input.
3251 echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3254 # Passes both tests.
3258 rm -f conftest.err conftest.$ac_ext
3261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3262 rm -f conftest.err conftest.$ac_ext
3263 if $ac_preproc_ok; then
3266 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3267 See \`config.log' for more details." >&5
3268 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3269 See \`config.log' for more details." >&2;}
3270 { (exit 1); exit 1; }; }
3274 ac_cpp='$CPP $CPPFLAGS'
3275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280 ac_cpp='$CPP $CPPFLAGS'
3281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3284 if test -n "$ac_tool_prefix"; then
3287 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3288 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3289 echo "$as_me:$LINENO: checking for $ac_word" >&5
3290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3291 if test "${ac_cv_prog_CC+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 if test -n "$CC"; then
3295 ac_cv_prog_CC="$CC" # Let the user override the test.
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 test -z "$as_dir" && as_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3304 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3314 if test -n "$CC"; then
3315 echo "$as_me:$LINENO: result: $CC" >&5
3316 echo "${ECHO_T}$CC" >&6
3318 echo "$as_me:$LINENO: result: no" >&5
3319 echo "${ECHO_T}no" >&6
3322 test -n "$CC" && break
3325 if test -z "$CC"; then
3329 # Extract the first word of "$ac_prog", so it can be a program name with args.
3330 set dummy $ac_prog; ac_word=$2
3331 echo "$as_me:$LINENO: checking for $ac_word" >&5
3332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3333 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 if test -n "$ac_ct_CC"; then
3337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346 ac_cv_prog_ac_ct_CC="$ac_prog"
3347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3356 if test -n "$ac_ct_CC"; then
3357 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3358 echo "${ECHO_T}$ac_ct_CC" >&6
3360 echo "$as_me:$LINENO: result: no" >&5
3361 echo "${ECHO_T}no" >&6
3364 test -n "$ac_ct_CC" && break
3371 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3372 See \`config.log' for more details." >&5
3373 echo "$as_me: error: no acceptable C compiler found in \$PATH
3374 See \`config.log' for more details." >&2;}
3375 { (exit 1); exit 1; }; }
3377 # Provide some information about the compiler.
3378 echo "$as_me:$LINENO:" \
3379 "checking for C compiler version" >&5
3380 ac_compiler=`set X $ac_compile; echo $2`
3381 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3382 (eval $ac_compiler --version </dev/null >&5) 2>&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }
3386 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3387 (eval $ac_compiler -v </dev/null >&5) 2>&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }
3391 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3392 (eval $ac_compiler -V </dev/null >&5) 2>&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }
3397 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3398 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3399 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 cat >conftest.$ac_ext <<_ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3420 rm -f conftest.$ac_objext
3421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3422 (eval $ac_compile) 2>conftest.er1
3424 grep -v '^ *+' conftest.er1 >conftest.err
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } &&
3429 { ac_try='test -z "$ac_c_werror_flag"
3430 || test ! -s conftest.err'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; } &&
3436 { ac_try='test -s conftest.$ac_objext'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; }; then
3444 echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3450 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3453 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3454 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3455 GCC=`test $ac_compiler_gnu = yes && echo yes`
3456 ac_test_CFLAGS=${CFLAGS+set}
3457 ac_save_CFLAGS=$CFLAGS
3459 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3460 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3461 if test "${ac_cv_prog_cc_g+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 cat >conftest.$ac_ext <<_ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3479 rm -f conftest.$ac_objext
3480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3481 (eval $ac_compile) 2>conftest.er1
3483 grep -v '^ *+' conftest.er1 >conftest.err
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } &&
3488 { ac_try='test -z "$ac_c_werror_flag"
3489 || test ! -s conftest.err'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; } &&
3495 { ac_try='test -s conftest.$ac_objext'
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3510 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3511 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3512 if test "$ac_test_CFLAGS" = set; then
3513 CFLAGS=$ac_save_CFLAGS
3514 elif test $ac_cv_prog_cc_g = yes; then
3515 if test "$GCC" = yes; then
3521 if test "$GCC" = yes; then
3527 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3528 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3529 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3532 ac_cv_prog_cc_stdc=no
3534 cat >conftest.$ac_ext <<_ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3542 #include <sys/types.h>
3543 #include <sys/stat.h>
3544 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3545 struct buf { int x; };
3546 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3547 static char *e (p, i)
3553 static char *f (char * (*g) (char **, int), char **p, ...)
3558 s = g (p, va_arg (v,int));
3563 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3564 function prototypes and stuff, but not '\xHH' hex character constants.
3565 These don't provoke an error unfortunately, instead are silently treated
3566 as 'x'. The following induces an error, until -std1 is added to get
3567 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3568 array size at least. It's necessary to write '\x00'==0 to get something
3569 that's true only with -std1. */
3570 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3572 int test (int i, double x);
3573 struct s1 {int (*f) (int a);};
3574 struct s2 {int (*f) (double a);};
3575 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3581 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3586 # Don't try gcc -ansi; that turns off useful extensions and
3587 # breaks some systems' header files.
3588 # AIX -qlanglvl=ansi
3589 # Ultrix and OSF/1 -std1
3590 # HP-UX 10.20 and later -Ae
3591 # HP-UX older versions -Aa -D_HPUX_SOURCE
3592 # SVR4 -Xc -D__EXTENSIONS__
3593 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3595 CC="$ac_save_CC $ac_arg"
3596 rm -f conftest.$ac_objext
3597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3598 (eval $ac_compile) 2>conftest.er1
3600 grep -v '^ *+' conftest.er1 >conftest.err
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try='test -z "$ac_c_werror_flag"
3606 || test ! -s conftest.err'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; } &&
3612 { ac_try='test -s conftest.$ac_objext'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3618 ac_cv_prog_cc_stdc=$ac_arg
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3625 rm -f conftest.err conftest.$ac_objext
3627 rm -f conftest.$ac_ext conftest.$ac_objext
3632 case "x$ac_cv_prog_cc_stdc" in
3634 echo "$as_me:$LINENO: result: none needed" >&5
3635 echo "${ECHO_T}none needed" >&6 ;;
3637 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3638 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3639 CC="$CC $ac_cv_prog_cc_stdc" ;;
3642 # Some people use a C++ compiler to compile C. Since we use `exit',
3643 # in C++ we need to declare it. In case someone uses the same compiler
3644 # for both compiling C and C++ we need to have the C++ compiler decide
3645 # the declaration of exit, since it's the most demanding environment.
3646 cat >conftest.$ac_ext <<_ACEOF
3651 rm -f conftest.$ac_objext
3652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3653 (eval $ac_compile) 2>conftest.er1
3655 grep -v '^ *+' conftest.er1 >conftest.err
3657 cat conftest.err >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } &&
3660 { ac_try='test -z "$ac_c_werror_flag"
3661 || test ! -s conftest.err'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; } &&
3667 { ac_try='test -s conftest.$ac_objext'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; }; then
3673 for ac_declaration in \
3675 'extern "C" void std::exit (int) throw (); using std::exit;' \
3676 'extern "C" void std::exit (int); using std::exit;' \
3677 'extern "C" void exit (int) throw ();' \
3678 'extern "C" void exit (int);' \
3681 cat >conftest.$ac_ext <<_ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3697 rm -f conftest.$ac_objext
3698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3699 (eval $ac_compile) 2>conftest.er1
3701 grep -v '^ *+' conftest.er1 >conftest.err
3703 cat conftest.err >&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); } &&
3706 { ac_try='test -z "$ac_c_werror_flag"
3707 || test ! -s conftest.err'
3708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }; } &&
3713 { ac_try='test -s conftest.$ac_objext'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; }; then
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3727 cat >conftest.$ac_ext <<_ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3742 rm -f conftest.$ac_objext
3743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3744 (eval $ac_compile) 2>conftest.er1
3746 grep -v '^ *+' conftest.er1 >conftest.err
3748 cat conftest.err >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); } &&
3751 { ac_try='test -z "$ac_c_werror_flag"
3752 || test ! -s conftest.err'
3753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; } &&
3758 { ac_try='test -s conftest.$ac_objext'
3759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); }; }; then
3766 echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3773 if test -n "$ac_declaration"; then
3774 echo '#ifdef __cplusplus' >>confdefs.h
3775 echo $ac_declaration >>confdefs.h
3776 echo '#endif' >>confdefs.h
3780 echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.$ac_ext >&5
3784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3786 ac_cpp='$CPP $CPPFLAGS'
3787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3792 ac_cpp='$CXXCPP $CPPFLAGS'
3793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3796 if test -n "$ac_tool_prefix"; then
3797 for ac_prog in $CCC g++
3799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3801 echo "$as_me:$LINENO: checking for $ac_word" >&5
3802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3803 if test "${ac_cv_prog_CXX+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 if test -n "$CXX"; then
3807 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 if test -n "$CXX"; then
3827 echo "$as_me:$LINENO: result: $CXX" >&5
3828 echo "${ECHO_T}$CXX" >&6
3830 echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6
3834 test -n "$CXX" && break
3837 if test -z "$CXX"; then
3839 for ac_prog in $CCC g++
3841 # Extract the first word of "$ac_prog", so it can be a program name with args.
3842 set dummy $ac_prog; ac_word=$2
3843 echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 if test -n "$ac_ct_CXX"; then
3849 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858 ac_cv_prog_ac_ct_CXX="$ac_prog"
3859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3868 if test -n "$ac_ct_CXX"; then
3869 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3870 echo "${ECHO_T}$ac_ct_CXX" >&6
3872 echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3876 test -n "$ac_ct_CXX" && break
3878 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3884 # Provide some information about the compiler.
3885 echo "$as_me:$LINENO:" \
3886 "checking for C++ compiler version" >&5
3887 ac_compiler=`set X $ac_compile; echo $2`
3888 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3889 (eval $ac_compiler --version </dev/null >&5) 2>&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }
3893 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3894 (eval $ac_compiler -v </dev/null >&5) 2>&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }
3898 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3899 (eval $ac_compiler -V </dev/null >&5) 2>&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }
3904 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3905 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3906 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 cat >conftest.$ac_ext <<_ACEOF
3912 cat confdefs.h >>conftest.$ac_ext
3913 cat >>conftest.$ac_ext <<_ACEOF
3914 /* end confdefs.h. */
3927 rm -f conftest.$ac_objext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3929 (eval $ac_compile) 2>conftest.er1
3931 grep -v '^ *+' conftest.er1 >conftest.err
3933 cat conftest.err >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } &&
3936 { ac_try='test -z "$ac_cxx_werror_flag"
3937 || test ! -s conftest.err'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; } &&
3943 { ac_try='test -s conftest.$ac_objext'
3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; }; then
3951 echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3957 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3960 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3961 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3962 GXX=`test $ac_compiler_gnu = yes && echo yes`
3963 ac_test_CXXFLAGS=${CXXFLAGS+set}
3964 ac_save_CXXFLAGS=$CXXFLAGS
3966 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3967 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3968 if test "${ac_cv_prog_cxx_g+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 cat >conftest.$ac_ext <<_ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3986 rm -f conftest.$ac_objext
3987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988 (eval $ac_compile) 2>conftest.er1
3990 grep -v '^ *+' conftest.er1 >conftest.err
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } &&
3995 { ac_try='test -z "$ac_cxx_werror_flag"
3996 || test ! -s conftest.err'
3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }; } &&
4002 { ac_try='test -s conftest.$ac_objext'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; }; then
4008 ac_cv_prog_cxx_g=yes
4010 echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4017 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4018 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4019 if test "$ac_test_CXXFLAGS" = set; then
4020 CXXFLAGS=$ac_save_CXXFLAGS
4021 elif test $ac_cv_prog_cxx_g = yes; then
4022 if test "$GXX" = yes; then
4028 if test "$GXX" = yes; then
4034 for ac_declaration in \
4036 'extern "C" void std::exit (int) throw (); using std::exit;' \
4037 'extern "C" void std::exit (int); using std::exit;' \
4038 'extern "C" void exit (int) throw ();' \
4039 'extern "C" void exit (int);' \
4042 cat >conftest.$ac_ext <<_ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4058 rm -f conftest.$ac_objext
4059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4060 (eval $ac_compile) 2>conftest.er1
4062 grep -v '^ *+' conftest.er1 >conftest.err
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } &&
4067 { ac_try='test -z "$ac_cxx_werror_flag"
4068 || test ! -s conftest.err'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; } &&
4074 { ac_try='test -s conftest.$ac_objext'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4082 echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4088 cat >conftest.$ac_ext <<_ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h. */
4103 rm -f conftest.$ac_objext
4104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4105 (eval $ac_compile) 2>conftest.er1
4107 grep -v '^ *+' conftest.er1 >conftest.err
4109 cat conftest.err >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); } &&
4112 { ac_try='test -z "$ac_cxx_werror_flag"
4113 || test ! -s conftest.err'
4114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; } &&
4119 { ac_try='test -s conftest.$ac_objext'
4120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; }; then
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4134 if test -n "$ac_declaration"; then
4135 echo '#ifdef __cplusplus' >>confdefs.h
4136 echo $ac_declaration >>confdefs.h
4137 echo '#endif' >>confdefs.h
4141 ac_cpp='$CPP $CPPFLAGS'
4142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146 echo "$as_me:$LINENO: checking " >&5
4147 echo $ECHO_N "checking ... $ECHO_C" >&6
4148 if test "${ac_cv_has_flex+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 for ac_prog in flex lex
4153 # Extract the first word of "$ac_prog", so it can be a program name with args.
4154 set dummy $ac_prog; ac_word=$2
4155 echo "$as_me:$LINENO: checking for $ac_word" >&5
4156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4157 if test "${ac_cv_prog_LEX+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 if test -n "$LEX"; then
4161 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 test -z "$as_dir" && as_dir=.
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4170 ac_cv_prog_LEX="$ac_prog"
4171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 if test -n "$LEX"; then
4181 echo "$as_me:$LINENO: result: $LEX" >&5
4182 echo "${ECHO_T}$LEX" >&6
4184 echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6
4188 test -n "$LEX" && break
4190 test -n "$LEX" || LEX=":"
4192 if test -z "$LEXLIB"
4194 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4195 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4196 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 ac_check_lib_save_LIBS=$LIBS
4201 cat >conftest.$ac_ext <<_ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4208 /* Override any gcc2 internal prototype to avoid an error. */
4212 /* We use char because int might match the return type of a gcc2
4213 builtin and then its argument prototype would still apply. */
4223 rm -f conftest.$ac_objext conftest$ac_exeext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4225 (eval $ac_link) 2>conftest.er1
4227 grep -v '^ *+' conftest.er1 >conftest.err
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
4232 { ac_try='test -z "$ac_c_werror_flag"
4233 || test ! -s conftest.err'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; } &&
4239 { ac_try='test -s conftest$ac_exeext'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 ac_cv_lib_fl_yywrap=yes
4247 echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4250 ac_cv_lib_fl_yywrap=no
4252 rm -f conftest.err conftest.$ac_objext \
4253 conftest$ac_exeext conftest.$ac_ext
4254 LIBS=$ac_check_lib_save_LIBS
4256 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4257 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4258 if test $ac_cv_lib_fl_yywrap = yes; then
4261 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4262 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4263 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 ac_check_lib_save_LIBS=$LIBS
4268 cat >conftest.$ac_ext <<_ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4275 /* Override any gcc2 internal prototype to avoid an error. */
4279 /* We use char because int might match the return type of a gcc2
4280 builtin and then its argument prototype would still apply. */
4290 rm -f conftest.$ac_objext conftest$ac_exeext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4292 (eval $ac_link) 2>conftest.er1
4294 grep -v '^ *+' conftest.er1 >conftest.err
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } &&
4299 { ac_try='test -z "$ac_c_werror_flag"
4300 || test ! -s conftest.err'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; } &&
4306 { ac_try='test -s conftest$ac_exeext'
4307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4312 ac_cv_lib_l_yywrap=yes
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4317 ac_cv_lib_l_yywrap=no
4319 rm -f conftest.err conftest.$ac_objext \
4320 conftest$ac_exeext conftest.$ac_ext
4321 LIBS=$ac_check_lib_save_LIBS
4323 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4324 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4325 if test $ac_cv_lib_l_yywrap = yes; then
4333 if test "x$LEX" != "x:"; then
4334 echo "$as_me:$LINENO: checking lex output file root" >&5
4335 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4336 if test "${ac_cv_prog_lex_root+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 # The minimal lex program is just a single line: %%. But some broken lexes
4340 # (Solaris, I think it was) want two %% lines, so accommodate them.
4341 cat >conftest.l <<_ACEOF
4345 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4346 (eval $LEX conftest.l) 2>&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }
4350 if test -f lex.yy.c; then
4351 ac_cv_prog_lex_root=lex.yy
4352 elif test -f lexyy.c; then
4353 ac_cv_prog_lex_root=lexyy
4355 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4356 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4357 { (exit 1); exit 1; }; }
4360 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4361 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4363 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4365 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4366 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4367 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 # POSIX says lex can declare yytext either as a pointer or an array; the
4371 # default is implementation-dependent. Figure out which it is, since
4372 # not all implementations provide the %pointer and %array declarations.
4373 ac_cv_prog_lex_yytext_pointer=no
4374 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4376 LIBS="$LIBS $LEXLIB"
4377 cat >conftest.$ac_ext <<_ACEOF
4378 `cat $LEX_OUTPUT_ROOT.c`
4380 rm -f conftest.$ac_objext conftest$ac_exeext
4381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4382 (eval $ac_link) 2>conftest.er1
4384 grep -v '^ *+' conftest.er1 >conftest.err
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } &&
4389 { ac_try='test -z "$ac_c_werror_flag"
4390 || test ! -s conftest.err'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; } &&
4396 { ac_try='test -s conftest$ac_exeext'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4402 ac_cv_prog_lex_yytext_pointer=yes
4404 echo "$as_me: failed program was:" >&5
4405 sed 's/^/| /' conftest.$ac_ext >&5
4408 rm -f conftest.err conftest.$ac_objext \
4409 conftest$ac_exeext conftest.$ac_ext
4411 rm -f "${LEX_OUTPUT_ROOT}.c"
4414 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4415 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4416 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4418 cat >>confdefs.h <<\_ACEOF
4419 #define YYTEXT_POINTER 1
4427 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4428 echo "${ECHO_T}$ac_cv_has_flex" >&6
4429 if test "$LEX" != "flex"; then
4430 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4431 echo "$as_me: error: flex not found but required" >&2;}
4432 { (exit 1); exit 1; }; }
4438 echo "$as_me:$LINENO: checking " >&5
4439 echo $ECHO_N "checking ... $ECHO_C" >&6
4440 if test "${llvm_cv_has_bison+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 for ac_prog in 'bison -y' byacc
4445 # Extract the first word of "$ac_prog", so it can be a program name with args.
4446 set dummy $ac_prog; ac_word=$2
4447 echo "$as_me:$LINENO: checking for $ac_word" >&5
4448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4449 if test "${ac_cv_prog_YACC+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 if test -n "$YACC"; then
4453 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4462 ac_cv_prog_YACC="$ac_prog"
4463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 YACC=$ac_cv_prog_YACC
4472 if test -n "$YACC"; then
4473 echo "$as_me:$LINENO: result: $YACC" >&5
4474 echo "${ECHO_T}$YACC" >&6
4476 echo "$as_me:$LINENO: result: no" >&5
4477 echo "${ECHO_T}no" >&6
4480 test -n "$YACC" && break
4482 test -n "$YACC" || YACC="yacc"
4485 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4486 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4487 if test "$YACC" != "bison -y"; then
4488 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4489 echo "$as_me: error: bison not found but required" >&2;}
4490 { (exit 1); exit 1; }; }
4496 echo "$as_me:$LINENO: checking for GNU make" >&5
4497 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4498 if test "${llvm_cv_gnu_make_command+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 llvm_cv_gnu_make_command=''
4502 for a in "$MAKE" make gmake gnumake ; do
4503 if test -z "$a" ; then continue ; fi ;
4504 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4506 llvm_cv_gnu_make_command=$a ;
4511 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4512 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4513 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4517 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4518 echo "${ECHO_T}\"Not found\"" >&6;
4522 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4523 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4525 if test "$LN_S" = "ln -s"; then
4526 echo "$as_me:$LINENO: result: yes" >&5
4527 echo "${ECHO_T}yes" >&6
4529 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4530 echo "${ECHO_T}no, using $LN_S" >&6
4533 # Extract the first word of "cmp", so it can be a program name with args.
4534 set dummy cmp; ac_word=$2
4535 echo "$as_me:$LINENO: checking for $ac_word" >&5
4536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4537 if test "${ac_cv_path_CMP+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4552 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4565 if test -n "$CMP"; then
4566 echo "$as_me:$LINENO: result: $CMP" >&5
4567 echo "${ECHO_T}$CMP" >&6
4569 echo "$as_me:$LINENO: result: no" >&5
4570 echo "${ECHO_T}no" >&6
4573 # Extract the first word of "cp", so it can be a program name with args.
4574 set dummy cp; ac_word=$2
4575 echo "$as_me:$LINENO: checking for $ac_word" >&5
4576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4577 if test "${ac_cv_path_CP+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4592 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4605 if test -n "$CP"; then
4606 echo "$as_me:$LINENO: result: $CP" >&5
4607 echo "${ECHO_T}$CP" >&6
4609 echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6
4613 # Extract the first word of "date", so it can be a program name with args.
4614 set dummy date; ac_word=$2
4615 echo "$as_me:$LINENO: checking for $ac_word" >&5
4616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4617 if test "${ac_cv_path_DATE+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4632 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4643 DATE=$ac_cv_path_DATE
4645 if test -n "$DATE"; then
4646 echo "$as_me:$LINENO: result: $DATE" >&5
4647 echo "${ECHO_T}$DATE" >&6
4649 echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6
4653 # Extract the first word of "find", so it can be a program name with args.
4654 set dummy find; ac_word=$2
4655 echo "$as_me:$LINENO: checking for $ac_word" >&5
4656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4657 if test "${ac_cv_path_FIND+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4672 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4683 FIND=$ac_cv_path_FIND
4685 if test -n "$FIND"; then
4686 echo "$as_me:$LINENO: result: $FIND" >&5
4687 echo "${ECHO_T}$FIND" >&6
4689 echo "$as_me:$LINENO: result: no" >&5
4690 echo "${ECHO_T}no" >&6
4693 # Extract the first word of "grep", so it can be a program name with args.
4694 set dummy grep; ac_word=$2
4695 echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4697 if test "${ac_cv_path_GREP+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4712 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4723 GREP=$ac_cv_path_GREP
4725 if test -n "$GREP"; then
4726 echo "$as_me:$LINENO: result: $GREP" >&5
4727 echo "${ECHO_T}$GREP" >&6
4729 echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6
4733 # Extract the first word of "mkdir", so it can be a program name with args.
4734 set dummy mkdir; ac_word=$2
4735 echo "$as_me:$LINENO: checking for $ac_word" >&5
4736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4737 if test "${ac_cv_path_MKDIR+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4752 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4763 MKDIR=$ac_cv_path_MKDIR
4765 if test -n "$MKDIR"; then
4766 echo "$as_me:$LINENO: result: $MKDIR" >&5
4767 echo "${ECHO_T}$MKDIR" >&6
4769 echo "$as_me:$LINENO: result: no" >&5
4770 echo "${ECHO_T}no" >&6
4773 # Extract the first word of "mv", so it can be a program name with args.
4774 set dummy mv; ac_word=$2
4775 echo "$as_me:$LINENO: checking for $ac_word" >&5
4776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4777 if test "${ac_cv_path_MV+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4782 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4792 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4805 if test -n "$MV"; then
4806 echo "$as_me:$LINENO: result: $MV" >&5
4807 echo "${ECHO_T}$MV" >&6
4809 echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6
4813 # Extract the first word of "pax", so it can be a program name with args.
4814 set dummy pax; ac_word=$2
4815 echo "$as_me:$LINENO: checking for $ac_word" >&5
4816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4817 if test "${ac_cv_path_PAX+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4845 if test -n "$PAX"; then
4846 echo "$as_me:$LINENO: result: $PAX" >&5
4847 echo "${ECHO_T}$PAX" >&6
4849 echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6
4853 if test -n "$ac_tool_prefix"; then
4854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4856 echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4858 if test "${ac_cv_prog_RANLIB+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 if test -n "$RANLIB"; then
4862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 RANLIB=$ac_cv_prog_RANLIB
4881 if test -n "$RANLIB"; then
4882 echo "$as_me:$LINENO: result: $RANLIB" >&5
4883 echo "${ECHO_T}$RANLIB" >&6
4885 echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4890 if test -z "$ac_cv_prog_RANLIB"; then
4891 ac_ct_RANLIB=$RANLIB
4892 # Extract the first word of "ranlib", so it can be a program name with args.
4893 set dummy ranlib; ac_word=$2
4894 echo "$as_me:$LINENO: checking for $ac_word" >&5
4895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4896 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 if test -n "$ac_ct_RANLIB"; then
4900 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909 ac_cv_prog_ac_ct_RANLIB="ranlib"
4910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4919 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4920 if test -n "$ac_ct_RANLIB"; then
4921 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4922 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4924 echo "$as_me:$LINENO: result: no" >&5
4925 echo "${ECHO_T}no" >&6
4928 RANLIB=$ac_ct_RANLIB
4930 RANLIB="$ac_cv_prog_RANLIB"
4933 # Extract the first word of "rm", so it can be a program name with args.
4934 set dummy rm; ac_word=$2
4935 echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4937 if test "${ac_cv_path_RM+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4952 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4965 if test -n "$RM"; then
4966 echo "$as_me:$LINENO: result: $RM" >&5
4967 echo "${ECHO_T}$RM" >&6
4969 echo "$as_me:$LINENO: result: no" >&5
4970 echo "${ECHO_T}no" >&6
4973 # Extract the first word of "sed", so it can be a program name with args.
4974 set dummy sed; ac_word=$2
4975 echo "$as_me:$LINENO: checking for $ac_word" >&5
4976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4977 if test "${ac_cv_path_SED+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5005 if test -n "$SED"; then
5006 echo "$as_me:$LINENO: result: $SED" >&5
5007 echo "${ECHO_T}$SED" >&6
5009 echo "$as_me:$LINENO: result: no" >&5
5010 echo "${ECHO_T}no" >&6
5013 # Extract the first word of "tar", so it can be a program name with args.
5014 set dummy tar; ac_word=$2
5015 echo "$as_me:$LINENO: checking for $ac_word" >&5
5016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5017 if test "${ac_cv_path_TAR+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5032 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5045 if test -n "$TAR"; then
5046 echo "$as_me:$LINENO: result: $TAR" >&5
5047 echo "${ECHO_T}$TAR" >&6
5049 echo "$as_me:$LINENO: result: no" >&5
5050 echo "${ECHO_T}no" >&6
5054 # Find a good install program. We prefer a C program (faster),
5055 # so one script is as good as another. But avoid the broken or
5056 # incompatible versions:
5057 # SysV /etc/install, /usr/sbin/install
5058 # SunOS /usr/etc/install
5059 # IRIX /sbin/install
5061 # AmigaOS /C/install, which installs bootblocks on floppy discs
5062 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5063 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5064 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5065 # OS/2's system install, which has a completely different semantic
5066 # ./install, which can be erroneously created by make from ./install.sh.
5067 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5068 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5069 if test -z "$INSTALL"; then
5070 if test "${ac_cv_path_install+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 test -z "$as_dir" && as_dir=.
5078 # Account for people who put trailing slashes in PATH elements.
5080 ./ | .// | /cC/* | \
5081 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5082 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5085 # OSF1 and SCO ODT 3.0 have their own names for install.
5086 # Don't use installbsd from OSF since it installs stuff as root
5088 for ac_prog in ginstall scoinst install; do
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5091 if test $ac_prog = install &&
5092 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5093 # AIX install. It has an incompatible calling convention.
5095 elif test $ac_prog = install &&
5096 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5097 # program-specific install script used by HP pwplus--don't use.
5100 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5112 if test "${ac_cv_path_install+set}" = set; then
5113 INSTALL=$ac_cv_path_install
5115 # As a last resort, use the slow shell script. We don't cache a
5116 # path for INSTALL within a source directory, because that will
5117 # break other packages using the cache if that directory is
5118 # removed, or if the path is relative.
5119 INSTALL=$ac_install_sh
5122 echo "$as_me:$LINENO: result: $INSTALL" >&5
5123 echo "${ECHO_T}$INSTALL" >&6
5125 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5126 # It thinks the first close brace ends the variable substitution.
5127 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5129 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5131 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5134 # Extract the first word of "bzip2", so it can be a program name with args.
5135 set dummy bzip2; ac_word=$2
5136 echo "$as_me:$LINENO: checking for $ac_word" >&5
5137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5138 if test "${ac_cv_path_BZIP2+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5153 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5164 BZIP2=$ac_cv_path_BZIP2
5166 if test -n "$BZIP2"; then
5167 echo "$as_me:$LINENO: result: $BZIP2" >&5
5168 echo "${ECHO_T}$BZIP2" >&6
5170 echo "$as_me:$LINENO: result: no" >&5
5171 echo "${ECHO_T}no" >&6
5174 # Extract the first word of "dot", so it can be a program name with args.
5175 set dummy dot; ac_word=$2
5176 echo "$as_me:$LINENO: checking for $ac_word" >&5
5177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5178 if test "${ac_cv_path_DOT+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5193 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5206 if test -n "$DOT"; then
5207 echo "$as_me:$LINENO: result: $DOT" >&5
5208 echo "${ECHO_T}$DOT" >&6
5210 echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6
5214 # Extract the first word of "doxygen", so it can be a program name with args.
5215 set dummy doxygen; ac_word=$2
5216 echo "$as_me:$LINENO: checking for $ac_word" >&5
5217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5218 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5244 DOXYGEN=$ac_cv_path_DOXYGEN
5246 if test -n "$DOXYGEN"; then
5247 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5248 echo "${ECHO_T}$DOXYGEN" >&6
5250 echo "$as_me:$LINENO: result: no" >&5
5251 echo "${ECHO_T}no" >&6
5254 # Extract the first word of "etags", so it can be a program name with args.
5255 set dummy etags; ac_word=$2
5256 echo "$as_me:$LINENO: checking for $ac_word" >&5
5257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5258 if test "${ac_cv_path_ETAGS+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5284 ETAGS=$ac_cv_path_ETAGS
5286 if test -n "$ETAGS"; then
5287 echo "$as_me:$LINENO: result: $ETAGS" >&5
5288 echo "${ECHO_T}$ETAGS" >&6
5290 echo "$as_me:$LINENO: result: no" >&5
5291 echo "${ECHO_T}no" >&6
5294 # Extract the first word of "groff", so it can be a program name with args.
5295 set dummy groff; ac_word=$2
5296 echo "$as_me:$LINENO: checking for $ac_word" >&5
5297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5298 if test "${ac_cv_path_GROFF+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5324 GROFF=$ac_cv_path_GROFF
5326 if test -n "$GROFF"; then
5327 echo "$as_me:$LINENO: result: $GROFF" >&5
5328 echo "${ECHO_T}$GROFF" >&6
5330 echo "$as_me:$LINENO: result: no" >&5
5331 echo "${ECHO_T}no" >&6
5334 # Extract the first word of "gzip", so it can be a program name with args.
5335 set dummy gzip; ac_word=$2
5336 echo "$as_me:$LINENO: checking for $ac_word" >&5
5337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5338 if test "${ac_cv_path_GZIP+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5364 GZIP=$ac_cv_path_GZIP
5366 if test -n "$GZIP"; then
5367 echo "$as_me:$LINENO: result: $GZIP" >&5
5368 echo "${ECHO_T}$GZIP" >&6
5370 echo "$as_me:$LINENO: result: no" >&5
5371 echo "${ECHO_T}no" >&6
5374 # Extract the first word of "pod2html", so it can be a program name with args.
5375 set dummy pod2html; ac_word=$2
5376 echo "$as_me:$LINENO: checking for $ac_word" >&5
5377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5378 if test "${ac_cv_path_POD2HTML+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5393 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5404 POD2HTML=$ac_cv_path_POD2HTML
5406 if test -n "$POD2HTML"; then
5407 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5408 echo "${ECHO_T}$POD2HTML" >&6
5410 echo "$as_me:$LINENO: result: no" >&5
5411 echo "${ECHO_T}no" >&6
5414 # Extract the first word of "pod2man", so it can be a program name with args.
5415 set dummy pod2man; ac_word=$2
5416 echo "$as_me:$LINENO: checking for $ac_word" >&5
5417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5418 if test "${ac_cv_path_POD2MAN+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5444 POD2MAN=$ac_cv_path_POD2MAN
5446 if test -n "$POD2MAN"; then
5447 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5448 echo "${ECHO_T}$POD2MAN" >&6
5450 echo "$as_me:$LINENO: result: no" >&5
5451 echo "${ECHO_T}no" >&6
5454 # Extract the first word of "runtest", so it can be a program name with args.
5455 set dummy runtest; ac_word=$2
5456 echo "$as_me:$LINENO: checking for $ac_word" >&5
5457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5458 if test "${ac_cv_path_RUNTEST+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5484 RUNTEST=$ac_cv_path_RUNTEST
5486 if test -n "$RUNTEST"; then
5487 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5488 echo "${ECHO_T}$RUNTEST" >&6
5490 echo "$as_me:$LINENO: result: no" >&5
5491 echo "${ECHO_T}no" >&6
5496 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5497 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5499 # Check whether --with-tclinclude or --without-tclinclude was given.
5500 if test "${with_tclinclude+set}" = set; then
5501 withval="$with_tclinclude"
5502 with_tclinclude=${withval}
5506 if test "${ac_cv_path_tclsh+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 if test x"${with_tclinclude}" != x ; then
5511 if test -f ${with_tclinclude}/tclsh ; then
5512 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5513 elif test -f ${with_tclinclude}/src/tclsh ; then
5514 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5516 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5517 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5518 { (exit 1); exit 1; }; }
5522 if test x"${ac_cv_path_tclsh}" = x ; then
5523 echo "$as_me:$LINENO: result: none" >&5
5524 echo "${ECHO_T}none" >&6
5525 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
5527 # Extract the first word of "$ac_prog", so it can be a program name with args.
5528 set dummy $ac_prog; ac_word=$2
5529 echo "$as_me:$LINENO: checking for $ac_word" >&5
5530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5531 if test "${ac_cv_path_TCLSH+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5536 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 test -z "$as_dir" && as_dir=.
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5546 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 TCLSH=$ac_cv_path_TCLSH
5558 if test -n "$TCLSH"; then
5559 echo "$as_me:$LINENO: result: $TCLSH" >&5
5560 echo "${ECHO_T}$TCLSH" >&6
5562 echo "$as_me:$LINENO: result: no" >&5
5563 echo "${ECHO_T}no" >&6
5566 test -n "$TCLSH" && break
5569 if test x"${TCLSH}" = x ; then
5570 ac_cv_path_tclsh='';
5572 ac_cv_path_tclsh="${TCLSH}";
5575 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5576 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5577 TCLSH="${ac_cv_path_tclsh}"
5583 # Extract the first word of "zip", so it can be a program name with args.
5584 set dummy zip; ac_word=$2
5585 echo "$as_me:$LINENO: checking for $ac_word" >&5
5586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5587 if test "${ac_cv_path_ZIP+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 test -z "$as_dir" && as_dir=.
5600 for ac_exec_ext in '' $ac_executable_extensions; do
5601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5615 if test -n "$ZIP"; then
5616 echo "$as_me:$LINENO: result: $ZIP" >&5
5617 echo "${ECHO_T}$ZIP" >&6
5619 echo "$as_me:$LINENO: result: no" >&5
5620 echo "${ECHO_T}no" >&6
5624 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5625 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5626 if test "${llvm_cv_link_use_r+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 ac_cpp='$CPP $CPPFLAGS'
5631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5636 CFLAGS="$CFLAGS -Wl,-R."
5637 cat >conftest.$ac_ext <<_ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5647 int main() { return 0; }
5652 rm -f conftest.$ac_objext conftest$ac_exeext
5653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5654 (eval $ac_link) 2>conftest.er1
5656 grep -v '^ *+' conftest.er1 >conftest.err
5658 cat conftest.err >&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } &&
5661 { ac_try='test -z "$ac_c_werror_flag"
5662 || test ! -s conftest.err'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; } &&
5668 { ac_try='test -s conftest$ac_exeext'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5674 llvm_cv_link_use_r=yes
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5679 llvm_cv_link_use_r=no
5681 rm -f conftest.err conftest.$ac_objext \
5682 conftest$ac_exeext conftest.$ac_ext
5685 ac_cpp='$CPP $CPPFLAGS'
5686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5692 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5693 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5694 if test "$llvm_cv_link_use_r" = yes ; then
5696 cat >>confdefs.h <<\_ACEOF
5697 #define HAVE_LINK_R 1
5705 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5706 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5707 if test "${ac_cv_c_const+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 cat >conftest.$ac_ext <<_ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5720 /* FIXME: Include the comments suggested by Paul. */
5722 /* Ultrix mips cc rejects this. */
5723 typedef int charset[2];
5725 /* SunOS 4.1.1 cc rejects this. */
5726 char const *const *ccp;
5728 /* NEC SVR4.0.2 mips cc rejects this. */
5729 struct point {int x, y;};
5730 static struct point const zero = {0,0};
5731 /* AIX XL C 1.02.0.0 rejects this.
5732 It does not let you subtract one const X* pointer from another in
5733 an arm of an if-expression whose if-part is not a constant
5735 const char *g = "string";
5736 ccp = &g + (g ? g-g : 0);
5737 /* HPUX 7.0 cc rejects these. */
5740 ccp = (char const *const *) p;
5741 { /* SCO 3.2v4 cc rejects this. */
5743 char const *s = 0 ? (char *) 0 : (char const *) 0;
5747 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5749 const int *foo = &x[0];
5752 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5753 typedef const int *iptr;
5757 { /* AIX XL C 1.02.0.0 rejects this saying
5758 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5759 struct s { int j; const int *ap[3]; };
5760 struct s *b; b->j = 5;
5762 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5771 rm -f conftest.$ac_objext
5772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5773 (eval $ac_compile) 2>conftest.er1
5775 grep -v '^ *+' conftest.er1 >conftest.err
5777 cat conftest.err >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } &&
5780 { ac_try='test -z "$ac_c_werror_flag"
5781 || test ! -s conftest.err'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; } &&
5787 { ac_try='test -s conftest.$ac_objext'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5802 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5803 echo "${ECHO_T}$ac_cv_c_const" >&6
5804 if test $ac_cv_c_const = no; then
5806 cat >>confdefs.h <<\_ACEOF
5813 echo "$as_me:$LINENO: checking for egrep" >&5
5814 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5815 if test "${ac_cv_prog_egrep+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5819 then ac_cv_prog_egrep='grep -E'
5820 else ac_cv_prog_egrep='egrep'
5823 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5824 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5825 EGREP=$ac_cv_prog_egrep
5828 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5829 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5830 if test "${ac_cv_header_stdc+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 cat >conftest.$ac_ext <<_ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5852 rm -f conftest.$ac_objext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5854 (eval $ac_compile) 2>conftest.er1
5856 grep -v '^ *+' conftest.er1 >conftest.err
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try='test -z "$ac_c_werror_flag"
5862 || test ! -s conftest.err'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; } &&
5868 { ac_try='test -s conftest.$ac_objext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 ac_cv_header_stdc=yes
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5879 ac_cv_header_stdc=no
5881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5883 if test $ac_cv_header_stdc = yes; then
5884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5885 cat >conftest.$ac_ext <<_ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h. */
5894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5895 $EGREP "memchr" >/dev/null 2>&1; then
5898 ac_cv_header_stdc=no
5904 if test $ac_cv_header_stdc = yes; then
5905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5906 cat >conftest.$ac_ext <<_ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5916 $EGREP "free" >/dev/null 2>&1; then
5919 ac_cv_header_stdc=no
5925 if test $ac_cv_header_stdc = yes; then
5926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5927 if test "$cross_compiling" = yes; then
5930 cat >conftest.$ac_ext <<_ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5937 #if ((' ' & 0x0FF) == 0x020)
5938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5941 # define ISLOWER(c) \
5942 (('a' <= (c) && (c) <= 'i') \
5943 || ('j' <= (c) && (c) <= 'r') \
5944 || ('s' <= (c) && (c) <= 'z'))
5945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5953 for (i = 0; i < 256; i++)
5954 if (XOR (islower (i), ISLOWER (i))
5955 || toupper (i) != TOUPPER (i))
5960 rm -f conftest$ac_exeext
5961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5962 (eval $ac_link) 2>&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); }; }; then
5973 echo "$as_me: program exited with status $ac_status" >&5
5974 echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5978 ac_cv_header_stdc=no
5980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5984 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5985 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5986 if test $ac_cv_header_stdc = yes; then
5988 cat >>confdefs.h <<\_ACEOF
5989 #define STDC_HEADERS 1
6000 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6001 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6002 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6003 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 cat >conftest.$ac_ext <<_ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6013 #include <sys/types.h>
6025 rm -f conftest.$ac_objext
6026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6027 (eval $ac_compile) 2>conftest.er1
6029 grep -v '^ *+' conftest.er1 >conftest.err
6031 cat conftest.err >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } &&
6034 { ac_try='test -z "$ac_c_werror_flag"
6035 || test ! -s conftest.err'
6036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; } &&
6041 { ac_try='test -s conftest.$ac_objext'
6042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }; }; then
6047 eval "$as_ac_Header=yes"
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6052 eval "$as_ac_Header=no"
6054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6059 cat >>confdefs.h <<_ACEOF
6060 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6063 ac_header_dirent=$ac_hdr; break
6067 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6068 if test $ac_header_dirent = dirent.h; then
6069 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6070 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6071 if test "${ac_cv_search_opendir+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 ac_func_search_save_LIBS=$LIBS
6075 ac_cv_search_opendir=no
6076 cat >conftest.$ac_ext <<_ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6083 /* Override any gcc2 internal prototype to avoid an error. */
6087 /* We use char because int might match the return type of a gcc2
6088 builtin and then its argument prototype would still apply. */
6098 rm -f conftest.$ac_objext conftest$ac_exeext
6099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6100 (eval $ac_link) 2>conftest.er1
6102 grep -v '^ *+' conftest.er1 >conftest.err
6104 cat conftest.err >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } &&
6107 { ac_try='test -z "$ac_c_werror_flag"
6108 || test ! -s conftest.err'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; } &&
6114 { ac_try='test -s conftest$ac_exeext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_cv_search_opendir="none required"
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6126 rm -f conftest.err conftest.$ac_objext \
6127 conftest$ac_exeext conftest.$ac_ext
6128 if test "$ac_cv_search_opendir" = no; then
6129 for ac_lib in dir; do
6130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6131 cat >conftest.$ac_ext <<_ACEOF
6134 cat confdefs.h >>conftest.$ac_ext
6135 cat >>conftest.$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6138 /* Override any gcc2 internal prototype to avoid an error. */
6142 /* We use char because int might match the return type of a gcc2
6143 builtin and then its argument prototype would still apply. */
6153 rm -f conftest.$ac_objext conftest$ac_exeext
6154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6155 (eval $ac_link) 2>conftest.er1
6157 grep -v '^ *+' conftest.er1 >conftest.err
6159 cat conftest.err >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } &&
6162 { ac_try='test -z "$ac_c_werror_flag"
6163 || test ! -s conftest.err'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; } &&
6169 { ac_try='test -s conftest$ac_exeext'
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; }; then
6175 ac_cv_search_opendir="-l$ac_lib"
6178 echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6182 rm -f conftest.err conftest.$ac_objext \
6183 conftest$ac_exeext conftest.$ac_ext
6186 LIBS=$ac_func_search_save_LIBS
6188 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6189 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6190 if test "$ac_cv_search_opendir" != no; then
6191 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6196 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6197 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6198 if test "${ac_cv_search_opendir+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 ac_func_search_save_LIBS=$LIBS
6202 ac_cv_search_opendir=no
6203 cat >conftest.$ac_ext <<_ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6210 /* Override any gcc2 internal prototype to avoid an error. */
6214 /* We use char because int might match the return type of a gcc2
6215 builtin and then its argument prototype would still apply. */
6225 rm -f conftest.$ac_objext conftest$ac_exeext
6226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6227 (eval $ac_link) 2>conftest.er1
6229 grep -v '^ *+' conftest.er1 >conftest.err
6231 cat conftest.err >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } &&
6234 { ac_try='test -z "$ac_c_werror_flag"
6235 || test ! -s conftest.err'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; } &&
6241 { ac_try='test -s conftest$ac_exeext'
6242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; }; then
6247 ac_cv_search_opendir="none required"
6249 echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.$ac_ext >&5
6253 rm -f conftest.err conftest.$ac_objext \
6254 conftest$ac_exeext conftest.$ac_ext
6255 if test "$ac_cv_search_opendir" = no; then
6257 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6258 cat >conftest.$ac_ext <<_ACEOF
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h. */
6265 /* Override any gcc2 internal prototype to avoid an error. */
6269 /* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */
6280 rm -f conftest.$ac_objext conftest$ac_exeext
6281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6282 (eval $ac_link) 2>conftest.er1
6284 grep -v '^ *+' conftest.er1 >conftest.err
6286 cat conftest.err >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try='test -z "$ac_c_werror_flag"
6290 || test ! -s conftest.err'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; } &&
6296 { ac_try='test -s conftest$ac_exeext'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }; then
6302 ac_cv_search_opendir="-l$ac_lib"
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6309 rm -f conftest.err conftest.$ac_objext \
6310 conftest$ac_exeext conftest.$ac_ext
6313 LIBS=$ac_func_search_save_LIBS
6315 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6316 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6317 if test "$ac_cv_search_opendir" != no; then
6318 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6324 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6334 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6335 inttypes.h stdint.h unistd.h
6337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6338 echo "$as_me:$LINENO: checking for $ac_header" >&5
6339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 cat >conftest.$ac_ext <<_ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h. */
6349 $ac_includes_default
6351 #include <$ac_header>
6353 rm -f conftest.$ac_objext
6354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6355 (eval $ac_compile) 2>conftest.er1
6357 grep -v '^ *+' conftest.er1 >conftest.err
6359 cat conftest.err >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } &&
6362 { ac_try='test -z "$ac_c_werror_flag"
6363 || test ! -s conftest.err'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; } &&
6369 { ac_try='test -s conftest.$ac_objext'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6375 eval "$as_ac_Header=yes"
6377 echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6380 eval "$as_ac_Header=no"
6382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6387 cat >>confdefs.h <<_ACEOF
6388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6397 for ac_header in dlfcn.h
6399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6401 echo "$as_me:$LINENO: checking for $ac_header" >&5
6402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6409 # Is the header compilable?
6410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6412 cat >conftest.$ac_ext <<_ACEOF
6415 cat confdefs.h >>conftest.$ac_ext
6416 cat >>conftest.$ac_ext <<_ACEOF
6417 /* end confdefs.h. */
6418 $ac_includes_default
6419 #include <$ac_header>
6421 rm -f conftest.$ac_objext
6422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6423 (eval $ac_compile) 2>conftest.er1
6425 grep -v '^ *+' conftest.er1 >conftest.err
6427 cat conftest.err >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } &&
6430 { ac_try='test -z "$ac_c_werror_flag"
6431 || test ! -s conftest.err'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; } &&
6437 { ac_try='test -s conftest.$ac_objext'
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; }; then
6443 ac_header_compiler=yes
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6448 ac_header_compiler=no
6450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6452 echo "${ECHO_T}$ac_header_compiler" >&6
6454 # Is the header present?
6455 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6457 cat >conftest.$ac_ext <<_ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6463 #include <$ac_header>
6465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6468 grep -v '^ *+' conftest.er1 >conftest.err
6470 cat conftest.err >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } >/dev/null; then
6473 if test -s conftest.err; then
6474 ac_cpp_err=$ac_c_preproc_warn_flag
6475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6482 if test -z "$ac_cpp_err"; then
6483 ac_header_preproc=yes
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6488 ac_header_preproc=no
6490 rm -f conftest.err conftest.$ac_ext
6491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6492 echo "${ECHO_T}$ac_header_preproc" >&6
6494 # So? What about this header?
6495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6501 ac_header_preproc=yes
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6518 ## ----------------------------------- ##
6519 ## Report this to llvmbugs@cs.uiuc.edu ##
6520 ## ----------------------------------- ##
6523 sed "s/^/$as_me: WARNING: /" >&2
6526 echo "$as_me:$LINENO: checking for $ac_header" >&5
6527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 eval "$as_ac_Header=\$ac_header_preproc"
6533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6538 cat >>confdefs.h <<_ACEOF
6539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6546 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6547 if test "${enable_ltdl_install+set}" = set; then
6548 enableval="$enable_ltdl_install"
6554 if test x"${enable_ltdl_install-no}" != xno; then
6556 INSTALL_LTDL_FALSE='#'
6558 INSTALL_LTDL_TRUE='#'
6564 if test x"${enable_ltdl_convenience-no}" != xno; then
6565 CONVENIENCE_LTDL_TRUE=
6566 CONVENIENCE_LTDL_FALSE='#'
6568 CONVENIENCE_LTDL_TRUE='#'
6569 CONVENIENCE_LTDL_FALSE=
6573 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6574 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6576 libname_spec='lib$name'
6584 shlibpath_overrides_runpath=unknown
6586 dynamic_linker="$host_os ld.so"
6587 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6588 if test "$GCC" = yes; then
6589 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6590 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6591 # if the path contains ";" then we assume it to be the separator
6592 # otherwise default to the standard path separator (i.e. ":") - it is
6593 # assumed that no part of a normal pathname contains ";" but that should
6594 # okay in the real world where ";" in dirpaths is itself problematic.
6595 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6597 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6600 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6602 need_lib_prefix=unknown
6603 hardcode_into_libs=no
6605 # when you set need_version to no, make sure it does not cause -set_version
6606 # flags to be left without arguments
6607 need_version=unknown
6612 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6613 shlibpath_var=LIBPATH
6615 # AIX 3 has no versioning support, so we append a major version to the name.
6616 soname_spec='${libname}${release}${shared_ext}$major'
6623 hardcode_into_libs=yes
6624 if test "$host_cpu" = ia64; then
6625 # AIX 5 supports IA64
6626 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6627 shlibpath_var=LD_LIBRARY_PATH
6629 # With GCC up to 2.95.x, collect2 would create an import file
6630 # for dependence libraries. The import file would start with
6631 # the line `#! .'. This would cause the generated library to
6632 # depend on `.', always an invalid library. This was fixed in
6633 # development snapshots of GCC prior to 3.0.
6635 aix4 | aix4.[01] | aix4.[01].*)
6636 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6638 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6645 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6646 # soname into executable. Probably we can add versioning support to
6647 # collect2, so additional links can be useful in future.
6648 if test "$aix_use_runtimelinking" = yes; then
6649 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6650 # instead of lib<name>.a to let people know that these are not
6651 # typical AIX shared libraries.
6652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6654 # We preserve .a as extension for shared libraries through AIX4.2
6655 # and later when we are not doing run time linking.
6656 library_names_spec='${libname}${release}.a $libname.a'
6657 soname_spec='${libname}${release}${shared_ext}$major'
6659 shlibpath_var=LIBPATH
6664 library_names_spec='$libname.ixlibrary $libname.a'
6665 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6666 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'
6670 library_names_spec='${libname}${shared_ext}'
6671 dynamic_linker="$host_os ld.so"
6672 shlibpath_var=LIBRARY_PATH
6678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6679 soname_spec='${libname}${release}${shared_ext}$major'
6680 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6681 shlibpath_var=LD_LIBRARY_PATH
6682 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6683 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6684 # the default ld.so.conf also contains /usr/contrib/lib and
6685 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6686 # libtool to hard-code these into programs
6689 cygwin* | mingw* | pw32*)
6690 version_type=windows
6695 case $GCC,$host_os in
6696 yes,cygwin* | yes,mingw* | yes,pw32*)
6697 library_names_spec='$libname.dll.a'
6698 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6699 postinstall_cmds='base_file=`basename \${file}`~
6700 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6701 dldir=$destdir/`dirname \$dlpath`~
6702 test -d \$dldir || mkdir -p \$dldir~
6703 $install_prog $dir/$dlname \$dldir/$dlname'
6704 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6705 dlpath=$dir/\$dldll~
6707 shlibpath_overrides_runpath=yes
6711 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6712 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6713 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6716 # MinGW DLLs use traditional 'lib' prefix
6717 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6718 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6719 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6720 # It is most probably a Windows format PATH printed by
6721 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6722 # path with ; separators, and with drive letters. We can handle the
6723 # drive letters (cygwin fileutils understands them), so leave them,
6724 # especially as we might pass files found there to a mingw objdump,
6725 # which wouldn't understand a cygwinified path. Ahh.
6726 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6732 # pw32 DLLs use 'pw' prefix rather than 'lib'
6733 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6739 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6742 dynamic_linker='Win32 ld.exe'
6743 # FIXME: first we should search . and the directory the executable is in
6747 darwin* | rhapsody*)
6748 dynamic_linker="$host_os dyld"
6752 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6753 soname_spec='${libname}${release}${major}$shared_ext'
6754 shlibpath_overrides_runpath=yes
6755 shlibpath_var=DYLD_LIBRARY_PATH
6756 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6757 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6758 if test "$GCC" = yes; then
6759 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"`
6761 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6763 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6771 soname_spec='${libname}${release}${shared_ext}$major'
6772 shlibpath_var=LD_LIBRARY_PATH
6783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6784 soname_spec='${libname}${release}${shared_ext}$major'
6785 shlibpath_var=LD_LIBRARY_PATH
6786 shlibpath_overrides_runpath=no
6787 hardcode_into_libs=yes
6788 dynamic_linker='GNU ld.so'
6792 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6793 version_type=freebsd-$objformat
6794 case $version_type in
6796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6801 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6805 shlibpath_var=LD_LIBRARY_PATH
6808 shlibpath_overrides_runpath=yes
6810 freebsd3.01* | freebsdelf3.01*)
6811 shlibpath_overrides_runpath=yes
6812 hardcode_into_libs=yes
6815 shlibpath_overrides_runpath=no
6816 hardcode_into_libs=yes
6825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6826 soname_spec='${libname}${release}${shared_ext}$major'
6827 shlibpath_var=LD_LIBRARY_PATH
6828 hardcode_into_libs=yes
6831 hpux9* | hpux10* | hpux11*)
6832 # Give a soname corresponding to the major version so that dld.sl refuses to
6833 # link against other versions.
6840 hardcode_into_libs=yes
6841 dynamic_linker="$host_os dld.so"
6842 shlibpath_var=LD_LIBRARY_PATH
6843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6845 soname_spec='${libname}${release}${shared_ext}$major'
6846 if test "X$HPUX_IA64_MODE" = X32; then
6847 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6849 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6851 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6855 hardcode_into_libs=yes
6856 dynamic_linker="$host_os dld.sl"
6857 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6860 soname_spec='${libname}${release}${shared_ext}$major'
6861 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6866 dynamic_linker="$host_os dld.sl"
6867 shlibpath_var=SHLIB_PATH
6868 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6870 soname_spec='${libname}${release}${shared_ext}$major'
6873 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6874 postinstall_cmds='chmod 555 $lib'
6877 irix5* | irix6* | nonstopux*)
6879 nonstopux*) version_type=nonstopux ;;
6881 if test "$lt_cv_prog_gnu_ld" = yes; then
6889 soname_spec='${libname}${release}${shared_ext}$major'
6890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6892 irix5* | nonstopux*)
6896 case $LD in # libtool.m4 will add one of these switches to LD
6897 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6898 libsuff= shlibsuff= libmagic=32-bit;;
6899 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6900 libsuff=32 shlibsuff=N32 libmagic=N32;;
6901 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6902 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6903 *) libsuff= shlibsuff= libmagic=never-match;;
6907 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6908 shlibpath_overrides_runpath=no
6909 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6910 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6911 hardcode_into_libs=yes
6914 # No shared lib support for Linux oldld, aout, or coff.
6915 linux*oldld* | linux*aout* | linux*coff*)
6919 # This must be Linux ELF.
6924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6925 soname_spec='${libname}${release}${shared_ext}$major'
6926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6927 shlibpath_var=LD_LIBRARY_PATH
6928 shlibpath_overrides_runpath=no
6929 # This implies no fast_install, which is unacceptable.
6930 # Some rework will be needed to allow for fast_install
6931 # before this can be enabled.
6932 hardcode_into_libs=yes
6934 # Append ld.so.conf contents to the search path
6935 if test -f /etc/ld.so.conf; then
6936 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6937 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6940 # We used to test for /lib/ld.so.1 and disable shared libraries on
6941 # powerpc, because MkLinux only supported shared libraries with the
6942 # GNU dynamic linker. Since this was broken with cross compilers,
6943 # most powerpc-linux boxes support dynamic linking these days and
6944 # people can always --disable-shared, the test was removed, and we
6945 # assume the GNU/Linux dynamic linker is in use.
6946 dynamic_linker='GNU/Linux ld.so'
6953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6954 soname_spec='${libname}${release}${shared_ext}$major'
6955 shlibpath_var=LD_LIBRARY_PATH
6956 shlibpath_overrides_runpath=no
6957 hardcode_into_libs=yes
6958 dynamic_linker='GNU ld.so'
6965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6968 dynamic_linker='NetBSD (a.out) ld.so'
6970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6971 soname_spec='${libname}${release}${shared_ext}$major'
6972 dynamic_linker='NetBSD ld.elf_so'
6974 shlibpath_var=LD_LIBRARY_PATH
6975 shlibpath_overrides_runpath=yes
6976 hardcode_into_libs=yes
6981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6982 shlibpath_var=LD_LIBRARY_PATH
6983 shlibpath_overrides_runpath=yes
6990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6991 soname_spec='${libname}${release}${shared_ext}$major'
6992 shlibpath_var=LD_LIBRARY_PATH
6993 shlibpath_overrides_runpath=yes
7000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7002 shlibpath_var=LD_LIBRARY_PATH
7003 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7005 openbsd2.[89] | openbsd2.[89].*)
7006 shlibpath_overrides_runpath=no
7009 shlibpath_overrides_runpath=yes
7013 shlibpath_overrides_runpath=yes
7018 libname_spec='$name'
7021 library_names_spec='$libname${shared_ext} $libname.a'
7022 dynamic_linker='OS/2 ld.exe'
7023 shlibpath_var=LIBPATH
7026 osf3* | osf4* | osf5*)
7030 soname_spec='${libname}${release}${shared_ext}$major'
7031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7032 shlibpath_var=LD_LIBRARY_PATH
7033 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7034 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7039 soname_spec='${libname}${release}${shared_ext}$major'
7040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7041 shlibpath_var=LD_LIBRARY_PATH
7048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7049 soname_spec='${libname}${release}${shared_ext}$major'
7050 shlibpath_var=LD_LIBRARY_PATH
7051 shlibpath_overrides_runpath=yes
7052 hardcode_into_libs=yes
7053 # ldd complains unless libraries are executable
7054 postinstall_cmds='chmod +x $lib'
7059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7060 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7061 shlibpath_var=LD_LIBRARY_PATH
7062 shlibpath_overrides_runpath=yes
7063 if test "$with_gnu_ld" = yes; then
7069 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7072 soname_spec='${libname}${release}${shared_ext}$major'
7073 shlibpath_var=LD_LIBRARY_PATH
7074 case $host_vendor in
7076 shlibpath_overrides_runpath=no
7078 export_dynamic_flag_spec='${wl}-Blargedynsym'
7079 runpath_var=LD_RUN_PATH
7087 shlibpath_overrides_runpath=no
7088 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7094 if test -d /usr/nec ;then
7096 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7097 soname_spec='$libname${shared_ext}.$major'
7098 shlibpath_var=LD_LIBRARY_PATH
7104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7105 soname_spec='${libname}${release}${shared_ext}$major'
7106 shlibpath_var=LD_LIBRARY_PATH
7113 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7114 echo "${ECHO_T}$dynamic_linker" >&6
7115 test "$dynamic_linker" = no && can_build_shared=no
7118 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7119 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7120 if test "${libltdl_cv_shlibext+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 eval libltdl_cv_shlibext=$shrext_cmds
7128 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7129 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7130 if test -n "$libltdl_cv_shlibext"; then
7132 cat >>confdefs.h <<_ACEOF
7133 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7139 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7140 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7141 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 libltdl_cv_shlibpath_var="$shlibpath_var"
7146 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7147 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7148 if test -n "$libltdl_cv_shlibpath_var"; then
7150 cat >>confdefs.h <<_ACEOF
7151 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7157 echo "$as_me:$LINENO: checking for the default library search path" >&5
7158 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7159 if test "${libltdl_cv_sys_search_path+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7164 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7165 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7166 if test -n "$libltdl_cv_sys_search_path"; then
7168 for dir in $libltdl_cv_sys_search_path; do
7169 if test -z "$sys_search_path"; then
7170 sys_search_path="$dir"
7172 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7176 cat >>confdefs.h <<_ACEOF
7177 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7182 echo "$as_me:$LINENO: checking for objdir" >&5
7183 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7184 if test "${libltdl_cv_objdir+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 libltdl_cv_objdir="$objdir"
7188 if test -n "$objdir"; then
7191 rm -f .libs 2>/dev/null
7192 mkdir .libs 2>/dev/null
7193 if test -d .libs; then
7194 libltdl_cv_objdir=.libs
7196 # MS-DOS does not allow filenames that begin with a dot.
7197 libltdl_cv_objdir=_libs
7199 rmdir .libs 2>/dev/null
7203 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7204 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7206 cat >>confdefs.h <<_ACEOF
7207 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7211 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7212 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7213 if test "${lt_cv_path_NM+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 if test -n "$NM"; then
7217 # Let the user override the test.
7220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7221 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7223 test -z "$ac_dir" && ac_dir=.
7224 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7225 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7226 # Check to see if the nm accepts a BSD-compat flag.
7227 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7228 # nm: unknown option "B" ignored
7229 # Tru64's nm complains that /dev/null is an invalid object file
7230 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7231 */dev/null* | *'Invalid file or object type'*)
7232 lt_cv_path_NM="$tmp_nm -B"
7236 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7238 lt_cv_path_NM="$tmp_nm -p"
7242 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7243 continue # so that we can try to find one that supports BSD flags
7250 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7253 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7254 echo "${ECHO_T}$lt_cv_path_NM" >&6
7261 # Check for command to grab the raw symbol name followed by C symbol from nm.
7262 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7263 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7264 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 # These are sane defaults that work on at least a few old systems.
7269 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7271 # Character class describing NM global symbol codes.
7272 symcode='[BCDEGRST]'
7274 # Regexp to match symbols that can be accessed directly from C.
7275 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7277 # Transform the above into a raw symbol and a C symbol.
7278 symxfrm='\1 \2\3 \3'
7280 # Transform an extracted symbol line into a proper C declaration
7281 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7283 # Transform an extracted symbol line into symbol name and symbol address
7284 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'"
7286 # Define system-specific variables.
7291 cygwin* | mingw* | pw32*)
7292 symcode='[ABCDGISTW]'
7294 hpux*) # Its linker distinguishes data from code symbols
7295 if test "$host_cpu" = ia64; then
7296 symcode='[ABCDEGRST]'
7298 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7299 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'"
7302 if test "$host_cpu" = ia64; then
7303 symcode='[ABCDGIRSTW]'
7304 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7305 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 symcode='[BCDEGRST]'
7312 symcode='[BCDEGQRST]'
7322 # Handle CRLF in mingw tool chain
7326 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7330 # If we're using GNU nm, then use its standard symbol codes.
7331 case `$NM -V 2>&1` in
7332 *GNU* | *'with BFD'*)
7333 symcode='[ABCDGIRSTW]' ;;
7336 # Try without a prefix undercore, then with it.
7337 for ac_symprfx in "" "_"; do
7339 # Write the raw and C identifiers.
7340 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7342 # Check to see that the pipe works correctly.
7346 cat > conftest.$ac_ext <<EOF
7351 void nm_test_func(){}
7355 int main(){nm_test_var='a';nm_test_func();return(0);}
7358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7359 (eval $ac_compile) 2>&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; then
7363 # Now try to grab the symbols.
7365 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7366 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } && test -s "$nlist"; then
7370 # Try sorting and uniquifying the output.
7371 if sort "$nlist" | uniq > "$nlist"T; then
7372 mv -f "$nlist"T "$nlist"
7377 # Make sure that we snagged all the symbols we need.
7378 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7379 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7380 cat <<EOF > conftest.$ac_ext
7386 # Now generate the symbol file.
7387 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7389 cat <<EOF >> conftest.$ac_ext
7390 #if defined (__STDC__) && __STDC__
7391 # define lt_ptr_t void *
7393 # define lt_ptr_t char *
7397 /* The mapping between symbol names and symbols. */
7402 lt_preloaded_symbols[] =
7405 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7406 cat <<\EOF >> conftest.$ac_ext
7414 # Now try linking the two files.
7415 mv conftest.$ac_objext conftstm.$ac_objext
7416 lt_save_LIBS="$LIBS"
7417 lt_save_CFLAGS="$CFLAGS"
7418 LIBS="conftstm.$ac_objext"
7419 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7421 (eval $ac_link) 2>&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7427 LIBS="$lt_save_LIBS"
7428 CFLAGS="$lt_save_CFLAGS"
7430 echo "cannot find nm_test_func in $nlist" >&5
7433 echo "cannot find nm_test_var in $nlist" >&5
7436 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7439 echo "$progname: failed program was:" >&5
7440 cat conftest.$ac_ext >&5
7442 rm -f conftest* conftst*
7444 # Do not use the global_symbol_pipe unless it works.
7445 if test "$pipe_works" = yes; then
7448 lt_cv_sys_global_symbol_pipe=
7454 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7455 lt_cv_sys_global_symbol_to_cdecl=
7457 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7458 echo "$as_me:$LINENO: result: failed" >&5
7459 echo "${ECHO_T}failed" >&6
7461 echo "$as_me:$LINENO: result: ok" >&5
7462 echo "${ECHO_T}ok" >&6
7466 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7467 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7468 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7472 libltdl_cv_preloaded_symbols=yes
7474 libltdl_cv_preloaded_symbols=no
7478 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7479 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7480 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7482 cat >>confdefs.h <<\_ACEOF
7483 #define HAVE_PRELOADED_SYMBOLS 1
7491 ac_cpp='$CPP $CPPFLAGS'
7492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7497 echo "$as_me:$LINENO: checking for shl_load" >&5
7498 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7499 if test "${ac_cv_func_shl_load+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 cat >conftest.$ac_ext <<_ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7508 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7510 #define shl_load innocuous_shl_load
7512 /* System header to define __stub macros and hopefully few prototypes,
7513 which can conflict with char shl_load (); below.
7514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7515 <limits.h> exists even on freestanding compilers. */
7518 # include <limits.h>
7520 # include <assert.h>
7525 /* Override any gcc2 internal prototype to avoid an error. */
7530 /* We use char because int might match the return type of a gcc2
7531 builtin and then its argument prototype would still apply. */
7533 /* The GNU C library defines this for functions which it implements
7534 to always fail with ENOSYS. Some functions are actually named
7535 something starting with __ and the normal name is an alias. */
7536 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7539 char (*f) () = shl_load;
7548 return f != shl_load;
7553 rm -f conftest.$ac_objext conftest$ac_exeext
7554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7555 (eval $ac_link) 2>conftest.er1
7557 grep -v '^ *+' conftest.er1 >conftest.err
7559 cat conftest.err >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } &&
7562 { ac_try='test -z "$ac_c_werror_flag"
7563 || test ! -s conftest.err'
7564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); }; } &&
7569 { ac_try='test -s conftest$ac_exeext'
7570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; }; then
7575 ac_cv_func_shl_load=yes
7577 echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.$ac_ext >&5
7580 ac_cv_func_shl_load=no
7582 rm -f conftest.err conftest.$ac_objext \
7583 conftest$ac_exeext conftest.$ac_ext
7585 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7586 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7587 if test $ac_cv_func_shl_load = yes; then
7589 cat >>confdefs.h <<\_ACEOF
7590 #define HAVE_SHL_LOAD 1
7594 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7595 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7596 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 ac_check_lib_save_LIBS=$LIBS
7601 cat >conftest.$ac_ext <<_ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7608 /* Override any gcc2 internal prototype to avoid an error. */
7612 /* We use char because int might match the return type of a gcc2
7613 builtin and then its argument prototype would still apply. */
7623 rm -f conftest.$ac_objext conftest$ac_exeext
7624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7625 (eval $ac_link) 2>conftest.er1
7627 grep -v '^ *+' conftest.er1 >conftest.err
7629 cat conftest.err >&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } &&
7632 { ac_try='test -z "$ac_c_werror_flag"
7633 || test ! -s conftest.err'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; } &&
7639 { ac_try='test -s conftest$ac_exeext'
7640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; }; then
7645 ac_cv_lib_dld_shl_load=yes
7647 echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7650 ac_cv_lib_dld_shl_load=no
7652 rm -f conftest.err conftest.$ac_objext \
7653 conftest$ac_exeext conftest.$ac_ext
7654 LIBS=$ac_check_lib_save_LIBS
7656 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7657 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7658 if test $ac_cv_lib_dld_shl_load = yes; then
7660 cat >>confdefs.h <<\_ACEOF
7661 #define HAVE_SHL_LOAD 1
7664 LIBADD_DL="$LIBADD_DL -ldld"
7666 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7667 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7668 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 ac_check_lib_save_LIBS=$LIBS
7673 cat >conftest.$ac_ext <<_ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7680 /* Override any gcc2 internal prototype to avoid an error. */
7684 /* We use char because int might match the return type of a gcc2
7685 builtin and then its argument prototype would still apply. */
7695 rm -f conftest.$ac_objext conftest$ac_exeext
7696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7697 (eval $ac_link) 2>conftest.er1
7699 grep -v '^ *+' conftest.er1 >conftest.err
7701 cat conftest.err >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } &&
7704 { ac_try='test -z "$ac_c_werror_flag"
7705 || test ! -s conftest.err'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; } &&
7711 { ac_try='test -s conftest$ac_exeext'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; }; then
7717 ac_cv_lib_dl_dlopen=yes
7719 echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7722 ac_cv_lib_dl_dlopen=no
7724 rm -f conftest.err conftest.$ac_objext \
7725 conftest$ac_exeext conftest.$ac_ext
7726 LIBS=$ac_check_lib_save_LIBS
7728 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7729 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7730 if test $ac_cv_lib_dl_dlopen = yes; then
7732 cat >>confdefs.h <<\_ACEOF
7733 #define HAVE_LIBDL 1
7736 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7738 cat >conftest.$ac_ext <<_ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7756 rm -f conftest.$ac_objext conftest$ac_exeext
7757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7758 (eval $ac_link) 2>conftest.er1
7760 grep -v '^ *+' conftest.er1 >conftest.err
7762 cat conftest.err >&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } &&
7765 { ac_try='test -z "$ac_c_werror_flag"
7766 || test ! -s conftest.err'
7767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); }; } &&
7772 { ac_try='test -s conftest$ac_exeext'
7773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; }; then
7779 cat >>confdefs.h <<\_ACEOF
7780 #define HAVE_LIBDL 1
7782 libltdl_cv_func_dlopen="yes"
7784 echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7787 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7788 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7789 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 ac_check_lib_save_LIBS=$LIBS
7794 cat >conftest.$ac_ext <<_ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h. */
7801 /* Override any gcc2 internal prototype to avoid an error. */
7805 /* We use char because int might match the return type of a gcc2
7806 builtin and then its argument prototype would still apply. */
7816 rm -f conftest.$ac_objext conftest$ac_exeext
7817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7818 (eval $ac_link) 2>conftest.er1
7820 grep -v '^ *+' conftest.er1 >conftest.err
7822 cat conftest.err >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } &&
7825 { ac_try='test -z "$ac_c_werror_flag"
7826 || test ! -s conftest.err'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; } &&
7832 { ac_try='test -s conftest$ac_exeext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 ac_cv_lib_svld_dlopen=yes
7840 echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7843 ac_cv_lib_svld_dlopen=no
7845 rm -f conftest.err conftest.$ac_objext \
7846 conftest$ac_exeext conftest.$ac_ext
7847 LIBS=$ac_check_lib_save_LIBS
7849 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7850 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7851 if test $ac_cv_lib_svld_dlopen = yes; then
7853 cat >>confdefs.h <<\_ACEOF
7854 #define HAVE_LIBDL 1
7857 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7859 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7860 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7861 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7862 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 ac_check_lib_save_LIBS=$LIBS
7866 cat >conftest.$ac_ext <<_ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7873 /* Override any gcc2 internal prototype to avoid an error. */
7877 /* We use char because int might match the return type of a gcc2
7878 builtin and then its argument prototype would still apply. */
7888 rm -f conftest.$ac_objext conftest$ac_exeext
7889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7890 (eval $ac_link) 2>conftest.er1
7892 grep -v '^ *+' conftest.er1 >conftest.err
7894 cat conftest.err >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); } &&
7897 { ac_try='test -z "$ac_c_werror_flag"
7898 || test ! -s conftest.err'
7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; } &&
7904 { ac_try='test -s conftest$ac_exeext'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; }; then
7910 ac_cv_lib_dld_dld_link=yes
7912 echo "$as_me: failed program was:" >&5
7913 sed 's/^/| /' conftest.$ac_ext >&5
7915 ac_cv_lib_dld_dld_link=no
7917 rm -f conftest.err conftest.$ac_objext \
7918 conftest$ac_exeext conftest.$ac_ext
7919 LIBS=$ac_check_lib_save_LIBS
7921 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7922 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7923 if test $ac_cv_lib_dld_dld_link = yes; then
7925 cat >>confdefs.h <<\_ACEOF
7929 LIBADD_DL="$LIBADD_DL -ldld"
7931 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7932 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7933 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7934 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 cat >conftest.$ac_ext <<_ACEOF
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h. */
7942 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7944 #define _dyld_func_lookup innocuous__dyld_func_lookup
7946 /* System header to define __stub macros and hopefully few prototypes,
7947 which can conflict with char _dyld_func_lookup (); below.
7948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7949 <limits.h> exists even on freestanding compilers. */
7952 # include <limits.h>
7954 # include <assert.h>
7957 #undef _dyld_func_lookup
7959 /* Override any gcc2 internal prototype to avoid an error. */
7964 /* We use char because int might match the return type of a gcc2
7965 builtin and then its argument prototype would still apply. */
7966 char _dyld_func_lookup ();
7967 /* The GNU C library defines this for functions which it implements
7968 to always fail with ENOSYS. Some functions are actually named
7969 something starting with __ and the normal name is an alias. */
7970 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7973 char (*f) () = _dyld_func_lookup;
7982 return f != _dyld_func_lookup;
7987 rm -f conftest.$ac_objext conftest$ac_exeext
7988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7989 (eval $ac_link) 2>conftest.er1
7991 grep -v '^ *+' conftest.er1 >conftest.err
7993 cat conftest.err >&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } &&
7996 { ac_try='test -z "$ac_c_werror_flag"
7997 || test ! -s conftest.err'
7998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); }; } &&
8003 { ac_try='test -s conftest$ac_exeext'
8004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); }; }; then
8009 ac_cv_func__dyld_func_lookup=yes
8011 echo "$as_me: failed program was:" >&5
8012 sed 's/^/| /' conftest.$ac_ext >&5
8014 ac_cv_func__dyld_func_lookup=no
8016 rm -f conftest.err conftest.$ac_objext \
8017 conftest$ac_exeext conftest.$ac_ext
8019 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8020 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8021 if test $ac_cv_func__dyld_func_lookup = yes; then
8023 cat >>confdefs.h <<\_ACEOF
8037 rm -f conftest.err conftest.$ac_objext \
8038 conftest$ac_exeext conftest.$ac_ext
8049 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8051 lt_save_LIBS="$LIBS"
8052 LIBS="$LIBS $LIBADD_DL"
8054 for ac_func in dlerror
8056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8057 echo "$as_me:$LINENO: checking for $ac_func" >&5
8058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8059 if eval "test \"\${$as_ac_var+set}\" = set"; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 cat >conftest.$ac_ext <<_ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8070 #define $ac_func innocuous_$ac_func
8072 /* System header to define __stub macros and hopefully few prototypes,
8073 which can conflict with char $ac_func (); below.
8074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8075 <limits.h> exists even on freestanding compilers. */
8078 # include <limits.h>
8080 # include <assert.h>
8085 /* Override any gcc2 internal prototype to avoid an error. */
8090 /* We use char because int might match the return type of a gcc2
8091 builtin and then its argument prototype would still apply. */
8093 /* The GNU C library defines this for functions which it implements
8094 to always fail with ENOSYS. Some functions are actually named
8095 something starting with __ and the normal name is an alias. */
8096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8099 char (*f) () = $ac_func;
8108 return f != $ac_func;
8113 rm -f conftest.$ac_objext conftest$ac_exeext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8115 (eval $ac_link) 2>conftest.er1
8117 grep -v '^ *+' conftest.er1 >conftest.err
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try='test -z "$ac_c_werror_flag"
8123 || test ! -s conftest.err'
8124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; } &&
8129 { ac_try='test -s conftest$ac_exeext'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; }; then
8135 eval "$as_ac_var=yes"
8137 echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8140 eval "$as_ac_var=no"
8142 rm -f conftest.err conftest.$ac_objext \
8143 conftest$ac_exeext conftest.$ac_ext
8145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8147 if test `eval echo '${'$as_ac_var'}'` = yes; then
8148 cat >>confdefs.h <<_ACEOF
8149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8155 LIBS="$lt_save_LIBS"
8158 ac_cpp='$CPP $CPPFLAGS'
8159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8165 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8166 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8167 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8170 ac_cv_sys_symbol_underscore=no
8171 cat > conftest.$ac_ext <<EOF
8172 void nm_test_func(){}
8173 int main(){nm_test_func;return 0;}
8175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8176 (eval $ac_compile) 2>&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; then
8180 # Now try to grab the symbols.
8181 ac_nlist=conftest.nm
8182 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8183 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } && test -s "$ac_nlist"; then
8187 # See whether the symbols have a leading underscore.
8188 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8189 ac_cv_sys_symbol_underscore=yes
8191 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8194 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8198 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8201 echo "configure: failed program was:" >&5
8207 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8208 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8211 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8212 if test x"$libltdl_cv_func_dlopen" = xyes ||
8213 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8214 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8215 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8216 if test "${libltdl_cv_need_uscore+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 libltdl_cv_need_uscore=unknown
8221 LIBS="$LIBS $LIBADD_DL"
8222 if test "$cross_compiling" = yes; then :
8223 libltdl_cv_need_uscore=cross
8225 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8226 lt_status=$lt_dlunknown
8227 cat > conftest.$ac_ext <<EOF
8228 #line 8228 "configure"
8229 #include "confdefs.h"
8238 # define LT_DLGLOBAL RTLD_GLOBAL
8241 # define LT_DLGLOBAL DL_GLOBAL
8243 # define LT_DLGLOBAL 0
8247 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8248 find out it does not work in some platform. */
8249 #ifndef LT_DLLAZY_OR_NOW
8251 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8254 # define LT_DLLAZY_OR_NOW DL_LAZY
8257 # define LT_DLLAZY_OR_NOW RTLD_NOW
8260 # define LT_DLLAZY_OR_NOW DL_NOW
8262 # define LT_DLLAZY_OR_NOW 0
8270 extern "C" void exit (int);
8273 void fnord() { int i=42;}
8276 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8277 int status = $lt_dlunknown;
8281 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8282 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8283 /* dlclose (self); */
8289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8290 (eval $ac_link) 2>&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8294 (./conftest; exit; ) 2>/dev/null
8297 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8298 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8302 # compilation failed
8311 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8312 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8316 if test x"$libltdl_cv_need_uscore" = xyes; then
8318 cat >>confdefs.h <<\_ACEOF
8319 #define NEED_USCORE 1
8325 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8326 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8327 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 # PORTME does your system automatically load deplibs for dlopen?
8331 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8332 # For now, we just catch OSes we know something about -- in the
8333 # future, we'll try test this programmatically.
8334 libltdl_cv_sys_dlopen_deplibs=unknown
8336 aix3*|aix4.1.*|aix4.2.*)
8337 # Unknown whether this is true for these versions of AIX, but
8338 # we want this `case' here to explicitly catch those versions.
8339 libltdl_cv_sys_dlopen_deplibs=unknown
8342 libltdl_cv_sys_dlopen_deplibs=yes
8345 # Assuming the user has installed a libdl from somewhere, this is true
8346 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8347 libltdl_cv_sys_dlopen_deplibs=yes
8349 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8350 # GNU and its variants, using gnu ld.so (Glibc)
8351 libltdl_cv_sys_dlopen_deplibs=yes
8354 libltdl_cv_sys_dlopen_deplibs=yes
8356 irix[12345]*|irix6.[01]*)
8357 # Catch all versions of IRIX before 6.2, and indicate that we don't
8358 # know how it worked for any of those versions.
8359 libltdl_cv_sys_dlopen_deplibs=unknown
8362 # The case above catches anything before 6.2, and it's known that
8363 # at 6.2 and later dlopen does load deplibs.
8364 libltdl_cv_sys_dlopen_deplibs=yes
8367 libltdl_cv_sys_dlopen_deplibs=yes
8370 libltdl_cv_sys_dlopen_deplibs=yes
8373 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8374 # it did *not* use an RPATH in a shared library to find objects the
8375 # library depends on, so we explictly say `no'.
8376 libltdl_cv_sys_dlopen_deplibs=no
8378 osf5.0|osf5.0a|osf5.1)
8379 # dlopen *does* load deplibs and with the right loader patch applied
8380 # it even uses RPATH in a shared library to search for shared objects
8381 # that the library depends on, but there's no easy way to know if that
8382 # patch is installed. Since this is the case, all we can really
8383 # say is unknown -- it depends on the patch being installed. If
8384 # it is, this changes to `yes'. Without it, it would be `no'.
8385 libltdl_cv_sys_dlopen_deplibs=unknown
8388 # the two cases above should catch all versions of osf <= 5.1. Read
8389 # the comments above for what we know about them.
8390 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8391 # is used to find them so we can finally say `yes'.
8392 libltdl_cv_sys_dlopen_deplibs=yes
8395 libltdl_cv_sys_dlopen_deplibs=yes
8400 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8401 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8402 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8404 cat >>confdefs.h <<\_ACEOF
8405 #define LTDL_DLOPEN_DEPLIBS 1
8411 for ac_header in argz.h
8413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8415 echo "$as_me:$LINENO: checking for $ac_header" >&5
8416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8423 # Is the header compilable?
8424 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8426 cat >conftest.$ac_ext <<_ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8432 $ac_includes_default
8433 #include <$ac_header>
8435 rm -f conftest.$ac_objext
8436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8437 (eval $ac_compile) 2>conftest.er1
8439 grep -v '^ *+' conftest.er1 >conftest.err
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } &&
8444 { ac_try='test -z "$ac_c_werror_flag"
8445 || test ! -s conftest.err'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; } &&
8451 { ac_try='test -s conftest.$ac_objext'
8452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; }; then
8457 ac_header_compiler=yes
8459 echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8462 ac_header_compiler=no
8464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8466 echo "${ECHO_T}$ac_header_compiler" >&6
8468 # Is the header present?
8469 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8471 cat >conftest.$ac_ext <<_ACEOF
8474 cat confdefs.h >>conftest.$ac_ext
8475 cat >>conftest.$ac_ext <<_ACEOF
8476 /* end confdefs.h. */
8477 #include <$ac_header>
8479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8482 grep -v '^ *+' conftest.er1 >conftest.err
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } >/dev/null; then
8487 if test -s conftest.err; then
8488 ac_cpp_err=$ac_c_preproc_warn_flag
8489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8496 if test -z "$ac_cpp_err"; then
8497 ac_header_preproc=yes
8499 echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8502 ac_header_preproc=no
8504 rm -f conftest.err conftest.$ac_ext
8505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8506 echo "${ECHO_T}$ac_header_preproc" >&6
8508 # So? What about this header?
8509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8515 ac_header_preproc=yes
8518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8525 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8532 ## ----------------------------------- ##
8533 ## Report this to llvmbugs@cs.uiuc.edu ##
8534 ## ----------------------------------- ##
8537 sed "s/^/$as_me: WARNING: /" >&2
8540 echo "$as_me:$LINENO: checking for $ac_header" >&5
8541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8545 eval "$as_ac_Header=\$ac_header_preproc"
8547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8552 cat >>confdefs.h <<_ACEOF
8553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8561 echo "$as_me:$LINENO: checking for error_t" >&5
8562 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8563 if test "${ac_cv_type_error_t+set}" = set; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
8566 cat >conftest.$ac_ext <<_ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8581 if (sizeof (error_t))
8587 rm -f conftest.$ac_objext
8588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8589 (eval $ac_compile) 2>conftest.er1
8591 grep -v '^ *+' conftest.er1 >conftest.err
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } &&
8596 { ac_try='test -z "$ac_c_werror_flag"
8597 || test ! -s conftest.err'
8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; } &&
8603 { ac_try='test -s conftest.$ac_objext'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; }; then
8609 ac_cv_type_error_t=yes
8611 echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8614 ac_cv_type_error_t=no
8616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8618 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8619 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8620 if test $ac_cv_type_error_t = yes; then
8622 cat >>confdefs.h <<_ACEOF
8623 #define HAVE_ERROR_T 1
8629 cat >>confdefs.h <<\_ACEOF
8641 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8644 echo "$as_me:$LINENO: checking for $ac_func" >&5
8645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8646 if eval "test \"\${$as_ac_var+set}\" = set"; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8649 cat >conftest.$ac_ext <<_ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8657 #define $ac_func innocuous_$ac_func
8659 /* System header to define __stub macros and hopefully few prototypes,
8660 which can conflict with char $ac_func (); below.
8661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8662 <limits.h> exists even on freestanding compilers. */
8665 # include <limits.h>
8667 # include <assert.h>
8672 /* Override any gcc2 internal prototype to avoid an error. */
8677 /* We use char because int might match the return type of a gcc2
8678 builtin and then its argument prototype would still apply. */
8680 /* The GNU C library defines this for functions which it implements
8681 to always fail with ENOSYS. Some functions are actually named
8682 something starting with __ and the normal name is an alias. */
8683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8686 char (*f) () = $ac_func;
8695 return f != $ac_func;
8700 rm -f conftest.$ac_objext conftest$ac_exeext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8702 (eval $ac_link) 2>conftest.er1
8704 grep -v '^ *+' conftest.er1 >conftest.err
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } &&
8709 { ac_try='test -z "$ac_c_werror_flag"
8710 || test ! -s conftest.err'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; } &&
8716 { ac_try='test -s conftest$ac_exeext'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8722 eval "$as_ac_var=yes"
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8727 eval "$as_ac_var=no"
8729 rm -f conftest.err conftest.$ac_objext \
8730 conftest$ac_exeext conftest.$ac_ext
8732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8734 if test `eval echo '${'$as_ac_var'}'` = yes; then
8735 cat >>confdefs.h <<_ACEOF
8736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8769 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8774 echo "$as_me:$LINENO: checking for $ac_header" >&5
8775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8782 # Is the header compilable?
8783 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8785 cat >conftest.$ac_ext <<_ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h. */
8791 $ac_includes_default
8792 #include <$ac_header>
8794 rm -f conftest.$ac_objext
8795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8796 (eval $ac_compile) 2>conftest.er1
8798 grep -v '^ *+' conftest.er1 >conftest.err
8800 cat conftest.err >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); } &&
8803 { ac_try='test -z "$ac_c_werror_flag"
8804 || test ! -s conftest.err'
8805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); }; } &&
8810 { ac_try='test -s conftest.$ac_objext'
8811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); }; }; then
8816 ac_header_compiler=yes
8818 echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8821 ac_header_compiler=no
8823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8824 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8825 echo "${ECHO_T}$ac_header_compiler" >&6
8827 # Is the header present?
8828 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8830 cat >conftest.$ac_ext <<_ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8836 #include <$ac_header>
8838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8841 grep -v '^ *+' conftest.er1 >conftest.err
8843 cat conftest.err >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } >/dev/null; then
8846 if test -s conftest.err; then
8847 ac_cpp_err=$ac_c_preproc_warn_flag
8848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8855 if test -z "$ac_cpp_err"; then
8856 ac_header_preproc=yes
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 ac_header_preproc=no
8863 rm -f conftest.err conftest.$ac_ext
8864 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8865 echo "${ECHO_T}$ac_header_preproc" >&6
8867 # So? What about this header?
8868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8874 ac_header_preproc=yes
8877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8884 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8891 ## ----------------------------------- ##
8892 ## Report this to llvmbugs@cs.uiuc.edu ##
8893 ## ----------------------------------- ##
8896 sed "s/^/$as_me: WARNING: /" >&2
8899 echo "$as_me:$LINENO: checking for $ac_header" >&5
8900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8902 echo $ECHO_N "(cached) $ECHO_C" >&6
8904 eval "$as_ac_Header=\$ac_header_preproc"
8906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8911 cat >>confdefs.h <<_ACEOF
8912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8923 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8927 echo "$as_me:$LINENO: checking for $ac_header" >&5
8928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8935 # Is the header compilable?
8936 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8938 cat >conftest.$ac_ext <<_ACEOF
8941 cat confdefs.h >>conftest.$ac_ext
8942 cat >>conftest.$ac_ext <<_ACEOF
8943 /* end confdefs.h. */
8944 $ac_includes_default
8945 #include <$ac_header>
8947 rm -f conftest.$ac_objext
8948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8949 (eval $ac_compile) 2>conftest.er1
8951 grep -v '^ *+' conftest.er1 >conftest.err
8953 cat conftest.err >&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } &&
8956 { ac_try='test -z "$ac_c_werror_flag"
8957 || test ! -s conftest.err'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; } &&
8963 { ac_try='test -s conftest.$ac_objext'
8964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); }; }; then
8969 ac_header_compiler=yes
8971 echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.$ac_ext >&5
8974 ac_header_compiler=no
8976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8978 echo "${ECHO_T}$ac_header_compiler" >&6
8980 # Is the header present?
8981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8983 cat >conftest.$ac_ext <<_ACEOF
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h. */
8989 #include <$ac_header>
8991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8994 grep -v '^ *+' conftest.er1 >conftest.err
8996 cat conftest.err >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } >/dev/null; then
8999 if test -s conftest.err; then
9000 ac_cpp_err=$ac_c_preproc_warn_flag
9001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9008 if test -z "$ac_cpp_err"; then
9009 ac_header_preproc=yes
9011 echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9014 ac_header_preproc=no
9016 rm -f conftest.err conftest.$ac_ext
9017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9018 echo "${ECHO_T}$ac_header_preproc" >&6
9020 # So? What about this header?
9021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9027 ac_header_preproc=yes
9030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9044 ## ----------------------------------- ##
9045 ## Report this to llvmbugs@cs.uiuc.edu ##
9046 ## ----------------------------------- ##
9049 sed "s/^/$as_me: WARNING: /" >&2
9052 echo "$as_me:$LINENO: checking for $ac_header" >&5
9053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 eval "$as_ac_Header=\$ac_header_preproc"
9059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9064 cat >>confdefs.h <<_ACEOF
9065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9074 for ac_header in string.h strings.h
9076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9078 echo "$as_me:$LINENO: checking for $ac_header" >&5
9079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9086 # Is the header compilable?
9087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9089 cat >conftest.$ac_ext <<_ACEOF
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h. */
9095 $ac_includes_default
9096 #include <$ac_header>
9098 rm -f conftest.$ac_objext
9099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9100 (eval $ac_compile) 2>conftest.er1
9102 grep -v '^ *+' conftest.er1 >conftest.err
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } &&
9107 { ac_try='test -z "$ac_c_werror_flag"
9108 || test ! -s conftest.err'
9109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); }; } &&
9114 { ac_try='test -s conftest.$ac_objext'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; }; then
9120 ac_header_compiler=yes
9122 echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.$ac_ext >&5
9125 ac_header_compiler=no
9127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9128 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9129 echo "${ECHO_T}$ac_header_compiler" >&6
9131 # Is the header present?
9132 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9134 cat >conftest.$ac_ext <<_ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9140 #include <$ac_header>
9142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9145 grep -v '^ *+' conftest.er1 >conftest.err
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } >/dev/null; then
9150 if test -s conftest.err; then
9151 ac_cpp_err=$ac_c_preproc_warn_flag
9152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9159 if test -z "$ac_cpp_err"; then
9160 ac_header_preproc=yes
9162 echo "$as_me: failed program was:" >&5
9163 sed 's/^/| /' conftest.$ac_ext >&5
9165 ac_header_preproc=no
9167 rm -f conftest.err conftest.$ac_ext
9168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9169 echo "${ECHO_T}$ac_header_preproc" >&6
9171 # So? What about this header?
9172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9178 ac_header_preproc=yes
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9195 ## ----------------------------------- ##
9196 ## Report this to llvmbugs@cs.uiuc.edu ##
9197 ## ----------------------------------- ##
9200 sed "s/^/$as_me: WARNING: /" >&2
9203 echo "$as_me:$LINENO: checking for $ac_header" >&5
9204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 eval "$as_ac_Header=\$ac_header_preproc"
9210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9215 cat >>confdefs.h <<_ACEOF
9216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9226 for ac_func in strchr index
9228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9229 echo "$as_me:$LINENO: checking for $ac_func" >&5
9230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9231 if eval "test \"\${$as_ac_var+set}\" = set"; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 cat >conftest.$ac_ext <<_ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9242 #define $ac_func innocuous_$ac_func
9244 /* System header to define __stub macros and hopefully few prototypes,
9245 which can conflict with char $ac_func (); below.
9246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9247 <limits.h> exists even on freestanding compilers. */
9250 # include <limits.h>
9252 # include <assert.h>
9257 /* Override any gcc2 internal prototype to avoid an error. */
9262 /* We use char because int might match the return type of a gcc2
9263 builtin and then its argument prototype would still apply. */
9265 /* The GNU C library defines this for functions which it implements
9266 to always fail with ENOSYS. Some functions are actually named
9267 something starting with __ and the normal name is an alias. */
9268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9271 char (*f) () = $ac_func;
9280 return f != $ac_func;
9285 rm -f conftest.$ac_objext conftest$ac_exeext
9286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9287 (eval $ac_link) 2>conftest.er1
9289 grep -v '^ *+' conftest.er1 >conftest.err
9291 cat conftest.err >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } &&
9294 { ac_try='test -z "$ac_c_werror_flag"
9295 || test ! -s conftest.err'
9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; } &&
9301 { ac_try='test -s conftest$ac_exeext'
9302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); }; }; then
9307 eval "$as_ac_var=yes"
9309 echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.$ac_ext >&5
9312 eval "$as_ac_var=no"
9314 rm -f conftest.err conftest.$ac_objext \
9315 conftest$ac_exeext conftest.$ac_ext
9317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9318 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9319 if test `eval echo '${'$as_ac_var'}'` = yes; then
9320 cat >>confdefs.h <<_ACEOF
9321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9329 for ac_func in strrchr rindex
9331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9332 echo "$as_me:$LINENO: checking for $ac_func" >&5
9333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9334 if eval "test \"\${$as_ac_var+set}\" = set"; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9337 cat >conftest.$ac_ext <<_ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9345 #define $ac_func innocuous_$ac_func
9347 /* System header to define __stub macros and hopefully few prototypes,
9348 which can conflict with char $ac_func (); below.
9349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9350 <limits.h> exists even on freestanding compilers. */
9353 # include <limits.h>
9355 # include <assert.h>
9360 /* Override any gcc2 internal prototype to avoid an error. */
9365 /* We use char because int might match the return type of a gcc2
9366 builtin and then its argument prototype would still apply. */
9368 /* The GNU C library defines this for functions which it implements
9369 to always fail with ENOSYS. Some functions are actually named
9370 something starting with __ and the normal name is an alias. */
9371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9374 char (*f) () = $ac_func;
9383 return f != $ac_func;
9388 rm -f conftest.$ac_objext conftest$ac_exeext
9389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9390 (eval $ac_link) 2>conftest.er1
9392 grep -v '^ *+' conftest.er1 >conftest.err
9394 cat conftest.err >&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } &&
9397 { ac_try='test -z "$ac_c_werror_flag"
9398 || test ! -s conftest.err'
9399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; } &&
9404 { ac_try='test -s conftest$ac_exeext'
9405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; }; then
9410 eval "$as_ac_var=yes"
9412 echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.$ac_ext >&5
9415 eval "$as_ac_var=no"
9417 rm -f conftest.err conftest.$ac_objext \
9418 conftest$ac_exeext conftest.$ac_ext
9420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9422 if test `eval echo '${'$as_ac_var'}'` = yes; then
9423 cat >>confdefs.h <<_ACEOF
9424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9432 for ac_func in memcpy bcopy
9434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9435 echo "$as_me:$LINENO: checking for $ac_func" >&5
9436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9437 if eval "test \"\${$as_ac_var+set}\" = set"; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 cat >conftest.$ac_ext <<_ACEOF
9443 cat confdefs.h >>conftest.$ac_ext
9444 cat >>conftest.$ac_ext <<_ACEOF
9445 /* end confdefs.h. */
9446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9448 #define $ac_func innocuous_$ac_func
9450 /* System header to define __stub macros and hopefully few prototypes,
9451 which can conflict with char $ac_func (); below.
9452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9453 <limits.h> exists even on freestanding compilers. */
9456 # include <limits.h>
9458 # include <assert.h>
9463 /* Override any gcc2 internal prototype to avoid an error. */
9468 /* We use char because int might match the return type of a gcc2
9469 builtin and then its argument prototype would still apply. */
9471 /* The GNU C library defines this for functions which it implements
9472 to always fail with ENOSYS. Some functions are actually named
9473 something starting with __ and the normal name is an alias. */
9474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9477 char (*f) () = $ac_func;
9486 return f != $ac_func;
9491 rm -f conftest.$ac_objext conftest$ac_exeext
9492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9493 (eval $ac_link) 2>conftest.er1
9495 grep -v '^ *+' conftest.er1 >conftest.err
9497 cat conftest.err >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } &&
9500 { ac_try='test -z "$ac_c_werror_flag"
9501 || test ! -s conftest.err'
9502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; } &&
9507 { ac_try='test -s conftest$ac_exeext'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; }; then
9513 eval "$as_ac_var=yes"
9515 echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.$ac_ext >&5
9518 eval "$as_ac_var=no"
9520 rm -f conftest.err conftest.$ac_objext \
9521 conftest$ac_exeext conftest.$ac_ext
9523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9525 if test `eval echo '${'$as_ac_var'}'` = yes; then
9526 cat >>confdefs.h <<_ACEOF
9527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9535 for ac_func in memmove strcmp
9537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9538 echo "$as_me:$LINENO: checking for $ac_func" >&5
9539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9540 if eval "test \"\${$as_ac_var+set}\" = set"; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 cat >conftest.$ac_ext <<_ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9551 #define $ac_func innocuous_$ac_func
9553 /* System header to define __stub macros and hopefully few prototypes,
9554 which can conflict with char $ac_func (); below.
9555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9556 <limits.h> exists even on freestanding compilers. */
9559 # include <limits.h>
9561 # include <assert.h>
9566 /* Override any gcc2 internal prototype to avoid an error. */
9571 /* We use char because int might match the return type of a gcc2
9572 builtin and then its argument prototype would still apply. */
9574 /* The GNU C library defines this for functions which it implements
9575 to always fail with ENOSYS. Some functions are actually named
9576 something starting with __ and the normal name is an alias. */
9577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9580 char (*f) () = $ac_func;
9589 return f != $ac_func;
9594 rm -f conftest.$ac_objext conftest$ac_exeext
9595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9596 (eval $ac_link) 2>conftest.er1
9598 grep -v '^ *+' conftest.er1 >conftest.err
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } &&
9603 { ac_try='test -z "$ac_c_werror_flag"
9604 || test ! -s conftest.err'
9605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; } &&
9610 { ac_try='test -s conftest$ac_exeext'
9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; }; then
9616 eval "$as_ac_var=yes"
9618 echo "$as_me: failed program was:" >&5
9619 sed 's/^/| /' conftest.$ac_ext >&5
9621 eval "$as_ac_var=no"
9623 rm -f conftest.err conftest.$ac_objext \
9624 conftest$ac_exeext conftest.$ac_ext
9626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9628 if test `eval echo '${'$as_ac_var'}'` = yes; then
9629 cat >>confdefs.h <<_ACEOF
9630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9639 for ac_func in closedir opendir readdir
9641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9642 echo "$as_me:$LINENO: checking for $ac_func" >&5
9643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9644 if eval "test \"\${$as_ac_var+set}\" = set"; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 cat >conftest.$ac_ext <<_ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9655 #define $ac_func innocuous_$ac_func
9657 /* System header to define __stub macros and hopefully few prototypes,
9658 which can conflict with char $ac_func (); below.
9659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9660 <limits.h> exists even on freestanding compilers. */
9663 # include <limits.h>
9665 # include <assert.h>
9670 /* Override any gcc2 internal prototype to avoid an error. */
9675 /* We use char because int might match the return type of a gcc2
9676 builtin and then its argument prototype would still apply. */
9678 /* The GNU C library defines this for functions which it implements
9679 to always fail with ENOSYS. Some functions are actually named
9680 something starting with __ and the normal name is an alias. */
9681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9684 char (*f) () = $ac_func;
9693 return f != $ac_func;
9698 rm -f conftest.$ac_objext conftest$ac_exeext
9699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9700 (eval $ac_link) 2>conftest.er1
9702 grep -v '^ *+' conftest.er1 >conftest.err
9704 cat conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
9707 { ac_try='test -z "$ac_c_werror_flag"
9708 || test ! -s conftest.err'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; } &&
9714 { ac_try='test -s conftest$ac_exeext'
9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; }; then
9720 eval "$as_ac_var=yes"
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9725 eval "$as_ac_var=no"
9727 rm -f conftest.err conftest.$ac_objext \
9728 conftest$ac_exeext conftest.$ac_ext
9730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9732 if test `eval echo '${'$as_ac_var'}'` = yes; then
9733 cat >>confdefs.h <<_ACEOF
9734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9741 # Check whether --enable-shared or --disable-shared was given.
9742 if test "${enable_shared+set}" = set; then
9743 enableval="$enable_shared"
9744 p=${PACKAGE-default}
9746 yes) enable_shared=yes ;;
9747 no) enable_shared=no ;;
9750 # Look at the argument we got. We use all the common list separators.
9751 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9752 for pkg in $enableval; do
9754 if test "X$pkg" = "X$p"; then
9765 # Check whether --enable-static or --disable-static was given.
9766 if test "${enable_static+set}" = set; then
9767 enableval="$enable_static"
9768 p=${PACKAGE-default}
9770 yes) enable_static=yes ;;
9771 no) enable_static=no ;;
9774 # Look at the argument we got. We use all the common list separators.
9775 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9776 for pkg in $enableval; do
9778 if test "X$pkg" = "X$p"; then
9789 # Check whether --enable-fast-install or --disable-fast-install was given.
9790 if test "${enable_fast_install+set}" = set; then
9791 enableval="$enable_fast_install"
9792 p=${PACKAGE-default}
9794 yes) enable_fast_install=yes ;;
9795 no) enable_fast_install=no ;;
9797 enable_fast_install=no
9798 # Look at the argument we got. We use all the common list separators.
9799 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9800 for pkg in $enableval; do
9802 if test "X$pkg" = "X$p"; then
9803 enable_fast_install=yes
9810 enable_fast_install=yes
9813 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9814 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9815 if test "${lt_cv_path_SED+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 # Loop through the user's path and test for sed and gsed.
9819 # Then use that list of sed's as ones to test for truncation.
9820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824 test -z "$as_dir" && as_dir=.
9825 for lt_ac_prog in sed gsed; do
9826 for ac_exec_ext in '' $ac_executable_extensions; do
9827 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9828 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9835 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9836 # along with /bin/sed that truncates output.
9837 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9838 test ! -f $lt_ac_sed && break
9839 cat /dev/null > conftest.in
9841 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9842 # Check for GNU sed and select it if it is found.
9843 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9844 lt_cv_path_SED=$lt_ac_sed
9848 cat conftest.in conftest.in >conftest.tmp
9849 mv conftest.tmp conftest.in
9850 cp conftest.in conftest.nl
9852 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9853 cmp -s conftest.out conftest.nl || break
9854 # 10000 chars as input seems more than enough
9855 test $lt_ac_count -gt 10 && break
9856 lt_ac_count=`expr $lt_ac_count + 1`
9857 if test $lt_ac_count -gt $lt_ac_max; then
9858 lt_ac_max=$lt_ac_count
9859 lt_cv_path_SED=$lt_ac_sed
9867 echo "$as_me:$LINENO: result: $SED" >&5
9868 echo "${ECHO_T}$SED" >&6
9871 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9872 if test "${with_gnu_ld+set}" = set; then
9873 withval="$with_gnu_ld"
9874 test "$withval" = no || with_gnu_ld=yes
9879 if test "$GCC" = yes; then
9880 # Check if gcc -print-prog-name=ld gives a path.
9881 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9882 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9885 # gcc leaves a trailing carriage return which upsets mingw
9886 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9888 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9891 # Accept absolute paths.
9893 re_direlt='/[^/][^/]*/\.\./'
9894 # Canonicalize the pathname of ld
9895 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9896 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9897 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9899 test -z "$LD" && LD="$ac_prog"
9902 # If it fails, then pretend we aren't using GCC.
9906 # If it is relative, then search for the first ld in PATH.
9910 elif test "$with_gnu_ld" = yes; then
9911 echo "$as_me:$LINENO: checking for GNU ld" >&5
9912 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9914 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9915 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9917 if test "${lt_cv_path_LD+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 if test -z "$LD"; then
9921 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9922 for ac_dir in $PATH; do
9924 test -z "$ac_dir" && ac_dir=.
9925 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9926 lt_cv_path_LD="$ac_dir/$ac_prog"
9927 # Check to see if the program is GNU ld. I'd rather use --version,
9928 # but apparently some GNU ld's only accept -v.
9929 # Break only if it was the GNU/non-GNU ld that we prefer.
9930 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9931 *GNU* | *'with BFD'*)
9932 test "$with_gnu_ld" != no && break
9935 test "$with_gnu_ld" != yes && break
9942 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9947 if test -n "$LD"; then
9948 echo "$as_me:$LINENO: result: $LD" >&5
9949 echo "${ECHO_T}$LD" >&6
9951 echo "$as_me:$LINENO: result: no" >&5
9952 echo "${ECHO_T}no" >&6
9954 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9955 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9956 { (exit 1); exit 1; }; }
9957 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9958 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9959 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9963 case `$LD -v 2>&1 </dev/null` in
9964 *GNU* | *'with BFD'*)
9965 lt_cv_prog_gnu_ld=yes
9968 lt_cv_prog_gnu_ld=no
9972 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9973 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9974 with_gnu_ld=$lt_cv_prog_gnu_ld
9977 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9978 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9979 if test "${lt_cv_ld_reload_flag+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 lt_cv_ld_reload_flag='-r'
9984 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9985 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9986 reload_flag=$lt_cv_ld_reload_flag
9987 case $reload_flag in
9989 *) reload_flag=" $reload_flag" ;;
9991 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9994 if test "$GCC" = yes; then
9995 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9997 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10002 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10003 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10004 if test "${lt_cv_deplibs_check_method+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
10007 lt_cv_file_magic_cmd='$MAGIC_CMD'
10008 lt_cv_file_magic_test_file=
10009 lt_cv_deplibs_check_method='unknown'
10010 # Need to set the preceding variable on all platforms that support
10011 # interlibrary dependencies.
10012 # 'none' -- dependencies not supported.
10013 # `unknown' -- same as none, but documents that we really don't know.
10014 # 'pass_all' -- all dependencies passed with no checks.
10015 # 'test_compile' -- check by making test program.
10016 # 'file_magic [[regex]]' -- check by looking for files in library path
10017 # which responds to the $file_magic_cmd with a given extended regex.
10018 # If you have `file' or equivalent on your system and you're not sure
10019 # whether `pass_all' will *always* work, you probably want this one.
10023 lt_cv_deplibs_check_method=pass_all
10027 lt_cv_deplibs_check_method=pass_all
10031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10032 lt_cv_file_magic_cmd='/usr/bin/file -L'
10033 lt_cv_file_magic_test_file=/shlib/libc.so
10037 # func_win32_libid is a shell function defined in ltmain.sh
10038 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10039 lt_cv_file_magic_cmd='func_win32_libid'
10043 # Base MSYS/MinGW do not provide the 'file' command needed by
10044 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10045 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10046 lt_cv_file_magic_cmd='$OBJDUMP -f'
10049 darwin* | rhapsody*)
10050 lt_cv_deplibs_check_method=pass_all
10053 freebsd* | kfreebsd*-gnu)
10054 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10057 # Not sure whether the presence of OpenBSD here was a mistake.
10058 # Let's accept both of them until this is cleared up.
10059 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10060 lt_cv_file_magic_cmd=/usr/bin/file
10061 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10065 lt_cv_deplibs_check_method=pass_all
10070 lt_cv_deplibs_check_method=pass_all
10073 hpux10.20* | hpux11*)
10074 lt_cv_file_magic_cmd=/usr/bin/file
10075 case "$host_cpu" in
10077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10078 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10081 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]'
10082 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10085 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10086 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10091 irix5* | irix6* | nonstopux*)
10093 *-32|*"-32 ") libmagic=32-bit;;
10094 *-n32|*"-n32 ") libmagic=N32;;
10095 *-64|*"-64 ") libmagic=64-bit;;
10096 *) libmagic=never-match;;
10098 lt_cv_deplibs_check_method=pass_all
10101 # This must be Linux ELF.
10103 lt_cv_deplibs_check_method=pass_all
10107 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10108 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10110 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10116 lt_cv_file_magic_cmd=/usr/bin/file
10117 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10121 lt_cv_deplibs_check_method=unknown
10125 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10126 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10132 osf3* | osf4* | osf5*)
10133 lt_cv_deplibs_check_method=pass_all
10137 lt_cv_deplibs_check_method=pass_all
10141 lt_cv_deplibs_check_method=pass_all
10144 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10145 case $host_vendor in
10147 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]'
10148 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10151 lt_cv_deplibs_check_method=pass_all
10154 lt_cv_file_magic_cmd='/bin/file'
10155 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10158 lt_cv_file_magic_cmd='/bin/file'
10159 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10160 lt_cv_file_magic_test_file=/lib/libc.so
10163 lt_cv_deplibs_check_method=pass_all
10168 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10169 lt_cv_deplibs_check_method=pass_all
10174 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10175 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10176 file_magic_cmd=$lt_cv_file_magic_cmd
10177 deplibs_check_method=$lt_cv_deplibs_check_method
10178 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10182 # If no C compiler was specified, use CC.
10185 # Allow CC to be a program name with arguments.
10188 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10189 if test "${enable_libtool_lock+set}" = set; then
10190 enableval="$enable_libtool_lock"
10193 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10195 # Some flags need to be propagated to the compiler or linker for good
10199 # Find out which ABI we are using.
10200 echo 'int i;' > conftest.$ac_ext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10202 (eval $ac_compile) 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; then
10206 case `/usr/bin/file conftest.$ac_objext` in
10208 HPUX_IA64_MODE="32"
10211 HPUX_IA64_MODE="64"
10218 # Find out which ABI we are using.
10219 echo '#line 10219 "configure"' > conftest.$ac_ext
10220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10221 (eval $ac_compile) 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; then
10225 if test "$lt_cv_prog_gnu_ld" = yes; then
10226 case `/usr/bin/file conftest.$ac_objext` in
10228 LD="${LD-ld} -melf32bsmip"
10231 LD="${LD-ld} -melf32bmipn32"
10234 LD="${LD-ld} -melf64bmip"
10238 case `/usr/bin/file conftest.$ac_objext` in
10254 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10255 # Find out which ABI we are using.
10256 echo 'int i;' > conftest.$ac_ext
10257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10258 (eval $ac_compile) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; then
10262 case "`/usr/bin/file conftest.o`" in
10266 LD="${LD-ld} -m elf_i386"
10268 ppc64-*linux*|powerpc64-*linux*)
10269 LD="${LD-ld} -m elf32ppclinux"
10272 LD="${LD-ld} -m elf_s390"
10275 LD="${LD-ld} -m elf32_sparc"
10282 LD="${LD-ld} -m elf_x86_64"
10284 ppc*-*linux*|powerpc*-*linux*)
10285 LD="${LD-ld} -m elf64ppc"
10288 LD="${LD-ld} -m elf64_s390"
10291 LD="${LD-ld} -m elf64_sparc"
10301 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10302 SAVE_CFLAGS="$CFLAGS"
10303 CFLAGS="$CFLAGS -belf"
10304 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10305 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10306 if test "${lt_cv_cc_needs_belf+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10310 ac_cpp='$CPP $CPPFLAGS'
10311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10315 cat >conftest.$ac_ext <<_ACEOF
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h. */
10323 rm -f conftest.$ac_objext conftest$ac_exeext
10324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10325 (eval $ac_link) 2>conftest.er1
10327 grep -v '^ *+' conftest.er1 >conftest.err
10329 cat conftest.err >&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } &&
10332 { ac_try='test -z "$ac_c_werror_flag"
10333 || test ! -s conftest.err'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; } &&
10339 { ac_try='test -s conftest$ac_exeext'
10340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341 (eval $ac_try) 2>&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }; }; then
10345 lt_cv_cc_needs_belf=yes
10347 echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10350 lt_cv_cc_needs_belf=no
10352 rm -f conftest.err conftest.$ac_objext \
10353 conftest$ac_exeext conftest.$ac_ext
10355 ac_cpp='$CPP $CPPFLAGS'
10356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10361 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10362 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10363 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10364 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10365 CFLAGS="$SAVE_CFLAGS"
10371 need_locks="$enable_libtool_lock"
10376 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10377 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10378 (test "X$CXX" != "Xg++"))) ; then
10380 ac_cpp='$CXXCPP $CPPFLAGS'
10381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10384 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10385 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10386 if test -z "$CXXCPP"; then
10387 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10388 echo $ECHO_N "(cached) $ECHO_C" >&6
10390 # Double quotes because CXXCPP needs to be expanded
10391 for CXXCPP in "$CXX -E" "/lib/cpp"
10393 ac_preproc_ok=false
10394 for ac_cxx_preproc_warn_flag in '' yes
10396 # Use a header file that comes with gcc, so configuring glibc
10397 # with a fresh cross-compiler works.
10398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10399 # <limits.h> exists even on freestanding compilers.
10400 # On the NeXT, cc -E runs the code through the compiler's parser,
10401 # not just through cpp. "Syntax error" is here to catch this case.
10402 cat >conftest.$ac_ext <<_ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h. */
10409 # include <limits.h>
10411 # include <assert.h>
10415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10418 grep -v '^ *+' conftest.er1 >conftest.err
10420 cat conftest.err >&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); } >/dev/null; then
10423 if test -s conftest.err; then
10424 ac_cpp_err=$ac_cxx_preproc_warn_flag
10425 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10432 if test -z "$ac_cpp_err"; then
10435 echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.$ac_ext >&5
10438 # Broken: fails on valid input.
10441 rm -f conftest.err conftest.$ac_ext
10443 # OK, works on sane cases. Now check whether non-existent headers
10444 # can be detected and how.
10445 cat >conftest.$ac_ext <<_ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10451 #include <ac_nonexistent.h>
10453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10456 grep -v '^ *+' conftest.er1 >conftest.err
10458 cat conftest.err >&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } >/dev/null; then
10461 if test -s conftest.err; then
10462 ac_cpp_err=$ac_cxx_preproc_warn_flag
10463 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10470 if test -z "$ac_cpp_err"; then
10471 # Broken: success on invalid input.
10474 echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10477 # Passes both tests.
10481 rm -f conftest.err conftest.$ac_ext
10484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10485 rm -f conftest.err conftest.$ac_ext
10486 if $ac_preproc_ok; then
10491 ac_cv_prog_CXXCPP=$CXXCPP
10494 CXXCPP=$ac_cv_prog_CXXCPP
10496 ac_cv_prog_CXXCPP=$CXXCPP
10498 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10499 echo "${ECHO_T}$CXXCPP" >&6
10500 ac_preproc_ok=false
10501 for ac_cxx_preproc_warn_flag in '' yes
10503 # Use a header file that comes with gcc, so configuring glibc
10504 # with a fresh cross-compiler works.
10505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10506 # <limits.h> exists even on freestanding compilers.
10507 # On the NeXT, cc -E runs the code through the compiler's parser,
10508 # not just through cpp. "Syntax error" is here to catch this case.
10509 cat >conftest.$ac_ext <<_ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10516 # include <limits.h>
10518 # include <assert.h>
10522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10525 grep -v '^ *+' conftest.er1 >conftest.err
10527 cat conftest.err >&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } >/dev/null; then
10530 if test -s conftest.err; then
10531 ac_cpp_err=$ac_cxx_preproc_warn_flag
10532 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10539 if test -z "$ac_cpp_err"; then
10542 echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10545 # Broken: fails on valid input.
10548 rm -f conftest.err conftest.$ac_ext
10550 # OK, works on sane cases. Now check whether non-existent headers
10551 # can be detected and how.
10552 cat >conftest.$ac_ext <<_ACEOF
10555 cat confdefs.h >>conftest.$ac_ext
10556 cat >>conftest.$ac_ext <<_ACEOF
10557 /* end confdefs.h. */
10558 #include <ac_nonexistent.h>
10560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10563 grep -v '^ *+' conftest.er1 >conftest.err
10565 cat conftest.err >&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } >/dev/null; then
10568 if test -s conftest.err; then
10569 ac_cpp_err=$ac_cxx_preproc_warn_flag
10570 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10577 if test -z "$ac_cpp_err"; then
10578 # Broken: success on invalid input.
10581 echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10584 # Passes both tests.
10588 rm -f conftest.err conftest.$ac_ext
10591 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10592 rm -f conftest.err conftest.$ac_ext
10593 if $ac_preproc_ok; then
10596 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10597 See \`config.log' for more details." >&5
10598 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10599 See \`config.log' for more details." >&2;}
10600 { (exit 1); exit 1; }; }
10604 ac_cpp='$CXXCPP $CPPFLAGS'
10605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10613 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10614 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10615 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10616 if test -n "$ac_tool_prefix"; then
10617 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10621 echo "$as_me:$LINENO: checking for $ac_word" >&5
10622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10623 if test "${ac_cv_prog_F77+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10626 if test -n "$F77"; then
10627 ac_cv_prog_F77="$F77" # Let the user override the test.
10629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630 for as_dir in $PATH
10633 test -z "$as_dir" && as_dir=.
10634 for ac_exec_ext in '' $ac_executable_extensions; do
10635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10636 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10645 F77=$ac_cv_prog_F77
10646 if test -n "$F77"; then
10647 echo "$as_me:$LINENO: result: $F77" >&5
10648 echo "${ECHO_T}$F77" >&6
10650 echo "$as_me:$LINENO: result: no" >&5
10651 echo "${ECHO_T}no" >&6
10654 test -n "$F77" && break
10657 if test -z "$F77"; then
10659 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10661 # Extract the first word of "$ac_prog", so it can be a program name with args.
10662 set dummy $ac_prog; ac_word=$2
10663 echo "$as_me:$LINENO: checking for $ac_word" >&5
10664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10665 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10666 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 if test -n "$ac_ct_F77"; then
10669 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672 for as_dir in $PATH
10675 test -z "$as_dir" && as_dir=.
10676 for ac_exec_ext in '' $ac_executable_extensions; do
10677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10678 ac_cv_prog_ac_ct_F77="$ac_prog"
10679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10687 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10688 if test -n "$ac_ct_F77"; then
10689 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10690 echo "${ECHO_T}$ac_ct_F77" >&6
10692 echo "$as_me:$LINENO: result: no" >&5
10693 echo "${ECHO_T}no" >&6
10696 test -n "$ac_ct_F77" && break
10703 # Provide some information about the compiler.
10704 echo "$as_me:10704:" \
10705 "checking for Fortran 77 compiler version" >&5
10706 ac_compiler=`set X $ac_compile; echo $2`
10707 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10708 (eval $ac_compiler --version </dev/null >&5) 2>&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }
10712 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10713 (eval $ac_compiler -v </dev/null >&5) 2>&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }
10717 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10718 (eval $ac_compiler -V </dev/null >&5) 2>&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }
10724 # If we don't use `.F' as extension, the preprocessor is not run on the
10725 # input file. (Note that this only needs to work for GNU compilers.)
10726 ac_save_ext=$ac_ext
10728 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10729 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10730 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10731 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 cat >conftest.$ac_ext <<_ACEOF
10741 rm -f conftest.$ac_objext
10742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10743 (eval $ac_compile) 2>conftest.er1
10745 grep -v '^ *+' conftest.er1 >conftest.err
10747 cat conftest.err >&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } &&
10750 { ac_try='test -z "$ac_f77_werror_flag"
10751 || test ! -s conftest.err'
10752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753 (eval $ac_try) 2>&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); }; } &&
10757 { ac_try='test -s conftest.$ac_objext'
10758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759 (eval $ac_try) 2>&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }; }; then
10763 ac_compiler_gnu=yes
10765 echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10771 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10774 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10775 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10776 ac_ext=$ac_save_ext
10777 ac_test_FFLAGS=${FFLAGS+set}
10778 ac_save_FFLAGS=$FFLAGS
10780 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10781 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10782 if test "${ac_cv_prog_f77_g+set}" = set; then
10783 echo $ECHO_N "(cached) $ECHO_C" >&6
10786 cat >conftest.$ac_ext <<_ACEOF
10791 rm -f conftest.$ac_objext
10792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10793 (eval $ac_compile) 2>conftest.er1
10795 grep -v '^ *+' conftest.er1 >conftest.err
10797 cat conftest.err >&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); } &&
10800 { ac_try='test -z "$ac_f77_werror_flag"
10801 || test ! -s conftest.err'
10802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10803 (eval $ac_try) 2>&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); }; } &&
10807 { ac_try='test -s conftest.$ac_objext'
10808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10809 (eval $ac_try) 2>&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }; }; then
10813 ac_cv_prog_f77_g=yes
10815 echo "$as_me: failed program was:" >&5
10816 sed 's/^/| /' conftest.$ac_ext >&5
10818 ac_cv_prog_f77_g=no
10820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10823 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10824 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10825 if test "$ac_test_FFLAGS" = set; then
10826 FFLAGS=$ac_save_FFLAGS
10827 elif test $ac_cv_prog_f77_g = yes; then
10828 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10834 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10841 G77=`test $ac_compiler_gnu = yes && echo yes`
10843 ac_cpp='$CPP $CPPFLAGS'
10844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10850 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10852 # find the maximum length of command line arguments
10853 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10854 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10855 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 # On DJGPP, this test can blow up pretty badly due to problems in libc
10864 # (any single argument exceeding 2000 bytes causes a buffer overrun
10865 # during glob expansion). Even if it were fixed, the result of this
10866 # check would be larger than it should be.
10867 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10871 # Under GNU Hurd, this test is not required because there is
10872 # no limit to the length of command line arguments.
10873 # Libtool will interpret -1 as no limit whatsoever
10874 lt_cv_sys_max_cmd_len=-1;
10878 # On Win9x/ME, this test blows up -- it succeeds, but takes
10879 # about 5 minutes as the teststring grows exponentially.
10880 # Worse, since 9x/ME are not pre-emptively multitasking,
10881 # you end up with a "frozen" computer, even though with patience
10882 # the test eventually succeeds (with a max line length of 256k).
10883 # Instead, let's just punt: use the minimum linelength reported by
10884 # all of the supported platforms: 8192 (on NT/2K/XP).
10885 lt_cv_sys_max_cmd_len=8192;
10889 # On AmigaOS with pdksh, this test takes hours, literally.
10890 # So we just punt and use a minimum line length of 8192.
10891 lt_cv_sys_max_cmd_len=8192;
10894 netbsd* | freebsd* | openbsd* | darwin* )
10895 # This has been around since 386BSD, at least. Likely further.
10896 if test -x /sbin/sysctl; then
10897 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10898 elif test -x /usr/sbin/sysctl; then
10899 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10901 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10903 # And add a safety zone
10904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10908 # If test is not a shell built-in, we'll probably end up computing a
10909 # maximum length that is only half of the actual maximum length, but
10911 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10912 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10913 = "XX$teststring") >/dev/null 2>&1 &&
10914 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10915 lt_cv_sys_max_cmd_len=$new_result &&
10916 test $i != 17 # 1/2 MB should be enough
10919 teststring=$teststring$teststring
10922 # Add a significant safety factor because C++ compilers can tack on massive
10923 # amounts of additional arguments before passing them to the linker.
10924 # It appears as though 1/2 is a usable value.
10925 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10931 if test -n $lt_cv_sys_max_cmd_len ; then
10932 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10933 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10935 echo "$as_me:$LINENO: result: none" >&5
10936 echo "${ECHO_T}none" >&6
10942 # Check for command to grab the raw symbol name followed by C symbol from nm.
10943 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10944 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10945 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 # These are sane defaults that work on at least a few old systems.
10950 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10952 # Character class describing NM global symbol codes.
10953 symcode='[BCDEGRST]'
10955 # Regexp to match symbols that can be accessed directly from C.
10956 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10958 # Transform the above into a raw symbol and a C symbol.
10959 symxfrm='\1 \2\3 \3'
10961 # Transform an extracted symbol line into a proper C declaration
10962 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10964 # Transform an extracted symbol line into symbol name and symbol address
10965 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'"
10967 # Define system-specific variables.
10972 cygwin* | mingw* | pw32*)
10973 symcode='[ABCDGISTW]'
10975 hpux*) # Its linker distinguishes data from code symbols
10976 if test "$host_cpu" = ia64; then
10977 symcode='[ABCDEGRST]'
10979 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10980 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'"
10983 if test "$host_cpu" = ia64; then
10984 symcode='[ABCDGIRSTW]'
10985 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10986 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'"
10989 irix* | nonstopux*)
10990 symcode='[BCDEGRST]'
10993 symcode='[BCDEGQRST]'
11003 # Handle CRLF in mingw tool chain
11007 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11011 # If we're using GNU nm, then use its standard symbol codes.
11012 case `$NM -V 2>&1` in
11013 *GNU* | *'with BFD'*)
11014 symcode='[ABCDGIRSTW]' ;;
11017 # Try without a prefix undercore, then with it.
11018 for ac_symprfx in "" "_"; do
11020 # Write the raw and C identifiers.
11021 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11023 # Check to see that the pipe works correctly.
11027 cat > conftest.$ac_ext <<EOF
11032 void nm_test_func(){}
11036 int main(){nm_test_var='a';nm_test_func();return(0);}
11039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11040 (eval $ac_compile) 2>&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; then
11044 # Now try to grab the symbols.
11046 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11047 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && test -s "$nlist"; then
11051 # Try sorting and uniquifying the output.
11052 if sort "$nlist" | uniq > "$nlist"T; then
11053 mv -f "$nlist"T "$nlist"
11058 # Make sure that we snagged all the symbols we need.
11059 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11060 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11061 cat <<EOF > conftest.$ac_ext
11067 # Now generate the symbol file.
11068 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11070 cat <<EOF >> conftest.$ac_ext
11071 #if defined (__STDC__) && __STDC__
11072 # define lt_ptr_t void *
11074 # define lt_ptr_t char *
11078 /* The mapping between symbol names and symbols. */
11083 lt_preloaded_symbols[] =
11086 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11087 cat <<\EOF >> conftest.$ac_ext
11095 # Now try linking the two files.
11096 mv conftest.$ac_objext conftstm.$ac_objext
11097 lt_save_LIBS="$LIBS"
11098 lt_save_CFLAGS="$CFLAGS"
11099 LIBS="conftstm.$ac_objext"
11100 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11102 (eval $ac_link) 2>&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11108 LIBS="$lt_save_LIBS"
11109 CFLAGS="$lt_save_CFLAGS"
11111 echo "cannot find nm_test_func in $nlist" >&5
11114 echo "cannot find nm_test_var in $nlist" >&5
11117 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11120 echo "$progname: failed program was:" >&5
11121 cat conftest.$ac_ext >&5
11123 rm -f conftest* conftst*
11125 # Do not use the global_symbol_pipe unless it works.
11126 if test "$pipe_works" = yes; then
11129 lt_cv_sys_global_symbol_pipe=
11135 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11136 lt_cv_sys_global_symbol_to_cdecl=
11138 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11139 echo "$as_me:$LINENO: result: failed" >&5
11140 echo "${ECHO_T}failed" >&6
11142 echo "$as_me:$LINENO: result: ok" >&5
11143 echo "${ECHO_T}ok" >&6
11146 echo "$as_me:$LINENO: checking for objdir" >&5
11147 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11148 if test "${lt_cv_objdir+set}" = set; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11151 rm -f .libs 2>/dev/null
11152 mkdir .libs 2>/dev/null
11153 if test -d .libs; then
11156 # MS-DOS does not allow filenames that begin with a dot.
11159 rmdir .libs 2>/dev/null
11161 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11162 echo "${ECHO_T}$lt_cv_objdir" >&6
11163 objdir=$lt_cv_objdir
11171 # AIX sometimes has problems with the GCC collect2 program. For some
11172 # reason, if we set the COLLECT_NAMES environment variable, the problems
11173 # vanish in a puff of smoke.
11174 if test "X${COLLECT_NAMES+set}" != Xset; then
11176 export COLLECT_NAMES
11181 # Sed substitution that helps us do robust quoting. It backslashifies
11182 # metacharacters that are still active within double-quoted strings.
11183 Xsed='sed -e s/^X//'
11184 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11186 # Same as above, but do not quote variable references.
11187 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11189 # Sed substitution to delay expansion of an escaped shell variable in a
11190 # double_quote_subst'ed string.
11191 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11193 # Sed substitution to avoid accidental globbing in evaled expressions
11194 no_glob_subst='s/\*/\\\*/g'
11199 # Global variables:
11200 default_ofile=mklib
11201 can_build_shared=yes
11203 # All known linkers require a `.a' archive for static linking (except M$VC,
11204 # which needs '.lib').
11206 ltmain="$ac_aux_dir/ltmain.sh"
11207 ofile="$default_ofile"
11208 with_gnu_ld="$lt_cv_prog_gnu_ld"
11210 if test -n "$ac_tool_prefix"; then
11211 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11212 set dummy ${ac_tool_prefix}ar; ac_word=$2
11213 echo "$as_me:$LINENO: checking for $ac_word" >&5
11214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11215 if test "${ac_cv_prog_AR+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11218 if test -n "$AR"; then
11219 ac_cv_prog_AR="$AR" # Let the user override the test.
11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $PATH
11225 test -z "$as_dir" && as_dir=.
11226 for ac_exec_ext in '' $ac_executable_extensions; do
11227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11228 ac_cv_prog_AR="${ac_tool_prefix}ar"
11229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11238 if test -n "$AR"; then
11239 echo "$as_me:$LINENO: result: $AR" >&5
11240 echo "${ECHO_T}$AR" >&6
11242 echo "$as_me:$LINENO: result: no" >&5
11243 echo "${ECHO_T}no" >&6
11247 if test -z "$ac_cv_prog_AR"; then
11249 # Extract the first word of "ar", so it can be a program name with args.
11250 set dummy ar; ac_word=$2
11251 echo "$as_me:$LINENO: checking for $ac_word" >&5
11252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11253 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 if test -n "$ac_ct_AR"; then
11257 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260 for as_dir in $PATH
11263 test -z "$as_dir" && as_dir=.
11264 for ac_exec_ext in '' $ac_executable_extensions; do
11265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11266 ac_cv_prog_ac_ct_AR="ar"
11267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11273 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11276 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11277 if test -n "$ac_ct_AR"; then
11278 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11279 echo "${ECHO_T}$ac_ct_AR" >&6
11281 echo "$as_me:$LINENO: result: no" >&5
11282 echo "${ECHO_T}no" >&6
11287 AR="$ac_cv_prog_AR"
11290 if test -n "$ac_tool_prefix"; then
11291 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11292 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11293 echo "$as_me:$LINENO: checking for $ac_word" >&5
11294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11295 if test "${ac_cv_prog_RANLIB+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 if test -n "$RANLIB"; then
11299 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11302 for as_dir in $PATH
11305 test -z "$as_dir" && as_dir=.
11306 for ac_exec_ext in '' $ac_executable_extensions; do
11307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11308 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11317 RANLIB=$ac_cv_prog_RANLIB
11318 if test -n "$RANLIB"; then
11319 echo "$as_me:$LINENO: result: $RANLIB" >&5
11320 echo "${ECHO_T}$RANLIB" >&6
11322 echo "$as_me:$LINENO: result: no" >&5
11323 echo "${ECHO_T}no" >&6
11327 if test -z "$ac_cv_prog_RANLIB"; then
11328 ac_ct_RANLIB=$RANLIB
11329 # Extract the first word of "ranlib", so it can be a program name with args.
11330 set dummy ranlib; ac_word=$2
11331 echo "$as_me:$LINENO: checking for $ac_word" >&5
11332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11333 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 if test -n "$ac_ct_RANLIB"; then
11337 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340 for as_dir in $PATH
11343 test -z "$as_dir" && as_dir=.
11344 for ac_exec_ext in '' $ac_executable_extensions; do
11345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11346 ac_cv_prog_ac_ct_RANLIB="ranlib"
11347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11353 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11356 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11357 if test -n "$ac_ct_RANLIB"; then
11358 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11359 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11361 echo "$as_me:$LINENO: result: no" >&5
11362 echo "${ECHO_T}no" >&6
11365 RANLIB=$ac_ct_RANLIB
11367 RANLIB="$ac_cv_prog_RANLIB"
11370 if test -n "$ac_tool_prefix"; then
11371 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11372 set dummy ${ac_tool_prefix}strip; ac_word=$2
11373 echo "$as_me:$LINENO: checking for $ac_word" >&5
11374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11375 if test "${ac_cv_prog_STRIP+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11378 if test -n "$STRIP"; then
11379 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11382 for as_dir in $PATH
11385 test -z "$as_dir" && as_dir=.
11386 for ac_exec_ext in '' $ac_executable_extensions; do
11387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11388 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11397 STRIP=$ac_cv_prog_STRIP
11398 if test -n "$STRIP"; then
11399 echo "$as_me:$LINENO: result: $STRIP" >&5
11400 echo "${ECHO_T}$STRIP" >&6
11402 echo "$as_me:$LINENO: result: no" >&5
11403 echo "${ECHO_T}no" >&6
11407 if test -z "$ac_cv_prog_STRIP"; then
11409 # Extract the first word of "strip", so it can be a program name with args.
11410 set dummy strip; ac_word=$2
11411 echo "$as_me:$LINENO: checking for $ac_word" >&5
11412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11413 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11416 if test -n "$ac_ct_STRIP"; then
11417 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420 for as_dir in $PATH
11423 test -z "$as_dir" && as_dir=.
11424 for ac_exec_ext in '' $ac_executable_extensions; do
11425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11426 ac_cv_prog_ac_ct_STRIP="strip"
11427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11433 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11436 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11437 if test -n "$ac_ct_STRIP"; then
11438 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11439 echo "${ECHO_T}$ac_ct_STRIP" >&6
11441 echo "$as_me:$LINENO: result: no" >&5
11442 echo "${ECHO_T}no" >&6
11447 STRIP="$ac_cv_prog_STRIP"
11452 old_CFLAGS="$CFLAGS"
11454 # Set sane defaults for various variables
11455 test -z "$AR" && AR=ar
11456 test -z "$AR_FLAGS" && AR_FLAGS=cru
11457 test -z "$AS" && AS=as
11458 test -z "$CC" && CC=cc
11459 test -z "$LTCC" && LTCC=$CC
11460 test -z "$DLLTOOL" && DLLTOOL=dlltool
11461 test -z "$LD" && LD=ld
11462 test -z "$LN_S" && LN_S="ln -s"
11463 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11464 test -z "$NM" && NM=nm
11465 test -z "$SED" && SED=sed
11466 test -z "$OBJDUMP" && OBJDUMP=objdump
11467 test -z "$RANLIB" && RANLIB=:
11468 test -z "$STRIP" && STRIP=:
11469 test -z "$ac_objext" && ac_objext=o
11471 # Determine commands to create old-style static archives.
11472 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11473 old_postinstall_cmds='chmod 644 $oldlib'
11474 old_postuninstall_cmds=
11476 if test -n "$RANLIB"; then
11479 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11482 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11485 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11488 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11490 # Only perform the check for file, if the check method requires it
11491 case $deplibs_check_method in
11493 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11494 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11495 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11496 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
11501 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11504 lt_save_MAGIC_CMD="$MAGIC_CMD"
11505 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11506 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11507 for ac_dir in $ac_dummy; do
11509 test -z "$ac_dir" && ac_dir=.
11510 if test -f $ac_dir/${ac_tool_prefix}file; then
11511 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11512 if test -n "$file_magic_test_file"; then
11513 case $deplibs_check_method in
11515 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11516 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11517 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11518 $EGREP "$file_magic_regex" > /dev/null; then
11523 *** Warning: the command libtool uses to detect shared libraries,
11524 *** $file_magic_cmd, produces output that libtool cannot recognize.
11525 *** The result is that libtool may fail to recognize shared libraries
11526 *** as such. This will affect the creation of libtool libraries that
11527 *** depend on shared libraries, but programs linked with such libtool
11528 *** libraries will work regardless of this problem. Nevertheless, you
11529 *** may want to report the problem to your system manager and/or to
11530 *** bug-libtool@gnu.org
11540 MAGIC_CMD="$lt_save_MAGIC_CMD"
11545 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11546 if test -n "$MAGIC_CMD"; then
11547 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11548 echo "${ECHO_T}$MAGIC_CMD" >&6
11550 echo "$as_me:$LINENO: result: no" >&5
11551 echo "${ECHO_T}no" >&6
11554 if test -z "$lt_cv_path_MAGIC_CMD"; then
11555 if test -n "$ac_tool_prefix"; then
11556 echo "$as_me:$LINENO: checking for file" >&5
11557 echo $ECHO_N "checking for file... $ECHO_C" >&6
11558 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11563 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11566 lt_save_MAGIC_CMD="$MAGIC_CMD"
11567 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11568 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11569 for ac_dir in $ac_dummy; do
11571 test -z "$ac_dir" && ac_dir=.
11572 if test -f $ac_dir/file; then
11573 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11574 if test -n "$file_magic_test_file"; then
11575 case $deplibs_check_method in
11577 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11578 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11579 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11580 $EGREP "$file_magic_regex" > /dev/null; then
11585 *** Warning: the command libtool uses to detect shared libraries,
11586 *** $file_magic_cmd, produces output that libtool cannot recognize.
11587 *** The result is that libtool may fail to recognize shared libraries
11588 *** as such. This will affect the creation of libtool libraries that
11589 *** depend on shared libraries, but programs linked with such libtool
11590 *** libraries will work regardless of this problem. Nevertheless, you
11591 *** may want to report the problem to your system manager and/or to
11592 *** bug-libtool@gnu.org
11602 MAGIC_CMD="$lt_save_MAGIC_CMD"
11607 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11608 if test -n "$MAGIC_CMD"; then
11609 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11610 echo "${ECHO_T}$MAGIC_CMD" >&6
11612 echo "$as_me:$LINENO: result: no" >&5
11613 echo "${ECHO_T}no" >&6
11626 enable_win32_dll=no
11628 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11629 if test "${enable_libtool_lock+set}" = set; then
11630 enableval="$enable_libtool_lock"
11633 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11636 # Check whether --with-pic or --without-pic was given.
11637 if test "${with_pic+set}" = set; then
11638 withval="$with_pic"
11639 pic_mode="$withval"
11643 test -z "$pic_mode" && pic_mode=default
11645 # Use C for the default configuration in the libtool script
11649 ac_cpp='$CPP $CPPFLAGS'
11650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11655 # Source file extension for C test sources.
11658 # Object file extension for compiled C test sources.
11662 # Code to be used in simple compile tests
11663 lt_simple_compile_test_code="int some_variable = 0;\n"
11665 # Code to be used in simple link tests
11666 lt_simple_link_test_code='int main(){return(0);}\n'
11669 # If no C compiler was specified, use CC.
11672 # Allow CC to be a program name with arguments.
11677 # Check for any special shared library compilation flags.
11680 if test "$GCC" = no; then
11683 lt_prog_cc_shlib='-belf'
11687 if test -n "$lt_prog_cc_shlib"; then
11688 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11689 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11690 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11692 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11693 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11694 lt_cv_prog_cc_can_build_shared=no
11700 # Check to make sure the static flag actually works.
11702 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11703 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11704 if test "${lt_prog_compiler_static_works+set}" = set; then
11705 echo $ECHO_N "(cached) $ECHO_C" >&6
11707 lt_prog_compiler_static_works=no
11708 save_LDFLAGS="$LDFLAGS"
11709 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11710 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11711 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11712 # The compiler can only warn and ignore the option if not recognized
11713 # So say no if there are warnings
11714 if test -s conftest.err; then
11715 # Append any errors to the config.log.
11716 cat conftest.err 1>&5
11718 lt_prog_compiler_static_works=yes
11722 LDFLAGS="$save_LDFLAGS"
11725 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11726 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11728 if test x"$lt_prog_compiler_static_works" = xyes; then
11731 lt_prog_compiler_static=
11737 lt_prog_compiler_no_builtin_flag=
11739 if test "$GCC" = yes; then
11740 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11743 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11744 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11745 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 lt_cv_prog_compiler_rtti_exceptions=no
11749 ac_outfile=conftest.$ac_objext
11750 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11751 lt_compiler_flag="-fno-rtti -fno-exceptions"
11752 # Insert the option either (1) after the last *FLAGS variable, or
11753 # (2) before a word containing "conftest.", or (3) at the end.
11754 # Note that $ac_compile itself does not contain backslashes and begins
11755 # with a dollar sign (not a hyphen), so the echo should work correctly.
11756 # The option is referenced via a variable to avoid confusing sed.
11757 lt_compile=`echo "$ac_compile" | $SED \
11758 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11760 -e 's:$: $lt_compiler_flag:'`
11761 (eval echo "\"\$as_me:11761: $lt_compile\"" >&5)
11762 (eval "$lt_compile" 2>conftest.err)
11764 cat conftest.err >&5
11765 echo "$as_me:11765: \$? = $ac_status" >&5
11766 if (exit $ac_status) && test -s "$ac_outfile"; then
11767 # The compiler can only warn and ignore the option if not recognized
11768 # So say no if there are warnings
11769 if test ! -s conftest.err; then
11770 lt_cv_prog_compiler_rtti_exceptions=yes
11776 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11777 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11779 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11780 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11787 lt_prog_compiler_wl=
11788 lt_prog_compiler_pic=
11789 lt_prog_compiler_static=
11791 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11792 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11794 if test "$GCC" = yes; then
11795 lt_prog_compiler_wl='-Wl,'
11796 lt_prog_compiler_static='-static'
11800 # All AIX code is PIC.
11801 if test "$host_cpu" = ia64; then
11802 # AIX 5 now supports IA64 processor
11803 lt_prog_compiler_static='-Bstatic'
11808 # FIXME: we need at least 68020 code to build shared libraries, but
11809 # adding the `-m68020' flag to GCC prevents building anything better,
11811 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11814 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11815 # PIC is the default for these OSes.
11818 mingw* | pw32* | os2*)
11819 # This hack is so that the source file can tell whether it is being
11820 # built for inclusion in a dll (and should export symbols for example).
11821 lt_prog_compiler_pic='-DDLL_EXPORT'
11824 darwin* | rhapsody*)
11825 # PIC is the default on this platform
11826 # Common symbols not allowed in MH_DYLIB files
11827 lt_prog_compiler_pic='-fno-common'
11831 # Just because we use GCC doesn't mean we suddenly get shared libraries
11832 # on systems that don't support them.
11833 lt_prog_compiler_can_build_shared=no
11838 if test -d /usr/nec; then
11839 lt_prog_compiler_pic=-Kconform_pic
11844 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11845 # not for PA HP-UX.
11846 case "$host_cpu" in
11851 lt_prog_compiler_pic='-fPIC'
11857 lt_prog_compiler_pic='-fPIC'
11861 # PORTME Check for flag to pass linker flags through the system compiler.
11864 lt_prog_compiler_wl='-Wl,'
11865 if test "$host_cpu" = ia64; then
11866 # AIX 5 now supports IA64 processor
11867 lt_prog_compiler_static='-Bstatic'
11869 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11873 # PIC is the default on this platform
11874 # Common symbols not allowed in MH_DYLIB files
11875 case "$cc_basename" in
11877 lt_prog_compiler_pic='-qnocommon'
11878 lt_prog_compiler_wl='-Wl,'
11883 mingw* | pw32* | os2*)
11884 # This hack is so that the source file can tell whether it is being
11885 # built for inclusion in a dll (and should export symbols for example).
11886 lt_prog_compiler_pic='-DDLL_EXPORT'
11889 hpux9* | hpux10* | hpux11*)
11890 lt_prog_compiler_wl='-Wl,'
11891 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11892 # not for PA HP-UX.
11893 case "$host_cpu" in
11898 lt_prog_compiler_pic='+Z'
11901 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11902 lt_prog_compiler_static='${wl}-a ${wl}archive'
11905 irix5* | irix6* | nonstopux*)
11906 lt_prog_compiler_wl='-Wl,'
11907 # PIC (with -KPIC) is the default.
11908 lt_prog_compiler_static='-non_shared'
11912 lt_prog_compiler_pic='-KPIC'
11913 lt_prog_compiler_static='-Bstatic'
11919 lt_prog_compiler_wl='-Wl,'
11920 lt_prog_compiler_pic='-KPIC'
11921 lt_prog_compiler_static='-static'
11924 lt_prog_compiler_wl='-Wl,'
11925 # All Alpha code is PIC.
11926 lt_prog_compiler_static='-non_shared'
11931 osf3* | osf4* | osf5*)
11932 lt_prog_compiler_wl='-Wl,'
11933 # All OSF/1 code is PIC.
11934 lt_prog_compiler_static='-non_shared'
11938 lt_prog_compiler_pic='-Kpic'
11939 lt_prog_compiler_static='-dn'
11943 lt_prog_compiler_wl='-Wl,'
11944 lt_prog_compiler_pic='-KPIC'
11945 lt_prog_compiler_static='-Bstatic'
11949 lt_prog_compiler_wl='-Qoption ld '
11950 lt_prog_compiler_pic='-PIC'
11951 lt_prog_compiler_static='-Bstatic'
11954 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11955 lt_prog_compiler_wl='-Wl,'
11956 lt_prog_compiler_pic='-KPIC'
11957 lt_prog_compiler_static='-Bstatic'
11961 if test -d /usr/nec ;then
11962 lt_prog_compiler_pic='-Kconform_pic'
11963 lt_prog_compiler_static='-Bstatic'
11968 lt_prog_compiler_pic='-pic'
11969 lt_prog_compiler_static='-Bstatic'
11973 lt_prog_compiler_can_build_shared=no
11978 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11979 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11982 # Check to make sure the PIC flag actually works.
11984 if test -n "$lt_prog_compiler_pic"; then
11986 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11987 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11988 if test "${lt_prog_compiler_pic_works+set}" = set; then
11989 echo $ECHO_N "(cached) $ECHO_C" >&6
11991 lt_prog_compiler_pic_works=no
11992 ac_outfile=conftest.$ac_objext
11993 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11994 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11995 # Insert the option either (1) after the last *FLAGS variable, or
11996 # (2) before a word containing "conftest.", or (3) at the end.
11997 # Note that $ac_compile itself does not contain backslashes and begins
11998 # with a dollar sign (not a hyphen), so the echo should work correctly.
11999 # The option is referenced via a variable to avoid confusing sed.
12000 lt_compile=`echo "$ac_compile" | $SED \
12001 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12003 -e 's:$: $lt_compiler_flag:'`
12004 (eval echo "\"\$as_me:12004: $lt_compile\"" >&5)
12005 (eval "$lt_compile" 2>conftest.err)
12007 cat conftest.err >&5
12008 echo "$as_me:12008: \$? = $ac_status" >&5
12009 if (exit $ac_status) && test -s "$ac_outfile"; then
12010 # The compiler can only warn and ignore the option if not recognized
12011 # So say no if there are warnings
12012 if test ! -s conftest.err; then
12013 lt_prog_compiler_pic_works=yes
12019 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12020 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12022 if test x"$lt_prog_compiler_pic_works" = xyes; then
12023 case $lt_prog_compiler_pic in
12025 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12028 lt_prog_compiler_pic=
12029 lt_prog_compiler_can_build_shared=no
12034 # For platforms which do not support PIC, -DPIC is meaningless:
12036 lt_prog_compiler_pic=
12039 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12043 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12044 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12045 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12046 echo $ECHO_N "(cached) $ECHO_C" >&6
12048 lt_cv_prog_compiler_c_o=no
12049 $rm -r conftest 2>/dev/null
12053 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12055 lt_compiler_flag="-o out/conftest2.$ac_objext"
12056 # Insert the option either (1) after the last *FLAGS variable, or
12057 # (2) before a word containing "conftest.", or (3) at the end.
12058 # Note that $ac_compile itself does not contain backslashes and begins
12059 # with a dollar sign (not a hyphen), so the echo should work correctly.
12060 lt_compile=`echo "$ac_compile" | $SED \
12061 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12063 -e 's:$: $lt_compiler_flag:'`
12064 (eval echo "\"\$as_me:12064: $lt_compile\"" >&5)
12065 (eval "$lt_compile" 2>out/conftest.err)
12067 cat out/conftest.err >&5
12068 echo "$as_me:12068: \$? = $ac_status" >&5
12069 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12071 # The compiler can only warn and ignore the option if not recognized
12072 # So say no if there are warnings
12073 if test ! -s out/conftest.err; then
12074 lt_cv_prog_compiler_c_o=yes
12079 # SGI C++ compiler will create directory out/ii_files/ for
12080 # template instantiation
12081 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12082 $rm out/* && rmdir out
12088 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12089 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12092 hard_links="nottested"
12093 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12094 # do not overwrite the value of need_locks provided by the user
12095 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12096 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12099 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12101 ln conftest.a conftest.b 2>&5 || hard_links=no
12102 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12103 echo "$as_me:$LINENO: result: $hard_links" >&5
12104 echo "${ECHO_T}$hard_links" >&6
12105 if test "$hard_links" = no; then
12106 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12107 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12114 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12115 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12118 allow_undefined_flag=
12119 enable_shared_with_static_runtimes=no
12121 archive_expsym_cmds=
12122 old_archive_From_new_cmds=
12123 old_archive_from_expsyms_cmds=
12124 export_dynamic_flag_spec=
12125 whole_archive_flag_spec=
12126 thread_safe_flag_spec=
12127 hardcode_libdir_flag_spec=
12128 hardcode_libdir_flag_spec_ld=
12129 hardcode_libdir_separator=
12131 hardcode_minus_L=no
12132 hardcode_shlibpath_var=unsupported
12133 link_all_deplibs=unknown
12134 hardcode_automatic=no
12136 module_expsym_cmds=
12137 always_export_symbols=no
12138 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12139 # include_expsyms should be a list of space-separated symbols to be *always*
12140 # included in the symbol list
12142 # exclude_expsyms can be an extended regexp of symbols to exclude
12143 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12144 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12145 # as well as any symbol that contains `d'.
12146 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12147 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12148 # platforms (ab)use it in PIC code, but their linkers get confused if
12149 # the symbol is explicitly referenced. Since portable code cannot
12150 # rely on this symbol name, it's probably fine to never include it in
12151 # preloaded symbol tables.
12152 extract_expsyms_cmds=
12155 cygwin* | mingw* | pw32*)
12156 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12157 # When not using gcc, we currently assume that we are using
12158 # Microsoft Visual C++.
12159 if test "$GCC" != yes; then
12169 if test "$with_gnu_ld" = yes; then
12170 # If archive_cmds runs LD, not CC, wlarc should be empty
12173 # See if GNU ld supports shared libraries.
12175 aix3* | aix4* | aix5*)
12176 # On AIX/PPC, the GNU linker is very broken
12177 if test "$host_cpu" != ia64; then
12181 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12182 *** to be unable to reliably create shared libraries on AIX.
12183 *** Therefore, libtool is disabling shared libraries support. If you
12184 *** really care for shared libraries, you may want to modify your PATH
12185 *** so that a non-GNU linker is found, and then restart.
12192 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)'
12193 hardcode_libdir_flag_spec='-L$libdir'
12194 hardcode_minus_L=yes
12196 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12197 # that the semantics of dynamic libraries on AmigaOS, at least up
12198 # to version 4, is to share data among multiple programs linked
12199 # with the same dynamic library. Since this doesn't match the
12200 # behavior of shared libraries on other platforms, we can't use
12206 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12207 allow_undefined_flag=unsupported
12208 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12209 # support --undefined. This deserves some investigation. FIXME
12210 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12216 cygwin* | mingw* | pw32*)
12217 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12218 # as there is no search path for DLLs.
12219 hardcode_libdir_flag_spec='-L$libdir'
12220 allow_undefined_flag=unsupported
12221 always_export_symbols=no
12222 enable_shared_with_static_runtimes=yes
12223 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12225 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12227 # If the export-symbols file already is a .def file (1st line
12228 # is EXPORTS), use it as is; otherwise, prepend...
12229 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12230 cp $export_symbols $output_objdir/$soname.def;
12232 echo EXPORTS > $output_objdir/$soname.def;
12233 cat $export_symbols >> $output_objdir/$soname.def;
12235 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12242 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12243 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12247 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12252 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12256 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12257 *** create shared libraries on Solaris systems. Therefore, libtool
12258 *** is disabling shared libraries support. We urge you to upgrade GNU
12259 *** binutils to release 2.9.1 or newer. Another option is to modify
12260 *** your PATH or compiler configuration so that the native linker is
12261 *** used, and then restart.
12264 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12266 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12273 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12275 hardcode_direct=yes
12276 hardcode_shlibpath_var=no
12280 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12281 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12282 archive_cmds="$tmp_archive_cmds"
12283 supports_anon_versioning=no
12284 case `$LD -v 2>/dev/null` in
12285 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12286 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12287 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12288 *\ 2.11.*) ;; # other 2.11 versions
12289 *) supports_anon_versioning=yes ;;
12291 if test $supports_anon_versioning = yes; then
12292 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12293 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12294 $echo "local: *; };" >> $output_objdir/$libname.ver~
12295 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12297 archive_expsym_cmds="$tmp_archive_cmds"
12305 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12307 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12314 if test "$ld_shlibs" = yes; then
12315 runpath_var=LD_RUN_PATH
12316 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12317 export_dynamic_flag_spec='${wl}--export-dynamic'
12318 # ancient GNU ld didn't support --whole-archive et. al.
12319 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12320 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12322 whole_archive_flag_spec=
12326 # PORTME fill in a description of your system's linker (not GNU ld)
12329 allow_undefined_flag=unsupported
12330 always_export_symbols=yes
12331 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'
12332 # Note: this linker hardcodes the directories in LIBPATH if there
12333 # are no directories specified by -L.
12334 hardcode_minus_L=yes
12335 if test "$GCC" = yes && test -z "$link_static_flag"; then
12336 # Neither direct hardcoding nor static linking is supported with a
12338 hardcode_direct=unsupported
12343 if test "$host_cpu" = ia64; then
12344 # On IA64, the linker does run time linking by default, so we don't
12345 # have to do anything special.
12346 aix_use_runtimelinking=no
12347 exp_sym_flag='-Bexport'
12350 # If we're using GNU nm, then we don't want the "-C" option.
12351 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12352 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12353 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'
12355 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'
12357 aix_use_runtimelinking=no
12359 # Test if we are trying to use run time linking or normal
12360 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12361 # need to do runtime linking.
12362 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12363 for ld_flag in $LDFLAGS; do
12364 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12365 aix_use_runtimelinking=yes
12371 exp_sym_flag='-bexport'
12372 no_entry_flag='-bnoentry'
12375 # When large executables or shared objects are built, AIX ld can
12376 # have problems creating the table of contents. If linking a library
12377 # or program results in "error TOC overflow" add -mminimal-toc to
12378 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12379 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12382 hardcode_direct=yes
12383 hardcode_libdir_separator=':'
12384 link_all_deplibs=yes
12386 if test "$GCC" = yes; then
12387 case $host_os in aix4.012|aix4.012.*)
12388 # We only want to do this on AIX 4.2 and lower, the check
12389 # below for broken collect2 doesn't work under 4.3+
12390 collect2name=`${CC} -print-prog-name=collect2`
12391 if test -f "$collect2name" && \
12392 strings "$collect2name" | grep resolve_lib_name >/dev/null
12394 # We have reworked collect2
12395 hardcode_direct=yes
12397 # We have old collect2
12398 hardcode_direct=unsupported
12399 # It fails to find uninstalled libraries when the uninstalled
12400 # path is not listed in the libpath. Setting hardcode_minus_L
12401 # to unsupported forces relinking
12402 hardcode_minus_L=yes
12403 hardcode_libdir_flag_spec='-L$libdir'
12404 hardcode_libdir_separator=
12407 shared_flag='-shared'
12410 if test "$host_cpu" = ia64; then
12411 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12412 # chokes on -Wl,-G. The following line is correct:
12415 if test "$aix_use_runtimelinking" = yes; then
12416 shared_flag='${wl}-G'
12418 shared_flag='${wl}-bM:SRE'
12423 # It seems that -bexpall does not export symbols beginning with
12424 # underscore (_), so it is better to generate a list of symbols to export.
12425 always_export_symbols=yes
12426 if test "$aix_use_runtimelinking" = yes; then
12427 # Warning - without using the other runtime loading flags (-brtl),
12428 # -berok will link without error, but may produce a broken library.
12429 allow_undefined_flag='-berok'
12430 # Determine the default libpath from the value encoded in an empty executable.
12431 cat >conftest.$ac_ext <<_ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h. */
12446 rm -f conftest.$ac_objext conftest$ac_exeext
12447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12448 (eval $ac_link) 2>conftest.er1
12450 grep -v '^ *+' conftest.er1 >conftest.err
12452 cat conftest.err >&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } &&
12455 { ac_try='test -z "$ac_c_werror_flag"
12456 || test ! -s conftest.err'
12457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458 (eval $ac_try) 2>&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; } &&
12462 { ac_try='test -s conftest$ac_exeext'
12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12469 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12471 # Check for a 64-bit object if we didn't find anything.
12472 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; }
12475 echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12479 rm -f conftest.err conftest.$ac_objext \
12480 conftest$ac_exeext conftest.$ac_ext
12481 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12483 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12484 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"
12486 if test "$host_cpu" = ia64; then
12487 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12488 allow_undefined_flag="-z nodefs"
12489 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"
12491 # Determine the default libpath from the value encoded in an empty executable.
12492 cat >conftest.$ac_ext <<_ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h. */
12507 rm -f conftest.$ac_objext conftest$ac_exeext
12508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12509 (eval $ac_link) 2>conftest.er1
12511 grep -v '^ *+' conftest.er1 >conftest.err
12513 cat conftest.err >&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } &&
12516 { ac_try='test -z "$ac_c_werror_flag"
12517 || test ! -s conftest.err'
12518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; } &&
12523 { ac_try='test -s conftest$ac_exeext'
12524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12525 (eval $ac_try) 2>&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); }; }; then
12530 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12532 # Check for a 64-bit object if we didn't find anything.
12533 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; }
12536 echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.$ac_ext >&5
12540 rm -f conftest.err conftest.$ac_objext \
12541 conftest$ac_exeext conftest.$ac_ext
12542 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12544 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12545 # Warning - without using the other run time loading flags,
12546 # -berok will link without error, but may produce a broken library.
12547 no_undefined_flag=' ${wl}-bernotok'
12548 allow_undefined_flag=' ${wl}-berok'
12549 # -bexpall does not export symbols beginning with underscore (_)
12550 always_export_symbols=yes
12551 # Exported symbols can be pulled into shared objects from archives
12552 whole_archive_flag_spec=' '
12553 archive_cmds_need_lc=yes
12554 # This is similar to how AIX traditionally builds it's shared libraries.
12555 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'
12561 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)'
12562 hardcode_libdir_flag_spec='-L$libdir'
12563 hardcode_minus_L=yes
12564 # see comment about different semantics on the GNU ld section
12569 export_dynamic_flag_spec=-rdynamic
12572 cygwin* | mingw* | pw32*)
12573 # When not using gcc, we currently assume that we are using
12574 # Microsoft Visual C++.
12575 # hardcode_libdir_flag_spec is actually meaningless, as there is
12576 # no search path for DLLs.
12577 hardcode_libdir_flag_spec=' '
12578 allow_undefined_flag=unsupported
12579 # Tell ltmain to make .lib files, not .a files.
12581 # Tell ltmain to make .dll files, not .so files.
12583 # FIXME: Setting linknames here is a bad hack.
12584 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12585 # The linker will automatically build a .lib file if we build a DLL.
12586 old_archive_From_new_cmds='true'
12587 # FIXME: Should let the user specify the lib program.
12588 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12589 fix_srcfile_path='`cygpath -w "$srcfile"`'
12590 enable_shared_with_static_runtimes=yes
12593 darwin* | rhapsody*)
12595 rhapsody* | darwin1.[012])
12596 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12599 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12600 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12602 case ${MACOSX_DEPLOYMENT_TARGET} in
12604 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12607 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12613 archive_cmds_need_lc=no
12615 hardcode_automatic=yes
12616 hardcode_shlibpath_var=unsupported
12617 whole_archive_flag_spec=''
12618 link_all_deplibs=yes
12619 if test "$GCC" = yes ; then
12620 output_verbose_link_cmd='echo'
12621 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12622 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12623 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12624 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}'
12625 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}'
12627 case "$cc_basename" in
12629 output_verbose_link_cmd='echo'
12630 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12631 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12632 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12633 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}'
12634 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}'
12644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12645 hardcode_libdir_flag_spec='-L$libdir'
12646 hardcode_shlibpath_var=no
12653 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12654 # support. Future versions do this automatically, but an explicit c++rt0.o
12655 # does not break anything, and helps significantly (at the cost of a little
12658 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12659 hardcode_libdir_flag_spec='-R$libdir'
12660 hardcode_direct=yes
12661 hardcode_shlibpath_var=no
12664 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12667 hardcode_direct=yes
12668 hardcode_minus_L=yes
12669 hardcode_shlibpath_var=no
12672 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12673 freebsd* | kfreebsd*-gnu)
12674 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12675 hardcode_libdir_flag_spec='-R$libdir'
12676 hardcode_direct=yes
12677 hardcode_shlibpath_var=no
12681 if test "$GCC" = yes; then
12682 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'
12684 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'
12686 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12687 hardcode_libdir_separator=:
12688 hardcode_direct=yes
12690 # hardcode_minus_L: Not really in the search PATH,
12691 # but as the default location of the library.
12692 hardcode_minus_L=yes
12693 export_dynamic_flag_spec='${wl}-E'
12697 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12698 case "$host_cpu" in
12700 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12703 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12707 case "$host_cpu" in
12709 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12712 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12716 if test "$with_gnu_ld" = no; then
12717 case "$host_cpu" in
12719 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12720 hardcode_libdir_flag_spec_ld='+b $libdir'
12721 hardcode_libdir_separator=:
12723 hardcode_shlibpath_var=no
12726 hardcode_libdir_flag_spec='-L$libdir'
12728 hardcode_shlibpath_var=no
12730 # hardcode_minus_L: Not really in the search PATH,
12731 # but as the default location of the library.
12732 hardcode_minus_L=yes
12735 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12736 hardcode_libdir_separator=:
12737 hardcode_direct=yes
12738 export_dynamic_flag_spec='${wl}-E'
12740 # hardcode_minus_L: Not really in the search PATH,
12741 # but as the default location of the library.
12742 hardcode_minus_L=yes
12748 irix5* | irix6* | nonstopux*)
12749 if test "$GCC" = yes; then
12750 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'
12752 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'
12753 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12756 hardcode_libdir_separator=:
12757 link_all_deplibs=yes
12761 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12764 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12766 hardcode_libdir_flag_spec='-R$libdir'
12767 hardcode_direct=yes
12768 hardcode_shlibpath_var=no
12772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12773 hardcode_direct=yes
12774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12775 hardcode_libdir_separator=:
12776 hardcode_shlibpath_var=no
12780 hardcode_direct=yes
12781 hardcode_shlibpath_var=no
12782 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12783 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12784 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12785 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12786 export_dynamic_flag_spec='${wl}-E'
12789 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12790 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12791 hardcode_libdir_flag_spec='-R$libdir'
12794 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12795 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12802 hardcode_libdir_flag_spec='-L$libdir'
12803 hardcode_minus_L=yes
12804 allow_undefined_flag=unsupported
12805 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'
12806 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12810 if test "$GCC" = yes; then
12811 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12812 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'
12814 allow_undefined_flag=' -expect_unresolved \*'
12815 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'
12817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12818 hardcode_libdir_separator=:
12821 osf4* | osf5*) # as osf3* with the addition of -msym flag
12822 if test "$GCC" = yes; then
12823 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12824 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'
12825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12827 allow_undefined_flag=' -expect_unresolved \*'
12828 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'
12829 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12830 $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'
12832 # Both c and cxx compiler support -rpath directly
12833 hardcode_libdir_flag_spec='-rpath $libdir'
12835 hardcode_libdir_separator=:
12839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12840 hardcode_shlibpath_var=no
12841 export_dynamic_flag_spec='${wl}-Bexport'
12842 runpath_var=LD_RUN_PATH
12843 hardcode_runpath_var=yes
12847 no_undefined_flag=' -z text'
12848 if test "$GCC" = yes; then
12849 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12850 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12851 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12853 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12854 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12855 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12857 hardcode_libdir_flag_spec='-R$libdir'
12858 hardcode_shlibpath_var=no
12860 solaris2.[0-5] | solaris2.[0-5].*) ;;
12861 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12862 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12864 link_all_deplibs=yes
12868 if test "x$host_vendor" = xsequent; then
12869 # Use $CC to link under sequent, because it throws in some extra .o
12870 # files that make .init and .fini sections work.
12871 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12873 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12875 hardcode_libdir_flag_spec='-L$libdir'
12876 hardcode_direct=yes
12877 hardcode_minus_L=yes
12878 hardcode_shlibpath_var=no
12882 case $host_vendor in
12884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12885 hardcode_direct=yes # is this really true???
12888 ## LD is ld it makes a PLAMLIB
12889 ## CC just makes a GrossModule.
12890 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12891 reload_cmds='$CC -r -o $output$reload_objs'
12895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12896 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12899 runpath_var='LD_RUN_PATH'
12900 hardcode_shlibpath_var=no
12904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12905 hardcode_shlibpath_var=no
12906 export_dynamic_flag_spec='-Bexport'
12910 if test -d /usr/nec; then
12911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12912 hardcode_shlibpath_var=no
12913 runpath_var=LD_RUN_PATH
12914 hardcode_runpath_var=yes
12920 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12921 hardcode_direct=yes
12922 hardcode_minus_L=no
12923 hardcode_shlibpath_var=no
12924 hardcode_runpath_var=yes
12925 runpath_var=LD_RUN_PATH
12928 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12929 no_undefined_flag='${wl}-z ${wl}text'
12930 if test "$GCC" = yes; then
12931 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12933 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12935 runpath_var='LD_RUN_PATH'
12936 hardcode_shlibpath_var=no
12940 no_undefined_flag=' -z text'
12941 # $CC -shared without GNU ld will not create a library from C++
12942 # object files and a static libstdc++, better avoid it by now
12943 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12944 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12945 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12946 hardcode_libdir_flag_spec=
12947 hardcode_shlibpath_var=no
12948 runpath_var='LD_RUN_PATH'
12952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12953 hardcode_libdir_flag_spec='-L$libdir'
12954 hardcode_shlibpath_var=no
12963 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12964 echo "${ECHO_T}$ld_shlibs" >&6
12965 test "$ld_shlibs" = no && can_build_shared=no
12967 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12968 if test "$GCC" = yes; then
12969 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12973 # Do we need to explicitly link libc?
12975 case "x$archive_cmds_need_lc" in
12977 # Assume -lc should be added
12978 archive_cmds_need_lc=yes
12980 if test "$enable_shared" = yes && test "$GCC" = yes; then
12981 case $archive_cmds in
12983 # FIXME: we may have to deal with multi-command sequences.
12986 # Test whether the compiler implicitly links with -lc since on some
12987 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12988 # to ld, don't add -lc before -lgcc.
12989 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12990 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12992 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12995 (eval $ac_compile) 2>&5
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); } 2>conftest.err; then
13001 libobjs=conftest.$ac_objext
13003 wl=$lt_prog_compiler_wl
13009 lt_save_allow_undefined_flag=$allow_undefined_flag
13010 allow_undefined_flag=
13011 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13012 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }
13017 archive_cmds_need_lc=no
13019 archive_cmds_need_lc=yes
13021 allow_undefined_flag=$lt_save_allow_undefined_flag
13023 cat conftest.err 1>&5
13026 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13027 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13034 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13035 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13036 library_names_spec=
13037 libname_spec='lib$name'
13041 postuninstall_cmds=
13045 shlibpath_overrides_runpath=unknown
13047 dynamic_linker="$host_os ld.so"
13048 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13049 if test "$GCC" = yes; then
13050 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13051 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13052 # if the path contains ";" then we assume it to be the separator
13053 # otherwise default to the standard path separator (i.e. ":") - it is
13054 # assumed that no part of a normal pathname contains ";" but that should
13055 # okay in the real world where ";" in dirpaths is itself problematic.
13056 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13058 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13061 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13063 need_lib_prefix=unknown
13064 hardcode_into_libs=no
13066 # when you set need_version to no, make sure it does not cause -set_version
13067 # flags to be left without arguments
13068 need_version=unknown
13073 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13074 shlibpath_var=LIBPATH
13076 # AIX 3 has no versioning support, so we append a major version to the name.
13077 soname_spec='${libname}${release}${shared_ext}$major'
13084 hardcode_into_libs=yes
13085 if test "$host_cpu" = ia64; then
13086 # AIX 5 supports IA64
13087 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13088 shlibpath_var=LD_LIBRARY_PATH
13090 # With GCC up to 2.95.x, collect2 would create an import file
13091 # for dependence libraries. The import file would start with
13092 # the line `#! .'. This would cause the generated library to
13093 # depend on `.', always an invalid library. This was fixed in
13094 # development snapshots of GCC prior to 3.0.
13096 aix4 | aix4.[01] | aix4.[01].*)
13097 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13099 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13102 can_build_shared=no
13106 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13107 # soname into executable. Probably we can add versioning support to
13108 # collect2, so additional links can be useful in future.
13109 if test "$aix_use_runtimelinking" = yes; then
13110 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13111 # instead of lib<name>.a to let people know that these are not
13112 # typical AIX shared libraries.
13113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13115 # We preserve .a as extension for shared libraries through AIX4.2
13116 # and later when we are not doing run time linking.
13117 library_names_spec='${libname}${release}.a $libname.a'
13118 soname_spec='${libname}${release}${shared_ext}$major'
13120 shlibpath_var=LIBPATH
13125 library_names_spec='$libname.ixlibrary $libname.a'
13126 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13127 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'
13131 library_names_spec='${libname}${shared_ext}'
13132 dynamic_linker="$host_os ld.so"
13133 shlibpath_var=LIBRARY_PATH
13139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13140 soname_spec='${libname}${release}${shared_ext}$major'
13141 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13142 shlibpath_var=LD_LIBRARY_PATH
13143 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13144 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13145 # the default ld.so.conf also contains /usr/contrib/lib and
13146 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13147 # libtool to hard-code these into programs
13150 cygwin* | mingw* | pw32*)
13151 version_type=windows
13156 case $GCC,$host_os in
13157 yes,cygwin* | yes,mingw* | yes,pw32*)
13158 library_names_spec='$libname.dll.a'
13159 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13160 postinstall_cmds='base_file=`basename \${file}`~
13161 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13162 dldir=$destdir/`dirname \$dlpath`~
13163 test -d \$dldir || mkdir -p \$dldir~
13164 $install_prog $dir/$dlname \$dldir/$dlname'
13165 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13166 dlpath=$dir/\$dldll~
13168 shlibpath_overrides_runpath=yes
13172 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13173 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13174 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13177 # MinGW DLLs use traditional 'lib' prefix
13178 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13179 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13180 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13181 # It is most probably a Windows format PATH printed by
13182 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13183 # path with ; separators, and with drive letters. We can handle the
13184 # drive letters (cygwin fileutils understands them), so leave them,
13185 # especially as we might pass files found there to a mingw objdump,
13186 # which wouldn't understand a cygwinified path. Ahh.
13187 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13193 # pw32 DLLs use 'pw' prefix rather than 'lib'
13194 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13200 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13203 dynamic_linker='Win32 ld.exe'
13204 # FIXME: first we should search . and the directory the executable is in
13208 darwin* | rhapsody*)
13209 dynamic_linker="$host_os dyld"
13210 version_type=darwin
13213 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13214 soname_spec='${libname}${release}${major}$shared_ext'
13215 shlibpath_overrides_runpath=yes
13216 shlibpath_var=DYLD_LIBRARY_PATH
13217 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13218 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13219 if test "$GCC" = yes; then
13220 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"`
13222 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13224 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13232 soname_spec='${libname}${release}${shared_ext}$major'
13233 shlibpath_var=LD_LIBRARY_PATH
13244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13245 soname_spec='${libname}${release}${shared_ext}$major'
13246 shlibpath_var=LD_LIBRARY_PATH
13247 shlibpath_overrides_runpath=no
13248 hardcode_into_libs=yes
13249 dynamic_linker='GNU ld.so'
13253 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13254 version_type=freebsd-$objformat
13255 case $version_type in
13257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13262 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13266 shlibpath_var=LD_LIBRARY_PATH
13269 shlibpath_overrides_runpath=yes
13271 freebsd3.01* | freebsdelf3.01*)
13272 shlibpath_overrides_runpath=yes
13273 hardcode_into_libs=yes
13276 shlibpath_overrides_runpath=no
13277 hardcode_into_libs=yes
13286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13287 soname_spec='${libname}${release}${shared_ext}$major'
13288 shlibpath_var=LD_LIBRARY_PATH
13289 hardcode_into_libs=yes
13292 hpux9* | hpux10* | hpux11*)
13293 # Give a soname corresponding to the major version so that dld.sl refuses to
13294 # link against other versions.
13298 case "$host_cpu" in
13301 hardcode_into_libs=yes
13302 dynamic_linker="$host_os dld.so"
13303 shlibpath_var=LD_LIBRARY_PATH
13304 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13306 soname_spec='${libname}${release}${shared_ext}$major'
13307 if test "X$HPUX_IA64_MODE" = X32; then
13308 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13310 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13312 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13316 hardcode_into_libs=yes
13317 dynamic_linker="$host_os dld.sl"
13318 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13319 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13321 soname_spec='${libname}${release}${shared_ext}$major'
13322 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13323 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13327 dynamic_linker="$host_os dld.sl"
13328 shlibpath_var=SHLIB_PATH
13329 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13331 soname_spec='${libname}${release}${shared_ext}$major'
13334 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13335 postinstall_cmds='chmod 555 $lib'
13338 irix5* | irix6* | nonstopux*)
13340 nonstopux*) version_type=nonstopux ;;
13342 if test "$lt_cv_prog_gnu_ld" = yes; then
13350 soname_spec='${libname}${release}${shared_ext}$major'
13351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13353 irix5* | nonstopux*)
13354 libsuff= shlibsuff=
13357 case $LD in # libtool.m4 will add one of these switches to LD
13358 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13359 libsuff= shlibsuff= libmagic=32-bit;;
13360 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13361 libsuff=32 shlibsuff=N32 libmagic=N32;;
13362 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13363 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13364 *) libsuff= shlibsuff= libmagic=never-match;;
13368 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13369 shlibpath_overrides_runpath=no
13370 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13371 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13372 hardcode_into_libs=yes
13375 # No shared lib support for Linux oldld, aout, or coff.
13376 linux*oldld* | linux*aout* | linux*coff*)
13380 # This must be Linux ELF.
13385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13386 soname_spec='${libname}${release}${shared_ext}$major'
13387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13388 shlibpath_var=LD_LIBRARY_PATH
13389 shlibpath_overrides_runpath=no
13390 # This implies no fast_install, which is unacceptable.
13391 # Some rework will be needed to allow for fast_install
13392 # before this can be enabled.
13393 hardcode_into_libs=yes
13395 # Append ld.so.conf contents to the search path
13396 if test -f /etc/ld.so.conf; then
13397 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13398 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13401 # We used to test for /lib/ld.so.1 and disable shared libraries on
13402 # powerpc, because MkLinux only supported shared libraries with the
13403 # GNU dynamic linker. Since this was broken with cross compilers,
13404 # most powerpc-linux boxes support dynamic linking these days and
13405 # people can always --disable-shared, the test was removed, and we
13406 # assume the GNU/Linux dynamic linker is in use.
13407 dynamic_linker='GNU/Linux ld.so'
13414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13415 soname_spec='${libname}${release}${shared_ext}$major'
13416 shlibpath_var=LD_LIBRARY_PATH
13417 shlibpath_overrides_runpath=no
13418 hardcode_into_libs=yes
13419 dynamic_linker='GNU ld.so'
13426 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13428 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13429 dynamic_linker='NetBSD (a.out) ld.so'
13431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13432 soname_spec='${libname}${release}${shared_ext}$major'
13433 dynamic_linker='NetBSD ld.elf_so'
13435 shlibpath_var=LD_LIBRARY_PATH
13436 shlibpath_overrides_runpath=yes
13437 hardcode_into_libs=yes
13442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13443 shlibpath_var=LD_LIBRARY_PATH
13444 shlibpath_overrides_runpath=yes
13451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13452 soname_spec='${libname}${release}${shared_ext}$major'
13453 shlibpath_var=LD_LIBRARY_PATH
13454 shlibpath_overrides_runpath=yes
13461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13463 shlibpath_var=LD_LIBRARY_PATH
13464 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13466 openbsd2.[89] | openbsd2.[89].*)
13467 shlibpath_overrides_runpath=no
13470 shlibpath_overrides_runpath=yes
13474 shlibpath_overrides_runpath=yes
13479 libname_spec='$name'
13482 library_names_spec='$libname${shared_ext} $libname.a'
13483 dynamic_linker='OS/2 ld.exe'
13484 shlibpath_var=LIBPATH
13487 osf3* | osf4* | osf5*)
13491 soname_spec='${libname}${release}${shared_ext}$major'
13492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13493 shlibpath_var=LD_LIBRARY_PATH
13494 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13495 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13500 soname_spec='${libname}${release}${shared_ext}$major'
13501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13502 shlibpath_var=LD_LIBRARY_PATH
13509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13510 soname_spec='${libname}${release}${shared_ext}$major'
13511 shlibpath_var=LD_LIBRARY_PATH
13512 shlibpath_overrides_runpath=yes
13513 hardcode_into_libs=yes
13514 # ldd complains unless libraries are executable
13515 postinstall_cmds='chmod +x $lib'
13520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13521 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13522 shlibpath_var=LD_LIBRARY_PATH
13523 shlibpath_overrides_runpath=yes
13524 if test "$with_gnu_ld" = yes; then
13530 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13533 soname_spec='${libname}${release}${shared_ext}$major'
13534 shlibpath_var=LD_LIBRARY_PATH
13535 case $host_vendor in
13537 shlibpath_overrides_runpath=no
13539 export_dynamic_flag_spec='${wl}-Blargedynsym'
13540 runpath_var=LD_RUN_PATH
13548 shlibpath_overrides_runpath=no
13549 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13555 if test -d /usr/nec ;then
13557 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13558 soname_spec='$libname${shared_ext}.$major'
13559 shlibpath_var=LD_LIBRARY_PATH
13565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13566 soname_spec='${libname}${release}${shared_ext}$major'
13567 shlibpath_var=LD_LIBRARY_PATH
13574 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13575 echo "${ECHO_T}$dynamic_linker" >&6
13576 test "$dynamic_linker" = no && can_build_shared=no
13578 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13579 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13581 if test -n "$hardcode_libdir_flag_spec" || \
13582 test -n "$runpath_var" || \
13583 test "X$hardcode_automatic" = "Xyes" ; then
13585 # We can hardcode non-existant directories.
13586 if test "$hardcode_direct" != no &&
13587 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13588 # have to relink, otherwise we might link with an installed library
13589 # when we should be linking with a yet-to-be-installed one
13590 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13591 test "$hardcode_minus_L" != no; then
13592 # Linking always hardcodes the temporary library directory.
13593 hardcode_action=relink
13595 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13596 hardcode_action=immediate
13599 # We cannot hardcode anything, or else we can only hardcode existing
13601 hardcode_action=unsupported
13603 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13604 echo "${ECHO_T}$hardcode_action" >&6
13606 if test "$hardcode_action" = relink; then
13607 # Fast installation is not supported
13608 enable_fast_install=no
13609 elif test "$shlibpath_overrides_runpath" = yes ||
13610 test "$enable_shared" = no; then
13611 # Fast installation is not necessary
13612 enable_fast_install=needless
13617 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13618 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13619 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13620 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13621 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13622 echo "$as_me:$LINENO: result: yes" >&5
13623 echo "${ECHO_T}yes" >&6
13625 # FIXME - insert some real tests, host_os isn't really good enough
13628 if test -n "$STRIP" ; then
13629 striplib="$STRIP -x"
13630 echo "$as_me:$LINENO: result: yes" >&5
13631 echo "${ECHO_T}yes" >&6
13633 echo "$as_me:$LINENO: result: no" >&5
13634 echo "${ECHO_T}no" >&6
13638 echo "$as_me:$LINENO: result: no" >&5
13639 echo "${ECHO_T}no" >&6
13644 if test "x$enable_dlopen" != xyes; then
13645 enable_dlopen=unknown
13646 enable_dlopen_self=unknown
13647 enable_dlopen_self_static=unknown
13654 lt_cv_dlopen="load_add_on"
13656 lt_cv_dlopen_self=yes
13660 lt_cv_dlopen="LoadLibrary"
13665 lt_cv_dlopen="dlopen"
13670 # if libdl is installed we need to link against it
13671 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13672 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13673 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13674 echo $ECHO_N "(cached) $ECHO_C" >&6
13676 ac_check_lib_save_LIBS=$LIBS
13678 cat >conftest.$ac_ext <<_ACEOF
13681 cat confdefs.h >>conftest.$ac_ext
13682 cat >>conftest.$ac_ext <<_ACEOF
13683 /* end confdefs.h. */
13685 /* Override any gcc2 internal prototype to avoid an error. */
13689 /* We use char because int might match the return type of a gcc2
13690 builtin and then its argument prototype would still apply. */
13700 rm -f conftest.$ac_objext conftest$ac_exeext
13701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13702 (eval $ac_link) 2>conftest.er1
13704 grep -v '^ *+' conftest.er1 >conftest.err
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
13709 { ac_try='test -z "$ac_c_werror_flag"
13710 || test ! -s conftest.err'
13711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712 (eval $ac_try) 2>&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; } &&
13716 { ac_try='test -s conftest$ac_exeext'
13717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718 (eval $ac_try) 2>&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; }; then
13722 ac_cv_lib_dl_dlopen=yes
13724 echo "$as_me: failed program was:" >&5
13725 sed 's/^/| /' conftest.$ac_ext >&5
13727 ac_cv_lib_dl_dlopen=no
13729 rm -f conftest.err conftest.$ac_objext \
13730 conftest$ac_exeext conftest.$ac_ext
13731 LIBS=$ac_check_lib_save_LIBS
13733 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13734 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13735 if test $ac_cv_lib_dl_dlopen = yes; then
13736 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13739 lt_cv_dlopen="dyld"
13741 lt_cv_dlopen_self=yes
13748 echo "$as_me:$LINENO: checking for shl_load" >&5
13749 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13750 if test "${ac_cv_func_shl_load+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 cat >conftest.$ac_ext <<_ACEOF
13756 cat confdefs.h >>conftest.$ac_ext
13757 cat >>conftest.$ac_ext <<_ACEOF
13758 /* end confdefs.h. */
13759 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13761 #define shl_load innocuous_shl_load
13763 /* System header to define __stub macros and hopefully few prototypes,
13764 which can conflict with char shl_load (); below.
13765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13766 <limits.h> exists even on freestanding compilers. */
13769 # include <limits.h>
13771 # include <assert.h>
13776 /* Override any gcc2 internal prototype to avoid an error. */
13781 /* We use char because int might match the return type of a gcc2
13782 builtin and then its argument prototype would still apply. */
13784 /* The GNU C library defines this for functions which it implements
13785 to always fail with ENOSYS. Some functions are actually named
13786 something starting with __ and the normal name is an alias. */
13787 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13790 char (*f) () = shl_load;
13799 return f != shl_load;
13804 rm -f conftest.$ac_objext conftest$ac_exeext
13805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13806 (eval $ac_link) 2>conftest.er1
13808 grep -v '^ *+' conftest.er1 >conftest.err
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } &&
13813 { ac_try='test -z "$ac_c_werror_flag"
13814 || test ! -s conftest.err'
13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816 (eval $ac_try) 2>&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; } &&
13820 { ac_try='test -s conftest$ac_exeext'
13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; }; then
13826 ac_cv_func_shl_load=yes
13828 echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.$ac_ext >&5
13831 ac_cv_func_shl_load=no
13833 rm -f conftest.err conftest.$ac_objext \
13834 conftest$ac_exeext conftest.$ac_ext
13836 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13837 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13838 if test $ac_cv_func_shl_load = yes; then
13839 lt_cv_dlopen="shl_load"
13841 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13842 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13843 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13844 echo $ECHO_N "(cached) $ECHO_C" >&6
13846 ac_check_lib_save_LIBS=$LIBS
13848 cat >conftest.$ac_ext <<_ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13855 /* Override any gcc2 internal prototype to avoid an error. */
13859 /* We use char because int might match the return type of a gcc2
13860 builtin and then its argument prototype would still apply. */
13870 rm -f conftest.$ac_objext conftest$ac_exeext
13871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13872 (eval $ac_link) 2>conftest.er1
13874 grep -v '^ *+' conftest.er1 >conftest.err
13876 cat conftest.err >&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } &&
13879 { ac_try='test -z "$ac_c_werror_flag"
13880 || test ! -s conftest.err'
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; } &&
13886 { ac_try='test -s conftest$ac_exeext'
13887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888 (eval $ac_try) 2>&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; }; then
13892 ac_cv_lib_dld_shl_load=yes
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 ac_cv_lib_dld_shl_load=no
13899 rm -f conftest.err conftest.$ac_objext \
13900 conftest$ac_exeext conftest.$ac_ext
13901 LIBS=$ac_check_lib_save_LIBS
13903 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13904 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13905 if test $ac_cv_lib_dld_shl_load = yes; then
13906 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13908 echo "$as_me:$LINENO: checking for dlopen" >&5
13909 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13910 if test "${ac_cv_func_dlopen+set}" = set; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13913 cat >conftest.$ac_ext <<_ACEOF
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h. */
13919 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13921 #define dlopen innocuous_dlopen
13923 /* System header to define __stub macros and hopefully few prototypes,
13924 which can conflict with char dlopen (); below.
13925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13926 <limits.h> exists even on freestanding compilers. */
13929 # include <limits.h>
13931 # include <assert.h>
13936 /* Override any gcc2 internal prototype to avoid an error. */
13941 /* We use char because int might match the return type of a gcc2
13942 builtin and then its argument prototype would still apply. */
13944 /* The GNU C library defines this for functions which it implements
13945 to always fail with ENOSYS. Some functions are actually named
13946 something starting with __ and the normal name is an alias. */
13947 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13950 char (*f) () = dlopen;
13959 return f != dlopen;
13964 rm -f conftest.$ac_objext conftest$ac_exeext
13965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13966 (eval $ac_link) 2>conftest.er1
13968 grep -v '^ *+' conftest.er1 >conftest.err
13970 cat conftest.err >&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } &&
13973 { ac_try='test -z "$ac_c_werror_flag"
13974 || test ! -s conftest.err'
13975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976 (eval $ac_try) 2>&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); }; } &&
13980 { ac_try='test -s conftest$ac_exeext'
13981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982 (eval $ac_try) 2>&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; }; then
13986 ac_cv_func_dlopen=yes
13988 echo "$as_me: failed program was:" >&5
13989 sed 's/^/| /' conftest.$ac_ext >&5
13991 ac_cv_func_dlopen=no
13993 rm -f conftest.err conftest.$ac_objext \
13994 conftest$ac_exeext conftest.$ac_ext
13996 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13997 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13998 if test $ac_cv_func_dlopen = yes; then
13999 lt_cv_dlopen="dlopen"
14001 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14002 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14003 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 ac_check_lib_save_LIBS=$LIBS
14008 cat >conftest.$ac_ext <<_ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14015 /* Override any gcc2 internal prototype to avoid an error. */
14019 /* We use char because int might match the return type of a gcc2
14020 builtin and then its argument prototype would still apply. */
14030 rm -f conftest.$ac_objext conftest$ac_exeext
14031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14032 (eval $ac_link) 2>conftest.er1
14034 grep -v '^ *+' conftest.er1 >conftest.err
14036 cat conftest.err >&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } &&
14039 { ac_try='test -z "$ac_c_werror_flag"
14040 || test ! -s conftest.err'
14041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042 (eval $ac_try) 2>&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; } &&
14046 { ac_try='test -s conftest$ac_exeext'
14047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14048 (eval $ac_try) 2>&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; }; then
14052 ac_cv_lib_dl_dlopen=yes
14054 echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.$ac_ext >&5
14057 ac_cv_lib_dl_dlopen=no
14059 rm -f conftest.err conftest.$ac_objext \
14060 conftest$ac_exeext conftest.$ac_ext
14061 LIBS=$ac_check_lib_save_LIBS
14063 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14064 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14065 if test $ac_cv_lib_dl_dlopen = yes; then
14066 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14068 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14069 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14070 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 ac_check_lib_save_LIBS=$LIBS
14074 LIBS="-lsvld $LIBS"
14075 cat >conftest.$ac_ext <<_ACEOF
14078 cat confdefs.h >>conftest.$ac_ext
14079 cat >>conftest.$ac_ext <<_ACEOF
14080 /* end confdefs.h. */
14082 /* Override any gcc2 internal prototype to avoid an error. */
14086 /* We use char because int might match the return type of a gcc2
14087 builtin and then its argument prototype would still apply. */
14097 rm -f conftest.$ac_objext conftest$ac_exeext
14098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14099 (eval $ac_link) 2>conftest.er1
14101 grep -v '^ *+' conftest.er1 >conftest.err
14103 cat conftest.err >&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
14106 { ac_try='test -z "$ac_c_werror_flag"
14107 || test ! -s conftest.err'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; } &&
14113 { ac_try='test -s conftest$ac_exeext'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
14119 ac_cv_lib_svld_dlopen=yes
14121 echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.$ac_ext >&5
14124 ac_cv_lib_svld_dlopen=no
14126 rm -f conftest.err conftest.$ac_objext \
14127 conftest$ac_exeext conftest.$ac_ext
14128 LIBS=$ac_check_lib_save_LIBS
14130 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14131 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14132 if test $ac_cv_lib_svld_dlopen = yes; then
14133 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14135 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14136 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14137 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 ac_check_lib_save_LIBS=$LIBS
14142 cat >conftest.$ac_ext <<_ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h. */
14149 /* Override any gcc2 internal prototype to avoid an error. */
14153 /* We use char because int might match the return type of a gcc2
14154 builtin and then its argument prototype would still apply. */
14164 rm -f conftest.$ac_objext conftest$ac_exeext
14165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14166 (eval $ac_link) 2>conftest.er1
14168 grep -v '^ *+' conftest.er1 >conftest.err
14170 cat conftest.err >&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } &&
14173 { ac_try='test -z "$ac_c_werror_flag"
14174 || test ! -s conftest.err'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; } &&
14180 { ac_try='test -s conftest$ac_exeext'
14181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; }; then
14186 ac_cv_lib_dld_dld_link=yes
14188 echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14191 ac_cv_lib_dld_dld_link=no
14193 rm -f conftest.err conftest.$ac_objext \
14194 conftest$ac_exeext conftest.$ac_ext
14195 LIBS=$ac_check_lib_save_LIBS
14197 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14198 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14199 if test $ac_cv_lib_dld_dld_link = yes; then
14200 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14221 if test "x$lt_cv_dlopen" != xno; then
14227 case $lt_cv_dlopen in
14229 save_CPPFLAGS="$CPPFLAGS"
14230 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14232 save_LDFLAGS="$LDFLAGS"
14233 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14236 LIBS="$lt_cv_dlopen_libs $LIBS"
14238 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14239 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14240 if test "${lt_cv_dlopen_self+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 if test "$cross_compiling" = yes; then :
14244 lt_cv_dlopen_self=cross
14246 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14247 lt_status=$lt_dlunknown
14248 cat > conftest.$ac_ext <<EOF
14249 #line 14249 "configure"
14250 #include "confdefs.h"
14259 # define LT_DLGLOBAL RTLD_GLOBAL
14262 # define LT_DLGLOBAL DL_GLOBAL
14264 # define LT_DLGLOBAL 0
14268 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14269 find out it does not work in some platform. */
14270 #ifndef LT_DLLAZY_OR_NOW
14272 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14275 # define LT_DLLAZY_OR_NOW DL_LAZY
14278 # define LT_DLLAZY_OR_NOW RTLD_NOW
14281 # define LT_DLLAZY_OR_NOW DL_NOW
14283 # define LT_DLLAZY_OR_NOW 0
14291 extern "C" void exit (int);
14294 void fnord() { int i=42;}
14297 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14298 int status = $lt_dlunknown;
14302 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14303 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14304 /* dlclose (self); */
14310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14311 (eval $ac_link) 2>&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14315 (./conftest; exit; ) 2>/dev/null
14317 case x$lt_status in
14318 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14319 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14320 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14323 # compilation failed
14324 lt_cv_dlopen_self=no
14331 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14332 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14334 if test "x$lt_cv_dlopen_self" = xyes; then
14335 LDFLAGS="$LDFLAGS $link_static_flag"
14336 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14337 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14338 if test "${lt_cv_dlopen_self_static+set}" = set; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14341 if test "$cross_compiling" = yes; then :
14342 lt_cv_dlopen_self_static=cross
14344 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14345 lt_status=$lt_dlunknown
14346 cat > conftest.$ac_ext <<EOF
14347 #line 14347 "configure"
14348 #include "confdefs.h"
14357 # define LT_DLGLOBAL RTLD_GLOBAL
14360 # define LT_DLGLOBAL DL_GLOBAL
14362 # define LT_DLGLOBAL 0
14366 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14367 find out it does not work in some platform. */
14368 #ifndef LT_DLLAZY_OR_NOW
14370 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14373 # define LT_DLLAZY_OR_NOW DL_LAZY
14376 # define LT_DLLAZY_OR_NOW RTLD_NOW
14379 # define LT_DLLAZY_OR_NOW DL_NOW
14381 # define LT_DLLAZY_OR_NOW 0
14389 extern "C" void exit (int);
14392 void fnord() { int i=42;}
14395 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14396 int status = $lt_dlunknown;
14400 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14401 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14402 /* dlclose (self); */
14408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14409 (eval $ac_link) 2>&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14413 (./conftest; exit; ) 2>/dev/null
14415 case x$lt_status in
14416 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14417 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14418 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14421 # compilation failed
14422 lt_cv_dlopen_self_static=no
14429 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14430 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14433 CPPFLAGS="$save_CPPFLAGS"
14434 LDFLAGS="$save_LDFLAGS"
14439 case $lt_cv_dlopen_self in
14440 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14441 *) enable_dlopen_self=unknown ;;
14444 case $lt_cv_dlopen_self_static in
14445 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14446 *) enable_dlopen_self_static=unknown ;;
14451 # Report which librarie types wil actually be built
14452 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14453 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14454 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14455 echo "${ECHO_T}$can_build_shared" >&6
14457 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14458 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14459 test "$can_build_shared" = "no" && enable_shared=no
14461 # On AIX, shared libraries and static libraries use the same namespace, and
14462 # are all built from PIC.
14465 test "$enable_shared" = yes && enable_static=no
14466 if test -n "$RANLIB"; then
14467 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14468 postinstall_cmds='$RANLIB $lib'
14473 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14474 test "$enable_shared" = yes && enable_static=no
14478 echo "$as_me:$LINENO: result: $enable_shared" >&5
14479 echo "${ECHO_T}$enable_shared" >&6
14481 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14482 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14483 # Make sure either enable_shared or enable_static is yes.
14484 test "$enable_shared" = yes || enable_static=yes
14485 echo "$as_me:$LINENO: result: $enable_static" >&5
14486 echo "${ECHO_T}$enable_static" >&6
14488 # The else clause should only fire when bootstrapping the
14489 # libtool distribution, otherwise you forgot to ship ltmain.sh
14490 # with your package, and you will get complaints that there are
14491 # no rules to generate ltmain.sh.
14492 if test -f "$ltmain"; then
14493 # See if we are running on zsh, and set the options which allow our commands through
14494 # without removal of \ escapes.
14495 if test -n "${ZSH_VERSION+set}" ; then
14496 setopt NO_GLOB_SUBST
14498 # Now quote all the things that may contain metacharacters while being
14499 # careful not to overquote the AC_SUBSTed values. We take copies of the
14500 # variables and quote the copies for generation of the libtool script.
14501 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14503 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14504 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14505 deplibs_check_method reload_flag reload_cmds need_locks \
14506 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14507 lt_cv_sys_global_symbol_to_c_name_address \
14508 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14509 old_postinstall_cmds old_postuninstall_cmds \
14513 lt_prog_compiler_wl \
14514 lt_prog_compiler_pic \
14515 lt_prog_compiler_static \
14516 lt_prog_compiler_no_builtin_flag \
14517 export_dynamic_flag_spec \
14518 thread_safe_flag_spec \
14519 whole_archive_flag_spec \
14520 enable_shared_with_static_runtimes \
14522 old_archive_from_new_cmds \
14527 compiler_lib_search_path \
14529 archive_expsym_cmds \
14531 postuninstall_cmds \
14532 old_archive_from_expsyms_cmds \
14533 allow_undefined_flag \
14534 no_undefined_flag \
14535 export_symbols_cmds \
14536 hardcode_libdir_flag_spec \
14537 hardcode_libdir_flag_spec_ld \
14538 hardcode_libdir_separator \
14539 hardcode_automatic \
14541 module_expsym_cmds \
14542 lt_cv_prog_compiler_c_o \
14544 include_expsyms; do
14547 old_archive_cmds | \
14548 old_archive_from_new_cmds | \
14550 archive_expsym_cmds | \
14552 module_expsym_cmds | \
14553 old_archive_from_expsyms_cmds | \
14554 export_symbols_cmds | \
14555 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14556 postinstall_cmds | postuninstall_cmds | \
14557 old_postinstall_cmds | old_postuninstall_cmds | \
14558 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14559 # Double-quote double-evaled strings.
14560 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14563 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14569 *'\$0 --fallback-echo"')
14570 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14574 cfgfile="${ofile}T"
14575 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14577 { echo "$as_me:$LINENO: creating $ofile" >&5
14578 echo "$as_me: creating $ofile" >&6;}
14580 cat <<__EOF__ >> "$cfgfile"
14583 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14584 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14585 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14587 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14588 # Free Software Foundation, Inc.
14590 # This file is part of GNU Libtool:
14591 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14593 # This program is free software; you can redistribute it and/or modify
14594 # it under the terms of the GNU General Public License as published by
14595 # the Free Software Foundation; either version 2 of the License, or
14596 # (at your option) any later version.
14598 # This program is distributed in the hope that it will be useful, but
14599 # WITHOUT ANY WARRANTY; without even the implied warranty of
14600 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14601 # General Public License for more details.
14603 # You should have received a copy of the GNU General Public License
14604 # along with this program; if not, write to the Free Software
14605 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14607 # As a special exception to the GNU General Public License, if you
14608 # distribute this file as part of a program that contains a
14609 # configuration script generated by Autoconf, you may include it under
14610 # the same distribution terms that you use for the rest of that program.
14612 # A sed program that does not truncate output.
14615 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14616 Xsed="$SED -e s/^X//"
14618 # The HP-UX ksh and POSIX shell print the target directory to stdout
14619 # if CDPATH is set.
14620 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14622 # The names of the tagged configurations supported by this script.
14625 # ### BEGIN LIBTOOL CONFIG
14627 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14629 # Shell to use when invoking shell scripts.
14632 # Whether or not to build shared libraries.
14633 build_libtool_libs=$enable_shared
14635 # Whether or not to build static libraries.
14636 build_old_libs=$enable_static
14638 # Whether or not to add -lc for building shared libraries.
14639 build_libtool_need_lc=$archive_cmds_need_lc
14641 # Whether or not to disallow shared libs when runtime libs are static
14642 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14644 # Whether or not to optimize for fast installation.
14645 fast_install=$enable_fast_install
14648 host_alias=$host_alias
14651 # An echo program that does not interpret backslashes.
14656 AR_FLAGS=$lt_AR_FLAGS
14661 # A language-specific compiler.
14664 # Is the compiler the GNU C compiler?
14670 # The linker used to build libraries.
14673 # Whether we need hard or soft links.
14676 # A BSD-compatible nm program.
14679 # A symbol stripping program
14682 # Used to examine libraries when file_magic_cmd begins "file"
14683 MAGIC_CMD=$MAGIC_CMD
14685 # Used on cygwin: DLL creation program.
14688 # Used on cygwin: object dumper.
14691 # Used on cygwin: assembler.
14694 # The name of the directory that contains temporary libtool files.
14697 # How to create reloadable object files.
14698 reload_flag=$lt_reload_flag
14699 reload_cmds=$lt_reload_cmds
14701 # How to pass a linker flag through the compiler.
14702 wl=$lt_lt_prog_compiler_wl
14704 # Object file suffix (normally "o").
14705 objext="$ac_objext"
14707 # Old archive suffix (normally "a").
14710 # Shared library suffix (normally ".so").
14711 shrext_cmds='$shrext_cmds'
14713 # Executable file suffix (normally "").
14716 # Additional compiler flags for building library objects.
14717 pic_flag=$lt_lt_prog_compiler_pic
14720 # What is the maximum length of a command?
14721 max_cmd_len=$lt_cv_sys_max_cmd_len
14723 # Does compiler simultaneously support -c and -o options?
14724 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14726 # Must we lock files when doing compilation ?
14727 need_locks=$lt_need_locks
14729 # Do we need the lib prefix for modules?
14730 need_lib_prefix=$need_lib_prefix
14732 # Do we need a version for libraries?
14733 need_version=$need_version
14735 # Whether dlopen is supported.
14736 dlopen_support=$enable_dlopen
14738 # Whether dlopen of programs is supported.
14739 dlopen_self=$enable_dlopen_self
14741 # Whether dlopen of statically linked programs is supported.
14742 dlopen_self_static=$enable_dlopen_self_static
14744 # Compiler flag to prevent dynamic linking.
14745 link_static_flag=$lt_lt_prog_compiler_static
14747 # Compiler flag to turn off builtin functions.
14748 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14750 # Compiler flag to allow reflexive dlopens.
14751 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14753 # Compiler flag to generate shared objects directly from archives.
14754 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14756 # Compiler flag to generate thread-safe objects.
14757 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14759 # Library versioning type.
14760 version_type=$version_type
14762 # Format of library name prefix.
14763 libname_spec=$lt_libname_spec
14765 # List of archive names. First name is the real one, the rest are links.
14766 # The last name is the one that the linker finds with -lNAME.
14767 library_names_spec=$lt_library_names_spec
14769 # The coded name of the library, if different from the real name.
14770 soname_spec=$lt_soname_spec
14772 # Commands used to build and install an old-style archive.
14774 old_archive_cmds=$lt_old_archive_cmds
14775 old_postinstall_cmds=$lt_old_postinstall_cmds
14776 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14778 # Create an old-style archive from a shared archive.
14779 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14781 # Create a temporary old-style archive to link instead of a shared archive.
14782 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14784 # Commands used to build and install a shared archive.
14785 archive_cmds=$lt_archive_cmds
14786 archive_expsym_cmds=$lt_archive_expsym_cmds
14787 postinstall_cmds=$lt_postinstall_cmds
14788 postuninstall_cmds=$lt_postuninstall_cmds
14790 # Commands used to build a loadable module (assumed same as above if empty)
14791 module_cmds=$lt_module_cmds
14792 module_expsym_cmds=$lt_module_expsym_cmds
14794 # Commands to strip libraries.
14795 old_striplib=$lt_old_striplib
14796 striplib=$lt_striplib
14798 # Dependencies to place before the objects being linked to create a
14800 predep_objects=$lt_predep_objects
14802 # Dependencies to place after the objects being linked to create a
14804 postdep_objects=$lt_postdep_objects
14806 # Dependencies to place before the objects being linked to create a
14808 predeps=$lt_predeps
14810 # Dependencies to place after the objects being linked to create a
14812 postdeps=$lt_postdeps
14814 # The library search path used internally by the compiler when linking
14815 # a shared library.
14816 compiler_lib_search_path=$lt_compiler_lib_search_path
14818 # Method to check whether dependent libraries are shared objects.
14819 deplibs_check_method=$lt_deplibs_check_method
14821 # Command to use when deplibs_check_method == file_magic.
14822 file_magic_cmd=$lt_file_magic_cmd
14824 # Flag that allows shared libraries with undefined symbols to be built.
14825 allow_undefined_flag=$lt_allow_undefined_flag
14827 # Flag that forces no undefined symbols.
14828 no_undefined_flag=$lt_no_undefined_flag
14830 # Commands used to finish a libtool library installation in a directory.
14831 finish_cmds=$lt_finish_cmds
14833 # Same as above, but a single script fragment to be evaled but not shown.
14834 finish_eval=$lt_finish_eval
14836 # Take the output of nm and produce a listing of raw symbols and C names.
14837 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14839 # Transform the output of nm in a proper C declaration
14840 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14842 # Transform the output of nm in a C name address pair
14843 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14845 # This is the shared library runtime path variable.
14846 runpath_var=$runpath_var
14848 # This is the shared library path variable.
14849 shlibpath_var=$shlibpath_var
14851 # Is shlibpath searched before the hard-coded library search path?
14852 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14854 # How to hardcode a shared library path into an executable.
14855 hardcode_action=$hardcode_action
14857 # Whether we should hardcode library paths into libraries.
14858 hardcode_into_libs=$hardcode_into_libs
14860 # Flag to hardcode \$libdir into a binary during linking.
14861 # This must work even if \$libdir does not exist.
14862 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14864 # If ld is used when linking, flag to hardcode \$libdir into
14865 # a binary during linking. This must work even if \$libdir does
14867 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14869 # Whether we need a single -rpath flag with a separated argument.
14870 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14872 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14873 # resulting binary.
14874 hardcode_direct=$hardcode_direct
14876 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14877 # resulting binary.
14878 hardcode_minus_L=$hardcode_minus_L
14880 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14881 # the resulting binary.
14882 hardcode_shlibpath_var=$hardcode_shlibpath_var
14884 # Set to yes if building a shared library automatically hardcodes DIR into the library
14885 # and all subsequent libraries and executables linked against it.
14886 hardcode_automatic=$hardcode_automatic
14888 # Variables whose values should be saved in libtool wrapper scripts and
14889 # restored at relink time.
14890 variables_saved_for_relink="$variables_saved_for_relink"
14892 # Whether libtool must link a program against all its dependency libraries.
14893 link_all_deplibs=$link_all_deplibs
14895 # Compile-time system search path for libraries
14896 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14898 # Run-time system search path for libraries
14899 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14901 # Fix the shell variable \$srcfile for the compiler.
14902 fix_srcfile_path="$fix_srcfile_path"
14904 # Set to yes if exported symbols are required.
14905 always_export_symbols=$always_export_symbols
14907 # The commands to list exported symbols.
14908 export_symbols_cmds=$lt_export_symbols_cmds
14910 # The commands to extract the exported symbol list from a shared archive.
14911 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14913 # Symbols that should not be listed in the preloaded symbols.
14914 exclude_expsyms=$lt_exclude_expsyms
14916 # Symbols that must always be exported.
14917 include_expsyms=$lt_include_expsyms
14919 # ### END LIBTOOL CONFIG
14926 cat <<\EOF >> "$cfgfile"
14928 # AIX sometimes has problems with the GCC collect2 program. For some
14929 # reason, if we set the COLLECT_NAMES environment variable, the problems
14930 # vanish in a puff of smoke.
14931 if test "X${COLLECT_NAMES+set}" != Xset; then
14933 export COLLECT_NAMES
14939 # We use sed instead of cat because bash on DJGPP gets confused if
14940 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14941 # text mode, it properly converts lines to CR/LF. This bash problem
14942 # is reportedly fixed, but why not run on old versions too?
14943 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14945 mv -f "$cfgfile" "$ofile" || \
14946 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14950 # If there is no Makefile yet, we rely on a make rule to execute
14951 # `config.status --recheck' to rerun these tests and create the
14952 # libtool script then.
14953 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14954 if test -f "$ltmain_in"; then
14955 test -f Makefile && make "$ltmain"
14961 ac_cpp='$CPP $CPPFLAGS'
14962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14969 # Check whether --with-tags or --without-tags was given.
14970 if test "${with_tags+set}" = set; then
14971 withval="$with_tags"
14972 tagnames="$withval"
14975 if test -f "$ltmain" && test -n "$tagnames"; then
14976 if test ! -f "${ofile}"; then
14977 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14978 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14981 if test -z "$LTCC"; then
14982 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14983 if test -z "$LTCC"; then
14984 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14985 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14987 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14988 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14992 # Extract list of available tagged configurations in $ofile.
14993 # Note that this assumes the entire list is on one line.
14994 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14997 for tagname in $tagnames; do
14999 # Check whether tagname contains only valid characters
15000 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15002 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15003 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15004 { (exit 1); exit 1; }; }
15008 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15010 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15011 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15012 { (exit 1); exit 1; }; }
15015 # Update the list of available tags.
15016 if test -n "$tagname"; then
15017 echo appending configuration tag "$tagname" to $ofile
15021 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15022 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15023 (test "X$CXX" != "Xg++"))) ; then
15025 ac_cpp='$CXXCPP $CPPFLAGS'
15026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15033 archive_cmds_need_lc_CXX=no
15034 allow_undefined_flag_CXX=
15035 always_export_symbols_CXX=no
15036 archive_expsym_cmds_CXX=
15037 export_dynamic_flag_spec_CXX=
15038 hardcode_direct_CXX=no
15039 hardcode_libdir_flag_spec_CXX=
15040 hardcode_libdir_flag_spec_ld_CXX=
15041 hardcode_libdir_separator_CXX=
15042 hardcode_minus_L_CXX=no
15043 hardcode_automatic_CXX=no
15045 module_expsym_cmds_CXX=
15046 link_all_deplibs_CXX=unknown
15047 old_archive_cmds_CXX=$old_archive_cmds
15048 no_undefined_flag_CXX=
15049 whole_archive_flag_spec_CXX=
15050 enable_shared_with_static_runtimes_CXX=no
15052 # Dependencies to place before and after the object being linked:
15053 predep_objects_CXX=
15054 postdep_objects_CXX=
15057 compiler_lib_search_path_CXX=
15059 # Source file extension for C++ test sources.
15062 # Object file extension for compiled C++ test sources.
15066 # Code to be used in simple compile tests
15067 lt_simple_compile_test_code="int some_variable = 0;\n"
15069 # Code to be used in simple link tests
15070 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15072 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15074 # If no C compiler was specified, use CC.
15077 # Allow CC to be a program name with arguments.
15081 # Allow CC to be a program name with arguments.
15086 lt_save_with_gnu_ld=$with_gnu_ld
15087 lt_save_path_LD=$lt_cv_path_LD
15088 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15089 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15091 unset lt_cv_prog_gnu_ld
15093 if test -n "${lt_cv_path_LDCXX+set}"; then
15094 lt_cv_path_LD=$lt_cv_path_LDCXX
15096 unset lt_cv_path_LD
15098 test -z "${LDCXX+set}" || LD=$LDCXX
15102 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15104 # We don't want -fno-exception wen compiling C++ code, so set the
15105 # no_builtin_flag separately
15106 if test "$GXX" = yes; then
15107 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15109 lt_prog_compiler_no_builtin_flag_CXX=
15112 if test "$GXX" = yes; then
15113 # Set up default GNU C++ configuration
15116 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15117 if test "${with_gnu_ld+set}" = set; then
15118 withval="$with_gnu_ld"
15119 test "$withval" = no || with_gnu_ld=yes
15124 if test "$GCC" = yes; then
15125 # Check if gcc -print-prog-name=ld gives a path.
15126 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15127 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15130 # gcc leaves a trailing carriage return which upsets mingw
15131 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15133 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15136 # Accept absolute paths.
15138 re_direlt='/[^/][^/]*/\.\./'
15139 # Canonicalize the pathname of ld
15140 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15141 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15142 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15144 test -z "$LD" && LD="$ac_prog"
15147 # If it fails, then pretend we aren't using GCC.
15151 # If it is relative, then search for the first ld in PATH.
15152 with_gnu_ld=unknown
15155 elif test "$with_gnu_ld" = yes; then
15156 echo "$as_me:$LINENO: checking for GNU ld" >&5
15157 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15159 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15160 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15162 if test "${lt_cv_path_LD+set}" = set; then
15163 echo $ECHO_N "(cached) $ECHO_C" >&6
15165 if test -z "$LD"; then
15166 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15167 for ac_dir in $PATH; do
15169 test -z "$ac_dir" && ac_dir=.
15170 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15171 lt_cv_path_LD="$ac_dir/$ac_prog"
15172 # Check to see if the program is GNU ld. I'd rather use --version,
15173 # but apparently some GNU ld's only accept -v.
15174 # Break only if it was the GNU/non-GNU ld that we prefer.
15175 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15176 *GNU* | *'with BFD'*)
15177 test "$with_gnu_ld" != no && break
15180 test "$with_gnu_ld" != yes && break
15187 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15191 LD="$lt_cv_path_LD"
15192 if test -n "$LD"; then
15193 echo "$as_me:$LINENO: result: $LD" >&5
15194 echo "${ECHO_T}$LD" >&6
15196 echo "$as_me:$LINENO: result: no" >&5
15197 echo "${ECHO_T}no" >&6
15199 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15200 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15201 { (exit 1); exit 1; }; }
15202 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15203 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15204 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15207 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15208 case `$LD -v 2>&1 </dev/null` in
15209 *GNU* | *'with BFD'*)
15210 lt_cv_prog_gnu_ld=yes
15213 lt_cv_prog_gnu_ld=no
15217 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15218 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15219 with_gnu_ld=$lt_cv_prog_gnu_ld
15223 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15224 # archiving commands below assume that GNU ld is being used.
15225 if test "$with_gnu_ld" = yes; then
15226 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15227 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'
15229 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15230 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15232 # If archive_cmds runs LD, not CC, wlarc should be empty
15233 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15234 # investigate it a little bit more. (MM)
15237 # ancient GNU ld didn't support --whole-archive et. al.
15238 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15239 grep 'no-whole-archive' > /dev/null; then
15240 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15242 whole_archive_flag_spec_CXX=
15248 # A generic and very simple default shared library creation
15249 # command for GNU C++ for the case where it uses the native
15250 # linker, instead of GNU ld. If possible, this setting should
15251 # overridden to take advantage of the native linker features on
15252 # the platform it is being used on.
15253 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15256 # Commands to make compiler produce verbose output that lists
15257 # what "hidden" libraries, object files and flags are used when
15258 # linking a shared library.
15259 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15267 # PORTME: fill in a description of your system's C++ link characteristics
15268 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15269 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15273 # FIXME: insert proper C++ library support
15277 if test "$host_cpu" = ia64; then
15278 # On IA64, the linker does run time linking by default, so we don't
15279 # have to do anything special.
15280 aix_use_runtimelinking=no
15281 exp_sym_flag='-Bexport'
15284 aix_use_runtimelinking=no
15286 # Test if we are trying to use run time linking or normal
15287 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15288 # need to do runtime linking.
15289 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15290 for ld_flag in $LDFLAGS; do
15293 aix_use_runtimelinking=yes
15300 exp_sym_flag='-bexport'
15301 no_entry_flag='-bnoentry'
15304 # When large executables or shared objects are built, AIX ld can
15305 # have problems creating the table of contents. If linking a library
15306 # or program results in "error TOC overflow" add -mminimal-toc to
15307 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15308 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15310 archive_cmds_CXX=''
15311 hardcode_direct_CXX=yes
15312 hardcode_libdir_separator_CXX=':'
15313 link_all_deplibs_CXX=yes
15315 if test "$GXX" = yes; then
15316 case $host_os in aix4.012|aix4.012.*)
15317 # We only want to do this on AIX 4.2 and lower, the check
15318 # below for broken collect2 doesn't work under 4.3+
15319 collect2name=`${CC} -print-prog-name=collect2`
15320 if test -f "$collect2name" && \
15321 strings "$collect2name" | grep resolve_lib_name >/dev/null
15323 # We have reworked collect2
15324 hardcode_direct_CXX=yes
15326 # We have old collect2
15327 hardcode_direct_CXX=unsupported
15328 # It fails to find uninstalled libraries when the uninstalled
15329 # path is not listed in the libpath. Setting hardcode_minus_L
15330 # to unsupported forces relinking
15331 hardcode_minus_L_CXX=yes
15332 hardcode_libdir_flag_spec_CXX='-L$libdir'
15333 hardcode_libdir_separator_CXX=
15336 shared_flag='-shared'
15339 if test "$host_cpu" = ia64; then
15340 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15341 # chokes on -Wl,-G. The following line is correct:
15344 if test "$aix_use_runtimelinking" = yes; then
15345 shared_flag='${wl}-G'
15347 shared_flag='${wl}-bM:SRE'
15352 # It seems that -bexpall does not export symbols beginning with
15353 # underscore (_), so it is better to generate a list of symbols to export.
15354 always_export_symbols_CXX=yes
15355 if test "$aix_use_runtimelinking" = yes; then
15356 # Warning - without using the other runtime loading flags (-brtl),
15357 # -berok will link without error, but may produce a broken library.
15358 allow_undefined_flag_CXX='-berok'
15359 # Determine the default libpath from the value encoded in an empty executable.
15360 cat >conftest.$ac_ext <<_ACEOF
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h. */
15375 rm -f conftest.$ac_objext conftest$ac_exeext
15376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15377 (eval $ac_link) 2>conftest.er1
15379 grep -v '^ *+' conftest.er1 >conftest.err
15381 cat conftest.err >&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } &&
15384 { ac_try='test -z "$ac_cxx_werror_flag"
15385 || test ! -s conftest.err'
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; } &&
15391 { ac_try='test -s conftest$ac_exeext'
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; }; then
15398 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15400 # Check for a 64-bit object if we didn't find anything.
15401 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; }
15404 echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15408 rm -f conftest.err conftest.$ac_objext \
15409 conftest$ac_exeext conftest.$ac_ext
15410 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15412 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15414 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"
15416 if test "$host_cpu" = ia64; then
15417 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15418 allow_undefined_flag_CXX="-z nodefs"
15419 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"
15421 # Determine the default libpath from the value encoded in an empty executable.
15422 cat >conftest.$ac_ext <<_ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h. */
15437 rm -f conftest.$ac_objext conftest$ac_exeext
15438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15439 (eval $ac_link) 2>conftest.er1
15441 grep -v '^ *+' conftest.er1 >conftest.err
15443 cat conftest.err >&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } &&
15446 { ac_try='test -z "$ac_cxx_werror_flag"
15447 || test ! -s conftest.err'
15448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449 (eval $ac_try) 2>&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; } &&
15453 { ac_try='test -s conftest$ac_exeext'
15454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15455 (eval $ac_try) 2>&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); }; }; then
15460 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15462 # Check for a 64-bit object if we didn't find anything.
15463 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; }
15466 echo "$as_me: failed program was:" >&5
15467 sed 's/^/| /' conftest.$ac_ext >&5
15470 rm -f conftest.err conftest.$ac_objext \
15471 conftest$ac_exeext conftest.$ac_ext
15472 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15474 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15475 # Warning - without using the other run time loading flags,
15476 # -berok will link without error, but may produce a broken library.
15477 no_undefined_flag_CXX=' ${wl}-bernotok'
15478 allow_undefined_flag_CXX=' ${wl}-berok'
15479 # -bexpall does not export symbols beginning with underscore (_)
15480 always_export_symbols_CXX=yes
15481 # Exported symbols can be pulled into shared objects from archives
15482 whole_archive_flag_spec_CXX=' '
15483 archive_cmds_need_lc_CXX=yes
15484 # This is similar to how AIX traditionally builds it's shared libraries.
15485 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'
15490 case $cc_basename in
15492 # FIXME: insert proper C++ library support
15499 cygwin* | mingw* | pw32*)
15500 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15501 # as there is no search path for DLLs.
15502 hardcode_libdir_flag_spec_CXX='-L$libdir'
15503 allow_undefined_flag_CXX=unsupported
15504 always_export_symbols_CXX=no
15505 enable_shared_with_static_runtimes_CXX=yes
15507 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15508 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'
15509 # If the export-symbols file already is a .def file (1st line
15510 # is EXPORTS), use it as is; otherwise, prepend...
15511 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15512 cp $export_symbols $output_objdir/$soname.def;
15514 echo EXPORTS > $output_objdir/$soname.def;
15515 cat $export_symbols >> $output_objdir/$soname.def;
15517 $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'
15522 darwin* | rhapsody*)
15524 rhapsody* | darwin1.[012])
15525 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15528 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15529 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15531 case ${MACOSX_DEPLOYMENT_TARGET} in
15533 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15536 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15542 archive_cmds_need_lc_CXX=no
15543 hardcode_direct_CXX=no
15544 hardcode_automatic_CXX=yes
15545 hardcode_shlibpath_var_CXX=unsupported
15546 whole_archive_flag_spec_CXX=''
15547 link_all_deplibs_CXX=yes
15549 if test "$GXX" = yes ; then
15550 lt_int_apple_cc_single_mod=no
15551 output_verbose_link_cmd='echo'
15552 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15553 lt_int_apple_cc_single_mod=yes
15555 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15556 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15558 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'
15560 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15561 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15562 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15563 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}'
15565 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}'
15567 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}'
15569 case "$cc_basename" in
15571 output_verbose_link_cmd='echo'
15572 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'
15573 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15574 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15575 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}'
15576 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}'
15586 case $cc_basename in
15588 # FIXME: insert proper C++ library support
15592 # Green Hills C++ Compiler
15593 # FIXME: insert proper C++ library support
15597 # FIXME: insert proper C++ library support
15603 # C++ shared libraries reported to be fairly broken before switch to ELF
15607 archive_cmds_need_lc_CXX=no
15609 freebsd* | kfreebsd*-gnu)
15610 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15617 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15618 hardcode_libdir_separator_CXX=:
15619 export_dynamic_flag_spec_CXX='${wl}-E'
15620 hardcode_direct_CXX=yes
15621 hardcode_minus_L_CXX=yes # Not in the search PATH,
15622 # but as the default
15623 # location of the library.
15625 case $cc_basename in
15627 # FIXME: insert proper C++ library support
15631 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'
15632 # Commands to make compiler produce verbose output that lists
15633 # what "hidden" libraries, object files and flags are used when
15634 # linking a shared library.
15636 # There doesn't appear to be a way to prevent this compiler from
15637 # explicitly linking system object files so we need to strip them
15638 # from the output so that they don't get included in the library
15640 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'
15643 if test "$GXX" = yes; then
15644 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'
15646 # FIXME: insert proper C++ library support
15653 if test $with_gnu_ld = no; then
15654 case "$host_cpu" in
15656 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15657 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15658 hardcode_libdir_separator_CXX=:
15661 hardcode_libdir_flag_spec_CXX='-L$libdir'
15664 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15665 hardcode_libdir_separator_CXX=:
15666 export_dynamic_flag_spec_CXX='${wl}-E'
15670 case "$host_cpu" in
15672 hardcode_direct_CXX=no
15673 hardcode_shlibpath_var_CXX=no
15676 hardcode_direct_CXX=no
15677 hardcode_shlibpath_var_CXX=no
15678 hardcode_minus_L_CXX=yes # Not in the search PATH,
15679 # but as the default
15680 # location of the library.
15683 hardcode_direct_CXX=yes
15684 hardcode_minus_L_CXX=yes # Not in the search PATH,
15685 # but as the default
15686 # location of the library.
15690 case $cc_basename in
15692 # FIXME: insert proper C++ library support
15696 case "$host_cpu" in
15698 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15701 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15704 # Commands to make compiler produce verbose output that lists
15705 # what "hidden" libraries, object files and flags are used when
15706 # linking a shared library.
15708 # There doesn't appear to be a way to prevent this compiler from
15709 # explicitly linking system object files so we need to strip them
15710 # from the output so that they don't get included in the library
15712 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'
15715 if test "$GXX" = yes; then
15716 if test $with_gnu_ld = no; then
15717 case "$host_cpu" in
15719 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15722 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'
15727 # FIXME: insert proper C++ library support
15734 case $cc_basename in
15737 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'
15739 # Archives containing C++ object files must be created using
15740 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15741 # necessary to make sure instantiated templates are included
15743 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15746 if test "$GXX" = yes; then
15747 if test "$with_gnu_ld" = no; then
15748 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'
15750 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'
15753 link_all_deplibs_CXX=yes
15756 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15757 hardcode_libdir_separator_CXX=:
15760 case $cc_basename in
15762 # Kuck and Associates, Inc. (KAI) C++ Compiler
15764 # KCC will only create a shared library if the output file
15765 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15766 # to its proper name (with version) after linking.
15767 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'
15768 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'
15769 # Commands to make compiler produce verbose output that lists
15770 # what "hidden" libraries, object files and flags are used when
15771 # linking a shared library.
15773 # There doesn't appear to be a way to prevent this compiler from
15774 # explicitly linking system object files so we need to strip them
15775 # from the output so that they don't get included in the library
15777 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'
15779 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15780 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15782 # Archives containing C++ object files must be created using
15783 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15784 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15789 # version 8.0 and above of icpc choke on multiply defined symbols
15790 # if we add $predep_objects and $postdep_objects, however 7.1 and
15791 # earlier do not add the objects themselves.
15792 case `$CC -V 2>&1` in
15794 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15795 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'
15797 *) # Version 8.0 or newer
15798 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15799 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15802 archive_cmds_need_lc_CXX=no
15803 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15804 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15805 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15809 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15810 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'
15812 runpath_var=LD_RUN_PATH
15813 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15814 hardcode_libdir_separator_CXX=:
15816 # Commands to make compiler produce verbose output that lists
15817 # what "hidden" libraries, object files and flags are used when
15818 # linking a shared library.
15820 # There doesn't appear to be a way to prevent this compiler from
15821 # explicitly linking system object files so we need to strip them
15822 # from the output so that they don't get included in the library
15824 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'
15829 # FIXME: insert proper C++ library support
15833 # FIXME: insert proper C++ library support
15837 case $cc_basename in
15839 # FIXME: insert proper C++ library support
15843 # FIXME: insert proper C++ library support
15849 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15850 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15852 hardcode_libdir_flag_spec_CXX='-R$libdir'
15853 hardcode_direct_CXX=yes
15854 hardcode_shlibpath_var_CXX=no
15856 # Workaround some broken pre-1.5 toolchains
15857 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15860 # C++ shared libraries are fairly broken
15864 hardcode_direct_CXX=yes
15865 hardcode_shlibpath_var_CXX=no
15866 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15867 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15868 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15869 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15870 export_dynamic_flag_spec_CXX='${wl}-E'
15871 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15873 output_verbose_link_cmd='echo'
15876 case $cc_basename in
15878 # Kuck and Associates, Inc. (KAI) C++ Compiler
15880 # KCC will only create a shared library if the output file
15881 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15882 # to its proper name (with version) after linking.
15883 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'
15885 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15886 hardcode_libdir_separator_CXX=:
15888 # Archives containing C++ object files must be created using
15889 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15890 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15894 # Rational C++ 2.4.1
15895 # FIXME: insert proper C++ library support
15899 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15900 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'
15902 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15903 hardcode_libdir_separator_CXX=:
15905 # Commands to make compiler produce verbose output that lists
15906 # what "hidden" libraries, object files and flags are used when
15907 # linking a shared library.
15909 # There doesn't appear to be a way to prevent this compiler from
15910 # explicitly linking system object files so we need to strip them
15911 # from the output so that they don't get included in the library
15913 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'
15916 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15917 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15918 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'
15920 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15921 hardcode_libdir_separator_CXX=:
15923 # Commands to make compiler produce verbose output that lists
15924 # what "hidden" libraries, object files and flags are used when
15925 # linking a shared library.
15926 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15929 # FIXME: insert proper C++ library support
15936 case $cc_basename in
15938 # Kuck and Associates, Inc. (KAI) C++ Compiler
15940 # KCC will only create a shared library if the output file
15941 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15942 # to its proper name (with version) after linking.
15943 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'
15945 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15946 hardcode_libdir_separator_CXX=:
15948 # Archives containing C++ object files must be created using
15949 # the KAI C++ compiler.
15950 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15953 # Rational C++ 2.4.1
15954 # FIXME: insert proper C++ library support
15958 allow_undefined_flag_CXX=' -expect_unresolved \*'
15959 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'
15960 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15961 echo "-hidden">> $lib.exp~
15962 $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~
15965 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15966 hardcode_libdir_separator_CXX=:
15968 # Commands to make compiler produce verbose output that lists
15969 # what "hidden" libraries, object files and flags are used when
15970 # linking a shared library.
15972 # There doesn't appear to be a way to prevent this compiler from
15973 # explicitly linking system object files so we need to strip them
15974 # from the output so that they don't get included in the library
15976 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'
15979 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15980 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15981 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'
15983 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15984 hardcode_libdir_separator_CXX=:
15986 # Commands to make compiler produce verbose output that lists
15987 # what "hidden" libraries, object files and flags are used when
15988 # linking a shared library.
15989 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15992 # FIXME: insert proper C++ library support
15999 # FIXME: insert proper C++ library support
16003 archive_cmds_need_lc_CXX=no
16004 case $cc_basename in
16006 # FIXME: insert proper C++ library support
16010 # FIXME: insert proper C++ library support
16016 case $cc_basename in
16019 # FIXME: insert proper C++ library support
16024 # FIXME: insert proper C++ library support
16028 # FIXME: insert proper C++ library support
16034 case $cc_basename in
16036 # Sun C++ 4.2, 5.x and Centerline C++
16037 no_undefined_flag_CXX=' -zdefs'
16038 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16039 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16040 $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'
16042 hardcode_libdir_flag_spec_CXX='-R$libdir'
16043 hardcode_shlibpath_var_CXX=no
16045 solaris2.0-5 | solaris2.0-5.*) ;;
16047 # The C++ compiler is used as linker so we must use $wl
16048 # flag to pass the commands to the underlying system
16050 # Supported since Solaris 2.6 (maybe 2.5.1?)
16051 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16054 link_all_deplibs_CXX=yes
16056 # Commands to make compiler produce verbose output that lists
16057 # what "hidden" libraries, object files and flags are used when
16058 # linking a shared library.
16060 # There doesn't appear to be a way to prevent this compiler from
16061 # explicitly linking system object files so we need to strip them
16062 # from the output so that they don't get included in the library
16064 output_verbose_link_cmd='templist=`$CC -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'
16066 # Archives containing C++ object files must be created using
16067 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16068 # necessary to make sure instantiated templates are included
16070 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16073 # Green Hills C++ Compiler
16074 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16076 # The C++ compiler must be used to create the archive.
16077 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16080 # GNU C++ compiler with Solaris linker
16081 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16082 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16083 if $CC --version | grep -v '^2\.7' > /dev/null; then
16084 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16085 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16086 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16088 # Commands to make compiler produce verbose output that lists
16089 # what "hidden" libraries, object files and flags are used when
16090 # linking a shared library.
16091 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16093 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16095 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16096 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16097 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16099 # Commands to make compiler produce verbose output that lists
16100 # what "hidden" libraries, object files and flags are used when
16101 # linking a shared library.
16102 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16105 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16110 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16111 archive_cmds_need_lc_CXX=no
16114 case $cc_basename in
16116 # NonStop-UX NCC 3.20
16117 # FIXME: insert proper C++ library support
16121 # FIXME: insert proper C++ library support
16127 # FIXME: insert proper C++ library support
16131 # FIXME: insert proper C++ library support
16135 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16136 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16137 test "$ld_shlibs_CXX" = no && can_build_shared=no
16143 cat > conftest.$ac_ext <<EOF
16147 Foo (void) { a = 0; }
16153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16154 (eval $ac_compile) 2>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; then
16158 # Parse the compiler output and extract the necessary
16159 # objects, libraries and library flags.
16161 # Sentinel used to keep track of whether or not we are before
16162 # the conftest object file.
16163 pre_test_object_deps_done=no
16165 # The `*' in the case matches for architectures that use `case' in
16166 # $output_verbose_cmd can trigger glob expansion during the loop
16167 # eval without this substitution.
16168 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16170 for p in `eval $output_verbose_link_cmd`; do
16174 # Some compilers place space between "-{L,R}" and the path.
16175 # Remove the space.
16176 if test $p = "-L" \
16177 || test $p = "-R"; then
16184 if test "$pre_test_object_deps_done" = no; then
16187 # Internal compiler library paths should come after those
16188 # provided the user. The postdeps already come after the
16189 # user supplied libs so there is no need to process them.
16190 if test -z "$compiler_lib_search_path_CXX"; then
16191 compiler_lib_search_path_CXX="${prev}${p}"
16193 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16196 # The "-l" case would never come before the object being
16197 # linked, so don't bother handling this case.
16200 if test -z "$postdeps_CXX"; then
16201 postdeps_CXX="${prev}${p}"
16203 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16209 # This assumes that the test object file only shows up
16210 # once in the compiler output.
16211 if test "$p" = "conftest.$objext"; then
16212 pre_test_object_deps_done=yes
16216 if test "$pre_test_object_deps_done" = no; then
16217 if test -z "$predep_objects_CXX"; then
16218 predep_objects_CXX="$p"
16220 predep_objects_CXX="$predep_objects_CXX $p"
16223 if test -z "$postdep_objects_CXX"; then
16224 postdep_objects_CXX="$p"
16226 postdep_objects_CXX="$postdep_objects_CXX $p"
16231 *) ;; # Ignore the rest.
16239 echo "libtool.m4: error: problem compiling CXX test program"
16242 $rm -f confest.$objext
16244 case " $postdeps_CXX " in
16245 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16248 lt_prog_compiler_wl_CXX=
16249 lt_prog_compiler_pic_CXX=
16250 lt_prog_compiler_static_CXX=
16252 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16253 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16255 # C++ specific cases for pic, static, wl, etc.
16256 if test "$GXX" = yes; then
16257 lt_prog_compiler_wl_CXX='-Wl,'
16258 lt_prog_compiler_static_CXX='-static'
16262 # All AIX code is PIC.
16263 if test "$host_cpu" = ia64; then
16264 # AIX 5 now supports IA64 processor
16265 lt_prog_compiler_static_CXX='-Bstatic'
16269 # FIXME: we need at least 68020 code to build shared libraries, but
16270 # adding the `-m68020' flag to GCC prevents building anything better,
16272 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16274 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16275 # PIC is the default for these OSes.
16277 mingw* | os2* | pw32*)
16278 # This hack is so that the source file can tell whether it is being
16279 # built for inclusion in a dll (and should export symbols for example).
16280 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16282 darwin* | rhapsody*)
16283 # PIC is the default on this platform
16284 # Common symbols not allowed in MH_DYLIB files
16285 lt_prog_compiler_pic_CXX='-fno-common'
16288 # DJGPP does not support shared libraries at all
16289 lt_prog_compiler_pic_CXX=
16292 if test -d /usr/nec; then
16293 lt_prog_compiler_pic_CXX=-Kconform_pic
16297 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16298 # not for PA HP-UX.
16299 case "$host_cpu" in
16303 lt_prog_compiler_pic_CXX='-fPIC'
16308 lt_prog_compiler_pic_CXX='-fPIC'
16314 # All AIX code is PIC.
16315 if test "$host_cpu" = ia64; then
16316 # AIX 5 now supports IA64 processor
16317 lt_prog_compiler_static_CXX='-Bstatic'
16319 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16323 case $cc_basename in
16325 # Green Hills C++ Compiler
16326 # _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"
16331 # PIC is the default on this platform
16332 # Common symbols not allowed in MH_DYLIB files
16333 case "$cc_basename" in
16335 lt_prog_compiler_pic_CXX='-qnocommon'
16336 lt_prog_compiler_wl_CXX='-Wl,'
16341 case $cc_basename in
16343 lt_prog_compiler_pic_CXX='-KPIC'
16346 # Green Hills C++ Compiler
16347 lt_prog_compiler_pic_CXX='-pic'
16353 freebsd* | kfreebsd*-gnu)
16354 # FreeBSD uses GNU C++
16356 hpux9* | hpux10* | hpux11*)
16357 case $cc_basename in
16359 lt_prog_compiler_wl_CXX='-Wl,'
16360 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16361 if test "$host_cpu" != ia64; then
16362 lt_prog_compiler_pic_CXX='+Z'
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 case "$host_cpu" in
16373 lt_prog_compiler_pic_CXX='+Z'
16381 irix5* | irix6* | nonstopux*)
16382 case $cc_basename in
16384 lt_prog_compiler_wl_CXX='-Wl,'
16385 lt_prog_compiler_static_CXX='-non_shared'
16386 # CC pic flag -KPIC is the default.
16393 case $cc_basename in
16396 lt_prog_compiler_wl_CXX='--backend -Wl,'
16397 lt_prog_compiler_pic_CXX='-fPIC'
16401 lt_prog_compiler_wl_CXX='-Wl,'
16402 lt_prog_compiler_pic_CXX='-KPIC'
16403 lt_prog_compiler_static_CXX='-static'
16407 # Make sure the PIC flag is empty. It appears that all Alpha
16408 # Linux and Compaq Tru64 Unix objects are PIC.
16409 lt_prog_compiler_pic_CXX=
16410 lt_prog_compiler_static_CXX='-non_shared'
16421 case $cc_basename in
16423 lt_prog_compiler_pic_CXX='-W c,exportall'
16431 osf3* | osf4* | osf5*)
16432 case $cc_basename in
16434 lt_prog_compiler_wl_CXX='--backend -Wl,'
16437 # Rational C++ 2.4.1
16438 lt_prog_compiler_pic_CXX='-pic'
16441 # Digital/Compaq C++
16442 lt_prog_compiler_wl_CXX='-Wl,'
16443 # Make sure the PIC flag is empty. It appears that all Alpha
16444 # Linux and Compaq Tru64 Unix objects are PIC.
16445 lt_prog_compiler_pic_CXX=
16446 lt_prog_compiler_static_CXX='-non_shared'
16455 case $cc_basename in
16457 lt_prog_compiler_pic_CXX='-fPIC'
16464 case $cc_basename in
16466 # Sun C++ 4.2, 5.x and Centerline C++
16467 lt_prog_compiler_pic_CXX='-KPIC'
16468 lt_prog_compiler_static_CXX='-Bstatic'
16469 lt_prog_compiler_wl_CXX='-Qoption ld '
16472 # Green Hills C++ Compiler
16473 lt_prog_compiler_pic_CXX='-PIC'
16480 case $cc_basename in
16483 lt_prog_compiler_pic_CXX='-pic'
16484 lt_prog_compiler_static_CXX='-Bstatic'
16488 lt_prog_compiler_pic_CXX='-pic'
16495 case $cc_basename in
16497 # NonStop-UX NCC 3.20
16498 lt_prog_compiler_pic_CXX='-KPIC'
16509 lt_prog_compiler_can_build_shared_CXX=no
16514 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16515 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16518 # Check to make sure the PIC flag actually works.
16520 if test -n "$lt_prog_compiler_pic_CXX"; then
16522 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16523 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16524 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16527 lt_prog_compiler_pic_works_CXX=no
16528 ac_outfile=conftest.$ac_objext
16529 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16530 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16531 # Insert the option either (1) after the last *FLAGS variable, or
16532 # (2) before a word containing "conftest.", or (3) at the end.
16533 # Note that $ac_compile itself does not contain backslashes and begins
16534 # with a dollar sign (not a hyphen), so the echo should work correctly.
16535 # The option is referenced via a variable to avoid confusing sed.
16536 lt_compile=`echo "$ac_compile" | $SED \
16537 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16539 -e 's:$: $lt_compiler_flag:'`
16540 (eval echo "\"\$as_me:16540: $lt_compile\"" >&5)
16541 (eval "$lt_compile" 2>conftest.err)
16543 cat conftest.err >&5
16544 echo "$as_me:16544: \$? = $ac_status" >&5
16545 if (exit $ac_status) && test -s "$ac_outfile"; then
16546 # The compiler can only warn and ignore the option if not recognized
16547 # So say no if there are warnings
16548 if test ! -s conftest.err; then
16549 lt_prog_compiler_pic_works_CXX=yes
16555 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16556 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16558 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16559 case $lt_prog_compiler_pic_CXX in
16561 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16564 lt_prog_compiler_pic_CXX=
16565 lt_prog_compiler_can_build_shared_CXX=no
16570 # For platforms which do not support PIC, -DPIC is meaningless:
16572 lt_prog_compiler_pic_CXX=
16575 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16579 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16580 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16581 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16582 echo $ECHO_N "(cached) $ECHO_C" >&6
16584 lt_cv_prog_compiler_c_o_CXX=no
16585 $rm -r conftest 2>/dev/null
16589 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16591 lt_compiler_flag="-o out/conftest2.$ac_objext"
16592 # Insert the option either (1) after the last *FLAGS variable, or
16593 # (2) before a word containing "conftest.", or (3) at the end.
16594 # Note that $ac_compile itself does not contain backslashes and begins
16595 # with a dollar sign (not a hyphen), so the echo should work correctly.
16596 lt_compile=`echo "$ac_compile" | $SED \
16597 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16599 -e 's:$: $lt_compiler_flag:'`
16600 (eval echo "\"\$as_me:16600: $lt_compile\"" >&5)
16601 (eval "$lt_compile" 2>out/conftest.err)
16603 cat out/conftest.err >&5
16604 echo "$as_me:16604: \$? = $ac_status" >&5
16605 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16607 # The compiler can only warn and ignore the option if not recognized
16608 # So say no if there are warnings
16609 if test ! -s out/conftest.err; then
16610 lt_cv_prog_compiler_c_o_CXX=yes
16615 # SGI C++ compiler will create directory out/ii_files/ for
16616 # template instantiation
16617 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16618 $rm out/* && rmdir out
16624 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16625 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16628 hard_links="nottested"
16629 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16630 # do not overwrite the value of need_locks provided by the user
16631 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16632 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16635 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16637 ln conftest.a conftest.b 2>&5 || hard_links=no
16638 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16639 echo "$as_me:$LINENO: result: $hard_links" >&5
16640 echo "${ECHO_T}$hard_links" >&6
16641 if test "$hard_links" = no; then
16642 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16643 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16650 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16651 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16653 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16656 # If we're using GNU nm, then we don't want the "-C" option.
16657 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16658 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16659 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'
16661 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'
16665 export_symbols_cmds_CXX="$ltdll_cmds"
16668 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16671 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16675 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16676 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16677 test "$ld_shlibs_CXX" = no && can_build_shared=no
16679 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16680 if test "$GCC" = yes; then
16681 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16685 # Do we need to explicitly link libc?
16687 case "x$archive_cmds_need_lc_CXX" in
16689 # Assume -lc should be added
16690 archive_cmds_need_lc_CXX=yes
16692 if test "$enable_shared" = yes && test "$GCC" = yes; then
16693 case $archive_cmds_CXX in
16695 # FIXME: we may have to deal with multi-command sequences.
16698 # Test whether the compiler implicitly links with -lc since on some
16699 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16700 # to ld, don't add -lc before -lgcc.
16701 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16702 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16704 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16707 (eval $ac_compile) 2>&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } 2>conftest.err; then
16713 libobjs=conftest.$ac_objext
16715 wl=$lt_prog_compiler_wl_CXX
16721 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16722 allow_undefined_flag_CXX=
16723 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16724 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }
16729 archive_cmds_need_lc_CXX=no
16731 archive_cmds_need_lc_CXX=yes
16733 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16735 cat conftest.err 1>&5
16738 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16739 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16746 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16747 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16748 library_names_spec=
16749 libname_spec='lib$name'
16753 postuninstall_cmds=
16757 shlibpath_overrides_runpath=unknown
16759 dynamic_linker="$host_os ld.so"
16760 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16761 if test "$GCC" = yes; then
16762 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16763 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16764 # if the path contains ";" then we assume it to be the separator
16765 # otherwise default to the standard path separator (i.e. ":") - it is
16766 # assumed that no part of a normal pathname contains ";" but that should
16767 # okay in the real world where ";" in dirpaths is itself problematic.
16768 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16770 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16773 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16775 need_lib_prefix=unknown
16776 hardcode_into_libs=no
16778 # when you set need_version to no, make sure it does not cause -set_version
16779 # flags to be left without arguments
16780 need_version=unknown
16785 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16786 shlibpath_var=LIBPATH
16788 # AIX 3 has no versioning support, so we append a major version to the name.
16789 soname_spec='${libname}${release}${shared_ext}$major'
16796 hardcode_into_libs=yes
16797 if test "$host_cpu" = ia64; then
16798 # AIX 5 supports IA64
16799 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16800 shlibpath_var=LD_LIBRARY_PATH
16802 # With GCC up to 2.95.x, collect2 would create an import file
16803 # for dependence libraries. The import file would start with
16804 # the line `#! .'. This would cause the generated library to
16805 # depend on `.', always an invalid library. This was fixed in
16806 # development snapshots of GCC prior to 3.0.
16808 aix4 | aix4.[01] | aix4.[01].*)
16809 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16811 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16814 can_build_shared=no
16818 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16819 # soname into executable. Probably we can add versioning support to
16820 # collect2, so additional links can be useful in future.
16821 if test "$aix_use_runtimelinking" = yes; then
16822 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16823 # instead of lib<name>.a to let people know that these are not
16824 # typical AIX shared libraries.
16825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16827 # We preserve .a as extension for shared libraries through AIX4.2
16828 # and later when we are not doing run time linking.
16829 library_names_spec='${libname}${release}.a $libname.a'
16830 soname_spec='${libname}${release}${shared_ext}$major'
16832 shlibpath_var=LIBPATH
16837 library_names_spec='$libname.ixlibrary $libname.a'
16838 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16839 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'
16843 library_names_spec='${libname}${shared_ext}'
16844 dynamic_linker="$host_os ld.so"
16845 shlibpath_var=LIBRARY_PATH
16851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16852 soname_spec='${libname}${release}${shared_ext}$major'
16853 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16854 shlibpath_var=LD_LIBRARY_PATH
16855 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16856 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16857 # the default ld.so.conf also contains /usr/contrib/lib and
16858 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16859 # libtool to hard-code these into programs
16862 cygwin* | mingw* | pw32*)
16863 version_type=windows
16868 case $GCC,$host_os in
16869 yes,cygwin* | yes,mingw* | yes,pw32*)
16870 library_names_spec='$libname.dll.a'
16871 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16872 postinstall_cmds='base_file=`basename \${file}`~
16873 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16874 dldir=$destdir/`dirname \$dlpath`~
16875 test -d \$dldir || mkdir -p \$dldir~
16876 $install_prog $dir/$dlname \$dldir/$dlname'
16877 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16878 dlpath=$dir/\$dldll~
16880 shlibpath_overrides_runpath=yes
16884 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16885 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16886 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16889 # MinGW DLLs use traditional 'lib' prefix
16890 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16891 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16892 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16893 # It is most probably a Windows format PATH printed by
16894 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16895 # path with ; separators, and with drive letters. We can handle the
16896 # drive letters (cygwin fileutils understands them), so leave them,
16897 # especially as we might pass files found there to a mingw objdump,
16898 # which wouldn't understand a cygwinified path. Ahh.
16899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16905 # pw32 DLLs use 'pw' prefix rather than 'lib'
16906 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16912 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16915 dynamic_linker='Win32 ld.exe'
16916 # FIXME: first we should search . and the directory the executable is in
16920 darwin* | rhapsody*)
16921 dynamic_linker="$host_os dyld"
16922 version_type=darwin
16925 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16926 soname_spec='${libname}${release}${major}$shared_ext'
16927 shlibpath_overrides_runpath=yes
16928 shlibpath_var=DYLD_LIBRARY_PATH
16929 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16930 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16931 if test "$GCC" = yes; then
16932 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"`
16934 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16936 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16944 soname_spec='${libname}${release}${shared_ext}$major'
16945 shlibpath_var=LD_LIBRARY_PATH
16956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16957 soname_spec='${libname}${release}${shared_ext}$major'
16958 shlibpath_var=LD_LIBRARY_PATH
16959 shlibpath_overrides_runpath=no
16960 hardcode_into_libs=yes
16961 dynamic_linker='GNU ld.so'
16965 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16966 version_type=freebsd-$objformat
16967 case $version_type in
16969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16974 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16978 shlibpath_var=LD_LIBRARY_PATH
16981 shlibpath_overrides_runpath=yes
16983 freebsd3.01* | freebsdelf3.01*)
16984 shlibpath_overrides_runpath=yes
16985 hardcode_into_libs=yes
16988 shlibpath_overrides_runpath=no
16989 hardcode_into_libs=yes
16998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16999 soname_spec='${libname}${release}${shared_ext}$major'
17000 shlibpath_var=LD_LIBRARY_PATH
17001 hardcode_into_libs=yes
17004 hpux9* | hpux10* | hpux11*)
17005 # Give a soname corresponding to the major version so that dld.sl refuses to
17006 # link against other versions.
17010 case "$host_cpu" in
17013 hardcode_into_libs=yes
17014 dynamic_linker="$host_os dld.so"
17015 shlibpath_var=LD_LIBRARY_PATH
17016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17018 soname_spec='${libname}${release}${shared_ext}$major'
17019 if test "X$HPUX_IA64_MODE" = X32; then
17020 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17022 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17024 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17028 hardcode_into_libs=yes
17029 dynamic_linker="$host_os dld.sl"
17030 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17031 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17033 soname_spec='${libname}${release}${shared_ext}$major'
17034 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17039 dynamic_linker="$host_os dld.sl"
17040 shlibpath_var=SHLIB_PATH
17041 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17043 soname_spec='${libname}${release}${shared_ext}$major'
17046 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17047 postinstall_cmds='chmod 555 $lib'
17050 irix5* | irix6* | nonstopux*)
17052 nonstopux*) version_type=nonstopux ;;
17054 if test "$lt_cv_prog_gnu_ld" = yes; then
17062 soname_spec='${libname}${release}${shared_ext}$major'
17063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17065 irix5* | nonstopux*)
17066 libsuff= shlibsuff=
17069 case $LD in # libtool.m4 will add one of these switches to LD
17070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17071 libsuff= shlibsuff= libmagic=32-bit;;
17072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17073 libsuff=32 shlibsuff=N32 libmagic=N32;;
17074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17075 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17076 *) libsuff= shlibsuff= libmagic=never-match;;
17080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17081 shlibpath_overrides_runpath=no
17082 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17083 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17084 hardcode_into_libs=yes
17087 # No shared lib support for Linux oldld, aout, or coff.
17088 linux*oldld* | linux*aout* | linux*coff*)
17092 # This must be Linux ELF.
17097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17098 soname_spec='${libname}${release}${shared_ext}$major'
17099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17100 shlibpath_var=LD_LIBRARY_PATH
17101 shlibpath_overrides_runpath=no
17102 # This implies no fast_install, which is unacceptable.
17103 # Some rework will be needed to allow for fast_install
17104 # before this can be enabled.
17105 hardcode_into_libs=yes
17107 # Append ld.so.conf contents to the search path
17108 if test -f /etc/ld.so.conf; then
17109 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17110 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17113 # We used to test for /lib/ld.so.1 and disable shared libraries on
17114 # powerpc, because MkLinux only supported shared libraries with the
17115 # GNU dynamic linker. Since this was broken with cross compilers,
17116 # most powerpc-linux boxes support dynamic linking these days and
17117 # people can always --disable-shared, the test was removed, and we
17118 # assume the GNU/Linux dynamic linker is in use.
17119 dynamic_linker='GNU/Linux ld.so'
17126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17127 soname_spec='${libname}${release}${shared_ext}$major'
17128 shlibpath_var=LD_LIBRARY_PATH
17129 shlibpath_overrides_runpath=no
17130 hardcode_into_libs=yes
17131 dynamic_linker='GNU ld.so'
17138 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17141 dynamic_linker='NetBSD (a.out) ld.so'
17143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17144 soname_spec='${libname}${release}${shared_ext}$major'
17145 dynamic_linker='NetBSD ld.elf_so'
17147 shlibpath_var=LD_LIBRARY_PATH
17148 shlibpath_overrides_runpath=yes
17149 hardcode_into_libs=yes
17154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17155 shlibpath_var=LD_LIBRARY_PATH
17156 shlibpath_overrides_runpath=yes
17163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17164 soname_spec='${libname}${release}${shared_ext}$major'
17165 shlibpath_var=LD_LIBRARY_PATH
17166 shlibpath_overrides_runpath=yes
17173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17175 shlibpath_var=LD_LIBRARY_PATH
17176 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17178 openbsd2.[89] | openbsd2.[89].*)
17179 shlibpath_overrides_runpath=no
17182 shlibpath_overrides_runpath=yes
17186 shlibpath_overrides_runpath=yes
17191 libname_spec='$name'
17194 library_names_spec='$libname${shared_ext} $libname.a'
17195 dynamic_linker='OS/2 ld.exe'
17196 shlibpath_var=LIBPATH
17199 osf3* | osf4* | osf5*)
17203 soname_spec='${libname}${release}${shared_ext}$major'
17204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17205 shlibpath_var=LD_LIBRARY_PATH
17206 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17207 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17212 soname_spec='${libname}${release}${shared_ext}$major'
17213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17214 shlibpath_var=LD_LIBRARY_PATH
17221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17222 soname_spec='${libname}${release}${shared_ext}$major'
17223 shlibpath_var=LD_LIBRARY_PATH
17224 shlibpath_overrides_runpath=yes
17225 hardcode_into_libs=yes
17226 # ldd complains unless libraries are executable
17227 postinstall_cmds='chmod +x $lib'
17232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17233 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17234 shlibpath_var=LD_LIBRARY_PATH
17235 shlibpath_overrides_runpath=yes
17236 if test "$with_gnu_ld" = yes; then
17242 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17245 soname_spec='${libname}${release}${shared_ext}$major'
17246 shlibpath_var=LD_LIBRARY_PATH
17247 case $host_vendor in
17249 shlibpath_overrides_runpath=no
17251 export_dynamic_flag_spec='${wl}-Blargedynsym'
17252 runpath_var=LD_RUN_PATH
17260 shlibpath_overrides_runpath=no
17261 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17267 if test -d /usr/nec ;then
17269 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17270 soname_spec='$libname${shared_ext}.$major'
17271 shlibpath_var=LD_LIBRARY_PATH
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278 soname_spec='${libname}${release}${shared_ext}$major'
17279 shlibpath_var=LD_LIBRARY_PATH
17286 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17287 echo "${ECHO_T}$dynamic_linker" >&6
17288 test "$dynamic_linker" = no && can_build_shared=no
17290 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17291 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17292 hardcode_action_CXX=
17293 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17294 test -n "$runpath_var_CXX" || \
17295 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17297 # We can hardcode non-existant directories.
17298 if test "$hardcode_direct_CXX" != no &&
17299 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17300 # have to relink, otherwise we might link with an installed library
17301 # when we should be linking with a yet-to-be-installed one
17302 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17303 test "$hardcode_minus_L_CXX" != no; then
17304 # Linking always hardcodes the temporary library directory.
17305 hardcode_action_CXX=relink
17307 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17308 hardcode_action_CXX=immediate
17311 # We cannot hardcode anything, or else we can only hardcode existing
17313 hardcode_action_CXX=unsupported
17315 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17316 echo "${ECHO_T}$hardcode_action_CXX" >&6
17318 if test "$hardcode_action_CXX" = relink; then
17319 # Fast installation is not supported
17320 enable_fast_install=no
17321 elif test "$shlibpath_overrides_runpath" = yes ||
17322 test "$enable_shared" = no; then
17323 # Fast installation is not necessary
17324 enable_fast_install=needless
17329 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17330 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17331 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17332 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17333 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17334 echo "$as_me:$LINENO: result: yes" >&5
17335 echo "${ECHO_T}yes" >&6
17337 # FIXME - insert some real tests, host_os isn't really good enough
17340 if test -n "$STRIP" ; then
17341 striplib="$STRIP -x"
17342 echo "$as_me:$LINENO: result: yes" >&5
17343 echo "${ECHO_T}yes" >&6
17345 echo "$as_me:$LINENO: result: no" >&5
17346 echo "${ECHO_T}no" >&6
17350 echo "$as_me:$LINENO: result: no" >&5
17351 echo "${ECHO_T}no" >&6
17356 if test "x$enable_dlopen" != xyes; then
17357 enable_dlopen=unknown
17358 enable_dlopen_self=unknown
17359 enable_dlopen_self_static=unknown
17366 lt_cv_dlopen="load_add_on"
17368 lt_cv_dlopen_self=yes
17372 lt_cv_dlopen="LoadLibrary"
17377 lt_cv_dlopen="dlopen"
17382 # if libdl is installed we need to link against it
17383 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17384 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17385 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17386 echo $ECHO_N "(cached) $ECHO_C" >&6
17388 ac_check_lib_save_LIBS=$LIBS
17390 cat >conftest.$ac_ext <<_ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h. */
17397 /* Override any gcc2 internal prototype to avoid an error. */
17401 /* We use char because int might match the return type of a gcc2
17402 builtin and then its argument prototype would still apply. */
17412 rm -f conftest.$ac_objext conftest$ac_exeext
17413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17414 (eval $ac_link) 2>conftest.er1
17416 grep -v '^ *+' conftest.er1 >conftest.err
17418 cat conftest.err >&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } &&
17421 { ac_try='test -z "$ac_cxx_werror_flag"
17422 || test ! -s conftest.err'
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; } &&
17428 { ac_try='test -s conftest$ac_exeext'
17429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430 (eval $ac_try) 2>&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; }; then
17434 ac_cv_lib_dl_dlopen=yes
17436 echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17439 ac_cv_lib_dl_dlopen=no
17441 rm -f conftest.err conftest.$ac_objext \
17442 conftest$ac_exeext conftest.$ac_ext
17443 LIBS=$ac_check_lib_save_LIBS
17445 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17446 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17447 if test $ac_cv_lib_dl_dlopen = yes; then
17448 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17451 lt_cv_dlopen="dyld"
17453 lt_cv_dlopen_self=yes
17460 echo "$as_me:$LINENO: checking for shl_load" >&5
17461 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17462 if test "${ac_cv_func_shl_load+set}" = set; then
17463 echo $ECHO_N "(cached) $ECHO_C" >&6
17465 cat >conftest.$ac_ext <<_ACEOF
17468 cat confdefs.h >>conftest.$ac_ext
17469 cat >>conftest.$ac_ext <<_ACEOF
17470 /* end confdefs.h. */
17471 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17473 #define shl_load innocuous_shl_load
17475 /* System header to define __stub macros and hopefully few prototypes,
17476 which can conflict with char shl_load (); below.
17477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17478 <limits.h> exists even on freestanding compilers. */
17481 # include <limits.h>
17483 # include <assert.h>
17488 /* Override any gcc2 internal prototype to avoid an error. */
17493 /* We use char because int might match the return type of a gcc2
17494 builtin and then its argument prototype would still apply. */
17496 /* The GNU C library defines this for functions which it implements
17497 to always fail with ENOSYS. Some functions are actually named
17498 something starting with __ and the normal name is an alias. */
17499 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17502 char (*f) () = shl_load;
17511 return f != shl_load;
17516 rm -f conftest.$ac_objext conftest$ac_exeext
17517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17518 (eval $ac_link) 2>conftest.er1
17520 grep -v '^ *+' conftest.er1 >conftest.err
17522 cat conftest.err >&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } &&
17525 { ac_try='test -z "$ac_cxx_werror_flag"
17526 || test ! -s conftest.err'
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest$ac_exeext'
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17538 ac_cv_func_shl_load=yes
17540 echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17543 ac_cv_func_shl_load=no
17545 rm -f conftest.err conftest.$ac_objext \
17546 conftest$ac_exeext conftest.$ac_ext
17548 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17549 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17550 if test $ac_cv_func_shl_load = yes; then
17551 lt_cv_dlopen="shl_load"
17553 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17554 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17555 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17556 echo $ECHO_N "(cached) $ECHO_C" >&6
17558 ac_check_lib_save_LIBS=$LIBS
17560 cat >conftest.$ac_ext <<_ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17567 /* Override any gcc2 internal prototype to avoid an error. */
17571 /* We use char because int might match the return type of a gcc2
17572 builtin and then its argument prototype would still apply. */
17582 rm -f conftest.$ac_objext conftest$ac_exeext
17583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17584 (eval $ac_link) 2>conftest.er1
17586 grep -v '^ *+' conftest.er1 >conftest.err
17588 cat conftest.err >&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } &&
17591 { ac_try='test -z "$ac_cxx_werror_flag"
17592 || test ! -s conftest.err'
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; } &&
17598 { ac_try='test -s conftest$ac_exeext'
17599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17600 (eval $ac_try) 2>&5
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; }; then
17604 ac_cv_lib_dld_shl_load=yes
17606 echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17609 ac_cv_lib_dld_shl_load=no
17611 rm -f conftest.err conftest.$ac_objext \
17612 conftest$ac_exeext conftest.$ac_ext
17613 LIBS=$ac_check_lib_save_LIBS
17615 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17616 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17617 if test $ac_cv_lib_dld_shl_load = yes; then
17618 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17620 echo "$as_me:$LINENO: checking for dlopen" >&5
17621 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17622 if test "${ac_cv_func_dlopen+set}" = set; then
17623 echo $ECHO_N "(cached) $ECHO_C" >&6
17625 cat >conftest.$ac_ext <<_ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h. */
17631 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17633 #define dlopen innocuous_dlopen
17635 /* System header to define __stub macros and hopefully few prototypes,
17636 which can conflict with char dlopen (); below.
17637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17638 <limits.h> exists even on freestanding compilers. */
17641 # include <limits.h>
17643 # include <assert.h>
17648 /* Override any gcc2 internal prototype to avoid an error. */
17653 /* We use char because int might match the return type of a gcc2
17654 builtin and then its argument prototype would still apply. */
17656 /* The GNU C library defines this for functions which it implements
17657 to always fail with ENOSYS. Some functions are actually named
17658 something starting with __ and the normal name is an alias. */
17659 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17662 char (*f) () = dlopen;
17671 return f != dlopen;
17676 rm -f conftest.$ac_objext conftest$ac_exeext
17677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17678 (eval $ac_link) 2>conftest.er1
17680 grep -v '^ *+' conftest.er1 >conftest.err
17682 cat conftest.err >&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } &&
17685 { ac_try='test -z "$ac_cxx_werror_flag"
17686 || test ! -s conftest.err'
17687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688 (eval $ac_try) 2>&5
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); }; } &&
17692 { ac_try='test -s conftest$ac_exeext'
17693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694 (eval $ac_try) 2>&5
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); }; }; then
17698 ac_cv_func_dlopen=yes
17700 echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17703 ac_cv_func_dlopen=no
17705 rm -f conftest.err conftest.$ac_objext \
17706 conftest$ac_exeext conftest.$ac_ext
17708 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17709 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17710 if test $ac_cv_func_dlopen = yes; then
17711 lt_cv_dlopen="dlopen"
17713 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17714 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17715 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17716 echo $ECHO_N "(cached) $ECHO_C" >&6
17718 ac_check_lib_save_LIBS=$LIBS
17720 cat >conftest.$ac_ext <<_ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17727 /* Override any gcc2 internal prototype to avoid an error. */
17731 /* We use char because int might match the return type of a gcc2
17732 builtin and then its argument prototype would still apply. */
17742 rm -f conftest.$ac_objext conftest$ac_exeext
17743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17744 (eval $ac_link) 2>conftest.er1
17746 grep -v '^ *+' conftest.er1 >conftest.err
17748 cat conftest.err >&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } &&
17751 { ac_try='test -z "$ac_cxx_werror_flag"
17752 || test ! -s conftest.err'
17753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; } &&
17758 { ac_try='test -s conftest$ac_exeext'
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; }; then
17764 ac_cv_lib_dl_dlopen=yes
17766 echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.$ac_ext >&5
17769 ac_cv_lib_dl_dlopen=no
17771 rm -f conftest.err conftest.$ac_objext \
17772 conftest$ac_exeext conftest.$ac_ext
17773 LIBS=$ac_check_lib_save_LIBS
17775 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17776 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17777 if test $ac_cv_lib_dl_dlopen = yes; then
17778 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17780 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17781 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17782 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17783 echo $ECHO_N "(cached) $ECHO_C" >&6
17785 ac_check_lib_save_LIBS=$LIBS
17786 LIBS="-lsvld $LIBS"
17787 cat >conftest.$ac_ext <<_ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h. */
17794 /* Override any gcc2 internal prototype to avoid an error. */
17798 /* We use char because int might match the return type of a gcc2
17799 builtin and then its argument prototype would still apply. */
17809 rm -f conftest.$ac_objext conftest$ac_exeext
17810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17811 (eval $ac_link) 2>conftest.er1
17813 grep -v '^ *+' conftest.er1 >conftest.err
17815 cat conftest.err >&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } &&
17818 { ac_try='test -z "$ac_cxx_werror_flag"
17819 || test ! -s conftest.err'
17820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821 (eval $ac_try) 2>&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; } &&
17825 { ac_try='test -s conftest$ac_exeext'
17826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17827 (eval $ac_try) 2>&5
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; }; then
17831 ac_cv_lib_svld_dlopen=yes
17833 echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17836 ac_cv_lib_svld_dlopen=no
17838 rm -f conftest.err conftest.$ac_objext \
17839 conftest$ac_exeext conftest.$ac_ext
17840 LIBS=$ac_check_lib_save_LIBS
17842 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17843 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17844 if test $ac_cv_lib_svld_dlopen = yes; then
17845 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17847 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17848 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17849 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17850 echo $ECHO_N "(cached) $ECHO_C" >&6
17852 ac_check_lib_save_LIBS=$LIBS
17854 cat >conftest.$ac_ext <<_ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17861 /* Override any gcc2 internal prototype to avoid an error. */
17865 /* We use char because int might match the return type of a gcc2
17866 builtin and then its argument prototype would still apply. */
17876 rm -f conftest.$ac_objext conftest$ac_exeext
17877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17878 (eval $ac_link) 2>conftest.er1
17880 grep -v '^ *+' conftest.er1 >conftest.err
17882 cat conftest.err >&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } &&
17885 { ac_try='test -z "$ac_cxx_werror_flag"
17886 || test ! -s conftest.err'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; } &&
17892 { ac_try='test -s conftest$ac_exeext'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17898 ac_cv_lib_dld_dld_link=yes
17900 echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17903 ac_cv_lib_dld_dld_link=no
17905 rm -f conftest.err conftest.$ac_objext \
17906 conftest$ac_exeext conftest.$ac_ext
17907 LIBS=$ac_check_lib_save_LIBS
17909 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17910 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17911 if test $ac_cv_lib_dld_dld_link = yes; then
17912 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17933 if test "x$lt_cv_dlopen" != xno; then
17939 case $lt_cv_dlopen in
17941 save_CPPFLAGS="$CPPFLAGS"
17942 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17944 save_LDFLAGS="$LDFLAGS"
17945 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17948 LIBS="$lt_cv_dlopen_libs $LIBS"
17950 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17951 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17952 if test "${lt_cv_dlopen_self+set}" = set; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17955 if test "$cross_compiling" = yes; then :
17956 lt_cv_dlopen_self=cross
17958 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17959 lt_status=$lt_dlunknown
17960 cat > conftest.$ac_ext <<EOF
17961 #line 17961 "configure"
17962 #include "confdefs.h"
17971 # define LT_DLGLOBAL RTLD_GLOBAL
17974 # define LT_DLGLOBAL DL_GLOBAL
17976 # define LT_DLGLOBAL 0
17980 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17981 find out it does not work in some platform. */
17982 #ifndef LT_DLLAZY_OR_NOW
17984 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17987 # define LT_DLLAZY_OR_NOW DL_LAZY
17990 # define LT_DLLAZY_OR_NOW RTLD_NOW
17993 # define LT_DLLAZY_OR_NOW DL_NOW
17995 # define LT_DLLAZY_OR_NOW 0
18003 extern "C" void exit (int);
18006 void fnord() { int i=42;}
18009 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18010 int status = $lt_dlunknown;
18014 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18015 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18016 /* dlclose (self); */
18022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18023 (eval $ac_link) 2>&5
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18027 (./conftest; exit; ) 2>/dev/null
18029 case x$lt_status in
18030 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18031 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18032 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18035 # compilation failed
18036 lt_cv_dlopen_self=no
18043 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18044 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18046 if test "x$lt_cv_dlopen_self" = xyes; then
18047 LDFLAGS="$LDFLAGS $link_static_flag"
18048 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18049 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18050 if test "${lt_cv_dlopen_self_static+set}" = set; then
18051 echo $ECHO_N "(cached) $ECHO_C" >&6
18053 if test "$cross_compiling" = yes; then :
18054 lt_cv_dlopen_self_static=cross
18056 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18057 lt_status=$lt_dlunknown
18058 cat > conftest.$ac_ext <<EOF
18059 #line 18059 "configure"
18060 #include "confdefs.h"
18069 # define LT_DLGLOBAL RTLD_GLOBAL
18072 # define LT_DLGLOBAL DL_GLOBAL
18074 # define LT_DLGLOBAL 0
18078 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18079 find out it does not work in some platform. */
18080 #ifndef LT_DLLAZY_OR_NOW
18082 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18085 # define LT_DLLAZY_OR_NOW DL_LAZY
18088 # define LT_DLLAZY_OR_NOW RTLD_NOW
18091 # define LT_DLLAZY_OR_NOW DL_NOW
18093 # define LT_DLLAZY_OR_NOW 0
18101 extern "C" void exit (int);
18104 void fnord() { int i=42;}
18107 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18108 int status = $lt_dlunknown;
18112 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18113 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18114 /* dlclose (self); */
18120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18121 (eval $ac_link) 2>&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18125 (./conftest; exit; ) 2>/dev/null
18127 case x$lt_status in
18128 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18129 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18130 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18133 # compilation failed
18134 lt_cv_dlopen_self_static=no
18141 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18142 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18145 CPPFLAGS="$save_CPPFLAGS"
18146 LDFLAGS="$save_LDFLAGS"
18151 case $lt_cv_dlopen_self in
18152 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18153 *) enable_dlopen_self=unknown ;;
18156 case $lt_cv_dlopen_self_static in
18157 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18158 *) enable_dlopen_self_static=unknown ;;
18163 # The else clause should only fire when bootstrapping the
18164 # libtool distribution, otherwise you forgot to ship ltmain.sh
18165 # with your package, and you will get complaints that there are
18166 # no rules to generate ltmain.sh.
18167 if test -f "$ltmain"; then
18168 # See if we are running on zsh, and set the options which allow our commands through
18169 # without removal of \ escapes.
18170 if test -n "${ZSH_VERSION+set}" ; then
18171 setopt NO_GLOB_SUBST
18173 # Now quote all the things that may contain metacharacters while being
18174 # careful not to overquote the AC_SUBSTed values. We take copies of the
18175 # variables and quote the copies for generation of the libtool script.
18176 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18178 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18179 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18180 deplibs_check_method reload_flag reload_cmds need_locks \
18181 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18182 lt_cv_sys_global_symbol_to_c_name_address \
18183 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18184 old_postinstall_cmds old_postuninstall_cmds \
18188 lt_prog_compiler_wl_CXX \
18189 lt_prog_compiler_pic_CXX \
18190 lt_prog_compiler_static_CXX \
18191 lt_prog_compiler_no_builtin_flag_CXX \
18192 export_dynamic_flag_spec_CXX \
18193 thread_safe_flag_spec_CXX \
18194 whole_archive_flag_spec_CXX \
18195 enable_shared_with_static_runtimes_CXX \
18196 old_archive_cmds_CXX \
18197 old_archive_from_new_cmds_CXX \
18198 predep_objects_CXX \
18199 postdep_objects_CXX \
18202 compiler_lib_search_path_CXX \
18204 archive_expsym_cmds_CXX \
18205 postinstall_cmds_CXX \
18206 postuninstall_cmds_CXX \
18207 old_archive_from_expsyms_cmds_CXX \
18208 allow_undefined_flag_CXX \
18209 no_undefined_flag_CXX \
18210 export_symbols_cmds_CXX \
18211 hardcode_libdir_flag_spec_CXX \
18212 hardcode_libdir_flag_spec_ld_CXX \
18213 hardcode_libdir_separator_CXX \
18214 hardcode_automatic_CXX \
18216 module_expsym_cmds_CXX \
18217 lt_cv_prog_compiler_c_o_CXX \
18218 exclude_expsyms_CXX \
18219 include_expsyms_CXX; do
18222 old_archive_cmds_CXX | \
18223 old_archive_from_new_cmds_CXX | \
18224 archive_cmds_CXX | \
18225 archive_expsym_cmds_CXX | \
18226 module_cmds_CXX | \
18227 module_expsym_cmds_CXX | \
18228 old_archive_from_expsyms_cmds_CXX | \
18229 export_symbols_cmds_CXX | \
18230 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18231 postinstall_cmds | postuninstall_cmds | \
18232 old_postinstall_cmds | old_postuninstall_cmds | \
18233 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18234 # Double-quote double-evaled strings.
18235 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18238 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18244 *'\$0 --fallback-echo"')
18245 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18251 cat <<__EOF__ >> "$cfgfile"
18252 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18254 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18256 # Shell to use when invoking shell scripts.
18259 # Whether or not to build shared libraries.
18260 build_libtool_libs=$enable_shared
18262 # Whether or not to build static libraries.
18263 build_old_libs=$enable_static
18265 # Whether or not to add -lc for building shared libraries.
18266 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18268 # Whether or not to disallow shared libs when runtime libs are static
18269 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18271 # Whether or not to optimize for fast installation.
18272 fast_install=$enable_fast_install
18275 host_alias=$host_alias
18278 # An echo program that does not interpret backslashes.
18283 AR_FLAGS=$lt_AR_FLAGS
18288 # A language-specific compiler.
18289 CC=$lt_compiler_CXX
18291 # Is the compiler the GNU C compiler?
18297 # The linker used to build libraries.
18300 # Whether we need hard or soft links.
18303 # A BSD-compatible nm program.
18306 # A symbol stripping program
18309 # Used to examine libraries when file_magic_cmd begins "file"
18310 MAGIC_CMD=$MAGIC_CMD
18312 # Used on cygwin: DLL creation program.
18315 # Used on cygwin: object dumper.
18318 # Used on cygwin: assembler.
18321 # The name of the directory that contains temporary libtool files.
18324 # How to create reloadable object files.
18325 reload_flag=$lt_reload_flag
18326 reload_cmds=$lt_reload_cmds
18328 # How to pass a linker flag through the compiler.
18329 wl=$lt_lt_prog_compiler_wl_CXX
18331 # Object file suffix (normally "o").
18332 objext="$ac_objext"
18334 # Old archive suffix (normally "a").
18337 # Shared library suffix (normally ".so").
18338 shrext_cmds='$shrext_cmds'
18340 # Executable file suffix (normally "").
18343 # Additional compiler flags for building library objects.
18344 pic_flag=$lt_lt_prog_compiler_pic_CXX
18347 # What is the maximum length of a command?
18348 max_cmd_len=$lt_cv_sys_max_cmd_len
18350 # Does compiler simultaneously support -c and -o options?
18351 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18353 # Must we lock files when doing compilation ?
18354 need_locks=$lt_need_locks
18356 # Do we need the lib prefix for modules?
18357 need_lib_prefix=$need_lib_prefix
18359 # Do we need a version for libraries?
18360 need_version=$need_version
18362 # Whether dlopen is supported.
18363 dlopen_support=$enable_dlopen
18365 # Whether dlopen of programs is supported.
18366 dlopen_self=$enable_dlopen_self
18368 # Whether dlopen of statically linked programs is supported.
18369 dlopen_self_static=$enable_dlopen_self_static
18371 # Compiler flag to prevent dynamic linking.
18372 link_static_flag=$lt_lt_prog_compiler_static_CXX
18374 # Compiler flag to turn off builtin functions.
18375 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18377 # Compiler flag to allow reflexive dlopens.
18378 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18380 # Compiler flag to generate shared objects directly from archives.
18381 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18383 # Compiler flag to generate thread-safe objects.
18384 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18386 # Library versioning type.
18387 version_type=$version_type
18389 # Format of library name prefix.
18390 libname_spec=$lt_libname_spec
18392 # List of archive names. First name is the real one, the rest are links.
18393 # The last name is the one that the linker finds with -lNAME.
18394 library_names_spec=$lt_library_names_spec
18396 # The coded name of the library, if different from the real name.
18397 soname_spec=$lt_soname_spec
18399 # Commands used to build and install an old-style archive.
18401 old_archive_cmds=$lt_old_archive_cmds_CXX
18402 old_postinstall_cmds=$lt_old_postinstall_cmds
18403 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18405 # Create an old-style archive from a shared archive.
18406 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18408 # Create a temporary old-style archive to link instead of a shared archive.
18409 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18411 # Commands used to build and install a shared archive.
18412 archive_cmds=$lt_archive_cmds_CXX
18413 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18414 postinstall_cmds=$lt_postinstall_cmds
18415 postuninstall_cmds=$lt_postuninstall_cmds
18417 # Commands used to build a loadable module (assumed same as above if empty)
18418 module_cmds=$lt_module_cmds_CXX
18419 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18421 # Commands to strip libraries.
18422 old_striplib=$lt_old_striplib
18423 striplib=$lt_striplib
18425 # Dependencies to place before the objects being linked to create a
18427 predep_objects=$lt_predep_objects_CXX
18429 # Dependencies to place after the objects being linked to create a
18431 postdep_objects=$lt_postdep_objects_CXX
18433 # Dependencies to place before the objects being linked to create a
18435 predeps=$lt_predeps_CXX
18437 # Dependencies to place after the objects being linked to create a
18439 postdeps=$lt_postdeps_CXX
18441 # The library search path used internally by the compiler when linking
18442 # a shared library.
18443 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18445 # Method to check whether dependent libraries are shared objects.
18446 deplibs_check_method=$lt_deplibs_check_method
18448 # Command to use when deplibs_check_method == file_magic.
18449 file_magic_cmd=$lt_file_magic_cmd
18451 # Flag that allows shared libraries with undefined symbols to be built.
18452 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18454 # Flag that forces no undefined symbols.
18455 no_undefined_flag=$lt_no_undefined_flag_CXX
18457 # Commands used to finish a libtool library installation in a directory.
18458 finish_cmds=$lt_finish_cmds
18460 # Same as above, but a single script fragment to be evaled but not shown.
18461 finish_eval=$lt_finish_eval
18463 # Take the output of nm and produce a listing of raw symbols and C names.
18464 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18466 # Transform the output of nm in a proper C declaration
18467 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18469 # Transform the output of nm in a C name address pair
18470 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18472 # This is the shared library runtime path variable.
18473 runpath_var=$runpath_var
18475 # This is the shared library path variable.
18476 shlibpath_var=$shlibpath_var
18478 # Is shlibpath searched before the hard-coded library search path?
18479 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18481 # How to hardcode a shared library path into an executable.
18482 hardcode_action=$hardcode_action_CXX
18484 # Whether we should hardcode library paths into libraries.
18485 hardcode_into_libs=$hardcode_into_libs
18487 # Flag to hardcode \$libdir into a binary during linking.
18488 # This must work even if \$libdir does not exist.
18489 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18491 # If ld is used when linking, flag to hardcode \$libdir into
18492 # a binary during linking. This must work even if \$libdir does
18494 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18496 # Whether we need a single -rpath flag with a separated argument.
18497 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18499 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18500 # resulting binary.
18501 hardcode_direct=$hardcode_direct_CXX
18503 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18504 # resulting binary.
18505 hardcode_minus_L=$hardcode_minus_L_CXX
18507 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18508 # the resulting binary.
18509 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18511 # Set to yes if building a shared library automatically hardcodes DIR into the library
18512 # and all subsequent libraries and executables linked against it.
18513 hardcode_automatic=$hardcode_automatic_CXX
18515 # Variables whose values should be saved in libtool wrapper scripts and
18516 # restored at relink time.
18517 variables_saved_for_relink="$variables_saved_for_relink"
18519 # Whether libtool must link a program against all its dependency libraries.
18520 link_all_deplibs=$link_all_deplibs_CXX
18522 # Compile-time system search path for libraries
18523 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18525 # Run-time system search path for libraries
18526 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18528 # Fix the shell variable \$srcfile for the compiler.
18529 fix_srcfile_path="$fix_srcfile_path_CXX"
18531 # Set to yes if exported symbols are required.
18532 always_export_symbols=$always_export_symbols_CXX
18534 # The commands to list exported symbols.
18535 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18537 # The commands to extract the exported symbol list from a shared archive.
18538 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18540 # Symbols that should not be listed in the preloaded symbols.
18541 exclude_expsyms=$lt_exclude_expsyms_CXX
18543 # Symbols that must always be exported.
18544 include_expsyms=$lt_include_expsyms_CXX
18546 # ### END LIBTOOL TAG CONFIG: $tagname
18552 # If there is no Makefile yet, we rely on a make rule to execute
18553 # `config.status --recheck' to rerun these tests and create the
18554 # libtool script then.
18555 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18556 if test -f "$ltmain_in"; then
18557 test -f Makefile && make "$ltmain"
18563 ac_cpp='$CPP $CPPFLAGS'
18564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18572 with_gnu_ldcxx=$with_gnu_ld
18573 with_gnu_ld=$lt_save_with_gnu_ld
18574 lt_cv_path_LDCXX=$lt_cv_path_LD
18575 lt_cv_path_LD=$lt_save_path_LD
18576 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18577 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18585 if test -n "$F77" && test "X$F77" != "Xno"; then
18588 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18589 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18590 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18593 archive_cmds_need_lc_F77=no
18594 allow_undefined_flag_F77=
18595 always_export_symbols_F77=no
18596 archive_expsym_cmds_F77=
18597 export_dynamic_flag_spec_F77=
18598 hardcode_direct_F77=no
18599 hardcode_libdir_flag_spec_F77=
18600 hardcode_libdir_flag_spec_ld_F77=
18601 hardcode_libdir_separator_F77=
18602 hardcode_minus_L_F77=no
18603 hardcode_automatic_F77=no
18605 module_expsym_cmds_F77=
18606 link_all_deplibs_F77=unknown
18607 old_archive_cmds_F77=$old_archive_cmds
18608 no_undefined_flag_F77=
18609 whole_archive_flag_spec_F77=
18610 enable_shared_with_static_runtimes_F77=no
18612 # Source file extension for f77 test sources.
18615 # Object file extension for compiled f77 test sources.
18619 # Code to be used in simple compile tests
18620 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18622 # Code to be used in simple link tests
18623 lt_simple_link_test_code=" program t\n end\n"
18625 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18627 # If no C compiler was specified, use CC.
18630 # Allow CC to be a program name with arguments.
18634 # Allow CC to be a program name with arguments.
18639 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18641 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18642 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18643 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18644 echo "${ECHO_T}$can_build_shared" >&6
18646 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18647 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18648 test "$can_build_shared" = "no" && enable_shared=no
18650 # On AIX, shared libraries and static libraries use the same namespace, and
18651 # are all built from PIC.
18654 test "$enable_shared" = yes && enable_static=no
18655 if test -n "$RANLIB"; then
18656 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18657 postinstall_cmds='$RANLIB $lib'
18661 test "$enable_shared" = yes && enable_static=no
18664 echo "$as_me:$LINENO: result: $enable_shared" >&5
18665 echo "${ECHO_T}$enable_shared" >&6
18667 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18668 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18669 # Make sure either enable_shared or enable_static is yes.
18670 test "$enable_shared" = yes || enable_static=yes
18671 echo "$as_me:$LINENO: result: $enable_static" >&5
18672 echo "${ECHO_T}$enable_static" >&6
18674 test "$ld_shlibs_F77" = no && can_build_shared=no
18679 lt_prog_compiler_wl_F77=
18680 lt_prog_compiler_pic_F77=
18681 lt_prog_compiler_static_F77=
18683 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18684 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18686 if test "$GCC" = yes; then
18687 lt_prog_compiler_wl_F77='-Wl,'
18688 lt_prog_compiler_static_F77='-static'
18692 # All AIX code is PIC.
18693 if test "$host_cpu" = ia64; then
18694 # AIX 5 now supports IA64 processor
18695 lt_prog_compiler_static_F77='-Bstatic'
18700 # FIXME: we need at least 68020 code to build shared libraries, but
18701 # adding the `-m68020' flag to GCC prevents building anything better,
18703 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18706 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18707 # PIC is the default for these OSes.
18710 mingw* | pw32* | os2*)
18711 # This hack is so that the source file can tell whether it is being
18712 # built for inclusion in a dll (and should export symbols for example).
18713 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18716 darwin* | rhapsody*)
18717 # PIC is the default on this platform
18718 # Common symbols not allowed in MH_DYLIB files
18719 lt_prog_compiler_pic_F77='-fno-common'
18723 # Just because we use GCC doesn't mean we suddenly get shared libraries
18724 # on systems that don't support them.
18725 lt_prog_compiler_can_build_shared_F77=no
18730 if test -d /usr/nec; then
18731 lt_prog_compiler_pic_F77=-Kconform_pic
18736 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18737 # not for PA HP-UX.
18738 case "$host_cpu" in
18743 lt_prog_compiler_pic_F77='-fPIC'
18749 lt_prog_compiler_pic_F77='-fPIC'
18753 # PORTME Check for flag to pass linker flags through the system compiler.
18756 lt_prog_compiler_wl_F77='-Wl,'
18757 if test "$host_cpu" = ia64; then
18758 # AIX 5 now supports IA64 processor
18759 lt_prog_compiler_static_F77='-Bstatic'
18761 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18765 # PIC is the default on this platform
18766 # Common symbols not allowed in MH_DYLIB files
18767 case "$cc_basename" in
18769 lt_prog_compiler_pic_F77='-qnocommon'
18770 lt_prog_compiler_wl_F77='-Wl,'
18775 mingw* | pw32* | os2*)
18776 # This hack is so that the source file can tell whether it is being
18777 # built for inclusion in a dll (and should export symbols for example).
18778 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18781 hpux9* | hpux10* | hpux11*)
18782 lt_prog_compiler_wl_F77='-Wl,'
18783 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18784 # not for PA HP-UX.
18785 case "$host_cpu" in
18790 lt_prog_compiler_pic_F77='+Z'
18793 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18794 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18797 irix5* | irix6* | nonstopux*)
18798 lt_prog_compiler_wl_F77='-Wl,'
18799 # PIC (with -KPIC) is the default.
18800 lt_prog_compiler_static_F77='-non_shared'
18804 lt_prog_compiler_pic_F77='-KPIC'
18805 lt_prog_compiler_static_F77='-Bstatic'
18811 lt_prog_compiler_wl_F77='-Wl,'
18812 lt_prog_compiler_pic_F77='-KPIC'
18813 lt_prog_compiler_static_F77='-static'
18816 lt_prog_compiler_wl_F77='-Wl,'
18817 # All Alpha code is PIC.
18818 lt_prog_compiler_static_F77='-non_shared'
18823 osf3* | osf4* | osf5*)
18824 lt_prog_compiler_wl_F77='-Wl,'
18825 # All OSF/1 code is PIC.
18826 lt_prog_compiler_static_F77='-non_shared'
18830 lt_prog_compiler_pic_F77='-Kpic'
18831 lt_prog_compiler_static_F77='-dn'
18835 lt_prog_compiler_wl_F77='-Wl,'
18836 lt_prog_compiler_pic_F77='-KPIC'
18837 lt_prog_compiler_static_F77='-Bstatic'
18841 lt_prog_compiler_wl_F77='-Qoption ld '
18842 lt_prog_compiler_pic_F77='-PIC'
18843 lt_prog_compiler_static_F77='-Bstatic'
18846 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18847 lt_prog_compiler_wl_F77='-Wl,'
18848 lt_prog_compiler_pic_F77='-KPIC'
18849 lt_prog_compiler_static_F77='-Bstatic'
18853 if test -d /usr/nec ;then
18854 lt_prog_compiler_pic_F77='-Kconform_pic'
18855 lt_prog_compiler_static_F77='-Bstatic'
18860 lt_prog_compiler_pic_F77='-pic'
18861 lt_prog_compiler_static_F77='-Bstatic'
18865 lt_prog_compiler_can_build_shared_F77=no
18870 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18871 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18874 # Check to make sure the PIC flag actually works.
18876 if test -n "$lt_prog_compiler_pic_F77"; then
18878 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18879 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18880 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18881 echo $ECHO_N "(cached) $ECHO_C" >&6
18883 lt_prog_compiler_pic_works_F77=no
18884 ac_outfile=conftest.$ac_objext
18885 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18886 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18887 # Insert the option either (1) after the last *FLAGS variable, or
18888 # (2) before a word containing "conftest.", or (3) at the end.
18889 # Note that $ac_compile itself does not contain backslashes and begins
18890 # with a dollar sign (not a hyphen), so the echo should work correctly.
18891 # The option is referenced via a variable to avoid confusing sed.
18892 lt_compile=`echo "$ac_compile" | $SED \
18893 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18895 -e 's:$: $lt_compiler_flag:'`
18896 (eval echo "\"\$as_me:18896: $lt_compile\"" >&5)
18897 (eval "$lt_compile" 2>conftest.err)
18899 cat conftest.err >&5
18900 echo "$as_me:18900: \$? = $ac_status" >&5
18901 if (exit $ac_status) && test -s "$ac_outfile"; then
18902 # The compiler can only warn and ignore the option if not recognized
18903 # So say no if there are warnings
18904 if test ! -s conftest.err; then
18905 lt_prog_compiler_pic_works_F77=yes
18911 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18912 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18914 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18915 case $lt_prog_compiler_pic_F77 in
18917 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18920 lt_prog_compiler_pic_F77=
18921 lt_prog_compiler_can_build_shared_F77=no
18926 # For platforms which do not support PIC, -DPIC is meaningless:
18928 lt_prog_compiler_pic_F77=
18931 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18935 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18936 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18937 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18938 echo $ECHO_N "(cached) $ECHO_C" >&6
18940 lt_cv_prog_compiler_c_o_F77=no
18941 $rm -r conftest 2>/dev/null
18945 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18947 lt_compiler_flag="-o out/conftest2.$ac_objext"
18948 # Insert the option either (1) after the last *FLAGS variable, or
18949 # (2) before a word containing "conftest.", or (3) at the end.
18950 # Note that $ac_compile itself does not contain backslashes and begins
18951 # with a dollar sign (not a hyphen), so the echo should work correctly.
18952 lt_compile=`echo "$ac_compile" | $SED \
18953 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18955 -e 's:$: $lt_compiler_flag:'`
18956 (eval echo "\"\$as_me:18956: $lt_compile\"" >&5)
18957 (eval "$lt_compile" 2>out/conftest.err)
18959 cat out/conftest.err >&5
18960 echo "$as_me:18960: \$? = $ac_status" >&5
18961 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18963 # The compiler can only warn and ignore the option if not recognized
18964 # So say no if there are warnings
18965 if test ! -s out/conftest.err; then
18966 lt_cv_prog_compiler_c_o_F77=yes
18971 # SGI C++ compiler will create directory out/ii_files/ for
18972 # template instantiation
18973 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18974 $rm out/* && rmdir out
18980 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18981 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18984 hard_links="nottested"
18985 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18986 # do not overwrite the value of need_locks provided by the user
18987 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18988 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18991 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18993 ln conftest.a conftest.b 2>&5 || hard_links=no
18994 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18995 echo "$as_me:$LINENO: result: $hard_links" >&5
18996 echo "${ECHO_T}$hard_links" >&6
18997 if test "$hard_links" = no; then
18998 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18999 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19006 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19007 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19010 allow_undefined_flag_F77=
19011 enable_shared_with_static_runtimes_F77=no
19013 archive_expsym_cmds_F77=
19014 old_archive_From_new_cmds_F77=
19015 old_archive_from_expsyms_cmds_F77=
19016 export_dynamic_flag_spec_F77=
19017 whole_archive_flag_spec_F77=
19018 thread_safe_flag_spec_F77=
19019 hardcode_libdir_flag_spec_F77=
19020 hardcode_libdir_flag_spec_ld_F77=
19021 hardcode_libdir_separator_F77=
19022 hardcode_direct_F77=no
19023 hardcode_minus_L_F77=no
19024 hardcode_shlibpath_var_F77=unsupported
19025 link_all_deplibs_F77=unknown
19026 hardcode_automatic_F77=no
19028 module_expsym_cmds_F77=
19029 always_export_symbols_F77=no
19030 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19031 # include_expsyms should be a list of space-separated symbols to be *always*
19032 # included in the symbol list
19033 include_expsyms_F77=
19034 # exclude_expsyms can be an extended regexp of symbols to exclude
19035 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19036 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19037 # as well as any symbol that contains `d'.
19038 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19039 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19040 # platforms (ab)use it in PIC code, but their linkers get confused if
19041 # the symbol is explicitly referenced. Since portable code cannot
19042 # rely on this symbol name, it's probably fine to never include it in
19043 # preloaded symbol tables.
19044 extract_expsyms_cmds=
19047 cygwin* | mingw* | pw32*)
19048 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19049 # When not using gcc, we currently assume that we are using
19050 # Microsoft Visual C++.
19051 if test "$GCC" != yes; then
19061 if test "$with_gnu_ld" = yes; then
19062 # If archive_cmds runs LD, not CC, wlarc should be empty
19065 # See if GNU ld supports shared libraries.
19067 aix3* | aix4* | aix5*)
19068 # On AIX/PPC, the GNU linker is very broken
19069 if test "$host_cpu" != ia64; then
19073 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19074 *** to be unable to reliably create shared libraries on AIX.
19075 *** Therefore, libtool is disabling shared libraries support. If you
19076 *** really care for shared libraries, you may want to modify your PATH
19077 *** so that a non-GNU linker is found, and then restart.
19084 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)'
19085 hardcode_libdir_flag_spec_F77='-L$libdir'
19086 hardcode_minus_L_F77=yes
19088 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19089 # that the semantics of dynamic libraries on AmigaOS, at least up
19090 # to version 4, is to share data among multiple programs linked
19091 # with the same dynamic library. Since this doesn't match the
19092 # behavior of shared libraries on other platforms, we can't use
19098 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19099 allow_undefined_flag_F77=unsupported
19100 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19101 # support --undefined. This deserves some investigation. FIXME
19102 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19108 cygwin* | mingw* | pw32*)
19109 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19110 # as there is no search path for DLLs.
19111 hardcode_libdir_flag_spec_F77='-L$libdir'
19112 allow_undefined_flag_F77=unsupported
19113 always_export_symbols_F77=no
19114 enable_shared_with_static_runtimes_F77=yes
19115 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19117 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19118 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19119 # If the export-symbols file already is a .def file (1st line
19120 # is EXPORTS), use it as is; otherwise, prepend...
19121 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19122 cp $export_symbols $output_objdir/$soname.def;
19124 echo EXPORTS > $output_objdir/$soname.def;
19125 cat $export_symbols >> $output_objdir/$soname.def;
19127 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19134 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19135 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19138 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19139 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19144 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19148 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19149 *** create shared libraries on Solaris systems. Therefore, libtool
19150 *** is disabling shared libraries support. We urge you to upgrade GNU
19151 *** binutils to release 2.9.1 or newer. Another option is to modify
19152 *** your PATH or compiler configuration so that the native linker is
19153 *** used, and then restart.
19156 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19157 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19158 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19165 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19167 hardcode_direct_F77=yes
19168 hardcode_shlibpath_var_F77=no
19172 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19173 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19174 archive_cmds_F77="$tmp_archive_cmds"
19175 supports_anon_versioning=no
19176 case `$LD -v 2>/dev/null` in
19177 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19178 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19179 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19180 *\ 2.11.*) ;; # other 2.11 versions
19181 *) supports_anon_versioning=yes ;;
19183 if test $supports_anon_versioning = yes; then
19184 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19185 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19186 $echo "local: *; };" >> $output_objdir/$libname.ver~
19187 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19189 archive_expsym_cmds_F77="$tmp_archive_cmds"
19197 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19198 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19199 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19206 if test "$ld_shlibs_F77" = yes; then
19207 runpath_var=LD_RUN_PATH
19208 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19209 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19210 # ancient GNU ld didn't support --whole-archive et. al.
19211 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19212 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19214 whole_archive_flag_spec_F77=
19218 # PORTME fill in a description of your system's linker (not GNU ld)
19221 allow_undefined_flag_F77=unsupported
19222 always_export_symbols_F77=yes
19223 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'
19224 # Note: this linker hardcodes the directories in LIBPATH if there
19225 # are no directories specified by -L.
19226 hardcode_minus_L_F77=yes
19227 if test "$GCC" = yes && test -z "$link_static_flag"; then
19228 # Neither direct hardcoding nor static linking is supported with a
19230 hardcode_direct_F77=unsupported
19235 if test "$host_cpu" = ia64; then
19236 # On IA64, the linker does run time linking by default, so we don't
19237 # have to do anything special.
19238 aix_use_runtimelinking=no
19239 exp_sym_flag='-Bexport'
19242 # If we're using GNU nm, then we don't want the "-C" option.
19243 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19244 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19245 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'
19247 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'
19249 aix_use_runtimelinking=no
19251 # Test if we are trying to use run time linking or normal
19252 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19253 # need to do runtime linking.
19254 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19255 for ld_flag in $LDFLAGS; do
19256 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19257 aix_use_runtimelinking=yes
19263 exp_sym_flag='-bexport'
19264 no_entry_flag='-bnoentry'
19267 # When large executables or shared objects are built, AIX ld can
19268 # have problems creating the table of contents. If linking a library
19269 # or program results in "error TOC overflow" add -mminimal-toc to
19270 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19271 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19273 archive_cmds_F77=''
19274 hardcode_direct_F77=yes
19275 hardcode_libdir_separator_F77=':'
19276 link_all_deplibs_F77=yes
19278 if test "$GCC" = yes; then
19279 case $host_os in aix4.012|aix4.012.*)
19280 # We only want to do this on AIX 4.2 and lower, the check
19281 # below for broken collect2 doesn't work under 4.3+
19282 collect2name=`${CC} -print-prog-name=collect2`
19283 if test -f "$collect2name" && \
19284 strings "$collect2name" | grep resolve_lib_name >/dev/null
19286 # We have reworked collect2
19287 hardcode_direct_F77=yes
19289 # We have old collect2
19290 hardcode_direct_F77=unsupported
19291 # It fails to find uninstalled libraries when the uninstalled
19292 # path is not listed in the libpath. Setting hardcode_minus_L
19293 # to unsupported forces relinking
19294 hardcode_minus_L_F77=yes
19295 hardcode_libdir_flag_spec_F77='-L$libdir'
19296 hardcode_libdir_separator_F77=
19299 shared_flag='-shared'
19302 if test "$host_cpu" = ia64; then
19303 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19304 # chokes on -Wl,-G. The following line is correct:
19307 if test "$aix_use_runtimelinking" = yes; then
19308 shared_flag='${wl}-G'
19310 shared_flag='${wl}-bM:SRE'
19315 # It seems that -bexpall does not export symbols beginning with
19316 # underscore (_), so it is better to generate a list of symbols to export.
19317 always_export_symbols_F77=yes
19318 if test "$aix_use_runtimelinking" = yes; then
19319 # Warning - without using the other runtime loading flags (-brtl),
19320 # -berok will link without error, but may produce a broken library.
19321 allow_undefined_flag_F77='-berok'
19322 # Determine the default libpath from the value encoded in an empty executable.
19323 cat >conftest.$ac_ext <<_ACEOF
19328 rm -f conftest.$ac_objext conftest$ac_exeext
19329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19330 (eval $ac_link) 2>conftest.er1
19332 grep -v '^ *+' conftest.er1 >conftest.err
19334 cat conftest.err >&5
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); } &&
19337 { ac_try='test -z "$ac_f77_werror_flag"
19338 || test ! -s conftest.err'
19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; } &&
19344 { ac_try='test -s conftest$ac_exeext'
19345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19346 (eval $ac_try) 2>&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); }; }; then
19351 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19353 # Check for a 64-bit object if we didn't find anything.
19354 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; }
19357 echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19361 rm -f conftest.err conftest.$ac_objext \
19362 conftest$ac_exeext conftest.$ac_ext
19363 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19365 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19366 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"
19368 if test "$host_cpu" = ia64; then
19369 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19370 allow_undefined_flag_F77="-z nodefs"
19371 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"
19373 # Determine the default libpath from the value encoded in an empty executable.
19374 cat >conftest.$ac_ext <<_ACEOF
19379 rm -f conftest.$ac_objext conftest$ac_exeext
19380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19381 (eval $ac_link) 2>conftest.er1
19383 grep -v '^ *+' conftest.er1 >conftest.err
19385 cat conftest.err >&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
19388 { ac_try='test -z "$ac_f77_werror_flag"
19389 || test ! -s conftest.err'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try='test -s conftest$ac_exeext'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
19402 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19404 # Check for a 64-bit object if we didn't find anything.
19405 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; }
19408 echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19412 rm -f conftest.err conftest.$ac_objext \
19413 conftest$ac_exeext conftest.$ac_ext
19414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19416 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19417 # Warning - without using the other run time loading flags,
19418 # -berok will link without error, but may produce a broken library.
19419 no_undefined_flag_F77=' ${wl}-bernotok'
19420 allow_undefined_flag_F77=' ${wl}-berok'
19421 # -bexpall does not export symbols beginning with underscore (_)
19422 always_export_symbols_F77=yes
19423 # Exported symbols can be pulled into shared objects from archives
19424 whole_archive_flag_spec_F77=' '
19425 archive_cmds_need_lc_F77=yes
19426 # This is similar to how AIX traditionally builds it's shared libraries.
19427 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'
19433 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)'
19434 hardcode_libdir_flag_spec_F77='-L$libdir'
19435 hardcode_minus_L_F77=yes
19436 # see comment about different semantics on the GNU ld section
19441 export_dynamic_flag_spec_F77=-rdynamic
19444 cygwin* | mingw* | pw32*)
19445 # When not using gcc, we currently assume that we are using
19446 # Microsoft Visual C++.
19447 # hardcode_libdir_flag_spec is actually meaningless, as there is
19448 # no search path for DLLs.
19449 hardcode_libdir_flag_spec_F77=' '
19450 allow_undefined_flag_F77=unsupported
19451 # Tell ltmain to make .lib files, not .a files.
19453 # Tell ltmain to make .dll files, not .so files.
19455 # FIXME: Setting linknames here is a bad hack.
19456 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19457 # The linker will automatically build a .lib file if we build a DLL.
19458 old_archive_From_new_cmds_F77='true'
19459 # FIXME: Should let the user specify the lib program.
19460 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19461 fix_srcfile_path='`cygpath -w "$srcfile"`'
19462 enable_shared_with_static_runtimes_F77=yes
19465 darwin* | rhapsody*)
19467 rhapsody* | darwin1.[012])
19468 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19471 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19472 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19474 case ${MACOSX_DEPLOYMENT_TARGET} in
19476 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19479 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19485 archive_cmds_need_lc_F77=no
19486 hardcode_direct_F77=no
19487 hardcode_automatic_F77=yes
19488 hardcode_shlibpath_var_F77=unsupported
19489 whole_archive_flag_spec_F77=''
19490 link_all_deplibs_F77=yes
19491 if test "$GCC" = yes ; then
19492 output_verbose_link_cmd='echo'
19493 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19494 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19495 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19496 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}'
19497 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}'
19499 case "$cc_basename" in
19501 output_verbose_link_cmd='echo'
19502 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19503 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19504 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19505 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}'
19506 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}'
19516 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19517 hardcode_libdir_flag_spec_F77='-L$libdir'
19518 hardcode_shlibpath_var_F77=no
19525 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19526 # support. Future versions do this automatically, but an explicit c++rt0.o
19527 # does not break anything, and helps significantly (at the cost of a little
19530 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19531 hardcode_libdir_flag_spec_F77='-R$libdir'
19532 hardcode_direct_F77=yes
19533 hardcode_shlibpath_var_F77=no
19536 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19538 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19539 hardcode_direct_F77=yes
19540 hardcode_minus_L_F77=yes
19541 hardcode_shlibpath_var_F77=no
19544 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19545 freebsd* | kfreebsd*-gnu)
19546 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19547 hardcode_libdir_flag_spec_F77='-R$libdir'
19548 hardcode_direct_F77=yes
19549 hardcode_shlibpath_var_F77=no
19553 if test "$GCC" = yes; then
19554 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'
19556 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'
19558 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19559 hardcode_libdir_separator_F77=:
19560 hardcode_direct_F77=yes
19562 # hardcode_minus_L: Not really in the search PATH,
19563 # but as the default location of the library.
19564 hardcode_minus_L_F77=yes
19565 export_dynamic_flag_spec_F77='${wl}-E'
19569 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19570 case "$host_cpu" in
19572 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19575 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19579 case "$host_cpu" in
19581 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19584 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19588 if test "$with_gnu_ld" = no; then
19589 case "$host_cpu" in
19591 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19592 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19593 hardcode_libdir_separator_F77=:
19594 hardcode_direct_F77=no
19595 hardcode_shlibpath_var_F77=no
19598 hardcode_libdir_flag_spec_F77='-L$libdir'
19599 hardcode_direct_F77=no
19600 hardcode_shlibpath_var_F77=no
19602 # hardcode_minus_L: Not really in the search PATH,
19603 # but as the default location of the library.
19604 hardcode_minus_L_F77=yes
19607 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19608 hardcode_libdir_separator_F77=:
19609 hardcode_direct_F77=yes
19610 export_dynamic_flag_spec_F77='${wl}-E'
19612 # hardcode_minus_L: Not really in the search PATH,
19613 # but as the default location of the library.
19614 hardcode_minus_L_F77=yes
19620 irix5* | irix6* | nonstopux*)
19621 if test "$GCC" = yes; then
19622 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'
19624 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'
19625 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19627 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19628 hardcode_libdir_separator_F77=:
19629 link_all_deplibs_F77=yes
19633 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19634 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19636 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19638 hardcode_libdir_flag_spec_F77='-R$libdir'
19639 hardcode_direct_F77=yes
19640 hardcode_shlibpath_var_F77=no
19644 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19645 hardcode_direct_F77=yes
19646 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19647 hardcode_libdir_separator_F77=:
19648 hardcode_shlibpath_var_F77=no
19652 hardcode_direct_F77=yes
19653 hardcode_shlibpath_var_F77=no
19654 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19655 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19656 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19657 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19658 export_dynamic_flag_spec_F77='${wl}-E'
19661 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19662 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19663 hardcode_libdir_flag_spec_F77='-R$libdir'
19666 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19667 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19674 hardcode_libdir_flag_spec_F77='-L$libdir'
19675 hardcode_minus_L_F77=yes
19676 allow_undefined_flag_F77=unsupported
19677 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'
19678 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19682 if test "$GCC" = yes; then
19683 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19684 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'
19686 allow_undefined_flag_F77=' -expect_unresolved \*'
19687 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'
19689 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19690 hardcode_libdir_separator_F77=:
19693 osf4* | osf5*) # as osf3* with the addition of -msym flag
19694 if test "$GCC" = yes; then
19695 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19696 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'
19697 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19699 allow_undefined_flag_F77=' -expect_unresolved \*'
19700 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'
19701 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~
19702 $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'
19704 # Both c and cxx compiler support -rpath directly
19705 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19707 hardcode_libdir_separator_F77=:
19711 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19712 hardcode_shlibpath_var_F77=no
19713 export_dynamic_flag_spec_F77='${wl}-Bexport'
19714 runpath_var=LD_RUN_PATH
19715 hardcode_runpath_var=yes
19719 no_undefined_flag_F77=' -z text'
19720 if test "$GCC" = yes; then
19721 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19722 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19723 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19725 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19726 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19727 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19729 hardcode_libdir_flag_spec_F77='-R$libdir'
19730 hardcode_shlibpath_var_F77=no
19732 solaris2.[0-5] | solaris2.[0-5].*) ;;
19733 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19734 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19736 link_all_deplibs_F77=yes
19740 if test "x$host_vendor" = xsequent; then
19741 # Use $CC to link under sequent, because it throws in some extra .o
19742 # files that make .init and .fini sections work.
19743 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19745 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19747 hardcode_libdir_flag_spec_F77='-L$libdir'
19748 hardcode_direct_F77=yes
19749 hardcode_minus_L_F77=yes
19750 hardcode_shlibpath_var_F77=no
19754 case $host_vendor in
19756 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19757 hardcode_direct_F77=yes # is this really true???
19760 ## LD is ld it makes a PLAMLIB
19761 ## CC just makes a GrossModule.
19762 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19763 reload_cmds_F77='$CC -r -o $output$reload_objs'
19764 hardcode_direct_F77=no
19767 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19768 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19771 runpath_var='LD_RUN_PATH'
19772 hardcode_shlibpath_var_F77=no
19776 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19777 hardcode_shlibpath_var_F77=no
19778 export_dynamic_flag_spec_F77='-Bexport'
19782 if test -d /usr/nec; then
19783 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19784 hardcode_shlibpath_var_F77=no
19785 runpath_var=LD_RUN_PATH
19786 hardcode_runpath_var=yes
19792 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19793 hardcode_direct_F77=yes
19794 hardcode_minus_L_F77=no
19795 hardcode_shlibpath_var_F77=no
19796 hardcode_runpath_var=yes
19797 runpath_var=LD_RUN_PATH
19800 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19801 no_undefined_flag_F77='${wl}-z ${wl}text'
19802 if test "$GCC" = yes; then
19803 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19805 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19807 runpath_var='LD_RUN_PATH'
19808 hardcode_shlibpath_var_F77=no
19812 no_undefined_flag_F77=' -z text'
19813 # $CC -shared without GNU ld will not create a library from C++
19814 # object files and a static libstdc++, better avoid it by now
19815 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19816 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19817 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19818 hardcode_libdir_flag_spec_F77=
19819 hardcode_shlibpath_var_F77=no
19820 runpath_var='LD_RUN_PATH'
19824 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19825 hardcode_libdir_flag_spec_F77='-L$libdir'
19826 hardcode_shlibpath_var_F77=no
19835 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19836 echo "${ECHO_T}$ld_shlibs_F77" >&6
19837 test "$ld_shlibs_F77" = no && can_build_shared=no
19839 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19840 if test "$GCC" = yes; then
19841 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19845 # Do we need to explicitly link libc?
19847 case "x$archive_cmds_need_lc_F77" in
19849 # Assume -lc should be added
19850 archive_cmds_need_lc_F77=yes
19852 if test "$enable_shared" = yes && test "$GCC" = yes; then
19853 case $archive_cmds_F77 in
19855 # FIXME: we may have to deal with multi-command sequences.
19858 # Test whether the compiler implicitly links with -lc since on some
19859 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19860 # to ld, don't add -lc before -lgcc.
19861 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19862 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19864 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19867 (eval $ac_compile) 2>&5
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } 2>conftest.err; then
19873 libobjs=conftest.$ac_objext
19875 wl=$lt_prog_compiler_wl_F77
19881 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19882 allow_undefined_flag_F77=
19883 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19884 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }
19889 archive_cmds_need_lc_F77=no
19891 archive_cmds_need_lc_F77=yes
19893 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19895 cat conftest.err 1>&5
19898 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19899 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19906 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19907 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19908 library_names_spec=
19909 libname_spec='lib$name'
19913 postuninstall_cmds=
19917 shlibpath_overrides_runpath=unknown
19919 dynamic_linker="$host_os ld.so"
19920 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19921 if test "$GCC" = yes; then
19922 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19923 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19924 # if the path contains ";" then we assume it to be the separator
19925 # otherwise default to the standard path separator (i.e. ":") - it is
19926 # assumed that no part of a normal pathname contains ";" but that should
19927 # okay in the real world where ";" in dirpaths is itself problematic.
19928 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19930 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19933 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19935 need_lib_prefix=unknown
19936 hardcode_into_libs=no
19938 # when you set need_version to no, make sure it does not cause -set_version
19939 # flags to be left without arguments
19940 need_version=unknown
19945 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19946 shlibpath_var=LIBPATH
19948 # AIX 3 has no versioning support, so we append a major version to the name.
19949 soname_spec='${libname}${release}${shared_ext}$major'
19956 hardcode_into_libs=yes
19957 if test "$host_cpu" = ia64; then
19958 # AIX 5 supports IA64
19959 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19960 shlibpath_var=LD_LIBRARY_PATH
19962 # With GCC up to 2.95.x, collect2 would create an import file
19963 # for dependence libraries. The import file would start with
19964 # the line `#! .'. This would cause the generated library to
19965 # depend on `.', always an invalid library. This was fixed in
19966 # development snapshots of GCC prior to 3.0.
19968 aix4 | aix4.[01] | aix4.[01].*)
19969 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19971 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19974 can_build_shared=no
19978 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19979 # soname into executable. Probably we can add versioning support to
19980 # collect2, so additional links can be useful in future.
19981 if test "$aix_use_runtimelinking" = yes; then
19982 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19983 # instead of lib<name>.a to let people know that these are not
19984 # typical AIX shared libraries.
19985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19987 # We preserve .a as extension for shared libraries through AIX4.2
19988 # and later when we are not doing run time linking.
19989 library_names_spec='${libname}${release}.a $libname.a'
19990 soname_spec='${libname}${release}${shared_ext}$major'
19992 shlibpath_var=LIBPATH
19997 library_names_spec='$libname.ixlibrary $libname.a'
19998 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19999 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'
20003 library_names_spec='${libname}${shared_ext}'
20004 dynamic_linker="$host_os ld.so"
20005 shlibpath_var=LIBRARY_PATH
20011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20012 soname_spec='${libname}${release}${shared_ext}$major'
20013 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20014 shlibpath_var=LD_LIBRARY_PATH
20015 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20016 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20017 # the default ld.so.conf also contains /usr/contrib/lib and
20018 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20019 # libtool to hard-code these into programs
20022 cygwin* | mingw* | pw32*)
20023 version_type=windows
20028 case $GCC,$host_os in
20029 yes,cygwin* | yes,mingw* | yes,pw32*)
20030 library_names_spec='$libname.dll.a'
20031 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20032 postinstall_cmds='base_file=`basename \${file}`~
20033 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20034 dldir=$destdir/`dirname \$dlpath`~
20035 test -d \$dldir || mkdir -p \$dldir~
20036 $install_prog $dir/$dlname \$dldir/$dlname'
20037 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20038 dlpath=$dir/\$dldll~
20040 shlibpath_overrides_runpath=yes
20044 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20045 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20046 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20049 # MinGW DLLs use traditional 'lib' prefix
20050 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20051 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20052 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20053 # It is most probably a Windows format PATH printed by
20054 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20055 # path with ; separators, and with drive letters. We can handle the
20056 # drive letters (cygwin fileutils understands them), so leave them,
20057 # especially as we might pass files found there to a mingw objdump,
20058 # which wouldn't understand a cygwinified path. Ahh.
20059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20061 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20065 # pw32 DLLs use 'pw' prefix rather than 'lib'
20066 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20072 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20075 dynamic_linker='Win32 ld.exe'
20076 # FIXME: first we should search . and the directory the executable is in
20080 darwin* | rhapsody*)
20081 dynamic_linker="$host_os dyld"
20082 version_type=darwin
20085 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20086 soname_spec='${libname}${release}${major}$shared_ext'
20087 shlibpath_overrides_runpath=yes
20088 shlibpath_var=DYLD_LIBRARY_PATH
20089 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20090 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20091 if test "$GCC" = yes; then
20092 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"`
20094 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20096 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20104 soname_spec='${libname}${release}${shared_ext}$major'
20105 shlibpath_var=LD_LIBRARY_PATH
20116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20117 soname_spec='${libname}${release}${shared_ext}$major'
20118 shlibpath_var=LD_LIBRARY_PATH
20119 shlibpath_overrides_runpath=no
20120 hardcode_into_libs=yes
20121 dynamic_linker='GNU ld.so'
20125 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20126 version_type=freebsd-$objformat
20127 case $version_type in
20129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20134 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20138 shlibpath_var=LD_LIBRARY_PATH
20141 shlibpath_overrides_runpath=yes
20143 freebsd3.01* | freebsdelf3.01*)
20144 shlibpath_overrides_runpath=yes
20145 hardcode_into_libs=yes
20148 shlibpath_overrides_runpath=no
20149 hardcode_into_libs=yes
20158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20159 soname_spec='${libname}${release}${shared_ext}$major'
20160 shlibpath_var=LD_LIBRARY_PATH
20161 hardcode_into_libs=yes
20164 hpux9* | hpux10* | hpux11*)
20165 # Give a soname corresponding to the major version so that dld.sl refuses to
20166 # link against other versions.
20170 case "$host_cpu" in
20173 hardcode_into_libs=yes
20174 dynamic_linker="$host_os dld.so"
20175 shlibpath_var=LD_LIBRARY_PATH
20176 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20178 soname_spec='${libname}${release}${shared_ext}$major'
20179 if test "X$HPUX_IA64_MODE" = X32; then
20180 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20182 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20184 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20188 hardcode_into_libs=yes
20189 dynamic_linker="$host_os dld.sl"
20190 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20193 soname_spec='${libname}${release}${shared_ext}$major'
20194 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20199 dynamic_linker="$host_os dld.sl"
20200 shlibpath_var=SHLIB_PATH
20201 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20203 soname_spec='${libname}${release}${shared_ext}$major'
20206 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20207 postinstall_cmds='chmod 555 $lib'
20210 irix5* | irix6* | nonstopux*)
20212 nonstopux*) version_type=nonstopux ;;
20214 if test "$lt_cv_prog_gnu_ld" = yes; then
20222 soname_spec='${libname}${release}${shared_ext}$major'
20223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20225 irix5* | nonstopux*)
20226 libsuff= shlibsuff=
20229 case $LD in # libtool.m4 will add one of these switches to LD
20230 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20231 libsuff= shlibsuff= libmagic=32-bit;;
20232 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20233 libsuff=32 shlibsuff=N32 libmagic=N32;;
20234 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20235 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20236 *) libsuff= shlibsuff= libmagic=never-match;;
20240 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20241 shlibpath_overrides_runpath=no
20242 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20243 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20244 hardcode_into_libs=yes
20247 # No shared lib support for Linux oldld, aout, or coff.
20248 linux*oldld* | linux*aout* | linux*coff*)
20252 # This must be Linux ELF.
20257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20258 soname_spec='${libname}${release}${shared_ext}$major'
20259 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20260 shlibpath_var=LD_LIBRARY_PATH
20261 shlibpath_overrides_runpath=no
20262 # This implies no fast_install, which is unacceptable.
20263 # Some rework will be needed to allow for fast_install
20264 # before this can be enabled.
20265 hardcode_into_libs=yes
20267 # Append ld.so.conf contents to the search path
20268 if test -f /etc/ld.so.conf; then
20269 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20270 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20273 # We used to test for /lib/ld.so.1 and disable shared libraries on
20274 # powerpc, because MkLinux only supported shared libraries with the
20275 # GNU dynamic linker. Since this was broken with cross compilers,
20276 # most powerpc-linux boxes support dynamic linking these days and
20277 # people can always --disable-shared, the test was removed, and we
20278 # assume the GNU/Linux dynamic linker is in use.
20279 dynamic_linker='GNU/Linux ld.so'
20286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20287 soname_spec='${libname}${release}${shared_ext}$major'
20288 shlibpath_var=LD_LIBRARY_PATH
20289 shlibpath_overrides_runpath=no
20290 hardcode_into_libs=yes
20291 dynamic_linker='GNU ld.so'
20298 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20301 dynamic_linker='NetBSD (a.out) ld.so'
20303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20304 soname_spec='${libname}${release}${shared_ext}$major'
20305 dynamic_linker='NetBSD ld.elf_so'
20307 shlibpath_var=LD_LIBRARY_PATH
20308 shlibpath_overrides_runpath=yes
20309 hardcode_into_libs=yes
20314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20315 shlibpath_var=LD_LIBRARY_PATH
20316 shlibpath_overrides_runpath=yes
20323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20324 soname_spec='${libname}${release}${shared_ext}$major'
20325 shlibpath_var=LD_LIBRARY_PATH
20326 shlibpath_overrides_runpath=yes
20333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20335 shlibpath_var=LD_LIBRARY_PATH
20336 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20338 openbsd2.[89] | openbsd2.[89].*)
20339 shlibpath_overrides_runpath=no
20342 shlibpath_overrides_runpath=yes
20346 shlibpath_overrides_runpath=yes
20351 libname_spec='$name'
20354 library_names_spec='$libname${shared_ext} $libname.a'
20355 dynamic_linker='OS/2 ld.exe'
20356 shlibpath_var=LIBPATH
20359 osf3* | osf4* | osf5*)
20363 soname_spec='${libname}${release}${shared_ext}$major'
20364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20365 shlibpath_var=LD_LIBRARY_PATH
20366 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20367 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20372 soname_spec='${libname}${release}${shared_ext}$major'
20373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20374 shlibpath_var=LD_LIBRARY_PATH
20381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20382 soname_spec='${libname}${release}${shared_ext}$major'
20383 shlibpath_var=LD_LIBRARY_PATH
20384 shlibpath_overrides_runpath=yes
20385 hardcode_into_libs=yes
20386 # ldd complains unless libraries are executable
20387 postinstall_cmds='chmod +x $lib'
20392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20393 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20394 shlibpath_var=LD_LIBRARY_PATH
20395 shlibpath_overrides_runpath=yes
20396 if test "$with_gnu_ld" = yes; then
20402 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20405 soname_spec='${libname}${release}${shared_ext}$major'
20406 shlibpath_var=LD_LIBRARY_PATH
20407 case $host_vendor in
20409 shlibpath_overrides_runpath=no
20411 export_dynamic_flag_spec='${wl}-Blargedynsym'
20412 runpath_var=LD_RUN_PATH
20420 shlibpath_overrides_runpath=no
20421 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20427 if test -d /usr/nec ;then
20429 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20430 soname_spec='$libname${shared_ext}.$major'
20431 shlibpath_var=LD_LIBRARY_PATH
20437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20438 soname_spec='${libname}${release}${shared_ext}$major'
20439 shlibpath_var=LD_LIBRARY_PATH
20446 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20447 echo "${ECHO_T}$dynamic_linker" >&6
20448 test "$dynamic_linker" = no && can_build_shared=no
20450 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20451 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20452 hardcode_action_F77=
20453 if test -n "$hardcode_libdir_flag_spec_F77" || \
20454 test -n "$runpath_var_F77" || \
20455 test "X$hardcode_automatic_F77" = "Xyes" ; then
20457 # We can hardcode non-existant directories.
20458 if test "$hardcode_direct_F77" != no &&
20459 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20460 # have to relink, otherwise we might link with an installed library
20461 # when we should be linking with a yet-to-be-installed one
20462 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20463 test "$hardcode_minus_L_F77" != no; then
20464 # Linking always hardcodes the temporary library directory.
20465 hardcode_action_F77=relink
20467 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20468 hardcode_action_F77=immediate
20471 # We cannot hardcode anything, or else we can only hardcode existing
20473 hardcode_action_F77=unsupported
20475 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20476 echo "${ECHO_T}$hardcode_action_F77" >&6
20478 if test "$hardcode_action_F77" = relink; then
20479 # Fast installation is not supported
20480 enable_fast_install=no
20481 elif test "$shlibpath_overrides_runpath" = yes ||
20482 test "$enable_shared" = no; then
20483 # Fast installation is not necessary
20484 enable_fast_install=needless
20489 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20490 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20491 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20492 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20493 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20494 echo "$as_me:$LINENO: result: yes" >&5
20495 echo "${ECHO_T}yes" >&6
20497 # FIXME - insert some real tests, host_os isn't really good enough
20500 if test -n "$STRIP" ; then
20501 striplib="$STRIP -x"
20502 echo "$as_me:$LINENO: result: yes" >&5
20503 echo "${ECHO_T}yes" >&6
20505 echo "$as_me:$LINENO: result: no" >&5
20506 echo "${ECHO_T}no" >&6
20510 echo "$as_me:$LINENO: result: no" >&5
20511 echo "${ECHO_T}no" >&6
20518 # The else clause should only fire when bootstrapping the
20519 # libtool distribution, otherwise you forgot to ship ltmain.sh
20520 # with your package, and you will get complaints that there are
20521 # no rules to generate ltmain.sh.
20522 if test -f "$ltmain"; then
20523 # See if we are running on zsh, and set the options which allow our commands through
20524 # without removal of \ escapes.
20525 if test -n "${ZSH_VERSION+set}" ; then
20526 setopt NO_GLOB_SUBST
20528 # Now quote all the things that may contain metacharacters while being
20529 # careful not to overquote the AC_SUBSTed values. We take copies of the
20530 # variables and quote the copies for generation of the libtool script.
20531 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20533 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20534 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20535 deplibs_check_method reload_flag reload_cmds need_locks \
20536 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20537 lt_cv_sys_global_symbol_to_c_name_address \
20538 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20539 old_postinstall_cmds old_postuninstall_cmds \
20543 lt_prog_compiler_wl_F77 \
20544 lt_prog_compiler_pic_F77 \
20545 lt_prog_compiler_static_F77 \
20546 lt_prog_compiler_no_builtin_flag_F77 \
20547 export_dynamic_flag_spec_F77 \
20548 thread_safe_flag_spec_F77 \
20549 whole_archive_flag_spec_F77 \
20550 enable_shared_with_static_runtimes_F77 \
20551 old_archive_cmds_F77 \
20552 old_archive_from_new_cmds_F77 \
20553 predep_objects_F77 \
20554 postdep_objects_F77 \
20557 compiler_lib_search_path_F77 \
20559 archive_expsym_cmds_F77 \
20560 postinstall_cmds_F77 \
20561 postuninstall_cmds_F77 \
20562 old_archive_from_expsyms_cmds_F77 \
20563 allow_undefined_flag_F77 \
20564 no_undefined_flag_F77 \
20565 export_symbols_cmds_F77 \
20566 hardcode_libdir_flag_spec_F77 \
20567 hardcode_libdir_flag_spec_ld_F77 \
20568 hardcode_libdir_separator_F77 \
20569 hardcode_automatic_F77 \
20571 module_expsym_cmds_F77 \
20572 lt_cv_prog_compiler_c_o_F77 \
20573 exclude_expsyms_F77 \
20574 include_expsyms_F77; do
20577 old_archive_cmds_F77 | \
20578 old_archive_from_new_cmds_F77 | \
20579 archive_cmds_F77 | \
20580 archive_expsym_cmds_F77 | \
20581 module_cmds_F77 | \
20582 module_expsym_cmds_F77 | \
20583 old_archive_from_expsyms_cmds_F77 | \
20584 export_symbols_cmds_F77 | \
20585 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20586 postinstall_cmds | postuninstall_cmds | \
20587 old_postinstall_cmds | old_postuninstall_cmds | \
20588 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20589 # Double-quote double-evaled strings.
20590 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20593 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20599 *'\$0 --fallback-echo"')
20600 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20606 cat <<__EOF__ >> "$cfgfile"
20607 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20609 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20611 # Shell to use when invoking shell scripts.
20614 # Whether or not to build shared libraries.
20615 build_libtool_libs=$enable_shared
20617 # Whether or not to build static libraries.
20618 build_old_libs=$enable_static
20620 # Whether or not to add -lc for building shared libraries.
20621 build_libtool_need_lc=$archive_cmds_need_lc_F77
20623 # Whether or not to disallow shared libs when runtime libs are static
20624 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20626 # Whether or not to optimize for fast installation.
20627 fast_install=$enable_fast_install
20630 host_alias=$host_alias
20633 # An echo program that does not interpret backslashes.
20638 AR_FLAGS=$lt_AR_FLAGS
20643 # A language-specific compiler.
20644 CC=$lt_compiler_F77
20646 # Is the compiler the GNU C compiler?
20652 # The linker used to build libraries.
20655 # Whether we need hard or soft links.
20658 # A BSD-compatible nm program.
20661 # A symbol stripping program
20664 # Used to examine libraries when file_magic_cmd begins "file"
20665 MAGIC_CMD=$MAGIC_CMD
20667 # Used on cygwin: DLL creation program.
20670 # Used on cygwin: object dumper.
20673 # Used on cygwin: assembler.
20676 # The name of the directory that contains temporary libtool files.
20679 # How to create reloadable object files.
20680 reload_flag=$lt_reload_flag
20681 reload_cmds=$lt_reload_cmds
20683 # How to pass a linker flag through the compiler.
20684 wl=$lt_lt_prog_compiler_wl_F77
20686 # Object file suffix (normally "o").
20687 objext="$ac_objext"
20689 # Old archive suffix (normally "a").
20692 # Shared library suffix (normally ".so").
20693 shrext_cmds='$shrext_cmds'
20695 # Executable file suffix (normally "").
20698 # Additional compiler flags for building library objects.
20699 pic_flag=$lt_lt_prog_compiler_pic_F77
20702 # What is the maximum length of a command?
20703 max_cmd_len=$lt_cv_sys_max_cmd_len
20705 # Does compiler simultaneously support -c and -o options?
20706 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20708 # Must we lock files when doing compilation ?
20709 need_locks=$lt_need_locks
20711 # Do we need the lib prefix for modules?
20712 need_lib_prefix=$need_lib_prefix
20714 # Do we need a version for libraries?
20715 need_version=$need_version
20717 # Whether dlopen is supported.
20718 dlopen_support=$enable_dlopen
20720 # Whether dlopen of programs is supported.
20721 dlopen_self=$enable_dlopen_self
20723 # Whether dlopen of statically linked programs is supported.
20724 dlopen_self_static=$enable_dlopen_self_static
20726 # Compiler flag to prevent dynamic linking.
20727 link_static_flag=$lt_lt_prog_compiler_static_F77
20729 # Compiler flag to turn off builtin functions.
20730 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20732 # Compiler flag to allow reflexive dlopens.
20733 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20735 # Compiler flag to generate shared objects directly from archives.
20736 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20738 # Compiler flag to generate thread-safe objects.
20739 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20741 # Library versioning type.
20742 version_type=$version_type
20744 # Format of library name prefix.
20745 libname_spec=$lt_libname_spec
20747 # List of archive names. First name is the real one, the rest are links.
20748 # The last name is the one that the linker finds with -lNAME.
20749 library_names_spec=$lt_library_names_spec
20751 # The coded name of the library, if different from the real name.
20752 soname_spec=$lt_soname_spec
20754 # Commands used to build and install an old-style archive.
20756 old_archive_cmds=$lt_old_archive_cmds_F77
20757 old_postinstall_cmds=$lt_old_postinstall_cmds
20758 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20760 # Create an old-style archive from a shared archive.
20761 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20763 # Create a temporary old-style archive to link instead of a shared archive.
20764 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20766 # Commands used to build and install a shared archive.
20767 archive_cmds=$lt_archive_cmds_F77
20768 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20769 postinstall_cmds=$lt_postinstall_cmds
20770 postuninstall_cmds=$lt_postuninstall_cmds
20772 # Commands used to build a loadable module (assumed same as above if empty)
20773 module_cmds=$lt_module_cmds_F77
20774 module_expsym_cmds=$lt_module_expsym_cmds_F77
20776 # Commands to strip libraries.
20777 old_striplib=$lt_old_striplib
20778 striplib=$lt_striplib
20780 # Dependencies to place before the objects being linked to create a
20782 predep_objects=$lt_predep_objects_F77
20784 # Dependencies to place after the objects being linked to create a
20786 postdep_objects=$lt_postdep_objects_F77
20788 # Dependencies to place before the objects being linked to create a
20790 predeps=$lt_predeps_F77
20792 # Dependencies to place after the objects being linked to create a
20794 postdeps=$lt_postdeps_F77
20796 # The library search path used internally by the compiler when linking
20797 # a shared library.
20798 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20800 # Method to check whether dependent libraries are shared objects.
20801 deplibs_check_method=$lt_deplibs_check_method
20803 # Command to use when deplibs_check_method == file_magic.
20804 file_magic_cmd=$lt_file_magic_cmd
20806 # Flag that allows shared libraries with undefined symbols to be built.
20807 allow_undefined_flag=$lt_allow_undefined_flag_F77
20809 # Flag that forces no undefined symbols.
20810 no_undefined_flag=$lt_no_undefined_flag_F77
20812 # Commands used to finish a libtool library installation in a directory.
20813 finish_cmds=$lt_finish_cmds
20815 # Same as above, but a single script fragment to be evaled but not shown.
20816 finish_eval=$lt_finish_eval
20818 # Take the output of nm and produce a listing of raw symbols and C names.
20819 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20821 # Transform the output of nm in a proper C declaration
20822 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20824 # Transform the output of nm in a C name address pair
20825 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20827 # This is the shared library runtime path variable.
20828 runpath_var=$runpath_var
20830 # This is the shared library path variable.
20831 shlibpath_var=$shlibpath_var
20833 # Is shlibpath searched before the hard-coded library search path?
20834 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20836 # How to hardcode a shared library path into an executable.
20837 hardcode_action=$hardcode_action_F77
20839 # Whether we should hardcode library paths into libraries.
20840 hardcode_into_libs=$hardcode_into_libs
20842 # Flag to hardcode \$libdir into a binary during linking.
20843 # This must work even if \$libdir does not exist.
20844 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20846 # If ld is used when linking, flag to hardcode \$libdir into
20847 # a binary during linking. This must work even if \$libdir does
20849 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20851 # Whether we need a single -rpath flag with a separated argument.
20852 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20854 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20855 # resulting binary.
20856 hardcode_direct=$hardcode_direct_F77
20858 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20859 # resulting binary.
20860 hardcode_minus_L=$hardcode_minus_L_F77
20862 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20863 # the resulting binary.
20864 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20866 # Set to yes if building a shared library automatically hardcodes DIR into the library
20867 # and all subsequent libraries and executables linked against it.
20868 hardcode_automatic=$hardcode_automatic_F77
20870 # Variables whose values should be saved in libtool wrapper scripts and
20871 # restored at relink time.
20872 variables_saved_for_relink="$variables_saved_for_relink"
20874 # Whether libtool must link a program against all its dependency libraries.
20875 link_all_deplibs=$link_all_deplibs_F77
20877 # Compile-time system search path for libraries
20878 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20880 # Run-time system search path for libraries
20881 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20883 # Fix the shell variable \$srcfile for the compiler.
20884 fix_srcfile_path="$fix_srcfile_path_F77"
20886 # Set to yes if exported symbols are required.
20887 always_export_symbols=$always_export_symbols_F77
20889 # The commands to list exported symbols.
20890 export_symbols_cmds=$lt_export_symbols_cmds_F77
20892 # The commands to extract the exported symbol list from a shared archive.
20893 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20895 # Symbols that should not be listed in the preloaded symbols.
20896 exclude_expsyms=$lt_exclude_expsyms_F77
20898 # Symbols that must always be exported.
20899 include_expsyms=$lt_include_expsyms_F77
20901 # ### END LIBTOOL TAG CONFIG: $tagname
20907 # If there is no Makefile yet, we rely on a make rule to execute
20908 # `config.status --recheck' to rerun these tests and create the
20909 # libtool script then.
20910 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20911 if test -f "$ltmain_in"; then
20912 test -f Makefile && make "$ltmain"
20918 ac_cpp='$CPP $CPPFLAGS'
20919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20931 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20933 ac_cpp='$CPP $CPPFLAGS'
20934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20939 # Source file extension for Java test sources.
20942 # Object file extension for compiled Java test sources.
20946 # Code to be used in simple compile tests
20947 lt_simple_compile_test_code="class foo {}\n"
20949 # Code to be used in simple link tests
20950 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20952 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20954 # If no C compiler was specified, use CC.
20957 # Allow CC to be a program name with arguments.
20961 # Allow CC to be a program name with arguments.
20967 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20968 archive_cmds_need_lc_GCJ=no
20971 lt_prog_compiler_no_builtin_flag_GCJ=
20973 if test "$GCC" = yes; then
20974 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20977 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20978 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20979 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20982 lt_cv_prog_compiler_rtti_exceptions=no
20983 ac_outfile=conftest.$ac_objext
20984 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20985 lt_compiler_flag="-fno-rtti -fno-exceptions"
20986 # Insert the option either (1) after the last *FLAGS variable, or
20987 # (2) before a word containing "conftest.", or (3) at the end.
20988 # Note that $ac_compile itself does not contain backslashes and begins
20989 # with a dollar sign (not a hyphen), so the echo should work correctly.
20990 # The option is referenced via a variable to avoid confusing sed.
20991 lt_compile=`echo "$ac_compile" | $SED \
20992 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20994 -e 's:$: $lt_compiler_flag:'`
20995 (eval echo "\"\$as_me:20995: $lt_compile\"" >&5)
20996 (eval "$lt_compile" 2>conftest.err)
20998 cat conftest.err >&5
20999 echo "$as_me:20999: \$? = $ac_status" >&5
21000 if (exit $ac_status) && test -s "$ac_outfile"; then
21001 # The compiler can only warn and ignore the option if not recognized
21002 # So say no if there are warnings
21003 if test ! -s conftest.err; then
21004 lt_cv_prog_compiler_rtti_exceptions=yes
21010 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21011 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21013 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21014 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21021 lt_prog_compiler_wl_GCJ=
21022 lt_prog_compiler_pic_GCJ=
21023 lt_prog_compiler_static_GCJ=
21025 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21026 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21028 if test "$GCC" = yes; then
21029 lt_prog_compiler_wl_GCJ='-Wl,'
21030 lt_prog_compiler_static_GCJ='-static'
21034 # All AIX code is PIC.
21035 if test "$host_cpu" = ia64; then
21036 # AIX 5 now supports IA64 processor
21037 lt_prog_compiler_static_GCJ='-Bstatic'
21042 # FIXME: we need at least 68020 code to build shared libraries, but
21043 # adding the `-m68020' flag to GCC prevents building anything better,
21045 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21048 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21049 # PIC is the default for these OSes.
21052 mingw* | pw32* | os2*)
21053 # This hack is so that the source file can tell whether it is being
21054 # built for inclusion in a dll (and should export symbols for example).
21055 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21058 darwin* | rhapsody*)
21059 # PIC is the default on this platform
21060 # Common symbols not allowed in MH_DYLIB files
21061 lt_prog_compiler_pic_GCJ='-fno-common'
21065 # Just because we use GCC doesn't mean we suddenly get shared libraries
21066 # on systems that don't support them.
21067 lt_prog_compiler_can_build_shared_GCJ=no
21072 if test -d /usr/nec; then
21073 lt_prog_compiler_pic_GCJ=-Kconform_pic
21078 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21079 # not for PA HP-UX.
21080 case "$host_cpu" in
21085 lt_prog_compiler_pic_GCJ='-fPIC'
21091 lt_prog_compiler_pic_GCJ='-fPIC'
21095 # PORTME Check for flag to pass linker flags through the system compiler.
21098 lt_prog_compiler_wl_GCJ='-Wl,'
21099 if test "$host_cpu" = ia64; then
21100 # AIX 5 now supports IA64 processor
21101 lt_prog_compiler_static_GCJ='-Bstatic'
21103 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21107 # PIC is the default on this platform
21108 # Common symbols not allowed in MH_DYLIB files
21109 case "$cc_basename" in
21111 lt_prog_compiler_pic_GCJ='-qnocommon'
21112 lt_prog_compiler_wl_GCJ='-Wl,'
21117 mingw* | pw32* | os2*)
21118 # This hack is so that the source file can tell whether it is being
21119 # built for inclusion in a dll (and should export symbols for example).
21120 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21123 hpux9* | hpux10* | hpux11*)
21124 lt_prog_compiler_wl_GCJ='-Wl,'
21125 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21126 # not for PA HP-UX.
21127 case "$host_cpu" in
21132 lt_prog_compiler_pic_GCJ='+Z'
21135 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21136 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21139 irix5* | irix6* | nonstopux*)
21140 lt_prog_compiler_wl_GCJ='-Wl,'
21141 # PIC (with -KPIC) is the default.
21142 lt_prog_compiler_static_GCJ='-non_shared'
21146 lt_prog_compiler_pic_GCJ='-KPIC'
21147 lt_prog_compiler_static_GCJ='-Bstatic'
21153 lt_prog_compiler_wl_GCJ='-Wl,'
21154 lt_prog_compiler_pic_GCJ='-KPIC'
21155 lt_prog_compiler_static_GCJ='-static'
21158 lt_prog_compiler_wl_GCJ='-Wl,'
21159 # All Alpha code is PIC.
21160 lt_prog_compiler_static_GCJ='-non_shared'
21165 osf3* | osf4* | osf5*)
21166 lt_prog_compiler_wl_GCJ='-Wl,'
21167 # All OSF/1 code is PIC.
21168 lt_prog_compiler_static_GCJ='-non_shared'
21172 lt_prog_compiler_pic_GCJ='-Kpic'
21173 lt_prog_compiler_static_GCJ='-dn'
21177 lt_prog_compiler_wl_GCJ='-Wl,'
21178 lt_prog_compiler_pic_GCJ='-KPIC'
21179 lt_prog_compiler_static_GCJ='-Bstatic'
21183 lt_prog_compiler_wl_GCJ='-Qoption ld '
21184 lt_prog_compiler_pic_GCJ='-PIC'
21185 lt_prog_compiler_static_GCJ='-Bstatic'
21188 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21189 lt_prog_compiler_wl_GCJ='-Wl,'
21190 lt_prog_compiler_pic_GCJ='-KPIC'
21191 lt_prog_compiler_static_GCJ='-Bstatic'
21195 if test -d /usr/nec ;then
21196 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21197 lt_prog_compiler_static_GCJ='-Bstatic'
21202 lt_prog_compiler_pic_GCJ='-pic'
21203 lt_prog_compiler_static_GCJ='-Bstatic'
21207 lt_prog_compiler_can_build_shared_GCJ=no
21212 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21213 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21216 # Check to make sure the PIC flag actually works.
21218 if test -n "$lt_prog_compiler_pic_GCJ"; then
21220 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21221 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21222 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21223 echo $ECHO_N "(cached) $ECHO_C" >&6
21225 lt_prog_compiler_pic_works_GCJ=no
21226 ac_outfile=conftest.$ac_objext
21227 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21228 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21229 # Insert the option either (1) after the last *FLAGS variable, or
21230 # (2) before a word containing "conftest.", or (3) at the end.
21231 # Note that $ac_compile itself does not contain backslashes and begins
21232 # with a dollar sign (not a hyphen), so the echo should work correctly.
21233 # The option is referenced via a variable to avoid confusing sed.
21234 lt_compile=`echo "$ac_compile" | $SED \
21235 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21237 -e 's:$: $lt_compiler_flag:'`
21238 (eval echo "\"\$as_me:21238: $lt_compile\"" >&5)
21239 (eval "$lt_compile" 2>conftest.err)
21241 cat conftest.err >&5
21242 echo "$as_me:21242: \$? = $ac_status" >&5
21243 if (exit $ac_status) && test -s "$ac_outfile"; then
21244 # The compiler can only warn and ignore the option if not recognized
21245 # So say no if there are warnings
21246 if test ! -s conftest.err; then
21247 lt_prog_compiler_pic_works_GCJ=yes
21253 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21254 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21256 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21257 case $lt_prog_compiler_pic_GCJ in
21259 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21262 lt_prog_compiler_pic_GCJ=
21263 lt_prog_compiler_can_build_shared_GCJ=no
21268 # For platforms which do not support PIC, -DPIC is meaningless:
21270 lt_prog_compiler_pic_GCJ=
21273 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21277 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21278 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21279 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21280 echo $ECHO_N "(cached) $ECHO_C" >&6
21282 lt_cv_prog_compiler_c_o_GCJ=no
21283 $rm -r conftest 2>/dev/null
21287 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21289 lt_compiler_flag="-o out/conftest2.$ac_objext"
21290 # Insert the option either (1) after the last *FLAGS variable, or
21291 # (2) before a word containing "conftest.", or (3) at the end.
21292 # Note that $ac_compile itself does not contain backslashes and begins
21293 # with a dollar sign (not a hyphen), so the echo should work correctly.
21294 lt_compile=`echo "$ac_compile" | $SED \
21295 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21297 -e 's:$: $lt_compiler_flag:'`
21298 (eval echo "\"\$as_me:21298: $lt_compile\"" >&5)
21299 (eval "$lt_compile" 2>out/conftest.err)
21301 cat out/conftest.err >&5
21302 echo "$as_me:21302: \$? = $ac_status" >&5
21303 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21305 # The compiler can only warn and ignore the option if not recognized
21306 # So say no if there are warnings
21307 if test ! -s out/conftest.err; then
21308 lt_cv_prog_compiler_c_o_GCJ=yes
21313 # SGI C++ compiler will create directory out/ii_files/ for
21314 # template instantiation
21315 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21316 $rm out/* && rmdir out
21322 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21323 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21326 hard_links="nottested"
21327 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21328 # do not overwrite the value of need_locks provided by the user
21329 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21330 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21333 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21335 ln conftest.a conftest.b 2>&5 || hard_links=no
21336 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21337 echo "$as_me:$LINENO: result: $hard_links" >&5
21338 echo "${ECHO_T}$hard_links" >&6
21339 if test "$hard_links" = no; then
21340 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21341 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21348 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21349 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21352 allow_undefined_flag_GCJ=
21353 enable_shared_with_static_runtimes_GCJ=no
21355 archive_expsym_cmds_GCJ=
21356 old_archive_From_new_cmds_GCJ=
21357 old_archive_from_expsyms_cmds_GCJ=
21358 export_dynamic_flag_spec_GCJ=
21359 whole_archive_flag_spec_GCJ=
21360 thread_safe_flag_spec_GCJ=
21361 hardcode_libdir_flag_spec_GCJ=
21362 hardcode_libdir_flag_spec_ld_GCJ=
21363 hardcode_libdir_separator_GCJ=
21364 hardcode_direct_GCJ=no
21365 hardcode_minus_L_GCJ=no
21366 hardcode_shlibpath_var_GCJ=unsupported
21367 link_all_deplibs_GCJ=unknown
21368 hardcode_automatic_GCJ=no
21370 module_expsym_cmds_GCJ=
21371 always_export_symbols_GCJ=no
21372 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21373 # include_expsyms should be a list of space-separated symbols to be *always*
21374 # included in the symbol list
21375 include_expsyms_GCJ=
21376 # exclude_expsyms can be an extended regexp of symbols to exclude
21377 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21378 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21379 # as well as any symbol that contains `d'.
21380 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21381 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21382 # platforms (ab)use it in PIC code, but their linkers get confused if
21383 # the symbol is explicitly referenced. Since portable code cannot
21384 # rely on this symbol name, it's probably fine to never include it in
21385 # preloaded symbol tables.
21386 extract_expsyms_cmds=
21389 cygwin* | mingw* | pw32*)
21390 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21391 # When not using gcc, we currently assume that we are using
21392 # Microsoft Visual C++.
21393 if test "$GCC" != yes; then
21403 if test "$with_gnu_ld" = yes; then
21404 # If archive_cmds runs LD, not CC, wlarc should be empty
21407 # See if GNU ld supports shared libraries.
21409 aix3* | aix4* | aix5*)
21410 # On AIX/PPC, the GNU linker is very broken
21411 if test "$host_cpu" != ia64; then
21415 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21416 *** to be unable to reliably create shared libraries on AIX.
21417 *** Therefore, libtool is disabling shared libraries support. If you
21418 *** really care for shared libraries, you may want to modify your PATH
21419 *** so that a non-GNU linker is found, and then restart.
21426 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)'
21427 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21428 hardcode_minus_L_GCJ=yes
21430 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21431 # that the semantics of dynamic libraries on AmigaOS, at least up
21432 # to version 4, is to share data among multiple programs linked
21433 # with the same dynamic library. Since this doesn't match the
21434 # behavior of shared libraries on other platforms, we can't use
21440 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21441 allow_undefined_flag_GCJ=unsupported
21442 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21443 # support --undefined. This deserves some investigation. FIXME
21444 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21450 cygwin* | mingw* | pw32*)
21451 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21452 # as there is no search path for DLLs.
21453 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21454 allow_undefined_flag_GCJ=unsupported
21455 always_export_symbols_GCJ=no
21456 enable_shared_with_static_runtimes_GCJ=yes
21457 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21459 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21460 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21461 # If the export-symbols file already is a .def file (1st line
21462 # is EXPORTS), use it as is; otherwise, prepend...
21463 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21464 cp $export_symbols $output_objdir/$soname.def;
21466 echo EXPORTS > $output_objdir/$soname.def;
21467 cat $export_symbols >> $output_objdir/$soname.def;
21469 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21476 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21477 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21480 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21481 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21486 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21490 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21491 *** create shared libraries on Solaris systems. Therefore, libtool
21492 *** is disabling shared libraries support. We urge you to upgrade GNU
21493 *** binutils to release 2.9.1 or newer. Another option is to modify
21494 *** your PATH or compiler configuration so that the native linker is
21495 *** used, and then restart.
21498 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21499 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21500 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21507 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21509 hardcode_direct_GCJ=yes
21510 hardcode_shlibpath_var_GCJ=no
21514 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21515 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21516 archive_cmds_GCJ="$tmp_archive_cmds"
21517 supports_anon_versioning=no
21518 case `$LD -v 2>/dev/null` in
21519 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21520 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21521 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21522 *\ 2.11.*) ;; # other 2.11 versions
21523 *) supports_anon_versioning=yes ;;
21525 if test $supports_anon_versioning = yes; then
21526 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21527 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21528 $echo "local: *; };" >> $output_objdir/$libname.ver~
21529 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21531 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21539 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21540 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21541 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21548 if test "$ld_shlibs_GCJ" = yes; then
21549 runpath_var=LD_RUN_PATH
21550 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21551 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21552 # ancient GNU ld didn't support --whole-archive et. al.
21553 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21554 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21556 whole_archive_flag_spec_GCJ=
21560 # PORTME fill in a description of your system's linker (not GNU ld)
21563 allow_undefined_flag_GCJ=unsupported
21564 always_export_symbols_GCJ=yes
21565 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'
21566 # Note: this linker hardcodes the directories in LIBPATH if there
21567 # are no directories specified by -L.
21568 hardcode_minus_L_GCJ=yes
21569 if test "$GCC" = yes && test -z "$link_static_flag"; then
21570 # Neither direct hardcoding nor static linking is supported with a
21572 hardcode_direct_GCJ=unsupported
21577 if test "$host_cpu" = ia64; then
21578 # On IA64, the linker does run time linking by default, so we don't
21579 # have to do anything special.
21580 aix_use_runtimelinking=no
21581 exp_sym_flag='-Bexport'
21584 # If we're using GNU nm, then we don't want the "-C" option.
21585 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21586 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21587 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'
21589 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'
21591 aix_use_runtimelinking=no
21593 # Test if we are trying to use run time linking or normal
21594 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21595 # need to do runtime linking.
21596 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21597 for ld_flag in $LDFLAGS; do
21598 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21599 aix_use_runtimelinking=yes
21605 exp_sym_flag='-bexport'
21606 no_entry_flag='-bnoentry'
21609 # When large executables or shared objects are built, AIX ld can
21610 # have problems creating the table of contents. If linking a library
21611 # or program results in "error TOC overflow" add -mminimal-toc to
21612 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21613 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21615 archive_cmds_GCJ=''
21616 hardcode_direct_GCJ=yes
21617 hardcode_libdir_separator_GCJ=':'
21618 link_all_deplibs_GCJ=yes
21620 if test "$GCC" = yes; then
21621 case $host_os in aix4.012|aix4.012.*)
21622 # We only want to do this on AIX 4.2 and lower, the check
21623 # below for broken collect2 doesn't work under 4.3+
21624 collect2name=`${CC} -print-prog-name=collect2`
21625 if test -f "$collect2name" && \
21626 strings "$collect2name" | grep resolve_lib_name >/dev/null
21628 # We have reworked collect2
21629 hardcode_direct_GCJ=yes
21631 # We have old collect2
21632 hardcode_direct_GCJ=unsupported
21633 # It fails to find uninstalled libraries when the uninstalled
21634 # path is not listed in the libpath. Setting hardcode_minus_L
21635 # to unsupported forces relinking
21636 hardcode_minus_L_GCJ=yes
21637 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21638 hardcode_libdir_separator_GCJ=
21641 shared_flag='-shared'
21644 if test "$host_cpu" = ia64; then
21645 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21646 # chokes on -Wl,-G. The following line is correct:
21649 if test "$aix_use_runtimelinking" = yes; then
21650 shared_flag='${wl}-G'
21652 shared_flag='${wl}-bM:SRE'
21657 # It seems that -bexpall does not export symbols beginning with
21658 # underscore (_), so it is better to generate a list of symbols to export.
21659 always_export_symbols_GCJ=yes
21660 if test "$aix_use_runtimelinking" = yes; then
21661 # Warning - without using the other runtime loading flags (-brtl),
21662 # -berok will link without error, but may produce a broken library.
21663 allow_undefined_flag_GCJ='-berok'
21664 # Determine the default libpath from the value encoded in an empty executable.
21665 cat >conftest.$ac_ext <<_ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h. */
21680 rm -f conftest.$ac_objext conftest$ac_exeext
21681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21682 (eval $ac_link) 2>conftest.er1
21684 grep -v '^ *+' conftest.er1 >conftest.err
21686 cat conftest.err >&5
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); } &&
21689 { ac_try='test -z "$ac_c_werror_flag"
21690 || test ! -s conftest.err'
21691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21692 (eval $ac_try) 2>&5
21694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); }; } &&
21696 { ac_try='test -s conftest$ac_exeext'
21697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21698 (eval $ac_try) 2>&5
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); }; }; then
21703 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21705 # Check for a 64-bit object if we didn't find anything.
21706 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; }
21709 echo "$as_me: failed program was:" >&5
21710 sed 's/^/| /' conftest.$ac_ext >&5
21713 rm -f conftest.err conftest.$ac_objext \
21714 conftest$ac_exeext conftest.$ac_ext
21715 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21717 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21718 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"
21720 if test "$host_cpu" = ia64; then
21721 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21722 allow_undefined_flag_GCJ="-z nodefs"
21723 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"
21725 # Determine the default libpath from the value encoded in an empty executable.
21726 cat >conftest.$ac_ext <<_ACEOF
21729 cat confdefs.h >>conftest.$ac_ext
21730 cat >>conftest.$ac_ext <<_ACEOF
21731 /* end confdefs.h. */
21741 rm -f conftest.$ac_objext conftest$ac_exeext
21742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21743 (eval $ac_link) 2>conftest.er1
21745 grep -v '^ *+' conftest.er1 >conftest.err
21747 cat conftest.err >&5
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); } &&
21750 { ac_try='test -z "$ac_c_werror_flag"
21751 || test ! -s conftest.err'
21752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21753 (eval $ac_try) 2>&5
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); }; } &&
21757 { ac_try='test -s conftest$ac_exeext'
21758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21759 (eval $ac_try) 2>&5
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); }; }; then
21764 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21766 # Check for a 64-bit object if we didn't find anything.
21767 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; }
21770 echo "$as_me: failed program was:" >&5
21771 sed 's/^/| /' conftest.$ac_ext >&5
21774 rm -f conftest.err conftest.$ac_objext \
21775 conftest$ac_exeext conftest.$ac_ext
21776 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21778 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21779 # Warning - without using the other run time loading flags,
21780 # -berok will link without error, but may produce a broken library.
21781 no_undefined_flag_GCJ=' ${wl}-bernotok'
21782 allow_undefined_flag_GCJ=' ${wl}-berok'
21783 # -bexpall does not export symbols beginning with underscore (_)
21784 always_export_symbols_GCJ=yes
21785 # Exported symbols can be pulled into shared objects from archives
21786 whole_archive_flag_spec_GCJ=' '
21787 archive_cmds_need_lc_GCJ=yes
21788 # This is similar to how AIX traditionally builds it's shared libraries.
21789 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'
21795 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)'
21796 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21797 hardcode_minus_L_GCJ=yes
21798 # see comment about different semantics on the GNU ld section
21803 export_dynamic_flag_spec_GCJ=-rdynamic
21806 cygwin* | mingw* | pw32*)
21807 # When not using gcc, we currently assume that we are using
21808 # Microsoft Visual C++.
21809 # hardcode_libdir_flag_spec is actually meaningless, as there is
21810 # no search path for DLLs.
21811 hardcode_libdir_flag_spec_GCJ=' '
21812 allow_undefined_flag_GCJ=unsupported
21813 # Tell ltmain to make .lib files, not .a files.
21815 # Tell ltmain to make .dll files, not .so files.
21817 # FIXME: Setting linknames here is a bad hack.
21818 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21819 # The linker will automatically build a .lib file if we build a DLL.
21820 old_archive_From_new_cmds_GCJ='true'
21821 # FIXME: Should let the user specify the lib program.
21822 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21823 fix_srcfile_path='`cygpath -w "$srcfile"`'
21824 enable_shared_with_static_runtimes_GCJ=yes
21827 darwin* | rhapsody*)
21829 rhapsody* | darwin1.[012])
21830 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21833 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21834 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21836 case ${MACOSX_DEPLOYMENT_TARGET} in
21838 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21841 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21847 archive_cmds_need_lc_GCJ=no
21848 hardcode_direct_GCJ=no
21849 hardcode_automatic_GCJ=yes
21850 hardcode_shlibpath_var_GCJ=unsupported
21851 whole_archive_flag_spec_GCJ=''
21852 link_all_deplibs_GCJ=yes
21853 if test "$GCC" = yes ; then
21854 output_verbose_link_cmd='echo'
21855 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21856 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21857 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21858 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}'
21859 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}'
21861 case "$cc_basename" in
21863 output_verbose_link_cmd='echo'
21864 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21865 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21866 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21867 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}'
21868 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}'
21878 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21879 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21880 hardcode_shlibpath_var_GCJ=no
21887 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21888 # support. Future versions do this automatically, but an explicit c++rt0.o
21889 # does not break anything, and helps significantly (at the cost of a little
21892 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21893 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21894 hardcode_direct_GCJ=yes
21895 hardcode_shlibpath_var_GCJ=no
21898 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21900 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21901 hardcode_direct_GCJ=yes
21902 hardcode_minus_L_GCJ=yes
21903 hardcode_shlibpath_var_GCJ=no
21906 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21907 freebsd* | kfreebsd*-gnu)
21908 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21909 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21910 hardcode_direct_GCJ=yes
21911 hardcode_shlibpath_var_GCJ=no
21915 if test "$GCC" = yes; then
21916 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'
21918 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'
21920 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21921 hardcode_libdir_separator_GCJ=:
21922 hardcode_direct_GCJ=yes
21924 # hardcode_minus_L: Not really in the search PATH,
21925 # but as the default location of the library.
21926 hardcode_minus_L_GCJ=yes
21927 export_dynamic_flag_spec_GCJ='${wl}-E'
21931 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21932 case "$host_cpu" in
21934 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21937 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21941 case "$host_cpu" in
21943 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21946 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21950 if test "$with_gnu_ld" = no; then
21951 case "$host_cpu" in
21953 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21954 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21955 hardcode_libdir_separator_GCJ=:
21956 hardcode_direct_GCJ=no
21957 hardcode_shlibpath_var_GCJ=no
21960 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21961 hardcode_direct_GCJ=no
21962 hardcode_shlibpath_var_GCJ=no
21964 # hardcode_minus_L: Not really in the search PATH,
21965 # but as the default location of the library.
21966 hardcode_minus_L_GCJ=yes
21969 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21970 hardcode_libdir_separator_GCJ=:
21971 hardcode_direct_GCJ=yes
21972 export_dynamic_flag_spec_GCJ='${wl}-E'
21974 # hardcode_minus_L: Not really in the search PATH,
21975 # but as the default location of the library.
21976 hardcode_minus_L_GCJ=yes
21982 irix5* | irix6* | nonstopux*)
21983 if test "$GCC" = yes; then
21984 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'
21986 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'
21987 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21989 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21990 hardcode_libdir_separator_GCJ=:
21991 link_all_deplibs_GCJ=yes
21995 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21996 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21998 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22000 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22001 hardcode_direct_GCJ=yes
22002 hardcode_shlibpath_var_GCJ=no
22006 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22007 hardcode_direct_GCJ=yes
22008 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22009 hardcode_libdir_separator_GCJ=:
22010 hardcode_shlibpath_var_GCJ=no
22014 hardcode_direct_GCJ=yes
22015 hardcode_shlibpath_var_GCJ=no
22016 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22017 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22018 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22019 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22020 export_dynamic_flag_spec_GCJ='${wl}-E'
22023 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22024 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22025 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22028 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22029 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22036 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22037 hardcode_minus_L_GCJ=yes
22038 allow_undefined_flag_GCJ=unsupported
22039 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'
22040 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22044 if test "$GCC" = yes; then
22045 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22046 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'
22048 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22049 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'
22051 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22052 hardcode_libdir_separator_GCJ=:
22055 osf4* | osf5*) # as osf3* with the addition of -msym flag
22056 if test "$GCC" = yes; then
22057 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22058 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'
22059 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22061 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22062 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'
22063 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~
22064 $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'
22066 # Both c and cxx compiler support -rpath directly
22067 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22069 hardcode_libdir_separator_GCJ=:
22073 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22074 hardcode_shlibpath_var_GCJ=no
22075 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22076 runpath_var=LD_RUN_PATH
22077 hardcode_runpath_var=yes
22081 no_undefined_flag_GCJ=' -z text'
22082 if test "$GCC" = yes; then
22083 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22084 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22085 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22087 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22088 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22089 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22091 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22092 hardcode_shlibpath_var_GCJ=no
22094 solaris2.[0-5] | solaris2.[0-5].*) ;;
22095 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22096 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22098 link_all_deplibs_GCJ=yes
22102 if test "x$host_vendor" = xsequent; then
22103 # Use $CC to link under sequent, because it throws in some extra .o
22104 # files that make .init and .fini sections work.
22105 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22107 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22109 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22110 hardcode_direct_GCJ=yes
22111 hardcode_minus_L_GCJ=yes
22112 hardcode_shlibpath_var_GCJ=no
22116 case $host_vendor in
22118 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22119 hardcode_direct_GCJ=yes # is this really true???
22122 ## LD is ld it makes a PLAMLIB
22123 ## CC just makes a GrossModule.
22124 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22125 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22126 hardcode_direct_GCJ=no
22129 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22130 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22133 runpath_var='LD_RUN_PATH'
22134 hardcode_shlibpath_var_GCJ=no
22138 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22139 hardcode_shlibpath_var_GCJ=no
22140 export_dynamic_flag_spec_GCJ='-Bexport'
22144 if test -d /usr/nec; then
22145 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22146 hardcode_shlibpath_var_GCJ=no
22147 runpath_var=LD_RUN_PATH
22148 hardcode_runpath_var=yes
22154 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22155 hardcode_direct_GCJ=yes
22156 hardcode_minus_L_GCJ=no
22157 hardcode_shlibpath_var_GCJ=no
22158 hardcode_runpath_var=yes
22159 runpath_var=LD_RUN_PATH
22162 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22163 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22164 if test "$GCC" = yes; then
22165 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22167 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22169 runpath_var='LD_RUN_PATH'
22170 hardcode_shlibpath_var_GCJ=no
22174 no_undefined_flag_GCJ=' -z text'
22175 # $CC -shared without GNU ld will not create a library from C++
22176 # object files and a static libstdc++, better avoid it by now
22177 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22178 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22179 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22180 hardcode_libdir_flag_spec_GCJ=
22181 hardcode_shlibpath_var_GCJ=no
22182 runpath_var='LD_RUN_PATH'
22186 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22187 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22188 hardcode_shlibpath_var_GCJ=no
22197 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22198 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22199 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22201 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22202 if test "$GCC" = yes; then
22203 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22207 # Do we need to explicitly link libc?
22209 case "x$archive_cmds_need_lc_GCJ" in
22211 # Assume -lc should be added
22212 archive_cmds_need_lc_GCJ=yes
22214 if test "$enable_shared" = yes && test "$GCC" = yes; then
22215 case $archive_cmds_GCJ in
22217 # FIXME: we may have to deal with multi-command sequences.
22220 # Test whether the compiler implicitly links with -lc since on some
22221 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22222 # to ld, don't add -lc before -lgcc.
22223 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22224 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22226 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22229 (eval $ac_compile) 2>&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); } 2>conftest.err; then
22235 libobjs=conftest.$ac_objext
22237 wl=$lt_prog_compiler_wl_GCJ
22243 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22244 allow_undefined_flag_GCJ=
22245 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22246 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); }
22251 archive_cmds_need_lc_GCJ=no
22253 archive_cmds_need_lc_GCJ=yes
22255 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22257 cat conftest.err 1>&5
22260 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22261 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22268 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22269 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22270 library_names_spec=
22271 libname_spec='lib$name'
22275 postuninstall_cmds=
22279 shlibpath_overrides_runpath=unknown
22281 dynamic_linker="$host_os ld.so"
22282 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22283 if test "$GCC" = yes; then
22284 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22285 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22286 # if the path contains ";" then we assume it to be the separator
22287 # otherwise default to the standard path separator (i.e. ":") - it is
22288 # assumed that no part of a normal pathname contains ";" but that should
22289 # okay in the real world where ";" in dirpaths is itself problematic.
22290 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22292 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22295 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22297 need_lib_prefix=unknown
22298 hardcode_into_libs=no
22300 # when you set need_version to no, make sure it does not cause -set_version
22301 # flags to be left without arguments
22302 need_version=unknown
22307 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22308 shlibpath_var=LIBPATH
22310 # AIX 3 has no versioning support, so we append a major version to the name.
22311 soname_spec='${libname}${release}${shared_ext}$major'
22318 hardcode_into_libs=yes
22319 if test "$host_cpu" = ia64; then
22320 # AIX 5 supports IA64
22321 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22322 shlibpath_var=LD_LIBRARY_PATH
22324 # With GCC up to 2.95.x, collect2 would create an import file
22325 # for dependence libraries. The import file would start with
22326 # the line `#! .'. This would cause the generated library to
22327 # depend on `.', always an invalid library. This was fixed in
22328 # development snapshots of GCC prior to 3.0.
22330 aix4 | aix4.[01] | aix4.[01].*)
22331 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22333 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22336 can_build_shared=no
22340 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22341 # soname into executable. Probably we can add versioning support to
22342 # collect2, so additional links can be useful in future.
22343 if test "$aix_use_runtimelinking" = yes; then
22344 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22345 # instead of lib<name>.a to let people know that these are not
22346 # typical AIX shared libraries.
22347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22349 # We preserve .a as extension for shared libraries through AIX4.2
22350 # and later when we are not doing run time linking.
22351 library_names_spec='${libname}${release}.a $libname.a'
22352 soname_spec='${libname}${release}${shared_ext}$major'
22354 shlibpath_var=LIBPATH
22359 library_names_spec='$libname.ixlibrary $libname.a'
22360 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22361 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'
22365 library_names_spec='${libname}${shared_ext}'
22366 dynamic_linker="$host_os ld.so"
22367 shlibpath_var=LIBRARY_PATH
22373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22374 soname_spec='${libname}${release}${shared_ext}$major'
22375 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22376 shlibpath_var=LD_LIBRARY_PATH
22377 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22378 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22379 # the default ld.so.conf also contains /usr/contrib/lib and
22380 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22381 # libtool to hard-code these into programs
22384 cygwin* | mingw* | pw32*)
22385 version_type=windows
22390 case $GCC,$host_os in
22391 yes,cygwin* | yes,mingw* | yes,pw32*)
22392 library_names_spec='$libname.dll.a'
22393 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22394 postinstall_cmds='base_file=`basename \${file}`~
22395 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22396 dldir=$destdir/`dirname \$dlpath`~
22397 test -d \$dldir || mkdir -p \$dldir~
22398 $install_prog $dir/$dlname \$dldir/$dlname'
22399 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22400 dlpath=$dir/\$dldll~
22402 shlibpath_overrides_runpath=yes
22406 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22407 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22408 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22411 # MinGW DLLs use traditional 'lib' prefix
22412 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22413 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22414 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22415 # It is most probably a Windows format PATH printed by
22416 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22417 # path with ; separators, and with drive letters. We can handle the
22418 # drive letters (cygwin fileutils understands them), so leave them,
22419 # especially as we might pass files found there to a mingw objdump,
22420 # which wouldn't understand a cygwinified path. Ahh.
22421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22427 # pw32 DLLs use 'pw' prefix rather than 'lib'
22428 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22434 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22437 dynamic_linker='Win32 ld.exe'
22438 # FIXME: first we should search . and the directory the executable is in
22442 darwin* | rhapsody*)
22443 dynamic_linker="$host_os dyld"
22444 version_type=darwin
22447 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22448 soname_spec='${libname}${release}${major}$shared_ext'
22449 shlibpath_overrides_runpath=yes
22450 shlibpath_var=DYLD_LIBRARY_PATH
22451 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22452 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22453 if test "$GCC" = yes; then
22454 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"`
22456 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22458 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22466 soname_spec='${libname}${release}${shared_ext}$major'
22467 shlibpath_var=LD_LIBRARY_PATH
22478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22479 soname_spec='${libname}${release}${shared_ext}$major'
22480 shlibpath_var=LD_LIBRARY_PATH
22481 shlibpath_overrides_runpath=no
22482 hardcode_into_libs=yes
22483 dynamic_linker='GNU ld.so'
22487 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22488 version_type=freebsd-$objformat
22489 case $version_type in
22491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22496 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22500 shlibpath_var=LD_LIBRARY_PATH
22503 shlibpath_overrides_runpath=yes
22505 freebsd3.01* | freebsdelf3.01*)
22506 shlibpath_overrides_runpath=yes
22507 hardcode_into_libs=yes
22510 shlibpath_overrides_runpath=no
22511 hardcode_into_libs=yes
22520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22521 soname_spec='${libname}${release}${shared_ext}$major'
22522 shlibpath_var=LD_LIBRARY_PATH
22523 hardcode_into_libs=yes
22526 hpux9* | hpux10* | hpux11*)
22527 # Give a soname corresponding to the major version so that dld.sl refuses to
22528 # link against other versions.
22532 case "$host_cpu" in
22535 hardcode_into_libs=yes
22536 dynamic_linker="$host_os dld.so"
22537 shlibpath_var=LD_LIBRARY_PATH
22538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22540 soname_spec='${libname}${release}${shared_ext}$major'
22541 if test "X$HPUX_IA64_MODE" = X32; then
22542 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22544 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22550 hardcode_into_libs=yes
22551 dynamic_linker="$host_os dld.sl"
22552 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22553 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22555 soname_spec='${libname}${release}${shared_ext}$major'
22556 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22557 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22561 dynamic_linker="$host_os dld.sl"
22562 shlibpath_var=SHLIB_PATH
22563 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22565 soname_spec='${libname}${release}${shared_ext}$major'
22568 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22569 postinstall_cmds='chmod 555 $lib'
22572 irix5* | irix6* | nonstopux*)
22574 nonstopux*) version_type=nonstopux ;;
22576 if test "$lt_cv_prog_gnu_ld" = yes; then
22584 soname_spec='${libname}${release}${shared_ext}$major'
22585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22587 irix5* | nonstopux*)
22588 libsuff= shlibsuff=
22591 case $LD in # libtool.m4 will add one of these switches to LD
22592 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22593 libsuff= shlibsuff= libmagic=32-bit;;
22594 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22595 libsuff=32 shlibsuff=N32 libmagic=N32;;
22596 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22597 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22598 *) libsuff= shlibsuff= libmagic=never-match;;
22602 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22603 shlibpath_overrides_runpath=no
22604 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22605 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22606 hardcode_into_libs=yes
22609 # No shared lib support for Linux oldld, aout, or coff.
22610 linux*oldld* | linux*aout* | linux*coff*)
22614 # This must be Linux ELF.
22619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22620 soname_spec='${libname}${release}${shared_ext}$major'
22621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22622 shlibpath_var=LD_LIBRARY_PATH
22623 shlibpath_overrides_runpath=no
22624 # This implies no fast_install, which is unacceptable.
22625 # Some rework will be needed to allow for fast_install
22626 # before this can be enabled.
22627 hardcode_into_libs=yes
22629 # Append ld.so.conf contents to the search path
22630 if test -f /etc/ld.so.conf; then
22631 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22632 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22635 # We used to test for /lib/ld.so.1 and disable shared libraries on
22636 # powerpc, because MkLinux only supported shared libraries with the
22637 # GNU dynamic linker. Since this was broken with cross compilers,
22638 # most powerpc-linux boxes support dynamic linking these days and
22639 # people can always --disable-shared, the test was removed, and we
22640 # assume the GNU/Linux dynamic linker is in use.
22641 dynamic_linker='GNU/Linux ld.so'
22648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22649 soname_spec='${libname}${release}${shared_ext}$major'
22650 shlibpath_var=LD_LIBRARY_PATH
22651 shlibpath_overrides_runpath=no
22652 hardcode_into_libs=yes
22653 dynamic_linker='GNU ld.so'
22660 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22663 dynamic_linker='NetBSD (a.out) ld.so'
22665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22666 soname_spec='${libname}${release}${shared_ext}$major'
22667 dynamic_linker='NetBSD ld.elf_so'
22669 shlibpath_var=LD_LIBRARY_PATH
22670 shlibpath_overrides_runpath=yes
22671 hardcode_into_libs=yes
22676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22677 shlibpath_var=LD_LIBRARY_PATH
22678 shlibpath_overrides_runpath=yes
22685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22686 soname_spec='${libname}${release}${shared_ext}$major'
22687 shlibpath_var=LD_LIBRARY_PATH
22688 shlibpath_overrides_runpath=yes
22695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22697 shlibpath_var=LD_LIBRARY_PATH
22698 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22700 openbsd2.[89] | openbsd2.[89].*)
22701 shlibpath_overrides_runpath=no
22704 shlibpath_overrides_runpath=yes
22708 shlibpath_overrides_runpath=yes
22713 libname_spec='$name'
22716 library_names_spec='$libname${shared_ext} $libname.a'
22717 dynamic_linker='OS/2 ld.exe'
22718 shlibpath_var=LIBPATH
22721 osf3* | osf4* | osf5*)
22725 soname_spec='${libname}${release}${shared_ext}$major'
22726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22727 shlibpath_var=LD_LIBRARY_PATH
22728 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22729 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22734 soname_spec='${libname}${release}${shared_ext}$major'
22735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22736 shlibpath_var=LD_LIBRARY_PATH
22743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22744 soname_spec='${libname}${release}${shared_ext}$major'
22745 shlibpath_var=LD_LIBRARY_PATH
22746 shlibpath_overrides_runpath=yes
22747 hardcode_into_libs=yes
22748 # ldd complains unless libraries are executable
22749 postinstall_cmds='chmod +x $lib'
22754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22755 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22756 shlibpath_var=LD_LIBRARY_PATH
22757 shlibpath_overrides_runpath=yes
22758 if test "$with_gnu_ld" = yes; then
22764 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22767 soname_spec='${libname}${release}${shared_ext}$major'
22768 shlibpath_var=LD_LIBRARY_PATH
22769 case $host_vendor in
22771 shlibpath_overrides_runpath=no
22773 export_dynamic_flag_spec='${wl}-Blargedynsym'
22774 runpath_var=LD_RUN_PATH
22782 shlibpath_overrides_runpath=no
22783 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22789 if test -d /usr/nec ;then
22791 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22792 soname_spec='$libname${shared_ext}.$major'
22793 shlibpath_var=LD_LIBRARY_PATH
22799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22800 soname_spec='${libname}${release}${shared_ext}$major'
22801 shlibpath_var=LD_LIBRARY_PATH
22808 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22809 echo "${ECHO_T}$dynamic_linker" >&6
22810 test "$dynamic_linker" = no && can_build_shared=no
22812 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22813 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22814 hardcode_action_GCJ=
22815 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22816 test -n "$runpath_var_GCJ" || \
22817 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22819 # We can hardcode non-existant directories.
22820 if test "$hardcode_direct_GCJ" != no &&
22821 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22822 # have to relink, otherwise we might link with an installed library
22823 # when we should be linking with a yet-to-be-installed one
22824 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22825 test "$hardcode_minus_L_GCJ" != no; then
22826 # Linking always hardcodes the temporary library directory.
22827 hardcode_action_GCJ=relink
22829 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22830 hardcode_action_GCJ=immediate
22833 # We cannot hardcode anything, or else we can only hardcode existing
22835 hardcode_action_GCJ=unsupported
22837 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22838 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22840 if test "$hardcode_action_GCJ" = relink; then
22841 # Fast installation is not supported
22842 enable_fast_install=no
22843 elif test "$shlibpath_overrides_runpath" = yes ||
22844 test "$enable_shared" = no; then
22845 # Fast installation is not necessary
22846 enable_fast_install=needless
22851 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22852 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22853 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22854 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22855 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22856 echo "$as_me:$LINENO: result: yes" >&5
22857 echo "${ECHO_T}yes" >&6
22859 # FIXME - insert some real tests, host_os isn't really good enough
22862 if test -n "$STRIP" ; then
22863 striplib="$STRIP -x"
22864 echo "$as_me:$LINENO: result: yes" >&5
22865 echo "${ECHO_T}yes" >&6
22867 echo "$as_me:$LINENO: result: no" >&5
22868 echo "${ECHO_T}no" >&6
22872 echo "$as_me:$LINENO: result: no" >&5
22873 echo "${ECHO_T}no" >&6
22878 if test "x$enable_dlopen" != xyes; then
22879 enable_dlopen=unknown
22880 enable_dlopen_self=unknown
22881 enable_dlopen_self_static=unknown
22888 lt_cv_dlopen="load_add_on"
22890 lt_cv_dlopen_self=yes
22894 lt_cv_dlopen="LoadLibrary"
22899 lt_cv_dlopen="dlopen"
22904 # if libdl is installed we need to link against it
22905 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22906 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22907 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22908 echo $ECHO_N "(cached) $ECHO_C" >&6
22910 ac_check_lib_save_LIBS=$LIBS
22912 cat >conftest.$ac_ext <<_ACEOF
22915 cat confdefs.h >>conftest.$ac_ext
22916 cat >>conftest.$ac_ext <<_ACEOF
22917 /* end confdefs.h. */
22919 /* Override any gcc2 internal prototype to avoid an error. */
22923 /* We use char because int might match the return type of a gcc2
22924 builtin and then its argument prototype would still apply. */
22934 rm -f conftest.$ac_objext conftest$ac_exeext
22935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22936 (eval $ac_link) 2>conftest.er1
22938 grep -v '^ *+' conftest.er1 >conftest.err
22940 cat conftest.err >&5
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); } &&
22943 { ac_try='test -z "$ac_c_werror_flag"
22944 || test ! -s conftest.err'
22945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22946 (eval $ac_try) 2>&5
22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); }; } &&
22950 { ac_try='test -s conftest$ac_exeext'
22951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952 (eval $ac_try) 2>&5
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); }; }; then
22956 ac_cv_lib_dl_dlopen=yes
22958 echo "$as_me: failed program was:" >&5
22959 sed 's/^/| /' conftest.$ac_ext >&5
22961 ac_cv_lib_dl_dlopen=no
22963 rm -f conftest.err conftest.$ac_objext \
22964 conftest$ac_exeext conftest.$ac_ext
22965 LIBS=$ac_check_lib_save_LIBS
22967 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22968 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22969 if test $ac_cv_lib_dl_dlopen = yes; then
22970 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22973 lt_cv_dlopen="dyld"
22975 lt_cv_dlopen_self=yes
22982 echo "$as_me:$LINENO: checking for shl_load" >&5
22983 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22984 if test "${ac_cv_func_shl_load+set}" = set; then
22985 echo $ECHO_N "(cached) $ECHO_C" >&6
22987 cat >conftest.$ac_ext <<_ACEOF
22990 cat confdefs.h >>conftest.$ac_ext
22991 cat >>conftest.$ac_ext <<_ACEOF
22992 /* end confdefs.h. */
22993 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22995 #define shl_load innocuous_shl_load
22997 /* System header to define __stub macros and hopefully few prototypes,
22998 which can conflict with char shl_load (); below.
22999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23000 <limits.h> exists even on freestanding compilers. */
23003 # include <limits.h>
23005 # include <assert.h>
23010 /* Override any gcc2 internal prototype to avoid an error. */
23015 /* We use char because int might match the return type of a gcc2
23016 builtin and then its argument prototype would still apply. */
23018 /* The GNU C library defines this for functions which it implements
23019 to always fail with ENOSYS. Some functions are actually named
23020 something starting with __ and the normal name is an alias. */
23021 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23024 char (*f) () = shl_load;
23033 return f != shl_load;
23038 rm -f conftest.$ac_objext conftest$ac_exeext
23039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23040 (eval $ac_link) 2>conftest.er1
23042 grep -v '^ *+' conftest.er1 >conftest.err
23044 cat conftest.err >&5
23045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046 (exit $ac_status); } &&
23047 { ac_try='test -z "$ac_c_werror_flag"
23048 || test ! -s conftest.err'
23049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23050 (eval $ac_try) 2>&5
23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); }; } &&
23054 { ac_try='test -s conftest$ac_exeext'
23055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23056 (eval $ac_try) 2>&5
23058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); }; }; then
23060 ac_cv_func_shl_load=yes
23062 echo "$as_me: failed program was:" >&5
23063 sed 's/^/| /' conftest.$ac_ext >&5
23065 ac_cv_func_shl_load=no
23067 rm -f conftest.err conftest.$ac_objext \
23068 conftest$ac_exeext conftest.$ac_ext
23070 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23071 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23072 if test $ac_cv_func_shl_load = yes; then
23073 lt_cv_dlopen="shl_load"
23075 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23076 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23077 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23078 echo $ECHO_N "(cached) $ECHO_C" >&6
23080 ac_check_lib_save_LIBS=$LIBS
23082 cat >conftest.$ac_ext <<_ACEOF
23085 cat confdefs.h >>conftest.$ac_ext
23086 cat >>conftest.$ac_ext <<_ACEOF
23087 /* end confdefs.h. */
23089 /* Override any gcc2 internal prototype to avoid an error. */
23093 /* We use char because int might match the return type of a gcc2
23094 builtin and then its argument prototype would still apply. */
23104 rm -f conftest.$ac_objext conftest$ac_exeext
23105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23106 (eval $ac_link) 2>conftest.er1
23108 grep -v '^ *+' conftest.er1 >conftest.err
23110 cat conftest.err >&5
23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); } &&
23113 { ac_try='test -z "$ac_c_werror_flag"
23114 || test ! -s conftest.err'
23115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23116 (eval $ac_try) 2>&5
23118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119 (exit $ac_status); }; } &&
23120 { ac_try='test -s conftest$ac_exeext'
23121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23122 (eval $ac_try) 2>&5
23124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); }; }; then
23126 ac_cv_lib_dld_shl_load=yes
23128 echo "$as_me: failed program was:" >&5
23129 sed 's/^/| /' conftest.$ac_ext >&5
23131 ac_cv_lib_dld_shl_load=no
23133 rm -f conftest.err conftest.$ac_objext \
23134 conftest$ac_exeext conftest.$ac_ext
23135 LIBS=$ac_check_lib_save_LIBS
23137 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23138 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23139 if test $ac_cv_lib_dld_shl_load = yes; then
23140 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23142 echo "$as_me:$LINENO: checking for dlopen" >&5
23143 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23144 if test "${ac_cv_func_dlopen+set}" = set; then
23145 echo $ECHO_N "(cached) $ECHO_C" >&6
23147 cat >conftest.$ac_ext <<_ACEOF
23150 cat confdefs.h >>conftest.$ac_ext
23151 cat >>conftest.$ac_ext <<_ACEOF
23152 /* end confdefs.h. */
23153 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23155 #define dlopen innocuous_dlopen
23157 /* System header to define __stub macros and hopefully few prototypes,
23158 which can conflict with char dlopen (); below.
23159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23160 <limits.h> exists even on freestanding compilers. */
23163 # include <limits.h>
23165 # include <assert.h>
23170 /* Override any gcc2 internal prototype to avoid an error. */
23175 /* We use char because int might match the return type of a gcc2
23176 builtin and then its argument prototype would still apply. */
23178 /* The GNU C library defines this for functions which it implements
23179 to always fail with ENOSYS. Some functions are actually named
23180 something starting with __ and the normal name is an alias. */
23181 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23184 char (*f) () = dlopen;
23193 return f != dlopen;
23198 rm -f conftest.$ac_objext conftest$ac_exeext
23199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23200 (eval $ac_link) 2>conftest.er1
23202 grep -v '^ *+' conftest.er1 >conftest.err
23204 cat conftest.err >&5
23205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); } &&
23207 { ac_try='test -z "$ac_c_werror_flag"
23208 || test ! -s conftest.err'
23209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23210 (eval $ac_try) 2>&5
23212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213 (exit $ac_status); }; } &&
23214 { ac_try='test -s conftest$ac_exeext'
23215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23216 (eval $ac_try) 2>&5
23218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219 (exit $ac_status); }; }; then
23220 ac_cv_func_dlopen=yes
23222 echo "$as_me: failed program was:" >&5
23223 sed 's/^/| /' conftest.$ac_ext >&5
23225 ac_cv_func_dlopen=no
23227 rm -f conftest.err conftest.$ac_objext \
23228 conftest$ac_exeext conftest.$ac_ext
23230 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23231 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23232 if test $ac_cv_func_dlopen = yes; then
23233 lt_cv_dlopen="dlopen"
23235 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23236 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23237 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23238 echo $ECHO_N "(cached) $ECHO_C" >&6
23240 ac_check_lib_save_LIBS=$LIBS
23242 cat >conftest.$ac_ext <<_ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23249 /* Override any gcc2 internal prototype to avoid an error. */
23253 /* We use char because int might match the return type of a gcc2
23254 builtin and then its argument prototype would still apply. */
23264 rm -f conftest.$ac_objext conftest$ac_exeext
23265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23266 (eval $ac_link) 2>conftest.er1
23268 grep -v '^ *+' conftest.er1 >conftest.err
23270 cat conftest.err >&5
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } &&
23273 { ac_try='test -z "$ac_c_werror_flag"
23274 || test ! -s conftest.err'
23275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276 (eval $ac_try) 2>&5
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); }; } &&
23280 { ac_try='test -s conftest$ac_exeext'
23281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23282 (eval $ac_try) 2>&5
23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); }; }; then
23286 ac_cv_lib_dl_dlopen=yes
23288 echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23291 ac_cv_lib_dl_dlopen=no
23293 rm -f conftest.err conftest.$ac_objext \
23294 conftest$ac_exeext conftest.$ac_ext
23295 LIBS=$ac_check_lib_save_LIBS
23297 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23298 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23299 if test $ac_cv_lib_dl_dlopen = yes; then
23300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23302 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23303 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23304 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23305 echo $ECHO_N "(cached) $ECHO_C" >&6
23307 ac_check_lib_save_LIBS=$LIBS
23308 LIBS="-lsvld $LIBS"
23309 cat >conftest.$ac_ext <<_ACEOF
23312 cat confdefs.h >>conftest.$ac_ext
23313 cat >>conftest.$ac_ext <<_ACEOF
23314 /* end confdefs.h. */
23316 /* Override any gcc2 internal prototype to avoid an error. */
23320 /* We use char because int might match the return type of a gcc2
23321 builtin and then its argument prototype would still apply. */
23331 rm -f conftest.$ac_objext conftest$ac_exeext
23332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23333 (eval $ac_link) 2>conftest.er1
23335 grep -v '^ *+' conftest.er1 >conftest.err
23337 cat conftest.err >&5
23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); } &&
23340 { ac_try='test -z "$ac_c_werror_flag"
23341 || test ! -s conftest.err'
23342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23343 (eval $ac_try) 2>&5
23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); }; } &&
23347 { ac_try='test -s conftest$ac_exeext'
23348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23349 (eval $ac_try) 2>&5
23351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352 (exit $ac_status); }; }; then
23353 ac_cv_lib_svld_dlopen=yes
23355 echo "$as_me: failed program was:" >&5
23356 sed 's/^/| /' conftest.$ac_ext >&5
23358 ac_cv_lib_svld_dlopen=no
23360 rm -f conftest.err conftest.$ac_objext \
23361 conftest$ac_exeext conftest.$ac_ext
23362 LIBS=$ac_check_lib_save_LIBS
23364 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23365 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23366 if test $ac_cv_lib_svld_dlopen = yes; then
23367 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23369 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23370 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23371 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23372 echo $ECHO_N "(cached) $ECHO_C" >&6
23374 ac_check_lib_save_LIBS=$LIBS
23376 cat >conftest.$ac_ext <<_ACEOF
23379 cat confdefs.h >>conftest.$ac_ext
23380 cat >>conftest.$ac_ext <<_ACEOF
23381 /* end confdefs.h. */
23383 /* Override any gcc2 internal prototype to avoid an error. */
23387 /* We use char because int might match the return type of a gcc2
23388 builtin and then its argument prototype would still apply. */
23398 rm -f conftest.$ac_objext conftest$ac_exeext
23399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23400 (eval $ac_link) 2>conftest.er1
23402 grep -v '^ *+' conftest.er1 >conftest.err
23404 cat conftest.err >&5
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); } &&
23407 { ac_try='test -z "$ac_c_werror_flag"
23408 || test ! -s conftest.err'
23409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23410 (eval $ac_try) 2>&5
23412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); }; } &&
23414 { ac_try='test -s conftest$ac_exeext'
23415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23416 (eval $ac_try) 2>&5
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); }; }; then
23420 ac_cv_lib_dld_dld_link=yes
23422 echo "$as_me: failed program was:" >&5
23423 sed 's/^/| /' conftest.$ac_ext >&5
23425 ac_cv_lib_dld_dld_link=no
23427 rm -f conftest.err conftest.$ac_objext \
23428 conftest$ac_exeext conftest.$ac_ext
23429 LIBS=$ac_check_lib_save_LIBS
23431 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23432 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23433 if test $ac_cv_lib_dld_dld_link = yes; then
23434 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23455 if test "x$lt_cv_dlopen" != xno; then
23461 case $lt_cv_dlopen in
23463 save_CPPFLAGS="$CPPFLAGS"
23464 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23466 save_LDFLAGS="$LDFLAGS"
23467 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23470 LIBS="$lt_cv_dlopen_libs $LIBS"
23472 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23473 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23474 if test "${lt_cv_dlopen_self+set}" = set; then
23475 echo $ECHO_N "(cached) $ECHO_C" >&6
23477 if test "$cross_compiling" = yes; then :
23478 lt_cv_dlopen_self=cross
23480 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23481 lt_status=$lt_dlunknown
23482 cat > conftest.$ac_ext <<EOF
23483 #line 23483 "configure"
23484 #include "confdefs.h"
23493 # define LT_DLGLOBAL RTLD_GLOBAL
23496 # define LT_DLGLOBAL DL_GLOBAL
23498 # define LT_DLGLOBAL 0
23502 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23503 find out it does not work in some platform. */
23504 #ifndef LT_DLLAZY_OR_NOW
23506 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23509 # define LT_DLLAZY_OR_NOW DL_LAZY
23512 # define LT_DLLAZY_OR_NOW RTLD_NOW
23515 # define LT_DLLAZY_OR_NOW DL_NOW
23517 # define LT_DLLAZY_OR_NOW 0
23525 extern "C" void exit (int);
23528 void fnord() { int i=42;}
23531 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23532 int status = $lt_dlunknown;
23536 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23537 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23538 /* dlclose (self); */
23544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23545 (eval $ac_link) 2>&5
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23549 (./conftest; exit; ) 2>/dev/null
23551 case x$lt_status in
23552 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23553 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23554 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23557 # compilation failed
23558 lt_cv_dlopen_self=no
23565 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23566 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23568 if test "x$lt_cv_dlopen_self" = xyes; then
23569 LDFLAGS="$LDFLAGS $link_static_flag"
23570 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23571 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23572 if test "${lt_cv_dlopen_self_static+set}" = set; then
23573 echo $ECHO_N "(cached) $ECHO_C" >&6
23575 if test "$cross_compiling" = yes; then :
23576 lt_cv_dlopen_self_static=cross
23578 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23579 lt_status=$lt_dlunknown
23580 cat > conftest.$ac_ext <<EOF
23581 #line 23581 "configure"
23582 #include "confdefs.h"
23591 # define LT_DLGLOBAL RTLD_GLOBAL
23594 # define LT_DLGLOBAL DL_GLOBAL
23596 # define LT_DLGLOBAL 0
23600 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23601 find out it does not work in some platform. */
23602 #ifndef LT_DLLAZY_OR_NOW
23604 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23607 # define LT_DLLAZY_OR_NOW DL_LAZY
23610 # define LT_DLLAZY_OR_NOW RTLD_NOW
23613 # define LT_DLLAZY_OR_NOW DL_NOW
23615 # define LT_DLLAZY_OR_NOW 0
23623 extern "C" void exit (int);
23626 void fnord() { int i=42;}
23629 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23630 int status = $lt_dlunknown;
23634 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23635 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23636 /* dlclose (self); */
23642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23643 (eval $ac_link) 2>&5
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23647 (./conftest; exit; ) 2>/dev/null
23649 case x$lt_status in
23650 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23651 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23652 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23655 # compilation failed
23656 lt_cv_dlopen_self_static=no
23663 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23664 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23667 CPPFLAGS="$save_CPPFLAGS"
23668 LDFLAGS="$save_LDFLAGS"
23673 case $lt_cv_dlopen_self in
23674 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23675 *) enable_dlopen_self=unknown ;;
23678 case $lt_cv_dlopen_self_static in
23679 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23680 *) enable_dlopen_self_static=unknown ;;
23685 # The else clause should only fire when bootstrapping the
23686 # libtool distribution, otherwise you forgot to ship ltmain.sh
23687 # with your package, and you will get complaints that there are
23688 # no rules to generate ltmain.sh.
23689 if test -f "$ltmain"; then
23690 # See if we are running on zsh, and set the options which allow our commands through
23691 # without removal of \ escapes.
23692 if test -n "${ZSH_VERSION+set}" ; then
23693 setopt NO_GLOB_SUBST
23695 # Now quote all the things that may contain metacharacters while being
23696 # careful not to overquote the AC_SUBSTed values. We take copies of the
23697 # variables and quote the copies for generation of the libtool script.
23698 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23700 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23701 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23702 deplibs_check_method reload_flag reload_cmds need_locks \
23703 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23704 lt_cv_sys_global_symbol_to_c_name_address \
23705 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23706 old_postinstall_cmds old_postuninstall_cmds \
23710 lt_prog_compiler_wl_GCJ \
23711 lt_prog_compiler_pic_GCJ \
23712 lt_prog_compiler_static_GCJ \
23713 lt_prog_compiler_no_builtin_flag_GCJ \
23714 export_dynamic_flag_spec_GCJ \
23715 thread_safe_flag_spec_GCJ \
23716 whole_archive_flag_spec_GCJ \
23717 enable_shared_with_static_runtimes_GCJ \
23718 old_archive_cmds_GCJ \
23719 old_archive_from_new_cmds_GCJ \
23720 predep_objects_GCJ \
23721 postdep_objects_GCJ \
23724 compiler_lib_search_path_GCJ \
23726 archive_expsym_cmds_GCJ \
23727 postinstall_cmds_GCJ \
23728 postuninstall_cmds_GCJ \
23729 old_archive_from_expsyms_cmds_GCJ \
23730 allow_undefined_flag_GCJ \
23731 no_undefined_flag_GCJ \
23732 export_symbols_cmds_GCJ \
23733 hardcode_libdir_flag_spec_GCJ \
23734 hardcode_libdir_flag_spec_ld_GCJ \
23735 hardcode_libdir_separator_GCJ \
23736 hardcode_automatic_GCJ \
23738 module_expsym_cmds_GCJ \
23739 lt_cv_prog_compiler_c_o_GCJ \
23740 exclude_expsyms_GCJ \
23741 include_expsyms_GCJ; do
23744 old_archive_cmds_GCJ | \
23745 old_archive_from_new_cmds_GCJ | \
23746 archive_cmds_GCJ | \
23747 archive_expsym_cmds_GCJ | \
23748 module_cmds_GCJ | \
23749 module_expsym_cmds_GCJ | \
23750 old_archive_from_expsyms_cmds_GCJ | \
23751 export_symbols_cmds_GCJ | \
23752 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23753 postinstall_cmds | postuninstall_cmds | \
23754 old_postinstall_cmds | old_postuninstall_cmds | \
23755 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23756 # Double-quote double-evaled strings.
23757 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23760 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23766 *'\$0 --fallback-echo"')
23767 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23773 cat <<__EOF__ >> "$cfgfile"
23774 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23776 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23778 # Shell to use when invoking shell scripts.
23781 # Whether or not to build shared libraries.
23782 build_libtool_libs=$enable_shared
23784 # Whether or not to build static libraries.
23785 build_old_libs=$enable_static
23787 # Whether or not to add -lc for building shared libraries.
23788 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23790 # Whether or not to disallow shared libs when runtime libs are static
23791 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23793 # Whether or not to optimize for fast installation.
23794 fast_install=$enable_fast_install
23797 host_alias=$host_alias
23800 # An echo program that does not interpret backslashes.
23805 AR_FLAGS=$lt_AR_FLAGS
23810 # A language-specific compiler.
23811 CC=$lt_compiler_GCJ
23813 # Is the compiler the GNU C compiler?
23819 # The linker used to build libraries.
23822 # Whether we need hard or soft links.
23825 # A BSD-compatible nm program.
23828 # A symbol stripping program
23831 # Used to examine libraries when file_magic_cmd begins "file"
23832 MAGIC_CMD=$MAGIC_CMD
23834 # Used on cygwin: DLL creation program.
23837 # Used on cygwin: object dumper.
23840 # Used on cygwin: assembler.
23843 # The name of the directory that contains temporary libtool files.
23846 # How to create reloadable object files.
23847 reload_flag=$lt_reload_flag
23848 reload_cmds=$lt_reload_cmds
23850 # How to pass a linker flag through the compiler.
23851 wl=$lt_lt_prog_compiler_wl_GCJ
23853 # Object file suffix (normally "o").
23854 objext="$ac_objext"
23856 # Old archive suffix (normally "a").
23859 # Shared library suffix (normally ".so").
23860 shrext_cmds='$shrext_cmds'
23862 # Executable file suffix (normally "").
23865 # Additional compiler flags for building library objects.
23866 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23869 # What is the maximum length of a command?
23870 max_cmd_len=$lt_cv_sys_max_cmd_len
23872 # Does compiler simultaneously support -c and -o options?
23873 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23875 # Must we lock files when doing compilation ?
23876 need_locks=$lt_need_locks
23878 # Do we need the lib prefix for modules?
23879 need_lib_prefix=$need_lib_prefix
23881 # Do we need a version for libraries?
23882 need_version=$need_version
23884 # Whether dlopen is supported.
23885 dlopen_support=$enable_dlopen
23887 # Whether dlopen of programs is supported.
23888 dlopen_self=$enable_dlopen_self
23890 # Whether dlopen of statically linked programs is supported.
23891 dlopen_self_static=$enable_dlopen_self_static
23893 # Compiler flag to prevent dynamic linking.
23894 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23896 # Compiler flag to turn off builtin functions.
23897 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23899 # Compiler flag to allow reflexive dlopens.
23900 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23902 # Compiler flag to generate shared objects directly from archives.
23903 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23905 # Compiler flag to generate thread-safe objects.
23906 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23908 # Library versioning type.
23909 version_type=$version_type
23911 # Format of library name prefix.
23912 libname_spec=$lt_libname_spec
23914 # List of archive names. First name is the real one, the rest are links.
23915 # The last name is the one that the linker finds with -lNAME.
23916 library_names_spec=$lt_library_names_spec
23918 # The coded name of the library, if different from the real name.
23919 soname_spec=$lt_soname_spec
23921 # Commands used to build and install an old-style archive.
23923 old_archive_cmds=$lt_old_archive_cmds_GCJ
23924 old_postinstall_cmds=$lt_old_postinstall_cmds
23925 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23927 # Create an old-style archive from a shared archive.
23928 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23930 # Create a temporary old-style archive to link instead of a shared archive.
23931 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23933 # Commands used to build and install a shared archive.
23934 archive_cmds=$lt_archive_cmds_GCJ
23935 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23936 postinstall_cmds=$lt_postinstall_cmds
23937 postuninstall_cmds=$lt_postuninstall_cmds
23939 # Commands used to build a loadable module (assumed same as above if empty)
23940 module_cmds=$lt_module_cmds_GCJ
23941 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23943 # Commands to strip libraries.
23944 old_striplib=$lt_old_striplib
23945 striplib=$lt_striplib
23947 # Dependencies to place before the objects being linked to create a
23949 predep_objects=$lt_predep_objects_GCJ
23951 # Dependencies to place after the objects being linked to create a
23953 postdep_objects=$lt_postdep_objects_GCJ
23955 # Dependencies to place before the objects being linked to create a
23957 predeps=$lt_predeps_GCJ
23959 # Dependencies to place after the objects being linked to create a
23961 postdeps=$lt_postdeps_GCJ
23963 # The library search path used internally by the compiler when linking
23964 # a shared library.
23965 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23967 # Method to check whether dependent libraries are shared objects.
23968 deplibs_check_method=$lt_deplibs_check_method
23970 # Command to use when deplibs_check_method == file_magic.
23971 file_magic_cmd=$lt_file_magic_cmd
23973 # Flag that allows shared libraries with undefined symbols to be built.
23974 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23976 # Flag that forces no undefined symbols.
23977 no_undefined_flag=$lt_no_undefined_flag_GCJ
23979 # Commands used to finish a libtool library installation in a directory.
23980 finish_cmds=$lt_finish_cmds
23982 # Same as above, but a single script fragment to be evaled but not shown.
23983 finish_eval=$lt_finish_eval
23985 # Take the output of nm and produce a listing of raw symbols and C names.
23986 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23988 # Transform the output of nm in a proper C declaration
23989 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23991 # Transform the output of nm in a C name address pair
23992 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23994 # This is the shared library runtime path variable.
23995 runpath_var=$runpath_var
23997 # This is the shared library path variable.
23998 shlibpath_var=$shlibpath_var
24000 # Is shlibpath searched before the hard-coded library search path?
24001 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24003 # How to hardcode a shared library path into an executable.
24004 hardcode_action=$hardcode_action_GCJ
24006 # Whether we should hardcode library paths into libraries.
24007 hardcode_into_libs=$hardcode_into_libs
24009 # Flag to hardcode \$libdir into a binary during linking.
24010 # This must work even if \$libdir does not exist.
24011 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24013 # If ld is used when linking, flag to hardcode \$libdir into
24014 # a binary during linking. This must work even if \$libdir does
24016 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24018 # Whether we need a single -rpath flag with a separated argument.
24019 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24021 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24022 # resulting binary.
24023 hardcode_direct=$hardcode_direct_GCJ
24025 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24026 # resulting binary.
24027 hardcode_minus_L=$hardcode_minus_L_GCJ
24029 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24030 # the resulting binary.
24031 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24033 # Set to yes if building a shared library automatically hardcodes DIR into the library
24034 # and all subsequent libraries and executables linked against it.
24035 hardcode_automatic=$hardcode_automatic_GCJ
24037 # Variables whose values should be saved in libtool wrapper scripts and
24038 # restored at relink time.
24039 variables_saved_for_relink="$variables_saved_for_relink"
24041 # Whether libtool must link a program against all its dependency libraries.
24042 link_all_deplibs=$link_all_deplibs_GCJ
24044 # Compile-time system search path for libraries
24045 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24047 # Run-time system search path for libraries
24048 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24050 # Fix the shell variable \$srcfile for the compiler.
24051 fix_srcfile_path="$fix_srcfile_path_GCJ"
24053 # Set to yes if exported symbols are required.
24054 always_export_symbols=$always_export_symbols_GCJ
24056 # The commands to list exported symbols.
24057 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24059 # The commands to extract the exported symbol list from a shared archive.
24060 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24062 # Symbols that should not be listed in the preloaded symbols.
24063 exclude_expsyms=$lt_exclude_expsyms_GCJ
24065 # Symbols that must always be exported.
24066 include_expsyms=$lt_include_expsyms_GCJ
24068 # ### END LIBTOOL TAG CONFIG: $tagname
24074 # If there is no Makefile yet, we rely on a make rule to execute
24075 # `config.status --recheck' to rerun these tests and create the
24076 # libtool script then.
24077 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24078 if test -f "$ltmain_in"; then
24079 test -f Makefile && make "$ltmain"
24085 ac_cpp='$CPP $CPPFLAGS'
24086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24099 ac_cpp='$CPP $CPPFLAGS'
24100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24105 # Source file extension for RC test sources.
24108 # Object file extension for compiled RC test sources.
24112 # Code to be used in simple compile tests
24113 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24115 # Code to be used in simple link tests
24116 lt_simple_link_test_code="$lt_simple_compile_test_code"
24118 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24120 # If no C compiler was specified, use CC.
24123 # Allow CC to be a program name with arguments.
24127 # Allow CC to be a program name with arguments.
24132 lt_cv_prog_compiler_c_o_RC=yes
24134 # The else clause should only fire when bootstrapping the
24135 # libtool distribution, otherwise you forgot to ship ltmain.sh
24136 # with your package, and you will get complaints that there are
24137 # no rules to generate ltmain.sh.
24138 if test -f "$ltmain"; then
24139 # See if we are running on zsh, and set the options which allow our commands through
24140 # without removal of \ escapes.
24141 if test -n "${ZSH_VERSION+set}" ; then
24142 setopt NO_GLOB_SUBST
24144 # Now quote all the things that may contain metacharacters while being
24145 # careful not to overquote the AC_SUBSTed values. We take copies of the
24146 # variables and quote the copies for generation of the libtool script.
24147 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24149 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24150 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24151 deplibs_check_method reload_flag reload_cmds need_locks \
24152 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24153 lt_cv_sys_global_symbol_to_c_name_address \
24154 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24155 old_postinstall_cmds old_postuninstall_cmds \
24159 lt_prog_compiler_wl_RC \
24160 lt_prog_compiler_pic_RC \
24161 lt_prog_compiler_static_RC \
24162 lt_prog_compiler_no_builtin_flag_RC \
24163 export_dynamic_flag_spec_RC \
24164 thread_safe_flag_spec_RC \
24165 whole_archive_flag_spec_RC \
24166 enable_shared_with_static_runtimes_RC \
24167 old_archive_cmds_RC \
24168 old_archive_from_new_cmds_RC \
24169 predep_objects_RC \
24170 postdep_objects_RC \
24173 compiler_lib_search_path_RC \
24175 archive_expsym_cmds_RC \
24176 postinstall_cmds_RC \
24177 postuninstall_cmds_RC \
24178 old_archive_from_expsyms_cmds_RC \
24179 allow_undefined_flag_RC \
24180 no_undefined_flag_RC \
24181 export_symbols_cmds_RC \
24182 hardcode_libdir_flag_spec_RC \
24183 hardcode_libdir_flag_spec_ld_RC \
24184 hardcode_libdir_separator_RC \
24185 hardcode_automatic_RC \
24187 module_expsym_cmds_RC \
24188 lt_cv_prog_compiler_c_o_RC \
24189 exclude_expsyms_RC \
24190 include_expsyms_RC; do
24193 old_archive_cmds_RC | \
24194 old_archive_from_new_cmds_RC | \
24195 archive_cmds_RC | \
24196 archive_expsym_cmds_RC | \
24198 module_expsym_cmds_RC | \
24199 old_archive_from_expsyms_cmds_RC | \
24200 export_symbols_cmds_RC | \
24201 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24202 postinstall_cmds | postuninstall_cmds | \
24203 old_postinstall_cmds | old_postuninstall_cmds | \
24204 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24205 # Double-quote double-evaled strings.
24206 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24209 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24215 *'\$0 --fallback-echo"')
24216 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24222 cat <<__EOF__ >> "$cfgfile"
24223 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24225 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24227 # Shell to use when invoking shell scripts.
24230 # Whether or not to build shared libraries.
24231 build_libtool_libs=$enable_shared
24233 # Whether or not to build static libraries.
24234 build_old_libs=$enable_static
24236 # Whether or not to add -lc for building shared libraries.
24237 build_libtool_need_lc=$archive_cmds_need_lc_RC
24239 # Whether or not to disallow shared libs when runtime libs are static
24240 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24242 # Whether or not to optimize for fast installation.
24243 fast_install=$enable_fast_install
24246 host_alias=$host_alias
24249 # An echo program that does not interpret backslashes.
24254 AR_FLAGS=$lt_AR_FLAGS
24259 # A language-specific compiler.
24262 # Is the compiler the GNU C compiler?
24268 # The linker used to build libraries.
24271 # Whether we need hard or soft links.
24274 # A BSD-compatible nm program.
24277 # A symbol stripping program
24280 # Used to examine libraries when file_magic_cmd begins "file"
24281 MAGIC_CMD=$MAGIC_CMD
24283 # Used on cygwin: DLL creation program.
24286 # Used on cygwin: object dumper.
24289 # Used on cygwin: assembler.
24292 # The name of the directory that contains temporary libtool files.
24295 # How to create reloadable object files.
24296 reload_flag=$lt_reload_flag
24297 reload_cmds=$lt_reload_cmds
24299 # How to pass a linker flag through the compiler.
24300 wl=$lt_lt_prog_compiler_wl_RC
24302 # Object file suffix (normally "o").
24303 objext="$ac_objext"
24305 # Old archive suffix (normally "a").
24308 # Shared library suffix (normally ".so").
24309 shrext_cmds='$shrext_cmds'
24311 # Executable file suffix (normally "").
24314 # Additional compiler flags for building library objects.
24315 pic_flag=$lt_lt_prog_compiler_pic_RC
24318 # What is the maximum length of a command?
24319 max_cmd_len=$lt_cv_sys_max_cmd_len
24321 # Does compiler simultaneously support -c and -o options?
24322 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24324 # Must we lock files when doing compilation ?
24325 need_locks=$lt_need_locks
24327 # Do we need the lib prefix for modules?
24328 need_lib_prefix=$need_lib_prefix
24330 # Do we need a version for libraries?
24331 need_version=$need_version
24333 # Whether dlopen is supported.
24334 dlopen_support=$enable_dlopen
24336 # Whether dlopen of programs is supported.
24337 dlopen_self=$enable_dlopen_self
24339 # Whether dlopen of statically linked programs is supported.
24340 dlopen_self_static=$enable_dlopen_self_static
24342 # Compiler flag to prevent dynamic linking.
24343 link_static_flag=$lt_lt_prog_compiler_static_RC
24345 # Compiler flag to turn off builtin functions.
24346 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24348 # Compiler flag to allow reflexive dlopens.
24349 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24351 # Compiler flag to generate shared objects directly from archives.
24352 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24354 # Compiler flag to generate thread-safe objects.
24355 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24357 # Library versioning type.
24358 version_type=$version_type
24360 # Format of library name prefix.
24361 libname_spec=$lt_libname_spec
24363 # List of archive names. First name is the real one, the rest are links.
24364 # The last name is the one that the linker finds with -lNAME.
24365 library_names_spec=$lt_library_names_spec
24367 # The coded name of the library, if different from the real name.
24368 soname_spec=$lt_soname_spec
24370 # Commands used to build and install an old-style archive.
24372 old_archive_cmds=$lt_old_archive_cmds_RC
24373 old_postinstall_cmds=$lt_old_postinstall_cmds
24374 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24376 # Create an old-style archive from a shared archive.
24377 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24379 # Create a temporary old-style archive to link instead of a shared archive.
24380 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24382 # Commands used to build and install a shared archive.
24383 archive_cmds=$lt_archive_cmds_RC
24384 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24385 postinstall_cmds=$lt_postinstall_cmds
24386 postuninstall_cmds=$lt_postuninstall_cmds
24388 # Commands used to build a loadable module (assumed same as above if empty)
24389 module_cmds=$lt_module_cmds_RC
24390 module_expsym_cmds=$lt_module_expsym_cmds_RC
24392 # Commands to strip libraries.
24393 old_striplib=$lt_old_striplib
24394 striplib=$lt_striplib
24396 # Dependencies to place before the objects being linked to create a
24398 predep_objects=$lt_predep_objects_RC
24400 # Dependencies to place after the objects being linked to create a
24402 postdep_objects=$lt_postdep_objects_RC
24404 # Dependencies to place before the objects being linked to create a
24406 predeps=$lt_predeps_RC
24408 # Dependencies to place after the objects being linked to create a
24410 postdeps=$lt_postdeps_RC
24412 # The library search path used internally by the compiler when linking
24413 # a shared library.
24414 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24416 # Method to check whether dependent libraries are shared objects.
24417 deplibs_check_method=$lt_deplibs_check_method
24419 # Command to use when deplibs_check_method == file_magic.
24420 file_magic_cmd=$lt_file_magic_cmd
24422 # Flag that allows shared libraries with undefined symbols to be built.
24423 allow_undefined_flag=$lt_allow_undefined_flag_RC
24425 # Flag that forces no undefined symbols.
24426 no_undefined_flag=$lt_no_undefined_flag_RC
24428 # Commands used to finish a libtool library installation in a directory.
24429 finish_cmds=$lt_finish_cmds
24431 # Same as above, but a single script fragment to be evaled but not shown.
24432 finish_eval=$lt_finish_eval
24434 # Take the output of nm and produce a listing of raw symbols and C names.
24435 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24437 # Transform the output of nm in a proper C declaration
24438 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24440 # Transform the output of nm in a C name address pair
24441 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24443 # This is the shared library runtime path variable.
24444 runpath_var=$runpath_var
24446 # This is the shared library path variable.
24447 shlibpath_var=$shlibpath_var
24449 # Is shlibpath searched before the hard-coded library search path?
24450 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24452 # How to hardcode a shared library path into an executable.
24453 hardcode_action=$hardcode_action_RC
24455 # Whether we should hardcode library paths into libraries.
24456 hardcode_into_libs=$hardcode_into_libs
24458 # Flag to hardcode \$libdir into a binary during linking.
24459 # This must work even if \$libdir does not exist.
24460 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24462 # If ld is used when linking, flag to hardcode \$libdir into
24463 # a binary during linking. This must work even if \$libdir does
24465 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24467 # Whether we need a single -rpath flag with a separated argument.
24468 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24470 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24471 # resulting binary.
24472 hardcode_direct=$hardcode_direct_RC
24474 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24475 # resulting binary.
24476 hardcode_minus_L=$hardcode_minus_L_RC
24478 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24479 # the resulting binary.
24480 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24482 # Set to yes if building a shared library automatically hardcodes DIR into the library
24483 # and all subsequent libraries and executables linked against it.
24484 hardcode_automatic=$hardcode_automatic_RC
24486 # Variables whose values should be saved in libtool wrapper scripts and
24487 # restored at relink time.
24488 variables_saved_for_relink="$variables_saved_for_relink"
24490 # Whether libtool must link a program against all its dependency libraries.
24491 link_all_deplibs=$link_all_deplibs_RC
24493 # Compile-time system search path for libraries
24494 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24496 # Run-time system search path for libraries
24497 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24499 # Fix the shell variable \$srcfile for the compiler.
24500 fix_srcfile_path="$fix_srcfile_path_RC"
24502 # Set to yes if exported symbols are required.
24503 always_export_symbols=$always_export_symbols_RC
24505 # The commands to list exported symbols.
24506 export_symbols_cmds=$lt_export_symbols_cmds_RC
24508 # The commands to extract the exported symbol list from a shared archive.
24509 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24511 # Symbols that should not be listed in the preloaded symbols.
24512 exclude_expsyms=$lt_exclude_expsyms_RC
24514 # Symbols that must always be exported.
24515 include_expsyms=$lt_include_expsyms_RC
24517 # ### END LIBTOOL TAG CONFIG: $tagname
24523 # If there is no Makefile yet, we rely on a make rule to execute
24524 # `config.status --recheck' to rerun these tests and create the
24525 # libtool script then.
24526 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24527 if test -f "$ltmain_in"; then
24528 test -f Makefile && make "$ltmain"
24534 ac_cpp='$CPP $CPPFLAGS'
24535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24544 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24545 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24546 { (exit 1); exit 1; }; }
24550 # Append the new tag name to the list of available tags.
24551 if test -n "$tagname" ; then
24552 available_tags="$available_tags $tagname"
24558 # Now substitute the updated list of available tags.
24559 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24560 mv "${ofile}T" "$ofile"
24564 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24565 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24566 { (exit 1); exit 1; }; }
24572 # This can be used to rebuild libtool when needed
24573 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24575 # Always use our own libtool.
24576 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24578 # Prevent multiple expansion
24600 if test "$lt_cv_dlopen_self" = "yes" ; then
24602 cat >>confdefs.h <<\_ACEOF
24603 #define CAN_DLOPEN_SELF 1
24608 etags_version=`$ETAGS --version 2>&1`
24609 case "$etags_version" in
24610 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24611 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24612 *) ETAGSFLAGS="" ;;
24614 ETAGSFLAGS=$ETAGSFLAGS
24617 if test "$WITH_LLVMGCCDIR" = "default" ; then
24618 # Extract the first word of "llvm-gcc", so it can be a program name with args.
24619 set dummy llvm-gcc; ac_word=$2
24620 echo "$as_me:$LINENO: checking for $ac_word" >&5
24621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24622 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24623 echo $ECHO_N "(cached) $ECHO_C" >&6
24627 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24631 for as_dir in $PATH
24634 test -z "$as_dir" && as_dir=.
24635 for ac_exec_ext in '' $ac_executable_extensions; do
24636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24637 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24644 test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24648 LLVMGCC=$ac_cv_path_LLVMGCC
24650 if test -n "$LLVMGCC"; then
24651 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24652 echo "${ECHO_T}$LLVMGCC" >&6
24654 echo "$as_me:$LINENO: result: no" >&5
24655 echo "${ECHO_T}no" >&6
24658 # Extract the first word of "llvm-g++", so it can be a program name with args.
24659 set dummy llvm-g++; ac_word=$2
24660 echo "$as_me:$LINENO: checking for $ac_word" >&5
24661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24662 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24663 echo $ECHO_N "(cached) $ECHO_C" >&6
24667 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24671 for as_dir in $PATH
24674 test -z "$as_dir" && as_dir=.
24675 for ac_exec_ext in '' $ac_executable_extensions; do
24676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24677 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24684 test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24688 LLVMGXX=$ac_cv_path_LLVMGXX
24690 if test -n "$LLVMGXX"; then
24691 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24692 echo "${ECHO_T}$LLVMGXX" >&6
24694 echo "$as_me:$LINENO: result: no" >&5
24695 echo "${ECHO_T}no" >&6
24699 LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24700 LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24707 echo "$as_me:$LINENO: checking tool compatibility" >&5
24708 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24721 if test "$GCC" != "yes" && test "$ICC" != "yes"
24723 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24724 echo "$as_me: error: gcc|icc required but not found" >&2;}
24725 { (exit 1); exit 1; }; }
24728 if test "$GXX" != "yes" && test "$IXX" != "yes"
24730 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24731 echo "$as_me: error: g++|icc required but not found" >&2;}
24732 { (exit 1); exit 1; }; }
24735 if test "$GCC" = "yes"
24737 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24738 if test "$gccmajor" -lt "3"
24740 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24741 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24742 { (exit 1); exit 1; }; }
24746 if test -z "$llvm_cv_gnu_make_command"
24748 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24749 echo "$as_me: error: GNU Make required but not found" >&2;}
24750 { (exit 1); exit 1; }; }
24753 echo "$as_me:$LINENO: result: ok" >&5
24754 echo "${ECHO_T}ok" >&6
24758 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24759 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24760 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24761 echo $ECHO_N "(cached) $ECHO_C" >&6
24763 ac_check_lib_save_LIBS=$LIBS
24765 cat >conftest.$ac_ext <<_ACEOF
24768 cat confdefs.h >>conftest.$ac_ext
24769 cat >>conftest.$ac_ext <<_ACEOF
24770 /* end confdefs.h. */
24772 /* Override any gcc2 internal prototype to avoid an error. */
24776 /* We use char because int might match the return type of a gcc2
24777 builtin and then its argument prototype would still apply. */
24787 rm -f conftest.$ac_objext conftest$ac_exeext
24788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24789 (eval $ac_link) 2>conftest.er1
24791 grep -v '^ *+' conftest.er1 >conftest.err
24793 cat conftest.err >&5
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); } &&
24796 { ac_try='test -z "$ac_c_werror_flag"
24797 || test ! -s conftest.err'
24798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24799 (eval $ac_try) 2>&5
24801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802 (exit $ac_status); }; } &&
24803 { ac_try='test -s conftest$ac_exeext'
24804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24805 (eval $ac_try) 2>&5
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); }; }; then
24809 ac_cv_lib_elf_elf_begin=yes
24811 echo "$as_me: failed program was:" >&5
24812 sed 's/^/| /' conftest.$ac_ext >&5
24814 ac_cv_lib_elf_elf_begin=no
24816 rm -f conftest.err conftest.$ac_objext \
24817 conftest$ac_exeext conftest.$ac_ext
24818 LIBS=$ac_check_lib_save_LIBS
24820 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24821 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24822 if test $ac_cv_lib_elf_elf_begin = yes; then
24823 cat >>confdefs.h <<_ACEOF
24824 #define HAVE_LIBELF 1
24832 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24833 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24834 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24835 echo $ECHO_N "(cached) $ECHO_C" >&6
24837 ac_func_search_save_LIBS=$LIBS
24838 ac_cv_search_lt_dlopen=no
24839 cat >conftest.$ac_ext <<_ACEOF
24842 cat confdefs.h >>conftest.$ac_ext
24843 cat >>conftest.$ac_ext <<_ACEOF
24844 /* end confdefs.h. */
24846 /* Override any gcc2 internal prototype to avoid an error. */
24850 /* We use char because int might match the return type of a gcc2
24851 builtin and then its argument prototype would still apply. */
24861 rm -f conftest.$ac_objext conftest$ac_exeext
24862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24863 (eval $ac_link) 2>conftest.er1
24865 grep -v '^ *+' conftest.er1 >conftest.err
24867 cat conftest.err >&5
24868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869 (exit $ac_status); } &&
24870 { ac_try='test -z "$ac_c_werror_flag"
24871 || test ! -s conftest.err'
24872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24873 (eval $ac_try) 2>&5
24875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876 (exit $ac_status); }; } &&
24877 { ac_try='test -s conftest$ac_exeext'
24878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24879 (eval $ac_try) 2>&5
24881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882 (exit $ac_status); }; }; then
24883 ac_cv_search_lt_dlopen="none required"
24885 echo "$as_me: failed program was:" >&5
24886 sed 's/^/| /' conftest.$ac_ext >&5
24889 rm -f conftest.err conftest.$ac_objext \
24890 conftest$ac_exeext conftest.$ac_ext
24891 if test "$ac_cv_search_lt_dlopen" = no; then
24892 for ac_lib in ltdl; do
24893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24894 cat >conftest.$ac_ext <<_ACEOF
24897 cat confdefs.h >>conftest.$ac_ext
24898 cat >>conftest.$ac_ext <<_ACEOF
24899 /* end confdefs.h. */
24901 /* Override any gcc2 internal prototype to avoid an error. */
24905 /* We use char because int might match the return type of a gcc2
24906 builtin and then its argument prototype would still apply. */
24916 rm -f conftest.$ac_objext conftest$ac_exeext
24917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24918 (eval $ac_link) 2>conftest.er1
24920 grep -v '^ *+' conftest.er1 >conftest.err
24922 cat conftest.err >&5
24923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); } &&
24925 { ac_try='test -z "$ac_c_werror_flag"
24926 || test ! -s conftest.err'
24927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24928 (eval $ac_try) 2>&5
24930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); }; } &&
24932 { ac_try='test -s conftest$ac_exeext'
24933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24934 (eval $ac_try) 2>&5
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); }; }; then
24938 ac_cv_search_lt_dlopen="-l$ac_lib"
24941 echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24945 rm -f conftest.err conftest.$ac_objext \
24946 conftest$ac_exeext conftest.$ac_ext
24949 LIBS=$ac_func_search_save_LIBS
24951 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24952 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24953 if test "$ac_cv_search_lt_dlopen" != no; then
24954 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24956 cat >>confdefs.h <<\_ACEOF
24957 #define HAVE_LT_DLOPEN 1
24961 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24962 not be available" >&5
24963 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24964 not be available" >&2;}
24968 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24969 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24970 if test "${ac_cv_search_dlopen+set}" = set; then
24971 echo $ECHO_N "(cached) $ECHO_C" >&6
24973 ac_func_search_save_LIBS=$LIBS
24974 ac_cv_search_dlopen=no
24975 cat >conftest.$ac_ext <<_ACEOF
24978 cat confdefs.h >>conftest.$ac_ext
24979 cat >>conftest.$ac_ext <<_ACEOF
24980 /* end confdefs.h. */
24982 /* Override any gcc2 internal prototype to avoid an error. */
24986 /* We use char because int might match the return type of a gcc2
24987 builtin and then its argument prototype would still apply. */
24997 rm -f conftest.$ac_objext conftest$ac_exeext
24998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24999 (eval $ac_link) 2>conftest.er1
25001 grep -v '^ *+' conftest.er1 >conftest.err
25003 cat conftest.err >&5
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } &&
25006 { ac_try='test -z "$ac_c_werror_flag"
25007 || test ! -s conftest.err'
25008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25009 (eval $ac_try) 2>&5
25011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012 (exit $ac_status); }; } &&
25013 { ac_try='test -s conftest$ac_exeext'
25014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25015 (eval $ac_try) 2>&5
25017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); }; }; then
25019 ac_cv_search_dlopen="none required"
25021 echo "$as_me: failed program was:" >&5
25022 sed 's/^/| /' conftest.$ac_ext >&5
25025 rm -f conftest.err conftest.$ac_objext \
25026 conftest$ac_exeext conftest.$ac_ext
25027 if test "$ac_cv_search_dlopen" = no; then
25028 for ac_lib in dl; do
25029 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25030 cat >conftest.$ac_ext <<_ACEOF
25033 cat confdefs.h >>conftest.$ac_ext
25034 cat >>conftest.$ac_ext <<_ACEOF
25035 /* end confdefs.h. */
25037 /* Override any gcc2 internal prototype to avoid an error. */
25041 /* We use char because int might match the return type of a gcc2
25042 builtin and then its argument prototype would still apply. */
25052 rm -f conftest.$ac_objext conftest$ac_exeext
25053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25054 (eval $ac_link) 2>conftest.er1
25056 grep -v '^ *+' conftest.er1 >conftest.err
25058 cat conftest.err >&5
25059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060 (exit $ac_status); } &&
25061 { ac_try='test -z "$ac_c_werror_flag"
25062 || test ! -s conftest.err'
25063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25064 (eval $ac_try) 2>&5
25066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067 (exit $ac_status); }; } &&
25068 { ac_try='test -s conftest$ac_exeext'
25069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25070 (eval $ac_try) 2>&5
25072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); }; }; then
25074 ac_cv_search_dlopen="-l$ac_lib"
25077 echo "$as_me: failed program was:" >&5
25078 sed 's/^/| /' conftest.$ac_ext >&5
25081 rm -f conftest.err conftest.$ac_objext \
25082 conftest$ac_exeext conftest.$ac_ext
25085 LIBS=$ac_func_search_save_LIBS
25087 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25088 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25089 if test "$ac_cv_search_dlopen" != no; then
25090 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25092 cat >>confdefs.h <<\_ACEOF
25093 #define HAVE_DLOPEN 1
25097 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25098 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25102 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25103 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25104 if test "${ac_cv_search_mallinfo+set}" = set; then
25105 echo $ECHO_N "(cached) $ECHO_C" >&6
25107 ac_func_search_save_LIBS=$LIBS
25108 ac_cv_search_mallinfo=no
25109 cat >conftest.$ac_ext <<_ACEOF
25112 cat confdefs.h >>conftest.$ac_ext
25113 cat >>conftest.$ac_ext <<_ACEOF
25114 /* end confdefs.h. */
25116 /* Override any gcc2 internal prototype to avoid an error. */
25120 /* We use char because int might match the return type of a gcc2
25121 builtin and then its argument prototype would still apply. */
25131 rm -f conftest.$ac_objext conftest$ac_exeext
25132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25133 (eval $ac_link) 2>conftest.er1
25135 grep -v '^ *+' conftest.er1 >conftest.err
25137 cat conftest.err >&5
25138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139 (exit $ac_status); } &&
25140 { ac_try='test -z "$ac_c_werror_flag"
25141 || test ! -s conftest.err'
25142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25143 (eval $ac_try) 2>&5
25145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25146 (exit $ac_status); }; } &&
25147 { ac_try='test -s conftest$ac_exeext'
25148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25149 (eval $ac_try) 2>&5
25151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152 (exit $ac_status); }; }; then
25153 ac_cv_search_mallinfo="none required"
25155 echo "$as_me: failed program was:" >&5
25156 sed 's/^/| /' conftest.$ac_ext >&5
25159 rm -f conftest.err conftest.$ac_objext \
25160 conftest$ac_exeext conftest.$ac_ext
25161 if test "$ac_cv_search_mallinfo" = no; then
25162 for ac_lib in malloc; do
25163 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25164 cat >conftest.$ac_ext <<_ACEOF
25167 cat confdefs.h >>conftest.$ac_ext
25168 cat >>conftest.$ac_ext <<_ACEOF
25169 /* end confdefs.h. */
25171 /* Override any gcc2 internal prototype to avoid an error. */
25175 /* We use char because int might match the return type of a gcc2
25176 builtin and then its argument prototype would still apply. */
25186 rm -f conftest.$ac_objext conftest$ac_exeext
25187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25188 (eval $ac_link) 2>conftest.er1
25190 grep -v '^ *+' conftest.er1 >conftest.err
25192 cat conftest.err >&5
25193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); } &&
25195 { ac_try='test -z "$ac_c_werror_flag"
25196 || test ! -s conftest.err'
25197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25198 (eval $ac_try) 2>&5
25200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201 (exit $ac_status); }; } &&
25202 { ac_try='test -s conftest$ac_exeext'
25203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25204 (eval $ac_try) 2>&5
25206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); }; }; then
25208 ac_cv_search_mallinfo="-l$ac_lib"
25211 echo "$as_me: failed program was:" >&5
25212 sed 's/^/| /' conftest.$ac_ext >&5
25215 rm -f conftest.err conftest.$ac_objext \
25216 conftest$ac_exeext conftest.$ac_ext
25219 LIBS=$ac_func_search_save_LIBS
25221 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25222 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25223 if test "$ac_cv_search_mallinfo" != no; then
25224 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25226 cat >>confdefs.h <<\_ACEOF
25227 #define HAVE_MALLINFO 1
25233 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25234 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25235 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25236 echo $ECHO_N "(cached) $ECHO_C" >&6
25238 ac_func_search_save_LIBS=$LIBS
25239 ac_cv_search_pthread_mutex_lock=no
25240 cat >conftest.$ac_ext <<_ACEOF
25243 cat confdefs.h >>conftest.$ac_ext
25244 cat >>conftest.$ac_ext <<_ACEOF
25245 /* end confdefs.h. */
25247 /* Override any gcc2 internal prototype to avoid an error. */
25251 /* We use char because int might match the return type of a gcc2
25252 builtin and then its argument prototype would still apply. */
25253 char pthread_mutex_lock ();
25257 pthread_mutex_lock ();
25262 rm -f conftest.$ac_objext conftest$ac_exeext
25263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25264 (eval $ac_link) 2>conftest.er1
25266 grep -v '^ *+' conftest.er1 >conftest.err
25268 cat conftest.err >&5
25269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270 (exit $ac_status); } &&
25271 { ac_try='test -z "$ac_c_werror_flag"
25272 || test ! -s conftest.err'
25273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25274 (eval $ac_try) 2>&5
25276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25277 (exit $ac_status); }; } &&
25278 { ac_try='test -s conftest$ac_exeext'
25279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25280 (eval $ac_try) 2>&5
25282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283 (exit $ac_status); }; }; then
25284 ac_cv_search_pthread_mutex_lock="none required"
25286 echo "$as_me: failed program was:" >&5
25287 sed 's/^/| /' conftest.$ac_ext >&5
25290 rm -f conftest.err conftest.$ac_objext \
25291 conftest$ac_exeext conftest.$ac_ext
25292 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25293 for ac_lib in pthread; do
25294 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25295 cat >conftest.$ac_ext <<_ACEOF
25298 cat confdefs.h >>conftest.$ac_ext
25299 cat >>conftest.$ac_ext <<_ACEOF
25300 /* end confdefs.h. */
25302 /* Override any gcc2 internal prototype to avoid an error. */
25306 /* We use char because int might match the return type of a gcc2
25307 builtin and then its argument prototype would still apply. */
25308 char pthread_mutex_lock ();
25312 pthread_mutex_lock ();
25317 rm -f conftest.$ac_objext conftest$ac_exeext
25318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25319 (eval $ac_link) 2>conftest.er1
25321 grep -v '^ *+' conftest.er1 >conftest.err
25323 cat conftest.err >&5
25324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325 (exit $ac_status); } &&
25326 { ac_try='test -z "$ac_c_werror_flag"
25327 || test ! -s conftest.err'
25328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25329 (eval $ac_try) 2>&5
25331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); }; } &&
25333 { ac_try='test -s conftest$ac_exeext'
25334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25335 (eval $ac_try) 2>&5
25337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338 (exit $ac_status); }; }; then
25339 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25342 echo "$as_me: failed program was:" >&5
25343 sed 's/^/| /' conftest.$ac_ext >&5
25346 rm -f conftest.err conftest.$ac_objext \
25347 conftest$ac_exeext conftest.$ac_ext
25350 LIBS=$ac_func_search_save_LIBS
25352 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25353 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25354 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25355 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25357 cat >>confdefs.h <<\_ACEOF
25358 #define HAVE_PTHREAD_MUTEX_LOCK 1
25370 ac_header_dirent=no
25371 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25372 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25373 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25374 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25376 echo $ECHO_N "(cached) $ECHO_C" >&6
25378 cat >conftest.$ac_ext <<_ACEOF
25381 cat confdefs.h >>conftest.$ac_ext
25382 cat >>conftest.$ac_ext <<_ACEOF
25383 /* end confdefs.h. */
25384 #include <sys/types.h>
25396 rm -f conftest.$ac_objext
25397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25398 (eval $ac_compile) 2>conftest.er1
25400 grep -v '^ *+' conftest.er1 >conftest.err
25402 cat conftest.err >&5
25403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); } &&
25405 { ac_try='test -z "$ac_c_werror_flag"
25406 || test ! -s conftest.err'
25407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25408 (eval $ac_try) 2>&5
25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411 (exit $ac_status); }; } &&
25412 { ac_try='test -s conftest.$ac_objext'
25413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25414 (eval $ac_try) 2>&5
25416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417 (exit $ac_status); }; }; then
25418 eval "$as_ac_Header=yes"
25420 echo "$as_me: failed program was:" >&5
25421 sed 's/^/| /' conftest.$ac_ext >&5
25423 eval "$as_ac_Header=no"
25425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25430 cat >>confdefs.h <<_ACEOF
25431 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25434 ac_header_dirent=$ac_hdr; break
25438 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25439 if test $ac_header_dirent = dirent.h; then
25440 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25441 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25442 if test "${ac_cv_search_opendir+set}" = set; then
25443 echo $ECHO_N "(cached) $ECHO_C" >&6
25445 ac_func_search_save_LIBS=$LIBS
25446 ac_cv_search_opendir=no
25447 cat >conftest.$ac_ext <<_ACEOF
25450 cat confdefs.h >>conftest.$ac_ext
25451 cat >>conftest.$ac_ext <<_ACEOF
25452 /* end confdefs.h. */
25454 /* Override any gcc2 internal prototype to avoid an error. */
25458 /* We use char because int might match the return type of a gcc2
25459 builtin and then its argument prototype would still apply. */
25469 rm -f conftest.$ac_objext conftest$ac_exeext
25470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25471 (eval $ac_link) 2>conftest.er1
25473 grep -v '^ *+' conftest.er1 >conftest.err
25475 cat conftest.err >&5
25476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); } &&
25478 { ac_try='test -z "$ac_c_werror_flag"
25479 || test ! -s conftest.err'
25480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481 (eval $ac_try) 2>&5
25483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484 (exit $ac_status); }; } &&
25485 { ac_try='test -s conftest$ac_exeext'
25486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25487 (eval $ac_try) 2>&5
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); }; }; then
25491 ac_cv_search_opendir="none required"
25493 echo "$as_me: failed program was:" >&5
25494 sed 's/^/| /' conftest.$ac_ext >&5
25497 rm -f conftest.err conftest.$ac_objext \
25498 conftest$ac_exeext conftest.$ac_ext
25499 if test "$ac_cv_search_opendir" = no; then
25500 for ac_lib in dir; do
25501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25502 cat >conftest.$ac_ext <<_ACEOF
25505 cat confdefs.h >>conftest.$ac_ext
25506 cat >>conftest.$ac_ext <<_ACEOF
25507 /* end confdefs.h. */
25509 /* Override any gcc2 internal prototype to avoid an error. */
25513 /* We use char because int might match the return type of a gcc2
25514 builtin and then its argument prototype would still apply. */
25524 rm -f conftest.$ac_objext conftest$ac_exeext
25525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25526 (eval $ac_link) 2>conftest.er1
25528 grep -v '^ *+' conftest.er1 >conftest.err
25530 cat conftest.err >&5
25531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532 (exit $ac_status); } &&
25533 { ac_try='test -z "$ac_c_werror_flag"
25534 || test ! -s conftest.err'
25535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25536 (eval $ac_try) 2>&5
25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); }; } &&
25540 { ac_try='test -s conftest$ac_exeext'
25541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25542 (eval $ac_try) 2>&5
25544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); }; }; then
25546 ac_cv_search_opendir="-l$ac_lib"
25549 echo "$as_me: failed program was:" >&5
25550 sed 's/^/| /' conftest.$ac_ext >&5
25553 rm -f conftest.err conftest.$ac_objext \
25554 conftest$ac_exeext conftest.$ac_ext
25557 LIBS=$ac_func_search_save_LIBS
25559 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25560 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25561 if test "$ac_cv_search_opendir" != no; then
25562 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25567 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25568 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25569 if test "${ac_cv_search_opendir+set}" = set; then
25570 echo $ECHO_N "(cached) $ECHO_C" >&6
25572 ac_func_search_save_LIBS=$LIBS
25573 ac_cv_search_opendir=no
25574 cat >conftest.$ac_ext <<_ACEOF
25577 cat confdefs.h >>conftest.$ac_ext
25578 cat >>conftest.$ac_ext <<_ACEOF
25579 /* end confdefs.h. */
25581 /* Override any gcc2 internal prototype to avoid an error. */
25585 /* We use char because int might match the return type of a gcc2
25586 builtin and then its argument prototype would still apply. */
25596 rm -f conftest.$ac_objext conftest$ac_exeext
25597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25598 (eval $ac_link) 2>conftest.er1
25600 grep -v '^ *+' conftest.er1 >conftest.err
25602 cat conftest.err >&5
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); } &&
25605 { ac_try='test -z "$ac_c_werror_flag"
25606 || test ! -s conftest.err'
25607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25608 (eval $ac_try) 2>&5
25610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611 (exit $ac_status); }; } &&
25612 { ac_try='test -s conftest$ac_exeext'
25613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25614 (eval $ac_try) 2>&5
25616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); }; }; then
25618 ac_cv_search_opendir="none required"
25620 echo "$as_me: failed program was:" >&5
25621 sed 's/^/| /' conftest.$ac_ext >&5
25624 rm -f conftest.err conftest.$ac_objext \
25625 conftest$ac_exeext conftest.$ac_ext
25626 if test "$ac_cv_search_opendir" = no; then
25627 for ac_lib in x; do
25628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25629 cat >conftest.$ac_ext <<_ACEOF
25632 cat confdefs.h >>conftest.$ac_ext
25633 cat >>conftest.$ac_ext <<_ACEOF
25634 /* end confdefs.h. */
25636 /* Override any gcc2 internal prototype to avoid an error. */
25640 /* We use char because int might match the return type of a gcc2
25641 builtin and then its argument prototype would still apply. */
25651 rm -f conftest.$ac_objext conftest$ac_exeext
25652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25653 (eval $ac_link) 2>conftest.er1
25655 grep -v '^ *+' conftest.er1 >conftest.err
25657 cat conftest.err >&5
25658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); } &&
25660 { ac_try='test -z "$ac_c_werror_flag"
25661 || test ! -s conftest.err'
25662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25663 (eval $ac_try) 2>&5
25665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666 (exit $ac_status); }; } &&
25667 { ac_try='test -s conftest$ac_exeext'
25668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25669 (eval $ac_try) 2>&5
25671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672 (exit $ac_status); }; }; then
25673 ac_cv_search_opendir="-l$ac_lib"
25676 echo "$as_me: failed program was:" >&5
25677 sed 's/^/| /' conftest.$ac_ext >&5
25680 rm -f conftest.err conftest.$ac_objext \
25681 conftest$ac_exeext conftest.$ac_ext
25684 LIBS=$ac_func_search_save_LIBS
25686 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25687 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25688 if test "$ac_cv_search_opendir" != no; then
25689 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25695 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25696 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25697 if test "${ac_cv_header_mmap_anon+set}" = set; then
25698 echo $ECHO_N "(cached) $ECHO_C" >&6
25701 ac_cpp='$CPP $CPPFLAGS'
25702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25706 cat >conftest.$ac_ext <<_ACEOF
25709 cat confdefs.h >>conftest.$ac_ext
25710 cat >>conftest.$ac_ext <<_ACEOF
25711 /* end confdefs.h. */
25712 #include <sys/mman.h>
25713 #include <unistd.h>
25718 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25723 rm -f conftest.$ac_objext
25724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25725 (eval $ac_compile) 2>conftest.er1
25727 grep -v '^ *+' conftest.er1 >conftest.err
25729 cat conftest.err >&5
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); } &&
25732 { ac_try='test -z "$ac_c_werror_flag"
25733 || test ! -s conftest.err'
25734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25735 (eval $ac_try) 2>&5
25737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); }; } &&
25739 { ac_try='test -s conftest.$ac_objext'
25740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25741 (eval $ac_try) 2>&5
25743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744 (exit $ac_status); }; }; then
25745 ac_cv_header_mmap_anon=yes
25747 echo "$as_me: failed program was:" >&5
25748 sed 's/^/| /' conftest.$ac_ext >&5
25750 ac_cv_header_mmap_anon=no
25752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25754 ac_cpp='$CPP $CPPFLAGS'
25755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25761 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25762 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25763 if test "$ac_cv_header_mmap_anon" = yes; then
25765 cat >>confdefs.h <<\_ACEOF
25766 #define HAVE_MMAP_ANONYMOUS 1
25771 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25772 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25773 if test "${ac_cv_header_stat_broken+set}" = set; then
25774 echo $ECHO_N "(cached) $ECHO_C" >&6
25776 cat >conftest.$ac_ext <<_ACEOF
25779 cat confdefs.h >>conftest.$ac_ext
25780 cat >>conftest.$ac_ext <<_ACEOF
25781 /* end confdefs.h. */
25782 #include <sys/types.h>
25783 #include <sys/stat.h>
25785 #if defined(S_ISBLK) && defined(S_IFDIR)
25786 # if S_ISBLK (S_IFDIR)
25791 #if defined(S_ISBLK) && defined(S_IFCHR)
25792 # if S_ISBLK (S_IFCHR)
25797 #if defined(S_ISLNK) && defined(S_IFREG)
25798 # if S_ISLNK (S_IFREG)
25803 #if defined(S_ISSOCK) && defined(S_IFREG)
25804 # if S_ISSOCK (S_IFREG)
25810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25811 $EGREP "You lose" >/dev/null 2>&1; then
25812 ac_cv_header_stat_broken=yes
25814 ac_cv_header_stat_broken=no
25819 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25820 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25821 if test $ac_cv_header_stat_broken = yes; then
25823 cat >>confdefs.h <<\_ACEOF
25824 #define STAT_MACROS_BROKEN 1
25829 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25830 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25831 if test "${ac_cv_header_stdc+set}" = set; then
25832 echo $ECHO_N "(cached) $ECHO_C" >&6
25834 cat >conftest.$ac_ext <<_ACEOF
25837 cat confdefs.h >>conftest.$ac_ext
25838 cat >>conftest.$ac_ext <<_ACEOF
25839 /* end confdefs.h. */
25840 #include <stdlib.h>
25841 #include <stdarg.h>
25842 #include <string.h>
25853 rm -f conftest.$ac_objext
25854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25855 (eval $ac_compile) 2>conftest.er1
25857 grep -v '^ *+' conftest.er1 >conftest.err
25859 cat conftest.err >&5
25860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861 (exit $ac_status); } &&
25862 { ac_try='test -z "$ac_c_werror_flag"
25863 || test ! -s conftest.err'
25864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25865 (eval $ac_try) 2>&5
25867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); }; } &&
25869 { ac_try='test -s conftest.$ac_objext'
25870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25871 (eval $ac_try) 2>&5
25873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); }; }; then
25875 ac_cv_header_stdc=yes
25877 echo "$as_me: failed program was:" >&5
25878 sed 's/^/| /' conftest.$ac_ext >&5
25880 ac_cv_header_stdc=no
25882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25884 if test $ac_cv_header_stdc = yes; then
25885 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25886 cat >conftest.$ac_ext <<_ACEOF
25889 cat confdefs.h >>conftest.$ac_ext
25890 cat >>conftest.$ac_ext <<_ACEOF
25891 /* end confdefs.h. */
25892 #include <string.h>
25895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25896 $EGREP "memchr" >/dev/null 2>&1; then
25899 ac_cv_header_stdc=no
25905 if test $ac_cv_header_stdc = yes; then
25906 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25907 cat >conftest.$ac_ext <<_ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h. */
25913 #include <stdlib.h>
25916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25917 $EGREP "free" >/dev/null 2>&1; then
25920 ac_cv_header_stdc=no
25926 if test $ac_cv_header_stdc = yes; then
25927 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25928 if test "$cross_compiling" = yes; then
25931 cat >conftest.$ac_ext <<_ACEOF
25934 cat confdefs.h >>conftest.$ac_ext
25935 cat >>conftest.$ac_ext <<_ACEOF
25936 /* end confdefs.h. */
25938 #if ((' ' & 0x0FF) == 0x020)
25939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25942 # define ISLOWER(c) \
25943 (('a' <= (c) && (c) <= 'i') \
25944 || ('j' <= (c) && (c) <= 'r') \
25945 || ('s' <= (c) && (c) <= 'z'))
25946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25954 for (i = 0; i < 256; i++)
25955 if (XOR (islower (i), ISLOWER (i))
25956 || toupper (i) != TOUPPER (i))
25961 rm -f conftest$ac_exeext
25962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25963 (eval $ac_link) 2>&5
25965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25968 (eval $ac_try) 2>&5
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); }; }; then
25974 echo "$as_me: program exited with status $ac_status" >&5
25975 echo "$as_me: failed program was:" >&5
25976 sed 's/^/| /' conftest.$ac_ext >&5
25978 ( exit $ac_status )
25979 ac_cv_header_stdc=no
25981 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25985 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25986 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25987 if test $ac_cv_header_stdc = yes; then
25989 cat >>confdefs.h <<\_ACEOF
25990 #define STDC_HEADERS 1
25995 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25996 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25997 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25998 echo $ECHO_N "(cached) $ECHO_C" >&6
26000 cat >conftest.$ac_ext <<_ACEOF
26003 cat confdefs.h >>conftest.$ac_ext
26004 cat >>conftest.$ac_ext <<_ACEOF
26005 /* end confdefs.h. */
26006 #include <sys/types.h>
26007 #include <sys/wait.h>
26008 #ifndef WEXITSTATUS
26009 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26012 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26020 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26025 rm -f conftest.$ac_objext
26026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26027 (eval $ac_compile) 2>conftest.er1
26029 grep -v '^ *+' conftest.er1 >conftest.err
26031 cat conftest.err >&5
26032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); } &&
26034 { ac_try='test -z "$ac_c_werror_flag"
26035 || test ! -s conftest.err'
26036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26037 (eval $ac_try) 2>&5
26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); }; } &&
26041 { ac_try='test -s conftest.$ac_objext'
26042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26043 (eval $ac_try) 2>&5
26045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046 (exit $ac_status); }; }; then
26047 ac_cv_header_sys_wait_h=yes
26049 echo "$as_me: failed program was:" >&5
26050 sed 's/^/| /' conftest.$ac_ext >&5
26052 ac_cv_header_sys_wait_h=no
26054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26056 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26057 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26058 if test $ac_cv_header_sys_wait_h = yes; then
26060 cat >>confdefs.h <<\_ACEOF
26061 #define HAVE_SYS_WAIT_H 1
26066 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26067 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26068 if test "${ac_cv_header_time+set}" = set; then
26069 echo $ECHO_N "(cached) $ECHO_C" >&6
26071 cat >conftest.$ac_ext <<_ACEOF
26074 cat confdefs.h >>conftest.$ac_ext
26075 cat >>conftest.$ac_ext <<_ACEOF
26076 /* end confdefs.h. */
26077 #include <sys/types.h>
26078 #include <sys/time.h>
26084 if ((struct tm *) 0)
26090 rm -f conftest.$ac_objext
26091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26092 (eval $ac_compile) 2>conftest.er1
26094 grep -v '^ *+' conftest.er1 >conftest.err
26096 cat conftest.err >&5
26097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098 (exit $ac_status); } &&
26099 { ac_try='test -z "$ac_c_werror_flag"
26100 || test ! -s conftest.err'
26101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26102 (eval $ac_try) 2>&5
26104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105 (exit $ac_status); }; } &&
26106 { ac_try='test -s conftest.$ac_objext'
26107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26108 (eval $ac_try) 2>&5
26110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); }; }; then
26112 ac_cv_header_time=yes
26114 echo "$as_me: failed program was:" >&5
26115 sed 's/^/| /' conftest.$ac_ext >&5
26117 ac_cv_header_time=no
26119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26121 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26122 echo "${ECHO_T}$ac_cv_header_time" >&6
26123 if test $ac_cv_header_time = yes; then
26125 cat >>confdefs.h <<\_ACEOF
26126 #define TIME_WITH_SYS_TIME 1
26138 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26142 echo "$as_me:$LINENO: checking for $ac_header" >&5
26143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26145 echo $ECHO_N "(cached) $ECHO_C" >&6
26147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26150 # Is the header compilable?
26151 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26153 cat >conftest.$ac_ext <<_ACEOF
26156 cat confdefs.h >>conftest.$ac_ext
26157 cat >>conftest.$ac_ext <<_ACEOF
26158 /* end confdefs.h. */
26159 $ac_includes_default
26160 #include <$ac_header>
26162 rm -f conftest.$ac_objext
26163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26164 (eval $ac_compile) 2>conftest.er1
26166 grep -v '^ *+' conftest.er1 >conftest.err
26168 cat conftest.err >&5
26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170 (exit $ac_status); } &&
26171 { ac_try='test -z "$ac_c_werror_flag"
26172 || test ! -s conftest.err'
26173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26174 (eval $ac_try) 2>&5
26176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177 (exit $ac_status); }; } &&
26178 { ac_try='test -s conftest.$ac_objext'
26179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26180 (eval $ac_try) 2>&5
26182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183 (exit $ac_status); }; }; then
26184 ac_header_compiler=yes
26186 echo "$as_me: failed program was:" >&5
26187 sed 's/^/| /' conftest.$ac_ext >&5
26189 ac_header_compiler=no
26191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26193 echo "${ECHO_T}$ac_header_compiler" >&6
26195 # Is the header present?
26196 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26198 cat >conftest.$ac_ext <<_ACEOF
26201 cat confdefs.h >>conftest.$ac_ext
26202 cat >>conftest.$ac_ext <<_ACEOF
26203 /* end confdefs.h. */
26204 #include <$ac_header>
26206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26209 grep -v '^ *+' conftest.er1 >conftest.err
26211 cat conftest.err >&5
26212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213 (exit $ac_status); } >/dev/null; then
26214 if test -s conftest.err; then
26215 ac_cpp_err=$ac_c_preproc_warn_flag
26216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26223 if test -z "$ac_cpp_err"; then
26224 ac_header_preproc=yes
26226 echo "$as_me: failed program was:" >&5
26227 sed 's/^/| /' conftest.$ac_ext >&5
26229 ac_header_preproc=no
26231 rm -f conftest.err conftest.$ac_ext
26232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26233 echo "${ECHO_T}$ac_header_preproc" >&6
26235 # So? What about this header?
26236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26242 ac_header_preproc=yes
26245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26252 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26259 ## ----------------------------------- ##
26260 ## Report this to llvmbugs@cs.uiuc.edu ##
26261 ## ----------------------------------- ##
26264 sed "s/^/$as_me: WARNING: /" >&2
26267 echo "$as_me:$LINENO: checking for $ac_header" >&5
26268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26270 echo $ECHO_N "(cached) $ECHO_C" >&6
26272 eval "$as_ac_Header=\$ac_header_preproc"
26274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26279 cat >>confdefs.h <<_ACEOF
26280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26293 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26297 echo "$as_me:$LINENO: checking for $ac_header" >&5
26298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26300 echo $ECHO_N "(cached) $ECHO_C" >&6
26302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26305 # Is the header compilable?
26306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26308 cat >conftest.$ac_ext <<_ACEOF
26311 cat confdefs.h >>conftest.$ac_ext
26312 cat >>conftest.$ac_ext <<_ACEOF
26313 /* end confdefs.h. */
26314 $ac_includes_default
26315 #include <$ac_header>
26317 rm -f conftest.$ac_objext
26318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26319 (eval $ac_compile) 2>conftest.er1
26321 grep -v '^ *+' conftest.er1 >conftest.err
26323 cat conftest.err >&5
26324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325 (exit $ac_status); } &&
26326 { ac_try='test -z "$ac_c_werror_flag"
26327 || test ! -s conftest.err'
26328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26329 (eval $ac_try) 2>&5
26331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332 (exit $ac_status); }; } &&
26333 { ac_try='test -s conftest.$ac_objext'
26334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26335 (eval $ac_try) 2>&5
26337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26338 (exit $ac_status); }; }; then
26339 ac_header_compiler=yes
26341 echo "$as_me: failed program was:" >&5
26342 sed 's/^/| /' conftest.$ac_ext >&5
26344 ac_header_compiler=no
26346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26348 echo "${ECHO_T}$ac_header_compiler" >&6
26350 # Is the header present?
26351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26353 cat >conftest.$ac_ext <<_ACEOF
26356 cat confdefs.h >>conftest.$ac_ext
26357 cat >>conftest.$ac_ext <<_ACEOF
26358 /* end confdefs.h. */
26359 #include <$ac_header>
26361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26364 grep -v '^ *+' conftest.er1 >conftest.err
26366 cat conftest.err >&5
26367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368 (exit $ac_status); } >/dev/null; then
26369 if test -s conftest.err; then
26370 ac_cpp_err=$ac_c_preproc_warn_flag
26371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26378 if test -z "$ac_cpp_err"; then
26379 ac_header_preproc=yes
26381 echo "$as_me: failed program was:" >&5
26382 sed 's/^/| /' conftest.$ac_ext >&5
26384 ac_header_preproc=no
26386 rm -f conftest.err conftest.$ac_ext
26387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26388 echo "${ECHO_T}$ac_header_preproc" >&6
26390 # So? What about this header?
26391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26397 ac_header_preproc=yes
26400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26414 ## ----------------------------------- ##
26415 ## Report this to llvmbugs@cs.uiuc.edu ##
26416 ## ----------------------------------- ##
26419 sed "s/^/$as_me: WARNING: /" >&2
26422 echo "$as_me:$LINENO: checking for $ac_header" >&5
26423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26425 echo $ECHO_N "(cached) $ECHO_C" >&6
26427 eval "$as_ac_Header=\$ac_header_preproc"
26429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26434 cat >>confdefs.h <<_ACEOF
26435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26447 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26451 echo "$as_me:$LINENO: checking for $ac_header" >&5
26452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26454 echo $ECHO_N "(cached) $ECHO_C" >&6
26456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26459 # Is the header compilable?
26460 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26462 cat >conftest.$ac_ext <<_ACEOF
26465 cat confdefs.h >>conftest.$ac_ext
26466 cat >>conftest.$ac_ext <<_ACEOF
26467 /* end confdefs.h. */
26468 $ac_includes_default
26469 #include <$ac_header>
26471 rm -f conftest.$ac_objext
26472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26473 (eval $ac_compile) 2>conftest.er1
26475 grep -v '^ *+' conftest.er1 >conftest.err
26477 cat conftest.err >&5
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); } &&
26480 { ac_try='test -z "$ac_c_werror_flag"
26481 || test ! -s conftest.err'
26482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483 (eval $ac_try) 2>&5
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); }; } &&
26487 { ac_try='test -s conftest.$ac_objext'
26488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489 (eval $ac_try) 2>&5
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); }; }; then
26493 ac_header_compiler=yes
26495 echo "$as_me: failed program was:" >&5
26496 sed 's/^/| /' conftest.$ac_ext >&5
26498 ac_header_compiler=no
26500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26502 echo "${ECHO_T}$ac_header_compiler" >&6
26504 # Is the header present?
26505 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26507 cat >conftest.$ac_ext <<_ACEOF
26510 cat confdefs.h >>conftest.$ac_ext
26511 cat >>conftest.$ac_ext <<_ACEOF
26512 /* end confdefs.h. */
26513 #include <$ac_header>
26515 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26518 grep -v '^ *+' conftest.er1 >conftest.err
26520 cat conftest.err >&5
26521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522 (exit $ac_status); } >/dev/null; then
26523 if test -s conftest.err; then
26524 ac_cpp_err=$ac_c_preproc_warn_flag
26525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26532 if test -z "$ac_cpp_err"; then
26533 ac_header_preproc=yes
26535 echo "$as_me: failed program was:" >&5
26536 sed 's/^/| /' conftest.$ac_ext >&5
26538 ac_header_preproc=no
26540 rm -f conftest.err conftest.$ac_ext
26541 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26542 echo "${ECHO_T}$ac_header_preproc" >&6
26544 # So? What about this header?
26545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26551 ac_header_preproc=yes
26554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26561 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26568 ## ----------------------------------- ##
26569 ## Report this to llvmbugs@cs.uiuc.edu ##
26570 ## ----------------------------------- ##
26573 sed "s/^/$as_me: WARNING: /" >&2
26576 echo "$as_me:$LINENO: checking for $ac_header" >&5
26577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26579 echo $ECHO_N "(cached) $ECHO_C" >&6
26581 eval "$as_ac_Header=\$ac_header_preproc"
26583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26588 cat >>confdefs.h <<_ACEOF
26589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26598 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26602 echo "$as_me:$LINENO: checking for $ac_header" >&5
26603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26605 echo $ECHO_N "(cached) $ECHO_C" >&6
26607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26610 # Is the header compilable?
26611 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26613 cat >conftest.$ac_ext <<_ACEOF
26616 cat confdefs.h >>conftest.$ac_ext
26617 cat >>conftest.$ac_ext <<_ACEOF
26618 /* end confdefs.h. */
26619 $ac_includes_default
26620 #include <$ac_header>
26622 rm -f conftest.$ac_objext
26623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26624 (eval $ac_compile) 2>conftest.er1
26626 grep -v '^ *+' conftest.er1 >conftest.err
26628 cat conftest.err >&5
26629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26630 (exit $ac_status); } &&
26631 { ac_try='test -z "$ac_c_werror_flag"
26632 || test ! -s conftest.err'
26633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26634 (eval $ac_try) 2>&5
26636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637 (exit $ac_status); }; } &&
26638 { ac_try='test -s conftest.$ac_objext'
26639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26640 (eval $ac_try) 2>&5
26642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26643 (exit $ac_status); }; }; then
26644 ac_header_compiler=yes
26646 echo "$as_me: failed program was:" >&5
26647 sed 's/^/| /' conftest.$ac_ext >&5
26649 ac_header_compiler=no
26651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26652 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26653 echo "${ECHO_T}$ac_header_compiler" >&6
26655 # Is the header present?
26656 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26658 cat >conftest.$ac_ext <<_ACEOF
26661 cat confdefs.h >>conftest.$ac_ext
26662 cat >>conftest.$ac_ext <<_ACEOF
26663 /* end confdefs.h. */
26664 #include <$ac_header>
26666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26669 grep -v '^ *+' conftest.er1 >conftest.err
26671 cat conftest.err >&5
26672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26673 (exit $ac_status); } >/dev/null; then
26674 if test -s conftest.err; then
26675 ac_cpp_err=$ac_c_preproc_warn_flag
26676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26683 if test -z "$ac_cpp_err"; then
26684 ac_header_preproc=yes
26686 echo "$as_me: failed program was:" >&5
26687 sed 's/^/| /' conftest.$ac_ext >&5
26689 ac_header_preproc=no
26691 rm -f conftest.err conftest.$ac_ext
26692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26693 echo "${ECHO_T}$ac_header_preproc" >&6
26695 # So? What about this header?
26696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26702 ac_header_preproc=yes
26705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26712 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26719 ## ----------------------------------- ##
26720 ## Report this to llvmbugs@cs.uiuc.edu ##
26721 ## ----------------------------------- ##
26724 sed "s/^/$as_me: WARNING: /" >&2
26727 echo "$as_me:$LINENO: checking for $ac_header" >&5
26728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26730 echo $ECHO_N "(cached) $ECHO_C" >&6
26732 eval "$as_ac_Header=\$ac_header_preproc"
26734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26739 cat >>confdefs.h <<_ACEOF
26740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26749 echo "$as_me:$LINENO: checking for pid_t" >&5
26750 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26751 if test "${ac_cv_type_pid_t+set}" = set; then
26752 echo $ECHO_N "(cached) $ECHO_C" >&6
26754 cat >conftest.$ac_ext <<_ACEOF
26757 cat confdefs.h >>conftest.$ac_ext
26758 cat >>conftest.$ac_ext <<_ACEOF
26759 /* end confdefs.h. */
26760 $ac_includes_default
26766 if (sizeof (pid_t))
26772 rm -f conftest.$ac_objext
26773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26774 (eval $ac_compile) 2>conftest.er1
26776 grep -v '^ *+' conftest.er1 >conftest.err
26778 cat conftest.err >&5
26779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780 (exit $ac_status); } &&
26781 { ac_try='test -z "$ac_c_werror_flag"
26782 || test ! -s conftest.err'
26783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26784 (eval $ac_try) 2>&5
26786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787 (exit $ac_status); }; } &&
26788 { ac_try='test -s conftest.$ac_objext'
26789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26790 (eval $ac_try) 2>&5
26792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26793 (exit $ac_status); }; }; then
26794 ac_cv_type_pid_t=yes
26796 echo "$as_me: failed program was:" >&5
26797 sed 's/^/| /' conftest.$ac_ext >&5
26799 ac_cv_type_pid_t=no
26801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26803 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26804 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26805 if test $ac_cv_type_pid_t = yes; then
26809 cat >>confdefs.h <<_ACEOF
26815 echo "$as_me:$LINENO: checking for size_t" >&5
26816 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26817 if test "${ac_cv_type_size_t+set}" = set; then
26818 echo $ECHO_N "(cached) $ECHO_C" >&6
26820 cat >conftest.$ac_ext <<_ACEOF
26823 cat confdefs.h >>conftest.$ac_ext
26824 cat >>conftest.$ac_ext <<_ACEOF
26825 /* end confdefs.h. */
26826 $ac_includes_default
26832 if (sizeof (size_t))
26838 rm -f conftest.$ac_objext
26839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26840 (eval $ac_compile) 2>conftest.er1
26842 grep -v '^ *+' conftest.er1 >conftest.err
26844 cat conftest.err >&5
26845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846 (exit $ac_status); } &&
26847 { ac_try='test -z "$ac_c_werror_flag"
26848 || test ! -s conftest.err'
26849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26850 (eval $ac_try) 2>&5
26852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853 (exit $ac_status); }; } &&
26854 { ac_try='test -s conftest.$ac_objext'
26855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26856 (eval $ac_try) 2>&5
26858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26859 (exit $ac_status); }; }; then
26860 ac_cv_type_size_t=yes
26862 echo "$as_me: failed program was:" >&5
26863 sed 's/^/| /' conftest.$ac_ext >&5
26865 ac_cv_type_size_t=no
26867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26869 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26870 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26871 if test $ac_cv_type_size_t = yes; then
26875 cat >>confdefs.h <<_ACEOF
26876 #define size_t unsigned
26881 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26882 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26883 if test "${ac_cv_type_signal+set}" = set; then
26884 echo $ECHO_N "(cached) $ECHO_C" >&6
26886 cat >conftest.$ac_ext <<_ACEOF
26889 cat confdefs.h >>conftest.$ac_ext
26890 cat >>conftest.$ac_ext <<_ACEOF
26891 /* end confdefs.h. */
26892 #include <sys/types.h>
26893 #include <signal.h>
26898 extern "C" void (*signal (int, void (*)(int)))(int);
26900 void (*signal ()) ();
26911 rm -f conftest.$ac_objext
26912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26913 (eval $ac_compile) 2>conftest.er1
26915 grep -v '^ *+' conftest.er1 >conftest.err
26917 cat conftest.err >&5
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); } &&
26920 { ac_try='test -z "$ac_c_werror_flag"
26921 || test ! -s conftest.err'
26922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26923 (eval $ac_try) 2>&5
26925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26926 (exit $ac_status); }; } &&
26927 { ac_try='test -s conftest.$ac_objext'
26928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26929 (eval $ac_try) 2>&5
26931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932 (exit $ac_status); }; }; then
26933 ac_cv_type_signal=void
26935 echo "$as_me: failed program was:" >&5
26936 sed 's/^/| /' conftest.$ac_ext >&5
26938 ac_cv_type_signal=int
26940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26942 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26943 echo "${ECHO_T}$ac_cv_type_signal" >&6
26945 cat >>confdefs.h <<_ACEOF
26946 #define RETSIGTYPE $ac_cv_type_signal
26950 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26951 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26952 if test "${ac_cv_struct_tm+set}" = set; then
26953 echo $ECHO_N "(cached) $ECHO_C" >&6
26955 cat >conftest.$ac_ext <<_ACEOF
26958 cat confdefs.h >>conftest.$ac_ext
26959 cat >>conftest.$ac_ext <<_ACEOF
26960 /* end confdefs.h. */
26961 #include <sys/types.h>
26967 struct tm *tp; tp->tm_sec;
26972 rm -f conftest.$ac_objext
26973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26974 (eval $ac_compile) 2>conftest.er1
26976 grep -v '^ *+' conftest.er1 >conftest.err
26978 cat conftest.err >&5
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); } &&
26981 { ac_try='test -z "$ac_c_werror_flag"
26982 || test ! -s conftest.err'
26983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26984 (eval $ac_try) 2>&5
26986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987 (exit $ac_status); }; } &&
26988 { ac_try='test -s conftest.$ac_objext'
26989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26990 (eval $ac_try) 2>&5
26992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993 (exit $ac_status); }; }; then
26994 ac_cv_struct_tm=time.h
26996 echo "$as_me: failed program was:" >&5
26997 sed 's/^/| /' conftest.$ac_ext >&5
26999 ac_cv_struct_tm=sys/time.h
27001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27003 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27004 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27005 if test $ac_cv_struct_tm = sys/time.h; then
27007 cat >>confdefs.h <<\_ACEOF
27008 #define TM_IN_SYS_TIME 1
27013 echo "$as_me:$LINENO: checking for int64_t" >&5
27014 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27015 if test "${ac_cv_type_int64_t+set}" = set; then
27016 echo $ECHO_N "(cached) $ECHO_C" >&6
27018 cat >conftest.$ac_ext <<_ACEOF
27021 cat confdefs.h >>conftest.$ac_ext
27022 cat >>conftest.$ac_ext <<_ACEOF
27023 /* end confdefs.h. */
27024 $ac_includes_default
27030 if (sizeof (int64_t))
27036 rm -f conftest.$ac_objext
27037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27038 (eval $ac_compile) 2>conftest.er1
27040 grep -v '^ *+' conftest.er1 >conftest.err
27042 cat conftest.err >&5
27043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27044 (exit $ac_status); } &&
27045 { ac_try='test -z "$ac_c_werror_flag"
27046 || test ! -s conftest.err'
27047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27048 (eval $ac_try) 2>&5
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); }; } &&
27052 { ac_try='test -s conftest.$ac_objext'
27053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27054 (eval $ac_try) 2>&5
27056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27057 (exit $ac_status); }; }; then
27058 ac_cv_type_int64_t=yes
27060 echo "$as_me: failed program was:" >&5
27061 sed 's/^/| /' conftest.$ac_ext >&5
27063 ac_cv_type_int64_t=no
27065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27067 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27068 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27069 if test $ac_cv_type_int64_t = yes; then
27071 cat >>confdefs.h <<_ACEOF
27072 #define HAVE_INT64_T 1
27077 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27078 echo "$as_me: error: Type int64_t required but not found" >&2;}
27079 { (exit 1); exit 1; }; }
27082 echo "$as_me:$LINENO: checking for uint64_t" >&5
27083 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27084 if test "${ac_cv_type_uint64_t+set}" = set; then
27085 echo $ECHO_N "(cached) $ECHO_C" >&6
27087 cat >conftest.$ac_ext <<_ACEOF
27090 cat confdefs.h >>conftest.$ac_ext
27091 cat >>conftest.$ac_ext <<_ACEOF
27092 /* end confdefs.h. */
27093 $ac_includes_default
27097 if ((uint64_t *) 0)
27099 if (sizeof (uint64_t))
27105 rm -f conftest.$ac_objext
27106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27107 (eval $ac_compile) 2>conftest.er1
27109 grep -v '^ *+' conftest.er1 >conftest.err
27111 cat conftest.err >&5
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); } &&
27114 { ac_try='test -z "$ac_c_werror_flag"
27115 || test ! -s conftest.err'
27116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27117 (eval $ac_try) 2>&5
27119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120 (exit $ac_status); }; } &&
27121 { ac_try='test -s conftest.$ac_objext'
27122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27123 (eval $ac_try) 2>&5
27125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126 (exit $ac_status); }; }; then
27127 ac_cv_type_uint64_t=yes
27129 echo "$as_me: failed program was:" >&5
27130 sed 's/^/| /' conftest.$ac_ext >&5
27132 ac_cv_type_uint64_t=no
27134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27136 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27137 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27138 if test $ac_cv_type_uint64_t = yes; then
27140 cat >>confdefs.h <<_ACEOF
27141 #define HAVE_UINT64_T 1
27146 echo "$as_me:$LINENO: checking for u_int64_t" >&5
27147 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27148 if test "${ac_cv_type_u_int64_t+set}" = set; then
27149 echo $ECHO_N "(cached) $ECHO_C" >&6
27151 cat >conftest.$ac_ext <<_ACEOF
27154 cat confdefs.h >>conftest.$ac_ext
27155 cat >>conftest.$ac_ext <<_ACEOF
27156 /* end confdefs.h. */
27157 $ac_includes_default
27161 if ((u_int64_t *) 0)
27163 if (sizeof (u_int64_t))
27169 rm -f conftest.$ac_objext
27170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27171 (eval $ac_compile) 2>conftest.er1
27173 grep -v '^ *+' conftest.er1 >conftest.err
27175 cat conftest.err >&5
27176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); } &&
27178 { ac_try='test -z "$ac_c_werror_flag"
27179 || test ! -s conftest.err'
27180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27181 (eval $ac_try) 2>&5
27183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184 (exit $ac_status); }; } &&
27185 { ac_try='test -s conftest.$ac_objext'
27186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27187 (eval $ac_try) 2>&5
27189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190 (exit $ac_status); }; }; then
27191 ac_cv_type_u_int64_t=yes
27193 echo "$as_me: failed program was:" >&5
27194 sed 's/^/| /' conftest.$ac_ext >&5
27196 ac_cv_type_u_int64_t=no
27198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27200 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27201 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27202 if test $ac_cv_type_u_int64_t = yes; then
27204 cat >>confdefs.h <<_ACEOF
27205 #define HAVE_U_INT64_T 1
27210 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27211 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27212 { (exit 1); exit 1; }; }
27225 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27228 echo "$as_me:$LINENO: checking for $ac_func" >&5
27229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27230 if eval "test \"\${$as_ac_var+set}\" = set"; then
27231 echo $ECHO_N "(cached) $ECHO_C" >&6
27233 cat >conftest.$ac_ext <<_ACEOF
27236 cat confdefs.h >>conftest.$ac_ext
27237 cat >>conftest.$ac_ext <<_ACEOF
27238 /* end confdefs.h. */
27239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27241 #define $ac_func innocuous_$ac_func
27243 /* System header to define __stub macros and hopefully few prototypes,
27244 which can conflict with char $ac_func (); below.
27245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27246 <limits.h> exists even on freestanding compilers. */
27249 # include <limits.h>
27251 # include <assert.h>
27256 /* Override any gcc2 internal prototype to avoid an error. */
27261 /* We use char because int might match the return type of a gcc2
27262 builtin and then its argument prototype would still apply. */
27264 /* The GNU C library defines this for functions which it implements
27265 to always fail with ENOSYS. Some functions are actually named
27266 something starting with __ and the normal name is an alias. */
27267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27270 char (*f) () = $ac_func;
27279 return f != $ac_func;
27284 rm -f conftest.$ac_objext conftest$ac_exeext
27285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27286 (eval $ac_link) 2>conftest.er1
27288 grep -v '^ *+' conftest.er1 >conftest.err
27290 cat conftest.err >&5
27291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27292 (exit $ac_status); } &&
27293 { ac_try='test -z "$ac_c_werror_flag"
27294 || test ! -s conftest.err'
27295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27296 (eval $ac_try) 2>&5
27298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299 (exit $ac_status); }; } &&
27300 { ac_try='test -s conftest$ac_exeext'
27301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27302 (eval $ac_try) 2>&5
27304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); }; }; then
27306 eval "$as_ac_var=yes"
27308 echo "$as_me: failed program was:" >&5
27309 sed 's/^/| /' conftest.$ac_ext >&5
27311 eval "$as_ac_var=no"
27313 rm -f conftest.err conftest.$ac_objext \
27314 conftest$ac_exeext conftest.$ac_ext
27316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27318 if test `eval echo '${'$as_ac_var'}'` = yes; then
27319 cat >>confdefs.h <<_ACEOF
27320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27329 for ac_func in mkdtemp mkstemp mktemp
27331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27332 echo "$as_me:$LINENO: checking for $ac_func" >&5
27333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27334 if eval "test \"\${$as_ac_var+set}\" = set"; then
27335 echo $ECHO_N "(cached) $ECHO_C" >&6
27337 cat >conftest.$ac_ext <<_ACEOF
27340 cat confdefs.h >>conftest.$ac_ext
27341 cat >>conftest.$ac_ext <<_ACEOF
27342 /* end confdefs.h. */
27343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27345 #define $ac_func innocuous_$ac_func
27347 /* System header to define __stub macros and hopefully few prototypes,
27348 which can conflict with char $ac_func (); below.
27349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27350 <limits.h> exists even on freestanding compilers. */
27353 # include <limits.h>
27355 # include <assert.h>
27360 /* Override any gcc2 internal prototype to avoid an error. */
27365 /* We use char because int might match the return type of a gcc2
27366 builtin and then its argument prototype would still apply. */
27368 /* The GNU C library defines this for functions which it implements
27369 to always fail with ENOSYS. Some functions are actually named
27370 something starting with __ and the normal name is an alias. */
27371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27374 char (*f) () = $ac_func;
27383 return f != $ac_func;
27388 rm -f conftest.$ac_objext conftest$ac_exeext
27389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27390 (eval $ac_link) 2>conftest.er1
27392 grep -v '^ *+' conftest.er1 >conftest.err
27394 cat conftest.err >&5
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); } &&
27397 { ac_try='test -z "$ac_c_werror_flag"
27398 || test ! -s conftest.err'
27399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27400 (eval $ac_try) 2>&5
27402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403 (exit $ac_status); }; } &&
27404 { ac_try='test -s conftest$ac_exeext'
27405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27406 (eval $ac_try) 2>&5
27408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409 (exit $ac_status); }; }; then
27410 eval "$as_ac_var=yes"
27412 echo "$as_me: failed program was:" >&5
27413 sed 's/^/| /' conftest.$ac_ext >&5
27415 eval "$as_ac_var=no"
27417 rm -f conftest.err conftest.$ac_objext \
27418 conftest$ac_exeext conftest.$ac_ext
27420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27422 if test `eval echo '${'$as_ac_var'}'` = yes; then
27423 cat >>confdefs.h <<_ACEOF
27424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27436 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27439 echo "$as_me:$LINENO: checking for $ac_func" >&5
27440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27441 if eval "test \"\${$as_ac_var+set}\" = set"; then
27442 echo $ECHO_N "(cached) $ECHO_C" >&6
27444 cat >conftest.$ac_ext <<_ACEOF
27447 cat confdefs.h >>conftest.$ac_ext
27448 cat >>conftest.$ac_ext <<_ACEOF
27449 /* end confdefs.h. */
27450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27452 #define $ac_func innocuous_$ac_func
27454 /* System header to define __stub macros and hopefully few prototypes,
27455 which can conflict with char $ac_func (); below.
27456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27457 <limits.h> exists even on freestanding compilers. */
27460 # include <limits.h>
27462 # include <assert.h>
27467 /* Override any gcc2 internal prototype to avoid an error. */
27472 /* We use char because int might match the return type of a gcc2
27473 builtin and then its argument prototype would still apply. */
27475 /* The GNU C library defines this for functions which it implements
27476 to always fail with ENOSYS. Some functions are actually named
27477 something starting with __ and the normal name is an alias. */
27478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27481 char (*f) () = $ac_func;
27490 return f != $ac_func;
27495 rm -f conftest.$ac_objext conftest$ac_exeext
27496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27497 (eval $ac_link) 2>conftest.er1
27499 grep -v '^ *+' conftest.er1 >conftest.err
27501 cat conftest.err >&5
27502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503 (exit $ac_status); } &&
27504 { ac_try='test -z "$ac_c_werror_flag"
27505 || test ! -s conftest.err'
27506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27507 (eval $ac_try) 2>&5
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); }; } &&
27511 { ac_try='test -s conftest$ac_exeext'
27512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27513 (eval $ac_try) 2>&5
27515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516 (exit $ac_status); }; }; then
27517 eval "$as_ac_var=yes"
27519 echo "$as_me: failed program was:" >&5
27520 sed 's/^/| /' conftest.$ac_ext >&5
27522 eval "$as_ac_var=no"
27524 rm -f conftest.err conftest.$ac_objext \
27525 conftest$ac_exeext conftest.$ac_ext
27527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27529 if test `eval echo '${'$as_ac_var'}'` = yes; then
27530 cat >>confdefs.h <<_ACEOF
27531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27540 for ac_func in strtoll strtoq sysconf
27542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27543 echo "$as_me:$LINENO: checking for $ac_func" >&5
27544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27545 if eval "test \"\${$as_ac_var+set}\" = set"; then
27546 echo $ECHO_N "(cached) $ECHO_C" >&6
27548 cat >conftest.$ac_ext <<_ACEOF
27551 cat confdefs.h >>conftest.$ac_ext
27552 cat >>conftest.$ac_ext <<_ACEOF
27553 /* end confdefs.h. */
27554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27556 #define $ac_func innocuous_$ac_func
27558 /* System header to define __stub macros and hopefully few prototypes,
27559 which can conflict with char $ac_func (); below.
27560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27561 <limits.h> exists even on freestanding compilers. */
27564 # include <limits.h>
27566 # include <assert.h>
27571 /* Override any gcc2 internal prototype to avoid an error. */
27576 /* We use char because int might match the return type of a gcc2
27577 builtin and then its argument prototype would still apply. */
27579 /* The GNU C library defines this for functions which it implements
27580 to always fail with ENOSYS. Some functions are actually named
27581 something starting with __ and the normal name is an alias. */
27582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27585 char (*f) () = $ac_func;
27594 return f != $ac_func;
27599 rm -f conftest.$ac_objext conftest$ac_exeext
27600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27601 (eval $ac_link) 2>conftest.er1
27603 grep -v '^ *+' conftest.er1 >conftest.err
27605 cat conftest.err >&5
27606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607 (exit $ac_status); } &&
27608 { ac_try='test -z "$ac_c_werror_flag"
27609 || test ! -s conftest.err'
27610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27611 (eval $ac_try) 2>&5
27613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614 (exit $ac_status); }; } &&
27615 { ac_try='test -s conftest$ac_exeext'
27616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27617 (eval $ac_try) 2>&5
27619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27620 (exit $ac_status); }; }; then
27621 eval "$as_ac_var=yes"
27623 echo "$as_me: failed program was:" >&5
27624 sed 's/^/| /' conftest.$ac_ext >&5
27626 eval "$as_ac_var=no"
27628 rm -f conftest.err conftest.$ac_objext \
27629 conftest$ac_exeext conftest.$ac_ext
27631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27633 if test `eval echo '${'$as_ac_var'}'` = yes; then
27634 cat >>confdefs.h <<_ACEOF
27635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27641 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27642 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27643 if test "${llvm_cv_c_printf_a+set}" = set; then
27644 echo $ECHO_N "(cached) $ECHO_C" >&6
27647 ac_cpp='$CPP $CPPFLAGS'
27648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27652 if test "$cross_compiling" = yes; then
27653 llvmac_cv_c_printf_a=no
27655 cat >conftest.$ac_ext <<_ACEOF
27659 cat confdefs.h >>conftest.$ac_ext
27660 cat >>conftest.$ac_ext <<_ACEOF
27661 /* end confdefs.h. */
27664 #include <stdlib.h>
27670 volatile double A, B;
27674 sprintf(Buffer, "%a", A);
27678 if (A != 0x1.999999999999ap-4)
27685 rm -f conftest$ac_exeext
27686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27687 (eval $ac_link) 2>&5
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27692 (eval $ac_try) 2>&5
27694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695 (exit $ac_status); }; }; then
27696 llvm_cv_c_printf_a=yes
27698 echo "$as_me: program exited with status $ac_status" >&5
27699 echo "$as_me: failed program was:" >&5
27700 sed 's/^/| /' conftest.$ac_ext >&5
27702 ( exit $ac_status )
27703 llvmac_cv_c_printf_a=no
27705 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27708 ac_cpp='$CPP $CPPFLAGS'
27709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27714 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27715 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27716 if test "$llvm_cv_c_printf_a" = "yes"; then
27718 cat >>confdefs.h <<\_ACEOF
27719 #define HAVE_PRINTF_A 1
27724 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27725 # for constant arguments. Useless!
27726 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27727 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27728 if test "${ac_cv_working_alloca_h+set}" = set; then
27729 echo $ECHO_N "(cached) $ECHO_C" >&6
27731 cat >conftest.$ac_ext <<_ACEOF
27734 cat confdefs.h >>conftest.$ac_ext
27735 cat >>conftest.$ac_ext <<_ACEOF
27736 /* end confdefs.h. */
27737 #include <alloca.h>
27741 char *p = (char *) alloca (2 * sizeof (int));
27746 rm -f conftest.$ac_objext conftest$ac_exeext
27747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27748 (eval $ac_link) 2>conftest.er1
27750 grep -v '^ *+' conftest.er1 >conftest.err
27752 cat conftest.err >&5
27753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27754 (exit $ac_status); } &&
27755 { ac_try='test -z "$ac_c_werror_flag"
27756 || test ! -s conftest.err'
27757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27758 (eval $ac_try) 2>&5
27760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761 (exit $ac_status); }; } &&
27762 { ac_try='test -s conftest$ac_exeext'
27763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27764 (eval $ac_try) 2>&5
27766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767 (exit $ac_status); }; }; then
27768 ac_cv_working_alloca_h=yes
27770 echo "$as_me: failed program was:" >&5
27771 sed 's/^/| /' conftest.$ac_ext >&5
27773 ac_cv_working_alloca_h=no
27775 rm -f conftest.err conftest.$ac_objext \
27776 conftest$ac_exeext conftest.$ac_ext
27778 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27779 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27780 if test $ac_cv_working_alloca_h = yes; then
27782 cat >>confdefs.h <<\_ACEOF
27783 #define HAVE_ALLOCA_H 1
27788 echo "$as_me:$LINENO: checking for alloca" >&5
27789 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27790 if test "${ac_cv_func_alloca_works+set}" = set; then
27791 echo $ECHO_N "(cached) $ECHO_C" >&6
27793 cat >conftest.$ac_ext <<_ACEOF
27796 cat confdefs.h >>conftest.$ac_ext
27797 cat >>conftest.$ac_ext <<_ACEOF
27798 /* end confdefs.h. */
27800 # define alloca __builtin_alloca
27803 # include <malloc.h>
27804 # define alloca _alloca
27807 # include <alloca.h>
27812 # ifndef alloca /* predefined by HP cc +Olibcalls */
27823 char *p = (char *) alloca (1);
27828 rm -f conftest.$ac_objext conftest$ac_exeext
27829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27830 (eval $ac_link) 2>conftest.er1
27832 grep -v '^ *+' conftest.er1 >conftest.err
27834 cat conftest.err >&5
27835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836 (exit $ac_status); } &&
27837 { ac_try='test -z "$ac_c_werror_flag"
27838 || test ! -s conftest.err'
27839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27840 (eval $ac_try) 2>&5
27842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843 (exit $ac_status); }; } &&
27844 { ac_try='test -s conftest$ac_exeext'
27845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27846 (eval $ac_try) 2>&5
27848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849 (exit $ac_status); }; }; then
27850 ac_cv_func_alloca_works=yes
27852 echo "$as_me: failed program was:" >&5
27853 sed 's/^/| /' conftest.$ac_ext >&5
27855 ac_cv_func_alloca_works=no
27857 rm -f conftest.err conftest.$ac_objext \
27858 conftest$ac_exeext conftest.$ac_ext
27860 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27861 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27863 if test $ac_cv_func_alloca_works = yes; then
27865 cat >>confdefs.h <<\_ACEOF
27866 #define HAVE_ALLOCA 1
27870 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27871 # that cause trouble. Some versions do not even contain alloca or
27872 # contain a buggy version. If you still want to use their alloca,
27873 # use ar to extract alloca.o from them instead of compiling alloca.c.
27875 ALLOCA=alloca.$ac_objext
27877 cat >>confdefs.h <<\_ACEOF
27882 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27883 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27884 if test "${ac_cv_os_cray+set}" = set; then
27885 echo $ECHO_N "(cached) $ECHO_C" >&6
27887 cat >conftest.$ac_ext <<_ACEOF
27890 cat confdefs.h >>conftest.$ac_ext
27891 cat >>conftest.$ac_ext <<_ACEOF
27892 /* end confdefs.h. */
27893 #if defined(CRAY) && ! defined(CRAY2)
27900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27901 $EGREP "webecray" >/dev/null 2>&1; then
27909 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27910 echo "${ECHO_T}$ac_cv_os_cray" >&6
27911 if test $ac_cv_os_cray = yes; then
27912 for ac_func in _getb67 GETB67 getb67; do
27913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27914 echo "$as_me:$LINENO: checking for $ac_func" >&5
27915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27916 if eval "test \"\${$as_ac_var+set}\" = set"; then
27917 echo $ECHO_N "(cached) $ECHO_C" >&6
27919 cat >conftest.$ac_ext <<_ACEOF
27922 cat confdefs.h >>conftest.$ac_ext
27923 cat >>conftest.$ac_ext <<_ACEOF
27924 /* end confdefs.h. */
27925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27927 #define $ac_func innocuous_$ac_func
27929 /* System header to define __stub macros and hopefully few prototypes,
27930 which can conflict with char $ac_func (); below.
27931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27932 <limits.h> exists even on freestanding compilers. */
27935 # include <limits.h>
27937 # include <assert.h>
27942 /* Override any gcc2 internal prototype to avoid an error. */
27947 /* We use char because int might match the return type of a gcc2
27948 builtin and then its argument prototype would still apply. */
27950 /* The GNU C library defines this for functions which it implements
27951 to always fail with ENOSYS. Some functions are actually named
27952 something starting with __ and the normal name is an alias. */
27953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27956 char (*f) () = $ac_func;
27965 return f != $ac_func;
27970 rm -f conftest.$ac_objext conftest$ac_exeext
27971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27972 (eval $ac_link) 2>conftest.er1
27974 grep -v '^ *+' conftest.er1 >conftest.err
27976 cat conftest.err >&5
27977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978 (exit $ac_status); } &&
27979 { ac_try='test -z "$ac_c_werror_flag"
27980 || test ! -s conftest.err'
27981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27982 (eval $ac_try) 2>&5
27984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985 (exit $ac_status); }; } &&
27986 { ac_try='test -s conftest$ac_exeext'
27987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27988 (eval $ac_try) 2>&5
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); }; }; then
27992 eval "$as_ac_var=yes"
27994 echo "$as_me: failed program was:" >&5
27995 sed 's/^/| /' conftest.$ac_ext >&5
27997 eval "$as_ac_var=no"
27999 rm -f conftest.err conftest.$ac_objext \
28000 conftest$ac_exeext conftest.$ac_ext
28002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28004 if test `eval echo '${'$as_ac_var'}'` = yes; then
28006 cat >>confdefs.h <<_ACEOF
28007 #define CRAY_STACKSEG_END $ac_func
28016 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28017 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28018 if test "${ac_cv_c_stack_direction+set}" = set; then
28019 echo $ECHO_N "(cached) $ECHO_C" >&6
28021 if test "$cross_compiling" = yes; then
28022 ac_cv_c_stack_direction=0
28024 cat >conftest.$ac_ext <<_ACEOF
28027 cat confdefs.h >>conftest.$ac_ext
28028 cat >>conftest.$ac_ext <<_ACEOF
28029 /* end confdefs.h. */
28031 find_stack_direction ()
28033 static char *addr = 0;
28038 return find_stack_direction ();
28041 return (&dummy > addr) ? 1 : -1;
28047 exit (find_stack_direction () < 0);
28050 rm -f conftest$ac_exeext
28051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28052 (eval $ac_link) 2>&5
28054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28057 (eval $ac_try) 2>&5
28059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28060 (exit $ac_status); }; }; then
28061 ac_cv_c_stack_direction=1
28063 echo "$as_me: program exited with status $ac_status" >&5
28064 echo "$as_me: failed program was:" >&5
28065 sed 's/^/| /' conftest.$ac_ext >&5
28067 ( exit $ac_status )
28068 ac_cv_c_stack_direction=-1
28070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28073 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28074 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28076 cat >>confdefs.h <<_ACEOF
28077 #define STACK_DIRECTION $ac_cv_c_stack_direction
28084 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28085 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28086 if test "${ac_cv_func_rand48+set}" = set; then
28087 echo $ECHO_N "(cached) $ECHO_C" >&6
28090 ac_cpp='$CXXCPP $CPPFLAGS'
28091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28095 cat >conftest.$ac_ext <<_ACEOF
28098 cat confdefs.h >>conftest.$ac_ext
28099 cat >>conftest.$ac_ext <<_ACEOF
28100 /* end confdefs.h. */
28101 #include <stdlib.h>
28105 srand48(0);lrand48();drand48();
28110 rm -f conftest.$ac_objext
28111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28112 (eval $ac_compile) 2>conftest.er1
28114 grep -v '^ *+' conftest.er1 >conftest.err
28116 cat conftest.err >&5
28117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28118 (exit $ac_status); } &&
28119 { ac_try='test -z "$ac_cxx_werror_flag"
28120 || test ! -s conftest.err'
28121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28122 (eval $ac_try) 2>&5
28124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125 (exit $ac_status); }; } &&
28126 { ac_try='test -s conftest.$ac_objext'
28127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28128 (eval $ac_try) 2>&5
28130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28131 (exit $ac_status); }; }; then
28132 ac_cv_func_rand48=yes
28134 echo "$as_me: failed program was:" >&5
28135 sed 's/^/| /' conftest.$ac_ext >&5
28137 ac_cv_func_rand48=no
28139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28141 ac_cpp='$CPP $CPPFLAGS'
28142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28147 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28148 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28150 if test "$ac_cv_func_rand48" = "yes" ; then
28152 cat >>confdefs.h <<\_ACEOF
28153 #define HAVE_RAND48 1
28159 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28160 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28161 if test "${ac_cv_cxx_namespaces+set}" = set; then
28162 echo $ECHO_N "(cached) $ECHO_C" >&6
28165 ac_cpp='$CXXCPP $CPPFLAGS'
28166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28170 cat >conftest.$ac_ext <<_ACEOF
28173 cat confdefs.h >>conftest.$ac_ext
28174 cat >>conftest.$ac_ext <<_ACEOF
28175 /* end confdefs.h. */
28176 namespace Outer { namespace Inner { int i = 0; }}
28180 using namespace Outer::Inner; return i;
28185 rm -f conftest.$ac_objext
28186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28187 (eval $ac_compile) 2>conftest.er1
28189 grep -v '^ *+' conftest.er1 >conftest.err
28191 cat conftest.err >&5
28192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193 (exit $ac_status); } &&
28194 { ac_try='test -z "$ac_cxx_werror_flag"
28195 || test ! -s conftest.err'
28196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28197 (eval $ac_try) 2>&5
28199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200 (exit $ac_status); }; } &&
28201 { ac_try='test -s conftest.$ac_objext'
28202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28203 (eval $ac_try) 2>&5
28205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); }; }; then
28207 ac_cv_cxx_namespaces=yes
28209 echo "$as_me: failed program was:" >&5
28210 sed 's/^/| /' conftest.$ac_ext >&5
28212 ac_cv_cxx_namespaces=no
28214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28216 ac_cpp='$CPP $CPPFLAGS'
28217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28223 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28224 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28225 if test "$ac_cv_cxx_namespaces" = yes; then
28227 cat >>confdefs.h <<\_ACEOF
28228 #define HAVE_NAMESPACES
28233 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28234 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28235 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28236 echo $ECHO_N "(cached) $ECHO_C" >&6
28240 ac_cpp='$CXXCPP $CPPFLAGS'
28241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28245 cat >conftest.$ac_ext <<_ACEOF
28248 cat confdefs.h >>conftest.$ac_ext
28249 cat >>conftest.$ac_ext <<_ACEOF
28250 /* end confdefs.h. */
28251 #include <ext/hash_map>
28252 #ifdef HAVE_NAMESPACES
28253 using namespace std;
28258 hash_map<int, int> t;
28263 rm -f conftest.$ac_objext
28264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28265 (eval $ac_compile) 2>conftest.er1
28267 grep -v '^ *+' conftest.er1 >conftest.err
28269 cat conftest.err >&5
28270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271 (exit $ac_status); } &&
28272 { ac_try='test -z "$ac_cxx_werror_flag"
28273 || test ! -s conftest.err'
28274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28275 (eval $ac_try) 2>&5
28277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278 (exit $ac_status); }; } &&
28279 { ac_try='test -s conftest.$ac_objext'
28280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28281 (eval $ac_try) 2>&5
28283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284 (exit $ac_status); }; }; then
28285 ac_cv_cxx_have_std_ext_hash_map=yes
28287 echo "$as_me: failed program was:" >&5
28288 sed 's/^/| /' conftest.$ac_ext >&5
28290 ac_cv_cxx_have_std_ext_hash_map=no
28292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28294 ac_cpp='$CPP $CPPFLAGS'
28295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28300 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28301 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28302 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28305 cat >>confdefs.h <<\_ACEOF
28306 #define HAVE_STD_EXT_HASH_MAP 1
28311 cat >>confdefs.h <<\_ACEOF
28312 #define HAVE_STD_EXT_HASH_MAP 0
28317 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28318 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28319 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28320 echo $ECHO_N "(cached) $ECHO_C" >&6
28324 ac_cpp='$CXXCPP $CPPFLAGS'
28325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28329 cat >conftest.$ac_ext <<_ACEOF
28332 cat confdefs.h >>conftest.$ac_ext
28333 cat >>conftest.$ac_ext <<_ACEOF
28334 /* end confdefs.h. */
28335 #include <ext/hash_map>
28336 #ifdef HAVE_NAMESPACES
28337 using namespace __gnu_cxx;
28342 hash_map<int,int> t;
28347 rm -f conftest.$ac_objext
28348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28349 (eval $ac_compile) 2>conftest.er1
28351 grep -v '^ *+' conftest.er1 >conftest.err
28353 cat conftest.err >&5
28354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355 (exit $ac_status); } &&
28356 { ac_try='test -z "$ac_cxx_werror_flag"
28357 || test ! -s conftest.err'
28358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28359 (eval $ac_try) 2>&5
28361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362 (exit $ac_status); }; } &&
28363 { ac_try='test -s conftest.$ac_objext'
28364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28365 (eval $ac_try) 2>&5
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); }; }; then
28369 ac_cv_cxx_have_gnu_ext_hash_map=yes
28371 echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.$ac_ext >&5
28374 ac_cv_cxx_have_gnu_ext_hash_map=no
28376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28378 ac_cpp='$CPP $CPPFLAGS'
28379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28384 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28385 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28386 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28389 cat >>confdefs.h <<\_ACEOF
28390 #define HAVE_GNU_EXT_HASH_MAP 1
28395 cat >>confdefs.h <<\_ACEOF
28396 #define HAVE_GNU_EXT_HASH_MAP 0
28401 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28402 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28403 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28404 echo $ECHO_N "(cached) $ECHO_C" >&6
28408 ac_cpp='$CXXCPP $CPPFLAGS'
28409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28413 cat >conftest.$ac_ext <<_ACEOF
28416 cat confdefs.h >>conftest.$ac_ext
28417 cat >>conftest.$ac_ext <<_ACEOF
28418 /* end confdefs.h. */
28419 #include <hash_map>
28423 hash_map<int,int> t;
28428 rm -f conftest.$ac_objext
28429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28430 (eval $ac_compile) 2>conftest.er1
28432 grep -v '^ *+' conftest.er1 >conftest.err
28434 cat conftest.err >&5
28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); } &&
28437 { ac_try='test -z "$ac_cxx_werror_flag"
28438 || test ! -s conftest.err'
28439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28440 (eval $ac_try) 2>&5
28442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443 (exit $ac_status); }; } &&
28444 { ac_try='test -s conftest.$ac_objext'
28445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28446 (eval $ac_try) 2>&5
28448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449 (exit $ac_status); }; }; then
28450 ac_cv_cxx_have_global_hash_map=yes
28452 echo "$as_me: failed program was:" >&5
28453 sed 's/^/| /' conftest.$ac_ext >&5
28455 ac_cv_cxx_have_global_hash_map=no
28457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28459 ac_cpp='$CPP $CPPFLAGS'
28460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28465 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28466 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28467 if test "$ac_cv_cxx_have_global_hash_map" = yes
28470 cat >>confdefs.h <<\_ACEOF
28471 #define HAVE_GLOBAL_HASH_MAP 1
28476 cat >>confdefs.h <<\_ACEOF
28477 #define HAVE_GLOBAL_HASH_MAP 0
28482 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28483 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28484 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28485 echo $ECHO_N "(cached) $ECHO_C" >&6
28489 ac_cpp='$CXXCPP $CPPFLAGS'
28490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28494 cat >conftest.$ac_ext <<_ACEOF
28497 cat confdefs.h >>conftest.$ac_ext
28498 cat >>conftest.$ac_ext <<_ACEOF
28499 /* end confdefs.h. */
28500 #include <ext/hash_set>
28501 #ifdef HAVE_NAMESPACES
28502 using namespace std;
28512 rm -f conftest.$ac_objext
28513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28514 (eval $ac_compile) 2>conftest.er1
28516 grep -v '^ *+' conftest.er1 >conftest.err
28518 cat conftest.err >&5
28519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520 (exit $ac_status); } &&
28521 { ac_try='test -z "$ac_cxx_werror_flag"
28522 || test ! -s conftest.err'
28523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28524 (eval $ac_try) 2>&5
28526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527 (exit $ac_status); }; } &&
28528 { ac_try='test -s conftest.$ac_objext'
28529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28530 (eval $ac_try) 2>&5
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); }; }; then
28534 ac_cv_cxx_have_std_ext_hash_set=yes
28536 echo "$as_me: failed program was:" >&5
28537 sed 's/^/| /' conftest.$ac_ext >&5
28539 ac_cv_cxx_have_std_ext_hash_set=no
28541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28543 ac_cpp='$CPP $CPPFLAGS'
28544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28549 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28550 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28551 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28554 cat >>confdefs.h <<\_ACEOF
28555 #define HAVE_STD_EXT_HASH_SET 1
28560 cat >>confdefs.h <<\_ACEOF
28561 #define HAVE_STD_EXT_HASH_SET 0
28566 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28567 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28568 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28569 echo $ECHO_N "(cached) $ECHO_C" >&6
28573 ac_cpp='$CXXCPP $CPPFLAGS'
28574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28578 cat >conftest.$ac_ext <<_ACEOF
28581 cat confdefs.h >>conftest.$ac_ext
28582 cat >>conftest.$ac_ext <<_ACEOF
28583 /* end confdefs.h. */
28584 #include <ext/hash_set>
28585 #ifdef HAVE_NAMESPACES
28586 using namespace __gnu_cxx;
28596 rm -f conftest.$ac_objext
28597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28598 (eval $ac_compile) 2>conftest.er1
28600 grep -v '^ *+' conftest.er1 >conftest.err
28602 cat conftest.err >&5
28603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604 (exit $ac_status); } &&
28605 { ac_try='test -z "$ac_cxx_werror_flag"
28606 || test ! -s conftest.err'
28607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28608 (eval $ac_try) 2>&5
28610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611 (exit $ac_status); }; } &&
28612 { ac_try='test -s conftest.$ac_objext'
28613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28614 (eval $ac_try) 2>&5
28616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); }; }; then
28618 ac_cv_cxx_have_gnu_ext_hash_set=yes
28620 echo "$as_me: failed program was:" >&5
28621 sed 's/^/| /' conftest.$ac_ext >&5
28623 ac_cv_cxx_have_gnu_ext_hash_set=no
28625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28627 ac_cpp='$CPP $CPPFLAGS'
28628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28633 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28634 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28635 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28638 cat >>confdefs.h <<\_ACEOF
28639 #define HAVE_GNU_EXT_HASH_SET 1
28644 cat >>confdefs.h <<\_ACEOF
28645 #define HAVE_GNU_EXT_HASH_SET 0
28650 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28651 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28652 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28653 echo $ECHO_N "(cached) $ECHO_C" >&6
28657 ac_cpp='$CXXCPP $CPPFLAGS'
28658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28662 cat >conftest.$ac_ext <<_ACEOF
28665 cat confdefs.h >>conftest.$ac_ext
28666 cat >>conftest.$ac_ext <<_ACEOF
28667 /* end confdefs.h. */
28668 #include <hash_set>
28672 hash_set<int> t; return 0;
28677 rm -f conftest.$ac_objext
28678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28679 (eval $ac_compile) 2>conftest.er1
28681 grep -v '^ *+' conftest.er1 >conftest.err
28683 cat conftest.err >&5
28684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685 (exit $ac_status); } &&
28686 { ac_try='test -z "$ac_cxx_werror_flag"
28687 || test ! -s conftest.err'
28688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28689 (eval $ac_try) 2>&5
28691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28692 (exit $ac_status); }; } &&
28693 { ac_try='test -s conftest.$ac_objext'
28694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28695 (eval $ac_try) 2>&5
28697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28698 (exit $ac_status); }; }; then
28699 ac_cv_cxx_have_global_hash_set=yes
28701 echo "$as_me: failed program was:" >&5
28702 sed 's/^/| /' conftest.$ac_ext >&5
28704 ac_cv_cxx_have_global_hash_set=no
28706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28708 ac_cpp='$CPP $CPPFLAGS'
28709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28714 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28715 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28716 if test "$ac_cv_cxx_have_global_hash_set" = yes
28719 cat >>confdefs.h <<\_ACEOF
28720 #define HAVE_GLOBAL_HASH_SET 1
28725 cat >>confdefs.h <<\_ACEOF
28726 #define HAVE_GLOBAL_HASH_SET 0
28731 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28732 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28733 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28734 echo $ECHO_N "(cached) $ECHO_C" >&6
28738 ac_cpp='$CXXCPP $CPPFLAGS'
28739 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28740 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28741 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28743 cat >conftest.$ac_ext <<_ACEOF
28746 cat confdefs.h >>conftest.$ac_ext
28747 cat >>conftest.$ac_ext <<_ACEOF
28748 /* end confdefs.h. */
28749 #include <iterator>
28750 #ifdef HAVE_NAMESPACES
28751 using namespace std;
28756 iterator<int,int,int> t; return 0;
28761 rm -f conftest.$ac_objext
28762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28763 (eval $ac_compile) 2>conftest.er1
28765 grep -v '^ *+' conftest.er1 >conftest.err
28767 cat conftest.err >&5
28768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769 (exit $ac_status); } &&
28770 { ac_try='test -z "$ac_cxx_werror_flag"
28771 || test ! -s conftest.err'
28772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28773 (eval $ac_try) 2>&5
28775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); }; } &&
28777 { ac_try='test -s conftest.$ac_objext'
28778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28779 (eval $ac_try) 2>&5
28781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782 (exit $ac_status); }; }; then
28783 ac_cv_cxx_have_std_iterator=yes
28785 echo "$as_me: failed program was:" >&5
28786 sed 's/^/| /' conftest.$ac_ext >&5
28788 ac_cv_cxx_have_std_iterator=no
28790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28792 ac_cpp='$CPP $CPPFLAGS'
28793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28799 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28800 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28801 if test "$ac_cv_cxx_have_std_iterator" = yes
28804 cat >>confdefs.h <<\_ACEOF
28805 #define HAVE_STD_ITERATOR 1
28810 cat >>confdefs.h <<\_ACEOF
28811 #define HAVE_STD_ITERATOR 0
28816 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28817 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28818 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28819 echo $ECHO_N "(cached) $ECHO_C" >&6
28823 ac_cpp='$CXXCPP $CPPFLAGS'
28824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28828 cat >conftest.$ac_ext <<_ACEOF
28831 cat confdefs.h >>conftest.$ac_ext
28832 cat >>conftest.$ac_ext <<_ACEOF
28833 /* end confdefs.h. */
28834 #include <iterator>
28835 #ifdef HAVE_NAMESPACES
28836 using namespace std;
28841 bidirectional_iterator<int,int> t; return 0;
28846 rm -f conftest.$ac_objext
28847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28848 (eval $ac_compile) 2>conftest.er1
28850 grep -v '^ *+' conftest.er1 >conftest.err
28852 cat conftest.err >&5
28853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854 (exit $ac_status); } &&
28855 { ac_try='test -z "$ac_cxx_werror_flag"
28856 || test ! -s conftest.err'
28857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28858 (eval $ac_try) 2>&5
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); }; } &&
28862 { ac_try='test -s conftest.$ac_objext'
28863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28864 (eval $ac_try) 2>&5
28866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867 (exit $ac_status); }; }; then
28868 ac_cv_cxx_have_bi_iterator=yes
28870 echo "$as_me: failed program was:" >&5
28871 sed 's/^/| /' conftest.$ac_ext >&5
28873 ac_cv_cxx_have_bi_iterator=no
28875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28877 ac_cpp='$CPP $CPPFLAGS'
28878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28884 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28885 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28886 if test "$ac_cv_cxx_have_bi_iterator" = yes
28889 cat >>confdefs.h <<\_ACEOF
28890 #define HAVE_BI_ITERATOR 1
28895 cat >>confdefs.h <<\_ACEOF
28896 #define HAVE_BI_ITERATOR 0
28901 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28902 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28903 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28904 echo $ECHO_N "(cached) $ECHO_C" >&6
28908 ac_cpp='$CXXCPP $CPPFLAGS'
28909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28913 cat >conftest.$ac_ext <<_ACEOF
28916 cat confdefs.h >>conftest.$ac_ext
28917 cat >>conftest.$ac_ext <<_ACEOF
28918 /* end confdefs.h. */
28919 #include <iterator>
28920 #ifdef HAVE_NAMESPACES
28921 using namespace std;
28926 forward_iterator<int,int> t; return 0;
28931 rm -f conftest.$ac_objext
28932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28933 (eval $ac_compile) 2>conftest.er1
28935 grep -v '^ *+' conftest.er1 >conftest.err
28937 cat conftest.err >&5
28938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939 (exit $ac_status); } &&
28940 { ac_try='test -z "$ac_cxx_werror_flag"
28941 || test ! -s conftest.err'
28942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28943 (eval $ac_try) 2>&5
28945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946 (exit $ac_status); }; } &&
28947 { ac_try='test -s conftest.$ac_objext'
28948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28949 (eval $ac_try) 2>&5
28951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); }; }; then
28953 ac_cv_cxx_have_fwd_iterator=yes
28955 echo "$as_me: failed program was:" >&5
28956 sed 's/^/| /' conftest.$ac_ext >&5
28958 ac_cv_cxx_have_fwd_iterator=no
28960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28962 ac_cpp='$CPP $CPPFLAGS'
28963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28969 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28970 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28971 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28974 cat >>confdefs.h <<\_ACEOF
28975 #define HAVE_FWD_ITERATOR 1
28980 cat >>confdefs.h <<\_ACEOF
28981 #define HAVE_FWD_ITERATOR 0
28987 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28988 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28989 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28990 echo $ECHO_N "(cached) $ECHO_C" >&6
28993 ac_cpp='$CXXCPP $CPPFLAGS'
28994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28998 cat >conftest.$ac_ext <<_ACEOF
29001 cat confdefs.h >>conftest.$ac_ext
29002 cat >>conftest.$ac_ext <<_ACEOF
29003 /* end confdefs.h. */
29013 rm -f conftest.$ac_objext
29014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29015 (eval $ac_compile) 2>conftest.er1
29017 grep -v '^ *+' conftest.er1 >conftest.err
29019 cat conftest.err >&5
29020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021 (exit $ac_status); } &&
29022 { ac_try='test -z "$ac_cxx_werror_flag"
29023 || test ! -s conftest.err'
29024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29025 (eval $ac_try) 2>&5
29027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028 (exit $ac_status); }; } &&
29029 { ac_try='test -s conftest.$ac_objext'
29030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29031 (eval $ac_try) 2>&5
29033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034 (exit $ac_status); }; }; then
29035 ac_cv_func_isnan_in_math_h=yes
29037 echo "$as_me: failed program was:" >&5
29038 sed 's/^/| /' conftest.$ac_ext >&5
29040 ac_cv_func_isnan_in_math_h=no
29042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29044 ac_cpp='$CPP $CPPFLAGS'
29045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29050 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29051 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29054 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29056 cat >>confdefs.h <<\_ACEOF
29057 #define HAVE_ISNAN_IN_MATH_H 1
29062 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29063 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29064 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29065 echo $ECHO_N "(cached) $ECHO_C" >&6
29068 ac_cpp='$CXXCPP $CPPFLAGS'
29069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29073 cat >conftest.$ac_ext <<_ACEOF
29076 cat confdefs.h >>conftest.$ac_ext
29077 cat >>conftest.$ac_ext <<_ACEOF
29078 /* end confdefs.h. */
29088 rm -f conftest.$ac_objext
29089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29090 (eval $ac_compile) 2>conftest.er1
29092 grep -v '^ *+' conftest.er1 >conftest.err
29094 cat conftest.err >&5
29095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29096 (exit $ac_status); } &&
29097 { ac_try='test -z "$ac_cxx_werror_flag"
29098 || test ! -s conftest.err'
29099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29100 (eval $ac_try) 2>&5
29102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29103 (exit $ac_status); }; } &&
29104 { ac_try='test -s conftest.$ac_objext'
29105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29106 (eval $ac_try) 2>&5
29108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29109 (exit $ac_status); }; }; then
29110 ac_cv_func_isnan_in_cmath=yes
29112 echo "$as_me: failed program was:" >&5
29113 sed 's/^/| /' conftest.$ac_ext >&5
29115 ac_cv_func_isnan_in_cmath=no
29117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29119 ac_cpp='$CPP $CPPFLAGS'
29120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29125 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29126 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29128 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29130 cat >>confdefs.h <<\_ACEOF
29131 #define HAVE_ISNAN_IN_CMATH 1
29136 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29137 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29138 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29139 echo $ECHO_N "(cached) $ECHO_C" >&6
29142 ac_cpp='$CXXCPP $CPPFLAGS'
29143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29147 cat >conftest.$ac_ext <<_ACEOF
29150 cat confdefs.h >>conftest.$ac_ext
29151 cat >>conftest.$ac_ext <<_ACEOF
29152 /* end confdefs.h. */
29157 float f; std::isnan(f);
29162 rm -f conftest.$ac_objext
29163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29164 (eval $ac_compile) 2>conftest.er1
29166 grep -v '^ *+' conftest.er1 >conftest.err
29168 cat conftest.err >&5
29169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170 (exit $ac_status); } &&
29171 { ac_try='test -z "$ac_cxx_werror_flag"
29172 || test ! -s conftest.err'
29173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29174 (eval $ac_try) 2>&5
29176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29177 (exit $ac_status); }; } &&
29178 { ac_try='test -s conftest.$ac_objext'
29179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29180 (eval $ac_try) 2>&5
29182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183 (exit $ac_status); }; }; then
29184 ac_cv_func_std_isnan_in_cmath=yes
29186 echo "$as_me: failed program was:" >&5
29187 sed 's/^/| /' conftest.$ac_ext >&5
29189 ac_cv_func_std_isnan_in_cmath=no
29191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29193 ac_cpp='$CPP $CPPFLAGS'
29194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29199 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29200 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29202 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29204 cat >>confdefs.h <<\_ACEOF
29205 #define HAVE_STD_ISNAN_IN_CMATH 1
29211 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29212 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29213 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29214 echo $ECHO_N "(cached) $ECHO_C" >&6
29217 ac_cpp='$CXXCPP $CPPFLAGS'
29218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29222 cat >conftest.$ac_ext <<_ACEOF
29225 cat confdefs.h >>conftest.$ac_ext
29226 cat >>conftest.$ac_ext <<_ACEOF
29227 /* end confdefs.h. */
29237 rm -f conftest.$ac_objext
29238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29239 (eval $ac_compile) 2>conftest.er1
29241 grep -v '^ *+' conftest.er1 >conftest.err
29243 cat conftest.err >&5
29244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245 (exit $ac_status); } &&
29246 { ac_try='test -z "$ac_cxx_werror_flag"
29247 || test ! -s conftest.err'
29248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29249 (eval $ac_try) 2>&5
29251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29252 (exit $ac_status); }; } &&
29253 { ac_try='test -s conftest.$ac_objext'
29254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29255 (eval $ac_try) 2>&5
29257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29258 (exit $ac_status); }; }; then
29259 ac_cv_func_isinf_in_math_h=yes
29261 echo "$as_me: failed program was:" >&5
29262 sed 's/^/| /' conftest.$ac_ext >&5
29264 ac_cv_func_isinf_in_math_h=no
29266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29268 ac_cpp='$CPP $CPPFLAGS'
29269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29274 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29275 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29277 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29279 cat >>confdefs.h <<\_ACEOF
29280 #define HAVE_ISINF_IN_MATH_H 1
29285 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29286 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29287 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29288 echo $ECHO_N "(cached) $ECHO_C" >&6
29291 ac_cpp='$CXXCPP $CPPFLAGS'
29292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29296 cat >conftest.$ac_ext <<_ACEOF
29299 cat confdefs.h >>conftest.$ac_ext
29300 cat >>conftest.$ac_ext <<_ACEOF
29301 /* end confdefs.h. */
29311 rm -f conftest.$ac_objext
29312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29313 (eval $ac_compile) 2>conftest.er1
29315 grep -v '^ *+' conftest.er1 >conftest.err
29317 cat conftest.err >&5
29318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); } &&
29320 { ac_try='test -z "$ac_cxx_werror_flag"
29321 || test ! -s conftest.err'
29322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29323 (eval $ac_try) 2>&5
29325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326 (exit $ac_status); }; } &&
29327 { ac_try='test -s conftest.$ac_objext'
29328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329 (eval $ac_try) 2>&5
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); }; }; then
29333 ac_cv_func_isinf_in_cmath=yes
29335 echo "$as_me: failed program was:" >&5
29336 sed 's/^/| /' conftest.$ac_ext >&5
29338 ac_cv_func_isinf_in_cmath=no
29340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29342 ac_cpp='$CPP $CPPFLAGS'
29343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29348 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29349 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29351 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29353 cat >>confdefs.h <<\_ACEOF
29354 #define HAVE_ISINF_IN_CMATH 1
29359 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29360 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29361 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29362 echo $ECHO_N "(cached) $ECHO_C" >&6
29365 ac_cpp='$CXXCPP $CPPFLAGS'
29366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29370 cat >conftest.$ac_ext <<_ACEOF
29373 cat confdefs.h >>conftest.$ac_ext
29374 cat >>conftest.$ac_ext <<_ACEOF
29375 /* end confdefs.h. */
29380 float f; std::isinf(f)}
29385 rm -f conftest.$ac_objext
29386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29387 (eval $ac_compile) 2>conftest.er1
29389 grep -v '^ *+' conftest.er1 >conftest.err
29391 cat conftest.err >&5
29392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29393 (exit $ac_status); } &&
29394 { ac_try='test -z "$ac_cxx_werror_flag"
29395 || test ! -s conftest.err'
29396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29397 (eval $ac_try) 2>&5
29399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400 (exit $ac_status); }; } &&
29401 { ac_try='test -s conftest.$ac_objext'
29402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29403 (eval $ac_try) 2>&5
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); }; }; then
29407 ac_cv_func_std_isinf_in_cmath=yes
29409 echo "$as_me: failed program was:" >&5
29410 sed 's/^/| /' conftest.$ac_ext >&5
29412 ac_cv_func_std_isinf_in_cmath=no
29414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29416 ac_cpp='$CPP $CPPFLAGS'
29417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29422 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29423 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29425 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29427 cat >>confdefs.h <<\_ACEOF
29428 #define HAVE_STD_ISINF_IN_CMATH 1
29433 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29434 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29435 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29436 echo $ECHO_N "(cached) $ECHO_C" >&6
29439 ac_cpp='$CXXCPP $CPPFLAGS'
29440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29444 cat >conftest.$ac_ext <<_ACEOF
29447 cat confdefs.h >>conftest.$ac_ext
29448 cat >>conftest.$ac_ext <<_ACEOF
29449 /* end confdefs.h. */
29450 #include <ieeefp.h>
29454 float f; finite(f);
29459 rm -f conftest.$ac_objext
29460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29461 (eval $ac_compile) 2>conftest.er1
29463 grep -v '^ *+' conftest.er1 >conftest.err
29465 cat conftest.err >&5
29466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467 (exit $ac_status); } &&
29468 { ac_try='test -z "$ac_cxx_werror_flag"
29469 || test ! -s conftest.err'
29470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29471 (eval $ac_try) 2>&5
29473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474 (exit $ac_status); }; } &&
29475 { ac_try='test -s conftest.$ac_objext'
29476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29477 (eval $ac_try) 2>&5
29479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480 (exit $ac_status); }; }; then
29481 ac_cv_func_finite_in_ieeefp_h=yes
29483 echo "$as_me: failed program was:" >&5
29484 sed 's/^/| /' conftest.$ac_ext >&5
29486 ac_cv_func_finite_in_ieeefp_h=no
29488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29490 ac_cpp='$CPP $CPPFLAGS'
29491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29496 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29497 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29499 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29501 cat >>confdefs.h <<\_ACEOF
29502 #define HAVE_FINITE_IN_IEEEFP_H 1
29511 for ac_header in stdlib.h unistd.h
29513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29515 echo "$as_me:$LINENO: checking for $ac_header" >&5
29516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29518 echo $ECHO_N "(cached) $ECHO_C" >&6
29520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29523 # Is the header compilable?
29524 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29526 cat >conftest.$ac_ext <<_ACEOF
29529 cat confdefs.h >>conftest.$ac_ext
29530 cat >>conftest.$ac_ext <<_ACEOF
29531 /* end confdefs.h. */
29532 $ac_includes_default
29533 #include <$ac_header>
29535 rm -f conftest.$ac_objext
29536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29537 (eval $ac_compile) 2>conftest.er1
29539 grep -v '^ *+' conftest.er1 >conftest.err
29541 cat conftest.err >&5
29542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29543 (exit $ac_status); } &&
29544 { ac_try='test -z "$ac_c_werror_flag"
29545 || test ! -s conftest.err'
29546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29547 (eval $ac_try) 2>&5
29549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550 (exit $ac_status); }; } &&
29551 { ac_try='test -s conftest.$ac_objext'
29552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29553 (eval $ac_try) 2>&5
29555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556 (exit $ac_status); }; }; then
29557 ac_header_compiler=yes
29559 echo "$as_me: failed program was:" >&5
29560 sed 's/^/| /' conftest.$ac_ext >&5
29562 ac_header_compiler=no
29564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29566 echo "${ECHO_T}$ac_header_compiler" >&6
29568 # Is the header present?
29569 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29571 cat >conftest.$ac_ext <<_ACEOF
29574 cat confdefs.h >>conftest.$ac_ext
29575 cat >>conftest.$ac_ext <<_ACEOF
29576 /* end confdefs.h. */
29577 #include <$ac_header>
29579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29582 grep -v '^ *+' conftest.er1 >conftest.err
29584 cat conftest.err >&5
29585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586 (exit $ac_status); } >/dev/null; then
29587 if test -s conftest.err; then
29588 ac_cpp_err=$ac_c_preproc_warn_flag
29589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29596 if test -z "$ac_cpp_err"; then
29597 ac_header_preproc=yes
29599 echo "$as_me: failed program was:" >&5
29600 sed 's/^/| /' conftest.$ac_ext >&5
29602 ac_header_preproc=no
29604 rm -f conftest.err conftest.$ac_ext
29605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29606 echo "${ECHO_T}$ac_header_preproc" >&6
29608 # So? What about this header?
29609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29615 ac_header_preproc=yes
29618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29625 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29632 ## ----------------------------------- ##
29633 ## Report this to llvmbugs@cs.uiuc.edu ##
29634 ## ----------------------------------- ##
29637 sed "s/^/$as_me: WARNING: /" >&2
29640 echo "$as_me:$LINENO: checking for $ac_header" >&5
29641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29643 echo $ECHO_N "(cached) $ECHO_C" >&6
29645 eval "$as_ac_Header=\$ac_header_preproc"
29647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29652 cat >>confdefs.h <<_ACEOF
29653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29661 for ac_func in getpagesize
29663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29664 echo "$as_me:$LINENO: checking for $ac_func" >&5
29665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29666 if eval "test \"\${$as_ac_var+set}\" = set"; then
29667 echo $ECHO_N "(cached) $ECHO_C" >&6
29669 cat >conftest.$ac_ext <<_ACEOF
29672 cat confdefs.h >>conftest.$ac_ext
29673 cat >>conftest.$ac_ext <<_ACEOF
29674 /* end confdefs.h. */
29675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29677 #define $ac_func innocuous_$ac_func
29679 /* System header to define __stub macros and hopefully few prototypes,
29680 which can conflict with char $ac_func (); below.
29681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29682 <limits.h> exists even on freestanding compilers. */
29685 # include <limits.h>
29687 # include <assert.h>
29692 /* Override any gcc2 internal prototype to avoid an error. */
29697 /* We use char because int might match the return type of a gcc2
29698 builtin and then its argument prototype would still apply. */
29700 /* The GNU C library defines this for functions which it implements
29701 to always fail with ENOSYS. Some functions are actually named
29702 something starting with __ and the normal name is an alias. */
29703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29706 char (*f) () = $ac_func;
29715 return f != $ac_func;
29720 rm -f conftest.$ac_objext conftest$ac_exeext
29721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29722 (eval $ac_link) 2>conftest.er1
29724 grep -v '^ *+' conftest.er1 >conftest.err
29726 cat conftest.err >&5
29727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); } &&
29729 { ac_try='test -z "$ac_c_werror_flag"
29730 || test ! -s conftest.err'
29731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29732 (eval $ac_try) 2>&5
29734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29735 (exit $ac_status); }; } &&
29736 { ac_try='test -s conftest$ac_exeext'
29737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29738 (eval $ac_try) 2>&5
29740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); }; }; then
29742 eval "$as_ac_var=yes"
29744 echo "$as_me: failed program was:" >&5
29745 sed 's/^/| /' conftest.$ac_ext >&5
29747 eval "$as_ac_var=no"
29749 rm -f conftest.err conftest.$ac_objext \
29750 conftest$ac_exeext conftest.$ac_ext
29752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29754 if test `eval echo '${'$as_ac_var'}'` = yes; then
29755 cat >>confdefs.h <<_ACEOF
29756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29762 echo "$as_me:$LINENO: checking for working mmap" >&5
29763 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29764 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29765 echo $ECHO_N "(cached) $ECHO_C" >&6
29767 if test "$cross_compiling" = yes; then
29768 ac_cv_func_mmap_fixed_mapped=no
29770 cat >conftest.$ac_ext <<_ACEOF
29773 cat confdefs.h >>conftest.$ac_ext
29774 cat >>conftest.$ac_ext <<_ACEOF
29775 /* end confdefs.h. */
29776 $ac_includes_default
29777 /* malloc might have been renamed as rpl_malloc. */
29780 /* Thanks to Mike Haertel and Jim Avera for this test.
29781 Here is a matrix of mmap possibilities:
29782 mmap private not fixed
29783 mmap private fixed at somewhere currently unmapped
29784 mmap private fixed at somewhere already mapped
29785 mmap shared not fixed
29786 mmap shared fixed at somewhere currently unmapped
29787 mmap shared fixed at somewhere already mapped
29788 For private mappings, we should verify that changes cannot be read()
29789 back from the file, nor mmap's back from the file at a different
29790 address. (There have been systems where private was not correctly
29791 implemented like the infamous i386 svr4.0, and systems where the
29792 VM page cache was not coherent with the file system buffer cache
29793 like early versions of FreeBSD and possibly contemporary NetBSD.)
29794 For shared mappings, we should conversely verify that changes get
29795 propagated back to all the places they're supposed to be.
29797 Grep wants private fixed already mapped.
29798 The main things grep needs to know about mmap are:
29799 * does it exist and is it safe to write into the mmap'd area
29800 * how to use it (BSD variants) */
29803 #include <sys/mman.h>
29805 #if !STDC_HEADERS && !HAVE_STDLIB_H
29809 /* This mess was copied from the GNU getpagesize.h. */
29810 #if !HAVE_GETPAGESIZE
29811 /* Assume that all systems that can run configure have sys/param.h. */
29812 # if !HAVE_SYS_PARAM_H
29813 # define HAVE_SYS_PARAM_H 1
29816 # ifdef _SC_PAGESIZE
29817 # define getpagesize() sysconf(_SC_PAGESIZE)
29818 # else /* no _SC_PAGESIZE */
29819 # if HAVE_SYS_PARAM_H
29820 # include <sys/param.h>
29821 # ifdef EXEC_PAGESIZE
29822 # define getpagesize() EXEC_PAGESIZE
29823 # else /* no EXEC_PAGESIZE */
29825 # define getpagesize() NBPG * CLSIZE
29828 # endif /* no CLSIZE */
29829 # else /* no NBPG */
29831 # define getpagesize() NBPC
29832 # else /* no NBPC */
29834 # define getpagesize() PAGESIZE
29835 # endif /* PAGESIZE */
29836 # endif /* no NBPC */
29837 # endif /* no NBPG */
29838 # endif /* no EXEC_PAGESIZE */
29839 # else /* no HAVE_SYS_PARAM_H */
29840 # define getpagesize() 8192 /* punt totally */
29841 # endif /* no HAVE_SYS_PARAM_H */
29842 # endif /* no _SC_PAGESIZE */
29844 #endif /* no HAVE_GETPAGESIZE */
29849 char *data, *data2, *data3;
29853 pagesize = getpagesize ();
29855 /* First, make a file with some known garbage in it. */
29856 data = (char *) malloc (pagesize);
29859 for (i = 0; i < pagesize; ++i)
29860 *(data + i) = rand ();
29862 fd = creat ("conftest.mmap", 0600);
29865 if (write (fd, data, pagesize) != pagesize)
29869 /* Next, try to mmap the file at a fixed address which already has
29870 something else allocated at it. If we can, also make sure that
29871 we see the same garbage. */
29872 fd = open ("conftest.mmap", O_RDWR);
29875 data2 = (char *) malloc (2 * pagesize);
29878 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29879 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29880 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29882 for (i = 0; i < pagesize; ++i)
29883 if (*(data + i) != *(data2 + i))
29886 /* Finally, make sure that changes to the mapped area do not
29887 percolate back to the file as seen by read(). (This is a bug on
29888 some variants of i386 svr4.0.) */
29889 for (i = 0; i < pagesize; ++i)
29890 *(data2 + i) = *(data2 + i) + 1;
29891 data3 = (char *) malloc (pagesize);
29894 if (read (fd, data3, pagesize) != pagesize)
29896 for (i = 0; i < pagesize; ++i)
29897 if (*(data + i) != *(data3 + i))
29903 rm -f conftest$ac_exeext
29904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29905 (eval $ac_link) 2>&5
29907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29910 (eval $ac_try) 2>&5
29912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913 (exit $ac_status); }; }; then
29914 ac_cv_func_mmap_fixed_mapped=yes
29916 echo "$as_me: program exited with status $ac_status" >&5
29917 echo "$as_me: failed program was:" >&5
29918 sed 's/^/| /' conftest.$ac_ext >&5
29920 ( exit $ac_status )
29921 ac_cv_func_mmap_fixed_mapped=no
29923 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29926 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29927 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29928 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29930 cat >>confdefs.h <<\_ACEOF
29931 #define HAVE_MMAP 1
29935 rm -f conftest.mmap
29937 echo "$as_me:$LINENO: checking for mmap of files" >&5
29938 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29939 if test "${ac_cv_func_mmap_file+set}" = set; then
29940 echo $ECHO_N "(cached) $ECHO_C" >&6
29943 ac_cpp='$CPP $CPPFLAGS'
29944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29948 if test "$cross_compiling" = yes; then
29949 ac_cv_func_mmap_file=no
29951 cat >conftest.$ac_ext <<_ACEOF
29955 cat confdefs.h >>conftest.$ac_ext
29956 cat >>conftest.$ac_ext <<_ACEOF
29957 /* end confdefs.h. */
29959 #include <sys/types.h>
29960 #include <sys/mman.h>
29968 fd = creat ("foo",0777);
29969 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29971 return (fd != (int) MAP_FAILED);
29976 rm -f conftest$ac_exeext
29977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29978 (eval $ac_link) 2>&5
29980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29983 (eval $ac_try) 2>&5
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); }; }; then
29987 ac_cv_func_mmap_file=yes
29989 echo "$as_me: program exited with status $ac_status" >&5
29990 echo "$as_me: failed program was:" >&5
29991 sed 's/^/| /' conftest.$ac_ext >&5
29993 ( exit $ac_status )
29994 ac_cv_func_mmap_file=no
29996 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29999 ac_cpp='$CPP $CPPFLAGS'
30000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30006 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30007 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30008 if test "$ac_cv_func_mmap_file" = yes; then
30010 cat >>confdefs.h <<\_ACEOF
30011 #define HAVE_MMAP_FILE
30018 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30019 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30020 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30021 echo $ECHO_N "(cached) $ECHO_C" >&6
30023 if test "$llvm_cv_os_type" = "Interix" ; then
30024 ac_cv_need_dev_zero_for_mmap=yes
30026 ac_cv_need_dev_zero_for_mmap=no
30030 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30031 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30032 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30034 cat >>confdefs.h <<\_ACEOF
30035 #define NEED_DEV_ZERO_FOR_MMAP 1
30039 echo "$as_me:$LINENO: checking for mprotect" >&5
30040 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30041 if test "${ac_cv_func_mprotect+set}" = set; then
30042 echo $ECHO_N "(cached) $ECHO_C" >&6
30044 cat >conftest.$ac_ext <<_ACEOF
30047 cat confdefs.h >>conftest.$ac_ext
30048 cat >>conftest.$ac_ext <<_ACEOF
30049 /* end confdefs.h. */
30050 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30052 #define mprotect innocuous_mprotect
30054 /* System header to define __stub macros and hopefully few prototypes,
30055 which can conflict with char mprotect (); below.
30056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30057 <limits.h> exists even on freestanding compilers. */
30060 # include <limits.h>
30062 # include <assert.h>
30067 /* Override any gcc2 internal prototype to avoid an error. */
30072 /* We use char because int might match the return type of a gcc2
30073 builtin and then its argument prototype would still apply. */
30075 /* The GNU C library defines this for functions which it implements
30076 to always fail with ENOSYS. Some functions are actually named
30077 something starting with __ and the normal name is an alias. */
30078 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30081 char (*f) () = mprotect;
30090 return f != mprotect;
30095 rm -f conftest.$ac_objext conftest$ac_exeext
30096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30097 (eval $ac_link) 2>conftest.er1
30099 grep -v '^ *+' conftest.er1 >conftest.err
30101 cat conftest.err >&5
30102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103 (exit $ac_status); } &&
30104 { ac_try='test -z "$ac_c_werror_flag"
30105 || test ! -s conftest.err'
30106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30107 (eval $ac_try) 2>&5
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); }; } &&
30111 { ac_try='test -s conftest$ac_exeext'
30112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30113 (eval $ac_try) 2>&5
30115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116 (exit $ac_status); }; }; then
30117 ac_cv_func_mprotect=yes
30119 echo "$as_me: failed program was:" >&5
30120 sed 's/^/| /' conftest.$ac_ext >&5
30122 ac_cv_func_mprotect=no
30124 rm -f conftest.err conftest.$ac_objext \
30125 conftest$ac_exeext conftest.$ac_ext
30127 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30128 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30129 if test $ac_cv_func_mprotect = yes; then
30132 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30133 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30134 { (exit 1); exit 1; }; }
30138 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30140 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30141 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30143 if test "$ac_cv_func_mmap_file" = "no"
30145 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30146 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30150 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30151 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30152 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30153 echo $ECHO_N "(cached) $ECHO_C" >&6
30155 llvm_cv_llvmgcc_sanity="no"
30156 if test -x "$LLVMGCC" ; then
30157 cp /dev/null conftest.c
30158 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30159 if test $? -eq 0 ; then
30160 llvm_cv_llvmgcc_sanity="yes"
30165 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30166 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30168 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30169 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30170 LLVMCC1=$llvmcc1path
30172 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30173 LLVMCC1PLUS=$llvmcc1pluspath
30175 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30176 LLVMGCCDIR=$llvmgccdir
30180 SHLIBEXT=$libltdl_cv_shlibext
30183 # Translate the various configuration directories and other basic
30184 # information into substitutions that will end up in Makefile.config.in
30185 # that these configured values can be used by the makefiles
30186 eval LLVM_PREFIX="${prefix}";
30187 eval LLVM_BINDIR="${prefix}/bin";
30188 eval LLVM_LIBDIR="${prefix}/lib";
30189 eval LLVM_DATADIR="${prefix}/share/llvm";
30190 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30191 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30192 eval LLVM_INCLUDEDIR="${prefix}/include";
30193 eval LLVM_INFODIR="${prefix}/info";
30194 eval LLVM_MANDIR="${prefix}/man";
30195 LLVM_CONFIGTIME=`date`
30207 # Place the various directores into the config.h file as #defines so that we
30208 # can know about the installation paths within LLVM.
30210 cat >>confdefs.h <<_ACEOF
30211 #define LLVM_PREFIX "$LLVM_PREFIX"
30215 cat >>confdefs.h <<_ACEOF
30216 #define LLVM_BINDIR "$LLVM_BINDIR"
30220 cat >>confdefs.h <<_ACEOF
30221 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30225 cat >>confdefs.h <<_ACEOF
30226 #define LLVM_DATADIR "$LLVM_DATADIR"
30230 cat >>confdefs.h <<_ACEOF
30231 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30235 cat >>confdefs.h <<_ACEOF
30236 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30240 cat >>confdefs.h <<_ACEOF
30241 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30245 cat >>confdefs.h <<_ACEOF
30246 #define LLVM_INFODIR "$LLVM_INFODIR"
30250 cat >>confdefs.h <<_ACEOF
30251 #define LLVM_MANDIR "$LLVM_MANDIR"
30255 cat >>confdefs.h <<_ACEOF
30256 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30261 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30264 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30266 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30268 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30270 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30272 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30275 ac_config_files="$ac_config_files Makefile.config"
30278 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30281 ac_config_files="$ac_config_files docs/doxygen.cfg"
30284 ac_config_commands="$ac_config_commands Makefile"
30287 ac_config_commands="$ac_config_commands Makefile.common"
30290 ac_config_commands="$ac_config_commands examples/Makefile"
30293 ac_config_commands="$ac_config_commands lib/Makefile"
30296 ac_config_commands="$ac_config_commands runtime/Makefile"
30299 ac_config_commands="$ac_config_commands test/Makefile"
30302 ac_config_commands="$ac_config_commands test/Makefile.tests"
30305 ac_config_commands="$ac_config_commands tools/Makefile"
30308 ac_config_commands="$ac_config_commands utils/Makefile"
30311 ac_config_commands="$ac_config_commands projects/Makefile"
30315 cat >confcache <<\_ACEOF
30316 # This file is a shell script that caches the results of configure
30317 # tests run on this system so they can be shared between configure
30318 # scripts and configure runs, see configure's option --config-cache.
30319 # It is not useful on other systems. If it contains results you don't
30320 # want to keep, you may remove or edit it.
30322 # config.status only pays attention to the cache file if you give it
30323 # the --recheck option to rerun configure.
30325 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30326 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30327 # following values.
30331 # The following way of writing the cache mishandles newlines in values,
30332 # but we know of no workaround that is simple, portable, and efficient.
30333 # So, don't put newlines in cache variables' values.
30334 # Ultrix sh set writes to stderr and can't be redirected directly,
30335 # and sets the high bit in the cache file unless we assign to the vars.
30338 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30340 # `set' does not quote correctly, so add quotes (double-quote
30341 # substitution turns \\\\ into \\, and sed turns \\ into \).
30344 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30347 # `set' quotes correctly as required by POSIX, so do not add quotes.
30349 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30356 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30358 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30360 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30361 if test -w $cache_file; then
30362 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30363 cat confcache >$cache_file
30365 echo "not updating unwritable cache $cache_file"
30370 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30371 # Let make expand exec_prefix.
30372 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30374 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30375 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30376 # trailing colons and then remove the whole line if VPATH becomes empty
30377 # (actually we leave an empty line to preserve line numbers).
30378 if test "x$srcdir" = x.; then
30379 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30380 s/:*\$(srcdir):*/:/;
30381 s/:*\${srcdir}:*/:/;
30383 s/^\([^=]*=[ ]*\):*/\1/;
30389 DEFS=-DHAVE_CONFIG_H
30393 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30394 # 1. Remove the extension, and $U if already installed.
30395 ac_i=`echo "$ac_i" |
30396 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30398 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30399 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30401 LIBOBJS=$ac_libobjs
30403 LTLIBOBJS=$ac_ltlibobjs
30406 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30407 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30408 Usually this means the macro was only invoked conditionally." >&5
30409 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30410 Usually this means the macro was only invoked conditionally." >&2;}
30411 { (exit 1); exit 1; }; }
30413 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30414 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30415 Usually this means the macro was only invoked conditionally." >&5
30416 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30417 Usually this means the macro was only invoked conditionally." >&2;}
30418 { (exit 1); exit 1; }; }
30421 : ${CONFIG_STATUS=./config.status}
30422 ac_clean_files_save=$ac_clean_files
30423 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30424 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30425 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30426 cat >$CONFIG_STATUS <<_ACEOF
30428 # Generated by $as_me.
30429 # Run this file to recreate the current configuration.
30430 # Compiler output produced by configure, useful for debugging
30431 # configure, is in config.log if it exists.
30434 ac_cs_recheck=false
30436 SHELL=\${CONFIG_SHELL-$SHELL}
30439 cat >>$CONFIG_STATUS <<\_ACEOF
30440 ## --------------------- ##
30441 ## M4sh Initialization. ##
30442 ## --------------------- ##
30444 # Be Bourne compatible
30445 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30448 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30449 # is contrary to our usage. Disable this feature.
30450 alias -g '${1+"$@"}'='"$@"'
30451 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30454 DUALCASE=1; export DUALCASE # for MKS sh
30456 # Support unset when possible.
30457 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30464 # Work around bugs in pre-3.0 UWIN ksh.
30465 $as_unset ENV MAIL MAILPATH
30472 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30473 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30474 LC_TELEPHONE LC_TIME
30476 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30477 eval $as_var=C; export $as_var
30483 # Required to use basename.
30484 if expr a : '\(a\)' >/dev/null 2>&1; then
30490 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30491 as_basename=basename
30497 # Name of the executable.
30498 as_me=`$as_basename "$0" ||
30499 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30500 X"$0" : 'X\(//\)$' \| \
30501 X"$0" : 'X\(/\)$' \| \
30502 . : '\(.\)' 2>/dev/null ||
30504 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30505 /^X\/\(\/\/\)$/{ s//\1/; q; }
30506 /^X\/\(\/\).*/{ s//\1/; q; }
30510 # PATH needs CR, and LINENO needs CR and PATH.
30511 # Avoid depending upon Character Ranges.
30512 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30513 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30514 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30515 as_cr_digits='0123456789'
30516 as_cr_alnum=$as_cr_Letters$as_cr_digits
30518 # The user is always right.
30519 if test "${PATH_SEPARATOR+set}" != set; then
30520 echo "#! /bin/sh" >conf$$.sh
30521 echo "exit 0" >>conf$$.sh
30523 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30532 as_lineno_1=$LINENO
30533 as_lineno_2=$LINENO
30534 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30535 test "x$as_lineno_1" != "x$as_lineno_2" &&
30536 test "x$as_lineno_3" = "x$as_lineno_2" || {
30537 # Find who we are. Look in the path if we contain no path at all
30540 *[\\/]* ) as_myself=$0 ;;
30541 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30542 for as_dir in $PATH
30545 test -z "$as_dir" && as_dir=.
30546 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30551 # We did not find ourselves, most probably we were run as `sh COMMAND'
30552 # in which case we are not to be found in the path.
30553 if test "x$as_myself" = x; then
30556 if test ! -f "$as_myself"; then
30557 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30558 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30559 { (exit 1); exit 1; }; }
30561 case $CONFIG_SHELL in
30563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30564 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30567 test -z "$as_dir" && as_dir=.
30568 for as_base in sh bash ksh sh5; do
30571 if ("$as_dir/$as_base" -c '
30572 as_lineno_1=$LINENO
30573 as_lineno_2=$LINENO
30574 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30575 test "x$as_lineno_1" != "x$as_lineno_2" &&
30576 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30577 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30578 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30579 CONFIG_SHELL=$as_dir/$as_base
30580 export CONFIG_SHELL
30581 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30589 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30590 # uniformly replaced by the line number. The first 'sed' inserts a
30591 # line-number line before each line; the second 'sed' does the real
30592 # work. The second script uses 'N' to pair each line-number line
30593 # with the numbered line, and appends trailing '-' during
30594 # substitution so that $LINENO is not a special case at line end.
30595 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30596 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30597 sed '=' <$as_myself |
30602 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30605 s,^['$as_cr_digits']*\n,,
30606 ' >$as_me.lineno &&
30607 chmod +x $as_me.lineno ||
30608 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30609 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30610 { (exit 1); exit 1; }; }
30612 # Don't try to exec as it changes $[0], causing all sort of problems
30613 # (the dirname of $[0] is not the place where we might find the
30614 # original and so on. Autoconf is especially sensible to this).
30616 # Exit status is that of the last command.
30621 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30622 *c*,-n*) ECHO_N= ECHO_C='
30624 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30625 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30628 if expr a : '\(a\)' >/dev/null 2>&1; then
30634 rm -f conf$$ conf$$.exe conf$$.file
30636 if ln -s conf$$.file conf$$ 2>/dev/null; then
30637 # We could just check for DJGPP; but this test a) works b) is more generic
30638 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30639 if test -f conf$$.exe; then
30640 # Don't use ln at all; we don't have any links
30645 elif ln conf$$.file conf$$ 2>/dev/null; then
30650 rm -f conf$$ conf$$.exe conf$$.file
30652 if mkdir -p . 2>/dev/null; then
30655 test -d ./-p && rmdir ./-p
30659 as_executable_p="test -f"
30661 # Sed expression to map a string onto a valid CPP name.
30662 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30664 # Sed expression to map a string onto a valid variable name.
30665 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30669 # We need space, tab and new line, in precisely that order.
30679 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30680 # report actual input values of CONFIG_FILES etc. instead of their
30681 # values after options handling. Logging --version etc. is OK.
30685 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30686 ## Running $as_me. ##
30691 This file was extended by llvm $as_me 1.4, which was
30692 generated by GNU Autoconf 2.59. Invocation command line was
30694 CONFIG_FILES = $CONFIG_FILES
30695 CONFIG_HEADERS = $CONFIG_HEADERS
30696 CONFIG_LINKS = $CONFIG_LINKS
30697 CONFIG_COMMANDS = $CONFIG_COMMANDS
30701 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30705 # Files that config.status was made for.
30706 if test -n "$ac_config_files"; then
30707 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30710 if test -n "$ac_config_headers"; then
30711 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30714 if test -n "$ac_config_links"; then
30715 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30718 if test -n "$ac_config_commands"; then
30719 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30722 cat >>$CONFIG_STATUS <<\_ACEOF
30725 \`$as_me' instantiates files from templates according to the
30726 current configuration.
30728 Usage: $0 [OPTIONS] [FILE]...
30730 -h, --help print this help, then exit
30731 -V, --version print version number, then exit
30732 -q, --quiet do not print progress messages
30733 -d, --debug don't remove temporary files
30734 --recheck update $as_me by reconfiguring in the same conditions
30735 --file=FILE[:TEMPLATE]
30736 instantiate the configuration file FILE
30737 --header=FILE[:TEMPLATE]
30738 instantiate the configuration header FILE
30740 Configuration files:
30743 Configuration headers:
30746 Configuration commands:
30749 Report bugs to <bug-autoconf@gnu.org>."
30752 cat >>$CONFIG_STATUS <<_ACEOF
30754 llvm config.status 1.4
30755 configured by $0, generated by GNU Autoconf 2.59,
30756 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30758 Copyright (C) 2003 Free Software Foundation, Inc.
30759 This config.status script is free software; the Free Software Foundation
30760 gives unlimited permission to copy, distribute and modify it."
30765 cat >>$CONFIG_STATUS <<\_ACEOF
30766 # If no file are specified by the user, then we need to provide default
30767 # value. By we need to know if files were specified by the user.
30773 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30774 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30782 *) # This is not an option, so the user has probably given explicit
30785 ac_need_defaults=false;;
30789 # Handling of the options.
30791 cat >>$CONFIG_STATUS <<\_ACEOF
30792 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30794 --version | --vers* | -V )
30795 echo "$ac_cs_version"; exit 0 ;;
30797 # Conflict between --help and --header
30798 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30799 Try \`$0 --help' for more information." >&5
30800 echo "$as_me: error: ambiguous option: $1
30801 Try \`$0 --help' for more information." >&2;}
30802 { (exit 1); exit 1; }; };;
30803 --help | --hel | -h )
30804 echo "$ac_cs_usage"; exit 0 ;;
30805 --debug | --d* | -d )
30807 --file | --fil | --fi | --f )
30809 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30810 ac_need_defaults=false;;
30811 --header | --heade | --head | --hea )
30813 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30814 ac_need_defaults=false;;
30815 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30816 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30819 # This is an error.
30820 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30821 Try \`$0 --help' for more information." >&5
30822 echo "$as_me: error: unrecognized option: $1
30823 Try \`$0 --help' for more information." >&2;}
30824 { (exit 1); exit 1; }; } ;;
30826 *) ac_config_targets="$ac_config_targets $1" ;;
30832 ac_configure_extra_args=
30834 if $ac_cs_silent; then
30836 ac_configure_extra_args="$ac_configure_extra_args --silent"
30840 cat >>$CONFIG_STATUS <<_ACEOF
30841 if \$ac_cs_recheck; then
30842 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30843 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30848 cat >>$CONFIG_STATUS <<_ACEOF
30850 # INIT-COMMANDS section.
30853 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30854 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30855 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30856 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30857 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30858 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30859 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30860 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30861 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30862 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30868 cat >>$CONFIG_STATUS <<\_ACEOF
30869 for ac_config_target in $ac_config_targets
30871 case "$ac_config_target" in
30872 # Handling of arguments.
30873 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30874 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30875 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30876 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30877 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30878 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30879 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30880 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30881 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30882 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30883 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30884 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30885 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30886 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30887 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30888 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30889 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30890 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30891 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30892 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30893 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30894 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30895 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30896 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30897 { (exit 1); exit 1; }; };;
30901 # If the user did not use the arguments to specify the items to instantiate,
30902 # then the envvar interface is used. Set only those that are not.
30903 # We use the long form for the default assignment because of an extremely
30904 # bizarre bug on SunOS 4.1.3.
30905 if $ac_need_defaults; then
30906 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30907 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30908 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30911 # Have a temporary directory for convenience. Make it in the build tree
30912 # simply because there is no reason to put it here, and in addition,
30913 # creating and moving files from /tmp can sometimes cause problems.
30914 # Create a temporary directory, and hook for its removal unless debugging.
30917 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30918 trap '{ (exit 1); exit 1; }' 1 2 13 15
30921 # Create a (secure) tmp directory for tmp files.
30924 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30925 test -n "$tmp" && test -d "$tmp"
30928 tmp=./confstat$$-$RANDOM
30929 (umask 077 && mkdir $tmp)
30932 echo "$me: cannot create a temporary directory in ." >&2
30933 { (exit 1); exit 1; }
30938 cat >>$CONFIG_STATUS <<_ACEOF
30941 # CONFIG_FILES section.
30944 # No need to generate the scripts if there are no CONFIG_FILES.
30945 # This happens for instance when ./config.status config.h
30946 if test -n "\$CONFIG_FILES"; then
30947 # Protect against being on the right side of a sed subst in config.status.
30948 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30949 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30950 s,@SHELL@,$SHELL,;t t
30951 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30952 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30953 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30954 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30955 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30956 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30957 s,@exec_prefix@,$exec_prefix,;t t
30958 s,@prefix@,$prefix,;t t
30959 s,@program_transform_name@,$program_transform_name,;t t
30960 s,@bindir@,$bindir,;t t
30961 s,@sbindir@,$sbindir,;t t
30962 s,@libexecdir@,$libexecdir,;t t
30963 s,@datadir@,$datadir,;t t
30964 s,@sysconfdir@,$sysconfdir,;t t
30965 s,@sharedstatedir@,$sharedstatedir,;t t
30966 s,@localstatedir@,$localstatedir,;t t
30967 s,@libdir@,$libdir,;t t
30968 s,@includedir@,$includedir,;t t
30969 s,@oldincludedir@,$oldincludedir,;t t
30970 s,@infodir@,$infodir,;t t
30971 s,@mandir@,$mandir,;t t
30972 s,@build_alias@,$build_alias,;t t
30973 s,@host_alias@,$host_alias,;t t
30974 s,@target_alias@,$target_alias,;t t
30975 s,@DEFS@,$DEFS,;t t
30976 s,@ECHO_C@,$ECHO_C,;t t
30977 s,@ECHO_N@,$ECHO_N,;t t
30978 s,@ECHO_T@,$ECHO_T,;t t
30979 s,@LIBS@,$LIBS,;t t
30980 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30981 s,@subdirs@,$subdirs,;t t
30982 s,@build@,$build,;t t
30983 s,@build_cpu@,$build_cpu,;t t
30984 s,@build_vendor@,$build_vendor,;t t
30985 s,@build_os@,$build_os,;t t
30986 s,@host@,$host,;t t
30987 s,@host_cpu@,$host_cpu,;t t
30988 s,@host_vendor@,$host_vendor,;t t
30989 s,@host_os@,$host_os,;t t
30990 s,@target@,$target,;t t
30991 s,@target_cpu@,$target_cpu,;t t
30992 s,@target_vendor@,$target_vendor,;t t
30993 s,@target_os@,$target_os,;t t
30995 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
30996 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
30997 s,@ARCH@,$ARCH,;t t
30998 s,@ENDIAN@,$ENDIAN,;t t
31000 s,@CFLAGS@,$CFLAGS,;t t
31001 s,@LDFLAGS@,$LDFLAGS,;t t
31002 s,@CPPFLAGS@,$CPPFLAGS,;t t
31003 s,@ac_ct_CC@,$ac_ct_CC,;t t
31004 s,@EXEEXT@,$EXEEXT,;t t
31005 s,@OBJEXT@,$OBJEXT,;t t
31006 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31008 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;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
31029 s,@RANLIB@,$RANLIB,;t t
31030 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31034 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31035 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31036 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31037 s,@BZIP2@,$BZIP2,;t t
31039 s,@DOXYGEN@,$DOXYGEN,;t t
31040 s,@ETAGS@,$ETAGS,;t t
31041 s,@GROFF@,$GROFF,;t t
31042 s,@GZIP@,$GZIP,;t t
31043 s,@POD2HTML@,$POD2HTML,;t t
31044 s,@POD2MAN@,$POD2MAN,;t t
31045 s,@RUNTEST@,$RUNTEST,;t t
31046 s,@TCLSH@,$TCLSH,;t t
31048 s,@EGREP@,$EGREP,;t t
31049 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31050 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31051 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31052 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31053 s,@LIBADD_DL@,$LIBADD_DL,;t t
31054 s,@ECHO@,$ECHO,;t t
31056 s,@ac_ct_AR@,$ac_ct_AR,;t t
31057 s,@STRIP@,$STRIP,;t t
31058 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31059 s,@CXXCPP@,$CXXCPP,;t t
31061 s,@FFLAGS@,$FFLAGS,;t t
31062 s,@ac_ct_F77@,$ac_ct_F77,;t t
31063 s,@LIBTOOL@,$LIBTOOL,;t t
31064 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31065 s,@LLVMGCC@,$LLVMGCC,;t t
31066 s,@LLVMGXX@,$LLVMGXX,;t t
31067 s,@ALLOCA@,$ALLOCA,;t t
31068 s,@MMAP_FILE@,$MMAP_FILE,;t t
31069 s,@LLVMCC1@,$LLVMCC1,;t t
31070 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31071 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31072 s,@SHLIBEXT@,$SHLIBEXT,;t t
31073 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31074 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31075 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31076 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31077 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31078 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31079 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31080 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31081 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31082 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31083 s,@LIBOBJS@,$LIBOBJS,;t t
31084 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31089 cat >>$CONFIG_STATUS <<\_ACEOF
31090 # Split the substitutions into bite-sized pieces for seds with
31091 # small command number limits, like on Digital OSF/1 and HP-UX.
31092 ac_max_sed_lines=48
31093 ac_sed_frag=1 # Number of current file.
31094 ac_beg=1 # First line for current file.
31095 ac_end=$ac_max_sed_lines # Line after last line for current file.
31098 while $ac_more_lines; do
31099 if test $ac_beg -gt 1; then
31100 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31102 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31104 if test ! -s $tmp/subs.frag; then
31105 ac_more_lines=false
31107 # The purpose of the label and of the branching condition is to
31108 # speed up the sed processing (if there are no `@' at all, there
31109 # is no need to browse any of the substitutions).
31110 # These are the two extra sed commands mentioned above.
31112 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31113 if test -z "$ac_sed_cmds"; then
31114 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31116 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31118 ac_sed_frag=`expr $ac_sed_frag + 1`
31120 ac_end=`expr $ac_end + $ac_max_sed_lines`
31123 if test -z "$ac_sed_cmds"; then
31126 fi # test -n "$CONFIG_FILES"
31129 cat >>$CONFIG_STATUS <<\_ACEOF
31130 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31131 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31133 - | *:- | *:-:* ) # input from stdin
31135 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31136 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31137 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31138 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31139 * ) ac_file_in=$ac_file.in ;;
31142 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31143 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31144 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31145 X"$ac_file" : 'X\(//\)[^/]' \| \
31146 X"$ac_file" : 'X\(//\)$' \| \
31147 X"$ac_file" : 'X\(/\)' \| \
31148 . : '\(.\)' 2>/dev/null ||
31150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31151 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31152 /^X\(\/\/\)$/{ s//\1/; q; }
31153 /^X\(\/\).*/{ s//\1/; q; }
31155 { if $as_mkdir_p; then
31160 while test ! -d "$as_dir"; do
31161 as_dirs="$as_dir $as_dirs"
31162 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31163 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31164 X"$as_dir" : 'X\(//\)[^/]' \| \
31165 X"$as_dir" : 'X\(//\)$' \| \
31166 X"$as_dir" : 'X\(/\)' \| \
31167 . : '\(.\)' 2>/dev/null ||
31169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31170 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31171 /^X\(\/\/\)$/{ s//\1/; q; }
31172 /^X\(\/\).*/{ s//\1/; q; }
31175 test ! -n "$as_dirs" || mkdir $as_dirs
31176 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31177 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31178 { (exit 1); exit 1; }; }; }
31182 if test "$ac_dir" != .; then
31183 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31184 # A "../" for each directory in $ac_dir_suffix.
31185 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31187 ac_dir_suffix= ac_top_builddir=
31191 .) # No --srcdir option. We are building in place.
31193 if test -z "$ac_top_builddir"; then
31196 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31198 [\\/]* | ?:[\\/]* ) # Absolute path.
31199 ac_srcdir=$srcdir$ac_dir_suffix;
31200 ac_top_srcdir=$srcdir ;;
31201 *) # Relative path.
31202 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31203 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31206 # Do not use `cd foo && pwd` to compute absolute paths, because
31207 # the directories may not exist.
31209 .) ac_abs_builddir="$ac_dir";;
31212 .) ac_abs_builddir=`pwd`;;
31213 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31214 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31217 case $ac_abs_builddir in
31218 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31220 case ${ac_top_builddir}. in
31221 .) ac_abs_top_builddir=$ac_abs_builddir;;
31222 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31223 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31226 case $ac_abs_builddir in
31227 .) ac_abs_srcdir=$ac_srcdir;;
31230 .) ac_abs_srcdir=$ac_abs_builddir;;
31231 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31232 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31235 case $ac_abs_builddir in
31236 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31238 case $ac_top_srcdir in
31239 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31240 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31241 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31247 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31248 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31251 if test x"$ac_file" != x-; then
31252 { echo "$as_me:$LINENO: creating $ac_file" >&5
31253 echo "$as_me: creating $ac_file" >&6;}
31256 # Let's still pretend it is `configure' which instantiates (i.e., don't
31257 # use $as_me), people would be surprised to read:
31258 # /* config.h. Generated by config.status. */
31259 if test x"$ac_file" = x-; then
31262 configure_input="$ac_file. "
31264 configure_input=$configure_input"Generated from `echo $ac_file_in |
31265 sed 's,.*/,,'` by configure."
31267 # First look for the input files in the build tree, otherwise in the
31269 ac_file_inputs=`IFS=:
31270 for f in $ac_file_in; do
31272 -) echo $tmp/stdin ;;
31274 # Absolute (can't be DOS-style, as IFS=:)
31275 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31276 echo "$as_me: error: cannot find input file: $f" >&2;}
31277 { (exit 1); exit 1; }; }
31280 if test -f "$f"; then
31283 elif test -f "$srcdir/$f"; then
31288 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31289 echo "$as_me: error: cannot find input file: $f" >&2;}
31290 { (exit 1); exit 1; }; }
31293 done` || { (exit 1); exit 1; }
31295 cat >>$CONFIG_STATUS <<_ACEOF
31299 cat >>$CONFIG_STATUS <<\_ACEOF
31301 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31302 s,@configure_input@,$configure_input,;t t
31303 s,@srcdir@,$ac_srcdir,;t t
31304 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31305 s,@top_srcdir@,$ac_top_srcdir,;t t
31306 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31307 s,@builddir@,$ac_builddir,;t t
31308 s,@abs_builddir@,$ac_abs_builddir,;t t
31309 s,@top_builddir@,$ac_top_builddir,;t t
31310 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31311 s,@INSTALL@,$ac_INSTALL,;t t
31312 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31314 if test x"$ac_file" != x-; then
31315 mv $tmp/out $ac_file
31323 cat >>$CONFIG_STATUS <<\_ACEOF
31326 # CONFIG_HEADER section.
31329 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31330 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31332 # ac_d sets the value in "#define NAME VALUE" lines.
31333 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31334 ac_dB='[ ].*$,\1#\2'
31337 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31338 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31339 ac_uB='$,\1#\2define\3'
31343 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31344 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31346 - | *:- | *:-:* ) # input from stdin
31348 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31349 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31350 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31351 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31352 * ) ac_file_in=$ac_file.in ;;
31355 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31356 echo "$as_me: creating $ac_file" >&6;}
31358 # First look for the input files in the build tree, otherwise in the
31360 ac_file_inputs=`IFS=:
31361 for f in $ac_file_in; do
31363 -) echo $tmp/stdin ;;
31365 # Absolute (can't be DOS-style, as IFS=:)
31366 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31367 echo "$as_me: error: cannot find input file: $f" >&2;}
31368 { (exit 1); exit 1; }; }
31369 # Do quote $f, to prevent DOS paths from being IFS'd.
31372 if test -f "$f"; then
31375 elif test -f "$srcdir/$f"; then
31380 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31381 echo "$as_me: error: cannot find input file: $f" >&2;}
31382 { (exit 1); exit 1; }; }
31385 done` || { (exit 1); exit 1; }
31386 # Remove the trailing spaces.
31387 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31391 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31392 # `conftest.undefs', that substitutes the proper values into
31393 # config.h.in to produce config.h. The first handles `#define'
31394 # templates, and the second `#undef' templates.
31395 # And first: Protect against being on the right side of a sed subst in
31396 # config.status. Protect against being in an unquoted here document
31397 # in config.status.
31398 rm -f conftest.defines conftest.undefs
31399 # Using a here document instead of a string reduces the quoting nightmare.
31400 # Putting comments in sed scripts is not portable.
31402 # `end' is used to avoid that the second main sed command (meant for
31403 # 0-ary CPP macros) applies to n-ary macro definitions.
31404 # See the Autoconf documentation for `clear'.
31405 cat >confdef2sed.sed <<\_ACEOF
31410 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31412 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31415 # If some macros were called several times there might be several times
31416 # the same #defines, which is useless. Nevertheless, we may not want to
31417 # sort them, since we want the *last* AC-DEFINE to be honored.
31418 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31419 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31420 rm -f confdef2sed.sed
31422 # This sed command replaces #undef with comments. This is necessary, for
31423 # example, in the case of _POSIX_SOURCE, which is predefined and required
31424 # on some systems where configure will not decide to define it.
31425 cat >>conftest.undefs <<\_ACEOF
31426 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31429 # Break up conftest.defines because some shells have a limit on the size
31430 # of here documents, and old seds have small limits too (100 cmds).
31431 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31432 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31433 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31434 echo ' :' >>$CONFIG_STATUS
31435 rm -f conftest.tail
31436 while grep . conftest.defines >/dev/null
31438 # Write a limited-size here document to $tmp/defines.sed.
31439 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31440 # Speed up: don't consider the non `#define' lines.
31441 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31442 # Work around the forget-to-reset-the-flag bug.
31443 echo 't clr' >>$CONFIG_STATUS
31444 echo ': clr' >>$CONFIG_STATUS
31445 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31447 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31449 mv $tmp/out $tmp/in
31451 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31452 rm -f conftest.defines
31453 mv conftest.tail conftest.defines
31455 rm -f conftest.defines
31456 echo ' fi # grep' >>$CONFIG_STATUS
31457 echo >>$CONFIG_STATUS
31459 # Break up conftest.undefs because some shells have a limit on the size
31460 # of here documents, and old seds have small limits too (100 cmds).
31461 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31462 rm -f conftest.tail
31463 while grep . conftest.undefs >/dev/null
31465 # Write a limited-size here document to $tmp/undefs.sed.
31466 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31467 # Speed up: don't consider the non `#undef'
31468 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31469 # Work around the forget-to-reset-the-flag bug.
31470 echo 't clr' >>$CONFIG_STATUS
31471 echo ': clr' >>$CONFIG_STATUS
31472 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31474 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31476 mv $tmp/out $tmp/in
31478 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31479 rm -f conftest.undefs
31480 mv conftest.tail conftest.undefs
31482 rm -f conftest.undefs
31484 cat >>$CONFIG_STATUS <<\_ACEOF
31485 # Let's still pretend it is `configure' which instantiates (i.e., don't
31486 # use $as_me), people would be surprised to read:
31487 # /* config.h. Generated by config.status. */
31488 if test x"$ac_file" = x-; then
31489 echo "/* Generated by configure. */" >$tmp/config.h
31491 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31493 cat $tmp/in >>$tmp/config.h
31495 if test x"$ac_file" != x-; then
31496 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31497 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31498 echo "$as_me: $ac_file is unchanged" >&6;}
31500 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31501 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31502 X"$ac_file" : 'X\(//\)[^/]' \| \
31503 X"$ac_file" : 'X\(//\)$' \| \
31504 X"$ac_file" : 'X\(/\)' \| \
31505 . : '\(.\)' 2>/dev/null ||
31507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31508 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31509 /^X\(\/\/\)$/{ s//\1/; q; }
31510 /^X\(\/\).*/{ s//\1/; q; }
31512 { if $as_mkdir_p; then
31517 while test ! -d "$as_dir"; do
31518 as_dirs="$as_dir $as_dirs"
31519 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31520 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31521 X"$as_dir" : 'X\(//\)[^/]' \| \
31522 X"$as_dir" : 'X\(//\)$' \| \
31523 X"$as_dir" : 'X\(/\)' \| \
31524 . : '\(.\)' 2>/dev/null ||
31526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31527 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31528 /^X\(\/\/\)$/{ s//\1/; q; }
31529 /^X\(\/\).*/{ s//\1/; q; }
31532 test ! -n "$as_dirs" || mkdir $as_dirs
31533 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31534 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31535 { (exit 1); exit 1; }; }; }
31538 mv $tmp/config.h $ac_file
31542 rm -f $tmp/config.h
31546 cat >>$CONFIG_STATUS <<\_ACEOF
31549 # CONFIG_COMMANDS section.
31551 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31552 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31553 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31554 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31555 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31556 X"$ac_dest" : 'X\(//\)[^/]' \| \
31557 X"$ac_dest" : 'X\(//\)$' \| \
31558 X"$ac_dest" : 'X\(/\)' \| \
31559 . : '\(.\)' 2>/dev/null ||
31561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31562 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31563 /^X\(\/\/\)$/{ s//\1/; q; }
31564 /^X\(\/\).*/{ s//\1/; q; }
31566 { if $as_mkdir_p; then
31571 while test ! -d "$as_dir"; do
31572 as_dirs="$as_dir $as_dirs"
31573 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31574 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31575 X"$as_dir" : 'X\(//\)[^/]' \| \
31576 X"$as_dir" : 'X\(//\)$' \| \
31577 X"$as_dir" : 'X\(/\)' \| \
31578 . : '\(.\)' 2>/dev/null ||
31580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31581 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31582 /^X\(\/\/\)$/{ s//\1/; q; }
31583 /^X\(\/\).*/{ s//\1/; q; }
31586 test ! -n "$as_dirs" || mkdir $as_dirs
31587 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31588 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31589 { (exit 1); exit 1; }; }; }
31593 if test "$ac_dir" != .; then
31594 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31595 # A "../" for each directory in $ac_dir_suffix.
31596 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31598 ac_dir_suffix= ac_top_builddir=
31602 .) # No --srcdir option. We are building in place.
31604 if test -z "$ac_top_builddir"; then
31607 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31609 [\\/]* | ?:[\\/]* ) # Absolute path.
31610 ac_srcdir=$srcdir$ac_dir_suffix;
31611 ac_top_srcdir=$srcdir ;;
31612 *) # Relative path.
31613 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31614 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31617 # Do not use `cd foo && pwd` to compute absolute paths, because
31618 # the directories may not exist.
31620 .) ac_abs_builddir="$ac_dir";;
31623 .) ac_abs_builddir=`pwd`;;
31624 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31625 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31628 case $ac_abs_builddir in
31629 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31631 case ${ac_top_builddir}. in
31632 .) ac_abs_top_builddir=$ac_abs_builddir;;
31633 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31634 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31637 case $ac_abs_builddir in
31638 .) ac_abs_srcdir=$ac_srcdir;;
31641 .) ac_abs_srcdir=$ac_abs_builddir;;
31642 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31643 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31646 case $ac_abs_builddir in
31647 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31649 case $ac_top_srcdir in
31650 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31651 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31652 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31657 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31658 echo "$as_me: executing $ac_dest commands" >&6;}
31660 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31661 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31662 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31663 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31664 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31665 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31666 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31667 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31668 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31669 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31674 cat >>$CONFIG_STATUS <<\_ACEOF
31676 { (exit 0); exit 0; }
31678 chmod +x $CONFIG_STATUS
31679 ac_clean_files=$ac_clean_files_save
31682 # configure is writing to config.log, and then calls config.status.
31683 # config.status does its own redirection, appending to config.log.
31684 # Unfortunately, on DOS this fails, as config.log is still kept open
31685 # by configure, so config.status won't be able to write to it; its
31686 # output is simply discarded. So we exec the FD to /dev/null,
31687 # effectively closing config.log, so it can be properly (re)opened and
31688 # appended to by config.status. When coming back to configure, we
31689 # need to make the FD available again.
31690 if test "$no_create" != yes; then
31692 ac_config_status_args=
31693 test "$silent" = yes &&
31694 ac_config_status_args="$ac_config_status_args --quiet"
31696 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31698 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31699 # would make configure fail if this is the last instruction.
31700 $ac_cs_success || { (exit 1); exit 1; }
31704 # CONFIG_SUBDIRS section.
31706 if test "$no_recursion" != yes; then
31708 # Remove --cache-file and --srcdir arguments so they do not pile up.
31709 ac_sub_configure_args=
31711 for ac_arg in $ac_configure_args; do
31712 if test -n "$ac_prev"; then
31717 -cache-file | --cache-file | --cache-fil | --cache-fi \
31718 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31719 ac_prev=cache_file ;;
31720 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31721 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31724 --config-cache | -C)
31726 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31728 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31730 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31732 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31734 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31738 # Always prepend --prefix to ensure using the same prefix
31739 # in subdir configurations.
31740 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31743 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31745 # Do not complain, so a configure script can configure whichever
31746 # parts of a large source tree are present.
31747 test -d $srcdir/$ac_dir || continue
31749 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31750 echo "$as_me: configuring in $ac_dir" >&6;}
31751 { if $as_mkdir_p; then
31756 while test ! -d "$as_dir"; do
31757 as_dirs="$as_dir $as_dirs"
31758 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31759 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31760 X"$as_dir" : 'X\(//\)[^/]' \| \
31761 X"$as_dir" : 'X\(//\)$' \| \
31762 X"$as_dir" : 'X\(/\)' \| \
31763 . : '\(.\)' 2>/dev/null ||
31765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31766 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31767 /^X\(\/\/\)$/{ s//\1/; q; }
31768 /^X\(\/\).*/{ s//\1/; q; }
31771 test ! -n "$as_dirs" || mkdir $as_dirs
31772 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31773 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31774 { (exit 1); exit 1; }; }; }
31778 if test "$ac_dir" != .; then
31779 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31780 # A "../" for each directory in $ac_dir_suffix.
31781 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31783 ac_dir_suffix= ac_top_builddir=
31787 .) # No --srcdir option. We are building in place.
31789 if test -z "$ac_top_builddir"; then
31792 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31794 [\\/]* | ?:[\\/]* ) # Absolute path.
31795 ac_srcdir=$srcdir$ac_dir_suffix;
31796 ac_top_srcdir=$srcdir ;;
31797 *) # Relative path.
31798 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31799 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31802 # Do not use `cd foo && pwd` to compute absolute paths, because
31803 # the directories may not exist.
31805 .) ac_abs_builddir="$ac_dir";;
31808 .) ac_abs_builddir=`pwd`;;
31809 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31810 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31813 case $ac_abs_builddir in
31814 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31816 case ${ac_top_builddir}. in
31817 .) ac_abs_top_builddir=$ac_abs_builddir;;
31818 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31819 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31822 case $ac_abs_builddir in
31823 .) ac_abs_srcdir=$ac_srcdir;;
31826 .) ac_abs_srcdir=$ac_abs_builddir;;
31827 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31828 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31831 case $ac_abs_builddir in
31832 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31834 case $ac_top_srcdir in
31835 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31836 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31837 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31844 # Check for guested configure; otherwise get Cygnus style configure.
31845 if test -f $ac_srcdir/configure.gnu; then
31846 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31847 elif test -f $ac_srcdir/configure; then
31848 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31849 elif test -f $ac_srcdir/configure.in; then
31850 ac_sub_configure=$ac_configure
31852 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31853 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31857 # The recursion is here.
31858 if test -n "$ac_sub_configure"; then
31859 # Make the cache file name correct relative to the subdirectory.
31860 case $cache_file in
31861 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31862 *) # Relative path.
31863 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31866 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31867 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31868 # The eval makes quoting arguments work.
31869 eval $ac_sub_configure $ac_sub_configure_args \
31870 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31871 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31872 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31873 { (exit 1); exit 1; }; }
31881 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31882 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31883 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
31884 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31885 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31886 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31887 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31888 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31889 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31890 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31891 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}