2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.5cvs.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398 tagnames=${tagnames+${tagnames},}CXX
400 tagnames=${tagnames+${tagnames},}F77
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
418 SHELL=${CONFIG_SHELL-/bin/sh}
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete. It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
425 # Identity of this package.
427 PACKAGE_TARNAME='-llvm-'
428 PACKAGE_VERSION='1.5cvs'
429 PACKAGE_STRING='llvm 1.5cvs'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
441 ac_subdirs_all="$ac_subdirs_all projects/llvm-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 TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
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.5cvs 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.5cvs:";;
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-target-this Build only the current host's target (default is NO)
1041 --enable-target-x86 Build the x86 target (default is YES)
1042 --enable-target-x86-64 Build the x86_64 target (default is YES)
1043 --enable-target-sparc Build the Sparc target (default is YES)
1044 --enable-target-powerpc Build the PowerPC target (default is YES)
1045 --enable-target-alpha Build the Alpha target (default is YES)
1046 --enable-target-ia64 Build the IA64 target (default is YES)
1047 --enable-ltdl-install install libltdl
1048 --enable-shared[=PKGS]
1049 build shared libraries [default=yes]
1050 --enable-static[=PKGS]
1051 build static libraries [default=yes]
1052 --enable-fast-install[=PKGS]
1053 optimize for fast installation [default=yes]
1054 --disable-libtool-lock avoid locking (might break parallel builds)
1057 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1058 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1059 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1061 --with-tclinclude directory where tcl headers are
1062 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1063 --with-pic try to use only PIC/non-PIC objects [default=use
1066 include additional configurations [automatic]
1068 Some influential environment variables:
1069 CC C compiler command
1070 CFLAGS C compiler flags
1071 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1072 nonstandard directory <lib dir>
1073 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074 headers in a nonstandard directory <include dir>
1076 CXX C++ compiler command
1077 CXXFLAGS C++ compiler flags
1078 CXXCPP C++ preprocessor
1079 F77 Fortran 77 compiler command
1080 FFLAGS Fortran 77 compiler flags
1082 Use these variables to override the choices made by `configure' or to help
1083 it to find libraries and programs with nonstandard names/locations.
1085 Report bugs to <llvmbugs@cs.uiuc.edu>.
1089 if test "$ac_init_help" = "recursive"; then
1090 # If there are subdirs, report their specific --help.
1092 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093 test -d $ac_dir || continue
1096 if test "$ac_dir" != .; then
1097 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098 # A "../" for each directory in $ac_dir_suffix.
1099 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1101 ac_dir_suffix= ac_top_builddir=
1105 .) # No --srcdir option. We are building in place.
1107 if test -z "$ac_top_builddir"; then
1110 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1112 [\\/]* | ?:[\\/]* ) # Absolute path.
1113 ac_srcdir=$srcdir$ac_dir_suffix;
1114 ac_top_srcdir=$srcdir ;;
1116 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1120 # Do not use `cd foo && pwd` to compute absolute paths, because
1121 # the directories may not exist.
1123 .) ac_abs_builddir="$ac_dir";;
1126 .) ac_abs_builddir=`pwd`;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1134 case ${ac_top_builddir}. in
1135 .) ac_abs_top_builddir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1140 case $ac_abs_builddir in
1141 .) ac_abs_srcdir=$ac_srcdir;;
1144 .) ac_abs_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1149 case $ac_abs_builddir in
1150 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1152 case $ac_top_srcdir in
1153 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1160 # Check for guested configure; otherwise get Cygnus style configure.
1161 if test -f $ac_srcdir/configure.gnu; then
1163 $SHELL $ac_srcdir/configure.gnu --help=recursive
1164 elif test -f $ac_srcdir/configure; then
1166 $SHELL $ac_srcdir/configure --help=recursive
1167 elif test -f $ac_srcdir/configure.ac ||
1168 test -f $ac_srcdir/configure.in; then
1170 $ac_configure --help
1172 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1178 test -n "$ac_init_help" && exit 0
1179 if $ac_init_version; then
1181 llvm configure 1.5cvs
1182 generated by GNU Autoconf 2.59
1184 Copyright (C) 2003 Free Software Foundation, Inc.
1185 This configure script is free software; the Free Software Foundation
1186 gives unlimited permission to copy, distribute and modify it.
1194 This file contains any messages produced by compilers while
1195 running configure, to aid debugging if configure makes a mistake.
1197 It was created by llvm $as_me 1.5cvs, which was
1198 generated by GNU Autoconf 2.59. Invocation command line was
1209 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1210 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1211 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1212 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1213 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1215 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1216 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1218 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1219 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1220 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1221 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1222 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1223 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1224 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1232 test -z "$as_dir" && as_dir=.
1233 echo "PATH: $as_dir"
1248 # Keep a trace of the command line.
1249 # Strip out --no-create and --no-recursion so they do not pile up.
1250 # Strip out --silent because we don't want to record it for future runs.
1251 # Also quote any args containing shell meta-characters.
1252 # Make two passes to allow for proper duplicate-argument suppression.
1257 ac_must_keep_next=false
1263 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265 | -silent | --silent | --silen | --sile | --sil)
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1271 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1273 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1274 if test $ac_must_keep_next = true; then
1275 ac_must_keep_next=false # Got value, back to normal.
1278 *=* | --config-cache | -C | -disable-* | --disable-* \
1279 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1280 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1281 | -with-* | --with-* | -without-* | --without-* | --x)
1282 case "$ac_configure_args0 " in
1283 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1286 -* ) ac_must_keep_next=true ;;
1289 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1290 # Get rid of the leading space.
1296 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1297 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1299 # When interrupted or exit'd, cleanup temporary files, and complete
1300 # config.log. We remove comments because anyway the quotes in there
1301 # would cause problems or look ugly.
1302 # WARNING: Be sure not to use single quotes in there, as some shells,
1303 # such as our DU 5.0 friend, will then `close' the trap.
1304 trap 'exit_status=$?
1305 # Save into config.log some information that might help in debugging.
1310 ## ---------------- ##
1311 ## Cache variables. ##
1312 ## ---------------- ##
1315 # The following way of writing the cache mishandles newlines in values,
1318 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1321 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1322 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1326 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1333 ## ----------------- ##
1334 ## Output variables. ##
1335 ## ----------------- ##
1338 for ac_var in $ac_subst_vars
1340 eval ac_val=$`echo $ac_var`
1341 echo "$ac_var='"'"'$ac_val'"'"'"
1345 if test -n "$ac_subst_files"; then
1352 for ac_var in $ac_subst_files
1354 eval ac_val=$`echo $ac_var`
1355 echo "$ac_var='"'"'$ac_val'"'"'"
1360 if test -s confdefs.h; then
1367 sed "/^$/d" confdefs.h | sort
1370 test "$ac_signal" != 0 &&
1371 echo "$as_me: caught signal $ac_signal"
1372 echo "$as_me: exit $exit_status"
1374 rm -f core *.core &&
1375 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1378 for ac_signal in 1 2 13 15; do
1379 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1383 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1384 rm -rf conftest* confdefs.h
1385 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1388 # Predefined preprocessor variables.
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_NAME "$PACKAGE_NAME"
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_STRING "$PACKAGE_STRING"
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1415 # Let the site file select an alternate cache file if it wants to.
1416 # Prefer explicitly selected file to automatically selected ones.
1417 if test -z "$CONFIG_SITE"; then
1418 if test "x$prefix" != xNONE; then
1419 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1421 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1424 for ac_site_file in $CONFIG_SITE; do
1425 if test -r "$ac_site_file"; then
1426 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1427 echo "$as_me: loading site script $ac_site_file" >&6;}
1428 sed 's/^/| /' "$ac_site_file" >&5
1433 if test -r "$cache_file"; then
1434 # Some versions of bash will fail to source /dev/null (special
1435 # files actually), so we avoid doing that.
1436 if test -f "$cache_file"; then
1437 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1438 echo "$as_me: loading cache $cache_file" >&6;}
1440 [\\/]* | ?:[\\/]* ) . $cache_file;;
1441 *) . ./$cache_file;;
1445 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1446 echo "$as_me: creating cache $cache_file" >&6;}
1450 # Check that the precious variables saved in the cache have kept the same
1452 ac_cache_corrupted=false
1453 for ac_var in `(set) 2>&1 |
1454 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1455 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1456 eval ac_new_set=\$ac_env_${ac_var}_set
1457 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1458 eval ac_new_val="\$ac_env_${ac_var}_value"
1459 case $ac_old_set,$ac_new_set in
1461 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1463 ac_cache_corrupted=: ;;
1465 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1466 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1467 ac_cache_corrupted=: ;;
1470 if test "x$ac_old_val" != "x$ac_new_val"; then
1471 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1472 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1473 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1474 echo "$as_me: former value: $ac_old_val" >&2;}
1475 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1476 echo "$as_me: current value: $ac_new_val" >&2;}
1477 ac_cache_corrupted=:
1480 # Pass precious variables to config.status.
1481 if test "$ac_new_set" = set; then
1483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1484 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1485 *) ac_arg=$ac_var=$ac_new_val ;;
1487 case " $ac_configure_args " in
1488 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1489 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1493 if $ac_cache_corrupted; then
1494 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1495 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1496 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1497 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1498 { (exit 1); exit 1; }; }
1502 ac_cpp='$CPP $CPPFLAGS'
1503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1534 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1543 for ac_dir in autoconf $srcdir/autoconf; do
1544 if test -f $ac_dir/install-sh; then
1546 ac_install_sh="$ac_aux_dir/install-sh -c"
1548 elif test -f $ac_dir/install.sh; then
1550 ac_install_sh="$ac_aux_dir/install.sh -c"
1552 elif test -f $ac_dir/shtool; then
1554 ac_install_sh="$ac_aux_dir/shtool install -c"
1558 if test -z "$ac_aux_dir"; then
1559 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1560 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1561 { (exit 1); exit 1; }; }
1563 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1564 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1565 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568 if test ${srcdir} != "." ; then
1569 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1570 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1571 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1572 { (exit 1); exit 1; }; }
1576 for i in `ls ${srcdir}/projects`
1578 if test -d ${srcdir}/projects/${i} ; then
1583 subdirs="$subdirs projects/sample"
1587 subdirs="$subdirs projects/Stacker"
1591 subdirs="$subdirs projects/llvm-test"
1595 subdirs="$subdirs projects/llvm-reopt"
1599 subdirs="$subdirs projects/llvm-gcc"
1603 subdirs="$subdirs projects/llvm-java"
1607 subdirs="$subdirs projects/llvm-tv"
1611 subdirs="$subdirs projects/llvm-fefw"
1615 subdirs="$subdirs projects/llvm-poolalloc"
1618 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1619 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1626 # Make sure we can run config.sub.
1627 $ac_config_sub sun4 >/dev/null 2>&1 ||
1628 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1629 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1630 { (exit 1); exit 1; }; }
1632 echo "$as_me:$LINENO: checking build system type" >&5
1633 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1634 if test "${ac_cv_build+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1637 ac_cv_build_alias=$build_alias
1638 test -z "$ac_cv_build_alias" &&
1639 ac_cv_build_alias=`$ac_config_guess`
1640 test -z "$ac_cv_build_alias" &&
1641 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1642 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1643 { (exit 1); exit 1; }; }
1644 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1645 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1646 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1647 { (exit 1); exit 1; }; }
1650 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1651 echo "${ECHO_T}$ac_cv_build" >&6
1653 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1654 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1655 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1658 echo "$as_me:$LINENO: checking host system type" >&5
1659 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1660 if test "${ac_cv_host+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 ac_cv_host_alias=$host_alias
1664 test -z "$ac_cv_host_alias" &&
1665 ac_cv_host_alias=$ac_cv_build_alias
1666 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1667 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1668 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1669 { (exit 1); exit 1; }; }
1672 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1673 echo "${ECHO_T}$ac_cv_host" >&6
1675 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1676 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1677 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1680 echo "$as_me:$LINENO: checking target system type" >&5
1681 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1682 if test "${ac_cv_target+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1685 ac_cv_target_alias=$target_alias
1686 test "x$ac_cv_target_alias" = "x" &&
1687 ac_cv_target_alias=$ac_cv_host_alias
1688 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1689 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1690 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1691 { (exit 1); exit 1; }; }
1694 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1695 echo "${ECHO_T}$ac_cv_target" >&6
1696 target=$ac_cv_target
1697 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1698 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1699 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1702 # The aliases save the names the user supplied, while $host etc.
1703 # will get canonicalized.
1704 test -n "$target_alias" &&
1705 test "$program_prefix$program_suffix$program_transform_name" = \
1707 program_prefix=${target_alias}-
1709 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1710 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1711 if test "${llvm_cv_os_type+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1716 llvm_cv_os_type="AIX"
1717 llvm_cv_platform_type="Unix" ;;
1719 llvm_cv_os_type="Cygwin"
1720 llvm_cv_platform_type="Unix" ;;
1722 llvm_cv_os_type="Darwin"
1723 llvm_cv_platform_type="Unix" ;;
1725 llvm_cv_os_type="FreeBSD"
1726 llvm_cv_platform_type="Unix" ;;
1728 llvm_cv_os_type="Interix"
1729 llvm_cv_platform_type="Unix" ;;
1731 llvm_cv_os_type="Linux"
1732 llvm_cv_platform_type="Unix" ;;
1734 llvm_cv_os_type="SunOS"
1735 llvm_cv_platform_type="Unix" ;;
1737 llvm_cv_os_type="Win32"
1738 llvm_cv_platform_type="Win32" ;;
1740 llvm_cv_os_type="MingW"
1741 llvm_cv_platform_type="Win32" ;;
1743 llvm_cv_os_type="Unknown"
1744 llvm_cv_platform_type="Unknown" ;;
1747 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1748 echo "${ECHO_T}$llvm_cv_os_type" >&6
1750 if test "$llvm_cv_os_type" = "Unknown" ; then
1751 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1752 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1753 { (exit 1); exit 1; }; }
1759 case $llvm_cv_platform_type in
1762 cat >>confdefs.h <<\_ACEOF
1763 #define LLVM_ON_UNIX 1
1773 cat >>confdefs.h <<\_ACEOF
1774 #define LLVM_ON_WIN32 1
1785 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1790 echo "$as_me:$LINENO: checking target architecture" >&5
1791 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1792 if test "${llvm_cv_target_arch+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 i?86-*) llvm_cv_target_arch="x86" ;;
1797 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
1798 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1799 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1800 alpha*-*) llvm_cv_target_arch="Alpha" ;;
1801 ia64-*) llvm_cv_target_arch="IA64" ;;
1802 *) llvm_cv_target_arch="Unknown" ;;
1805 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1806 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1808 if test "$llvm_cv_target_arch" = "Unknown" ; then
1809 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1810 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1813 ARCH=$llvm_cv_target_arch
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1821 if test -n "$ac_tool_prefix"; then
1822 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1823 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1824 echo "$as_me:$LINENO: checking for $ac_word" >&5
1825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826 if test "${ac_cv_prog_CC+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1829 if test -n "$CC"; then
1830 ac_cv_prog_CC="$CC" # Let the user override the test.
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836 test -z "$as_dir" && as_dir=.
1837 for ac_exec_ext in '' $ac_executable_extensions; do
1838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849 if test -n "$CC"; then
1850 echo "$as_me:$LINENO: result: $CC" >&5
1851 echo "${ECHO_T}$CC" >&6
1853 echo "$as_me:$LINENO: result: no" >&5
1854 echo "${ECHO_T}no" >&6
1858 if test -z "$ac_cv_prog_CC"; then
1860 # Extract the first word of "gcc", so it can be a program name with args.
1861 set dummy gcc; ac_word=$2
1862 echo "$as_me:$LINENO: checking for $ac_word" >&5
1863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1867 if test -n "$ac_ct_CC"; then
1868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 test -z "$as_dir" && as_dir=.
1875 for ac_exec_ext in '' $ac_executable_extensions; do
1876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1877 ac_cv_prog_ac_ct_CC="gcc"
1878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1887 if test -n "$ac_ct_CC"; then
1888 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1889 echo "${ECHO_T}$ac_ct_CC" >&6
1891 echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6
1900 if test -z "$CC"; then
1901 if test -n "$ac_tool_prefix"; then
1902 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1903 set dummy ${ac_tool_prefix}cc; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_CC+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 if test -n "$CC"; then
1910 ac_cv_prog_CC="$CC" # Let the user override the test.
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 test -z "$as_dir" && as_dir=.
1917 for ac_exec_ext in '' $ac_executable_extensions; do
1918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919 ac_cv_prog_CC="${ac_tool_prefix}cc"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929 if test -n "$CC"; then
1930 echo "$as_me:$LINENO: result: $CC" >&5
1931 echo "${ECHO_T}$CC" >&6
1933 echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1938 if test -z "$ac_cv_prog_CC"; then
1940 # Extract the first word of "cc", so it can be a program name with args.
1941 set dummy cc; ac_word=$2
1942 echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 if test -n "$ac_ct_CC"; then
1948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 test -z "$as_dir" && as_dir=.
1955 for ac_exec_ext in '' $ac_executable_extensions; do
1956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957 ac_cv_prog_ac_ct_CC="cc"
1958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1967 if test -n "$ac_ct_CC"; then
1968 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1969 echo "${ECHO_T}$ac_ct_CC" >&6
1971 echo "$as_me:$LINENO: result: no" >&5
1972 echo "${ECHO_T}no" >&6
1981 if test -z "$CC"; then
1982 # Extract the first word of "cc", so it can be a program name with args.
1983 set dummy cc; ac_word=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 if test -n "$CC"; then
1990 ac_cv_prog_CC="$CC" # Let the user override the test.
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2001 ac_prog_rejected=yes
2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011 if test $ac_prog_rejected = yes; then
2012 # We found a bogon in the path, so make sure we never use it.
2013 set dummy $ac_cv_prog_CC
2015 if test $# != 0; then
2016 # We chose a different compiler from the bogus one.
2017 # However, it has the same basename, so the bogon will be chosen
2018 # first if we set CC to just the basename; use the full file name.
2020 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2026 if test -n "$CC"; then
2027 echo "$as_me:$LINENO: result: $CC" >&5
2028 echo "${ECHO_T}$CC" >&6
2030 echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2035 if test -z "$CC"; then
2036 if test -n "$ac_tool_prefix"; then
2039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_CC+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 if test -n "$CC"; then
2047 ac_cv_prog_CC="$CC" # Let the user override the test.
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 test -z "$as_dir" && as_dir=.
2054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 if test -n "$CC"; then
2067 echo "$as_me:$LINENO: result: $CC" >&5
2068 echo "${ECHO_T}$CC" >&6
2070 echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2074 test -n "$CC" && break
2077 if test -z "$CC"; then
2081 # Extract the first word of "$ac_prog", so it can be a program name with args.
2082 set dummy $ac_prog; ac_word=$2
2083 echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 if test -n "$ac_ct_CC"; then
2089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 test -z "$as_dir" && as_dir=.
2096 for ac_exec_ext in '' $ac_executable_extensions; do
2097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098 ac_cv_prog_ac_ct_CC="$ac_prog"
2099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108 if test -n "$ac_ct_CC"; then
2109 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110 echo "${ECHO_T}$ac_ct_CC" >&6
2112 echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6
2116 test -n "$ac_ct_CC" && break
2125 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&5
2127 echo "$as_me: error: no acceptable C compiler found in \$PATH
2128 See \`config.log' for more details." >&2;}
2129 { (exit 1); exit 1; }; }
2131 # Provide some information about the compiler.
2132 echo "$as_me:$LINENO:" \
2133 "checking for C compiler version" >&5
2134 ac_compiler=`set X $ac_compile; echo $2`
2135 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2136 (eval $ac_compiler --version </dev/null >&5) 2>&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2140 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2141 (eval $ac_compiler -v </dev/null >&5) 2>&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }
2145 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2146 (eval $ac_compiler -V </dev/null >&5) 2>&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }
2151 cat >conftest.$ac_ext <<_ACEOF
2154 cat confdefs.h >>conftest.$ac_ext
2155 cat >>conftest.$ac_ext <<_ACEOF
2156 /* end confdefs.h. */
2166 ac_clean_files_save=$ac_clean_files
2167 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2168 # Try to create an executable without -o first, disregard a.out.
2169 # It will help us diagnose broken compilers, and finding out an intuition
2171 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2172 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2173 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2174 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2175 (eval $ac_link_default) 2>&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; then
2179 # Find the output, starting from the most likely. This scheme is
2180 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2183 # Be careful to initialize this variable, since it used to be cached.
2184 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2186 # b.out is created by i960 compilers.
2187 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2189 test -f "$ac_file" || continue
2191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2194 # This is the source file.
2197 # We found the default executable, but exeext='' is most
2201 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2202 # FIXME: I believe we export ac_cv_exeext for Libtool,
2203 # but it would be cool to find out if it's true. Does anybody
2204 # maintain Libtool? --akim.
2212 echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2215 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: C compiler cannot create executables
2218 See \`config.log' for more details." >&2;}
2219 { (exit 77); exit 77; }; }
2222 ac_exeext=$ac_cv_exeext
2223 echo "$as_me:$LINENO: result: $ac_file" >&5
2224 echo "${ECHO_T}$ac_file" >&6
2226 # Check the compiler produces executables we can run. If not, either
2227 # the compiler is broken, or we cross compile.
2228 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2229 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2230 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2231 # If not cross compiling, check that we can run a simple program.
2232 if test "$cross_compiling" != yes; then
2233 if { ac_try='./$ac_file'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; }; then
2241 if test "$cross_compiling" = maybe; then
2244 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&5
2247 echo "$as_me: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&2;}
2250 { (exit 1); exit 1; }; }
2254 echo "$as_me:$LINENO: result: yes" >&5
2255 echo "${ECHO_T}yes" >&6
2257 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2258 ac_clean_files=$ac_clean_files_save
2259 # Check the compiler produces executables we can run. If not, either
2260 # the compiler is broken, or we cross compile.
2261 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2262 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2263 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2264 echo "${ECHO_T}$cross_compiling" >&6
2266 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2267 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2269 (eval $ac_link) 2>&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; then
2273 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2274 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2275 # work properly (i.e., refer to `conftest.exe'), while it won't with
2277 for ac_file in conftest.exe conftest conftest.*; do
2278 test -f "$ac_file" || continue
2280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2281 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2288 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2291 See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; }
2295 rm -f conftest$ac_cv_exeext
2296 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2297 echo "${ECHO_T}$ac_cv_exeext" >&6
2299 rm -f conftest.$ac_ext
2300 EXEEXT=$ac_cv_exeext
2302 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2303 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2304 if test "${ac_cv_objext+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 cat >conftest.$ac_ext <<_ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2322 rm -f conftest.o conftest.obj
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; then
2328 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2331 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2336 echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2339 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&5
2341 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2342 See \`config.log' for more details." >&2;}
2343 { (exit 1); exit 1; }; }
2346 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2348 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2349 echo "${ECHO_T}$ac_cv_objext" >&6
2350 OBJEXT=$ac_cv_objext
2352 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2353 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2354 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 cat >conftest.$ac_ext <<_ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2375 rm -f conftest.$ac_objext
2376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377 (eval $ac_compile) 2>conftest.er1
2379 grep -v '^ *+' conftest.er1 >conftest.err
2381 cat conftest.err >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); } &&
2384 { ac_try='test -z "$ac_c_werror_flag"
2385 || test ! -s conftest.err'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; } &&
2391 { ac_try='test -s conftest.$ac_objext'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2408 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2409 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2410 GCC=`test $ac_compiler_gnu = yes && echo yes`
2411 ac_test_CFLAGS=${CFLAGS+set}
2412 ac_save_CFLAGS=$CFLAGS
2414 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2416 if test "${ac_cv_prog_cc_g+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 cat >conftest.$ac_ext <<_ACEOF
2422 cat confdefs.h >>conftest.$ac_ext
2423 cat >>conftest.$ac_ext <<_ACEOF
2424 /* end confdefs.h. */
2434 rm -f conftest.$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436 (eval $ac_compile) 2>conftest.er1
2438 grep -v '^ *+' conftest.er1 >conftest.err
2440 cat conftest.err >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); } &&
2443 { ac_try='test -z "$ac_c_werror_flag"
2444 || test ! -s conftest.err'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; } &&
2450 { ac_try='test -s conftest.$ac_objext'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2465 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2466 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2467 if test "$ac_test_CFLAGS" = set; then
2468 CFLAGS=$ac_save_CFLAGS
2469 elif test $ac_cv_prog_cc_g = yes; then
2470 if test "$GCC" = yes; then
2476 if test "$GCC" = yes; then
2482 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2483 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2484 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 ac_cv_prog_cc_stdc=no
2489 cat >conftest.$ac_ext <<_ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h. */
2497 #include <sys/types.h>
2498 #include <sys/stat.h>
2499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2500 struct buf { int x; };
2501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2502 static char *e (p, i)
2508 static char *f (char * (*g) (char **, int), char **p, ...)
2513 s = g (p, va_arg (v,int));
2518 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2519 function prototypes and stuff, but not '\xHH' hex character constants.
2520 These don't provoke an error unfortunately, instead are silently treated
2521 as 'x'. The following induces an error, until -std1 is added to get
2522 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2523 array size at least. It's necessary to write '\x00'==0 to get something
2524 that's true only with -std1. */
2525 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2527 int test (int i, double x);
2528 struct s1 {int (*f) (int a);};
2529 struct s2 {int (*f) (double a);};
2530 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2536 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2541 # Don't try gcc -ansi; that turns off useful extensions and
2542 # breaks some systems' header files.
2543 # AIX -qlanglvl=ansi
2544 # Ultrix and OSF/1 -std1
2545 # HP-UX 10.20 and later -Ae
2546 # HP-UX older versions -Aa -D_HPUX_SOURCE
2547 # SVR4 -Xc -D__EXTENSIONS__
2548 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2550 CC="$ac_save_CC $ac_arg"
2551 rm -f conftest.$ac_objext
2552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553 (eval $ac_compile) 2>conftest.er1
2555 grep -v '^ *+' conftest.er1 >conftest.err
2557 cat conftest.err >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } &&
2560 { ac_try='test -z "$ac_c_werror_flag"
2561 || test ! -s conftest.err'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; } &&
2567 { ac_try='test -s conftest.$ac_objext'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2573 ac_cv_prog_cc_stdc=$ac_arg
2576 echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2580 rm -f conftest.err conftest.$ac_objext
2582 rm -f conftest.$ac_ext conftest.$ac_objext
2587 case "x$ac_cv_prog_cc_stdc" in
2589 echo "$as_me:$LINENO: result: none needed" >&5
2590 echo "${ECHO_T}none needed" >&6 ;;
2592 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2593 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2594 CC="$CC $ac_cv_prog_cc_stdc" ;;
2597 # Some people use a C++ compiler to compile C. Since we use `exit',
2598 # in C++ we need to declare it. In case someone uses the same compiler
2599 # for both compiling C and C++ we need to have the C++ compiler decide
2600 # the declaration of exit, since it's the most demanding environment.
2601 cat >conftest.$ac_ext <<_ACEOF
2606 rm -f conftest.$ac_objext
2607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608 (eval $ac_compile) 2>conftest.er1
2610 grep -v '^ *+' conftest.er1 >conftest.err
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -z "$ac_c_werror_flag"
2616 || test ! -s conftest.err'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; } &&
2622 { ac_try='test -s conftest.$ac_objext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2628 for ac_declaration in \
2630 'extern "C" void std::exit (int) throw (); using std::exit;' \
2631 'extern "C" void std::exit (int); using std::exit;' \
2632 'extern "C" void exit (int) throw ();' \
2633 'extern "C" void exit (int);' \
2636 cat >conftest.$ac_ext <<_ACEOF
2639 cat confdefs.h >>conftest.$ac_ext
2640 cat >>conftest.$ac_ext <<_ACEOF
2641 /* end confdefs.h. */
2652 rm -f conftest.$ac_objext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>conftest.er1
2656 grep -v '^ *+' conftest.er1 >conftest.err
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try='test -z "$ac_c_werror_flag"
2662 || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try='test -s conftest.$ac_objext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2682 cat >conftest.$ac_ext <<_ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2697 rm -f conftest.$ac_objext
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699 (eval $ac_compile) 2>conftest.er1
2701 grep -v '^ *+' conftest.er1 >conftest.err
2703 cat conftest.err >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } &&
2706 { ac_try='test -z "$ac_c_werror_flag"
2707 || test ! -s conftest.err'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; } &&
2713 { ac_try='test -s conftest.$ac_objext'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728 if test -n "$ac_declaration"; then
2729 echo '#ifdef __cplusplus' >>confdefs.h
2730 echo $ac_declaration >>confdefs.h
2731 echo '#endif' >>confdefs.h
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741 ac_cpp='$CPP $CPPFLAGS'
2742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2748 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2749 if test "${ac_cv_c_bigendian+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 # See if sys/param.h defines the BYTE_ORDER macro.
2753 cat >conftest.$ac_ext <<_ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2759 #include <sys/types.h>
2760 #include <sys/param.h>
2765 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2773 rm -f conftest.$ac_objext
2774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2775 (eval $ac_compile) 2>conftest.er1
2777 grep -v '^ *+' conftest.er1 >conftest.err
2779 cat conftest.err >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } &&
2782 { ac_try='test -z "$ac_c_werror_flag"
2783 || test ! -s conftest.err'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; } &&
2789 { ac_try='test -s conftest.$ac_objext'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2795 # It does; now see whether it defined to BIG_ENDIAN or not.
2796 cat >conftest.$ac_ext <<_ACEOF
2799 cat confdefs.h >>conftest.$ac_ext
2800 cat >>conftest.$ac_ext <<_ACEOF
2801 /* end confdefs.h. */
2802 #include <sys/types.h>
2803 #include <sys/param.h>
2808 #if BYTE_ORDER != BIG_ENDIAN
2816 rm -f conftest.$ac_objext
2817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2818 (eval $ac_compile) 2>conftest.er1
2820 grep -v '^ *+' conftest.er1 >conftest.err
2822 cat conftest.err >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } &&
2825 { ac_try='test -z "$ac_c_werror_flag"
2826 || test ! -s conftest.err'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; } &&
2832 { ac_try='test -s conftest.$ac_objext'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; }; then
2838 ac_cv_c_bigendian=yes
2840 echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2843 ac_cv_c_bigendian=no
2845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2850 # It does not; compile a test program.
2851 if test "$cross_compiling" = yes; then
2852 # try to guess the endianness by grepping values into an object file
2853 ac_cv_c_bigendian=unknown
2854 cat >conftest.$ac_ext <<_ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2860 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2861 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2862 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2863 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2864 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2865 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2869 _ascii (); _ebcdic ();
2874 rm -f conftest.$ac_objext
2875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2876 (eval $ac_compile) 2>conftest.er1
2878 grep -v '^ *+' conftest.er1 >conftest.err
2880 cat conftest.err >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } &&
2883 { ac_try='test -z "$ac_c_werror_flag"
2884 || test ! -s conftest.err'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; } &&
2890 { ac_try='test -s conftest.$ac_objext'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2896 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2897 ac_cv_c_bigendian=yes
2899 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2900 if test "$ac_cv_c_bigendian" = unknown; then
2901 ac_cv_c_bigendian=no
2903 # finding both strings is unlikely to happen, but who knows?
2904 ac_cv_c_bigendian=unknown
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2914 cat >conftest.$ac_ext <<_ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2923 /* Are we little or big endian? From Harbison&Steele. */
2927 char c[sizeof (long)];
2930 exit (u.c[sizeof (long) - 1] == 1);
2933 rm -f conftest$ac_exeext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2935 (eval $ac_link) 2>&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; }; then
2944 ac_cv_c_bigendian=no
2946 echo "$as_me: program exited with status $ac_status" >&5
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2951 ac_cv_c_bigendian=yes
2953 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2958 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2959 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2960 case $ac_cv_c_bigendian in
2968 { { echo "$as_me:$LINENO: error: unknown endianness
2969 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2970 echo "$as_me: error: unknown endianness
2971 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2972 { (exit 1); exit 1; }; } ;;
2977 # Check whether --enable-optimized or --disable-optimized was given.
2978 if test "${enable_optimized+set}" = set; then
2979 enableval="$enable_optimized"
2984 if test ${enableval} = "no" ; then
2988 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2992 # Check whether --enable-jit or --disable-jit was given.
2993 if test "${enable_jit+set}" = set; then
2994 enableval="$enable_jit"
2999 if test ${enableval} = "no"
3004 case "$llvm_cv_target_arch" in
3005 x86) JIT=TARGET_HAS_JIT=1
3007 Sparc) JIT=TARGET_HAS_JIT=1
3009 PowerPC) JIT=TARGET_HAS_JIT=1
3022 # Check whether --enable-doxygen or --disable-doxygen was given.
3023 if test "${enable_doxygen+set}" = set; then
3024 enableval="$enable_doxygen"
3029 case "$enableval" in
3030 yes) ENABLE_DOXYGEN=1
3032 no) ENABLE_DOXYGEN=0
3034 default) ENABLE_DOXYGEN=0
3036 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3037 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3038 { (exit 1); exit 1; }; } ;;
3042 # Check whether --enable-target-this or --disable-target-this was given.
3043 if test "${enable_target_this+set}" = set; then
3044 enableval="$enable_target_this"
3047 enable_target_this=no
3049 # Check whether --enable-target-x86 or --disable-target-x86 was given.
3050 if test "${enable_target_x86+set}" = set; then
3051 enableval="$enable_target_x86"
3054 enable_target_x86=yes
3056 # Check whether --enable-target-x86-64 or --disable-target-x86-64 was given.
3057 if test "${enable_target_x86_64+set}" = set; then
3058 enableval="$enable_target_x86_64"
3061 enable_target_x86_64=yes
3063 # Check whether --enable-target-sparc or --disable-target-sparc was given.
3064 if test "${enable_target_sparc+set}" = set; then
3065 enableval="$enable_target_sparc"
3068 enable_target_sparc=yes
3070 # Check whether --enable-target-powerpc or --disable-target-powerpc was given.
3071 if test "${enable_target_powerpc+set}" = set; then
3072 enableval="$enable_target_powerpc"
3075 enable_target_powerpc=yes
3077 # Check whether --enable-target-alpha or --disable-target-alpha was given.
3078 if test "${enable_target_alpha+set}" = set; then
3079 enableval="$enable_target_alpha"
3082 enable_target_alpha=yes
3084 # Check whether --enable-]target-ia64] or --disable-]target-ia64] was given.
3085 if test "${enable_target_ia64]]+set}" = set; then
3086 enableval="$enable_target_ia64]]"
3089 enable_target_ia64=yes
3092 if test "$enable_target_this" = "yes" ; then
3093 case "$llvm_cv_target_arch" in
3094 x86) TARGETS_TO_BUILD="X86" ;;
3095 x86_64) TARGETS_TO_BUILD="X86" ;;
3096 Sparc) TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3097 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3098 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3099 IA64) TARGETS_TO_BUILD="IA64" ;;
3100 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3101 echo "$as_me: error: Can not set target to build" >&2;}
3102 { (exit 1); exit 1; }; } ;;
3105 if test "$enable_target_x86" = "yes" -o "$enable_target_x86_64" = "yes" ; then
3106 TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD"
3108 if test "$enable_target_sparc" = "yes" ; then
3109 TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD"
3111 if test "$enable_target_powerpc" = "yes" ; then
3112 TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD"
3114 if test "$enable_target_alpha" = "yes" ; then
3115 TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD"
3117 if test "$enable_target_ia64" = "yes" ; then
3118 TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD"
3122 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3126 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3127 if test "${with_llvmgccdir+set}" = set; then
3128 withval="$with_llvmgccdir"
3134 default) WITH_LLVMGCCDIR=default ;;
3135 /*) WITH_LLVMGCCDIR=$withval ;;
3136 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3137 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3138 { (exit 1); exit 1; }; } ;;
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3149 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3150 # On Suns, sometimes $CPP names a directory.
3151 if test -n "$CPP" && test -d "$CPP"; then
3154 if test -z "$CPP"; then
3155 if test "${ac_cv_prog_CPP+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 # Double quotes because CPP needs to be expanded
3159 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3162 for ac_c_preproc_warn_flag in '' yes
3164 # Use a header file that comes with gcc, so configuring glibc
3165 # with a fresh cross-compiler works.
3166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3167 # <limits.h> exists even on freestanding compilers.
3168 # On the NeXT, cc -E runs the code through the compiler's parser,
3169 # not just through cpp. "Syntax error" is here to catch this case.
3170 cat >conftest.$ac_ext <<_ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3177 # include <limits.h>
3179 # include <assert.h>
3183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3186 grep -v '^ *+' conftest.er1 >conftest.err
3188 cat conftest.err >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } >/dev/null; then
3191 if test -s conftest.err; then
3192 ac_cpp_err=$ac_c_preproc_warn_flag
3193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3200 if test -z "$ac_cpp_err"; then
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3206 # Broken: fails on valid input.
3209 rm -f conftest.err conftest.$ac_ext
3211 # OK, works on sane cases. Now check whether non-existent headers
3212 # can be detected and how.
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3219 #include <ac_nonexistent.h>
3221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3224 grep -v '^ *+' conftest.er1 >conftest.err
3226 cat conftest.err >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } >/dev/null; then
3229 if test -s conftest.err; then
3230 ac_cpp_err=$ac_c_preproc_warn_flag
3231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3238 if test -z "$ac_cpp_err"; then
3239 # Broken: success on invalid input.
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3245 # Passes both tests.
3249 rm -f conftest.err conftest.$ac_ext
3252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3253 rm -f conftest.err conftest.$ac_ext
3254 if $ac_preproc_ok; then
3266 echo "$as_me:$LINENO: result: $CPP" >&5
3267 echo "${ECHO_T}$CPP" >&6
3269 for ac_c_preproc_warn_flag in '' yes
3271 # Use a header file that comes with gcc, so configuring glibc
3272 # with a fresh cross-compiler works.
3273 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3274 # <limits.h> exists even on freestanding compilers.
3275 # On the NeXT, cc -E runs the code through the compiler's parser,
3276 # not just through cpp. "Syntax error" is here to catch this case.
3277 cat >conftest.$ac_ext <<_ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3284 # include <limits.h>
3286 # include <assert.h>
3290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3293 grep -v '^ *+' conftest.er1 >conftest.err
3295 cat conftest.err >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } >/dev/null; then
3298 if test -s conftest.err; then
3299 ac_cpp_err=$ac_c_preproc_warn_flag
3300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3307 if test -z "$ac_cpp_err"; then
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3313 # Broken: fails on valid input.
3316 rm -f conftest.err conftest.$ac_ext
3318 # OK, works on sane cases. Now check whether non-existent headers
3319 # can be detected and how.
3320 cat >conftest.$ac_ext <<_ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3326 #include <ac_nonexistent.h>
3328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3331 grep -v '^ *+' conftest.er1 >conftest.err
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } >/dev/null; then
3336 if test -s conftest.err; then
3337 ac_cpp_err=$ac_c_preproc_warn_flag
3338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3345 if test -z "$ac_cpp_err"; then
3346 # Broken: success on invalid input.
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3352 # Passes both tests.
3356 rm -f conftest.err conftest.$ac_ext
3359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3360 rm -f conftest.err conftest.$ac_ext
3361 if $ac_preproc_ok; then
3364 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3365 See \`config.log' for more details." >&5
3366 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3367 See \`config.log' for more details." >&2;}
3368 { (exit 1); exit 1; }; }
3372 ac_cpp='$CPP $CPPFLAGS'
3373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3378 ac_cpp='$CPP $CPPFLAGS'
3379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3382 if test -n "$ac_tool_prefix"; then
3385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3387 echo "$as_me:$LINENO: checking for $ac_word" >&5
3388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3389 if test "${ac_cv_prog_CC+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 if test -n "$CC"; then
3393 ac_cv_prog_CC="$CC" # Let the user override the test.
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3402 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 if test -n "$CC"; then
3413 echo "$as_me:$LINENO: result: $CC" >&5
3414 echo "${ECHO_T}$CC" >&6
3416 echo "$as_me:$LINENO: result: no" >&5
3417 echo "${ECHO_T}no" >&6
3420 test -n "$CC" && break
3423 if test -z "$CC"; then
3427 # Extract the first word of "$ac_prog", so it can be a program name with args.
3428 set dummy $ac_prog; ac_word=$2
3429 echo "$as_me:$LINENO: checking for $ac_word" >&5
3430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3431 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 if test -n "$ac_ct_CC"; then
3435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3444 ac_cv_prog_ac_ct_CC="$ac_prog"
3445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3454 if test -n "$ac_ct_CC"; then
3455 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3456 echo "${ECHO_T}$ac_ct_CC" >&6
3458 echo "$as_me:$LINENO: result: no" >&5
3459 echo "${ECHO_T}no" >&6
3462 test -n "$ac_ct_CC" && break
3469 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3470 See \`config.log' for more details." >&5
3471 echo "$as_me: error: no acceptable C compiler found in \$PATH
3472 See \`config.log' for more details." >&2;}
3473 { (exit 1); exit 1; }; }
3475 # Provide some information about the compiler.
3476 echo "$as_me:$LINENO:" \
3477 "checking for C compiler version" >&5
3478 ac_compiler=`set X $ac_compile; echo $2`
3479 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3480 (eval $ac_compiler --version </dev/null >&5) 2>&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }
3484 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3485 (eval $ac_compiler -v </dev/null >&5) 2>&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }
3489 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3490 (eval $ac_compiler -V </dev/null >&5) 2>&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }
3495 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3496 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3497 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 cat >conftest.$ac_ext <<_ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3518 rm -f conftest.$ac_objext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520 (eval $ac_compile) 2>conftest.er1
3522 grep -v '^ *+' conftest.er1 >conftest.err
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } &&
3527 { ac_try='test -z "$ac_c_werror_flag"
3528 || test ! -s conftest.err'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; } &&
3534 { ac_try='test -s conftest.$ac_objext'
3535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; }; then
3542 echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3548 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3551 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3552 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3553 GCC=`test $ac_compiler_gnu = yes && echo yes`
3554 ac_test_CFLAGS=${CFLAGS+set}
3555 ac_save_CFLAGS=$CFLAGS
3557 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3558 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3559 if test "${ac_cv_prog_cc_g+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 cat >conftest.$ac_ext <<_ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3577 rm -f conftest.$ac_objext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579 (eval $ac_compile) 2>conftest.er1
3581 grep -v '^ *+' conftest.er1 >conftest.err
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try='test -z "$ac_c_werror_flag"
3587 || test ! -s conftest.err'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try='test -s conftest.$ac_objext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3608 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3609 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3610 if test "$ac_test_CFLAGS" = set; then
3611 CFLAGS=$ac_save_CFLAGS
3612 elif test $ac_cv_prog_cc_g = yes; then
3613 if test "$GCC" = yes; then
3619 if test "$GCC" = yes; then
3625 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3626 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3627 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 ac_cv_prog_cc_stdc=no
3632 cat >conftest.$ac_ext <<_ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h. */
3640 #include <sys/types.h>
3641 #include <sys/stat.h>
3642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3643 struct buf { int x; };
3644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3645 static char *e (p, i)
3651 static char *f (char * (*g) (char **, int), char **p, ...)
3656 s = g (p, va_arg (v,int));
3661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3662 function prototypes and stuff, but not '\xHH' hex character constants.
3663 These don't provoke an error unfortunately, instead are silently treated
3664 as 'x'. The following induces an error, until -std1 is added to get
3665 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3666 array size at least. It's necessary to write '\x00'==0 to get something
3667 that's true only with -std1. */
3668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3670 int test (int i, double x);
3671 struct s1 {int (*f) (int a);};
3672 struct s2 {int (*f) (double a);};
3673 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3679 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3684 # Don't try gcc -ansi; that turns off useful extensions and
3685 # breaks some systems' header files.
3686 # AIX -qlanglvl=ansi
3687 # Ultrix and OSF/1 -std1
3688 # HP-UX 10.20 and later -Ae
3689 # HP-UX older versions -Aa -D_HPUX_SOURCE
3690 # SVR4 -Xc -D__EXTENSIONS__
3691 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3693 CC="$ac_save_CC $ac_arg"
3694 rm -f conftest.$ac_objext
3695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3696 (eval $ac_compile) 2>conftest.er1
3698 grep -v '^ *+' conftest.er1 >conftest.err
3700 cat conftest.err >&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } &&
3703 { ac_try='test -z "$ac_c_werror_flag"
3704 || test ! -s conftest.err'
3705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; } &&
3710 { ac_try='test -s conftest.$ac_objext'
3711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; }; then
3716 ac_cv_prog_cc_stdc=$ac_arg
3719 echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3723 rm -f conftest.err conftest.$ac_objext
3725 rm -f conftest.$ac_ext conftest.$ac_objext
3730 case "x$ac_cv_prog_cc_stdc" in
3732 echo "$as_me:$LINENO: result: none needed" >&5
3733 echo "${ECHO_T}none needed" >&6 ;;
3735 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3736 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3737 CC="$CC $ac_cv_prog_cc_stdc" ;;
3740 # Some people use a C++ compiler to compile C. Since we use `exit',
3741 # in C++ we need to declare it. In case someone uses the same compiler
3742 # for both compiling C and C++ we need to have the C++ compiler decide
3743 # the declaration of exit, since it's the most demanding environment.
3744 cat >conftest.$ac_ext <<_ACEOF
3749 rm -f conftest.$ac_objext
3750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3751 (eval $ac_compile) 2>conftest.er1
3753 grep -v '^ *+' conftest.er1 >conftest.err
3755 cat conftest.err >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } &&
3758 { ac_try='test -z "$ac_c_werror_flag"
3759 || test ! -s conftest.err'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; } &&
3765 { ac_try='test -s conftest.$ac_objext'
3766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; }; then
3771 for ac_declaration in \
3773 'extern "C" void std::exit (int) throw (); using std::exit;' \
3774 'extern "C" void std::exit (int); using std::exit;' \
3775 'extern "C" void exit (int) throw ();' \
3776 'extern "C" void exit (int);' \
3779 cat >conftest.$ac_ext <<_ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3795 rm -f conftest.$ac_objext
3796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3797 (eval $ac_compile) 2>conftest.er1
3799 grep -v '^ *+' conftest.er1 >conftest.err
3801 cat conftest.err >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); } &&
3804 { ac_try='test -z "$ac_c_werror_flag"
3805 || test ! -s conftest.err'
3806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; } &&
3811 { ac_try='test -s conftest.$ac_objext'
3812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; }; then
3819 echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3825 cat >conftest.$ac_ext <<_ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3840 rm -f conftest.$ac_objext
3841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3842 (eval $ac_compile) 2>conftest.er1
3844 grep -v '^ *+' conftest.er1 >conftest.err
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } &&
3849 { ac_try='test -z "$ac_c_werror_flag"
3850 || test ! -s conftest.err'
3851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; } &&
3856 { ac_try='test -s conftest.$ac_objext'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; }; then
3864 echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3871 if test -n "$ac_declaration"; then
3872 echo '#ifdef __cplusplus' >>confdefs.h
3873 echo $ac_declaration >>confdefs.h
3874 echo '#endif' >>confdefs.h
3878 echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3884 ac_cpp='$CPP $CPPFLAGS'
3885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890 ac_cpp='$CXXCPP $CPPFLAGS'
3891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3894 if test -n "$ac_tool_prefix"; then
3895 for ac_prog in $CCC g++
3897 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3898 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3899 echo "$as_me:$LINENO: checking for $ac_word" >&5
3900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3901 if test "${ac_cv_prog_CXX+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 if test -n "$CXX"; then
3905 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3914 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 if test -n "$CXX"; then
3925 echo "$as_me:$LINENO: result: $CXX" >&5
3926 echo "${ECHO_T}$CXX" >&6
3928 echo "$as_me:$LINENO: result: no" >&5
3929 echo "${ECHO_T}no" >&6
3932 test -n "$CXX" && break
3935 if test -z "$CXX"; then
3937 for ac_prog in $CCC g++
3939 # Extract the first word of "$ac_prog", so it can be a program name with args.
3940 set dummy $ac_prog; ac_word=$2
3941 echo "$as_me:$LINENO: checking for $ac_word" >&5
3942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3943 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 if test -n "$ac_ct_CXX"; then
3947 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3956 ac_cv_prog_ac_ct_CXX="$ac_prog"
3957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3966 if test -n "$ac_ct_CXX"; then
3967 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3968 echo "${ECHO_T}$ac_ct_CXX" >&6
3970 echo "$as_me:$LINENO: result: no" >&5
3971 echo "${ECHO_T}no" >&6
3974 test -n "$ac_ct_CXX" && break
3976 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3982 # Provide some information about the compiler.
3983 echo "$as_me:$LINENO:" \
3984 "checking for C++ compiler version" >&5
3985 ac_compiler=`set X $ac_compile; echo $2`
3986 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3987 (eval $ac_compiler --version </dev/null >&5) 2>&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }
3991 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3992 (eval $ac_compiler -v </dev/null >&5) 2>&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }
3996 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3997 (eval $ac_compiler -V </dev/null >&5) 2>&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }
4002 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4003 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4004 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 cat >conftest.$ac_ext <<_ACEOF
4010 cat confdefs.h >>conftest.$ac_ext
4011 cat >>conftest.$ac_ext <<_ACEOF
4012 /* end confdefs.h. */
4025 rm -f conftest.$ac_objext
4026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4027 (eval $ac_compile) 2>conftest.er1
4029 grep -v '^ *+' conftest.er1 >conftest.err
4031 cat conftest.err >&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } &&
4034 { ac_try='test -z "$ac_cxx_werror_flag"
4035 || test ! -s conftest.err'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; } &&
4041 { ac_try='test -s conftest.$ac_objext'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; }; then
4049 echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4055 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4058 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4059 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4060 GXX=`test $ac_compiler_gnu = yes && echo yes`
4061 ac_test_CXXFLAGS=${CXXFLAGS+set}
4062 ac_save_CXXFLAGS=$CXXFLAGS
4064 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4065 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4066 if test "${ac_cv_prog_cxx_g+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 cat >conftest.$ac_ext <<_ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4084 rm -f conftest.$ac_objext
4085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4086 (eval $ac_compile) 2>conftest.er1
4088 grep -v '^ *+' conftest.er1 >conftest.err
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } &&
4093 { ac_try='test -z "$ac_cxx_werror_flag"
4094 || test ! -s conftest.err'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; } &&
4100 { ac_try='test -s conftest.$ac_objext'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 ac_cv_prog_cxx_g=yes
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4115 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4116 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4117 if test "$ac_test_CXXFLAGS" = set; then
4118 CXXFLAGS=$ac_save_CXXFLAGS
4119 elif test $ac_cv_prog_cxx_g = yes; then
4120 if test "$GXX" = yes; then
4126 if test "$GXX" = yes; then
4132 for ac_declaration in \
4134 'extern "C" void std::exit (int) throw (); using std::exit;' \
4135 'extern "C" void std::exit (int); using std::exit;' \
4136 'extern "C" void exit (int) throw ();' \
4137 'extern "C" void exit (int);' \
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4156 rm -f conftest.$ac_objext
4157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4158 (eval $ac_compile) 2>conftest.er1
4160 grep -v '^ *+' conftest.er1 >conftest.err
4162 cat conftest.err >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } &&
4165 { ac_try='test -z "$ac_cxx_werror_flag"
4166 || test ! -s conftest.err'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try='test -s conftest.$ac_objext'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; }; then
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4186 cat >conftest.$ac_ext <<_ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4201 rm -f conftest.$ac_objext
4202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4203 (eval $ac_compile) 2>conftest.er1
4205 grep -v '^ *+' conftest.er1 >conftest.err
4207 cat conftest.err >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); } &&
4210 { ac_try='test -z "$ac_cxx_werror_flag"
4211 || test ! -s conftest.err'
4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; } &&
4217 { ac_try='test -s conftest.$ac_objext'
4218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }; }; then
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4232 if test -n "$ac_declaration"; then
4233 echo '#ifdef __cplusplus' >>confdefs.h
4234 echo $ac_declaration >>confdefs.h
4235 echo '#endif' >>confdefs.h
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4244 echo "$as_me:$LINENO: checking " >&5
4245 echo $ECHO_N "checking ... $ECHO_C" >&6
4246 if test "${ac_cv_has_flex+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 for ac_prog in flex lex
4251 # Extract the first word of "$ac_prog", so it can be a program name with args.
4252 set dummy $ac_prog; ac_word=$2
4253 echo "$as_me:$LINENO: checking for $ac_word" >&5
4254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4255 if test "${ac_cv_prog_LEX+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 if test -n "$LEX"; then
4259 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 test -z "$as_dir" && as_dir=.
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4268 ac_cv_prog_LEX="$ac_prog"
4269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 if test -n "$LEX"; then
4279 echo "$as_me:$LINENO: result: $LEX" >&5
4280 echo "${ECHO_T}$LEX" >&6
4282 echo "$as_me:$LINENO: result: no" >&5
4283 echo "${ECHO_T}no" >&6
4286 test -n "$LEX" && break
4288 test -n "$LEX" || LEX=":"
4290 if test -z "$LEXLIB"
4292 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4293 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4294 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 ac_check_lib_save_LIBS=$LIBS
4299 cat >conftest.$ac_ext <<_ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h. */
4306 /* Override any gcc2 internal prototype to avoid an error. */
4310 /* We use char because int might match the return type of a gcc2
4311 builtin and then its argument prototype would still apply. */
4321 rm -f conftest.$ac_objext conftest$ac_exeext
4322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4323 (eval $ac_link) 2>conftest.er1
4325 grep -v '^ *+' conftest.er1 >conftest.err
4327 cat conftest.err >&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } &&
4330 { ac_try='test -z "$ac_c_werror_flag"
4331 || test ! -s conftest.err'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; } &&
4337 { ac_try='test -s conftest$ac_exeext'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; }; then
4343 ac_cv_lib_fl_yywrap=yes
4345 echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4348 ac_cv_lib_fl_yywrap=no
4350 rm -f conftest.err conftest.$ac_objext \
4351 conftest$ac_exeext conftest.$ac_ext
4352 LIBS=$ac_check_lib_save_LIBS
4354 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4355 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4356 if test $ac_cv_lib_fl_yywrap = yes; then
4359 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4360 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4361 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 ac_check_lib_save_LIBS=$LIBS
4366 cat >conftest.$ac_ext <<_ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4373 /* Override any gcc2 internal prototype to avoid an error. */
4377 /* We use char because int might match the return type of a gcc2
4378 builtin and then its argument prototype would still apply. */
4388 rm -f conftest.$ac_objext conftest$ac_exeext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4390 (eval $ac_link) 2>conftest.er1
4392 grep -v '^ *+' conftest.er1 >conftest.err
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
4397 { ac_try='test -z "$ac_c_werror_flag"
4398 || test ! -s conftest.err'
4399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; } &&
4404 { ac_try='test -s conftest$ac_exeext'
4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
4410 ac_cv_lib_l_yywrap=yes
4412 echo "$as_me: failed program was:" >&5
4413 sed 's/^/| /' conftest.$ac_ext >&5
4415 ac_cv_lib_l_yywrap=no
4417 rm -f conftest.err conftest.$ac_objext \
4418 conftest$ac_exeext conftest.$ac_ext
4419 LIBS=$ac_check_lib_save_LIBS
4421 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4422 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4423 if test $ac_cv_lib_l_yywrap = yes; then
4431 if test "x$LEX" != "x:"; then
4432 echo "$as_me:$LINENO: checking lex output file root" >&5
4433 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4434 if test "${ac_cv_prog_lex_root+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 # The minimal lex program is just a single line: %%. But some broken lexes
4438 # (Solaris, I think it was) want two %% lines, so accommodate them.
4439 cat >conftest.l <<_ACEOF
4443 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4444 (eval $LEX conftest.l) 2>&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }
4448 if test -f lex.yy.c; then
4449 ac_cv_prog_lex_root=lex.yy
4450 elif test -f lexyy.c; then
4451 ac_cv_prog_lex_root=lexyy
4453 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4454 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4455 { (exit 1); exit 1; }; }
4458 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4459 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4461 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4463 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4464 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4465 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 # POSIX says lex can declare yytext either as a pointer or an array; the
4469 # default is implementation-dependent. Figure out which it is, since
4470 # not all implementations provide the %pointer and %array declarations.
4471 ac_cv_prog_lex_yytext_pointer=no
4472 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4474 LIBS="$LIBS $LEXLIB"
4475 cat >conftest.$ac_ext <<_ACEOF
4476 `cat $LEX_OUTPUT_ROOT.c`
4478 rm -f conftest.$ac_objext conftest$ac_exeext
4479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4480 (eval $ac_link) 2>conftest.er1
4482 grep -v '^ *+' conftest.er1 >conftest.err
4484 cat conftest.err >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } &&
4487 { ac_try='test -z "$ac_c_werror_flag"
4488 || test ! -s conftest.err'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; } &&
4494 { ac_try='test -s conftest$ac_exeext'
4495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; }; then
4500 ac_cv_prog_lex_yytext_pointer=yes
4502 echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.$ac_ext >&5
4506 rm -f conftest.err conftest.$ac_objext \
4507 conftest$ac_exeext conftest.$ac_ext
4509 rm -f "${LEX_OUTPUT_ROOT}.c"
4512 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4513 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4514 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4516 cat >>confdefs.h <<\_ACEOF
4517 #define YYTEXT_POINTER 1
4525 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4526 echo "${ECHO_T}$ac_cv_has_flex" >&6
4527 if test "$LEX" != "flex"; then
4528 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4529 echo "$as_me: error: flex not found but required" >&2;}
4530 { (exit 1); exit 1; }; }
4536 echo "$as_me:$LINENO: checking " >&5
4537 echo $ECHO_N "checking ... $ECHO_C" >&6
4538 if test "${llvm_cv_has_bison+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 for ac_prog in 'bison -y' byacc
4543 # Extract the first word of "$ac_prog", so it can be a program name with args.
4544 set dummy $ac_prog; ac_word=$2
4545 echo "$as_me:$LINENO: checking for $ac_word" >&5
4546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4547 if test "${ac_cv_prog_YACC+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 if test -n "$YACC"; then
4551 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4560 ac_cv_prog_YACC="$ac_prog"
4561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 YACC=$ac_cv_prog_YACC
4570 if test -n "$YACC"; then
4571 echo "$as_me:$LINENO: result: $YACC" >&5
4572 echo "${ECHO_T}$YACC" >&6
4574 echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6
4578 test -n "$YACC" && break
4580 test -n "$YACC" || YACC="yacc"
4583 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4584 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4585 if test "$YACC" != "bison -y"; then
4586 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4587 echo "$as_me: error: bison not found but required" >&2;}
4588 { (exit 1); exit 1; }; }
4594 echo "$as_me:$LINENO: checking for GNU make" >&5
4595 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4596 if test "${llvm_cv_gnu_make_command+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 llvm_cv_gnu_make_command=''
4600 for a in "$MAKE" make gmake gnumake ; do
4601 if test -z "$a" ; then continue ; fi ;
4602 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4604 llvm_cv_gnu_make_command=$a ;
4609 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4610 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4611 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4615 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4616 echo "${ECHO_T}\"Not found\"" >&6;
4620 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4621 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4623 if test "$LN_S" = "ln -s"; then
4624 echo "$as_me:$LINENO: result: yes" >&5
4625 echo "${ECHO_T}yes" >&6
4627 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4628 echo "${ECHO_T}no, using $LN_S" >&6
4631 # Extract the first word of "cmp", so it can be a program name with args.
4632 set dummy cmp; ac_word=$2
4633 echo "$as_me:$LINENO: checking for $ac_word" >&5
4634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4635 if test "${ac_cv_path_CMP+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4650 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4663 if test -n "$CMP"; then
4664 echo "$as_me:$LINENO: result: $CMP" >&5
4665 echo "${ECHO_T}$CMP" >&6
4667 echo "$as_me:$LINENO: result: no" >&5
4668 echo "${ECHO_T}no" >&6
4671 # Extract the first word of "cp", so it can be a program name with args.
4672 set dummy cp; ac_word=$2
4673 echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4675 if test "${ac_cv_path_CP+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4690 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4703 if test -n "$CP"; then
4704 echo "$as_me:$LINENO: result: $CP" >&5
4705 echo "${ECHO_T}$CP" >&6
4707 echo "$as_me:$LINENO: result: no" >&5
4708 echo "${ECHO_T}no" >&6
4711 # Extract the first word of "date", so it can be a program name with args.
4712 set dummy date; ac_word=$2
4713 echo "$as_me:$LINENO: checking for $ac_word" >&5
4714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4715 if test "${ac_cv_path_DATE+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4730 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4741 DATE=$ac_cv_path_DATE
4743 if test -n "$DATE"; then
4744 echo "$as_me:$LINENO: result: $DATE" >&5
4745 echo "${ECHO_T}$DATE" >&6
4747 echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4751 # Extract the first word of "find", so it can be a program name with args.
4752 set dummy find; ac_word=$2
4753 echo "$as_me:$LINENO: checking for $ac_word" >&5
4754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4755 if test "${ac_cv_path_FIND+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4781 FIND=$ac_cv_path_FIND
4783 if test -n "$FIND"; then
4784 echo "$as_me:$LINENO: result: $FIND" >&5
4785 echo "${ECHO_T}$FIND" >&6
4787 echo "$as_me:$LINENO: result: no" >&5
4788 echo "${ECHO_T}no" >&6
4791 # Extract the first word of "grep", so it can be a program name with args.
4792 set dummy grep; ac_word=$2
4793 echo "$as_me:$LINENO: checking for $ac_word" >&5
4794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4795 if test "${ac_cv_path_GREP+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4800 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 test -z "$as_dir" && as_dir=.
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4810 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4821 GREP=$ac_cv_path_GREP
4823 if test -n "$GREP"; then
4824 echo "$as_me:$LINENO: result: $GREP" >&5
4825 echo "${ECHO_T}$GREP" >&6
4827 echo "$as_me:$LINENO: result: no" >&5
4828 echo "${ECHO_T}no" >&6
4831 # Extract the first word of "mkdir", so it can be a program name with args.
4832 set dummy mkdir; ac_word=$2
4833 echo "$as_me:$LINENO: checking for $ac_word" >&5
4834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4835 if test "${ac_cv_path_MKDIR+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4861 MKDIR=$ac_cv_path_MKDIR
4863 if test -n "$MKDIR"; then
4864 echo "$as_me:$LINENO: result: $MKDIR" >&5
4865 echo "${ECHO_T}$MKDIR" >&6
4867 echo "$as_me:$LINENO: result: no" >&5
4868 echo "${ECHO_T}no" >&6
4871 # Extract the first word of "mv", so it can be a program name with args.
4872 set dummy mv; ac_word=$2
4873 echo "$as_me:$LINENO: checking for $ac_word" >&5
4874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4875 if test "${ac_cv_path_MV+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 test -z "$as_dir" && as_dir=.
4888 for ac_exec_ext in '' $ac_executable_extensions; do
4889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4890 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4903 if test -n "$MV"; then
4904 echo "$as_me:$LINENO: result: $MV" >&5
4905 echo "${ECHO_T}$MV" >&6
4907 echo "$as_me:$LINENO: result: no" >&5
4908 echo "${ECHO_T}no" >&6
4911 if test -n "$ac_tool_prefix"; then
4912 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4913 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4914 echo "$as_me:$LINENO: checking for $ac_word" >&5
4915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4916 if test "${ac_cv_prog_RANLIB+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 if test -n "$RANLIB"; then
4920 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 RANLIB=$ac_cv_prog_RANLIB
4939 if test -n "$RANLIB"; then
4940 echo "$as_me:$LINENO: result: $RANLIB" >&5
4941 echo "${ECHO_T}$RANLIB" >&6
4943 echo "$as_me:$LINENO: result: no" >&5
4944 echo "${ECHO_T}no" >&6
4948 if test -z "$ac_cv_prog_RANLIB"; then
4949 ac_ct_RANLIB=$RANLIB
4950 # Extract the first word of "ranlib", so it can be a program name with args.
4951 set dummy ranlib; ac_word=$2
4952 echo "$as_me:$LINENO: checking for $ac_word" >&5
4953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4954 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 if test -n "$ac_ct_RANLIB"; then
4958 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967 ac_cv_prog_ac_ct_RANLIB="ranlib"
4968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4977 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4978 if test -n "$ac_ct_RANLIB"; then
4979 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4980 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4982 echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6
4986 RANLIB=$ac_ct_RANLIB
4988 RANLIB="$ac_cv_prog_RANLIB"
4991 # Extract the first word of "rm", so it can be a program name with args.
4992 set dummy rm; ac_word=$2
4993 echo "$as_me:$LINENO: checking for $ac_word" >&5
4994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4995 if test "${ac_cv_path_RM+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 test -z "$as_dir" && as_dir=.
5008 for ac_exec_ext in '' $ac_executable_extensions; do
5009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5010 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5023 if test -n "$RM"; then
5024 echo "$as_me:$LINENO: result: $RM" >&5
5025 echo "${ECHO_T}$RM" >&6
5027 echo "$as_me:$LINENO: result: no" >&5
5028 echo "${ECHO_T}no" >&6
5031 # Extract the first word of "sed", so it can be a program name with args.
5032 set dummy sed; ac_word=$2
5033 echo "$as_me:$LINENO: checking for $ac_word" >&5
5034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5035 if test "${ac_cv_path_SED+set}" = set; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5063 if test -n "$SED"; then
5064 echo "$as_me:$LINENO: result: $SED" >&5
5065 echo "${ECHO_T}$SED" >&6
5067 echo "$as_me:$LINENO: result: no" >&5
5068 echo "${ECHO_T}no" >&6
5071 # Extract the first word of "tar", so it can be a program name with args.
5072 set dummy tar; ac_word=$2
5073 echo "$as_me:$LINENO: checking for $ac_word" >&5
5074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5075 if test "${ac_cv_path_TAR+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 test -z "$as_dir" && as_dir=.
5088 for ac_exec_ext in '' $ac_executable_extensions; do
5089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5090 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5103 if test -n "$TAR"; then
5104 echo "$as_me:$LINENO: result: $TAR" >&5
5105 echo "${ECHO_T}$TAR" >&6
5107 echo "$as_me:$LINENO: result: no" >&5
5108 echo "${ECHO_T}no" >&6
5112 # Find a good install program. We prefer a C program (faster),
5113 # so one script is as good as another. But avoid the broken or
5114 # incompatible versions:
5115 # SysV /etc/install, /usr/sbin/install
5116 # SunOS /usr/etc/install
5117 # IRIX /sbin/install
5119 # AmigaOS /C/install, which installs bootblocks on floppy discs
5120 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5121 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5122 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5123 # OS/2's system install, which has a completely different semantic
5124 # ./install, which can be erroneously created by make from ./install.sh.
5125 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5126 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5127 if test -z "$INSTALL"; then
5128 if test "${ac_cv_path_install+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 test -z "$as_dir" && as_dir=.
5136 # Account for people who put trailing slashes in PATH elements.
5138 ./ | .// | /cC/* | \
5139 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5140 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5143 # OSF1 and SCO ODT 3.0 have their own names for install.
5144 # Don't use installbsd from OSF since it installs stuff as root
5146 for ac_prog in ginstall scoinst install; do
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5149 if test $ac_prog = install &&
5150 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5151 # AIX install. It has an incompatible calling convention.
5153 elif test $ac_prog = install &&
5154 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5155 # program-specific install script used by HP pwplus--don't use.
5158 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5170 if test "${ac_cv_path_install+set}" = set; then
5171 INSTALL=$ac_cv_path_install
5173 # As a last resort, use the slow shell script. We don't cache a
5174 # path for INSTALL within a source directory, because that will
5175 # break other packages using the cache if that directory is
5176 # removed, or if the path is relative.
5177 INSTALL=$ac_install_sh
5180 echo "$as_me:$LINENO: result: $INSTALL" >&5
5181 echo "${ECHO_T}$INSTALL" >&6
5183 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5184 # It thinks the first close brace ends the variable substitution.
5185 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5187 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5189 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5192 # Extract the first word of "bzip2", so it can be a program name with args.
5193 set dummy bzip2; ac_word=$2
5194 echo "$as_me:$LINENO: checking for $ac_word" >&5
5195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5196 if test "${ac_cv_path_BZIP2+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5222 BZIP2=$ac_cv_path_BZIP2
5224 if test -n "$BZIP2"; then
5225 echo "$as_me:$LINENO: result: $BZIP2" >&5
5226 echo "${ECHO_T}$BZIP2" >&6
5228 echo "$as_me:$LINENO: result: no" >&5
5229 echo "${ECHO_T}no" >&6
5232 # Extract the first word of "dot", so it can be a program name with args.
5233 set dummy dot; ac_word=$2
5234 echo "$as_me:$LINENO: checking for $ac_word" >&5
5235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5236 if test "${ac_cv_path_DOT+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5264 if test -n "$DOT"; then
5265 echo "$as_me:$LINENO: result: $DOT" >&5
5266 echo "${ECHO_T}$DOT" >&6
5268 echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6
5272 # Extract the first word of "doxygen", so it can be a program name with args.
5273 set dummy doxygen; ac_word=$2
5274 echo "$as_me:$LINENO: checking for $ac_word" >&5
5275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5276 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5302 DOXYGEN=$ac_cv_path_DOXYGEN
5304 if test -n "$DOXYGEN"; then
5305 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5306 echo "${ECHO_T}$DOXYGEN" >&6
5308 echo "$as_me:$LINENO: result: no" >&5
5309 echo "${ECHO_T}no" >&6
5312 # Extract the first word of "etags", so it can be a program name with args.
5313 set dummy etags; ac_word=$2
5314 echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5316 if test "${ac_cv_path_ETAGS+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 test -z "$as_dir" && as_dir=.
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5331 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5342 ETAGS=$ac_cv_path_ETAGS
5344 if test -n "$ETAGS"; then
5345 echo "$as_me:$LINENO: result: $ETAGS" >&5
5346 echo "${ECHO_T}$ETAGS" >&6
5348 echo "$as_me:$LINENO: result: no" >&5
5349 echo "${ECHO_T}no" >&6
5352 # Extract the first word of "groff", so it can be a program name with args.
5353 set dummy groff; ac_word=$2
5354 echo "$as_me:$LINENO: checking for $ac_word" >&5
5355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5356 if test "${ac_cv_path_GROFF+set}" = set; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5371 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5382 GROFF=$ac_cv_path_GROFF
5384 if test -n "$GROFF"; then
5385 echo "$as_me:$LINENO: result: $GROFF" >&5
5386 echo "${ECHO_T}$GROFF" >&6
5388 echo "$as_me:$LINENO: result: no" >&5
5389 echo "${ECHO_T}no" >&6
5392 # Extract the first word of "gzip", so it can be a program name with args.
5393 set dummy gzip; ac_word=$2
5394 echo "$as_me:$LINENO: checking for $ac_word" >&5
5395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5396 if test "${ac_cv_path_GZIP+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5401 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5422 GZIP=$ac_cv_path_GZIP
5424 if test -n "$GZIP"; then
5425 echo "$as_me:$LINENO: result: $GZIP" >&5
5426 echo "${ECHO_T}$GZIP" >&6
5428 echo "$as_me:$LINENO: result: no" >&5
5429 echo "${ECHO_T}no" >&6
5432 # Extract the first word of "pod2html", so it can be a program name with args.
5433 set dummy pod2html; ac_word=$2
5434 echo "$as_me:$LINENO: checking for $ac_word" >&5
5435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5436 if test "${ac_cv_path_POD2HTML+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5462 POD2HTML=$ac_cv_path_POD2HTML
5464 if test -n "$POD2HTML"; then
5465 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5466 echo "${ECHO_T}$POD2HTML" >&6
5468 echo "$as_me:$LINENO: result: no" >&5
5469 echo "${ECHO_T}no" >&6
5472 # Extract the first word of "pod2man", so it can be a program name with args.
5473 set dummy pod2man; ac_word=$2
5474 echo "$as_me:$LINENO: checking for $ac_word" >&5
5475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5476 if test "${ac_cv_path_POD2MAN+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5502 POD2MAN=$ac_cv_path_POD2MAN
5504 if test -n "$POD2MAN"; then
5505 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5506 echo "${ECHO_T}$POD2MAN" >&6
5508 echo "$as_me:$LINENO: result: no" >&5
5509 echo "${ECHO_T}no" >&6
5512 # Extract the first word of "runtest", so it can be a program name with args.
5513 set dummy runtest; ac_word=$2
5514 echo "$as_me:$LINENO: checking for $ac_word" >&5
5515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5516 if test "${ac_cv_path_RUNTEST+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5531 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5542 RUNTEST=$ac_cv_path_RUNTEST
5544 if test -n "$RUNTEST"; then
5545 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5546 echo "${ECHO_T}$RUNTEST" >&6
5548 echo "$as_me:$LINENO: result: no" >&5
5549 echo "${ECHO_T}no" >&6
5554 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5555 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5557 # Check whether --with-tclinclude or --without-tclinclude was given.
5558 if test "${with_tclinclude+set}" = set; then
5559 withval="$with_tclinclude"
5560 with_tclinclude=${withval}
5564 if test "${ac_cv_path_tclsh+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 if test x"${with_tclinclude}" != x ; then
5569 if test -f ${with_tclinclude}/tclsh ; then
5570 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5571 elif test -f ${with_tclinclude}/src/tclsh ; then
5572 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5574 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5575 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5576 { (exit 1); exit 1; }; }
5580 if test x"${ac_cv_path_tclsh}" = x ; then
5581 echo "$as_me:$LINENO: result: none" >&5
5582 echo "${ECHO_T}none" >&6
5583 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
5585 # Extract the first word of "$ac_prog", so it can be a program name with args.
5586 set dummy $ac_prog; ac_word=$2
5587 echo "$as_me:$LINENO: checking for $ac_word" >&5
5588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5589 if test "${ac_cv_path_TCLSH+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 test -z "$as_dir" && as_dir=.
5602 for ac_exec_ext in '' $ac_executable_extensions; do
5603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5604 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5614 TCLSH=$ac_cv_path_TCLSH
5616 if test -n "$TCLSH"; then
5617 echo "$as_me:$LINENO: result: $TCLSH" >&5
5618 echo "${ECHO_T}$TCLSH" >&6
5620 echo "$as_me:$LINENO: result: no" >&5
5621 echo "${ECHO_T}no" >&6
5624 test -n "$TCLSH" && break
5627 if test x"${TCLSH}" = x ; then
5628 ac_cv_path_tclsh='';
5630 ac_cv_path_tclsh="${TCLSH}";
5633 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5634 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5635 TCLSH="${ac_cv_path_tclsh}"
5641 # Extract the first word of "zip", so it can be a program name with args.
5642 set dummy zip; ac_word=$2
5643 echo "$as_me:$LINENO: checking for $ac_word" >&5
5644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5645 if test "${ac_cv_path_ZIP+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5673 if test -n "$ZIP"; then
5674 echo "$as_me:$LINENO: result: $ZIP" >&5
5675 echo "${ECHO_T}$ZIP" >&6
5677 echo "$as_me:$LINENO: result: no" >&5
5678 echo "${ECHO_T}no" >&6
5682 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5683 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5684 if test "${llvm_cv_link_use_r+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 ac_cpp='$CPP $CPPFLAGS'
5689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5694 CFLAGS="$CFLAGS -Wl,-R."
5695 cat >conftest.$ac_ext <<_ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5705 int main() { return 0; }
5710 rm -f conftest.$ac_objext conftest$ac_exeext
5711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5712 (eval $ac_link) 2>conftest.er1
5714 grep -v '^ *+' conftest.er1 >conftest.err
5716 cat conftest.err >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } &&
5719 { ac_try='test -z "$ac_c_werror_flag"
5720 || test ! -s conftest.err'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; } &&
5726 { ac_try='test -s conftest$ac_exeext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5732 llvm_cv_link_use_r=yes
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 llvm_cv_link_use_r=no
5739 rm -f conftest.err conftest.$ac_objext \
5740 conftest$ac_exeext conftest.$ac_ext
5743 ac_cpp='$CPP $CPPFLAGS'
5744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5750 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5751 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5752 if test "$llvm_cv_link_use_r" = yes ; then
5754 cat >>confdefs.h <<\_ACEOF
5755 #define HAVE_LINK_R 1
5763 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5764 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5765 if test "${ac_cv_c_const+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 cat >conftest.$ac_ext <<_ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5778 /* FIXME: Include the comments suggested by Paul. */
5780 /* Ultrix mips cc rejects this. */
5781 typedef int charset[2];
5783 /* SunOS 4.1.1 cc rejects this. */
5784 char const *const *ccp;
5786 /* NEC SVR4.0.2 mips cc rejects this. */
5787 struct point {int x, y;};
5788 static struct point const zero = {0,0};
5789 /* AIX XL C 1.02.0.0 rejects this.
5790 It does not let you subtract one const X* pointer from another in
5791 an arm of an if-expression whose if-part is not a constant
5793 const char *g = "string";
5794 ccp = &g + (g ? g-g : 0);
5795 /* HPUX 7.0 cc rejects these. */
5798 ccp = (char const *const *) p;
5799 { /* SCO 3.2v4 cc rejects this. */
5801 char const *s = 0 ? (char *) 0 : (char const *) 0;
5805 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5807 const int *foo = &x[0];
5810 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5811 typedef const int *iptr;
5815 { /* AIX XL C 1.02.0.0 rejects this saying
5816 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5817 struct s { int j; const int *ap[3]; };
5818 struct s *b; b->j = 5;
5820 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5829 rm -f conftest.$ac_objext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831 (eval $ac_compile) 2>conftest.er1
5833 grep -v '^ *+' conftest.er1 >conftest.err
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try='test -z "$ac_c_werror_flag"
5839 || test ! -s conftest.err'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; } &&
5845 { ac_try='test -s conftest.$ac_objext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5860 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5861 echo "${ECHO_T}$ac_cv_c_const" >&6
5862 if test $ac_cv_c_const = no; then
5864 cat >>confdefs.h <<\_ACEOF
5871 echo "$as_me:$LINENO: checking for egrep" >&5
5872 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5873 if test "${ac_cv_prog_egrep+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5877 then ac_cv_prog_egrep='grep -E'
5878 else ac_cv_prog_egrep='egrep'
5881 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5882 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5883 EGREP=$ac_cv_prog_egrep
5886 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5887 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5888 if test "${ac_cv_header_stdc+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 cat >conftest.$ac_ext <<_ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5910 rm -f conftest.$ac_objext
5911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5912 (eval $ac_compile) 2>conftest.er1
5914 grep -v '^ *+' conftest.er1 >conftest.err
5916 cat conftest.err >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } &&
5919 { ac_try='test -z "$ac_c_werror_flag"
5920 || test ! -s conftest.err'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; } &&
5926 { ac_try='test -s conftest.$ac_objext'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 ac_cv_header_stdc=yes
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5937 ac_cv_header_stdc=no
5939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5941 if test $ac_cv_header_stdc = yes; then
5942 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5943 cat >conftest.$ac_ext <<_ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5953 $EGREP "memchr" >/dev/null 2>&1; then
5956 ac_cv_header_stdc=no
5962 if test $ac_cv_header_stdc = yes; then
5963 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5964 cat >conftest.$ac_ext <<_ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5974 $EGREP "free" >/dev/null 2>&1; then
5977 ac_cv_header_stdc=no
5983 if test $ac_cv_header_stdc = yes; then
5984 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5985 if test "$cross_compiling" = yes; then
5988 cat >conftest.$ac_ext <<_ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5995 #if ((' ' & 0x0FF) == 0x020)
5996 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5997 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5999 # define ISLOWER(c) \
6000 (('a' <= (c) && (c) <= 'i') \
6001 || ('j' <= (c) && (c) <= 'r') \
6002 || ('s' <= (c) && (c) <= 'z'))
6003 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6006 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6011 for (i = 0; i < 256; i++)
6012 if (XOR (islower (i), ISLOWER (i))
6013 || toupper (i) != TOUPPER (i))
6018 rm -f conftest$ac_exeext
6019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6020 (eval $ac_link) 2>&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6031 echo "$as_me: program exited with status $ac_status" >&5
6032 echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.$ac_ext >&5
6036 ac_cv_header_stdc=no
6038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6042 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6043 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6044 if test $ac_cv_header_stdc = yes; then
6046 cat >>confdefs.h <<\_ACEOF
6047 #define STDC_HEADERS 1
6058 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6059 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6060 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6061 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 cat >conftest.$ac_ext <<_ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6071 #include <sys/types.h>
6083 rm -f conftest.$ac_objext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085 (eval $ac_compile) 2>conftest.er1
6087 grep -v '^ *+' conftest.er1 >conftest.err
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try='test -z "$ac_c_werror_flag"
6093 || test ! -s conftest.err'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; } &&
6099 { ac_try='test -s conftest.$ac_objext'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6105 eval "$as_ac_Header=yes"
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6110 eval "$as_ac_Header=no"
6112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6117 cat >>confdefs.h <<_ACEOF
6118 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6121 ac_header_dirent=$ac_hdr; break
6125 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6126 if test $ac_header_dirent = dirent.h; then
6127 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6128 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6129 if test "${ac_cv_search_opendir+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6132 ac_func_search_save_LIBS=$LIBS
6133 ac_cv_search_opendir=no
6134 cat >conftest.$ac_ext <<_ACEOF
6137 cat confdefs.h >>conftest.$ac_ext
6138 cat >>conftest.$ac_ext <<_ACEOF
6139 /* end confdefs.h. */
6141 /* Override any gcc2 internal prototype to avoid an error. */
6145 /* We use char because int might match the return type of a gcc2
6146 builtin and then its argument prototype would still apply. */
6156 rm -f conftest.$ac_objext conftest$ac_exeext
6157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6158 (eval $ac_link) 2>conftest.er1
6160 grep -v '^ *+' conftest.er1 >conftest.err
6162 cat conftest.err >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } &&
6165 { ac_try='test -z "$ac_c_werror_flag"
6166 || test ! -s conftest.err'
6167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; } &&
6172 { ac_try='test -s conftest$ac_exeext'
6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; }; then
6178 ac_cv_search_opendir="none required"
6180 echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6184 rm -f conftest.err conftest.$ac_objext \
6185 conftest$ac_exeext conftest.$ac_ext
6186 if test "$ac_cv_search_opendir" = no; then
6187 for ac_lib in dir; do
6188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6189 cat >conftest.$ac_ext <<_ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h. */
6196 /* Override any gcc2 internal prototype to avoid an error. */
6200 /* We use char because int might match the return type of a gcc2
6201 builtin and then its argument prototype would still apply. */
6211 rm -f conftest.$ac_objext conftest$ac_exeext
6212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6213 (eval $ac_link) 2>conftest.er1
6215 grep -v '^ *+' conftest.er1 >conftest.err
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } &&
6220 { ac_try='test -z "$ac_c_werror_flag"
6221 || test ! -s conftest.err'
6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; } &&
6227 { ac_try='test -s conftest$ac_exeext'
6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; }; then
6233 ac_cv_search_opendir="-l$ac_lib"
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6240 rm -f conftest.err conftest.$ac_objext \
6241 conftest$ac_exeext conftest.$ac_ext
6244 LIBS=$ac_func_search_save_LIBS
6246 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6247 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6248 if test "$ac_cv_search_opendir" != no; then
6249 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6254 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6255 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6256 if test "${ac_cv_search_opendir+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 ac_func_search_save_LIBS=$LIBS
6260 ac_cv_search_opendir=no
6261 cat >conftest.$ac_ext <<_ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6268 /* Override any gcc2 internal prototype to avoid an error. */
6272 /* We use char because int might match the return type of a gcc2
6273 builtin and then its argument prototype would still apply. */
6283 rm -f conftest.$ac_objext conftest$ac_exeext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285 (eval $ac_link) 2>conftest.er1
6287 grep -v '^ *+' conftest.er1 >conftest.err
6289 cat conftest.err >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } &&
6292 { ac_try='test -z "$ac_c_werror_flag"
6293 || test ! -s conftest.err'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; } &&
6299 { ac_try='test -s conftest$ac_exeext'
6300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); }; }; then
6305 ac_cv_search_opendir="none required"
6307 echo "$as_me: failed program was:" >&5
6308 sed 's/^/| /' conftest.$ac_ext >&5
6311 rm -f conftest.err conftest.$ac_objext \
6312 conftest$ac_exeext conftest.$ac_ext
6313 if test "$ac_cv_search_opendir" = no; then
6315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6316 cat >conftest.$ac_ext <<_ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h. */
6323 /* Override any gcc2 internal prototype to avoid an error. */
6327 /* We use char because int might match the return type of a gcc2
6328 builtin and then its argument prototype would still apply. */
6338 rm -f conftest.$ac_objext conftest$ac_exeext
6339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6340 (eval $ac_link) 2>conftest.er1
6342 grep -v '^ *+' conftest.er1 >conftest.err
6344 cat conftest.err >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try='test -z "$ac_c_werror_flag"
6348 || test ! -s conftest.err'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try='test -s conftest$ac_exeext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 ac_cv_search_opendir="-l$ac_lib"
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6367 rm -f conftest.err conftest.$ac_objext \
6368 conftest$ac_exeext conftest.$ac_ext
6371 LIBS=$ac_func_search_save_LIBS
6373 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6374 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6375 if test "$ac_cv_search_opendir" != no; then
6376 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6382 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6392 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6393 inttypes.h stdint.h unistd.h
6395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6396 echo "$as_me:$LINENO: checking for $ac_header" >&5
6397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 cat >conftest.$ac_ext <<_ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6407 $ac_includes_default
6409 #include <$ac_header>
6411 rm -f conftest.$ac_objext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413 (eval $ac_compile) 2>conftest.er1
6415 grep -v '^ *+' conftest.er1 >conftest.err
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try='test -z "$ac_c_werror_flag"
6421 || test ! -s conftest.err'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; } &&
6427 { ac_try='test -s conftest.$ac_objext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 eval "$as_ac_Header=yes"
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6438 eval "$as_ac_Header=no"
6440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6445 cat >>confdefs.h <<_ACEOF
6446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6455 for ac_header in dlfcn.h
6457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6459 echo "$as_me:$LINENO: checking for $ac_header" >&5
6460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6467 # Is the header compilable?
6468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6470 cat >conftest.$ac_ext <<_ACEOF
6473 cat confdefs.h >>conftest.$ac_ext
6474 cat >>conftest.$ac_ext <<_ACEOF
6475 /* end confdefs.h. */
6476 $ac_includes_default
6477 #include <$ac_header>
6479 rm -f conftest.$ac_objext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>conftest.er1
6483 grep -v '^ *+' conftest.er1 >conftest.err
6485 cat conftest.err >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try='test -z "$ac_c_werror_flag"
6489 || test ! -s conftest.err'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; } &&
6495 { ac_try='test -s conftest.$ac_objext'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; }; then
6501 ac_header_compiler=yes
6503 echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6506 ac_header_compiler=no
6508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6510 echo "${ECHO_T}$ac_header_compiler" >&6
6512 # Is the header present?
6513 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6515 cat >conftest.$ac_ext <<_ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6521 #include <$ac_header>
6523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6526 grep -v '^ *+' conftest.er1 >conftest.err
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } >/dev/null; then
6531 if test -s conftest.err; then
6532 ac_cpp_err=$ac_c_preproc_warn_flag
6533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6540 if test -z "$ac_cpp_err"; then
6541 ac_header_preproc=yes
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6546 ac_header_preproc=no
6548 rm -f conftest.err conftest.$ac_ext
6549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6550 echo "${ECHO_T}$ac_header_preproc" >&6
6552 # So? What about this header?
6553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6559 ac_header_preproc=yes
6562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6569 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6576 ## ----------------------------------- ##
6577 ## Report this to llvmbugs@cs.uiuc.edu ##
6578 ## ----------------------------------- ##
6581 sed "s/^/$as_me: WARNING: /" >&2
6584 echo "$as_me:$LINENO: checking for $ac_header" >&5
6585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 eval "$as_ac_Header=\$ac_header_preproc"
6591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6596 cat >>confdefs.h <<_ACEOF
6597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6604 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6605 if test "${enable_ltdl_install+set}" = set; then
6606 enableval="$enable_ltdl_install"
6612 if test x"${enable_ltdl_install-no}" != xno; then
6614 INSTALL_LTDL_FALSE='#'
6616 INSTALL_LTDL_TRUE='#'
6622 if test x"${enable_ltdl_convenience-no}" != xno; then
6623 CONVENIENCE_LTDL_TRUE=
6624 CONVENIENCE_LTDL_FALSE='#'
6626 CONVENIENCE_LTDL_TRUE='#'
6627 CONVENIENCE_LTDL_FALSE=
6631 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6632 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6634 libname_spec='lib$name'
6642 shlibpath_overrides_runpath=unknown
6644 dynamic_linker="$host_os ld.so"
6645 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6646 if test "$GCC" = yes; then
6647 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6648 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6649 # if the path contains ";" then we assume it to be the separator
6650 # otherwise default to the standard path separator (i.e. ":") - it is
6651 # assumed that no part of a normal pathname contains ";" but that should
6652 # okay in the real world where ";" in dirpaths is itself problematic.
6653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6655 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6658 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6660 need_lib_prefix=unknown
6661 hardcode_into_libs=no
6663 # when you set need_version to no, make sure it does not cause -set_version
6664 # flags to be left without arguments
6665 need_version=unknown
6670 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6671 shlibpath_var=LIBPATH
6673 # AIX 3 has no versioning support, so we append a major version to the name.
6674 soname_spec='${libname}${release}${shared_ext}$major'
6681 hardcode_into_libs=yes
6682 if test "$host_cpu" = ia64; then
6683 # AIX 5 supports IA64
6684 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6685 shlibpath_var=LD_LIBRARY_PATH
6687 # With GCC up to 2.95.x, collect2 would create an import file
6688 # for dependence libraries. The import file would start with
6689 # the line `#! .'. This would cause the generated library to
6690 # depend on `.', always an invalid library. This was fixed in
6691 # development snapshots of GCC prior to 3.0.
6693 aix4 | aix4.[01] | aix4.[01].*)
6694 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6696 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6703 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6704 # soname into executable. Probably we can add versioning support to
6705 # collect2, so additional links can be useful in future.
6706 if test "$aix_use_runtimelinking" = yes; then
6707 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6708 # instead of lib<name>.a to let people know that these are not
6709 # typical AIX shared libraries.
6710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6712 # We preserve .a as extension for shared libraries through AIX4.2
6713 # and later when we are not doing run time linking.
6714 library_names_spec='${libname}${release}.a $libname.a'
6715 soname_spec='${libname}${release}${shared_ext}$major'
6717 shlibpath_var=LIBPATH
6722 library_names_spec='$libname.ixlibrary $libname.a'
6723 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6724 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'
6728 library_names_spec='${libname}${shared_ext}'
6729 dynamic_linker="$host_os ld.so"
6730 shlibpath_var=LIBRARY_PATH
6736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6737 soname_spec='${libname}${release}${shared_ext}$major'
6738 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6739 shlibpath_var=LD_LIBRARY_PATH
6740 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6741 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6742 # the default ld.so.conf also contains /usr/contrib/lib and
6743 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6744 # libtool to hard-code these into programs
6747 cygwin* | mingw* | pw32*)
6748 version_type=windows
6753 case $GCC,$host_os in
6754 yes,cygwin* | yes,mingw* | yes,pw32*)
6755 library_names_spec='$libname.dll.a'
6756 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6757 postinstall_cmds='base_file=`basename \${file}`~
6758 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6759 dldir=$destdir/`dirname \$dlpath`~
6760 test -d \$dldir || mkdir -p \$dldir~
6761 $install_prog $dir/$dlname \$dldir/$dlname'
6762 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6763 dlpath=$dir/\$dldll~
6765 shlibpath_overrides_runpath=yes
6769 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6770 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6771 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6774 # MinGW DLLs use traditional 'lib' prefix
6775 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6776 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6777 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6778 # It is most probably a Windows format PATH printed by
6779 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6780 # path with ; separators, and with drive letters. We can handle the
6781 # drive letters (cygwin fileutils understands them), so leave them,
6782 # especially as we might pass files found there to a mingw objdump,
6783 # which wouldn't understand a cygwinified path. Ahh.
6784 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6786 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6790 # pw32 DLLs use 'pw' prefix rather than 'lib'
6791 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6797 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6800 dynamic_linker='Win32 ld.exe'
6801 # FIXME: first we should search . and the directory the executable is in
6805 darwin* | rhapsody*)
6806 dynamic_linker="$host_os dyld"
6810 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6811 soname_spec='${libname}${release}${major}$shared_ext'
6812 shlibpath_overrides_runpath=yes
6813 shlibpath_var=DYLD_LIBRARY_PATH
6814 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6815 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6816 if test "$GCC" = yes; then
6817 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"`
6819 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6821 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6829 soname_spec='${libname}${release}${shared_ext}$major'
6830 shlibpath_var=LD_LIBRARY_PATH
6841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6842 soname_spec='${libname}${release}${shared_ext}$major'
6843 shlibpath_var=LD_LIBRARY_PATH
6844 shlibpath_overrides_runpath=no
6845 hardcode_into_libs=yes
6846 dynamic_linker='GNU ld.so'
6850 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6851 version_type=freebsd-$objformat
6852 case $version_type in
6854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6863 shlibpath_var=LD_LIBRARY_PATH
6866 shlibpath_overrides_runpath=yes
6868 freebsd3.01* | freebsdelf3.01*)
6869 shlibpath_overrides_runpath=yes
6870 hardcode_into_libs=yes
6873 shlibpath_overrides_runpath=no
6874 hardcode_into_libs=yes
6883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6884 soname_spec='${libname}${release}${shared_ext}$major'
6885 shlibpath_var=LD_LIBRARY_PATH
6886 hardcode_into_libs=yes
6889 hpux9* | hpux10* | hpux11*)
6890 # Give a soname corresponding to the major version so that dld.sl refuses to
6891 # link against other versions.
6898 hardcode_into_libs=yes
6899 dynamic_linker="$host_os dld.so"
6900 shlibpath_var=LD_LIBRARY_PATH
6901 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6903 soname_spec='${libname}${release}${shared_ext}$major'
6904 if test "X$HPUX_IA64_MODE" = X32; then
6905 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6907 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6913 hardcode_into_libs=yes
6914 dynamic_linker="$host_os dld.sl"
6915 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6918 soname_spec='${libname}${release}${shared_ext}$major'
6919 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6924 dynamic_linker="$host_os dld.sl"
6925 shlibpath_var=SHLIB_PATH
6926 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6928 soname_spec='${libname}${release}${shared_ext}$major'
6931 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6932 postinstall_cmds='chmod 555 $lib'
6935 irix5* | irix6* | nonstopux*)
6937 nonstopux*) version_type=nonstopux ;;
6939 if test "$lt_cv_prog_gnu_ld" = yes; then
6947 soname_spec='${libname}${release}${shared_ext}$major'
6948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6950 irix5* | nonstopux*)
6954 case $LD in # libtool.m4 will add one of these switches to LD
6955 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6956 libsuff= shlibsuff= libmagic=32-bit;;
6957 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6958 libsuff=32 shlibsuff=N32 libmagic=N32;;
6959 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6960 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6961 *) libsuff= shlibsuff= libmagic=never-match;;
6965 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6966 shlibpath_overrides_runpath=no
6967 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6968 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6969 hardcode_into_libs=yes
6972 # No shared lib support for Linux oldld, aout, or coff.
6973 linux*oldld* | linux*aout* | linux*coff*)
6977 # This must be Linux ELF.
6982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6983 soname_spec='${libname}${release}${shared_ext}$major'
6984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6985 shlibpath_var=LD_LIBRARY_PATH
6986 shlibpath_overrides_runpath=no
6987 # This implies no fast_install, which is unacceptable.
6988 # Some rework will be needed to allow for fast_install
6989 # before this can be enabled.
6990 hardcode_into_libs=yes
6992 # Append ld.so.conf contents to the search path
6993 if test -f /etc/ld.so.conf; then
6994 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6995 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6998 # We used to test for /lib/ld.so.1 and disable shared libraries on
6999 # powerpc, because MkLinux only supported shared libraries with the
7000 # GNU dynamic linker. Since this was broken with cross compilers,
7001 # most powerpc-linux boxes support dynamic linking these days and
7002 # people can always --disable-shared, the test was removed, and we
7003 # assume the GNU/Linux dynamic linker is in use.
7004 dynamic_linker='GNU/Linux ld.so'
7011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7012 soname_spec='${libname}${release}${shared_ext}$major'
7013 shlibpath_var=LD_LIBRARY_PATH
7014 shlibpath_overrides_runpath=no
7015 hardcode_into_libs=yes
7016 dynamic_linker='GNU ld.so'
7023 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7026 dynamic_linker='NetBSD (a.out) ld.so'
7028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7029 soname_spec='${libname}${release}${shared_ext}$major'
7030 dynamic_linker='NetBSD ld.elf_so'
7032 shlibpath_var=LD_LIBRARY_PATH
7033 shlibpath_overrides_runpath=yes
7034 hardcode_into_libs=yes
7039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7040 shlibpath_var=LD_LIBRARY_PATH
7041 shlibpath_overrides_runpath=yes
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
7058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7060 shlibpath_var=LD_LIBRARY_PATH
7061 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7063 openbsd2.[89] | openbsd2.[89].*)
7064 shlibpath_overrides_runpath=no
7067 shlibpath_overrides_runpath=yes
7071 shlibpath_overrides_runpath=yes
7076 libname_spec='$name'
7079 library_names_spec='$libname${shared_ext} $libname.a'
7080 dynamic_linker='OS/2 ld.exe'
7081 shlibpath_var=LIBPATH
7084 osf3* | osf4* | osf5*)
7088 soname_spec='${libname}${release}${shared_ext}$major'
7089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7090 shlibpath_var=LD_LIBRARY_PATH
7091 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7092 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7097 soname_spec='${libname}${release}${shared_ext}$major'
7098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7099 shlibpath_var=LD_LIBRARY_PATH
7106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7107 soname_spec='${libname}${release}${shared_ext}$major'
7108 shlibpath_var=LD_LIBRARY_PATH
7109 shlibpath_overrides_runpath=yes
7110 hardcode_into_libs=yes
7111 # ldd complains unless libraries are executable
7112 postinstall_cmds='chmod +x $lib'
7117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7118 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7119 shlibpath_var=LD_LIBRARY_PATH
7120 shlibpath_overrides_runpath=yes
7121 if test "$with_gnu_ld" = yes; then
7127 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7130 soname_spec='${libname}${release}${shared_ext}$major'
7131 shlibpath_var=LD_LIBRARY_PATH
7132 case $host_vendor in
7134 shlibpath_overrides_runpath=no
7136 export_dynamic_flag_spec='${wl}-Blargedynsym'
7137 runpath_var=LD_RUN_PATH
7145 shlibpath_overrides_runpath=no
7146 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7152 if test -d /usr/nec ;then
7154 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7155 soname_spec='$libname${shared_ext}.$major'
7156 shlibpath_var=LD_LIBRARY_PATH
7162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7163 soname_spec='${libname}${release}${shared_ext}$major'
7164 shlibpath_var=LD_LIBRARY_PATH
7171 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7172 echo "${ECHO_T}$dynamic_linker" >&6
7173 test "$dynamic_linker" = no && can_build_shared=no
7176 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7177 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7178 if test "${libltdl_cv_shlibext+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7183 eval libltdl_cv_shlibext=$shrext_cmds
7186 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7187 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7188 if test -n "$libltdl_cv_shlibext"; then
7190 cat >>confdefs.h <<_ACEOF
7191 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7197 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7198 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7199 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 libltdl_cv_shlibpath_var="$shlibpath_var"
7204 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7205 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7206 if test -n "$libltdl_cv_shlibpath_var"; then
7208 cat >>confdefs.h <<_ACEOF
7209 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7215 echo "$as_me:$LINENO: checking for the default library search path" >&5
7216 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7217 if test "${libltdl_cv_sys_search_path+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7222 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7223 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7224 if test -n "$libltdl_cv_sys_search_path"; then
7226 for dir in $libltdl_cv_sys_search_path; do
7227 if test -z "$sys_search_path"; then
7228 sys_search_path="$dir"
7230 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7234 cat >>confdefs.h <<_ACEOF
7235 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7240 echo "$as_me:$LINENO: checking for objdir" >&5
7241 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7242 if test "${libltdl_cv_objdir+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 libltdl_cv_objdir="$objdir"
7246 if test -n "$objdir"; then
7249 rm -f .libs 2>/dev/null
7250 mkdir .libs 2>/dev/null
7251 if test -d .libs; then
7252 libltdl_cv_objdir=.libs
7254 # MS-DOS does not allow filenames that begin with a dot.
7255 libltdl_cv_objdir=_libs
7257 rmdir .libs 2>/dev/null
7261 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7262 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7264 cat >>confdefs.h <<_ACEOF
7265 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7269 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7270 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7271 if test "${lt_cv_path_NM+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 if test -n "$NM"; then
7275 # Let the user override the test.
7278 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7279 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7281 test -z "$ac_dir" && ac_dir=.
7282 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7283 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7284 # Check to see if the nm accepts a BSD-compat flag.
7285 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7286 # nm: unknown option "B" ignored
7287 # Tru64's nm complains that /dev/null is an invalid object file
7288 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7289 */dev/null* | *'Invalid file or object type'*)
7290 lt_cv_path_NM="$tmp_nm -B"
7294 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7296 lt_cv_path_NM="$tmp_nm -p"
7300 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7301 continue # so that we can try to find one that supports BSD flags
7308 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7311 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7312 echo "${ECHO_T}$lt_cv_path_NM" >&6
7319 # Check for command to grab the raw symbol name followed by C symbol from nm.
7320 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7321 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7322 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 # These are sane defaults that work on at least a few old systems.
7327 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7329 # Character class describing NM global symbol codes.
7330 symcode='[BCDEGRST]'
7332 # Regexp to match symbols that can be accessed directly from C.
7333 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7335 # Transform the above into a raw symbol and a C symbol.
7336 symxfrm='\1 \2\3 \3'
7338 # Transform an extracted symbol line into a proper C declaration
7339 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7341 # Transform an extracted symbol line into symbol name and symbol address
7342 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'"
7344 # Define system-specific variables.
7349 cygwin* | mingw* | pw32*)
7350 symcode='[ABCDGISTW]'
7352 hpux*) # Its linker distinguishes data from code symbols
7353 if test "$host_cpu" = ia64; then
7354 symcode='[ABCDEGRST]'
7356 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7357 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'"
7360 if test "$host_cpu" = ia64; then
7361 symcode='[ABCDGIRSTW]'
7362 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7363 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'"
7367 symcode='[BCDEGRST]'
7370 symcode='[BCDEGQRST]'
7380 # Handle CRLF in mingw tool chain
7384 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7388 # If we're using GNU nm, then use its standard symbol codes.
7389 case `$NM -V 2>&1` in
7390 *GNU* | *'with BFD'*)
7391 symcode='[ABCDGIRSTW]' ;;
7394 # Try without a prefix undercore, then with it.
7395 for ac_symprfx in "" "_"; do
7397 # Write the raw and C identifiers.
7398 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7400 # Check to see that the pipe works correctly.
7404 cat > conftest.$ac_ext <<EOF
7409 void nm_test_func(){}
7413 int main(){nm_test_var='a';nm_test_func();return(0);}
7416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7417 (eval $ac_compile) 2>&5
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); }; then
7421 # Now try to grab the symbols.
7423 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7424 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } && test -s "$nlist"; then
7428 # Try sorting and uniquifying the output.
7429 if sort "$nlist" | uniq > "$nlist"T; then
7430 mv -f "$nlist"T "$nlist"
7435 # Make sure that we snagged all the symbols we need.
7436 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7437 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7438 cat <<EOF > conftest.$ac_ext
7444 # Now generate the symbol file.
7445 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7447 cat <<EOF >> conftest.$ac_ext
7448 #if defined (__STDC__) && __STDC__
7449 # define lt_ptr_t void *
7451 # define lt_ptr_t char *
7455 /* The mapping between symbol names and symbols. */
7460 lt_preloaded_symbols[] =
7463 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7464 cat <<\EOF >> conftest.$ac_ext
7472 # Now try linking the two files.
7473 mv conftest.$ac_objext conftstm.$ac_objext
7474 lt_save_LIBS="$LIBS"
7475 lt_save_CFLAGS="$CFLAGS"
7476 LIBS="conftstm.$ac_objext"
7477 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7479 (eval $ac_link) 2>&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7485 LIBS="$lt_save_LIBS"
7486 CFLAGS="$lt_save_CFLAGS"
7488 echo "cannot find nm_test_func in $nlist" >&5
7491 echo "cannot find nm_test_var in $nlist" >&5
7494 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7497 echo "$progname: failed program was:" >&5
7498 cat conftest.$ac_ext >&5
7500 rm -f conftest* conftst*
7502 # Do not use the global_symbol_pipe unless it works.
7503 if test "$pipe_works" = yes; then
7506 lt_cv_sys_global_symbol_pipe=
7512 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7513 lt_cv_sys_global_symbol_to_cdecl=
7515 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7516 echo "$as_me:$LINENO: result: failed" >&5
7517 echo "${ECHO_T}failed" >&6
7519 echo "$as_me:$LINENO: result: ok" >&5
7520 echo "${ECHO_T}ok" >&6
7524 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7525 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7526 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7530 libltdl_cv_preloaded_symbols=yes
7532 libltdl_cv_preloaded_symbols=no
7536 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7537 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7538 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7540 cat >>confdefs.h <<\_ACEOF
7541 #define HAVE_PRELOADED_SYMBOLS 1
7549 ac_cpp='$CPP $CPPFLAGS'
7550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7555 echo "$as_me:$LINENO: checking for shl_load" >&5
7556 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7557 if test "${ac_cv_func_shl_load+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 cat >conftest.$ac_ext <<_ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7568 #define shl_load innocuous_shl_load
7570 /* System header to define __stub macros and hopefully few prototypes,
7571 which can conflict with char shl_load (); below.
7572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7573 <limits.h> exists even on freestanding compilers. */
7576 # include <limits.h>
7578 # include <assert.h>
7583 /* Override any gcc2 internal prototype to avoid an error. */
7588 /* We use char because int might match the return type of a gcc2
7589 builtin and then its argument prototype would still apply. */
7591 /* The GNU C library defines this for functions which it implements
7592 to always fail with ENOSYS. Some functions are actually named
7593 something starting with __ and the normal name is an alias. */
7594 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7597 char (*f) () = shl_load;
7606 return f != shl_load;
7611 rm -f conftest.$ac_objext conftest$ac_exeext
7612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7613 (eval $ac_link) 2>conftest.er1
7615 grep -v '^ *+' conftest.er1 >conftest.err
7617 cat conftest.err >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); } &&
7620 { ac_try='test -z "$ac_c_werror_flag"
7621 || test ! -s conftest.err'
7622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; } &&
7627 { ac_try='test -s conftest$ac_exeext'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; }; then
7633 ac_cv_func_shl_load=yes
7635 echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7638 ac_cv_func_shl_load=no
7640 rm -f conftest.err conftest.$ac_objext \
7641 conftest$ac_exeext conftest.$ac_ext
7643 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7644 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7645 if test $ac_cv_func_shl_load = yes; then
7647 cat >>confdefs.h <<\_ACEOF
7648 #define HAVE_SHL_LOAD 1
7652 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7653 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7654 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 ac_check_lib_save_LIBS=$LIBS
7659 cat >conftest.$ac_ext <<_ACEOF
7662 cat confdefs.h >>conftest.$ac_ext
7663 cat >>conftest.$ac_ext <<_ACEOF
7664 /* end confdefs.h. */
7666 /* Override any gcc2 internal prototype to avoid an error. */
7670 /* We use char because int might match the return type of a gcc2
7671 builtin and then its argument prototype would still apply. */
7681 rm -f conftest.$ac_objext conftest$ac_exeext
7682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7683 (eval $ac_link) 2>conftest.er1
7685 grep -v '^ *+' conftest.er1 >conftest.err
7687 cat conftest.err >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } &&
7690 { ac_try='test -z "$ac_c_werror_flag"
7691 || test ! -s conftest.err'
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; } &&
7697 { ac_try='test -s conftest$ac_exeext'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; }; then
7703 ac_cv_lib_dld_shl_load=yes
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7708 ac_cv_lib_dld_shl_load=no
7710 rm -f conftest.err conftest.$ac_objext \
7711 conftest$ac_exeext conftest.$ac_ext
7712 LIBS=$ac_check_lib_save_LIBS
7714 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7715 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7716 if test $ac_cv_lib_dld_shl_load = yes; then
7718 cat >>confdefs.h <<\_ACEOF
7719 #define HAVE_SHL_LOAD 1
7722 LIBADD_DL="$LIBADD_DL -ldld"
7724 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7725 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7726 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7729 ac_check_lib_save_LIBS=$LIBS
7731 cat >conftest.$ac_ext <<_ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7738 /* Override any gcc2 internal prototype to avoid an error. */
7742 /* We use char because int might match the return type of a gcc2
7743 builtin and then its argument prototype would still apply. */
7753 rm -f conftest.$ac_objext conftest$ac_exeext
7754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7755 (eval $ac_link) 2>conftest.er1
7757 grep -v '^ *+' conftest.er1 >conftest.err
7759 cat conftest.err >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } &&
7762 { ac_try='test -z "$ac_c_werror_flag"
7763 || test ! -s conftest.err'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; } &&
7769 { ac_try='test -s conftest$ac_exeext'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; }; then
7775 ac_cv_lib_dl_dlopen=yes
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7780 ac_cv_lib_dl_dlopen=no
7782 rm -f conftest.err conftest.$ac_objext \
7783 conftest$ac_exeext conftest.$ac_ext
7784 LIBS=$ac_check_lib_save_LIBS
7786 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7787 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7788 if test $ac_cv_lib_dl_dlopen = yes; then
7790 cat >>confdefs.h <<\_ACEOF
7791 #define HAVE_LIBDL 1
7794 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7796 cat >conftest.$ac_ext <<_ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7814 rm -f conftest.$ac_objext conftest$ac_exeext
7815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7816 (eval $ac_link) 2>conftest.er1
7818 grep -v '^ *+' conftest.er1 >conftest.err
7820 cat conftest.err >&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } &&
7823 { ac_try='test -z "$ac_c_werror_flag"
7824 || test ! -s conftest.err'
7825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; } &&
7830 { ac_try='test -s conftest$ac_exeext'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
7837 cat >>confdefs.h <<\_ACEOF
7838 #define HAVE_LIBDL 1
7840 libltdl_cv_func_dlopen="yes"
7842 echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7845 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7846 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7847 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7850 ac_check_lib_save_LIBS=$LIBS
7852 cat >conftest.$ac_ext <<_ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7859 /* Override any gcc2 internal prototype to avoid an error. */
7863 /* We use char because int might match the return type of a gcc2
7864 builtin and then its argument prototype would still apply. */
7874 rm -f conftest.$ac_objext conftest$ac_exeext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7876 (eval $ac_link) 2>conftest.er1
7878 grep -v '^ *+' conftest.er1 >conftest.err
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } &&
7883 { ac_try='test -z "$ac_c_werror_flag"
7884 || test ! -s conftest.err'
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; } &&
7890 { ac_try='test -s conftest$ac_exeext'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 ac_cv_lib_svld_dlopen=yes
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7901 ac_cv_lib_svld_dlopen=no
7903 rm -f conftest.err conftest.$ac_objext \
7904 conftest$ac_exeext conftest.$ac_ext
7905 LIBS=$ac_check_lib_save_LIBS
7907 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7908 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7909 if test $ac_cv_lib_svld_dlopen = yes; then
7911 cat >>confdefs.h <<\_ACEOF
7912 #define HAVE_LIBDL 1
7915 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7917 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7918 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7919 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 ac_check_lib_save_LIBS=$LIBS
7924 cat >conftest.$ac_ext <<_ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7931 /* Override any gcc2 internal prototype to avoid an error. */
7935 /* We use char because int might match the return type of a gcc2
7936 builtin and then its argument prototype would still apply. */
7946 rm -f conftest.$ac_objext conftest$ac_exeext
7947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7948 (eval $ac_link) 2>conftest.er1
7950 grep -v '^ *+' conftest.er1 >conftest.err
7952 cat conftest.err >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } &&
7955 { ac_try='test -z "$ac_c_werror_flag"
7956 || test ! -s conftest.err'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; } &&
7962 { ac_try='test -s conftest$ac_exeext'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; }; then
7968 ac_cv_lib_dld_dld_link=yes
7970 echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7973 ac_cv_lib_dld_dld_link=no
7975 rm -f conftest.err conftest.$ac_objext \
7976 conftest$ac_exeext conftest.$ac_ext
7977 LIBS=$ac_check_lib_save_LIBS
7979 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7980 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7981 if test $ac_cv_lib_dld_dld_link = yes; then
7983 cat >>confdefs.h <<\_ACEOF
7987 LIBADD_DL="$LIBADD_DL -ldld"
7989 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7990 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7991 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 cat >conftest.$ac_ext <<_ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8000 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8002 #define _dyld_func_lookup innocuous__dyld_func_lookup
8004 /* System header to define __stub macros and hopefully few prototypes,
8005 which can conflict with char _dyld_func_lookup (); below.
8006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8007 <limits.h> exists even on freestanding compilers. */
8010 # include <limits.h>
8012 # include <assert.h>
8015 #undef _dyld_func_lookup
8017 /* Override any gcc2 internal prototype to avoid an error. */
8022 /* We use char because int might match the return type of a gcc2
8023 builtin and then its argument prototype would still apply. */
8024 char _dyld_func_lookup ();
8025 /* The GNU C library defines this for functions which it implements
8026 to always fail with ENOSYS. Some functions are actually named
8027 something starting with __ and the normal name is an alias. */
8028 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8031 char (*f) () = _dyld_func_lookup;
8040 return f != _dyld_func_lookup;
8045 rm -f conftest.$ac_objext conftest$ac_exeext
8046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8047 (eval $ac_link) 2>conftest.er1
8049 grep -v '^ *+' conftest.er1 >conftest.err
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } &&
8054 { ac_try='test -z "$ac_c_werror_flag"
8055 || test ! -s conftest.err'
8056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; } &&
8061 { ac_try='test -s conftest$ac_exeext'
8062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); }; }; then
8067 ac_cv_func__dyld_func_lookup=yes
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8072 ac_cv_func__dyld_func_lookup=no
8074 rm -f conftest.err conftest.$ac_objext \
8075 conftest$ac_exeext conftest.$ac_ext
8077 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8078 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8079 if test $ac_cv_func__dyld_func_lookup = yes; then
8081 cat >>confdefs.h <<\_ACEOF
8095 rm -f conftest.err conftest.$ac_objext \
8096 conftest$ac_exeext conftest.$ac_ext
8107 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8109 lt_save_LIBS="$LIBS"
8110 LIBS="$LIBS $LIBADD_DL"
8112 for ac_func in dlerror
8114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8115 echo "$as_me:$LINENO: checking for $ac_func" >&5
8116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8117 if eval "test \"\${$as_ac_var+set}\" = set"; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 cat >conftest.$ac_ext <<_ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8128 #define $ac_func innocuous_$ac_func
8130 /* System header to define __stub macros and hopefully few prototypes,
8131 which can conflict with char $ac_func (); below.
8132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8133 <limits.h> exists even on freestanding compilers. */
8136 # include <limits.h>
8138 # include <assert.h>
8143 /* Override any gcc2 internal prototype to avoid an error. */
8148 /* We use char because int might match the return type of a gcc2
8149 builtin and then its argument prototype would still apply. */
8151 /* The GNU C library defines this for functions which it implements
8152 to always fail with ENOSYS. Some functions are actually named
8153 something starting with __ and the normal name is an alias. */
8154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8157 char (*f) () = $ac_func;
8166 return f != $ac_func;
8171 rm -f conftest.$ac_objext conftest$ac_exeext
8172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8173 (eval $ac_link) 2>conftest.er1
8175 grep -v '^ *+' conftest.er1 >conftest.err
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } &&
8180 { ac_try='test -z "$ac_c_werror_flag"
8181 || test ! -s conftest.err'
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; } &&
8187 { ac_try='test -s conftest$ac_exeext'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; }; then
8193 eval "$as_ac_var=yes"
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8198 eval "$as_ac_var=no"
8200 rm -f conftest.err conftest.$ac_objext \
8201 conftest$ac_exeext conftest.$ac_ext
8203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8205 if test `eval echo '${'$as_ac_var'}'` = yes; then
8206 cat >>confdefs.h <<_ACEOF
8207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8213 LIBS="$lt_save_LIBS"
8216 ac_cpp='$CPP $CPPFLAGS'
8217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8223 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8224 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8225 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 ac_cv_sys_symbol_underscore=no
8229 cat > conftest.$ac_ext <<EOF
8230 void nm_test_func(){}
8231 int main(){nm_test_func;return 0;}
8233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8234 (eval $ac_compile) 2>&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; then
8238 # Now try to grab the symbols.
8239 ac_nlist=conftest.nm
8240 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8241 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } && test -s "$ac_nlist"; then
8245 # See whether the symbols have a leading underscore.
8246 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8247 ac_cv_sys_symbol_underscore=yes
8249 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8252 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8256 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8259 echo "configure: failed program was:" >&5
8265 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8266 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8269 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8270 if test x"$libltdl_cv_func_dlopen" = xyes ||
8271 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8272 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8273 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8274 if test "${libltdl_cv_need_uscore+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 libltdl_cv_need_uscore=unknown
8279 LIBS="$LIBS $LIBADD_DL"
8280 if test "$cross_compiling" = yes; then :
8281 libltdl_cv_need_uscore=cross
8283 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8284 lt_status=$lt_dlunknown
8285 cat > conftest.$ac_ext <<EOF
8286 #line 8286 "configure"
8287 #include "confdefs.h"
8296 # define LT_DLGLOBAL RTLD_GLOBAL
8299 # define LT_DLGLOBAL DL_GLOBAL
8301 # define LT_DLGLOBAL 0
8305 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8306 find out it does not work in some platform. */
8307 #ifndef LT_DLLAZY_OR_NOW
8309 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8312 # define LT_DLLAZY_OR_NOW DL_LAZY
8315 # define LT_DLLAZY_OR_NOW RTLD_NOW
8318 # define LT_DLLAZY_OR_NOW DL_NOW
8320 # define LT_DLLAZY_OR_NOW 0
8328 extern "C" void exit (int);
8331 void fnord() { int i=42;}
8334 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8335 int status = $lt_dlunknown;
8339 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8340 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8341 /* dlclose (self); */
8347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8348 (eval $ac_link) 2>&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8352 (./conftest; exit; ) 2>/dev/null
8355 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8356 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8360 # compilation failed
8369 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8370 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8374 if test x"$libltdl_cv_need_uscore" = xyes; then
8376 cat >>confdefs.h <<\_ACEOF
8377 #define NEED_USCORE 1
8383 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8384 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8385 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 # PORTME does your system automatically load deplibs for dlopen?
8389 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8390 # For now, we just catch OSes we know something about -- in the
8391 # future, we'll try test this programmatically.
8392 libltdl_cv_sys_dlopen_deplibs=unknown
8394 aix3*|aix4.1.*|aix4.2.*)
8395 # Unknown whether this is true for these versions of AIX, but
8396 # we want this `case' here to explicitly catch those versions.
8397 libltdl_cv_sys_dlopen_deplibs=unknown
8400 libltdl_cv_sys_dlopen_deplibs=yes
8403 # Assuming the user has installed a libdl from somewhere, this is true
8404 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8405 libltdl_cv_sys_dlopen_deplibs=yes
8407 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8408 # GNU and its variants, using gnu ld.so (Glibc)
8409 libltdl_cv_sys_dlopen_deplibs=yes
8412 libltdl_cv_sys_dlopen_deplibs=yes
8414 irix[12345]*|irix6.[01]*)
8415 # Catch all versions of IRIX before 6.2, and indicate that we don't
8416 # know how it worked for any of those versions.
8417 libltdl_cv_sys_dlopen_deplibs=unknown
8420 # The case above catches anything before 6.2, and it's known that
8421 # at 6.2 and later dlopen does load deplibs.
8422 libltdl_cv_sys_dlopen_deplibs=yes
8425 libltdl_cv_sys_dlopen_deplibs=yes
8428 libltdl_cv_sys_dlopen_deplibs=yes
8431 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8432 # it did *not* use an RPATH in a shared library to find objects the
8433 # library depends on, so we explictly say `no'.
8434 libltdl_cv_sys_dlopen_deplibs=no
8436 osf5.0|osf5.0a|osf5.1)
8437 # dlopen *does* load deplibs and with the right loader patch applied
8438 # it even uses RPATH in a shared library to search for shared objects
8439 # that the library depends on, but there's no easy way to know if that
8440 # patch is installed. Since this is the case, all we can really
8441 # say is unknown -- it depends on the patch being installed. If
8442 # it is, this changes to `yes'. Without it, it would be `no'.
8443 libltdl_cv_sys_dlopen_deplibs=unknown
8446 # the two cases above should catch all versions of osf <= 5.1. Read
8447 # the comments above for what we know about them.
8448 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8449 # is used to find them so we can finally say `yes'.
8450 libltdl_cv_sys_dlopen_deplibs=yes
8453 libltdl_cv_sys_dlopen_deplibs=yes
8458 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8459 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8460 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8462 cat >>confdefs.h <<\_ACEOF
8463 #define LTDL_DLOPEN_DEPLIBS 1
8469 for ac_header in argz.h
8471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8473 echo "$as_me:$LINENO: checking for $ac_header" >&5
8474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8476 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8481 # Is the header compilable?
8482 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8484 cat >conftest.$ac_ext <<_ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8490 $ac_includes_default
8491 #include <$ac_header>
8493 rm -f conftest.$ac_objext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8495 (eval $ac_compile) 2>conftest.er1
8497 grep -v '^ *+' conftest.er1 >conftest.err
8499 cat conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } &&
8502 { ac_try='test -z "$ac_c_werror_flag"
8503 || test ! -s conftest.err'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; } &&
8509 { ac_try='test -s conftest.$ac_objext'
8510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; }; then
8515 ac_header_compiler=yes
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8520 ac_header_compiler=no
8522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8524 echo "${ECHO_T}$ac_header_compiler" >&6
8526 # Is the header present?
8527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8529 cat >conftest.$ac_ext <<_ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8535 #include <$ac_header>
8537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8540 grep -v '^ *+' conftest.er1 >conftest.err
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } >/dev/null; then
8545 if test -s conftest.err; then
8546 ac_cpp_err=$ac_c_preproc_warn_flag
8547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8554 if test -z "$ac_cpp_err"; then
8555 ac_header_preproc=yes
8557 echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8560 ac_header_preproc=no
8562 rm -f conftest.err conftest.$ac_ext
8563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8564 echo "${ECHO_T}$ac_header_preproc" >&6
8566 # So? What about this header?
8567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8573 ac_header_preproc=yes
8576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8583 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8590 ## ----------------------------------- ##
8591 ## Report this to llvmbugs@cs.uiuc.edu ##
8592 ## ----------------------------------- ##
8595 sed "s/^/$as_me: WARNING: /" >&2
8598 echo "$as_me:$LINENO: checking for $ac_header" >&5
8599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 eval "$as_ac_Header=\$ac_header_preproc"
8605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8610 cat >>confdefs.h <<_ACEOF
8611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8619 echo "$as_me:$LINENO: checking for error_t" >&5
8620 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8621 if test "${ac_cv_type_error_t+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8624 cat >conftest.$ac_ext <<_ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8639 if (sizeof (error_t))
8645 rm -f conftest.$ac_objext
8646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8647 (eval $ac_compile) 2>conftest.er1
8649 grep -v '^ *+' conftest.er1 >conftest.err
8651 cat conftest.err >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } &&
8654 { ac_try='test -z "$ac_c_werror_flag"
8655 || test ! -s conftest.err'
8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; } &&
8661 { ac_try='test -s conftest.$ac_objext'
8662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); }; }; then
8667 ac_cv_type_error_t=yes
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8672 ac_cv_type_error_t=no
8674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8676 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8677 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8678 if test $ac_cv_type_error_t = yes; then
8680 cat >>confdefs.h <<_ACEOF
8681 #define HAVE_ERROR_T 1
8687 cat >>confdefs.h <<\_ACEOF
8699 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8702 echo "$as_me:$LINENO: checking for $ac_func" >&5
8703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8704 if eval "test \"\${$as_ac_var+set}\" = set"; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8707 cat >conftest.$ac_ext <<_ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h. */
8713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8715 #define $ac_func innocuous_$ac_func
8717 /* System header to define __stub macros and hopefully few prototypes,
8718 which can conflict with char $ac_func (); below.
8719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8720 <limits.h> exists even on freestanding compilers. */
8723 # include <limits.h>
8725 # include <assert.h>
8730 /* Override any gcc2 internal prototype to avoid an error. */
8735 /* We use char because int might match the return type of a gcc2
8736 builtin and then its argument prototype would still apply. */
8738 /* The GNU C library defines this for functions which it implements
8739 to always fail with ENOSYS. Some functions are actually named
8740 something starting with __ and the normal name is an alias. */
8741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8744 char (*f) () = $ac_func;
8753 return f != $ac_func;
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8760 (eval $ac_link) 2>conftest.er1
8762 grep -v '^ *+' conftest.er1 >conftest.err
8764 cat conftest.err >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } &&
8767 { ac_try='test -z "$ac_c_werror_flag"
8768 || test ! -s conftest.err'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; } &&
8774 { ac_try='test -s conftest$ac_exeext'
8775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; }; then
8780 eval "$as_ac_var=yes"
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8785 eval "$as_ac_var=no"
8787 rm -f conftest.err conftest.$ac_objext \
8788 conftest$ac_exeext conftest.$ac_ext
8790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8792 if test `eval echo '${'$as_ac_var'}'` = yes; then
8793 cat >>confdefs.h <<_ACEOF
8794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8827 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8832 echo "$as_me:$LINENO: checking for $ac_header" >&5
8833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8835 echo $ECHO_N "(cached) $ECHO_C" >&6
8837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8840 # Is the header compilable?
8841 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8843 cat >conftest.$ac_ext <<_ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8849 $ac_includes_default
8850 #include <$ac_header>
8852 rm -f conftest.$ac_objext
8853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8854 (eval $ac_compile) 2>conftest.er1
8856 grep -v '^ *+' conftest.er1 >conftest.err
8858 cat conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } &&
8861 { ac_try='test -z "$ac_c_werror_flag"
8862 || test ! -s conftest.err'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; } &&
8868 { ac_try='test -s conftest.$ac_objext'
8869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); }; }; then
8874 ac_header_compiler=yes
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8879 ac_header_compiler=no
8881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8882 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8883 echo "${ECHO_T}$ac_header_compiler" >&6
8885 # Is the header present?
8886 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8888 cat >conftest.$ac_ext <<_ACEOF
8891 cat confdefs.h >>conftest.$ac_ext
8892 cat >>conftest.$ac_ext <<_ACEOF
8893 /* end confdefs.h. */
8894 #include <$ac_header>
8896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8899 grep -v '^ *+' conftest.er1 >conftest.err
8901 cat conftest.err >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } >/dev/null; then
8904 if test -s conftest.err; then
8905 ac_cpp_err=$ac_c_preproc_warn_flag
8906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8913 if test -z "$ac_cpp_err"; then
8914 ac_header_preproc=yes
8916 echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8919 ac_header_preproc=no
8921 rm -f conftest.err conftest.$ac_ext
8922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8923 echo "${ECHO_T}$ac_header_preproc" >&6
8925 # So? What about this header?
8926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8932 ac_header_preproc=yes
8935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8938 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8942 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8949 ## ----------------------------------- ##
8950 ## Report this to llvmbugs@cs.uiuc.edu ##
8951 ## ----------------------------------- ##
8954 sed "s/^/$as_me: WARNING: /" >&2
8957 echo "$as_me:$LINENO: checking for $ac_header" >&5
8958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
8962 eval "$as_ac_Header=\$ac_header_preproc"
8964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8969 cat >>confdefs.h <<_ACEOF
8970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8981 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8985 echo "$as_me:$LINENO: checking for $ac_header" >&5
8986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
8990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8993 # Is the header compilable?
8994 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8996 cat >conftest.$ac_ext <<_ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h. */
9002 $ac_includes_default
9003 #include <$ac_header>
9005 rm -f conftest.$ac_objext
9006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9007 (eval $ac_compile) 2>conftest.er1
9009 grep -v '^ *+' conftest.er1 >conftest.err
9011 cat conftest.err >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } &&
9014 { ac_try='test -z "$ac_c_werror_flag"
9015 || test ! -s conftest.err'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; } &&
9021 { ac_try='test -s conftest.$ac_objext'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9027 ac_header_compiler=yes
9029 echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9032 ac_header_compiler=no
9034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9036 echo "${ECHO_T}$ac_header_compiler" >&6
9038 # Is the header present?
9039 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9041 cat >conftest.$ac_ext <<_ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9047 #include <$ac_header>
9049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9052 grep -v '^ *+' conftest.er1 >conftest.err
9054 cat conftest.err >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } >/dev/null; then
9057 if test -s conftest.err; then
9058 ac_cpp_err=$ac_c_preproc_warn_flag
9059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9066 if test -z "$ac_cpp_err"; then
9067 ac_header_preproc=yes
9069 echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9072 ac_header_preproc=no
9074 rm -f conftest.err conftest.$ac_ext
9075 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9076 echo "${ECHO_T}$ac_header_preproc" >&6
9078 # So? What about this header?
9079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9085 ac_header_preproc=yes
9088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9095 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9102 ## ----------------------------------- ##
9103 ## Report this to llvmbugs@cs.uiuc.edu ##
9104 ## ----------------------------------- ##
9107 sed "s/^/$as_me: WARNING: /" >&2
9110 echo "$as_me:$LINENO: checking for $ac_header" >&5
9111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9115 eval "$as_ac_Header=\$ac_header_preproc"
9117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9122 cat >>confdefs.h <<_ACEOF
9123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9132 for ac_header in string.h strings.h
9134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9136 echo "$as_me:$LINENO: checking for $ac_header" >&5
9137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9139 echo $ECHO_N "(cached) $ECHO_C" >&6
9141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9144 # Is the header compilable?
9145 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9147 cat >conftest.$ac_ext <<_ACEOF
9150 cat confdefs.h >>conftest.$ac_ext
9151 cat >>conftest.$ac_ext <<_ACEOF
9152 /* end confdefs.h. */
9153 $ac_includes_default
9154 #include <$ac_header>
9156 rm -f conftest.$ac_objext
9157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9158 (eval $ac_compile) 2>conftest.er1
9160 grep -v '^ *+' conftest.er1 >conftest.err
9162 cat conftest.err >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); } &&
9165 { ac_try='test -z "$ac_c_werror_flag"
9166 || test ! -s conftest.err'
9167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; } &&
9172 { ac_try='test -s conftest.$ac_objext'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; }; then
9178 ac_header_compiler=yes
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9183 ac_header_compiler=no
9185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9187 echo "${ECHO_T}$ac_header_compiler" >&6
9189 # Is the header present?
9190 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9192 cat >conftest.$ac_ext <<_ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9198 #include <$ac_header>
9200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9203 grep -v '^ *+' conftest.er1 >conftest.err
9205 cat conftest.err >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } >/dev/null; then
9208 if test -s conftest.err; then
9209 ac_cpp_err=$ac_c_preproc_warn_flag
9210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9217 if test -z "$ac_cpp_err"; then
9218 ac_header_preproc=yes
9220 echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9223 ac_header_preproc=no
9225 rm -f conftest.err conftest.$ac_ext
9226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9227 echo "${ECHO_T}$ac_header_preproc" >&6
9229 # So? What about this header?
9230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9236 ac_header_preproc=yes
9239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9242 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9244 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9246 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9250 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9253 ## ----------------------------------- ##
9254 ## Report this to llvmbugs@cs.uiuc.edu ##
9255 ## ----------------------------------- ##
9258 sed "s/^/$as_me: WARNING: /" >&2
9261 echo "$as_me:$LINENO: checking for $ac_header" >&5
9262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 eval "$as_ac_Header=\$ac_header_preproc"
9268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9273 cat >>confdefs.h <<_ACEOF
9274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9284 for ac_func in strchr index
9286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9287 echo "$as_me:$LINENO: checking for $ac_func" >&5
9288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9289 if eval "test \"\${$as_ac_var+set}\" = set"; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9292 cat >conftest.$ac_ext <<_ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h. */
9298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9300 #define $ac_func innocuous_$ac_func
9302 /* System header to define __stub macros and hopefully few prototypes,
9303 which can conflict with char $ac_func (); below.
9304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9305 <limits.h> exists even on freestanding compilers. */
9308 # include <limits.h>
9310 # include <assert.h>
9315 /* Override any gcc2 internal prototype to avoid an error. */
9320 /* We use char because int might match the return type of a gcc2
9321 builtin and then its argument prototype would still apply. */
9323 /* The GNU C library defines this for functions which it implements
9324 to always fail with ENOSYS. Some functions are actually named
9325 something starting with __ and the normal name is an alias. */
9326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9329 char (*f) () = $ac_func;
9338 return f != $ac_func;
9343 rm -f conftest.$ac_objext conftest$ac_exeext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9345 (eval $ac_link) 2>conftest.er1
9347 grep -v '^ *+' conftest.er1 >conftest.err
9349 cat conftest.err >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } &&
9352 { ac_try='test -z "$ac_c_werror_flag"
9353 || test ! -s conftest.err'
9354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; } &&
9359 { ac_try='test -s conftest$ac_exeext'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; }; then
9365 eval "$as_ac_var=yes"
9367 echo "$as_me: failed program was:" >&5
9368 sed 's/^/| /' conftest.$ac_ext >&5
9370 eval "$as_ac_var=no"
9372 rm -f conftest.err conftest.$ac_objext \
9373 conftest$ac_exeext conftest.$ac_ext
9375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9377 if test `eval echo '${'$as_ac_var'}'` = yes; then
9378 cat >>confdefs.h <<_ACEOF
9379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9387 for ac_func in strrchr rindex
9389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9390 echo "$as_me:$LINENO: checking for $ac_func" >&5
9391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9392 if eval "test \"\${$as_ac_var+set}\" = set"; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9395 cat >conftest.$ac_ext <<_ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9403 #define $ac_func innocuous_$ac_func
9405 /* System header to define __stub macros and hopefully few prototypes,
9406 which can conflict with char $ac_func (); below.
9407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9408 <limits.h> exists even on freestanding compilers. */
9411 # include <limits.h>
9413 # include <assert.h>
9418 /* Override any gcc2 internal prototype to avoid an error. */
9423 /* We use char because int might match the return type of a gcc2
9424 builtin and then its argument prototype would still apply. */
9426 /* The GNU C library defines this for functions which it implements
9427 to always fail with ENOSYS. Some functions are actually named
9428 something starting with __ and the normal name is an alias. */
9429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9432 char (*f) () = $ac_func;
9441 return f != $ac_func;
9446 rm -f conftest.$ac_objext conftest$ac_exeext
9447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9448 (eval $ac_link) 2>conftest.er1
9450 grep -v '^ *+' conftest.er1 >conftest.err
9452 cat conftest.err >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); } &&
9455 { ac_try='test -z "$ac_c_werror_flag"
9456 || test ! -s conftest.err'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; } &&
9462 { ac_try='test -s conftest$ac_exeext'
9463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; }; then
9468 eval "$as_ac_var=yes"
9470 echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9473 eval "$as_ac_var=no"
9475 rm -f conftest.err conftest.$ac_objext \
9476 conftest$ac_exeext conftest.$ac_ext
9478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9480 if test `eval echo '${'$as_ac_var'}'` = yes; then
9481 cat >>confdefs.h <<_ACEOF
9482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9490 for ac_func in memcpy bcopy
9492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9493 echo "$as_me:$LINENO: checking for $ac_func" >&5
9494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9495 if eval "test \"\${$as_ac_var+set}\" = set"; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 cat >conftest.$ac_ext <<_ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9506 #define $ac_func innocuous_$ac_func
9508 /* System header to define __stub macros and hopefully few prototypes,
9509 which can conflict with char $ac_func (); below.
9510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9511 <limits.h> exists even on freestanding compilers. */
9514 # include <limits.h>
9516 # include <assert.h>
9521 /* Override any gcc2 internal prototype to avoid an error. */
9526 /* We use char because int might match the return type of a gcc2
9527 builtin and then its argument prototype would still apply. */
9529 /* The GNU C library defines this for functions which it implements
9530 to always fail with ENOSYS. Some functions are actually named
9531 something starting with __ and the normal name is an alias. */
9532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9535 char (*f) () = $ac_func;
9544 return f != $ac_func;
9549 rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9551 (eval $ac_link) 2>conftest.er1
9553 grep -v '^ *+' conftest.er1 >conftest.err
9555 cat conftest.err >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } &&
9558 { ac_try='test -z "$ac_c_werror_flag"
9559 || test ! -s conftest.err'
9560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; } &&
9565 { ac_try='test -s conftest$ac_exeext'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; }; then
9571 eval "$as_ac_var=yes"
9573 echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9576 eval "$as_ac_var=no"
9578 rm -f conftest.err conftest.$ac_objext \
9579 conftest$ac_exeext conftest.$ac_ext
9581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9583 if test `eval echo '${'$as_ac_var'}'` = yes; then
9584 cat >>confdefs.h <<_ACEOF
9585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9593 for ac_func in memmove strcmp
9595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9596 echo "$as_me:$LINENO: checking for $ac_func" >&5
9597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9598 if eval "test \"\${$as_ac_var+set}\" = set"; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9601 cat >conftest.$ac_ext <<_ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9609 #define $ac_func innocuous_$ac_func
9611 /* System header to define __stub macros and hopefully few prototypes,
9612 which can conflict with char $ac_func (); below.
9613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9614 <limits.h> exists even on freestanding compilers. */
9617 # include <limits.h>
9619 # include <assert.h>
9624 /* Override any gcc2 internal prototype to avoid an error. */
9629 /* We use char because int might match the return type of a gcc2
9630 builtin and then its argument prototype would still apply. */
9632 /* The GNU C library defines this for functions which it implements
9633 to always fail with ENOSYS. Some functions are actually named
9634 something starting with __ and the normal name is an alias. */
9635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9638 char (*f) () = $ac_func;
9647 return f != $ac_func;
9652 rm -f conftest.$ac_objext conftest$ac_exeext
9653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9654 (eval $ac_link) 2>conftest.er1
9656 grep -v '^ *+' conftest.er1 >conftest.err
9658 cat conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } &&
9661 { ac_try='test -z "$ac_c_werror_flag"
9662 || test ! -s conftest.err'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; } &&
9668 { ac_try='test -s conftest$ac_exeext'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
9674 eval "$as_ac_var=yes"
9676 echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9679 eval "$as_ac_var=no"
9681 rm -f conftest.err conftest.$ac_objext \
9682 conftest$ac_exeext conftest.$ac_ext
9684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9686 if test `eval echo '${'$as_ac_var'}'` = yes; then
9687 cat >>confdefs.h <<_ACEOF
9688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9697 for ac_func in closedir opendir readdir
9699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9700 echo "$as_me:$LINENO: checking for $ac_func" >&5
9701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9702 if eval "test \"\${$as_ac_var+set}\" = set"; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9705 cat >conftest.$ac_ext <<_ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h. */
9711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9713 #define $ac_func innocuous_$ac_func
9715 /* System header to define __stub macros and hopefully few prototypes,
9716 which can conflict with char $ac_func (); below.
9717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9718 <limits.h> exists even on freestanding compilers. */
9721 # include <limits.h>
9723 # include <assert.h>
9728 /* Override any gcc2 internal prototype to avoid an error. */
9733 /* We use char because int might match the return type of a gcc2
9734 builtin and then its argument prototype would still apply. */
9736 /* The GNU C library defines this for functions which it implements
9737 to always fail with ENOSYS. Some functions are actually named
9738 something starting with __ and the normal name is an alias. */
9739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9742 char (*f) () = $ac_func;
9751 return f != $ac_func;
9756 rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9758 (eval $ac_link) 2>conftest.er1
9760 grep -v '^ *+' conftest.er1 >conftest.err
9762 cat conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } &&
9765 { ac_try='test -z "$ac_c_werror_flag"
9766 || test ! -s conftest.err'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; } &&
9772 { ac_try='test -s conftest$ac_exeext'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; }; then
9778 eval "$as_ac_var=yes"
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9783 eval "$as_ac_var=no"
9785 rm -f conftest.err conftest.$ac_objext \
9786 conftest$ac_exeext conftest.$ac_ext
9788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9790 if test `eval echo '${'$as_ac_var'}'` = yes; then
9791 cat >>confdefs.h <<_ACEOF
9792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9799 # Check whether --enable-shared or --disable-shared was given.
9800 if test "${enable_shared+set}" = set; then
9801 enableval="$enable_shared"
9802 p=${PACKAGE-default}
9804 yes) enable_shared=yes ;;
9805 no) enable_shared=no ;;
9808 # Look at the argument we got. We use all the common list separators.
9809 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9810 for pkg in $enableval; do
9812 if test "X$pkg" = "X$p"; then
9823 # Check whether --enable-static or --disable-static was given.
9824 if test "${enable_static+set}" = set; then
9825 enableval="$enable_static"
9826 p=${PACKAGE-default}
9828 yes) enable_static=yes ;;
9829 no) enable_static=no ;;
9832 # Look at the argument we got. We use all the common list separators.
9833 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9834 for pkg in $enableval; do
9836 if test "X$pkg" = "X$p"; then
9847 # Check whether --enable-fast-install or --disable-fast-install was given.
9848 if test "${enable_fast_install+set}" = set; then
9849 enableval="$enable_fast_install"
9850 p=${PACKAGE-default}
9852 yes) enable_fast_install=yes ;;
9853 no) enable_fast_install=no ;;
9855 enable_fast_install=no
9856 # Look at the argument we got. We use all the common list separators.
9857 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9858 for pkg in $enableval; do
9860 if test "X$pkg" = "X$p"; then
9861 enable_fast_install=yes
9868 enable_fast_install=yes
9871 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9872 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9873 if test "${lt_cv_path_SED+set}" = set; then
9874 echo $ECHO_N "(cached) $ECHO_C" >&6
9876 # Loop through the user's path and test for sed and gsed.
9877 # Then use that list of sed's as ones to test for truncation.
9878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9882 test -z "$as_dir" && as_dir=.
9883 for lt_ac_prog in sed gsed; do
9884 for ac_exec_ext in '' $ac_executable_extensions; do
9885 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9886 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9893 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9894 # along with /bin/sed that truncates output.
9895 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9896 test ! -f $lt_ac_sed && break
9897 cat /dev/null > conftest.in
9899 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9900 # Check for GNU sed and select it if it is found.
9901 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9902 lt_cv_path_SED=$lt_ac_sed
9906 cat conftest.in conftest.in >conftest.tmp
9907 mv conftest.tmp conftest.in
9908 cp conftest.in conftest.nl
9910 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9911 cmp -s conftest.out conftest.nl || break
9912 # 10000 chars as input seems more than enough
9913 test $lt_ac_count -gt 10 && break
9914 lt_ac_count=`expr $lt_ac_count + 1`
9915 if test $lt_ac_count -gt $lt_ac_max; then
9916 lt_ac_max=$lt_ac_count
9917 lt_cv_path_SED=$lt_ac_sed
9925 echo "$as_me:$LINENO: result: $SED" >&5
9926 echo "${ECHO_T}$SED" >&6
9929 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9930 if test "${with_gnu_ld+set}" = set; then
9931 withval="$with_gnu_ld"
9932 test "$withval" = no || with_gnu_ld=yes
9937 if test "$GCC" = yes; then
9938 # Check if gcc -print-prog-name=ld gives a path.
9939 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9940 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9943 # gcc leaves a trailing carriage return which upsets mingw
9944 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9946 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9949 # Accept absolute paths.
9951 re_direlt='/[^/][^/]*/\.\./'
9952 # Canonicalize the pathname of ld
9953 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9954 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9955 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9957 test -z "$LD" && LD="$ac_prog"
9960 # If it fails, then pretend we aren't using GCC.
9964 # If it is relative, then search for the first ld in PATH.
9968 elif test "$with_gnu_ld" = yes; then
9969 echo "$as_me:$LINENO: checking for GNU ld" >&5
9970 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9972 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9973 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9975 if test "${lt_cv_path_LD+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 if test -z "$LD"; then
9979 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9980 for ac_dir in $PATH; do
9982 test -z "$ac_dir" && ac_dir=.
9983 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9984 lt_cv_path_LD="$ac_dir/$ac_prog"
9985 # Check to see if the program is GNU ld. I'd rather use --version,
9986 # but apparently some GNU ld's only accept -v.
9987 # Break only if it was the GNU/non-GNU ld that we prefer.
9988 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9989 *GNU* | *'with BFD'*)
9990 test "$with_gnu_ld" != no && break
9993 test "$with_gnu_ld" != yes && break
10000 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10004 LD="$lt_cv_path_LD"
10005 if test -n "$LD"; then
10006 echo "$as_me:$LINENO: result: $LD" >&5
10007 echo "${ECHO_T}$LD" >&6
10009 echo "$as_me:$LINENO: result: no" >&5
10010 echo "${ECHO_T}no" >&6
10012 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10013 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10014 { (exit 1); exit 1; }; }
10015 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10016 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10017 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10021 case `$LD -v 2>&1 </dev/null` in
10022 *GNU* | *'with BFD'*)
10023 lt_cv_prog_gnu_ld=yes
10026 lt_cv_prog_gnu_ld=no
10030 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10031 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10032 with_gnu_ld=$lt_cv_prog_gnu_ld
10035 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10036 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10037 if test "${lt_cv_ld_reload_flag+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 lt_cv_ld_reload_flag='-r'
10042 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10043 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10044 reload_flag=$lt_cv_ld_reload_flag
10045 case $reload_flag in
10047 *) reload_flag=" $reload_flag" ;;
10049 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10052 if test "$GCC" = yes; then
10053 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10055 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10060 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10061 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10062 if test "${lt_cv_deplibs_check_method+set}" = set; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 lt_cv_file_magic_cmd='$MAGIC_CMD'
10066 lt_cv_file_magic_test_file=
10067 lt_cv_deplibs_check_method='unknown'
10068 # Need to set the preceding variable on all platforms that support
10069 # interlibrary dependencies.
10070 # 'none' -- dependencies not supported.
10071 # `unknown' -- same as none, but documents that we really don't know.
10072 # 'pass_all' -- all dependencies passed with no checks.
10073 # 'test_compile' -- check by making test program.
10074 # 'file_magic [[regex]]' -- check by looking for files in library path
10075 # which responds to the $file_magic_cmd with a given extended regex.
10076 # If you have `file' or equivalent on your system and you're not sure
10077 # whether `pass_all' will *always* work, you probably want this one.
10081 lt_cv_deplibs_check_method=pass_all
10085 lt_cv_deplibs_check_method=pass_all
10089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10090 lt_cv_file_magic_cmd='/usr/bin/file -L'
10091 lt_cv_file_magic_test_file=/shlib/libc.so
10095 # func_win32_libid is a shell function defined in ltmain.sh
10096 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10097 lt_cv_file_magic_cmd='func_win32_libid'
10101 # Base MSYS/MinGW do not provide the 'file' command needed by
10102 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10103 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10104 lt_cv_file_magic_cmd='$OBJDUMP -f'
10107 darwin* | rhapsody*)
10108 lt_cv_deplibs_check_method=pass_all
10111 freebsd* | kfreebsd*-gnu)
10112 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10115 # Not sure whether the presence of OpenBSD here was a mistake.
10116 # Let's accept both of them until this is cleared up.
10117 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10118 lt_cv_file_magic_cmd=/usr/bin/file
10119 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10123 lt_cv_deplibs_check_method=pass_all
10128 lt_cv_deplibs_check_method=pass_all
10131 hpux10.20* | hpux11*)
10132 lt_cv_file_magic_cmd=/usr/bin/file
10133 case "$host_cpu" in
10135 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10136 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10139 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]'
10140 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10143 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10144 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10149 irix5* | irix6* | nonstopux*)
10151 *-32|*"-32 ") libmagic=32-bit;;
10152 *-n32|*"-n32 ") libmagic=N32;;
10153 *-64|*"-64 ") libmagic=64-bit;;
10154 *) libmagic=never-match;;
10156 lt_cv_deplibs_check_method=pass_all
10159 # This must be Linux ELF.
10161 lt_cv_deplibs_check_method=pass_all
10165 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10166 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10168 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10173 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10174 lt_cv_file_magic_cmd=/usr/bin/file
10175 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10179 lt_cv_deplibs_check_method=unknown
10183 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10184 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10190 osf3* | osf4* | osf5*)
10191 lt_cv_deplibs_check_method=pass_all
10195 lt_cv_deplibs_check_method=pass_all
10199 lt_cv_deplibs_check_method=pass_all
10202 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10203 case $host_vendor in
10205 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]'
10206 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10209 lt_cv_deplibs_check_method=pass_all
10212 lt_cv_file_magic_cmd='/bin/file'
10213 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10216 lt_cv_file_magic_cmd='/bin/file'
10217 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10218 lt_cv_file_magic_test_file=/lib/libc.so
10221 lt_cv_deplibs_check_method=pass_all
10226 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10227 lt_cv_deplibs_check_method=pass_all
10232 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10233 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10234 file_magic_cmd=$lt_cv_file_magic_cmd
10235 deplibs_check_method=$lt_cv_deplibs_check_method
10236 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10240 # If no C compiler was specified, use CC.
10243 # Allow CC to be a program name with arguments.
10246 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10247 if test "${enable_libtool_lock+set}" = set; then
10248 enableval="$enable_libtool_lock"
10251 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10253 # Some flags need to be propagated to the compiler or linker for good
10257 # Find out which ABI we are using.
10258 echo 'int i;' > conftest.$ac_ext
10259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10260 (eval $ac_compile) 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; then
10264 case `/usr/bin/file conftest.$ac_objext` in
10266 HPUX_IA64_MODE="32"
10269 HPUX_IA64_MODE="64"
10276 # Find out which ABI we are using.
10277 echo '#line 10277 "configure"' > conftest.$ac_ext
10278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10279 (eval $ac_compile) 2>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; then
10283 if test "$lt_cv_prog_gnu_ld" = yes; then
10284 case `/usr/bin/file conftest.$ac_objext` in
10286 LD="${LD-ld} -melf32bsmip"
10289 LD="${LD-ld} -melf32bmipn32"
10292 LD="${LD-ld} -melf64bmip"
10296 case `/usr/bin/file conftest.$ac_objext` in
10312 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10313 # Find out which ABI we are using.
10314 echo 'int i;' > conftest.$ac_ext
10315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10316 (eval $ac_compile) 2>&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; then
10320 case "`/usr/bin/file conftest.o`" in
10324 LD="${LD-ld} -m elf_i386"
10326 ppc64-*linux*|powerpc64-*linux*)
10327 LD="${LD-ld} -m elf32ppclinux"
10330 LD="${LD-ld} -m elf_s390"
10333 LD="${LD-ld} -m elf32_sparc"
10340 LD="${LD-ld} -m elf_x86_64"
10342 ppc*-*linux*|powerpc*-*linux*)
10343 LD="${LD-ld} -m elf64ppc"
10346 LD="${LD-ld} -m elf64_s390"
10349 LD="${LD-ld} -m elf64_sparc"
10359 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10360 SAVE_CFLAGS="$CFLAGS"
10361 CFLAGS="$CFLAGS -belf"
10362 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10363 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10364 if test "${lt_cv_cc_needs_belf+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 ac_cpp='$CPP $CPPFLAGS'
10369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10373 cat >conftest.$ac_ext <<_ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10381 rm -f conftest.$ac_objext conftest$ac_exeext
10382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383 (eval $ac_link) 2>conftest.er1
10385 grep -v '^ *+' conftest.er1 >conftest.err
10387 cat conftest.err >&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } &&
10390 { ac_try='test -z "$ac_c_werror_flag"
10391 || test ! -s conftest.err'
10392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10393 (eval $ac_try) 2>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; } &&
10397 { ac_try='test -s conftest$ac_exeext'
10398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399 (eval $ac_try) 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; }; then
10403 lt_cv_cc_needs_belf=yes
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10408 lt_cv_cc_needs_belf=no
10410 rm -f conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10413 ac_cpp='$CPP $CPPFLAGS'
10414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10419 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10420 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10421 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10422 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10423 CFLAGS="$SAVE_CFLAGS"
10429 need_locks="$enable_libtool_lock"
10434 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10435 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10436 (test "X$CXX" != "Xg++"))) ; then
10438 ac_cpp='$CXXCPP $CPPFLAGS'
10439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10442 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10443 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10444 if test -z "$CXXCPP"; then
10445 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10448 # Double quotes because CXXCPP needs to be expanded
10449 for CXXCPP in "$CXX -E" "/lib/cpp"
10451 ac_preproc_ok=false
10452 for ac_cxx_preproc_warn_flag in '' yes
10454 # Use a header file that comes with gcc, so configuring glibc
10455 # with a fresh cross-compiler works.
10456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10457 # <limits.h> exists even on freestanding compilers.
10458 # On the NeXT, cc -E runs the code through the compiler's parser,
10459 # not just through cpp. "Syntax error" is here to catch this case.
10460 cat >conftest.$ac_ext <<_ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h. */
10467 # include <limits.h>
10469 # include <assert.h>
10473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10476 grep -v '^ *+' conftest.er1 >conftest.err
10478 cat conftest.err >&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } >/dev/null; then
10481 if test -s conftest.err; then
10482 ac_cpp_err=$ac_cxx_preproc_warn_flag
10483 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10490 if test -z "$ac_cpp_err"; then
10493 echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10496 # Broken: fails on valid input.
10499 rm -f conftest.err conftest.$ac_ext
10501 # OK, works on sane cases. Now check whether non-existent headers
10502 # can be detected and how.
10503 cat >conftest.$ac_ext <<_ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10509 #include <ac_nonexistent.h>
10511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10514 grep -v '^ *+' conftest.er1 >conftest.err
10516 cat conftest.err >&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } >/dev/null; then
10519 if test -s conftest.err; then
10520 ac_cpp_err=$ac_cxx_preproc_warn_flag
10521 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10528 if test -z "$ac_cpp_err"; then
10529 # Broken: success on invalid input.
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10535 # Passes both tests.
10539 rm -f conftest.err conftest.$ac_ext
10542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10543 rm -f conftest.err conftest.$ac_ext
10544 if $ac_preproc_ok; then
10549 ac_cv_prog_CXXCPP=$CXXCPP
10552 CXXCPP=$ac_cv_prog_CXXCPP
10554 ac_cv_prog_CXXCPP=$CXXCPP
10556 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10557 echo "${ECHO_T}$CXXCPP" >&6
10558 ac_preproc_ok=false
10559 for ac_cxx_preproc_warn_flag in '' yes
10561 # Use a header file that comes with gcc, so configuring glibc
10562 # with a fresh cross-compiler works.
10563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10564 # <limits.h> exists even on freestanding compilers.
10565 # On the NeXT, cc -E runs the code through the compiler's parser,
10566 # not just through cpp. "Syntax error" is here to catch this case.
10567 cat >conftest.$ac_ext <<_ACEOF
10570 cat confdefs.h >>conftest.$ac_ext
10571 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h. */
10574 # include <limits.h>
10576 # include <assert.h>
10580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10583 grep -v '^ *+' conftest.er1 >conftest.err
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } >/dev/null; then
10588 if test -s conftest.err; then
10589 ac_cpp_err=$ac_cxx_preproc_warn_flag
10590 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10597 if test -z "$ac_cpp_err"; then
10600 echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10603 # Broken: fails on valid input.
10606 rm -f conftest.err conftest.$ac_ext
10608 # OK, works on sane cases. Now check whether non-existent headers
10609 # can be detected and how.
10610 cat >conftest.$ac_ext <<_ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h. */
10616 #include <ac_nonexistent.h>
10618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10621 grep -v '^ *+' conftest.er1 >conftest.err
10623 cat conftest.err >&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } >/dev/null; then
10626 if test -s conftest.err; then
10627 ac_cpp_err=$ac_cxx_preproc_warn_flag
10628 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10635 if test -z "$ac_cpp_err"; then
10636 # Broken: success on invalid input.
10639 echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10642 # Passes both tests.
10646 rm -f conftest.err conftest.$ac_ext
10649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10650 rm -f conftest.err conftest.$ac_ext
10651 if $ac_preproc_ok; then
10654 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10655 See \`config.log' for more details." >&5
10656 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10657 See \`config.log' for more details." >&2;}
10658 { (exit 1); exit 1; }; }
10662 ac_cpp='$CXXCPP $CPPFLAGS'
10663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10671 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10672 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10673 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10674 if test -n "$ac_tool_prefix"; then
10675 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10677 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10678 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10679 echo "$as_me:$LINENO: checking for $ac_word" >&5
10680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10681 if test "${ac_cv_prog_F77+set}" = set; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10684 if test -n "$F77"; then
10685 ac_cv_prog_F77="$F77" # Let the user override the test.
10687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10688 for as_dir in $PATH
10691 test -z "$as_dir" && as_dir=.
10692 for ac_exec_ext in '' $ac_executable_extensions; do
10693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10694 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10703 F77=$ac_cv_prog_F77
10704 if test -n "$F77"; then
10705 echo "$as_me:$LINENO: result: $F77" >&5
10706 echo "${ECHO_T}$F77" >&6
10708 echo "$as_me:$LINENO: result: no" >&5
10709 echo "${ECHO_T}no" >&6
10712 test -n "$F77" && break
10715 if test -z "$F77"; then
10717 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10719 # Extract the first word of "$ac_prog", so it can be a program name with args.
10720 set dummy $ac_prog; ac_word=$2
10721 echo "$as_me:$LINENO: checking for $ac_word" >&5
10722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10723 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10726 if test -n "$ac_ct_F77"; then
10727 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730 for as_dir in $PATH
10733 test -z "$as_dir" && as_dir=.
10734 for ac_exec_ext in '' $ac_executable_extensions; do
10735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10736 ac_cv_prog_ac_ct_F77="$ac_prog"
10737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10745 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10746 if test -n "$ac_ct_F77"; then
10747 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10748 echo "${ECHO_T}$ac_ct_F77" >&6
10750 echo "$as_me:$LINENO: result: no" >&5
10751 echo "${ECHO_T}no" >&6
10754 test -n "$ac_ct_F77" && break
10761 # Provide some information about the compiler.
10762 echo "$as_me:10762:" \
10763 "checking for Fortran 77 compiler version" >&5
10764 ac_compiler=`set X $ac_compile; echo $2`
10765 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10766 (eval $ac_compiler --version </dev/null >&5) 2>&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }
10770 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10771 (eval $ac_compiler -v </dev/null >&5) 2>&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }
10775 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10776 (eval $ac_compiler -V </dev/null >&5) 2>&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }
10782 # If we don't use `.F' as extension, the preprocessor is not run on the
10783 # input file. (Note that this only needs to work for GNU compilers.)
10784 ac_save_ext=$ac_ext
10786 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10787 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10788 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 cat >conftest.$ac_ext <<_ACEOF
10799 rm -f conftest.$ac_objext
10800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10801 (eval $ac_compile) 2>conftest.er1
10803 grep -v '^ *+' conftest.er1 >conftest.err
10805 cat conftest.err >&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } &&
10808 { ac_try='test -z "$ac_f77_werror_flag"
10809 || test ! -s conftest.err'
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; } &&
10815 { ac_try='test -s conftest.$ac_objext'
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; }; then
10821 ac_compiler_gnu=yes
10823 echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.$ac_ext >&5
10828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10829 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10832 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10833 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10834 ac_ext=$ac_save_ext
10835 ac_test_FFLAGS=${FFLAGS+set}
10836 ac_save_FFLAGS=$FFLAGS
10838 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10839 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10840 if test "${ac_cv_prog_f77_g+set}" = set; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
10844 cat >conftest.$ac_ext <<_ACEOF
10849 rm -f conftest.$ac_objext
10850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10851 (eval $ac_compile) 2>conftest.er1
10853 grep -v '^ *+' conftest.er1 >conftest.err
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
10858 { ac_try='test -z "$ac_f77_werror_flag"
10859 || test ! -s conftest.err'
10860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861 (eval $ac_try) 2>&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; } &&
10865 { ac_try='test -s conftest.$ac_objext'
10866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 ac_cv_prog_f77_g=yes
10873 echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10876 ac_cv_prog_f77_g=no
10878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10881 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10882 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10883 if test "$ac_test_FFLAGS" = set; then
10884 FFLAGS=$ac_save_FFLAGS
10885 elif test $ac_cv_prog_f77_g = yes; then
10886 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10892 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10899 G77=`test $ac_compiler_gnu = yes && echo yes`
10901 ac_cpp='$CPP $CPPFLAGS'
10902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10908 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10910 # find the maximum length of command line arguments
10911 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10912 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10913 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10921 # On DJGPP, this test can blow up pretty badly due to problems in libc
10922 # (any single argument exceeding 2000 bytes causes a buffer overrun
10923 # during glob expansion). Even if it were fixed, the result of this
10924 # check would be larger than it should be.
10925 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10929 # Under GNU Hurd, this test is not required because there is
10930 # no limit to the length of command line arguments.
10931 # Libtool will interpret -1 as no limit whatsoever
10932 lt_cv_sys_max_cmd_len=-1;
10936 # On Win9x/ME, this test blows up -- it succeeds, but takes
10937 # about 5 minutes as the teststring grows exponentially.
10938 # Worse, since 9x/ME are not pre-emptively multitasking,
10939 # you end up with a "frozen" computer, even though with patience
10940 # the test eventually succeeds (with a max line length of 256k).
10941 # Instead, let's just punt: use the minimum linelength reported by
10942 # all of the supported platforms: 8192 (on NT/2K/XP).
10943 lt_cv_sys_max_cmd_len=8192;
10947 # On AmigaOS with pdksh, this test takes hours, literally.
10948 # So we just punt and use a minimum line length of 8192.
10949 lt_cv_sys_max_cmd_len=8192;
10952 netbsd* | freebsd* | openbsd* | darwin* )
10953 # This has been around since 386BSD, at least. Likely further.
10954 if test -x /sbin/sysctl; then
10955 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10956 elif test -x /usr/sbin/sysctl; then
10957 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10959 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10961 # And add a safety zone
10962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10966 # If test is not a shell built-in, we'll probably end up computing a
10967 # maximum length that is only half of the actual maximum length, but
10969 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10970 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10971 = "XX$teststring") >/dev/null 2>&1 &&
10972 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10973 lt_cv_sys_max_cmd_len=$new_result &&
10974 test $i != 17 # 1/2 MB should be enough
10977 teststring=$teststring$teststring
10980 # Add a significant safety factor because C++ compilers can tack on massive
10981 # amounts of additional arguments before passing them to the linker.
10982 # It appears as though 1/2 is a usable value.
10983 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10989 if test -n $lt_cv_sys_max_cmd_len ; then
10990 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10991 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10993 echo "$as_me:$LINENO: result: none" >&5
10994 echo "${ECHO_T}none" >&6
11000 # Check for command to grab the raw symbol name followed by C symbol from nm.
11001 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11002 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11003 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11007 # These are sane defaults that work on at least a few old systems.
11008 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11010 # Character class describing NM global symbol codes.
11011 symcode='[BCDEGRST]'
11013 # Regexp to match symbols that can be accessed directly from C.
11014 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11016 # Transform the above into a raw symbol and a C symbol.
11017 symxfrm='\1 \2\3 \3'
11019 # Transform an extracted symbol line into a proper C declaration
11020 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11022 # Transform an extracted symbol line into symbol name and symbol address
11023 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'"
11025 # Define system-specific variables.
11030 cygwin* | mingw* | pw32*)
11031 symcode='[ABCDGISTW]'
11033 hpux*) # Its linker distinguishes data from code symbols
11034 if test "$host_cpu" = ia64; then
11035 symcode='[ABCDEGRST]'
11037 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11038 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'"
11041 if test "$host_cpu" = ia64; then
11042 symcode='[ABCDGIRSTW]'
11043 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11044 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'"
11047 irix* | nonstopux*)
11048 symcode='[BCDEGRST]'
11051 symcode='[BCDEGQRST]'
11061 # Handle CRLF in mingw tool chain
11065 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11069 # If we're using GNU nm, then use its standard symbol codes.
11070 case `$NM -V 2>&1` in
11071 *GNU* | *'with BFD'*)
11072 symcode='[ABCDGIRSTW]' ;;
11075 # Try without a prefix undercore, then with it.
11076 for ac_symprfx in "" "_"; do
11078 # Write the raw and C identifiers.
11079 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11081 # Check to see that the pipe works correctly.
11085 cat > conftest.$ac_ext <<EOF
11090 void nm_test_func(){}
11094 int main(){nm_test_var='a';nm_test_func();return(0);}
11097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11098 (eval $ac_compile) 2>&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; then
11102 # Now try to grab the symbols.
11104 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11105 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } && test -s "$nlist"; then
11109 # Try sorting and uniquifying the output.
11110 if sort "$nlist" | uniq > "$nlist"T; then
11111 mv -f "$nlist"T "$nlist"
11116 # Make sure that we snagged all the symbols we need.
11117 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11118 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11119 cat <<EOF > conftest.$ac_ext
11125 # Now generate the symbol file.
11126 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11128 cat <<EOF >> conftest.$ac_ext
11129 #if defined (__STDC__) && __STDC__
11130 # define lt_ptr_t void *
11132 # define lt_ptr_t char *
11136 /* The mapping between symbol names and symbols. */
11141 lt_preloaded_symbols[] =
11144 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11145 cat <<\EOF >> conftest.$ac_ext
11153 # Now try linking the two files.
11154 mv conftest.$ac_objext conftstm.$ac_objext
11155 lt_save_LIBS="$LIBS"
11156 lt_save_CFLAGS="$CFLAGS"
11157 LIBS="conftstm.$ac_objext"
11158 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11160 (eval $ac_link) 2>&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11166 LIBS="$lt_save_LIBS"
11167 CFLAGS="$lt_save_CFLAGS"
11169 echo "cannot find nm_test_func in $nlist" >&5
11172 echo "cannot find nm_test_var in $nlist" >&5
11175 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11178 echo "$progname: failed program was:" >&5
11179 cat conftest.$ac_ext >&5
11181 rm -f conftest* conftst*
11183 # Do not use the global_symbol_pipe unless it works.
11184 if test "$pipe_works" = yes; then
11187 lt_cv_sys_global_symbol_pipe=
11193 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11194 lt_cv_sys_global_symbol_to_cdecl=
11196 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11197 echo "$as_me:$LINENO: result: failed" >&5
11198 echo "${ECHO_T}failed" >&6
11200 echo "$as_me:$LINENO: result: ok" >&5
11201 echo "${ECHO_T}ok" >&6
11204 echo "$as_me:$LINENO: checking for objdir" >&5
11205 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11206 if test "${lt_cv_objdir+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 rm -f .libs 2>/dev/null
11210 mkdir .libs 2>/dev/null
11211 if test -d .libs; then
11214 # MS-DOS does not allow filenames that begin with a dot.
11217 rmdir .libs 2>/dev/null
11219 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11220 echo "${ECHO_T}$lt_cv_objdir" >&6
11221 objdir=$lt_cv_objdir
11229 # AIX sometimes has problems with the GCC collect2 program. For some
11230 # reason, if we set the COLLECT_NAMES environment variable, the problems
11231 # vanish in a puff of smoke.
11232 if test "X${COLLECT_NAMES+set}" != Xset; then
11234 export COLLECT_NAMES
11239 # Sed substitution that helps us do robust quoting. It backslashifies
11240 # metacharacters that are still active within double-quoted strings.
11241 Xsed='sed -e s/^X//'
11242 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11244 # Same as above, but do not quote variable references.
11245 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11247 # Sed substitution to delay expansion of an escaped shell variable in a
11248 # double_quote_subst'ed string.
11249 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11251 # Sed substitution to avoid accidental globbing in evaled expressions
11252 no_glob_subst='s/\*/\\\*/g'
11257 # Global variables:
11258 default_ofile=mklib
11259 can_build_shared=yes
11261 # All known linkers require a `.a' archive for static linking (except M$VC,
11262 # which needs '.lib').
11264 ltmain="$ac_aux_dir/ltmain.sh"
11265 ofile="$default_ofile"
11266 with_gnu_ld="$lt_cv_prog_gnu_ld"
11268 if test -n "$ac_tool_prefix"; then
11269 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11270 set dummy ${ac_tool_prefix}ar; ac_word=$2
11271 echo "$as_me:$LINENO: checking for $ac_word" >&5
11272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11273 if test "${ac_cv_prog_AR+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 if test -n "$AR"; then
11277 ac_cv_prog_AR="$AR" # Let the user override the test.
11279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11280 for as_dir in $PATH
11283 test -z "$as_dir" && as_dir=.
11284 for ac_exec_ext in '' $ac_executable_extensions; do
11285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11286 ac_cv_prog_AR="${ac_tool_prefix}ar"
11287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11296 if test -n "$AR"; then
11297 echo "$as_me:$LINENO: result: $AR" >&5
11298 echo "${ECHO_T}$AR" >&6
11300 echo "$as_me:$LINENO: result: no" >&5
11301 echo "${ECHO_T}no" >&6
11305 if test -z "$ac_cv_prog_AR"; then
11307 # Extract the first word of "ar", so it can be a program name with args.
11308 set dummy ar; ac_word=$2
11309 echo "$as_me:$LINENO: checking for $ac_word" >&5
11310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11311 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6
11314 if test -n "$ac_ct_AR"; then
11315 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11318 for as_dir in $PATH
11321 test -z "$as_dir" && as_dir=.
11322 for ac_exec_ext in '' $ac_executable_extensions; do
11323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11324 ac_cv_prog_ac_ct_AR="ar"
11325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11331 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11334 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11335 if test -n "$ac_ct_AR"; then
11336 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11337 echo "${ECHO_T}$ac_ct_AR" >&6
11339 echo "$as_me:$LINENO: result: no" >&5
11340 echo "${ECHO_T}no" >&6
11345 AR="$ac_cv_prog_AR"
11348 if test -n "$ac_tool_prefix"; then
11349 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11350 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11351 echo "$as_me:$LINENO: checking for $ac_word" >&5
11352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11353 if test "${ac_cv_prog_RANLIB+set}" = set; then
11354 echo $ECHO_N "(cached) $ECHO_C" >&6
11356 if test -n "$RANLIB"; then
11357 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11360 for as_dir in $PATH
11363 test -z "$as_dir" && as_dir=.
11364 for ac_exec_ext in '' $ac_executable_extensions; do
11365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11366 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11375 RANLIB=$ac_cv_prog_RANLIB
11376 if test -n "$RANLIB"; then
11377 echo "$as_me:$LINENO: result: $RANLIB" >&5
11378 echo "${ECHO_T}$RANLIB" >&6
11380 echo "$as_me:$LINENO: result: no" >&5
11381 echo "${ECHO_T}no" >&6
11385 if test -z "$ac_cv_prog_RANLIB"; then
11386 ac_ct_RANLIB=$RANLIB
11387 # Extract the first word of "ranlib", so it can be a program name with args.
11388 set dummy ranlib; ac_word=$2
11389 echo "$as_me:$LINENO: checking for $ac_word" >&5
11390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11391 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
11394 if test -n "$ac_ct_RANLIB"; then
11395 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398 for as_dir in $PATH
11401 test -z "$as_dir" && as_dir=.
11402 for ac_exec_ext in '' $ac_executable_extensions; do
11403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11404 ac_cv_prog_ac_ct_RANLIB="ranlib"
11405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11411 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11415 if test -n "$ac_ct_RANLIB"; then
11416 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11417 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11419 echo "$as_me:$LINENO: result: no" >&5
11420 echo "${ECHO_T}no" >&6
11423 RANLIB=$ac_ct_RANLIB
11425 RANLIB="$ac_cv_prog_RANLIB"
11428 if test -n "$ac_tool_prefix"; then
11429 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11430 set dummy ${ac_tool_prefix}strip; ac_word=$2
11431 echo "$as_me:$LINENO: checking for $ac_word" >&5
11432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11433 if test "${ac_cv_prog_STRIP+set}" = set; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 if test -n "$STRIP"; then
11437 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440 for as_dir in $PATH
11443 test -z "$as_dir" && as_dir=.
11444 for ac_exec_ext in '' $ac_executable_extensions; do
11445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11446 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11455 STRIP=$ac_cv_prog_STRIP
11456 if test -n "$STRIP"; then
11457 echo "$as_me:$LINENO: result: $STRIP" >&5
11458 echo "${ECHO_T}$STRIP" >&6
11460 echo "$as_me:$LINENO: result: no" >&5
11461 echo "${ECHO_T}no" >&6
11465 if test -z "$ac_cv_prog_STRIP"; then
11467 # Extract the first word of "strip", so it can be a program name with args.
11468 set dummy strip; ac_word=$2
11469 echo "$as_me:$LINENO: checking for $ac_word" >&5
11470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11471 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11472 echo $ECHO_N "(cached) $ECHO_C" >&6
11474 if test -n "$ac_ct_STRIP"; then
11475 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11478 for as_dir in $PATH
11481 test -z "$as_dir" && as_dir=.
11482 for ac_exec_ext in '' $ac_executable_extensions; do
11483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11484 ac_cv_prog_ac_ct_STRIP="strip"
11485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11491 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11494 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11495 if test -n "$ac_ct_STRIP"; then
11496 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11497 echo "${ECHO_T}$ac_ct_STRIP" >&6
11499 echo "$as_me:$LINENO: result: no" >&5
11500 echo "${ECHO_T}no" >&6
11505 STRIP="$ac_cv_prog_STRIP"
11510 old_CFLAGS="$CFLAGS"
11512 # Set sane defaults for various variables
11513 test -z "$AR" && AR=ar
11514 test -z "$AR_FLAGS" && AR_FLAGS=cru
11515 test -z "$AS" && AS=as
11516 test -z "$CC" && CC=cc
11517 test -z "$LTCC" && LTCC=$CC
11518 test -z "$DLLTOOL" && DLLTOOL=dlltool
11519 test -z "$LD" && LD=ld
11520 test -z "$LN_S" && LN_S="ln -s"
11521 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11522 test -z "$NM" && NM=nm
11523 test -z "$SED" && SED=sed
11524 test -z "$OBJDUMP" && OBJDUMP=objdump
11525 test -z "$RANLIB" && RANLIB=:
11526 test -z "$STRIP" && STRIP=:
11527 test -z "$ac_objext" && ac_objext=o
11529 # Determine commands to create old-style static archives.
11530 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11531 old_postinstall_cmds='chmod 644 $oldlib'
11532 old_postuninstall_cmds=
11534 if test -n "$RANLIB"; then
11537 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11540 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11543 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11546 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11548 # Only perform the check for file, if the check method requires it
11549 case $deplibs_check_method in
11551 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11552 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11553 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11554 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11555 echo $ECHO_N "(cached) $ECHO_C" >&6
11559 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11562 lt_save_MAGIC_CMD="$MAGIC_CMD"
11563 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11564 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11565 for ac_dir in $ac_dummy; do
11567 test -z "$ac_dir" && ac_dir=.
11568 if test -f $ac_dir/${ac_tool_prefix}file; then
11569 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11570 if test -n "$file_magic_test_file"; then
11571 case $deplibs_check_method in
11573 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11574 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11575 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11576 $EGREP "$file_magic_regex" > /dev/null; then
11581 *** Warning: the command libtool uses to detect shared libraries,
11582 *** $file_magic_cmd, produces output that libtool cannot recognize.
11583 *** The result is that libtool may fail to recognize shared libraries
11584 *** as such. This will affect the creation of libtool libraries that
11585 *** depend on shared libraries, but programs linked with such libtool
11586 *** libraries will work regardless of this problem. Nevertheless, you
11587 *** may want to report the problem to your system manager and/or to
11588 *** bug-libtool@gnu.org
11598 MAGIC_CMD="$lt_save_MAGIC_CMD"
11603 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11604 if test -n "$MAGIC_CMD"; then
11605 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11606 echo "${ECHO_T}$MAGIC_CMD" >&6
11608 echo "$as_me:$LINENO: result: no" >&5
11609 echo "${ECHO_T}no" >&6
11612 if test -z "$lt_cv_path_MAGIC_CMD"; then
11613 if test -n "$ac_tool_prefix"; then
11614 echo "$as_me:$LINENO: checking for file" >&5
11615 echo $ECHO_N "checking for file... $ECHO_C" >&6
11616 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11621 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11624 lt_save_MAGIC_CMD="$MAGIC_CMD"
11625 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11626 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11627 for ac_dir in $ac_dummy; do
11629 test -z "$ac_dir" && ac_dir=.
11630 if test -f $ac_dir/file; then
11631 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11632 if test -n "$file_magic_test_file"; then
11633 case $deplibs_check_method in
11635 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11636 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11637 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11638 $EGREP "$file_magic_regex" > /dev/null; then
11643 *** Warning: the command libtool uses to detect shared libraries,
11644 *** $file_magic_cmd, produces output that libtool cannot recognize.
11645 *** The result is that libtool may fail to recognize shared libraries
11646 *** as such. This will affect the creation of libtool libraries that
11647 *** depend on shared libraries, but programs linked with such libtool
11648 *** libraries will work regardless of this problem. Nevertheless, you
11649 *** may want to report the problem to your system manager and/or to
11650 *** bug-libtool@gnu.org
11660 MAGIC_CMD="$lt_save_MAGIC_CMD"
11665 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11666 if test -n "$MAGIC_CMD"; then
11667 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11668 echo "${ECHO_T}$MAGIC_CMD" >&6
11670 echo "$as_me:$LINENO: result: no" >&5
11671 echo "${ECHO_T}no" >&6
11684 enable_win32_dll=no
11686 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11687 if test "${enable_libtool_lock+set}" = set; then
11688 enableval="$enable_libtool_lock"
11691 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11694 # Check whether --with-pic or --without-pic was given.
11695 if test "${with_pic+set}" = set; then
11696 withval="$with_pic"
11697 pic_mode="$withval"
11701 test -z "$pic_mode" && pic_mode=default
11703 # Use C for the default configuration in the libtool script
11707 ac_cpp='$CPP $CPPFLAGS'
11708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11713 # Source file extension for C test sources.
11716 # Object file extension for compiled C test sources.
11720 # Code to be used in simple compile tests
11721 lt_simple_compile_test_code="int some_variable = 0;\n"
11723 # Code to be used in simple link tests
11724 lt_simple_link_test_code='int main(){return(0);}\n'
11727 # If no C compiler was specified, use CC.
11730 # Allow CC to be a program name with arguments.
11735 # Check for any special shared library compilation flags.
11738 if test "$GCC" = no; then
11741 lt_prog_cc_shlib='-belf'
11745 if test -n "$lt_prog_cc_shlib"; then
11746 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11747 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11748 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11750 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11751 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11752 lt_cv_prog_cc_can_build_shared=no
11758 # Check to make sure the static flag actually works.
11760 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11761 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11762 if test "${lt_prog_compiler_static_works+set}" = set; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11765 lt_prog_compiler_static_works=no
11766 save_LDFLAGS="$LDFLAGS"
11767 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11768 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11769 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11770 # The compiler can only warn and ignore the option if not recognized
11771 # So say no if there are warnings
11772 if test -s conftest.err; then
11773 # Append any errors to the config.log.
11774 cat conftest.err 1>&5
11776 lt_prog_compiler_static_works=yes
11780 LDFLAGS="$save_LDFLAGS"
11783 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11784 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11786 if test x"$lt_prog_compiler_static_works" = xyes; then
11789 lt_prog_compiler_static=
11795 lt_prog_compiler_no_builtin_flag=
11797 if test "$GCC" = yes; then
11798 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11801 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11802 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11803 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11804 echo $ECHO_N "(cached) $ECHO_C" >&6
11806 lt_cv_prog_compiler_rtti_exceptions=no
11807 ac_outfile=conftest.$ac_objext
11808 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11809 lt_compiler_flag="-fno-rtti -fno-exceptions"
11810 # Insert the option either (1) after the last *FLAGS variable, or
11811 # (2) before a word containing "conftest.", or (3) at the end.
11812 # Note that $ac_compile itself does not contain backslashes and begins
11813 # with a dollar sign (not a hyphen), so the echo should work correctly.
11814 # The option is referenced via a variable to avoid confusing sed.
11815 lt_compile=`echo "$ac_compile" | $SED \
11816 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11818 -e 's:$: $lt_compiler_flag:'`
11819 (eval echo "\"\$as_me:11819: $lt_compile\"" >&5)
11820 (eval "$lt_compile" 2>conftest.err)
11822 cat conftest.err >&5
11823 echo "$as_me:11823: \$? = $ac_status" >&5
11824 if (exit $ac_status) && test -s "$ac_outfile"; then
11825 # The compiler can only warn and ignore the option if not recognized
11826 # So say no if there are warnings
11827 if test ! -s conftest.err; then
11828 lt_cv_prog_compiler_rtti_exceptions=yes
11834 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11835 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11837 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11838 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11845 lt_prog_compiler_wl=
11846 lt_prog_compiler_pic=
11847 lt_prog_compiler_static=
11849 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11850 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11852 if test "$GCC" = yes; then
11853 lt_prog_compiler_wl='-Wl,'
11854 lt_prog_compiler_static='-static'
11858 # All AIX code is PIC.
11859 if test "$host_cpu" = ia64; then
11860 # AIX 5 now supports IA64 processor
11861 lt_prog_compiler_static='-Bstatic'
11866 # FIXME: we need at least 68020 code to build shared libraries, but
11867 # adding the `-m68020' flag to GCC prevents building anything better,
11869 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11872 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11873 # PIC is the default for these OSes.
11876 mingw* | pw32* | os2*)
11877 # This hack is so that the source file can tell whether it is being
11878 # built for inclusion in a dll (and should export symbols for example).
11879 lt_prog_compiler_pic='-DDLL_EXPORT'
11882 darwin* | rhapsody*)
11883 # PIC is the default on this platform
11884 # Common symbols not allowed in MH_DYLIB files
11885 lt_prog_compiler_pic='-fno-common'
11889 # Just because we use GCC doesn't mean we suddenly get shared libraries
11890 # on systems that don't support them.
11891 lt_prog_compiler_can_build_shared=no
11896 if test -d /usr/nec; then
11897 lt_prog_compiler_pic=-Kconform_pic
11902 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11903 # not for PA HP-UX.
11904 case "$host_cpu" in
11909 lt_prog_compiler_pic='-fPIC'
11915 lt_prog_compiler_pic='-fPIC'
11919 # PORTME Check for flag to pass linker flags through the system compiler.
11922 lt_prog_compiler_wl='-Wl,'
11923 if test "$host_cpu" = ia64; then
11924 # AIX 5 now supports IA64 processor
11925 lt_prog_compiler_static='-Bstatic'
11927 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11931 # PIC is the default on this platform
11932 # Common symbols not allowed in MH_DYLIB files
11933 case "$cc_basename" in
11935 lt_prog_compiler_pic='-qnocommon'
11936 lt_prog_compiler_wl='-Wl,'
11941 mingw* | pw32* | os2*)
11942 # This hack is so that the source file can tell whether it is being
11943 # built for inclusion in a dll (and should export symbols for example).
11944 lt_prog_compiler_pic='-DDLL_EXPORT'
11947 hpux9* | hpux10* | hpux11*)
11948 lt_prog_compiler_wl='-Wl,'
11949 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11950 # not for PA HP-UX.
11951 case "$host_cpu" in
11956 lt_prog_compiler_pic='+Z'
11959 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11960 lt_prog_compiler_static='${wl}-a ${wl}archive'
11963 irix5* | irix6* | nonstopux*)
11964 lt_prog_compiler_wl='-Wl,'
11965 # PIC (with -KPIC) is the default.
11966 lt_prog_compiler_static='-non_shared'
11970 lt_prog_compiler_pic='-KPIC'
11971 lt_prog_compiler_static='-Bstatic'
11977 lt_prog_compiler_wl='-Wl,'
11978 lt_prog_compiler_pic='-KPIC'
11979 lt_prog_compiler_static='-static'
11982 lt_prog_compiler_wl='-Wl,'
11983 # All Alpha code is PIC.
11984 lt_prog_compiler_static='-non_shared'
11989 osf3* | osf4* | osf5*)
11990 lt_prog_compiler_wl='-Wl,'
11991 # All OSF/1 code is PIC.
11992 lt_prog_compiler_static='-non_shared'
11996 lt_prog_compiler_pic='-Kpic'
11997 lt_prog_compiler_static='-dn'
12001 lt_prog_compiler_wl='-Wl,'
12002 lt_prog_compiler_pic='-KPIC'
12003 lt_prog_compiler_static='-Bstatic'
12007 lt_prog_compiler_wl='-Qoption ld '
12008 lt_prog_compiler_pic='-PIC'
12009 lt_prog_compiler_static='-Bstatic'
12012 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12013 lt_prog_compiler_wl='-Wl,'
12014 lt_prog_compiler_pic='-KPIC'
12015 lt_prog_compiler_static='-Bstatic'
12019 if test -d /usr/nec ;then
12020 lt_prog_compiler_pic='-Kconform_pic'
12021 lt_prog_compiler_static='-Bstatic'
12026 lt_prog_compiler_pic='-pic'
12027 lt_prog_compiler_static='-Bstatic'
12031 lt_prog_compiler_can_build_shared=no
12036 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12037 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12040 # Check to make sure the PIC flag actually works.
12042 if test -n "$lt_prog_compiler_pic"; then
12044 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12045 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12046 if test "${lt_prog_compiler_pic_works+set}" = set; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 lt_prog_compiler_pic_works=no
12050 ac_outfile=conftest.$ac_objext
12051 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12052 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12053 # Insert the option either (1) after the last *FLAGS variable, or
12054 # (2) before a word containing "conftest.", or (3) at the end.
12055 # Note that $ac_compile itself does not contain backslashes and begins
12056 # with a dollar sign (not a hyphen), so the echo should work correctly.
12057 # The option is referenced via a variable to avoid confusing sed.
12058 lt_compile=`echo "$ac_compile" | $SED \
12059 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12061 -e 's:$: $lt_compiler_flag:'`
12062 (eval echo "\"\$as_me:12062: $lt_compile\"" >&5)
12063 (eval "$lt_compile" 2>conftest.err)
12065 cat conftest.err >&5
12066 echo "$as_me:12066: \$? = $ac_status" >&5
12067 if (exit $ac_status) && test -s "$ac_outfile"; then
12068 # The compiler can only warn and ignore the option if not recognized
12069 # So say no if there are warnings
12070 if test ! -s conftest.err; then
12071 lt_prog_compiler_pic_works=yes
12077 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12078 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12080 if test x"$lt_prog_compiler_pic_works" = xyes; then
12081 case $lt_prog_compiler_pic in
12083 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12086 lt_prog_compiler_pic=
12087 lt_prog_compiler_can_build_shared=no
12092 # For platforms which do not support PIC, -DPIC is meaningless:
12094 lt_prog_compiler_pic=
12097 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12101 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12102 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12103 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12106 lt_cv_prog_compiler_c_o=no
12107 $rm -r conftest 2>/dev/null
12111 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12113 lt_compiler_flag="-o out/conftest2.$ac_objext"
12114 # Insert the option either (1) after the last *FLAGS variable, or
12115 # (2) before a word containing "conftest.", or (3) at the end.
12116 # Note that $ac_compile itself does not contain backslashes and begins
12117 # with a dollar sign (not a hyphen), so the echo should work correctly.
12118 lt_compile=`echo "$ac_compile" | $SED \
12119 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12121 -e 's:$: $lt_compiler_flag:'`
12122 (eval echo "\"\$as_me:12122: $lt_compile\"" >&5)
12123 (eval "$lt_compile" 2>out/conftest.err)
12125 cat out/conftest.err >&5
12126 echo "$as_me:12126: \$? = $ac_status" >&5
12127 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12129 # The compiler can only warn and ignore the option if not recognized
12130 # So say no if there are warnings
12131 if test ! -s out/conftest.err; then
12132 lt_cv_prog_compiler_c_o=yes
12137 # SGI C++ compiler will create directory out/ii_files/ for
12138 # template instantiation
12139 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12140 $rm out/* && rmdir out
12146 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12147 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12150 hard_links="nottested"
12151 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12152 # do not overwrite the value of need_locks provided by the user
12153 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12154 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12157 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12159 ln conftest.a conftest.b 2>&5 || hard_links=no
12160 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12161 echo "$as_me:$LINENO: result: $hard_links" >&5
12162 echo "${ECHO_T}$hard_links" >&6
12163 if test "$hard_links" = no; then
12164 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12165 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12172 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12173 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12176 allow_undefined_flag=
12177 enable_shared_with_static_runtimes=no
12179 archive_expsym_cmds=
12180 old_archive_From_new_cmds=
12181 old_archive_from_expsyms_cmds=
12182 export_dynamic_flag_spec=
12183 whole_archive_flag_spec=
12184 thread_safe_flag_spec=
12185 hardcode_libdir_flag_spec=
12186 hardcode_libdir_flag_spec_ld=
12187 hardcode_libdir_separator=
12189 hardcode_minus_L=no
12190 hardcode_shlibpath_var=unsupported
12191 link_all_deplibs=unknown
12192 hardcode_automatic=no
12194 module_expsym_cmds=
12195 always_export_symbols=no
12196 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12197 # include_expsyms should be a list of space-separated symbols to be *always*
12198 # included in the symbol list
12200 # exclude_expsyms can be an extended regexp of symbols to exclude
12201 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12202 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12203 # as well as any symbol that contains `d'.
12204 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12205 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12206 # platforms (ab)use it in PIC code, but their linkers get confused if
12207 # the symbol is explicitly referenced. Since portable code cannot
12208 # rely on this symbol name, it's probably fine to never include it in
12209 # preloaded symbol tables.
12210 extract_expsyms_cmds=
12213 cygwin* | mingw* | pw32*)
12214 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12215 # When not using gcc, we currently assume that we are using
12216 # Microsoft Visual C++.
12217 if test "$GCC" != yes; then
12227 if test "$with_gnu_ld" = yes; then
12228 # If archive_cmds runs LD, not CC, wlarc should be empty
12231 # See if GNU ld supports shared libraries.
12233 aix3* | aix4* | aix5*)
12234 # On AIX/PPC, the GNU linker is very broken
12235 if test "$host_cpu" != ia64; then
12239 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12240 *** to be unable to reliably create shared libraries on AIX.
12241 *** Therefore, libtool is disabling shared libraries support. If you
12242 *** really care for shared libraries, you may want to modify your PATH
12243 *** so that a non-GNU linker is found, and then restart.
12250 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)'
12251 hardcode_libdir_flag_spec='-L$libdir'
12252 hardcode_minus_L=yes
12254 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12255 # that the semantics of dynamic libraries on AmigaOS, at least up
12256 # to version 4, is to share data among multiple programs linked
12257 # with the same dynamic library. Since this doesn't match the
12258 # behavior of shared libraries on other platforms, we can't use
12264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12265 allow_undefined_flag=unsupported
12266 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12267 # support --undefined. This deserves some investigation. FIXME
12268 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12274 cygwin* | mingw* | pw32*)
12275 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12276 # as there is no search path for DLLs.
12277 hardcode_libdir_flag_spec='-L$libdir'
12278 allow_undefined_flag=unsupported
12279 always_export_symbols=no
12280 enable_shared_with_static_runtimes=yes
12281 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12283 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12285 # If the export-symbols file already is a .def file (1st line
12286 # is EXPORTS), use it as is; otherwise, prepend...
12287 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12288 cp $export_symbols $output_objdir/$soname.def;
12290 echo EXPORTS > $output_objdir/$soname.def;
12291 cat $export_symbols >> $output_objdir/$soname.def;
12293 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12301 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12305 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12310 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12314 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12315 *** create shared libraries on Solaris systems. Therefore, libtool
12316 *** is disabling shared libraries support. We urge you to upgrade GNU
12317 *** binutils to release 2.9.1 or newer. Another option is to modify
12318 *** your PATH or compiler configuration so that the native linker is
12319 *** used, and then restart.
12322 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12331 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12333 hardcode_direct=yes
12334 hardcode_shlibpath_var=no
12338 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12339 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12340 archive_cmds="$tmp_archive_cmds"
12341 supports_anon_versioning=no
12342 case `$LD -v 2>/dev/null` in
12343 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12344 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12345 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12346 *\ 2.11.*) ;; # other 2.11 versions
12347 *) supports_anon_versioning=yes ;;
12349 if test $supports_anon_versioning = yes; then
12350 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12351 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12352 $echo "local: *; };" >> $output_objdir/$libname.ver~
12353 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12355 archive_expsym_cmds="$tmp_archive_cmds"
12363 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12365 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12372 if test "$ld_shlibs" = yes; then
12373 runpath_var=LD_RUN_PATH
12374 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12375 export_dynamic_flag_spec='${wl}--export-dynamic'
12376 # ancient GNU ld didn't support --whole-archive et. al.
12377 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12378 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12380 whole_archive_flag_spec=
12384 # PORTME fill in a description of your system's linker (not GNU ld)
12387 allow_undefined_flag=unsupported
12388 always_export_symbols=yes
12389 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'
12390 # Note: this linker hardcodes the directories in LIBPATH if there
12391 # are no directories specified by -L.
12392 hardcode_minus_L=yes
12393 if test "$GCC" = yes && test -z "$link_static_flag"; then
12394 # Neither direct hardcoding nor static linking is supported with a
12396 hardcode_direct=unsupported
12401 if test "$host_cpu" = ia64; then
12402 # On IA64, the linker does run time linking by default, so we don't
12403 # have to do anything special.
12404 aix_use_runtimelinking=no
12405 exp_sym_flag='-Bexport'
12408 # If we're using GNU nm, then we don't want the "-C" option.
12409 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12410 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12411 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'
12413 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'
12415 aix_use_runtimelinking=no
12417 # Test if we are trying to use run time linking or normal
12418 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12419 # need to do runtime linking.
12420 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12421 for ld_flag in $LDFLAGS; do
12422 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12423 aix_use_runtimelinking=yes
12429 exp_sym_flag='-bexport'
12430 no_entry_flag='-bnoentry'
12433 # When large executables or shared objects are built, AIX ld can
12434 # have problems creating the table of contents. If linking a library
12435 # or program results in "error TOC overflow" add -mminimal-toc to
12436 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12437 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12440 hardcode_direct=yes
12441 hardcode_libdir_separator=':'
12442 link_all_deplibs=yes
12444 if test "$GCC" = yes; then
12445 case $host_os in aix4.012|aix4.012.*)
12446 # We only want to do this on AIX 4.2 and lower, the check
12447 # below for broken collect2 doesn't work under 4.3+
12448 collect2name=`${CC} -print-prog-name=collect2`
12449 if test -f "$collect2name" && \
12450 strings "$collect2name" | grep resolve_lib_name >/dev/null
12452 # We have reworked collect2
12453 hardcode_direct=yes
12455 # We have old collect2
12456 hardcode_direct=unsupported
12457 # It fails to find uninstalled libraries when the uninstalled
12458 # path is not listed in the libpath. Setting hardcode_minus_L
12459 # to unsupported forces relinking
12460 hardcode_minus_L=yes
12461 hardcode_libdir_flag_spec='-L$libdir'
12462 hardcode_libdir_separator=
12465 shared_flag='-shared'
12468 if test "$host_cpu" = ia64; then
12469 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12470 # chokes on -Wl,-G. The following line is correct:
12473 if test "$aix_use_runtimelinking" = yes; then
12474 shared_flag='${wl}-G'
12476 shared_flag='${wl}-bM:SRE'
12481 # It seems that -bexpall does not export symbols beginning with
12482 # underscore (_), so it is better to generate a list of symbols to export.
12483 always_export_symbols=yes
12484 if test "$aix_use_runtimelinking" = yes; then
12485 # Warning - without using the other runtime loading flags (-brtl),
12486 # -berok will link without error, but may produce a broken library.
12487 allow_undefined_flag='-berok'
12488 # Determine the default libpath from the value encoded in an empty executable.
12489 cat >conftest.$ac_ext <<_ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h. */
12504 rm -f conftest.$ac_objext conftest$ac_exeext
12505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12506 (eval $ac_link) 2>conftest.er1
12508 grep -v '^ *+' conftest.er1 >conftest.err
12510 cat conftest.err >&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } &&
12513 { ac_try='test -z "$ac_c_werror_flag"
12514 || test ! -s conftest.err'
12515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516 (eval $ac_try) 2>&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; } &&
12520 { ac_try='test -s conftest$ac_exeext'
12521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12527 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12529 # Check for a 64-bit object if we didn't find anything.
12530 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; }
12533 echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12537 rm -f conftest.err conftest.$ac_objext \
12538 conftest$ac_exeext conftest.$ac_ext
12539 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12541 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12542 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"
12544 if test "$host_cpu" = ia64; then
12545 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12546 allow_undefined_flag="-z nodefs"
12547 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"
12549 # Determine the default libpath from the value encoded in an empty executable.
12550 cat >conftest.$ac_ext <<_ACEOF
12553 cat confdefs.h >>conftest.$ac_ext
12554 cat >>conftest.$ac_ext <<_ACEOF
12555 /* end confdefs.h. */
12565 rm -f conftest.$ac_objext conftest$ac_exeext
12566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12567 (eval $ac_link) 2>conftest.er1
12569 grep -v '^ *+' conftest.er1 >conftest.err
12571 cat conftest.err >&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); } &&
12574 { ac_try='test -z "$ac_c_werror_flag"
12575 || test ! -s conftest.err'
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; } &&
12581 { ac_try='test -s conftest$ac_exeext'
12582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; }; then
12588 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12590 # Check for a 64-bit object if we didn't find anything.
12591 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; }
12594 echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12598 rm -f conftest.err conftest.$ac_objext \
12599 conftest$ac_exeext conftest.$ac_ext
12600 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12602 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12603 # Warning - without using the other run time loading flags,
12604 # -berok will link without error, but may produce a broken library.
12605 no_undefined_flag=' ${wl}-bernotok'
12606 allow_undefined_flag=' ${wl}-berok'
12607 # -bexpall does not export symbols beginning with underscore (_)
12608 always_export_symbols=yes
12609 # Exported symbols can be pulled into shared objects from archives
12610 whole_archive_flag_spec=' '
12611 archive_cmds_need_lc=yes
12612 # This is similar to how AIX traditionally builds it's shared libraries.
12613 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'
12619 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)'
12620 hardcode_libdir_flag_spec='-L$libdir'
12621 hardcode_minus_L=yes
12622 # see comment about different semantics on the GNU ld section
12627 export_dynamic_flag_spec=-rdynamic
12630 cygwin* | mingw* | pw32*)
12631 # When not using gcc, we currently assume that we are using
12632 # Microsoft Visual C++.
12633 # hardcode_libdir_flag_spec is actually meaningless, as there is
12634 # no search path for DLLs.
12635 hardcode_libdir_flag_spec=' '
12636 allow_undefined_flag=unsupported
12637 # Tell ltmain to make .lib files, not .a files.
12639 # Tell ltmain to make .dll files, not .so files.
12641 # FIXME: Setting linknames here is a bad hack.
12642 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12643 # The linker will automatically build a .lib file if we build a DLL.
12644 old_archive_From_new_cmds='true'
12645 # FIXME: Should let the user specify the lib program.
12646 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12647 fix_srcfile_path='`cygpath -w "$srcfile"`'
12648 enable_shared_with_static_runtimes=yes
12651 darwin* | rhapsody*)
12653 rhapsody* | darwin1.[012])
12654 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12657 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12658 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12660 case ${MACOSX_DEPLOYMENT_TARGET} in
12662 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12665 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12671 archive_cmds_need_lc=no
12673 hardcode_automatic=yes
12674 hardcode_shlibpath_var=unsupported
12675 whole_archive_flag_spec=''
12676 link_all_deplibs=yes
12677 if test "$GCC" = yes ; then
12678 output_verbose_link_cmd='echo'
12679 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12680 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12681 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12682 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}'
12683 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}'
12685 case "$cc_basename" in
12687 output_verbose_link_cmd='echo'
12688 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12689 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12690 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12691 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}'
12692 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}'
12702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12703 hardcode_libdir_flag_spec='-L$libdir'
12704 hardcode_shlibpath_var=no
12711 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12712 # support. Future versions do this automatically, but an explicit c++rt0.o
12713 # does not break anything, and helps significantly (at the cost of a little
12716 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12717 hardcode_libdir_flag_spec='-R$libdir'
12718 hardcode_direct=yes
12719 hardcode_shlibpath_var=no
12722 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12725 hardcode_direct=yes
12726 hardcode_minus_L=yes
12727 hardcode_shlibpath_var=no
12730 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12731 freebsd* | kfreebsd*-gnu)
12732 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12733 hardcode_libdir_flag_spec='-R$libdir'
12734 hardcode_direct=yes
12735 hardcode_shlibpath_var=no
12739 if test "$GCC" = yes; then
12740 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'
12742 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'
12744 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12745 hardcode_libdir_separator=:
12746 hardcode_direct=yes
12748 # hardcode_minus_L: Not really in the search PATH,
12749 # but as the default location of the library.
12750 hardcode_minus_L=yes
12751 export_dynamic_flag_spec='${wl}-E'
12755 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12756 case "$host_cpu" in
12758 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12761 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12765 case "$host_cpu" in
12767 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12770 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12774 if test "$with_gnu_ld" = no; then
12775 case "$host_cpu" in
12777 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12778 hardcode_libdir_flag_spec_ld='+b $libdir'
12779 hardcode_libdir_separator=:
12781 hardcode_shlibpath_var=no
12784 hardcode_libdir_flag_spec='-L$libdir'
12786 hardcode_shlibpath_var=no
12788 # hardcode_minus_L: Not really in the search PATH,
12789 # but as the default location of the library.
12790 hardcode_minus_L=yes
12793 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12794 hardcode_libdir_separator=:
12795 hardcode_direct=yes
12796 export_dynamic_flag_spec='${wl}-E'
12798 # hardcode_minus_L: Not really in the search PATH,
12799 # but as the default location of the library.
12800 hardcode_minus_L=yes
12806 irix5* | irix6* | nonstopux*)
12807 if test "$GCC" = yes; then
12808 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'
12810 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'
12811 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12814 hardcode_libdir_separator=:
12815 link_all_deplibs=yes
12819 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12820 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12822 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12824 hardcode_libdir_flag_spec='-R$libdir'
12825 hardcode_direct=yes
12826 hardcode_shlibpath_var=no
12830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12831 hardcode_direct=yes
12832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12833 hardcode_libdir_separator=:
12834 hardcode_shlibpath_var=no
12838 hardcode_direct=yes
12839 hardcode_shlibpath_var=no
12840 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12841 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12842 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12843 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12844 export_dynamic_flag_spec='${wl}-E'
12847 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12848 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12849 hardcode_libdir_flag_spec='-R$libdir'
12852 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12853 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12860 hardcode_libdir_flag_spec='-L$libdir'
12861 hardcode_minus_L=yes
12862 allow_undefined_flag=unsupported
12863 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'
12864 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12868 if test "$GCC" = yes; then
12869 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12870 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'
12872 allow_undefined_flag=' -expect_unresolved \*'
12873 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'
12875 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12876 hardcode_libdir_separator=:
12879 osf4* | osf5*) # as osf3* with the addition of -msym flag
12880 if test "$GCC" = yes; then
12881 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12882 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'
12883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12885 allow_undefined_flag=' -expect_unresolved \*'
12886 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'
12887 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12888 $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'
12890 # Both c and cxx compiler support -rpath directly
12891 hardcode_libdir_flag_spec='-rpath $libdir'
12893 hardcode_libdir_separator=:
12897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12898 hardcode_shlibpath_var=no
12899 export_dynamic_flag_spec='${wl}-Bexport'
12900 runpath_var=LD_RUN_PATH
12901 hardcode_runpath_var=yes
12905 no_undefined_flag=' -z text'
12906 if test "$GCC" = yes; then
12907 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12908 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12909 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12911 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12912 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12913 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12915 hardcode_libdir_flag_spec='-R$libdir'
12916 hardcode_shlibpath_var=no
12918 solaris2.[0-5] | solaris2.[0-5].*) ;;
12919 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12920 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12922 link_all_deplibs=yes
12926 if test "x$host_vendor" = xsequent; then
12927 # Use $CC to link under sequent, because it throws in some extra .o
12928 # files that make .init and .fini sections work.
12929 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12931 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12933 hardcode_libdir_flag_spec='-L$libdir'
12934 hardcode_direct=yes
12935 hardcode_minus_L=yes
12936 hardcode_shlibpath_var=no
12940 case $host_vendor in
12942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12943 hardcode_direct=yes # is this really true???
12946 ## LD is ld it makes a PLAMLIB
12947 ## CC just makes a GrossModule.
12948 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12949 reload_cmds='$CC -r -o $output$reload_objs'
12953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12954 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12957 runpath_var='LD_RUN_PATH'
12958 hardcode_shlibpath_var=no
12962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12963 hardcode_shlibpath_var=no
12964 export_dynamic_flag_spec='-Bexport'
12968 if test -d /usr/nec; then
12969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12970 hardcode_shlibpath_var=no
12971 runpath_var=LD_RUN_PATH
12972 hardcode_runpath_var=yes
12978 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12979 hardcode_direct=yes
12980 hardcode_minus_L=no
12981 hardcode_shlibpath_var=no
12982 hardcode_runpath_var=yes
12983 runpath_var=LD_RUN_PATH
12986 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12987 no_undefined_flag='${wl}-z ${wl}text'
12988 if test "$GCC" = yes; then
12989 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12991 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12993 runpath_var='LD_RUN_PATH'
12994 hardcode_shlibpath_var=no
12998 no_undefined_flag=' -z text'
12999 # $CC -shared without GNU ld will not create a library from C++
13000 # object files and a static libstdc++, better avoid it by now
13001 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13002 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13003 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13004 hardcode_libdir_flag_spec=
13005 hardcode_shlibpath_var=no
13006 runpath_var='LD_RUN_PATH'
13010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13011 hardcode_libdir_flag_spec='-L$libdir'
13012 hardcode_shlibpath_var=no
13021 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13022 echo "${ECHO_T}$ld_shlibs" >&6
13023 test "$ld_shlibs" = no && can_build_shared=no
13025 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13026 if test "$GCC" = yes; then
13027 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13031 # Do we need to explicitly link libc?
13033 case "x$archive_cmds_need_lc" in
13035 # Assume -lc should be added
13036 archive_cmds_need_lc=yes
13038 if test "$enable_shared" = yes && test "$GCC" = yes; then
13039 case $archive_cmds in
13041 # FIXME: we may have to deal with multi-command sequences.
13044 # Test whether the compiler implicitly links with -lc since on some
13045 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13046 # to ld, don't add -lc before -lgcc.
13047 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13048 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13050 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13053 (eval $ac_compile) 2>&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } 2>conftest.err; then
13059 libobjs=conftest.$ac_objext
13061 wl=$lt_prog_compiler_wl
13067 lt_save_allow_undefined_flag=$allow_undefined_flag
13068 allow_undefined_flag=
13069 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13070 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }
13075 archive_cmds_need_lc=no
13077 archive_cmds_need_lc=yes
13079 allow_undefined_flag=$lt_save_allow_undefined_flag
13081 cat conftest.err 1>&5
13084 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13085 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13092 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13093 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13094 library_names_spec=
13095 libname_spec='lib$name'
13099 postuninstall_cmds=
13103 shlibpath_overrides_runpath=unknown
13105 dynamic_linker="$host_os ld.so"
13106 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13107 if test "$GCC" = yes; then
13108 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13109 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13110 # if the path contains ";" then we assume it to be the separator
13111 # otherwise default to the standard path separator (i.e. ":") - it is
13112 # assumed that no part of a normal pathname contains ";" but that should
13113 # okay in the real world where ";" in dirpaths is itself problematic.
13114 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13119 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13121 need_lib_prefix=unknown
13122 hardcode_into_libs=no
13124 # when you set need_version to no, make sure it does not cause -set_version
13125 # flags to be left without arguments
13126 need_version=unknown
13131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13132 shlibpath_var=LIBPATH
13134 # AIX 3 has no versioning support, so we append a major version to the name.
13135 soname_spec='${libname}${release}${shared_ext}$major'
13142 hardcode_into_libs=yes
13143 if test "$host_cpu" = ia64; then
13144 # AIX 5 supports IA64
13145 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13146 shlibpath_var=LD_LIBRARY_PATH
13148 # With GCC up to 2.95.x, collect2 would create an import file
13149 # for dependence libraries. The import file would start with
13150 # the line `#! .'. This would cause the generated library to
13151 # depend on `.', always an invalid library. This was fixed in
13152 # development snapshots of GCC prior to 3.0.
13154 aix4 | aix4.[01] | aix4.[01].*)
13155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13157 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13160 can_build_shared=no
13164 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13165 # soname into executable. Probably we can add versioning support to
13166 # collect2, so additional links can be useful in future.
13167 if test "$aix_use_runtimelinking" = yes; then
13168 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13169 # instead of lib<name>.a to let people know that these are not
13170 # typical AIX shared libraries.
13171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13173 # We preserve .a as extension for shared libraries through AIX4.2
13174 # and later when we are not doing run time linking.
13175 library_names_spec='${libname}${release}.a $libname.a'
13176 soname_spec='${libname}${release}${shared_ext}$major'
13178 shlibpath_var=LIBPATH
13183 library_names_spec='$libname.ixlibrary $libname.a'
13184 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13185 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'
13189 library_names_spec='${libname}${shared_ext}'
13190 dynamic_linker="$host_os ld.so"
13191 shlibpath_var=LIBRARY_PATH
13197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13198 soname_spec='${libname}${release}${shared_ext}$major'
13199 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13200 shlibpath_var=LD_LIBRARY_PATH
13201 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13202 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13203 # the default ld.so.conf also contains /usr/contrib/lib and
13204 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13205 # libtool to hard-code these into programs
13208 cygwin* | mingw* | pw32*)
13209 version_type=windows
13214 case $GCC,$host_os in
13215 yes,cygwin* | yes,mingw* | yes,pw32*)
13216 library_names_spec='$libname.dll.a'
13217 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13218 postinstall_cmds='base_file=`basename \${file}`~
13219 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13220 dldir=$destdir/`dirname \$dlpath`~
13221 test -d \$dldir || mkdir -p \$dldir~
13222 $install_prog $dir/$dlname \$dldir/$dlname'
13223 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13224 dlpath=$dir/\$dldll~
13226 shlibpath_overrides_runpath=yes
13230 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13231 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13232 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13235 # MinGW DLLs use traditional 'lib' prefix
13236 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13237 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13238 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13239 # It is most probably a Windows format PATH printed by
13240 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13241 # path with ; separators, and with drive letters. We can handle the
13242 # drive letters (cygwin fileutils understands them), so leave them,
13243 # especially as we might pass files found there to a mingw objdump,
13244 # which wouldn't understand a cygwinified path. Ahh.
13245 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13247 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13251 # pw32 DLLs use 'pw' prefix rather than 'lib'
13252 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13258 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13261 dynamic_linker='Win32 ld.exe'
13262 # FIXME: first we should search . and the directory the executable is in
13266 darwin* | rhapsody*)
13267 dynamic_linker="$host_os dyld"
13268 version_type=darwin
13271 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13272 soname_spec='${libname}${release}${major}$shared_ext'
13273 shlibpath_overrides_runpath=yes
13274 shlibpath_var=DYLD_LIBRARY_PATH
13275 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13276 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13277 if test "$GCC" = yes; then
13278 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"`
13280 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13282 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13290 soname_spec='${libname}${release}${shared_ext}$major'
13291 shlibpath_var=LD_LIBRARY_PATH
13302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13303 soname_spec='${libname}${release}${shared_ext}$major'
13304 shlibpath_var=LD_LIBRARY_PATH
13305 shlibpath_overrides_runpath=no
13306 hardcode_into_libs=yes
13307 dynamic_linker='GNU ld.so'
13311 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13312 version_type=freebsd-$objformat
13313 case $version_type in
13315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13324 shlibpath_var=LD_LIBRARY_PATH
13327 shlibpath_overrides_runpath=yes
13329 freebsd3.01* | freebsdelf3.01*)
13330 shlibpath_overrides_runpath=yes
13331 hardcode_into_libs=yes
13334 shlibpath_overrides_runpath=no
13335 hardcode_into_libs=yes
13344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13345 soname_spec='${libname}${release}${shared_ext}$major'
13346 shlibpath_var=LD_LIBRARY_PATH
13347 hardcode_into_libs=yes
13350 hpux9* | hpux10* | hpux11*)
13351 # Give a soname corresponding to the major version so that dld.sl refuses to
13352 # link against other versions.
13356 case "$host_cpu" in
13359 hardcode_into_libs=yes
13360 dynamic_linker="$host_os dld.so"
13361 shlibpath_var=LD_LIBRARY_PATH
13362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13364 soname_spec='${libname}${release}${shared_ext}$major'
13365 if test "X$HPUX_IA64_MODE" = X32; then
13366 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13368 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13374 hardcode_into_libs=yes
13375 dynamic_linker="$host_os dld.sl"
13376 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13379 soname_spec='${libname}${release}${shared_ext}$major'
13380 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13385 dynamic_linker="$host_os dld.sl"
13386 shlibpath_var=SHLIB_PATH
13387 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13389 soname_spec='${libname}${release}${shared_ext}$major'
13392 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13393 postinstall_cmds='chmod 555 $lib'
13396 irix5* | irix6* | nonstopux*)
13398 nonstopux*) version_type=nonstopux ;;
13400 if test "$lt_cv_prog_gnu_ld" = yes; then
13408 soname_spec='${libname}${release}${shared_ext}$major'
13409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13411 irix5* | nonstopux*)
13412 libsuff= shlibsuff=
13415 case $LD in # libtool.m4 will add one of these switches to LD
13416 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13417 libsuff= shlibsuff= libmagic=32-bit;;
13418 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13419 libsuff=32 shlibsuff=N32 libmagic=N32;;
13420 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13421 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13422 *) libsuff= shlibsuff= libmagic=never-match;;
13426 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13427 shlibpath_overrides_runpath=no
13428 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13429 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13430 hardcode_into_libs=yes
13433 # No shared lib support for Linux oldld, aout, or coff.
13434 linux*oldld* | linux*aout* | linux*coff*)
13438 # This must be Linux ELF.
13443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13444 soname_spec='${libname}${release}${shared_ext}$major'
13445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13446 shlibpath_var=LD_LIBRARY_PATH
13447 shlibpath_overrides_runpath=no
13448 # This implies no fast_install, which is unacceptable.
13449 # Some rework will be needed to allow for fast_install
13450 # before this can be enabled.
13451 hardcode_into_libs=yes
13453 # Append ld.so.conf contents to the search path
13454 if test -f /etc/ld.so.conf; then
13455 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13456 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13459 # We used to test for /lib/ld.so.1 and disable shared libraries on
13460 # powerpc, because MkLinux only supported shared libraries with the
13461 # GNU dynamic linker. Since this was broken with cross compilers,
13462 # most powerpc-linux boxes support dynamic linking these days and
13463 # people can always --disable-shared, the test was removed, and we
13464 # assume the GNU/Linux dynamic linker is in use.
13465 dynamic_linker='GNU/Linux ld.so'
13472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13473 soname_spec='${libname}${release}${shared_ext}$major'
13474 shlibpath_var=LD_LIBRARY_PATH
13475 shlibpath_overrides_runpath=no
13476 hardcode_into_libs=yes
13477 dynamic_linker='GNU ld.so'
13484 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13487 dynamic_linker='NetBSD (a.out) ld.so'
13489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13490 soname_spec='${libname}${release}${shared_ext}$major'
13491 dynamic_linker='NetBSD ld.elf_so'
13493 shlibpath_var=LD_LIBRARY_PATH
13494 shlibpath_overrides_runpath=yes
13495 hardcode_into_libs=yes
13500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13501 shlibpath_var=LD_LIBRARY_PATH
13502 shlibpath_overrides_runpath=yes
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
13519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13521 shlibpath_var=LD_LIBRARY_PATH
13522 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13524 openbsd2.[89] | openbsd2.[89].*)
13525 shlibpath_overrides_runpath=no
13528 shlibpath_overrides_runpath=yes
13532 shlibpath_overrides_runpath=yes
13537 libname_spec='$name'
13540 library_names_spec='$libname${shared_ext} $libname.a'
13541 dynamic_linker='OS/2 ld.exe'
13542 shlibpath_var=LIBPATH
13545 osf3* | osf4* | osf5*)
13549 soname_spec='${libname}${release}${shared_ext}$major'
13550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13551 shlibpath_var=LD_LIBRARY_PATH
13552 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13553 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13558 soname_spec='${libname}${release}${shared_ext}$major'
13559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13560 shlibpath_var=LD_LIBRARY_PATH
13567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13568 soname_spec='${libname}${release}${shared_ext}$major'
13569 shlibpath_var=LD_LIBRARY_PATH
13570 shlibpath_overrides_runpath=yes
13571 hardcode_into_libs=yes
13572 # ldd complains unless libraries are executable
13573 postinstall_cmds='chmod +x $lib'
13578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13579 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13580 shlibpath_var=LD_LIBRARY_PATH
13581 shlibpath_overrides_runpath=yes
13582 if test "$with_gnu_ld" = yes; then
13588 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13591 soname_spec='${libname}${release}${shared_ext}$major'
13592 shlibpath_var=LD_LIBRARY_PATH
13593 case $host_vendor in
13595 shlibpath_overrides_runpath=no
13597 export_dynamic_flag_spec='${wl}-Blargedynsym'
13598 runpath_var=LD_RUN_PATH
13606 shlibpath_overrides_runpath=no
13607 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13613 if test -d /usr/nec ;then
13615 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13616 soname_spec='$libname${shared_ext}.$major'
13617 shlibpath_var=LD_LIBRARY_PATH
13623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13624 soname_spec='${libname}${release}${shared_ext}$major'
13625 shlibpath_var=LD_LIBRARY_PATH
13632 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13633 echo "${ECHO_T}$dynamic_linker" >&6
13634 test "$dynamic_linker" = no && can_build_shared=no
13636 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13637 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13639 if test -n "$hardcode_libdir_flag_spec" || \
13640 test -n "$runpath_var" || \
13641 test "X$hardcode_automatic" = "Xyes" ; then
13643 # We can hardcode non-existant directories.
13644 if test "$hardcode_direct" != no &&
13645 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13646 # have to relink, otherwise we might link with an installed library
13647 # when we should be linking with a yet-to-be-installed one
13648 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13649 test "$hardcode_minus_L" != no; then
13650 # Linking always hardcodes the temporary library directory.
13651 hardcode_action=relink
13653 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13654 hardcode_action=immediate
13657 # We cannot hardcode anything, or else we can only hardcode existing
13659 hardcode_action=unsupported
13661 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13662 echo "${ECHO_T}$hardcode_action" >&6
13664 if test "$hardcode_action" = relink; then
13665 # Fast installation is not supported
13666 enable_fast_install=no
13667 elif test "$shlibpath_overrides_runpath" = yes ||
13668 test "$enable_shared" = no; then
13669 # Fast installation is not necessary
13670 enable_fast_install=needless
13675 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13676 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13677 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13678 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13679 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13680 echo "$as_me:$LINENO: result: yes" >&5
13681 echo "${ECHO_T}yes" >&6
13683 # FIXME - insert some real tests, host_os isn't really good enough
13686 if test -n "$STRIP" ; then
13687 striplib="$STRIP -x"
13688 echo "$as_me:$LINENO: result: yes" >&5
13689 echo "${ECHO_T}yes" >&6
13691 echo "$as_me:$LINENO: result: no" >&5
13692 echo "${ECHO_T}no" >&6
13696 echo "$as_me:$LINENO: result: no" >&5
13697 echo "${ECHO_T}no" >&6
13702 if test "x$enable_dlopen" != xyes; then
13703 enable_dlopen=unknown
13704 enable_dlopen_self=unknown
13705 enable_dlopen_self_static=unknown
13712 lt_cv_dlopen="load_add_on"
13714 lt_cv_dlopen_self=yes
13718 lt_cv_dlopen="LoadLibrary"
13723 lt_cv_dlopen="dlopen"
13728 # if libdl is installed we need to link against it
13729 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13730 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13731 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13734 ac_check_lib_save_LIBS=$LIBS
13736 cat >conftest.$ac_ext <<_ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h. */
13743 /* Override any gcc2 internal prototype to avoid an error. */
13747 /* We use char because int might match the return type of a gcc2
13748 builtin and then its argument prototype would still apply. */
13758 rm -f conftest.$ac_objext conftest$ac_exeext
13759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13760 (eval $ac_link) 2>conftest.er1
13762 grep -v '^ *+' conftest.er1 >conftest.err
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try='test -z "$ac_c_werror_flag"
13768 || test ! -s conftest.err'
13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770 (eval $ac_try) 2>&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; } &&
13774 { ac_try='test -s conftest$ac_exeext'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13780 ac_cv_lib_dl_dlopen=yes
13782 echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13785 ac_cv_lib_dl_dlopen=no
13787 rm -f conftest.err conftest.$ac_objext \
13788 conftest$ac_exeext conftest.$ac_ext
13789 LIBS=$ac_check_lib_save_LIBS
13791 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13792 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13793 if test $ac_cv_lib_dl_dlopen = yes; then
13794 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13797 lt_cv_dlopen="dyld"
13799 lt_cv_dlopen_self=yes
13806 echo "$as_me:$LINENO: checking for shl_load" >&5
13807 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13808 if test "${ac_cv_func_shl_load+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13811 cat >conftest.$ac_ext <<_ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h. */
13817 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13819 #define shl_load innocuous_shl_load
13821 /* System header to define __stub macros and hopefully few prototypes,
13822 which can conflict with char shl_load (); below.
13823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13824 <limits.h> exists even on freestanding compilers. */
13827 # include <limits.h>
13829 # include <assert.h>
13834 /* Override any gcc2 internal prototype to avoid an error. */
13839 /* We use char because int might match the return type of a gcc2
13840 builtin and then its argument prototype would still apply. */
13842 /* The GNU C library defines this for functions which it implements
13843 to always fail with ENOSYS. Some functions are actually named
13844 something starting with __ and the normal name is an alias. */
13845 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13848 char (*f) () = shl_load;
13857 return f != shl_load;
13862 rm -f conftest.$ac_objext conftest$ac_exeext
13863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13864 (eval $ac_link) 2>conftest.er1
13866 grep -v '^ *+' conftest.er1 >conftest.err
13868 cat conftest.err >&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } &&
13871 { ac_try='test -z "$ac_c_werror_flag"
13872 || test ! -s conftest.err'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; } &&
13878 { ac_try='test -s conftest$ac_exeext'
13879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; }; then
13884 ac_cv_func_shl_load=yes
13886 echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.$ac_ext >&5
13889 ac_cv_func_shl_load=no
13891 rm -f conftest.err conftest.$ac_objext \
13892 conftest$ac_exeext conftest.$ac_ext
13894 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13895 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13896 if test $ac_cv_func_shl_load = yes; then
13897 lt_cv_dlopen="shl_load"
13899 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13900 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13901 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 ac_check_lib_save_LIBS=$LIBS
13906 cat >conftest.$ac_ext <<_ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13913 /* Override any gcc2 internal prototype to avoid an error. */
13917 /* We use char because int might match the return type of a gcc2
13918 builtin and then its argument prototype would still apply. */
13928 rm -f conftest.$ac_objext conftest$ac_exeext
13929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13930 (eval $ac_link) 2>conftest.er1
13932 grep -v '^ *+' conftest.er1 >conftest.err
13934 cat conftest.err >&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } &&
13937 { ac_try='test -z "$ac_c_werror_flag"
13938 || test ! -s conftest.err'
13939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13940 (eval $ac_try) 2>&5
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); }; } &&
13944 { ac_try='test -s conftest$ac_exeext'
13945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; }; then
13950 ac_cv_lib_dld_shl_load=yes
13952 echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13955 ac_cv_lib_dld_shl_load=no
13957 rm -f conftest.err conftest.$ac_objext \
13958 conftest$ac_exeext conftest.$ac_ext
13959 LIBS=$ac_check_lib_save_LIBS
13961 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13962 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13963 if test $ac_cv_lib_dld_shl_load = yes; then
13964 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13966 echo "$as_me:$LINENO: checking for dlopen" >&5
13967 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13968 if test "${ac_cv_func_dlopen+set}" = set; then
13969 echo $ECHO_N "(cached) $ECHO_C" >&6
13971 cat >conftest.$ac_ext <<_ACEOF
13974 cat confdefs.h >>conftest.$ac_ext
13975 cat >>conftest.$ac_ext <<_ACEOF
13976 /* end confdefs.h. */
13977 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13979 #define dlopen innocuous_dlopen
13981 /* System header to define __stub macros and hopefully few prototypes,
13982 which can conflict with char dlopen (); below.
13983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13984 <limits.h> exists even on freestanding compilers. */
13987 # include <limits.h>
13989 # include <assert.h>
13994 /* Override any gcc2 internal prototype to avoid an error. */
13999 /* We use char because int might match the return type of a gcc2
14000 builtin and then its argument prototype would still apply. */
14002 /* The GNU C library defines this for functions which it implements
14003 to always fail with ENOSYS. Some functions are actually named
14004 something starting with __ and the normal name is an alias. */
14005 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14008 char (*f) () = dlopen;
14017 return f != dlopen;
14022 rm -f conftest.$ac_objext conftest$ac_exeext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14024 (eval $ac_link) 2>conftest.er1
14026 grep -v '^ *+' conftest.er1 >conftest.err
14028 cat conftest.err >&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try='test -z "$ac_c_werror_flag"
14032 || test ! -s conftest.err'
14033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034 (eval $ac_try) 2>&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; } &&
14038 { ac_try='test -s conftest$ac_exeext'
14039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 (eval $ac_try) 2>&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; }; then
14044 ac_cv_func_dlopen=yes
14046 echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14049 ac_cv_func_dlopen=no
14051 rm -f conftest.err conftest.$ac_objext \
14052 conftest$ac_exeext conftest.$ac_ext
14054 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14055 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14056 if test $ac_cv_func_dlopen = yes; then
14057 lt_cv_dlopen="dlopen"
14059 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14060 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14061 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14064 ac_check_lib_save_LIBS=$LIBS
14066 cat >conftest.$ac_ext <<_ACEOF
14069 cat confdefs.h >>conftest.$ac_ext
14070 cat >>conftest.$ac_ext <<_ACEOF
14071 /* end confdefs.h. */
14073 /* Override any gcc2 internal prototype to avoid an error. */
14077 /* We use char because int might match the return type of a gcc2
14078 builtin and then its argument prototype would still apply. */
14088 rm -f conftest.$ac_objext conftest$ac_exeext
14089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14090 (eval $ac_link) 2>conftest.er1
14092 grep -v '^ *+' conftest.er1 >conftest.err
14094 cat conftest.err >&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } &&
14097 { ac_try='test -z "$ac_c_werror_flag"
14098 || test ! -s conftest.err'
14099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100 (eval $ac_try) 2>&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; } &&
14104 { ac_try='test -s conftest$ac_exeext'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; }; then
14110 ac_cv_lib_dl_dlopen=yes
14112 echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.$ac_ext >&5
14115 ac_cv_lib_dl_dlopen=no
14117 rm -f conftest.err conftest.$ac_objext \
14118 conftest$ac_exeext conftest.$ac_ext
14119 LIBS=$ac_check_lib_save_LIBS
14121 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14122 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14123 if test $ac_cv_lib_dl_dlopen = yes; then
14124 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14126 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14127 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14128 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14131 ac_check_lib_save_LIBS=$LIBS
14132 LIBS="-lsvld $LIBS"
14133 cat >conftest.$ac_ext <<_ACEOF
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14140 /* Override any gcc2 internal prototype to avoid an error. */
14144 /* We use char because int might match the return type of a gcc2
14145 builtin and then its argument prototype would still apply. */
14155 rm -f conftest.$ac_objext conftest$ac_exeext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14157 (eval $ac_link) 2>conftest.er1
14159 grep -v '^ *+' conftest.er1 >conftest.err
14161 cat conftest.err >&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } &&
14164 { ac_try='test -z "$ac_c_werror_flag"
14165 || test ! -s conftest.err'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; } &&
14171 { ac_try='test -s conftest$ac_exeext'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }; then
14177 ac_cv_lib_svld_dlopen=yes
14179 echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14182 ac_cv_lib_svld_dlopen=no
14184 rm -f conftest.err conftest.$ac_objext \
14185 conftest$ac_exeext conftest.$ac_ext
14186 LIBS=$ac_check_lib_save_LIBS
14188 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14189 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14190 if test $ac_cv_lib_svld_dlopen = yes; then
14191 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14193 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14194 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14195 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14198 ac_check_lib_save_LIBS=$LIBS
14200 cat >conftest.$ac_ext <<_ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h. */
14207 /* Override any gcc2 internal prototype to avoid an error. */
14211 /* We use char because int might match the return type of a gcc2
14212 builtin and then its argument prototype would still apply. */
14222 rm -f conftest.$ac_objext conftest$ac_exeext
14223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14224 (eval $ac_link) 2>conftest.er1
14226 grep -v '^ *+' conftest.er1 >conftest.err
14228 cat conftest.err >&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } &&
14231 { ac_try='test -z "$ac_c_werror_flag"
14232 || test ! -s conftest.err'
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; } &&
14238 { ac_try='test -s conftest$ac_exeext'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; }; then
14244 ac_cv_lib_dld_dld_link=yes
14246 echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14249 ac_cv_lib_dld_dld_link=no
14251 rm -f conftest.err conftest.$ac_objext \
14252 conftest$ac_exeext conftest.$ac_ext
14253 LIBS=$ac_check_lib_save_LIBS
14255 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14256 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14257 if test $ac_cv_lib_dld_dld_link = yes; then
14258 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14279 if test "x$lt_cv_dlopen" != xno; then
14285 case $lt_cv_dlopen in
14287 save_CPPFLAGS="$CPPFLAGS"
14288 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14290 save_LDFLAGS="$LDFLAGS"
14291 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14294 LIBS="$lt_cv_dlopen_libs $LIBS"
14296 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14297 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14298 if test "${lt_cv_dlopen_self+set}" = set; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14301 if test "$cross_compiling" = yes; then :
14302 lt_cv_dlopen_self=cross
14304 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14305 lt_status=$lt_dlunknown
14306 cat > conftest.$ac_ext <<EOF
14307 #line 14307 "configure"
14308 #include "confdefs.h"
14317 # define LT_DLGLOBAL RTLD_GLOBAL
14320 # define LT_DLGLOBAL DL_GLOBAL
14322 # define LT_DLGLOBAL 0
14326 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14327 find out it does not work in some platform. */
14328 #ifndef LT_DLLAZY_OR_NOW
14330 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14333 # define LT_DLLAZY_OR_NOW DL_LAZY
14336 # define LT_DLLAZY_OR_NOW RTLD_NOW
14339 # define LT_DLLAZY_OR_NOW DL_NOW
14341 # define LT_DLLAZY_OR_NOW 0
14349 extern "C" void exit (int);
14352 void fnord() { int i=42;}
14355 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14356 int status = $lt_dlunknown;
14360 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14361 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14362 /* dlclose (self); */
14368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14369 (eval $ac_link) 2>&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14373 (./conftest; exit; ) 2>/dev/null
14375 case x$lt_status in
14376 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14377 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14378 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14381 # compilation failed
14382 lt_cv_dlopen_self=no
14389 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14390 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14392 if test "x$lt_cv_dlopen_self" = xyes; then
14393 LDFLAGS="$LDFLAGS $link_static_flag"
14394 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14395 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14396 if test "${lt_cv_dlopen_self_static+set}" = set; then
14397 echo $ECHO_N "(cached) $ECHO_C" >&6
14399 if test "$cross_compiling" = yes; then :
14400 lt_cv_dlopen_self_static=cross
14402 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14403 lt_status=$lt_dlunknown
14404 cat > conftest.$ac_ext <<EOF
14405 #line 14405 "configure"
14406 #include "confdefs.h"
14415 # define LT_DLGLOBAL RTLD_GLOBAL
14418 # define LT_DLGLOBAL DL_GLOBAL
14420 # define LT_DLGLOBAL 0
14424 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14425 find out it does not work in some platform. */
14426 #ifndef LT_DLLAZY_OR_NOW
14428 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14431 # define LT_DLLAZY_OR_NOW DL_LAZY
14434 # define LT_DLLAZY_OR_NOW RTLD_NOW
14437 # define LT_DLLAZY_OR_NOW DL_NOW
14439 # define LT_DLLAZY_OR_NOW 0
14447 extern "C" void exit (int);
14450 void fnord() { int i=42;}
14453 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14454 int status = $lt_dlunknown;
14458 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14459 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14460 /* dlclose (self); */
14466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14467 (eval $ac_link) 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14471 (./conftest; exit; ) 2>/dev/null
14473 case x$lt_status in
14474 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14475 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14476 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14479 # compilation failed
14480 lt_cv_dlopen_self_static=no
14487 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14488 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14491 CPPFLAGS="$save_CPPFLAGS"
14492 LDFLAGS="$save_LDFLAGS"
14497 case $lt_cv_dlopen_self in
14498 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14499 *) enable_dlopen_self=unknown ;;
14502 case $lt_cv_dlopen_self_static in
14503 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14504 *) enable_dlopen_self_static=unknown ;;
14509 # Report which librarie types wil actually be built
14510 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14511 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14512 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14513 echo "${ECHO_T}$can_build_shared" >&6
14515 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14516 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14517 test "$can_build_shared" = "no" && enable_shared=no
14519 # On AIX, shared libraries and static libraries use the same namespace, and
14520 # are all built from PIC.
14523 test "$enable_shared" = yes && enable_static=no
14524 if test -n "$RANLIB"; then
14525 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14526 postinstall_cmds='$RANLIB $lib'
14531 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14532 test "$enable_shared" = yes && enable_static=no
14536 echo "$as_me:$LINENO: result: $enable_shared" >&5
14537 echo "${ECHO_T}$enable_shared" >&6
14539 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14540 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14541 # Make sure either enable_shared or enable_static is yes.
14542 test "$enable_shared" = yes || enable_static=yes
14543 echo "$as_me:$LINENO: result: $enable_static" >&5
14544 echo "${ECHO_T}$enable_static" >&6
14546 # The else clause should only fire when bootstrapping the
14547 # libtool distribution, otherwise you forgot to ship ltmain.sh
14548 # with your package, and you will get complaints that there are
14549 # no rules to generate ltmain.sh.
14550 if test -f "$ltmain"; then
14551 # See if we are running on zsh, and set the options which allow our commands through
14552 # without removal of \ escapes.
14553 if test -n "${ZSH_VERSION+set}" ; then
14554 setopt NO_GLOB_SUBST
14556 # Now quote all the things that may contain metacharacters while being
14557 # careful not to overquote the AC_SUBSTed values. We take copies of the
14558 # variables and quote the copies for generation of the libtool script.
14559 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14561 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14562 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14563 deplibs_check_method reload_flag reload_cmds need_locks \
14564 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14565 lt_cv_sys_global_symbol_to_c_name_address \
14566 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14567 old_postinstall_cmds old_postuninstall_cmds \
14571 lt_prog_compiler_wl \
14572 lt_prog_compiler_pic \
14573 lt_prog_compiler_static \
14574 lt_prog_compiler_no_builtin_flag \
14575 export_dynamic_flag_spec \
14576 thread_safe_flag_spec \
14577 whole_archive_flag_spec \
14578 enable_shared_with_static_runtimes \
14580 old_archive_from_new_cmds \
14585 compiler_lib_search_path \
14587 archive_expsym_cmds \
14589 postuninstall_cmds \
14590 old_archive_from_expsyms_cmds \
14591 allow_undefined_flag \
14592 no_undefined_flag \
14593 export_symbols_cmds \
14594 hardcode_libdir_flag_spec \
14595 hardcode_libdir_flag_spec_ld \
14596 hardcode_libdir_separator \
14597 hardcode_automatic \
14599 module_expsym_cmds \
14600 lt_cv_prog_compiler_c_o \
14602 include_expsyms; do
14605 old_archive_cmds | \
14606 old_archive_from_new_cmds | \
14608 archive_expsym_cmds | \
14610 module_expsym_cmds | \
14611 old_archive_from_expsyms_cmds | \
14612 export_symbols_cmds | \
14613 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14614 postinstall_cmds | postuninstall_cmds | \
14615 old_postinstall_cmds | old_postuninstall_cmds | \
14616 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14617 # Double-quote double-evaled strings.
14618 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14621 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14627 *'\$0 --fallback-echo"')
14628 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14632 cfgfile="${ofile}T"
14633 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14635 { echo "$as_me:$LINENO: creating $ofile" >&5
14636 echo "$as_me: creating $ofile" >&6;}
14638 cat <<__EOF__ >> "$cfgfile"
14641 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14642 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14643 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14645 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14646 # Free Software Foundation, Inc.
14648 # This file is part of GNU Libtool:
14649 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14651 # This program is free software; you can redistribute it and/or modify
14652 # it under the terms of the GNU General Public License as published by
14653 # the Free Software Foundation; either version 2 of the License, or
14654 # (at your option) any later version.
14656 # This program is distributed in the hope that it will be useful, but
14657 # WITHOUT ANY WARRANTY; without even the implied warranty of
14658 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14659 # General Public License for more details.
14661 # You should have received a copy of the GNU General Public License
14662 # along with this program; if not, write to the Free Software
14663 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14665 # As a special exception to the GNU General Public License, if you
14666 # distribute this file as part of a program that contains a
14667 # configuration script generated by Autoconf, you may include it under
14668 # the same distribution terms that you use for the rest of that program.
14670 # A sed program that does not truncate output.
14673 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14674 Xsed="$SED -e s/^X//"
14676 # The HP-UX ksh and POSIX shell print the target directory to stdout
14677 # if CDPATH is set.
14678 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14680 # The names of the tagged configurations supported by this script.
14683 # ### BEGIN LIBTOOL CONFIG
14685 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14687 # Shell to use when invoking shell scripts.
14690 # Whether or not to build shared libraries.
14691 build_libtool_libs=$enable_shared
14693 # Whether or not to build static libraries.
14694 build_old_libs=$enable_static
14696 # Whether or not to add -lc for building shared libraries.
14697 build_libtool_need_lc=$archive_cmds_need_lc
14699 # Whether or not to disallow shared libs when runtime libs are static
14700 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14702 # Whether or not to optimize for fast installation.
14703 fast_install=$enable_fast_install
14706 host_alias=$host_alias
14709 # An echo program that does not interpret backslashes.
14714 AR_FLAGS=$lt_AR_FLAGS
14719 # A language-specific compiler.
14722 # Is the compiler the GNU C compiler?
14728 # The linker used to build libraries.
14731 # Whether we need hard or soft links.
14734 # A BSD-compatible nm program.
14737 # A symbol stripping program
14740 # Used to examine libraries when file_magic_cmd begins "file"
14741 MAGIC_CMD=$MAGIC_CMD
14743 # Used on cygwin: DLL creation program.
14746 # Used on cygwin: object dumper.
14749 # Used on cygwin: assembler.
14752 # The name of the directory that contains temporary libtool files.
14755 # How to create reloadable object files.
14756 reload_flag=$lt_reload_flag
14757 reload_cmds=$lt_reload_cmds
14759 # How to pass a linker flag through the compiler.
14760 wl=$lt_lt_prog_compiler_wl
14762 # Object file suffix (normally "o").
14763 objext="$ac_objext"
14765 # Old archive suffix (normally "a").
14768 # Shared library suffix (normally ".so").
14769 shrext_cmds='$shrext_cmds'
14771 # Executable file suffix (normally "").
14774 # Additional compiler flags for building library objects.
14775 pic_flag=$lt_lt_prog_compiler_pic
14778 # What is the maximum length of a command?
14779 max_cmd_len=$lt_cv_sys_max_cmd_len
14781 # Does compiler simultaneously support -c and -o options?
14782 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14784 # Must we lock files when doing compilation ?
14785 need_locks=$lt_need_locks
14787 # Do we need the lib prefix for modules?
14788 need_lib_prefix=$need_lib_prefix
14790 # Do we need a version for libraries?
14791 need_version=$need_version
14793 # Whether dlopen is supported.
14794 dlopen_support=$enable_dlopen
14796 # Whether dlopen of programs is supported.
14797 dlopen_self=$enable_dlopen_self
14799 # Whether dlopen of statically linked programs is supported.
14800 dlopen_self_static=$enable_dlopen_self_static
14802 # Compiler flag to prevent dynamic linking.
14803 link_static_flag=$lt_lt_prog_compiler_static
14805 # Compiler flag to turn off builtin functions.
14806 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14808 # Compiler flag to allow reflexive dlopens.
14809 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14811 # Compiler flag to generate shared objects directly from archives.
14812 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14814 # Compiler flag to generate thread-safe objects.
14815 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14817 # Library versioning type.
14818 version_type=$version_type
14820 # Format of library name prefix.
14821 libname_spec=$lt_libname_spec
14823 # List of archive names. First name is the real one, the rest are links.
14824 # The last name is the one that the linker finds with -lNAME.
14825 library_names_spec=$lt_library_names_spec
14827 # The coded name of the library, if different from the real name.
14828 soname_spec=$lt_soname_spec
14830 # Commands used to build and install an old-style archive.
14832 old_archive_cmds=$lt_old_archive_cmds
14833 old_postinstall_cmds=$lt_old_postinstall_cmds
14834 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14836 # Create an old-style archive from a shared archive.
14837 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14839 # Create a temporary old-style archive to link instead of a shared archive.
14840 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14842 # Commands used to build and install a shared archive.
14843 archive_cmds=$lt_archive_cmds
14844 archive_expsym_cmds=$lt_archive_expsym_cmds
14845 postinstall_cmds=$lt_postinstall_cmds
14846 postuninstall_cmds=$lt_postuninstall_cmds
14848 # Commands used to build a loadable module (assumed same as above if empty)
14849 module_cmds=$lt_module_cmds
14850 module_expsym_cmds=$lt_module_expsym_cmds
14852 # Commands to strip libraries.
14853 old_striplib=$lt_old_striplib
14854 striplib=$lt_striplib
14856 # Dependencies to place before the objects being linked to create a
14858 predep_objects=$lt_predep_objects
14860 # Dependencies to place after the objects being linked to create a
14862 postdep_objects=$lt_postdep_objects
14864 # Dependencies to place before the objects being linked to create a
14866 predeps=$lt_predeps
14868 # Dependencies to place after the objects being linked to create a
14870 postdeps=$lt_postdeps
14872 # The library search path used internally by the compiler when linking
14873 # a shared library.
14874 compiler_lib_search_path=$lt_compiler_lib_search_path
14876 # Method to check whether dependent libraries are shared objects.
14877 deplibs_check_method=$lt_deplibs_check_method
14879 # Command to use when deplibs_check_method == file_magic.
14880 file_magic_cmd=$lt_file_magic_cmd
14882 # Flag that allows shared libraries with undefined symbols to be built.
14883 allow_undefined_flag=$lt_allow_undefined_flag
14885 # Flag that forces no undefined symbols.
14886 no_undefined_flag=$lt_no_undefined_flag
14888 # Commands used to finish a libtool library installation in a directory.
14889 finish_cmds=$lt_finish_cmds
14891 # Same as above, but a single script fragment to be evaled but not shown.
14892 finish_eval=$lt_finish_eval
14894 # Take the output of nm and produce a listing of raw symbols and C names.
14895 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14897 # Transform the output of nm in a proper C declaration
14898 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14900 # Transform the output of nm in a C name address pair
14901 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14903 # This is the shared library runtime path variable.
14904 runpath_var=$runpath_var
14906 # This is the shared library path variable.
14907 shlibpath_var=$shlibpath_var
14909 # Is shlibpath searched before the hard-coded library search path?
14910 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14912 # How to hardcode a shared library path into an executable.
14913 hardcode_action=$hardcode_action
14915 # Whether we should hardcode library paths into libraries.
14916 hardcode_into_libs=$hardcode_into_libs
14918 # Flag to hardcode \$libdir into a binary during linking.
14919 # This must work even if \$libdir does not exist.
14920 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14922 # If ld is used when linking, flag to hardcode \$libdir into
14923 # a binary during linking. This must work even if \$libdir does
14925 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14927 # Whether we need a single -rpath flag with a separated argument.
14928 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14930 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14931 # resulting binary.
14932 hardcode_direct=$hardcode_direct
14934 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14935 # resulting binary.
14936 hardcode_minus_L=$hardcode_minus_L
14938 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14939 # the resulting binary.
14940 hardcode_shlibpath_var=$hardcode_shlibpath_var
14942 # Set to yes if building a shared library automatically hardcodes DIR into the library
14943 # and all subsequent libraries and executables linked against it.
14944 hardcode_automatic=$hardcode_automatic
14946 # Variables whose values should be saved in libtool wrapper scripts and
14947 # restored at relink time.
14948 variables_saved_for_relink="$variables_saved_for_relink"
14950 # Whether libtool must link a program against all its dependency libraries.
14951 link_all_deplibs=$link_all_deplibs
14953 # Compile-time system search path for libraries
14954 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14956 # Run-time system search path for libraries
14957 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14959 # Fix the shell variable \$srcfile for the compiler.
14960 fix_srcfile_path="$fix_srcfile_path"
14962 # Set to yes if exported symbols are required.
14963 always_export_symbols=$always_export_symbols
14965 # The commands to list exported symbols.
14966 export_symbols_cmds=$lt_export_symbols_cmds
14968 # The commands to extract the exported symbol list from a shared archive.
14969 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14971 # Symbols that should not be listed in the preloaded symbols.
14972 exclude_expsyms=$lt_exclude_expsyms
14974 # Symbols that must always be exported.
14975 include_expsyms=$lt_include_expsyms
14977 # ### END LIBTOOL CONFIG
14984 cat <<\EOF >> "$cfgfile"
14986 # AIX sometimes has problems with the GCC collect2 program. For some
14987 # reason, if we set the COLLECT_NAMES environment variable, the problems
14988 # vanish in a puff of smoke.
14989 if test "X${COLLECT_NAMES+set}" != Xset; then
14991 export COLLECT_NAMES
14997 # We use sed instead of cat because bash on DJGPP gets confused if
14998 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14999 # text mode, it properly converts lines to CR/LF. This bash problem
15000 # is reportedly fixed, but why not run on old versions too?
15001 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15003 mv -f "$cfgfile" "$ofile" || \
15004 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15008 # If there is no Makefile yet, we rely on a make rule to execute
15009 # `config.status --recheck' to rerun these tests and create the
15010 # libtool script then.
15011 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15012 if test -f "$ltmain_in"; then
15013 test -f Makefile && make "$ltmain"
15019 ac_cpp='$CPP $CPPFLAGS'
15020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15027 # Check whether --with-tags or --without-tags was given.
15028 if test "${with_tags+set}" = set; then
15029 withval="$with_tags"
15030 tagnames="$withval"
15033 if test -f "$ltmain" && test -n "$tagnames"; then
15034 if test ! -f "${ofile}"; then
15035 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15036 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15039 if test -z "$LTCC"; then
15040 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15041 if test -z "$LTCC"; then
15042 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15043 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15045 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15046 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15050 # Extract list of available tagged configurations in $ofile.
15051 # Note that this assumes the entire list is on one line.
15052 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15054 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15055 for tagname in $tagnames; do
15057 # Check whether tagname contains only valid characters
15058 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15060 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15061 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15062 { (exit 1); exit 1; }; }
15066 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15068 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15069 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15070 { (exit 1); exit 1; }; }
15073 # Update the list of available tags.
15074 if test -n "$tagname"; then
15075 echo appending configuration tag "$tagname" to $ofile
15079 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15080 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15081 (test "X$CXX" != "Xg++"))) ; then
15083 ac_cpp='$CXXCPP $CPPFLAGS'
15084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15091 archive_cmds_need_lc_CXX=no
15092 allow_undefined_flag_CXX=
15093 always_export_symbols_CXX=no
15094 archive_expsym_cmds_CXX=
15095 export_dynamic_flag_spec_CXX=
15096 hardcode_direct_CXX=no
15097 hardcode_libdir_flag_spec_CXX=
15098 hardcode_libdir_flag_spec_ld_CXX=
15099 hardcode_libdir_separator_CXX=
15100 hardcode_minus_L_CXX=no
15101 hardcode_automatic_CXX=no
15103 module_expsym_cmds_CXX=
15104 link_all_deplibs_CXX=unknown
15105 old_archive_cmds_CXX=$old_archive_cmds
15106 no_undefined_flag_CXX=
15107 whole_archive_flag_spec_CXX=
15108 enable_shared_with_static_runtimes_CXX=no
15110 # Dependencies to place before and after the object being linked:
15111 predep_objects_CXX=
15112 postdep_objects_CXX=
15115 compiler_lib_search_path_CXX=
15117 # Source file extension for C++ test sources.
15120 # Object file extension for compiled C++ test sources.
15124 # Code to be used in simple compile tests
15125 lt_simple_compile_test_code="int some_variable = 0;\n"
15127 # Code to be used in simple link tests
15128 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15130 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15132 # If no C compiler was specified, use CC.
15135 # Allow CC to be a program name with arguments.
15139 # Allow CC to be a program name with arguments.
15144 lt_save_with_gnu_ld=$with_gnu_ld
15145 lt_save_path_LD=$lt_cv_path_LD
15146 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15147 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15149 unset lt_cv_prog_gnu_ld
15151 if test -n "${lt_cv_path_LDCXX+set}"; then
15152 lt_cv_path_LD=$lt_cv_path_LDCXX
15154 unset lt_cv_path_LD
15156 test -z "${LDCXX+set}" || LD=$LDCXX
15160 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15162 # We don't want -fno-exception wen compiling C++ code, so set the
15163 # no_builtin_flag separately
15164 if test "$GXX" = yes; then
15165 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15167 lt_prog_compiler_no_builtin_flag_CXX=
15170 if test "$GXX" = yes; then
15171 # Set up default GNU C++ configuration
15174 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15175 if test "${with_gnu_ld+set}" = set; then
15176 withval="$with_gnu_ld"
15177 test "$withval" = no || with_gnu_ld=yes
15182 if test "$GCC" = yes; then
15183 # Check if gcc -print-prog-name=ld gives a path.
15184 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15185 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15188 # gcc leaves a trailing carriage return which upsets mingw
15189 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15191 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15194 # Accept absolute paths.
15196 re_direlt='/[^/][^/]*/\.\./'
15197 # Canonicalize the pathname of ld
15198 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15199 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15200 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15202 test -z "$LD" && LD="$ac_prog"
15205 # If it fails, then pretend we aren't using GCC.
15209 # If it is relative, then search for the first ld in PATH.
15210 with_gnu_ld=unknown
15213 elif test "$with_gnu_ld" = yes; then
15214 echo "$as_me:$LINENO: checking for GNU ld" >&5
15215 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15217 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15218 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15220 if test "${lt_cv_path_LD+set}" = set; then
15221 echo $ECHO_N "(cached) $ECHO_C" >&6
15223 if test -z "$LD"; then
15224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15225 for ac_dir in $PATH; do
15227 test -z "$ac_dir" && ac_dir=.
15228 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15229 lt_cv_path_LD="$ac_dir/$ac_prog"
15230 # Check to see if the program is GNU ld. I'd rather use --version,
15231 # but apparently some GNU ld's only accept -v.
15232 # Break only if it was the GNU/non-GNU ld that we prefer.
15233 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15234 *GNU* | *'with BFD'*)
15235 test "$with_gnu_ld" != no && break
15238 test "$with_gnu_ld" != yes && break
15245 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15249 LD="$lt_cv_path_LD"
15250 if test -n "$LD"; then
15251 echo "$as_me:$LINENO: result: $LD" >&5
15252 echo "${ECHO_T}$LD" >&6
15254 echo "$as_me:$LINENO: result: no" >&5
15255 echo "${ECHO_T}no" >&6
15257 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15258 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15259 { (exit 1); exit 1; }; }
15260 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15261 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15262 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15263 echo $ECHO_N "(cached) $ECHO_C" >&6
15265 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15266 case `$LD -v 2>&1 </dev/null` in
15267 *GNU* | *'with BFD'*)
15268 lt_cv_prog_gnu_ld=yes
15271 lt_cv_prog_gnu_ld=no
15275 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15276 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15277 with_gnu_ld=$lt_cv_prog_gnu_ld
15281 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15282 # archiving commands below assume that GNU ld is being used.
15283 if test "$with_gnu_ld" = yes; then
15284 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15285 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'
15287 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15288 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15290 # If archive_cmds runs LD, not CC, wlarc should be empty
15291 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15292 # investigate it a little bit more. (MM)
15295 # ancient GNU ld didn't support --whole-archive et. al.
15296 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15297 grep 'no-whole-archive' > /dev/null; then
15298 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15300 whole_archive_flag_spec_CXX=
15306 # A generic and very simple default shared library creation
15307 # command for GNU C++ for the case where it uses the native
15308 # linker, instead of GNU ld. If possible, this setting should
15309 # overridden to take advantage of the native linker features on
15310 # the platform it is being used on.
15311 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15314 # Commands to make compiler produce verbose output that lists
15315 # what "hidden" libraries, object files and flags are used when
15316 # linking a shared library.
15317 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15325 # PORTME: fill in a description of your system's C++ link characteristics
15326 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15327 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15331 # FIXME: insert proper C++ library support
15335 if test "$host_cpu" = ia64; then
15336 # On IA64, the linker does run time linking by default, so we don't
15337 # have to do anything special.
15338 aix_use_runtimelinking=no
15339 exp_sym_flag='-Bexport'
15342 aix_use_runtimelinking=no
15344 # Test if we are trying to use run time linking or normal
15345 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15346 # need to do runtime linking.
15347 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15348 for ld_flag in $LDFLAGS; do
15351 aix_use_runtimelinking=yes
15358 exp_sym_flag='-bexport'
15359 no_entry_flag='-bnoentry'
15362 # When large executables or shared objects are built, AIX ld can
15363 # have problems creating the table of contents. If linking a library
15364 # or program results in "error TOC overflow" add -mminimal-toc to
15365 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15366 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15368 archive_cmds_CXX=''
15369 hardcode_direct_CXX=yes
15370 hardcode_libdir_separator_CXX=':'
15371 link_all_deplibs_CXX=yes
15373 if test "$GXX" = yes; then
15374 case $host_os in aix4.012|aix4.012.*)
15375 # We only want to do this on AIX 4.2 and lower, the check
15376 # below for broken collect2 doesn't work under 4.3+
15377 collect2name=`${CC} -print-prog-name=collect2`
15378 if test -f "$collect2name" && \
15379 strings "$collect2name" | grep resolve_lib_name >/dev/null
15381 # We have reworked collect2
15382 hardcode_direct_CXX=yes
15384 # We have old collect2
15385 hardcode_direct_CXX=unsupported
15386 # It fails to find uninstalled libraries when the uninstalled
15387 # path is not listed in the libpath. Setting hardcode_minus_L
15388 # to unsupported forces relinking
15389 hardcode_minus_L_CXX=yes
15390 hardcode_libdir_flag_spec_CXX='-L$libdir'
15391 hardcode_libdir_separator_CXX=
15394 shared_flag='-shared'
15397 if test "$host_cpu" = ia64; then
15398 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15399 # chokes on -Wl,-G. The following line is correct:
15402 if test "$aix_use_runtimelinking" = yes; then
15403 shared_flag='${wl}-G'
15405 shared_flag='${wl}-bM:SRE'
15410 # It seems that -bexpall does not export symbols beginning with
15411 # underscore (_), so it is better to generate a list of symbols to export.
15412 always_export_symbols_CXX=yes
15413 if test "$aix_use_runtimelinking" = yes; then
15414 # Warning - without using the other runtime loading flags (-brtl),
15415 # -berok will link without error, but may produce a broken library.
15416 allow_undefined_flag_CXX='-berok'
15417 # Determine the default libpath from the value encoded in an empty executable.
15418 cat >conftest.$ac_ext <<_ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15433 rm -f conftest.$ac_objext conftest$ac_exeext
15434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15435 (eval $ac_link) 2>conftest.er1
15437 grep -v '^ *+' conftest.er1 >conftest.err
15439 cat conftest.err >&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); } &&
15442 { ac_try='test -z "$ac_cxx_werror_flag"
15443 || test ! -s conftest.err'
15444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445 (eval $ac_try) 2>&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; } &&
15449 { ac_try='test -s conftest$ac_exeext'
15450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451 (eval $ac_try) 2>&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }; }; then
15456 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15458 # Check for a 64-bit object if we didn't find anything.
15459 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; }
15462 echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15466 rm -f conftest.err conftest.$ac_objext \
15467 conftest$ac_exeext conftest.$ac_ext
15468 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15470 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15472 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"
15474 if test "$host_cpu" = ia64; then
15475 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15476 allow_undefined_flag_CXX="-z nodefs"
15477 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"
15479 # Determine the default libpath from the value encoded in an empty executable.
15480 cat >conftest.$ac_ext <<_ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15495 rm -f conftest.$ac_objext conftest$ac_exeext
15496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15497 (eval $ac_link) 2>conftest.er1
15499 grep -v '^ *+' conftest.er1 >conftest.err
15501 cat conftest.err >&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } &&
15504 { ac_try='test -z "$ac_cxx_werror_flag"
15505 || test ! -s conftest.err'
15506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507 (eval $ac_try) 2>&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); }; } &&
15511 { ac_try='test -s conftest$ac_exeext'
15512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513 (eval $ac_try) 2>&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }; }; then
15518 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15520 # Check for a 64-bit object if we didn't find anything.
15521 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; }
15524 echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15528 rm -f conftest.err conftest.$ac_objext \
15529 conftest$ac_exeext conftest.$ac_ext
15530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15532 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15533 # Warning - without using the other run time loading flags,
15534 # -berok will link without error, but may produce a broken library.
15535 no_undefined_flag_CXX=' ${wl}-bernotok'
15536 allow_undefined_flag_CXX=' ${wl}-berok'
15537 # -bexpall does not export symbols beginning with underscore (_)
15538 always_export_symbols_CXX=yes
15539 # Exported symbols can be pulled into shared objects from archives
15540 whole_archive_flag_spec_CXX=' '
15541 archive_cmds_need_lc_CXX=yes
15542 # This is similar to how AIX traditionally builds it's shared libraries.
15543 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'
15548 case $cc_basename in
15550 # FIXME: insert proper C++ library support
15557 cygwin* | mingw* | pw32*)
15558 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15559 # as there is no search path for DLLs.
15560 hardcode_libdir_flag_spec_CXX='-L$libdir'
15561 allow_undefined_flag_CXX=unsupported
15562 always_export_symbols_CXX=no
15563 enable_shared_with_static_runtimes_CXX=yes
15565 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15566 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'
15567 # If the export-symbols file already is a .def file (1st line
15568 # is EXPORTS), use it as is; otherwise, prepend...
15569 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15570 cp $export_symbols $output_objdir/$soname.def;
15572 echo EXPORTS > $output_objdir/$soname.def;
15573 cat $export_symbols >> $output_objdir/$soname.def;
15575 $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'
15580 darwin* | rhapsody*)
15582 rhapsody* | darwin1.[012])
15583 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15586 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15587 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15589 case ${MACOSX_DEPLOYMENT_TARGET} in
15591 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15594 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15600 archive_cmds_need_lc_CXX=no
15601 hardcode_direct_CXX=no
15602 hardcode_automatic_CXX=yes
15603 hardcode_shlibpath_var_CXX=unsupported
15604 whole_archive_flag_spec_CXX=''
15605 link_all_deplibs_CXX=yes
15607 if test "$GXX" = yes ; then
15608 lt_int_apple_cc_single_mod=no
15609 output_verbose_link_cmd='echo'
15610 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15611 lt_int_apple_cc_single_mod=yes
15613 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15614 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15616 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'
15618 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15619 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15620 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15621 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}'
15623 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}'
15625 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}'
15627 case "$cc_basename" in
15629 output_verbose_link_cmd='echo'
15630 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'
15631 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15632 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15633 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}'
15634 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}'
15644 case $cc_basename in
15646 # FIXME: insert proper C++ library support
15650 # Green Hills C++ Compiler
15651 # FIXME: insert proper C++ library support
15655 # FIXME: insert proper C++ library support
15661 # C++ shared libraries reported to be fairly broken before switch to ELF
15665 archive_cmds_need_lc_CXX=no
15667 freebsd* | kfreebsd*-gnu)
15668 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15675 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15676 hardcode_libdir_separator_CXX=:
15677 export_dynamic_flag_spec_CXX='${wl}-E'
15678 hardcode_direct_CXX=yes
15679 hardcode_minus_L_CXX=yes # Not in the search PATH,
15680 # but as the default
15681 # location of the library.
15683 case $cc_basename in
15685 # FIXME: insert proper C++ library support
15689 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'
15690 # Commands to make compiler produce verbose output that lists
15691 # what "hidden" libraries, object files and flags are used when
15692 # linking a shared library.
15694 # There doesn't appear to be a way to prevent this compiler from
15695 # explicitly linking system object files so we need to strip them
15696 # from the output so that they don't get included in the library
15698 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'
15701 if test "$GXX" = yes; then
15702 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'
15704 # FIXME: insert proper C++ library support
15711 if test $with_gnu_ld = no; then
15712 case "$host_cpu" in
15714 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15715 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15716 hardcode_libdir_separator_CXX=:
15719 hardcode_libdir_flag_spec_CXX='-L$libdir'
15722 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15723 hardcode_libdir_separator_CXX=:
15724 export_dynamic_flag_spec_CXX='${wl}-E'
15728 case "$host_cpu" in
15730 hardcode_direct_CXX=no
15731 hardcode_shlibpath_var_CXX=no
15734 hardcode_direct_CXX=no
15735 hardcode_shlibpath_var_CXX=no
15736 hardcode_minus_L_CXX=yes # Not in the search PATH,
15737 # but as the default
15738 # location of the library.
15741 hardcode_direct_CXX=yes
15742 hardcode_minus_L_CXX=yes # Not in the search PATH,
15743 # but as the default
15744 # location of the library.
15748 case $cc_basename in
15750 # FIXME: insert proper C++ library support
15754 case "$host_cpu" in
15756 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15759 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15762 # Commands to make compiler produce verbose output that lists
15763 # what "hidden" libraries, object files and flags are used when
15764 # linking a shared library.
15766 # There doesn't appear to be a way to prevent this compiler from
15767 # explicitly linking system object files so we need to strip them
15768 # from the output so that they don't get included in the library
15770 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'
15773 if test "$GXX" = yes; then
15774 if test $with_gnu_ld = no; then
15775 case "$host_cpu" in
15777 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15780 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'
15785 # FIXME: insert proper C++ library support
15792 case $cc_basename in
15795 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'
15797 # Archives containing C++ object files must be created using
15798 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15799 # necessary to make sure instantiated templates are included
15801 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15804 if test "$GXX" = yes; then
15805 if test "$with_gnu_ld" = no; then
15806 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'
15808 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'
15811 link_all_deplibs_CXX=yes
15814 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15815 hardcode_libdir_separator_CXX=:
15818 case $cc_basename in
15820 # Kuck and Associates, Inc. (KAI) C++ Compiler
15822 # KCC will only create a shared library if the output file
15823 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15824 # to its proper name (with version) after linking.
15825 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'
15826 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'
15827 # Commands to make compiler produce verbose output that lists
15828 # what "hidden" libraries, object files and flags are used when
15829 # linking a shared library.
15831 # There doesn't appear to be a way to prevent this compiler from
15832 # explicitly linking system object files so we need to strip them
15833 # from the output so that they don't get included in the library
15835 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'
15837 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15838 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15840 # Archives containing C++ object files must be created using
15841 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15842 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15847 # version 8.0 and above of icpc choke on multiply defined symbols
15848 # if we add $predep_objects and $postdep_objects, however 7.1 and
15849 # earlier do not add the objects themselves.
15850 case `$CC -V 2>&1` in
15852 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15853 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'
15855 *) # Version 8.0 or newer
15856 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15857 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15860 archive_cmds_need_lc_CXX=no
15861 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15862 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15863 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15867 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15868 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'
15870 runpath_var=LD_RUN_PATH
15871 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15872 hardcode_libdir_separator_CXX=:
15874 # Commands to make compiler produce verbose output that lists
15875 # what "hidden" libraries, object files and flags are used when
15876 # linking a shared library.
15878 # There doesn't appear to be a way to prevent this compiler from
15879 # explicitly linking system object files so we need to strip them
15880 # from the output so that they don't get included in the library
15882 output_verbose_link_cmd='templist=`$CC -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'
15887 # FIXME: insert proper C++ library support
15891 # FIXME: insert proper C++ library support
15895 case $cc_basename in
15897 # FIXME: insert proper C++ library support
15901 # FIXME: insert proper C++ library support
15907 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15908 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15910 hardcode_libdir_flag_spec_CXX='-R$libdir'
15911 hardcode_direct_CXX=yes
15912 hardcode_shlibpath_var_CXX=no
15914 # Workaround some broken pre-1.5 toolchains
15915 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15918 # C++ shared libraries are fairly broken
15922 hardcode_direct_CXX=yes
15923 hardcode_shlibpath_var_CXX=no
15924 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15925 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15926 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15927 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15928 export_dynamic_flag_spec_CXX='${wl}-E'
15929 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15931 output_verbose_link_cmd='echo'
15934 case $cc_basename in
15936 # Kuck and Associates, Inc. (KAI) C++ Compiler
15938 # KCC will only create a shared library if the output file
15939 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15940 # to its proper name (with version) after linking.
15941 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'
15943 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15944 hardcode_libdir_separator_CXX=:
15946 # Archives containing C++ object files must be created using
15947 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15948 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15952 # Rational C++ 2.4.1
15953 # FIXME: insert proper C++ library support
15957 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15958 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'
15960 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15961 hardcode_libdir_separator_CXX=:
15963 # Commands to make compiler produce verbose output that lists
15964 # what "hidden" libraries, object files and flags are used when
15965 # linking a shared library.
15967 # There doesn't appear to be a way to prevent this compiler from
15968 # explicitly linking system object files so we need to strip them
15969 # from the output so that they don't get included in the library
15971 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'
15974 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15975 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15976 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'
15978 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15979 hardcode_libdir_separator_CXX=:
15981 # Commands to make compiler produce verbose output that lists
15982 # what "hidden" libraries, object files and flags are used when
15983 # linking a shared library.
15984 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15987 # FIXME: insert proper C++ library support
15994 case $cc_basename in
15996 # Kuck and Associates, Inc. (KAI) C++ Compiler
15998 # KCC will only create a shared library if the output file
15999 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16000 # to its proper name (with version) after linking.
16001 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'
16003 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16004 hardcode_libdir_separator_CXX=:
16006 # Archives containing C++ object files must be created using
16007 # the KAI C++ compiler.
16008 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16011 # Rational C++ 2.4.1
16012 # FIXME: insert proper C++ library support
16016 allow_undefined_flag_CXX=' -expect_unresolved \*'
16017 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'
16018 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16019 echo "-hidden">> $lib.exp~
16020 $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~
16023 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16024 hardcode_libdir_separator_CXX=:
16026 # Commands to make compiler produce verbose output that lists
16027 # what "hidden" libraries, object files and flags are used when
16028 # linking a shared library.
16030 # There doesn't appear to be a way to prevent this compiler from
16031 # explicitly linking system object files so we need to strip them
16032 # from the output so that they don't get included in the library
16034 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'
16037 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16038 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16039 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'
16041 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16042 hardcode_libdir_separator_CXX=:
16044 # Commands to make compiler produce verbose output that lists
16045 # what "hidden" libraries, object files and flags are used when
16046 # linking a shared library.
16047 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16050 # FIXME: insert proper C++ library support
16057 # FIXME: insert proper C++ library support
16061 archive_cmds_need_lc_CXX=no
16062 case $cc_basename in
16064 # FIXME: insert proper C++ library support
16068 # FIXME: insert proper C++ library support
16074 case $cc_basename in
16077 # FIXME: insert proper C++ library support
16082 # FIXME: insert proper C++ library support
16086 # FIXME: insert proper C++ library support
16092 case $cc_basename in
16094 # Sun C++ 4.2, 5.x and Centerline C++
16095 no_undefined_flag_CXX=' -zdefs'
16096 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16097 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16098 $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'
16100 hardcode_libdir_flag_spec_CXX='-R$libdir'
16101 hardcode_shlibpath_var_CXX=no
16103 solaris2.0-5 | solaris2.0-5.*) ;;
16105 # The C++ compiler is used as linker so we must use $wl
16106 # flag to pass the commands to the underlying system
16108 # Supported since Solaris 2.6 (maybe 2.5.1?)
16109 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16112 link_all_deplibs_CXX=yes
16114 # Commands to make compiler produce verbose output that lists
16115 # what "hidden" libraries, object files and flags are used when
16116 # linking a shared library.
16118 # There doesn't appear to be a way to prevent this compiler from
16119 # explicitly linking system object files so we need to strip them
16120 # from the output so that they don't get included in the library
16122 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'
16124 # Archives containing C++ object files must be created using
16125 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16126 # necessary to make sure instantiated templates are included
16128 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16131 # Green Hills C++ Compiler
16132 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16134 # The C++ compiler must be used to create the archive.
16135 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16138 # GNU C++ compiler with Solaris linker
16139 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16140 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16141 if $CC --version | grep -v '^2\.7' > /dev/null; then
16142 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16143 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16144 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16146 # Commands to make compiler produce verbose output that lists
16147 # what "hidden" libraries, object files and flags are used when
16148 # linking a shared library.
16149 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16151 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16153 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16154 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16155 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16157 # Commands to make compiler produce verbose output that lists
16158 # what "hidden" libraries, object files and flags are used when
16159 # linking a shared library.
16160 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16163 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16168 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16169 archive_cmds_need_lc_CXX=no
16172 case $cc_basename in
16174 # NonStop-UX NCC 3.20
16175 # FIXME: insert proper C++ library support
16179 # FIXME: insert proper C++ library support
16185 # FIXME: insert proper C++ library support
16189 # FIXME: insert proper C++ library support
16193 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16194 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16195 test "$ld_shlibs_CXX" = no && can_build_shared=no
16201 cat > conftest.$ac_ext <<EOF
16205 Foo (void) { a = 0; }
16211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16212 (eval $ac_compile) 2>&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; then
16216 # Parse the compiler output and extract the necessary
16217 # objects, libraries and library flags.
16219 # Sentinel used to keep track of whether or not we are before
16220 # the conftest object file.
16221 pre_test_object_deps_done=no
16223 # The `*' in the case matches for architectures that use `case' in
16224 # $output_verbose_cmd can trigger glob expansion during the loop
16225 # eval without this substitution.
16226 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16228 for p in `eval $output_verbose_link_cmd`; do
16232 # Some compilers place space between "-{L,R}" and the path.
16233 # Remove the space.
16234 if test $p = "-L" \
16235 || test $p = "-R"; then
16242 if test "$pre_test_object_deps_done" = no; then
16245 # Internal compiler library paths should come after those
16246 # provided the user. The postdeps already come after the
16247 # user supplied libs so there is no need to process them.
16248 if test -z "$compiler_lib_search_path_CXX"; then
16249 compiler_lib_search_path_CXX="${prev}${p}"
16251 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16254 # The "-l" case would never come before the object being
16255 # linked, so don't bother handling this case.
16258 if test -z "$postdeps_CXX"; then
16259 postdeps_CXX="${prev}${p}"
16261 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16267 # This assumes that the test object file only shows up
16268 # once in the compiler output.
16269 if test "$p" = "conftest.$objext"; then
16270 pre_test_object_deps_done=yes
16274 if test "$pre_test_object_deps_done" = no; then
16275 if test -z "$predep_objects_CXX"; then
16276 predep_objects_CXX="$p"
16278 predep_objects_CXX="$predep_objects_CXX $p"
16281 if test -z "$postdep_objects_CXX"; then
16282 postdep_objects_CXX="$p"
16284 postdep_objects_CXX="$postdep_objects_CXX $p"
16289 *) ;; # Ignore the rest.
16297 echo "libtool.m4: error: problem compiling CXX test program"
16300 $rm -f confest.$objext
16302 case " $postdeps_CXX " in
16303 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16306 lt_prog_compiler_wl_CXX=
16307 lt_prog_compiler_pic_CXX=
16308 lt_prog_compiler_static_CXX=
16310 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16311 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16313 # C++ specific cases for pic, static, wl, etc.
16314 if test "$GXX" = yes; then
16315 lt_prog_compiler_wl_CXX='-Wl,'
16316 lt_prog_compiler_static_CXX='-static'
16320 # All AIX code is PIC.
16321 if test "$host_cpu" = ia64; then
16322 # AIX 5 now supports IA64 processor
16323 lt_prog_compiler_static_CXX='-Bstatic'
16327 # FIXME: we need at least 68020 code to build shared libraries, but
16328 # adding the `-m68020' flag to GCC prevents building anything better,
16330 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16332 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16333 # PIC is the default for these OSes.
16335 mingw* | os2* | pw32*)
16336 # This hack is so that the source file can tell whether it is being
16337 # built for inclusion in a dll (and should export symbols for example).
16338 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16340 darwin* | rhapsody*)
16341 # PIC is the default on this platform
16342 # Common symbols not allowed in MH_DYLIB files
16343 lt_prog_compiler_pic_CXX='-fno-common'
16346 # DJGPP does not support shared libraries at all
16347 lt_prog_compiler_pic_CXX=
16350 if test -d /usr/nec; then
16351 lt_prog_compiler_pic_CXX=-Kconform_pic
16355 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16356 # not for PA HP-UX.
16357 case "$host_cpu" in
16361 lt_prog_compiler_pic_CXX='-fPIC'
16366 lt_prog_compiler_pic_CXX='-fPIC'
16372 # All AIX code is PIC.
16373 if test "$host_cpu" = ia64; then
16374 # AIX 5 now supports IA64 processor
16375 lt_prog_compiler_static_CXX='-Bstatic'
16377 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16381 case $cc_basename in
16383 # Green Hills C++ Compiler
16384 # _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"
16389 # PIC is the default on this platform
16390 # Common symbols not allowed in MH_DYLIB files
16391 case "$cc_basename" in
16393 lt_prog_compiler_pic_CXX='-qnocommon'
16394 lt_prog_compiler_wl_CXX='-Wl,'
16399 case $cc_basename in
16401 lt_prog_compiler_pic_CXX='-KPIC'
16404 # Green Hills C++ Compiler
16405 lt_prog_compiler_pic_CXX='-pic'
16411 freebsd* | kfreebsd*-gnu)
16412 # FreeBSD uses GNU C++
16414 hpux9* | hpux10* | hpux11*)
16415 case $cc_basename in
16417 lt_prog_compiler_wl_CXX='-Wl,'
16418 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16419 if test "$host_cpu" != ia64; then
16420 lt_prog_compiler_pic_CXX='+Z'
16424 lt_prog_compiler_wl_CXX='-Wl,'
16425 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16426 case "$host_cpu" in
16431 lt_prog_compiler_pic_CXX='+Z'
16439 irix5* | irix6* | nonstopux*)
16440 case $cc_basename in
16442 lt_prog_compiler_wl_CXX='-Wl,'
16443 lt_prog_compiler_static_CXX='-non_shared'
16444 # CC pic flag -KPIC is the default.
16451 case $cc_basename in
16454 lt_prog_compiler_wl_CXX='--backend -Wl,'
16455 lt_prog_compiler_pic_CXX='-fPIC'
16459 lt_prog_compiler_wl_CXX='-Wl,'
16460 lt_prog_compiler_pic_CXX='-KPIC'
16461 lt_prog_compiler_static_CXX='-static'
16465 # Make sure the PIC flag is empty. It appears that all Alpha
16466 # Linux and Compaq Tru64 Unix objects are PIC.
16467 lt_prog_compiler_pic_CXX=
16468 lt_prog_compiler_static_CXX='-non_shared'
16479 case $cc_basename in
16481 lt_prog_compiler_pic_CXX='-W c,exportall'
16489 osf3* | osf4* | osf5*)
16490 case $cc_basename in
16492 lt_prog_compiler_wl_CXX='--backend -Wl,'
16495 # Rational C++ 2.4.1
16496 lt_prog_compiler_pic_CXX='-pic'
16499 # Digital/Compaq C++
16500 lt_prog_compiler_wl_CXX='-Wl,'
16501 # Make sure the PIC flag is empty. It appears that all Alpha
16502 # Linux and Compaq Tru64 Unix objects are PIC.
16503 lt_prog_compiler_pic_CXX=
16504 lt_prog_compiler_static_CXX='-non_shared'
16513 case $cc_basename in
16515 lt_prog_compiler_pic_CXX='-fPIC'
16522 case $cc_basename in
16524 # Sun C++ 4.2, 5.x and Centerline C++
16525 lt_prog_compiler_pic_CXX='-KPIC'
16526 lt_prog_compiler_static_CXX='-Bstatic'
16527 lt_prog_compiler_wl_CXX='-Qoption ld '
16530 # Green Hills C++ Compiler
16531 lt_prog_compiler_pic_CXX='-PIC'
16538 case $cc_basename in
16541 lt_prog_compiler_pic_CXX='-pic'
16542 lt_prog_compiler_static_CXX='-Bstatic'
16546 lt_prog_compiler_pic_CXX='-pic'
16553 case $cc_basename in
16555 # NonStop-UX NCC 3.20
16556 lt_prog_compiler_pic_CXX='-KPIC'
16567 lt_prog_compiler_can_build_shared_CXX=no
16572 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16573 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16576 # Check to make sure the PIC flag actually works.
16578 if test -n "$lt_prog_compiler_pic_CXX"; then
16580 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16581 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16582 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16583 echo $ECHO_N "(cached) $ECHO_C" >&6
16585 lt_prog_compiler_pic_works_CXX=no
16586 ac_outfile=conftest.$ac_objext
16587 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16588 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16589 # Insert the option either (1) after the last *FLAGS variable, or
16590 # (2) before a word containing "conftest.", or (3) at the end.
16591 # Note that $ac_compile itself does not contain backslashes and begins
16592 # with a dollar sign (not a hyphen), so the echo should work correctly.
16593 # The option is referenced via a variable to avoid confusing sed.
16594 lt_compile=`echo "$ac_compile" | $SED \
16595 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16597 -e 's:$: $lt_compiler_flag:'`
16598 (eval echo "\"\$as_me:16598: $lt_compile\"" >&5)
16599 (eval "$lt_compile" 2>conftest.err)
16601 cat conftest.err >&5
16602 echo "$as_me:16602: \$? = $ac_status" >&5
16603 if (exit $ac_status) && test -s "$ac_outfile"; then
16604 # The compiler can only warn and ignore the option if not recognized
16605 # So say no if there are warnings
16606 if test ! -s conftest.err; then
16607 lt_prog_compiler_pic_works_CXX=yes
16613 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16614 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16616 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16617 case $lt_prog_compiler_pic_CXX in
16619 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16622 lt_prog_compiler_pic_CXX=
16623 lt_prog_compiler_can_build_shared_CXX=no
16628 # For platforms which do not support PIC, -DPIC is meaningless:
16630 lt_prog_compiler_pic_CXX=
16633 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16637 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16638 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16639 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16642 lt_cv_prog_compiler_c_o_CXX=no
16643 $rm -r conftest 2>/dev/null
16647 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16649 lt_compiler_flag="-o out/conftest2.$ac_objext"
16650 # Insert the option either (1) after the last *FLAGS variable, or
16651 # (2) before a word containing "conftest.", or (3) at the end.
16652 # Note that $ac_compile itself does not contain backslashes and begins
16653 # with a dollar sign (not a hyphen), so the echo should work correctly.
16654 lt_compile=`echo "$ac_compile" | $SED \
16655 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16657 -e 's:$: $lt_compiler_flag:'`
16658 (eval echo "\"\$as_me:16658: $lt_compile\"" >&5)
16659 (eval "$lt_compile" 2>out/conftest.err)
16661 cat out/conftest.err >&5
16662 echo "$as_me:16662: \$? = $ac_status" >&5
16663 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16665 # The compiler can only warn and ignore the option if not recognized
16666 # So say no if there are warnings
16667 if test ! -s out/conftest.err; then
16668 lt_cv_prog_compiler_c_o_CXX=yes
16673 # SGI C++ compiler will create directory out/ii_files/ for
16674 # template instantiation
16675 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16676 $rm out/* && rmdir out
16682 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16683 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16686 hard_links="nottested"
16687 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16688 # do not overwrite the value of need_locks provided by the user
16689 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16690 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16695 ln conftest.a conftest.b 2>&5 || hard_links=no
16696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16697 echo "$as_me:$LINENO: result: $hard_links" >&5
16698 echo "${ECHO_T}$hard_links" >&6
16699 if test "$hard_links" = no; then
16700 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16701 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16708 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16709 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16711 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16714 # If we're using GNU nm, then we don't want the "-C" option.
16715 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16716 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16717 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'
16719 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'
16723 export_symbols_cmds_CXX="$ltdll_cmds"
16726 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16729 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16733 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16734 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16735 test "$ld_shlibs_CXX" = no && can_build_shared=no
16737 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16738 if test "$GCC" = yes; then
16739 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16743 # Do we need to explicitly link libc?
16745 case "x$archive_cmds_need_lc_CXX" in
16747 # Assume -lc should be added
16748 archive_cmds_need_lc_CXX=yes
16750 if test "$enable_shared" = yes && test "$GCC" = yes; then
16751 case $archive_cmds_CXX in
16753 # FIXME: we may have to deal with multi-command sequences.
16756 # Test whether the compiler implicitly links with -lc since on some
16757 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16758 # to ld, don't add -lc before -lgcc.
16759 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16760 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16762 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16765 (eval $ac_compile) 2>&5
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); } 2>conftest.err; then
16771 libobjs=conftest.$ac_objext
16773 wl=$lt_prog_compiler_wl_CXX
16779 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16780 allow_undefined_flag_CXX=
16781 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16782 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }
16787 archive_cmds_need_lc_CXX=no
16789 archive_cmds_need_lc_CXX=yes
16791 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16793 cat conftest.err 1>&5
16796 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16797 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16804 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16805 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16806 library_names_spec=
16807 libname_spec='lib$name'
16811 postuninstall_cmds=
16815 shlibpath_overrides_runpath=unknown
16817 dynamic_linker="$host_os ld.so"
16818 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16819 if test "$GCC" = yes; then
16820 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16821 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16822 # if the path contains ";" then we assume it to be the separator
16823 # otherwise default to the standard path separator (i.e. ":") - it is
16824 # assumed that no part of a normal pathname contains ";" but that should
16825 # okay in the real world where ";" in dirpaths is itself problematic.
16826 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16828 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16831 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16833 need_lib_prefix=unknown
16834 hardcode_into_libs=no
16836 # when you set need_version to no, make sure it does not cause -set_version
16837 # flags to be left without arguments
16838 need_version=unknown
16843 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16844 shlibpath_var=LIBPATH
16846 # AIX 3 has no versioning support, so we append a major version to the name.
16847 soname_spec='${libname}${release}${shared_ext}$major'
16854 hardcode_into_libs=yes
16855 if test "$host_cpu" = ia64; then
16856 # AIX 5 supports IA64
16857 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16858 shlibpath_var=LD_LIBRARY_PATH
16860 # With GCC up to 2.95.x, collect2 would create an import file
16861 # for dependence libraries. The import file would start with
16862 # the line `#! .'. This would cause the generated library to
16863 # depend on `.', always an invalid library. This was fixed in
16864 # development snapshots of GCC prior to 3.0.
16866 aix4 | aix4.[01] | aix4.[01].*)
16867 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16869 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16872 can_build_shared=no
16876 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16877 # soname into executable. Probably we can add versioning support to
16878 # collect2, so additional links can be useful in future.
16879 if test "$aix_use_runtimelinking" = yes; then
16880 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16881 # instead of lib<name>.a to let people know that these are not
16882 # typical AIX shared libraries.
16883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16885 # We preserve .a as extension for shared libraries through AIX4.2
16886 # and later when we are not doing run time linking.
16887 library_names_spec='${libname}${release}.a $libname.a'
16888 soname_spec='${libname}${release}${shared_ext}$major'
16890 shlibpath_var=LIBPATH
16895 library_names_spec='$libname.ixlibrary $libname.a'
16896 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16897 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'
16901 library_names_spec='${libname}${shared_ext}'
16902 dynamic_linker="$host_os ld.so"
16903 shlibpath_var=LIBRARY_PATH
16909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16910 soname_spec='${libname}${release}${shared_ext}$major'
16911 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16912 shlibpath_var=LD_LIBRARY_PATH
16913 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16914 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16915 # the default ld.so.conf also contains /usr/contrib/lib and
16916 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16917 # libtool to hard-code these into programs
16920 cygwin* | mingw* | pw32*)
16921 version_type=windows
16926 case $GCC,$host_os in
16927 yes,cygwin* | yes,mingw* | yes,pw32*)
16928 library_names_spec='$libname.dll.a'
16929 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16930 postinstall_cmds='base_file=`basename \${file}`~
16931 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16932 dldir=$destdir/`dirname \$dlpath`~
16933 test -d \$dldir || mkdir -p \$dldir~
16934 $install_prog $dir/$dlname \$dldir/$dlname'
16935 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16936 dlpath=$dir/\$dldll~
16938 shlibpath_overrides_runpath=yes
16942 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16943 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16944 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16947 # MinGW DLLs use traditional 'lib' prefix
16948 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16949 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16950 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16951 # It is most probably a Windows format PATH printed by
16952 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16953 # path with ; separators, and with drive letters. We can handle the
16954 # drive letters (cygwin fileutils understands them), so leave them,
16955 # especially as we might pass files found there to a mingw objdump,
16956 # which wouldn't understand a cygwinified path. Ahh.
16957 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16959 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16963 # pw32 DLLs use 'pw' prefix rather than 'lib'
16964 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16970 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16973 dynamic_linker='Win32 ld.exe'
16974 # FIXME: first we should search . and the directory the executable is in
16978 darwin* | rhapsody*)
16979 dynamic_linker="$host_os dyld"
16980 version_type=darwin
16983 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16984 soname_spec='${libname}${release}${major}$shared_ext'
16985 shlibpath_overrides_runpath=yes
16986 shlibpath_var=DYLD_LIBRARY_PATH
16987 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16988 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16989 if test "$GCC" = yes; then
16990 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"`
16992 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16994 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17002 soname_spec='${libname}${release}${shared_ext}$major'
17003 shlibpath_var=LD_LIBRARY_PATH
17014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17015 soname_spec='${libname}${release}${shared_ext}$major'
17016 shlibpath_var=LD_LIBRARY_PATH
17017 shlibpath_overrides_runpath=no
17018 hardcode_into_libs=yes
17019 dynamic_linker='GNU ld.so'
17023 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17024 version_type=freebsd-$objformat
17025 case $version_type in
17027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17036 shlibpath_var=LD_LIBRARY_PATH
17039 shlibpath_overrides_runpath=yes
17041 freebsd3.01* | freebsdelf3.01*)
17042 shlibpath_overrides_runpath=yes
17043 hardcode_into_libs=yes
17046 shlibpath_overrides_runpath=no
17047 hardcode_into_libs=yes
17056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17057 soname_spec='${libname}${release}${shared_ext}$major'
17058 shlibpath_var=LD_LIBRARY_PATH
17059 hardcode_into_libs=yes
17062 hpux9* | hpux10* | hpux11*)
17063 # Give a soname corresponding to the major version so that dld.sl refuses to
17064 # link against other versions.
17068 case "$host_cpu" in
17071 hardcode_into_libs=yes
17072 dynamic_linker="$host_os dld.so"
17073 shlibpath_var=LD_LIBRARY_PATH
17074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17076 soname_spec='${libname}${release}${shared_ext}$major'
17077 if test "X$HPUX_IA64_MODE" = X32; then
17078 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17080 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17082 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17086 hardcode_into_libs=yes
17087 dynamic_linker="$host_os dld.sl"
17088 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17091 soname_spec='${libname}${release}${shared_ext}$major'
17092 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17097 dynamic_linker="$host_os dld.sl"
17098 shlibpath_var=SHLIB_PATH
17099 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17101 soname_spec='${libname}${release}${shared_ext}$major'
17104 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17105 postinstall_cmds='chmod 555 $lib'
17108 irix5* | irix6* | nonstopux*)
17110 nonstopux*) version_type=nonstopux ;;
17112 if test "$lt_cv_prog_gnu_ld" = yes; then
17120 soname_spec='${libname}${release}${shared_ext}$major'
17121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17123 irix5* | nonstopux*)
17124 libsuff= shlibsuff=
17127 case $LD in # libtool.m4 will add one of these switches to LD
17128 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17129 libsuff= shlibsuff= libmagic=32-bit;;
17130 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17131 libsuff=32 shlibsuff=N32 libmagic=N32;;
17132 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17133 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17134 *) libsuff= shlibsuff= libmagic=never-match;;
17138 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17139 shlibpath_overrides_runpath=no
17140 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17141 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17142 hardcode_into_libs=yes
17145 # No shared lib support for Linux oldld, aout, or coff.
17146 linux*oldld* | linux*aout* | linux*coff*)
17150 # This must be Linux ELF.
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156 soname_spec='${libname}${release}${shared_ext}$major'
17157 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17158 shlibpath_var=LD_LIBRARY_PATH
17159 shlibpath_overrides_runpath=no
17160 # This implies no fast_install, which is unacceptable.
17161 # Some rework will be needed to allow for fast_install
17162 # before this can be enabled.
17163 hardcode_into_libs=yes
17165 # Append ld.so.conf contents to the search path
17166 if test -f /etc/ld.so.conf; then
17167 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17168 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17171 # We used to test for /lib/ld.so.1 and disable shared libraries on
17172 # powerpc, because MkLinux only supported shared libraries with the
17173 # GNU dynamic linker. Since this was broken with cross compilers,
17174 # most powerpc-linux boxes support dynamic linking these days and
17175 # people can always --disable-shared, the test was removed, and we
17176 # assume the GNU/Linux dynamic linker is in use.
17177 dynamic_linker='GNU/Linux ld.so'
17184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 shlibpath_var=LD_LIBRARY_PATH
17187 shlibpath_overrides_runpath=no
17188 hardcode_into_libs=yes
17189 dynamic_linker='GNU ld.so'
17196 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17198 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17199 dynamic_linker='NetBSD (a.out) ld.so'
17201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17202 soname_spec='${libname}${release}${shared_ext}$major'
17203 dynamic_linker='NetBSD ld.elf_so'
17205 shlibpath_var=LD_LIBRARY_PATH
17206 shlibpath_overrides_runpath=yes
17207 hardcode_into_libs=yes
17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17213 shlibpath_var=LD_LIBRARY_PATH
17214 shlibpath_overrides_runpath=yes
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
17231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17233 shlibpath_var=LD_LIBRARY_PATH
17234 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17236 openbsd2.[89] | openbsd2.[89].*)
17237 shlibpath_overrides_runpath=no
17240 shlibpath_overrides_runpath=yes
17244 shlibpath_overrides_runpath=yes
17249 libname_spec='$name'
17252 library_names_spec='$libname${shared_ext} $libname.a'
17253 dynamic_linker='OS/2 ld.exe'
17254 shlibpath_var=LIBPATH
17257 osf3* | osf4* | osf5*)
17261 soname_spec='${libname}${release}${shared_ext}$major'
17262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17263 shlibpath_var=LD_LIBRARY_PATH
17264 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17265 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17270 soname_spec='${libname}${release}${shared_ext}$major'
17271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17272 shlibpath_var=LD_LIBRARY_PATH
17279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17280 soname_spec='${libname}${release}${shared_ext}$major'
17281 shlibpath_var=LD_LIBRARY_PATH
17282 shlibpath_overrides_runpath=yes
17283 hardcode_into_libs=yes
17284 # ldd complains unless libraries are executable
17285 postinstall_cmds='chmod +x $lib'
17290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17291 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17292 shlibpath_var=LD_LIBRARY_PATH
17293 shlibpath_overrides_runpath=yes
17294 if test "$with_gnu_ld" = yes; then
17300 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17303 soname_spec='${libname}${release}${shared_ext}$major'
17304 shlibpath_var=LD_LIBRARY_PATH
17305 case $host_vendor in
17307 shlibpath_overrides_runpath=no
17309 export_dynamic_flag_spec='${wl}-Blargedynsym'
17310 runpath_var=LD_RUN_PATH
17318 shlibpath_overrides_runpath=no
17319 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17325 if test -d /usr/nec ;then
17327 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17328 soname_spec='$libname${shared_ext}.$major'
17329 shlibpath_var=LD_LIBRARY_PATH
17335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17336 soname_spec='${libname}${release}${shared_ext}$major'
17337 shlibpath_var=LD_LIBRARY_PATH
17344 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17345 echo "${ECHO_T}$dynamic_linker" >&6
17346 test "$dynamic_linker" = no && can_build_shared=no
17348 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17349 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17350 hardcode_action_CXX=
17351 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17352 test -n "$runpath_var_CXX" || \
17353 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17355 # We can hardcode non-existant directories.
17356 if test "$hardcode_direct_CXX" != no &&
17357 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17358 # have to relink, otherwise we might link with an installed library
17359 # when we should be linking with a yet-to-be-installed one
17360 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17361 test "$hardcode_minus_L_CXX" != no; then
17362 # Linking always hardcodes the temporary library directory.
17363 hardcode_action_CXX=relink
17365 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17366 hardcode_action_CXX=immediate
17369 # We cannot hardcode anything, or else we can only hardcode existing
17371 hardcode_action_CXX=unsupported
17373 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17374 echo "${ECHO_T}$hardcode_action_CXX" >&6
17376 if test "$hardcode_action_CXX" = relink; then
17377 # Fast installation is not supported
17378 enable_fast_install=no
17379 elif test "$shlibpath_overrides_runpath" = yes ||
17380 test "$enable_shared" = no; then
17381 # Fast installation is not necessary
17382 enable_fast_install=needless
17387 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17388 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17389 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17390 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17391 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17392 echo "$as_me:$LINENO: result: yes" >&5
17393 echo "${ECHO_T}yes" >&6
17395 # FIXME - insert some real tests, host_os isn't really good enough
17398 if test -n "$STRIP" ; then
17399 striplib="$STRIP -x"
17400 echo "$as_me:$LINENO: result: yes" >&5
17401 echo "${ECHO_T}yes" >&6
17403 echo "$as_me:$LINENO: result: no" >&5
17404 echo "${ECHO_T}no" >&6
17408 echo "$as_me:$LINENO: result: no" >&5
17409 echo "${ECHO_T}no" >&6
17414 if test "x$enable_dlopen" != xyes; then
17415 enable_dlopen=unknown
17416 enable_dlopen_self=unknown
17417 enable_dlopen_self_static=unknown
17424 lt_cv_dlopen="load_add_on"
17426 lt_cv_dlopen_self=yes
17430 lt_cv_dlopen="LoadLibrary"
17435 lt_cv_dlopen="dlopen"
17440 # if libdl is installed we need to link against it
17441 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17442 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17443 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17446 ac_check_lib_save_LIBS=$LIBS
17448 cat >conftest.$ac_ext <<_ACEOF
17451 cat confdefs.h >>conftest.$ac_ext
17452 cat >>conftest.$ac_ext <<_ACEOF
17453 /* end confdefs.h. */
17455 /* Override any gcc2 internal prototype to avoid an error. */
17459 /* We use char because int might match the return type of a gcc2
17460 builtin and then its argument prototype would still apply. */
17470 rm -f conftest.$ac_objext conftest$ac_exeext
17471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17472 (eval $ac_link) 2>conftest.er1
17474 grep -v '^ *+' conftest.er1 >conftest.err
17476 cat conftest.err >&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } &&
17479 { ac_try='test -z "$ac_cxx_werror_flag"
17480 || test ! -s conftest.err'
17481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17482 (eval $ac_try) 2>&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; } &&
17486 { ac_try='test -s conftest$ac_exeext'
17487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488 (eval $ac_try) 2>&5
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; }; then
17492 ac_cv_lib_dl_dlopen=yes
17494 echo "$as_me: failed program was:" >&5
17495 sed 's/^/| /' conftest.$ac_ext >&5
17497 ac_cv_lib_dl_dlopen=no
17499 rm -f conftest.err conftest.$ac_objext \
17500 conftest$ac_exeext conftest.$ac_ext
17501 LIBS=$ac_check_lib_save_LIBS
17503 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17504 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17505 if test $ac_cv_lib_dl_dlopen = yes; then
17506 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17509 lt_cv_dlopen="dyld"
17511 lt_cv_dlopen_self=yes
17518 echo "$as_me:$LINENO: checking for shl_load" >&5
17519 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17520 if test "${ac_cv_func_shl_load+set}" = set; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17523 cat >conftest.$ac_ext <<_ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h. */
17529 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17531 #define shl_load innocuous_shl_load
17533 /* System header to define __stub macros and hopefully few prototypes,
17534 which can conflict with char shl_load (); below.
17535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17536 <limits.h> exists even on freestanding compilers. */
17539 # include <limits.h>
17541 # include <assert.h>
17546 /* Override any gcc2 internal prototype to avoid an error. */
17551 /* We use char because int might match the return type of a gcc2
17552 builtin and then its argument prototype would still apply. */
17554 /* The GNU C library defines this for functions which it implements
17555 to always fail with ENOSYS. Some functions are actually named
17556 something starting with __ and the normal name is an alias. */
17557 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17560 char (*f) () = shl_load;
17569 return f != shl_load;
17574 rm -f conftest.$ac_objext conftest$ac_exeext
17575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17576 (eval $ac_link) 2>conftest.er1
17578 grep -v '^ *+' conftest.er1 >conftest.err
17580 cat conftest.err >&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); } &&
17583 { ac_try='test -z "$ac_cxx_werror_flag"
17584 || test ! -s conftest.err'
17585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586 (eval $ac_try) 2>&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); }; } &&
17590 { ac_try='test -s conftest$ac_exeext'
17591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592 (eval $ac_try) 2>&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; }; then
17596 ac_cv_func_shl_load=yes
17598 echo "$as_me: failed program was:" >&5
17599 sed 's/^/| /' conftest.$ac_ext >&5
17601 ac_cv_func_shl_load=no
17603 rm -f conftest.err conftest.$ac_objext \
17604 conftest$ac_exeext conftest.$ac_ext
17606 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17607 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17608 if test $ac_cv_func_shl_load = yes; then
17609 lt_cv_dlopen="shl_load"
17611 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17612 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17613 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17614 echo $ECHO_N "(cached) $ECHO_C" >&6
17616 ac_check_lib_save_LIBS=$LIBS
17618 cat >conftest.$ac_ext <<_ACEOF
17621 cat confdefs.h >>conftest.$ac_ext
17622 cat >>conftest.$ac_ext <<_ACEOF
17623 /* end confdefs.h. */
17625 /* Override any gcc2 internal prototype to avoid an error. */
17629 /* We use char because int might match the return type of a gcc2
17630 builtin and then its argument prototype would still apply. */
17640 rm -f conftest.$ac_objext conftest$ac_exeext
17641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17642 (eval $ac_link) 2>conftest.er1
17644 grep -v '^ *+' conftest.er1 >conftest.err
17646 cat conftest.err >&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); } &&
17649 { ac_try='test -z "$ac_cxx_werror_flag"
17650 || test ! -s conftest.err'
17651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652 (eval $ac_try) 2>&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; } &&
17656 { ac_try='test -s conftest$ac_exeext'
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; }; then
17662 ac_cv_lib_dld_shl_load=yes
17664 echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17667 ac_cv_lib_dld_shl_load=no
17669 rm -f conftest.err conftest.$ac_objext \
17670 conftest$ac_exeext conftest.$ac_ext
17671 LIBS=$ac_check_lib_save_LIBS
17673 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17674 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17675 if test $ac_cv_lib_dld_shl_load = yes; then
17676 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17678 echo "$as_me:$LINENO: checking for dlopen" >&5
17679 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17680 if test "${ac_cv_func_dlopen+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17683 cat >conftest.$ac_ext <<_ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17691 #define dlopen innocuous_dlopen
17693 /* System header to define __stub macros and hopefully few prototypes,
17694 which can conflict with char dlopen (); below.
17695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17696 <limits.h> exists even on freestanding compilers. */
17699 # include <limits.h>
17701 # include <assert.h>
17706 /* Override any gcc2 internal prototype to avoid an error. */
17711 /* We use char because int might match the return type of a gcc2
17712 builtin and then its argument prototype would still apply. */
17714 /* The GNU C library defines this for functions which it implements
17715 to always fail with ENOSYS. Some functions are actually named
17716 something starting with __ and the normal name is an alias. */
17717 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17720 char (*f) () = dlopen;
17729 return f != dlopen;
17734 rm -f conftest.$ac_objext conftest$ac_exeext
17735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17736 (eval $ac_link) 2>conftest.er1
17738 grep -v '^ *+' conftest.er1 >conftest.err
17740 cat conftest.err >&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); } &&
17743 { ac_try='test -z "$ac_cxx_werror_flag"
17744 || test ! -s conftest.err'
17745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746 (eval $ac_try) 2>&5
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; } &&
17750 { ac_try='test -s conftest$ac_exeext'
17751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; }; then
17756 ac_cv_func_dlopen=yes
17758 echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17761 ac_cv_func_dlopen=no
17763 rm -f conftest.err conftest.$ac_objext \
17764 conftest$ac_exeext conftest.$ac_ext
17766 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17767 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17768 if test $ac_cv_func_dlopen = yes; then
17769 lt_cv_dlopen="dlopen"
17771 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17772 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17773 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17774 echo $ECHO_N "(cached) $ECHO_C" >&6
17776 ac_check_lib_save_LIBS=$LIBS
17778 cat >conftest.$ac_ext <<_ACEOF
17781 cat confdefs.h >>conftest.$ac_ext
17782 cat >>conftest.$ac_ext <<_ACEOF
17783 /* end confdefs.h. */
17785 /* Override any gcc2 internal prototype to avoid an error. */
17789 /* We use char because int might match the return type of a gcc2
17790 builtin and then its argument prototype would still apply. */
17800 rm -f conftest.$ac_objext conftest$ac_exeext
17801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17802 (eval $ac_link) 2>conftest.er1
17804 grep -v '^ *+' conftest.er1 >conftest.err
17806 cat conftest.err >&5
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); } &&
17809 { ac_try='test -z "$ac_cxx_werror_flag"
17810 || test ! -s conftest.err'
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; } &&
17816 { ac_try='test -s conftest$ac_exeext'
17817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818 (eval $ac_try) 2>&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; }; then
17822 ac_cv_lib_dl_dlopen=yes
17824 echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17827 ac_cv_lib_dl_dlopen=no
17829 rm -f conftest.err conftest.$ac_objext \
17830 conftest$ac_exeext conftest.$ac_ext
17831 LIBS=$ac_check_lib_save_LIBS
17833 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17834 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17835 if test $ac_cv_lib_dl_dlopen = yes; then
17836 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17838 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17839 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17840 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17841 echo $ECHO_N "(cached) $ECHO_C" >&6
17843 ac_check_lib_save_LIBS=$LIBS
17844 LIBS="-lsvld $LIBS"
17845 cat >conftest.$ac_ext <<_ACEOF
17848 cat confdefs.h >>conftest.$ac_ext
17849 cat >>conftest.$ac_ext <<_ACEOF
17850 /* end confdefs.h. */
17852 /* Override any gcc2 internal prototype to avoid an error. */
17856 /* We use char because int might match the return type of a gcc2
17857 builtin and then its argument prototype would still apply. */
17867 rm -f conftest.$ac_objext conftest$ac_exeext
17868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17869 (eval $ac_link) 2>conftest.er1
17871 grep -v '^ *+' conftest.er1 >conftest.err
17873 cat conftest.err >&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); } &&
17876 { ac_try='test -z "$ac_cxx_werror_flag"
17877 || test ! -s conftest.err'
17878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17879 (eval $ac_try) 2>&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); }; } &&
17883 { ac_try='test -s conftest$ac_exeext'
17884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17885 (eval $ac_try) 2>&5
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); }; }; then
17889 ac_cv_lib_svld_dlopen=yes
17891 echo "$as_me: failed program was:" >&5
17892 sed 's/^/| /' conftest.$ac_ext >&5
17894 ac_cv_lib_svld_dlopen=no
17896 rm -f conftest.err conftest.$ac_objext \
17897 conftest$ac_exeext conftest.$ac_ext
17898 LIBS=$ac_check_lib_save_LIBS
17900 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17901 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17902 if test $ac_cv_lib_svld_dlopen = yes; then
17903 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17905 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17906 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17907 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17908 echo $ECHO_N "(cached) $ECHO_C" >&6
17910 ac_check_lib_save_LIBS=$LIBS
17912 cat >conftest.$ac_ext <<_ACEOF
17915 cat confdefs.h >>conftest.$ac_ext
17916 cat >>conftest.$ac_ext <<_ACEOF
17917 /* end confdefs.h. */
17919 /* Override any gcc2 internal prototype to avoid an error. */
17923 /* We use char because int might match the return type of a gcc2
17924 builtin and then its argument prototype would still apply. */
17934 rm -f conftest.$ac_objext conftest$ac_exeext
17935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17936 (eval $ac_link) 2>conftest.er1
17938 grep -v '^ *+' conftest.er1 >conftest.err
17940 cat conftest.err >&5
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); } &&
17943 { ac_try='test -z "$ac_cxx_werror_flag"
17944 || test ! -s conftest.err'
17945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946 (eval $ac_try) 2>&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; } &&
17950 { ac_try='test -s conftest$ac_exeext'
17951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17952 (eval $ac_try) 2>&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); }; }; then
17956 ac_cv_lib_dld_dld_link=yes
17958 echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17961 ac_cv_lib_dld_dld_link=no
17963 rm -f conftest.err conftest.$ac_objext \
17964 conftest$ac_exeext conftest.$ac_ext
17965 LIBS=$ac_check_lib_save_LIBS
17967 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17968 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17969 if test $ac_cv_lib_dld_dld_link = yes; then
17970 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17991 if test "x$lt_cv_dlopen" != xno; then
17997 case $lt_cv_dlopen in
17999 save_CPPFLAGS="$CPPFLAGS"
18000 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18002 save_LDFLAGS="$LDFLAGS"
18003 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18006 LIBS="$lt_cv_dlopen_libs $LIBS"
18008 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18009 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18010 if test "${lt_cv_dlopen_self+set}" = set; then
18011 echo $ECHO_N "(cached) $ECHO_C" >&6
18013 if test "$cross_compiling" = yes; then :
18014 lt_cv_dlopen_self=cross
18016 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18017 lt_status=$lt_dlunknown
18018 cat > conftest.$ac_ext <<EOF
18019 #line 18019 "configure"
18020 #include "confdefs.h"
18029 # define LT_DLGLOBAL RTLD_GLOBAL
18032 # define LT_DLGLOBAL DL_GLOBAL
18034 # define LT_DLGLOBAL 0
18038 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18039 find out it does not work in some platform. */
18040 #ifndef LT_DLLAZY_OR_NOW
18042 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18045 # define LT_DLLAZY_OR_NOW DL_LAZY
18048 # define LT_DLLAZY_OR_NOW RTLD_NOW
18051 # define LT_DLLAZY_OR_NOW DL_NOW
18053 # define LT_DLLAZY_OR_NOW 0
18061 extern "C" void exit (int);
18064 void fnord() { int i=42;}
18067 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18068 int status = $lt_dlunknown;
18072 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18073 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18074 /* dlclose (self); */
18080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18081 (eval $ac_link) 2>&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18085 (./conftest; exit; ) 2>/dev/null
18087 case x$lt_status in
18088 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18089 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18090 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18093 # compilation failed
18094 lt_cv_dlopen_self=no
18101 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18102 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18104 if test "x$lt_cv_dlopen_self" = xyes; then
18105 LDFLAGS="$LDFLAGS $link_static_flag"
18106 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18107 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18108 if test "${lt_cv_dlopen_self_static+set}" = set; then
18109 echo $ECHO_N "(cached) $ECHO_C" >&6
18111 if test "$cross_compiling" = yes; then :
18112 lt_cv_dlopen_self_static=cross
18114 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18115 lt_status=$lt_dlunknown
18116 cat > conftest.$ac_ext <<EOF
18117 #line 18117 "configure"
18118 #include "confdefs.h"
18127 # define LT_DLGLOBAL RTLD_GLOBAL
18130 # define LT_DLGLOBAL DL_GLOBAL
18132 # define LT_DLGLOBAL 0
18136 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18137 find out it does not work in some platform. */
18138 #ifndef LT_DLLAZY_OR_NOW
18140 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18143 # define LT_DLLAZY_OR_NOW DL_LAZY
18146 # define LT_DLLAZY_OR_NOW RTLD_NOW
18149 # define LT_DLLAZY_OR_NOW DL_NOW
18151 # define LT_DLLAZY_OR_NOW 0
18159 extern "C" void exit (int);
18162 void fnord() { int i=42;}
18165 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18166 int status = $lt_dlunknown;
18170 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18171 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18172 /* dlclose (self); */
18178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18179 (eval $ac_link) 2>&5
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18183 (./conftest; exit; ) 2>/dev/null
18185 case x$lt_status in
18186 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18187 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18188 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18191 # compilation failed
18192 lt_cv_dlopen_self_static=no
18199 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18200 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18203 CPPFLAGS="$save_CPPFLAGS"
18204 LDFLAGS="$save_LDFLAGS"
18209 case $lt_cv_dlopen_self in
18210 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18211 *) enable_dlopen_self=unknown ;;
18214 case $lt_cv_dlopen_self_static in
18215 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18216 *) enable_dlopen_self_static=unknown ;;
18221 # The else clause should only fire when bootstrapping the
18222 # libtool distribution, otherwise you forgot to ship ltmain.sh
18223 # with your package, and you will get complaints that there are
18224 # no rules to generate ltmain.sh.
18225 if test -f "$ltmain"; then
18226 # See if we are running on zsh, and set the options which allow our commands through
18227 # without removal of \ escapes.
18228 if test -n "${ZSH_VERSION+set}" ; then
18229 setopt NO_GLOB_SUBST
18231 # Now quote all the things that may contain metacharacters while being
18232 # careful not to overquote the AC_SUBSTed values. We take copies of the
18233 # variables and quote the copies for generation of the libtool script.
18234 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18236 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18237 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18238 deplibs_check_method reload_flag reload_cmds need_locks \
18239 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18240 lt_cv_sys_global_symbol_to_c_name_address \
18241 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18242 old_postinstall_cmds old_postuninstall_cmds \
18246 lt_prog_compiler_wl_CXX \
18247 lt_prog_compiler_pic_CXX \
18248 lt_prog_compiler_static_CXX \
18249 lt_prog_compiler_no_builtin_flag_CXX \
18250 export_dynamic_flag_spec_CXX \
18251 thread_safe_flag_spec_CXX \
18252 whole_archive_flag_spec_CXX \
18253 enable_shared_with_static_runtimes_CXX \
18254 old_archive_cmds_CXX \
18255 old_archive_from_new_cmds_CXX \
18256 predep_objects_CXX \
18257 postdep_objects_CXX \
18260 compiler_lib_search_path_CXX \
18262 archive_expsym_cmds_CXX \
18263 postinstall_cmds_CXX \
18264 postuninstall_cmds_CXX \
18265 old_archive_from_expsyms_cmds_CXX \
18266 allow_undefined_flag_CXX \
18267 no_undefined_flag_CXX \
18268 export_symbols_cmds_CXX \
18269 hardcode_libdir_flag_spec_CXX \
18270 hardcode_libdir_flag_spec_ld_CXX \
18271 hardcode_libdir_separator_CXX \
18272 hardcode_automatic_CXX \
18274 module_expsym_cmds_CXX \
18275 lt_cv_prog_compiler_c_o_CXX \
18276 exclude_expsyms_CXX \
18277 include_expsyms_CXX; do
18280 old_archive_cmds_CXX | \
18281 old_archive_from_new_cmds_CXX | \
18282 archive_cmds_CXX | \
18283 archive_expsym_cmds_CXX | \
18284 module_cmds_CXX | \
18285 module_expsym_cmds_CXX | \
18286 old_archive_from_expsyms_cmds_CXX | \
18287 export_symbols_cmds_CXX | \
18288 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18289 postinstall_cmds | postuninstall_cmds | \
18290 old_postinstall_cmds | old_postuninstall_cmds | \
18291 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18292 # Double-quote double-evaled strings.
18293 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18296 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18302 *'\$0 --fallback-echo"')
18303 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18309 cat <<__EOF__ >> "$cfgfile"
18310 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18312 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18314 # Shell to use when invoking shell scripts.
18317 # Whether or not to build shared libraries.
18318 build_libtool_libs=$enable_shared
18320 # Whether or not to build static libraries.
18321 build_old_libs=$enable_static
18323 # Whether or not to add -lc for building shared libraries.
18324 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18326 # Whether or not to disallow shared libs when runtime libs are static
18327 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18329 # Whether or not to optimize for fast installation.
18330 fast_install=$enable_fast_install
18333 host_alias=$host_alias
18336 # An echo program that does not interpret backslashes.
18341 AR_FLAGS=$lt_AR_FLAGS
18346 # A language-specific compiler.
18347 CC=$lt_compiler_CXX
18349 # Is the compiler the GNU C compiler?
18355 # The linker used to build libraries.
18358 # Whether we need hard or soft links.
18361 # A BSD-compatible nm program.
18364 # A symbol stripping program
18367 # Used to examine libraries when file_magic_cmd begins "file"
18368 MAGIC_CMD=$MAGIC_CMD
18370 # Used on cygwin: DLL creation program.
18373 # Used on cygwin: object dumper.
18376 # Used on cygwin: assembler.
18379 # The name of the directory that contains temporary libtool files.
18382 # How to create reloadable object files.
18383 reload_flag=$lt_reload_flag
18384 reload_cmds=$lt_reload_cmds
18386 # How to pass a linker flag through the compiler.
18387 wl=$lt_lt_prog_compiler_wl_CXX
18389 # Object file suffix (normally "o").
18390 objext="$ac_objext"
18392 # Old archive suffix (normally "a").
18395 # Shared library suffix (normally ".so").
18396 shrext_cmds='$shrext_cmds'
18398 # Executable file suffix (normally "").
18401 # Additional compiler flags for building library objects.
18402 pic_flag=$lt_lt_prog_compiler_pic_CXX
18405 # What is the maximum length of a command?
18406 max_cmd_len=$lt_cv_sys_max_cmd_len
18408 # Does compiler simultaneously support -c and -o options?
18409 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18411 # Must we lock files when doing compilation ?
18412 need_locks=$lt_need_locks
18414 # Do we need the lib prefix for modules?
18415 need_lib_prefix=$need_lib_prefix
18417 # Do we need a version for libraries?
18418 need_version=$need_version
18420 # Whether dlopen is supported.
18421 dlopen_support=$enable_dlopen
18423 # Whether dlopen of programs is supported.
18424 dlopen_self=$enable_dlopen_self
18426 # Whether dlopen of statically linked programs is supported.
18427 dlopen_self_static=$enable_dlopen_self_static
18429 # Compiler flag to prevent dynamic linking.
18430 link_static_flag=$lt_lt_prog_compiler_static_CXX
18432 # Compiler flag to turn off builtin functions.
18433 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18435 # Compiler flag to allow reflexive dlopens.
18436 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18438 # Compiler flag to generate shared objects directly from archives.
18439 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18441 # Compiler flag to generate thread-safe objects.
18442 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18444 # Library versioning type.
18445 version_type=$version_type
18447 # Format of library name prefix.
18448 libname_spec=$lt_libname_spec
18450 # List of archive names. First name is the real one, the rest are links.
18451 # The last name is the one that the linker finds with -lNAME.
18452 library_names_spec=$lt_library_names_spec
18454 # The coded name of the library, if different from the real name.
18455 soname_spec=$lt_soname_spec
18457 # Commands used to build and install an old-style archive.
18459 old_archive_cmds=$lt_old_archive_cmds_CXX
18460 old_postinstall_cmds=$lt_old_postinstall_cmds
18461 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18463 # Create an old-style archive from a shared archive.
18464 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18466 # Create a temporary old-style archive to link instead of a shared archive.
18467 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18469 # Commands used to build and install a shared archive.
18470 archive_cmds=$lt_archive_cmds_CXX
18471 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18472 postinstall_cmds=$lt_postinstall_cmds
18473 postuninstall_cmds=$lt_postuninstall_cmds
18475 # Commands used to build a loadable module (assumed same as above if empty)
18476 module_cmds=$lt_module_cmds_CXX
18477 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18479 # Commands to strip libraries.
18480 old_striplib=$lt_old_striplib
18481 striplib=$lt_striplib
18483 # Dependencies to place before the objects being linked to create a
18485 predep_objects=$lt_predep_objects_CXX
18487 # Dependencies to place after the objects being linked to create a
18489 postdep_objects=$lt_postdep_objects_CXX
18491 # Dependencies to place before the objects being linked to create a
18493 predeps=$lt_predeps_CXX
18495 # Dependencies to place after the objects being linked to create a
18497 postdeps=$lt_postdeps_CXX
18499 # The library search path used internally by the compiler when linking
18500 # a shared library.
18501 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18503 # Method to check whether dependent libraries are shared objects.
18504 deplibs_check_method=$lt_deplibs_check_method
18506 # Command to use when deplibs_check_method == file_magic.
18507 file_magic_cmd=$lt_file_magic_cmd
18509 # Flag that allows shared libraries with undefined symbols to be built.
18510 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18512 # Flag that forces no undefined symbols.
18513 no_undefined_flag=$lt_no_undefined_flag_CXX
18515 # Commands used to finish a libtool library installation in a directory.
18516 finish_cmds=$lt_finish_cmds
18518 # Same as above, but a single script fragment to be evaled but not shown.
18519 finish_eval=$lt_finish_eval
18521 # Take the output of nm and produce a listing of raw symbols and C names.
18522 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18524 # Transform the output of nm in a proper C declaration
18525 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18527 # Transform the output of nm in a C name address pair
18528 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18530 # This is the shared library runtime path variable.
18531 runpath_var=$runpath_var
18533 # This is the shared library path variable.
18534 shlibpath_var=$shlibpath_var
18536 # Is shlibpath searched before the hard-coded library search path?
18537 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18539 # How to hardcode a shared library path into an executable.
18540 hardcode_action=$hardcode_action_CXX
18542 # Whether we should hardcode library paths into libraries.
18543 hardcode_into_libs=$hardcode_into_libs
18545 # Flag to hardcode \$libdir into a binary during linking.
18546 # This must work even if \$libdir does not exist.
18547 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18549 # If ld is used when linking, flag to hardcode \$libdir into
18550 # a binary during linking. This must work even if \$libdir does
18552 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18554 # Whether we need a single -rpath flag with a separated argument.
18555 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18557 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18558 # resulting binary.
18559 hardcode_direct=$hardcode_direct_CXX
18561 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18562 # resulting binary.
18563 hardcode_minus_L=$hardcode_minus_L_CXX
18565 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18566 # the resulting binary.
18567 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18569 # Set to yes if building a shared library automatically hardcodes DIR into the library
18570 # and all subsequent libraries and executables linked against it.
18571 hardcode_automatic=$hardcode_automatic_CXX
18573 # Variables whose values should be saved in libtool wrapper scripts and
18574 # restored at relink time.
18575 variables_saved_for_relink="$variables_saved_for_relink"
18577 # Whether libtool must link a program against all its dependency libraries.
18578 link_all_deplibs=$link_all_deplibs_CXX
18580 # Compile-time system search path for libraries
18581 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18583 # Run-time system search path for libraries
18584 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18586 # Fix the shell variable \$srcfile for the compiler.
18587 fix_srcfile_path="$fix_srcfile_path_CXX"
18589 # Set to yes if exported symbols are required.
18590 always_export_symbols=$always_export_symbols_CXX
18592 # The commands to list exported symbols.
18593 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18595 # The commands to extract the exported symbol list from a shared archive.
18596 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18598 # Symbols that should not be listed in the preloaded symbols.
18599 exclude_expsyms=$lt_exclude_expsyms_CXX
18601 # Symbols that must always be exported.
18602 include_expsyms=$lt_include_expsyms_CXX
18604 # ### END LIBTOOL TAG CONFIG: $tagname
18610 # If there is no Makefile yet, we rely on a make rule to execute
18611 # `config.status --recheck' to rerun these tests and create the
18612 # libtool script then.
18613 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18614 if test -f "$ltmain_in"; then
18615 test -f Makefile && make "$ltmain"
18621 ac_cpp='$CPP $CPPFLAGS'
18622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18630 with_gnu_ldcxx=$with_gnu_ld
18631 with_gnu_ld=$lt_save_with_gnu_ld
18632 lt_cv_path_LDCXX=$lt_cv_path_LD
18633 lt_cv_path_LD=$lt_save_path_LD
18634 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18635 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18643 if test -n "$F77" && test "X$F77" != "Xno"; then
18646 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18647 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18648 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18651 archive_cmds_need_lc_F77=no
18652 allow_undefined_flag_F77=
18653 always_export_symbols_F77=no
18654 archive_expsym_cmds_F77=
18655 export_dynamic_flag_spec_F77=
18656 hardcode_direct_F77=no
18657 hardcode_libdir_flag_spec_F77=
18658 hardcode_libdir_flag_spec_ld_F77=
18659 hardcode_libdir_separator_F77=
18660 hardcode_minus_L_F77=no
18661 hardcode_automatic_F77=no
18663 module_expsym_cmds_F77=
18664 link_all_deplibs_F77=unknown
18665 old_archive_cmds_F77=$old_archive_cmds
18666 no_undefined_flag_F77=
18667 whole_archive_flag_spec_F77=
18668 enable_shared_with_static_runtimes_F77=no
18670 # Source file extension for f77 test sources.
18673 # Object file extension for compiled f77 test sources.
18677 # Code to be used in simple compile tests
18678 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18680 # Code to be used in simple link tests
18681 lt_simple_link_test_code=" program t\n end\n"
18683 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18685 # If no C compiler was specified, use CC.
18688 # Allow CC to be a program name with arguments.
18692 # Allow CC to be a program name with arguments.
18697 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18699 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18700 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18701 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18702 echo "${ECHO_T}$can_build_shared" >&6
18704 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18705 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18706 test "$can_build_shared" = "no" && enable_shared=no
18708 # On AIX, shared libraries and static libraries use the same namespace, and
18709 # are all built from PIC.
18712 test "$enable_shared" = yes && enable_static=no
18713 if test -n "$RANLIB"; then
18714 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18715 postinstall_cmds='$RANLIB $lib'
18719 test "$enable_shared" = yes && enable_static=no
18722 echo "$as_me:$LINENO: result: $enable_shared" >&5
18723 echo "${ECHO_T}$enable_shared" >&6
18725 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18726 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18727 # Make sure either enable_shared or enable_static is yes.
18728 test "$enable_shared" = yes || enable_static=yes
18729 echo "$as_me:$LINENO: result: $enable_static" >&5
18730 echo "${ECHO_T}$enable_static" >&6
18732 test "$ld_shlibs_F77" = no && can_build_shared=no
18737 lt_prog_compiler_wl_F77=
18738 lt_prog_compiler_pic_F77=
18739 lt_prog_compiler_static_F77=
18741 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18742 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18744 if test "$GCC" = yes; then
18745 lt_prog_compiler_wl_F77='-Wl,'
18746 lt_prog_compiler_static_F77='-static'
18750 # All AIX code is PIC.
18751 if test "$host_cpu" = ia64; then
18752 # AIX 5 now supports IA64 processor
18753 lt_prog_compiler_static_F77='-Bstatic'
18758 # FIXME: we need at least 68020 code to build shared libraries, but
18759 # adding the `-m68020' flag to GCC prevents building anything better,
18761 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18764 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18765 # PIC is the default for these OSes.
18768 mingw* | pw32* | os2*)
18769 # This hack is so that the source file can tell whether it is being
18770 # built for inclusion in a dll (and should export symbols for example).
18771 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18774 darwin* | rhapsody*)
18775 # PIC is the default on this platform
18776 # Common symbols not allowed in MH_DYLIB files
18777 lt_prog_compiler_pic_F77='-fno-common'
18781 # Just because we use GCC doesn't mean we suddenly get shared libraries
18782 # on systems that don't support them.
18783 lt_prog_compiler_can_build_shared_F77=no
18788 if test -d /usr/nec; then
18789 lt_prog_compiler_pic_F77=-Kconform_pic
18794 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18795 # not for PA HP-UX.
18796 case "$host_cpu" in
18801 lt_prog_compiler_pic_F77='-fPIC'
18807 lt_prog_compiler_pic_F77='-fPIC'
18811 # PORTME Check for flag to pass linker flags through the system compiler.
18814 lt_prog_compiler_wl_F77='-Wl,'
18815 if test "$host_cpu" = ia64; then
18816 # AIX 5 now supports IA64 processor
18817 lt_prog_compiler_static_F77='-Bstatic'
18819 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18823 # PIC is the default on this platform
18824 # Common symbols not allowed in MH_DYLIB files
18825 case "$cc_basename" in
18827 lt_prog_compiler_pic_F77='-qnocommon'
18828 lt_prog_compiler_wl_F77='-Wl,'
18833 mingw* | pw32* | os2*)
18834 # This hack is so that the source file can tell whether it is being
18835 # built for inclusion in a dll (and should export symbols for example).
18836 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18839 hpux9* | hpux10* | hpux11*)
18840 lt_prog_compiler_wl_F77='-Wl,'
18841 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18842 # not for PA HP-UX.
18843 case "$host_cpu" in
18848 lt_prog_compiler_pic_F77='+Z'
18851 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18852 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18855 irix5* | irix6* | nonstopux*)
18856 lt_prog_compiler_wl_F77='-Wl,'
18857 # PIC (with -KPIC) is the default.
18858 lt_prog_compiler_static_F77='-non_shared'
18862 lt_prog_compiler_pic_F77='-KPIC'
18863 lt_prog_compiler_static_F77='-Bstatic'
18869 lt_prog_compiler_wl_F77='-Wl,'
18870 lt_prog_compiler_pic_F77='-KPIC'
18871 lt_prog_compiler_static_F77='-static'
18874 lt_prog_compiler_wl_F77='-Wl,'
18875 # All Alpha code is PIC.
18876 lt_prog_compiler_static_F77='-non_shared'
18881 osf3* | osf4* | osf5*)
18882 lt_prog_compiler_wl_F77='-Wl,'
18883 # All OSF/1 code is PIC.
18884 lt_prog_compiler_static_F77='-non_shared'
18888 lt_prog_compiler_pic_F77='-Kpic'
18889 lt_prog_compiler_static_F77='-dn'
18893 lt_prog_compiler_wl_F77='-Wl,'
18894 lt_prog_compiler_pic_F77='-KPIC'
18895 lt_prog_compiler_static_F77='-Bstatic'
18899 lt_prog_compiler_wl_F77='-Qoption ld '
18900 lt_prog_compiler_pic_F77='-PIC'
18901 lt_prog_compiler_static_F77='-Bstatic'
18904 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18905 lt_prog_compiler_wl_F77='-Wl,'
18906 lt_prog_compiler_pic_F77='-KPIC'
18907 lt_prog_compiler_static_F77='-Bstatic'
18911 if test -d /usr/nec ;then
18912 lt_prog_compiler_pic_F77='-Kconform_pic'
18913 lt_prog_compiler_static_F77='-Bstatic'
18918 lt_prog_compiler_pic_F77='-pic'
18919 lt_prog_compiler_static_F77='-Bstatic'
18923 lt_prog_compiler_can_build_shared_F77=no
18928 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18929 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18932 # Check to make sure the PIC flag actually works.
18934 if test -n "$lt_prog_compiler_pic_F77"; then
18936 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18937 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18938 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18939 echo $ECHO_N "(cached) $ECHO_C" >&6
18941 lt_prog_compiler_pic_works_F77=no
18942 ac_outfile=conftest.$ac_objext
18943 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18944 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18945 # Insert the option either (1) after the last *FLAGS variable, or
18946 # (2) before a word containing "conftest.", or (3) at the end.
18947 # Note that $ac_compile itself does not contain backslashes and begins
18948 # with a dollar sign (not a hyphen), so the echo should work correctly.
18949 # The option is referenced via a variable to avoid confusing sed.
18950 lt_compile=`echo "$ac_compile" | $SED \
18951 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18953 -e 's:$: $lt_compiler_flag:'`
18954 (eval echo "\"\$as_me:18954: $lt_compile\"" >&5)
18955 (eval "$lt_compile" 2>conftest.err)
18957 cat conftest.err >&5
18958 echo "$as_me:18958: \$? = $ac_status" >&5
18959 if (exit $ac_status) && test -s "$ac_outfile"; then
18960 # The compiler can only warn and ignore the option if not recognized
18961 # So say no if there are warnings
18962 if test ! -s conftest.err; then
18963 lt_prog_compiler_pic_works_F77=yes
18969 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18970 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18972 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18973 case $lt_prog_compiler_pic_F77 in
18975 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18978 lt_prog_compiler_pic_F77=
18979 lt_prog_compiler_can_build_shared_F77=no
18984 # For platforms which do not support PIC, -DPIC is meaningless:
18986 lt_prog_compiler_pic_F77=
18989 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18993 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18994 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18995 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18996 echo $ECHO_N "(cached) $ECHO_C" >&6
18998 lt_cv_prog_compiler_c_o_F77=no
18999 $rm -r conftest 2>/dev/null
19003 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19005 lt_compiler_flag="-o out/conftest2.$ac_objext"
19006 # Insert the option either (1) after the last *FLAGS variable, or
19007 # (2) before a word containing "conftest.", or (3) at the end.
19008 # Note that $ac_compile itself does not contain backslashes and begins
19009 # with a dollar sign (not a hyphen), so the echo should work correctly.
19010 lt_compile=`echo "$ac_compile" | $SED \
19011 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19013 -e 's:$: $lt_compiler_flag:'`
19014 (eval echo "\"\$as_me:19014: $lt_compile\"" >&5)
19015 (eval "$lt_compile" 2>out/conftest.err)
19017 cat out/conftest.err >&5
19018 echo "$as_me:19018: \$? = $ac_status" >&5
19019 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19021 # The compiler can only warn and ignore the option if not recognized
19022 # So say no if there are warnings
19023 if test ! -s out/conftest.err; then
19024 lt_cv_prog_compiler_c_o_F77=yes
19029 # SGI C++ compiler will create directory out/ii_files/ for
19030 # template instantiation
19031 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19032 $rm out/* && rmdir out
19038 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19039 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19042 hard_links="nottested"
19043 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19044 # do not overwrite the value of need_locks provided by the user
19045 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19046 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19049 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19051 ln conftest.a conftest.b 2>&5 || hard_links=no
19052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19053 echo "$as_me:$LINENO: result: $hard_links" >&5
19054 echo "${ECHO_T}$hard_links" >&6
19055 if test "$hard_links" = no; then
19056 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19057 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19064 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19065 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19068 allow_undefined_flag_F77=
19069 enable_shared_with_static_runtimes_F77=no
19071 archive_expsym_cmds_F77=
19072 old_archive_From_new_cmds_F77=
19073 old_archive_from_expsyms_cmds_F77=
19074 export_dynamic_flag_spec_F77=
19075 whole_archive_flag_spec_F77=
19076 thread_safe_flag_spec_F77=
19077 hardcode_libdir_flag_spec_F77=
19078 hardcode_libdir_flag_spec_ld_F77=
19079 hardcode_libdir_separator_F77=
19080 hardcode_direct_F77=no
19081 hardcode_minus_L_F77=no
19082 hardcode_shlibpath_var_F77=unsupported
19083 link_all_deplibs_F77=unknown
19084 hardcode_automatic_F77=no
19086 module_expsym_cmds_F77=
19087 always_export_symbols_F77=no
19088 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19089 # include_expsyms should be a list of space-separated symbols to be *always*
19090 # included in the symbol list
19091 include_expsyms_F77=
19092 # exclude_expsyms can be an extended regexp of symbols to exclude
19093 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19094 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19095 # as well as any symbol that contains `d'.
19096 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19097 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19098 # platforms (ab)use it in PIC code, but their linkers get confused if
19099 # the symbol is explicitly referenced. Since portable code cannot
19100 # rely on this symbol name, it's probably fine to never include it in
19101 # preloaded symbol tables.
19102 extract_expsyms_cmds=
19105 cygwin* | mingw* | pw32*)
19106 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19107 # When not using gcc, we currently assume that we are using
19108 # Microsoft Visual C++.
19109 if test "$GCC" != yes; then
19119 if test "$with_gnu_ld" = yes; then
19120 # If archive_cmds runs LD, not CC, wlarc should be empty
19123 # See if GNU ld supports shared libraries.
19125 aix3* | aix4* | aix5*)
19126 # On AIX/PPC, the GNU linker is very broken
19127 if test "$host_cpu" != ia64; then
19131 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19132 *** to be unable to reliably create shared libraries on AIX.
19133 *** Therefore, libtool is disabling shared libraries support. If you
19134 *** really care for shared libraries, you may want to modify your PATH
19135 *** so that a non-GNU linker is found, and then restart.
19142 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)'
19143 hardcode_libdir_flag_spec_F77='-L$libdir'
19144 hardcode_minus_L_F77=yes
19146 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19147 # that the semantics of dynamic libraries on AmigaOS, at least up
19148 # to version 4, is to share data among multiple programs linked
19149 # with the same dynamic library. Since this doesn't match the
19150 # behavior of shared libraries on other platforms, we can't use
19156 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19157 allow_undefined_flag_F77=unsupported
19158 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19159 # support --undefined. This deserves some investigation. FIXME
19160 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19166 cygwin* | mingw* | pw32*)
19167 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19168 # as there is no search path for DLLs.
19169 hardcode_libdir_flag_spec_F77='-L$libdir'
19170 allow_undefined_flag_F77=unsupported
19171 always_export_symbols_F77=no
19172 enable_shared_with_static_runtimes_F77=yes
19173 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19175 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19176 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19177 # If the export-symbols file already is a .def file (1st line
19178 # is EXPORTS), use it as is; otherwise, prepend...
19179 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19180 cp $export_symbols $output_objdir/$soname.def;
19182 echo EXPORTS > $output_objdir/$soname.def;
19183 cat $export_symbols >> $output_objdir/$soname.def;
19185 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19192 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19193 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19196 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19197 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19202 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19206 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19207 *** create shared libraries on Solaris systems. Therefore, libtool
19208 *** is disabling shared libraries support. We urge you to upgrade GNU
19209 *** binutils to release 2.9.1 or newer. Another option is to modify
19210 *** your PATH or compiler configuration so that the native linker is
19211 *** used, and then restart.
19214 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19215 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19216 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19223 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19225 hardcode_direct_F77=yes
19226 hardcode_shlibpath_var_F77=no
19230 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19231 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19232 archive_cmds_F77="$tmp_archive_cmds"
19233 supports_anon_versioning=no
19234 case `$LD -v 2>/dev/null` in
19235 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19236 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19237 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19238 *\ 2.11.*) ;; # other 2.11 versions
19239 *) supports_anon_versioning=yes ;;
19241 if test $supports_anon_versioning = yes; then
19242 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19243 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19244 $echo "local: *; };" >> $output_objdir/$libname.ver~
19245 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19247 archive_expsym_cmds_F77="$tmp_archive_cmds"
19255 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19256 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19257 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19264 if test "$ld_shlibs_F77" = yes; then
19265 runpath_var=LD_RUN_PATH
19266 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19267 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19268 # ancient GNU ld didn't support --whole-archive et. al.
19269 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19270 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19272 whole_archive_flag_spec_F77=
19276 # PORTME fill in a description of your system's linker (not GNU ld)
19279 allow_undefined_flag_F77=unsupported
19280 always_export_symbols_F77=yes
19281 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'
19282 # Note: this linker hardcodes the directories in LIBPATH if there
19283 # are no directories specified by -L.
19284 hardcode_minus_L_F77=yes
19285 if test "$GCC" = yes && test -z "$link_static_flag"; then
19286 # Neither direct hardcoding nor static linking is supported with a
19288 hardcode_direct_F77=unsupported
19293 if test "$host_cpu" = ia64; then
19294 # On IA64, the linker does run time linking by default, so we don't
19295 # have to do anything special.
19296 aix_use_runtimelinking=no
19297 exp_sym_flag='-Bexport'
19300 # If we're using GNU nm, then we don't want the "-C" option.
19301 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19302 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19303 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'
19305 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'
19307 aix_use_runtimelinking=no
19309 # Test if we are trying to use run time linking or normal
19310 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19311 # need to do runtime linking.
19312 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19313 for ld_flag in $LDFLAGS; do
19314 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19315 aix_use_runtimelinking=yes
19321 exp_sym_flag='-bexport'
19322 no_entry_flag='-bnoentry'
19325 # When large executables or shared objects are built, AIX ld can
19326 # have problems creating the table of contents. If linking a library
19327 # or program results in "error TOC overflow" add -mminimal-toc to
19328 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19329 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19331 archive_cmds_F77=''
19332 hardcode_direct_F77=yes
19333 hardcode_libdir_separator_F77=':'
19334 link_all_deplibs_F77=yes
19336 if test "$GCC" = yes; then
19337 case $host_os in aix4.012|aix4.012.*)
19338 # We only want to do this on AIX 4.2 and lower, the check
19339 # below for broken collect2 doesn't work under 4.3+
19340 collect2name=`${CC} -print-prog-name=collect2`
19341 if test -f "$collect2name" && \
19342 strings "$collect2name" | grep resolve_lib_name >/dev/null
19344 # We have reworked collect2
19345 hardcode_direct_F77=yes
19347 # We have old collect2
19348 hardcode_direct_F77=unsupported
19349 # It fails to find uninstalled libraries when the uninstalled
19350 # path is not listed in the libpath. Setting hardcode_minus_L
19351 # to unsupported forces relinking
19352 hardcode_minus_L_F77=yes
19353 hardcode_libdir_flag_spec_F77='-L$libdir'
19354 hardcode_libdir_separator_F77=
19357 shared_flag='-shared'
19360 if test "$host_cpu" = ia64; then
19361 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19362 # chokes on -Wl,-G. The following line is correct:
19365 if test "$aix_use_runtimelinking" = yes; then
19366 shared_flag='${wl}-G'
19368 shared_flag='${wl}-bM:SRE'
19373 # It seems that -bexpall does not export symbols beginning with
19374 # underscore (_), so it is better to generate a list of symbols to export.
19375 always_export_symbols_F77=yes
19376 if test "$aix_use_runtimelinking" = yes; then
19377 # Warning - without using the other runtime loading flags (-brtl),
19378 # -berok will link without error, but may produce a broken library.
19379 allow_undefined_flag_F77='-berok'
19380 # Determine the default libpath from the value encoded in an empty executable.
19381 cat >conftest.$ac_ext <<_ACEOF
19386 rm -f conftest.$ac_objext conftest$ac_exeext
19387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19388 (eval $ac_link) 2>conftest.er1
19390 grep -v '^ *+' conftest.er1 >conftest.err
19392 cat conftest.err >&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); } &&
19395 { ac_try='test -z "$ac_f77_werror_flag"
19396 || test ! -s conftest.err'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; } &&
19402 { ac_try='test -s conftest$ac_exeext'
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; }; then
19409 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19411 # Check for a 64-bit object if we didn't find anything.
19412 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19415 echo "$as_me: failed program was:" >&5
19416 sed 's/^/| /' conftest.$ac_ext >&5
19419 rm -f conftest.err conftest.$ac_objext \
19420 conftest$ac_exeext conftest.$ac_ext
19421 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19423 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19424 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"
19426 if test "$host_cpu" = ia64; then
19427 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19428 allow_undefined_flag_F77="-z nodefs"
19429 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"
19431 # Determine the default libpath from the value encoded in an empty executable.
19432 cat >conftest.$ac_ext <<_ACEOF
19437 rm -f conftest.$ac_objext conftest$ac_exeext
19438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19439 (eval $ac_link) 2>conftest.er1
19441 grep -v '^ *+' conftest.er1 >conftest.err
19443 cat conftest.err >&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); } &&
19446 { ac_try='test -z "$ac_f77_werror_flag"
19447 || test ! -s conftest.err'
19448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449 (eval $ac_try) 2>&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; } &&
19453 { ac_try='test -s conftest$ac_exeext'
19454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19455 (eval $ac_try) 2>&5
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); }; }; then
19460 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19462 # Check for a 64-bit object if we didn't find anything.
19463 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; }
19466 echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19470 rm -f conftest.err conftest.$ac_objext \
19471 conftest$ac_exeext conftest.$ac_ext
19472 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19474 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19475 # Warning - without using the other run time loading flags,
19476 # -berok will link without error, but may produce a broken library.
19477 no_undefined_flag_F77=' ${wl}-bernotok'
19478 allow_undefined_flag_F77=' ${wl}-berok'
19479 # -bexpall does not export symbols beginning with underscore (_)
19480 always_export_symbols_F77=yes
19481 # Exported symbols can be pulled into shared objects from archives
19482 whole_archive_flag_spec_F77=' '
19483 archive_cmds_need_lc_F77=yes
19484 # This is similar to how AIX traditionally builds it's shared libraries.
19485 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'
19491 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)'
19492 hardcode_libdir_flag_spec_F77='-L$libdir'
19493 hardcode_minus_L_F77=yes
19494 # see comment about different semantics on the GNU ld section
19499 export_dynamic_flag_spec_F77=-rdynamic
19502 cygwin* | mingw* | pw32*)
19503 # When not using gcc, we currently assume that we are using
19504 # Microsoft Visual C++.
19505 # hardcode_libdir_flag_spec is actually meaningless, as there is
19506 # no search path for DLLs.
19507 hardcode_libdir_flag_spec_F77=' '
19508 allow_undefined_flag_F77=unsupported
19509 # Tell ltmain to make .lib files, not .a files.
19511 # Tell ltmain to make .dll files, not .so files.
19513 # FIXME: Setting linknames here is a bad hack.
19514 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19515 # The linker will automatically build a .lib file if we build a DLL.
19516 old_archive_From_new_cmds_F77='true'
19517 # FIXME: Should let the user specify the lib program.
19518 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19519 fix_srcfile_path='`cygpath -w "$srcfile"`'
19520 enable_shared_with_static_runtimes_F77=yes
19523 darwin* | rhapsody*)
19525 rhapsody* | darwin1.[012])
19526 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19529 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19530 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19532 case ${MACOSX_DEPLOYMENT_TARGET} in
19534 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19537 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19543 archive_cmds_need_lc_F77=no
19544 hardcode_direct_F77=no
19545 hardcode_automatic_F77=yes
19546 hardcode_shlibpath_var_F77=unsupported
19547 whole_archive_flag_spec_F77=''
19548 link_all_deplibs_F77=yes
19549 if test "$GCC" = yes ; then
19550 output_verbose_link_cmd='echo'
19551 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19552 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19553 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19554 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}'
19555 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}'
19557 case "$cc_basename" in
19559 output_verbose_link_cmd='echo'
19560 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19561 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19562 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19563 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}'
19564 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}'
19574 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19575 hardcode_libdir_flag_spec_F77='-L$libdir'
19576 hardcode_shlibpath_var_F77=no
19583 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19584 # support. Future versions do this automatically, but an explicit c++rt0.o
19585 # does not break anything, and helps significantly (at the cost of a little
19588 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19589 hardcode_libdir_flag_spec_F77='-R$libdir'
19590 hardcode_direct_F77=yes
19591 hardcode_shlibpath_var_F77=no
19594 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19596 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19597 hardcode_direct_F77=yes
19598 hardcode_minus_L_F77=yes
19599 hardcode_shlibpath_var_F77=no
19602 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19603 freebsd* | kfreebsd*-gnu)
19604 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19605 hardcode_libdir_flag_spec_F77='-R$libdir'
19606 hardcode_direct_F77=yes
19607 hardcode_shlibpath_var_F77=no
19611 if test "$GCC" = yes; then
19612 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'
19614 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'
19616 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19617 hardcode_libdir_separator_F77=:
19618 hardcode_direct_F77=yes
19620 # hardcode_minus_L: Not really in the search PATH,
19621 # but as the default location of the library.
19622 hardcode_minus_L_F77=yes
19623 export_dynamic_flag_spec_F77='${wl}-E'
19627 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19628 case "$host_cpu" in
19630 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19633 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19637 case "$host_cpu" in
19639 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19642 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19646 if test "$with_gnu_ld" = no; then
19647 case "$host_cpu" in
19649 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19650 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19651 hardcode_libdir_separator_F77=:
19652 hardcode_direct_F77=no
19653 hardcode_shlibpath_var_F77=no
19656 hardcode_libdir_flag_spec_F77='-L$libdir'
19657 hardcode_direct_F77=no
19658 hardcode_shlibpath_var_F77=no
19660 # hardcode_minus_L: Not really in the search PATH,
19661 # but as the default location of the library.
19662 hardcode_minus_L_F77=yes
19665 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19666 hardcode_libdir_separator_F77=:
19667 hardcode_direct_F77=yes
19668 export_dynamic_flag_spec_F77='${wl}-E'
19670 # hardcode_minus_L: Not really in the search PATH,
19671 # but as the default location of the library.
19672 hardcode_minus_L_F77=yes
19678 irix5* | irix6* | nonstopux*)
19679 if test "$GCC" = yes; then
19680 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'
19682 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'
19683 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19685 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19686 hardcode_libdir_separator_F77=:
19687 link_all_deplibs_F77=yes
19691 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19692 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19694 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19696 hardcode_libdir_flag_spec_F77='-R$libdir'
19697 hardcode_direct_F77=yes
19698 hardcode_shlibpath_var_F77=no
19702 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19703 hardcode_direct_F77=yes
19704 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19705 hardcode_libdir_separator_F77=:
19706 hardcode_shlibpath_var_F77=no
19710 hardcode_direct_F77=yes
19711 hardcode_shlibpath_var_F77=no
19712 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19713 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19714 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19715 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19716 export_dynamic_flag_spec_F77='${wl}-E'
19719 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19720 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19721 hardcode_libdir_flag_spec_F77='-R$libdir'
19724 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19725 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19732 hardcode_libdir_flag_spec_F77='-L$libdir'
19733 hardcode_minus_L_F77=yes
19734 allow_undefined_flag_F77=unsupported
19735 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'
19736 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19740 if test "$GCC" = yes; then
19741 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19742 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'
19744 allow_undefined_flag_F77=' -expect_unresolved \*'
19745 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'
19747 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19748 hardcode_libdir_separator_F77=:
19751 osf4* | osf5*) # as osf3* with the addition of -msym flag
19752 if test "$GCC" = yes; then
19753 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19754 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'
19755 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19757 allow_undefined_flag_F77=' -expect_unresolved \*'
19758 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'
19759 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~
19760 $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'
19762 # Both c and cxx compiler support -rpath directly
19763 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19765 hardcode_libdir_separator_F77=:
19769 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19770 hardcode_shlibpath_var_F77=no
19771 export_dynamic_flag_spec_F77='${wl}-Bexport'
19772 runpath_var=LD_RUN_PATH
19773 hardcode_runpath_var=yes
19777 no_undefined_flag_F77=' -z text'
19778 if test "$GCC" = yes; then
19779 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19780 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19781 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19783 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19784 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19785 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19787 hardcode_libdir_flag_spec_F77='-R$libdir'
19788 hardcode_shlibpath_var_F77=no
19790 solaris2.[0-5] | solaris2.[0-5].*) ;;
19791 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19792 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19794 link_all_deplibs_F77=yes
19798 if test "x$host_vendor" = xsequent; then
19799 # Use $CC to link under sequent, because it throws in some extra .o
19800 # files that make .init and .fini sections work.
19801 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19803 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19805 hardcode_libdir_flag_spec_F77='-L$libdir'
19806 hardcode_direct_F77=yes
19807 hardcode_minus_L_F77=yes
19808 hardcode_shlibpath_var_F77=no
19812 case $host_vendor in
19814 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19815 hardcode_direct_F77=yes # is this really true???
19818 ## LD is ld it makes a PLAMLIB
19819 ## CC just makes a GrossModule.
19820 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19821 reload_cmds_F77='$CC -r -o $output$reload_objs'
19822 hardcode_direct_F77=no
19825 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19826 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19829 runpath_var='LD_RUN_PATH'
19830 hardcode_shlibpath_var_F77=no
19834 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19835 hardcode_shlibpath_var_F77=no
19836 export_dynamic_flag_spec_F77='-Bexport'
19840 if test -d /usr/nec; then
19841 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19842 hardcode_shlibpath_var_F77=no
19843 runpath_var=LD_RUN_PATH
19844 hardcode_runpath_var=yes
19850 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19851 hardcode_direct_F77=yes
19852 hardcode_minus_L_F77=no
19853 hardcode_shlibpath_var_F77=no
19854 hardcode_runpath_var=yes
19855 runpath_var=LD_RUN_PATH
19858 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19859 no_undefined_flag_F77='${wl}-z ${wl}text'
19860 if test "$GCC" = yes; then
19861 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19863 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19865 runpath_var='LD_RUN_PATH'
19866 hardcode_shlibpath_var_F77=no
19870 no_undefined_flag_F77=' -z text'
19871 # $CC -shared without GNU ld will not create a library from C++
19872 # object files and a static libstdc++, better avoid it by now
19873 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19874 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19875 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19876 hardcode_libdir_flag_spec_F77=
19877 hardcode_shlibpath_var_F77=no
19878 runpath_var='LD_RUN_PATH'
19882 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19883 hardcode_libdir_flag_spec_F77='-L$libdir'
19884 hardcode_shlibpath_var_F77=no
19893 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19894 echo "${ECHO_T}$ld_shlibs_F77" >&6
19895 test "$ld_shlibs_F77" = no && can_build_shared=no
19897 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19898 if test "$GCC" = yes; then
19899 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19903 # Do we need to explicitly link libc?
19905 case "x$archive_cmds_need_lc_F77" in
19907 # Assume -lc should be added
19908 archive_cmds_need_lc_F77=yes
19910 if test "$enable_shared" = yes && test "$GCC" = yes; then
19911 case $archive_cmds_F77 in
19913 # FIXME: we may have to deal with multi-command sequences.
19916 # Test whether the compiler implicitly links with -lc since on some
19917 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19918 # to ld, don't add -lc before -lgcc.
19919 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19920 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19922 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19925 (eval $ac_compile) 2>&5
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); } 2>conftest.err; then
19931 libobjs=conftest.$ac_objext
19933 wl=$lt_prog_compiler_wl_F77
19939 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19940 allow_undefined_flag_F77=
19941 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19942 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }
19947 archive_cmds_need_lc_F77=no
19949 archive_cmds_need_lc_F77=yes
19951 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19953 cat conftest.err 1>&5
19956 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19957 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19964 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19965 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19966 library_names_spec=
19967 libname_spec='lib$name'
19971 postuninstall_cmds=
19975 shlibpath_overrides_runpath=unknown
19977 dynamic_linker="$host_os ld.so"
19978 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19979 if test "$GCC" = yes; then
19980 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19981 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19982 # if the path contains ";" then we assume it to be the separator
19983 # otherwise default to the standard path separator (i.e. ":") - it is
19984 # assumed that no part of a normal pathname contains ";" but that should
19985 # okay in the real world where ";" in dirpaths is itself problematic.
19986 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19988 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19991 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19993 need_lib_prefix=unknown
19994 hardcode_into_libs=no
19996 # when you set need_version to no, make sure it does not cause -set_version
19997 # flags to be left without arguments
19998 need_version=unknown
20003 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20004 shlibpath_var=LIBPATH
20006 # AIX 3 has no versioning support, so we append a major version to the name.
20007 soname_spec='${libname}${release}${shared_ext}$major'
20014 hardcode_into_libs=yes
20015 if test "$host_cpu" = ia64; then
20016 # AIX 5 supports IA64
20017 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20018 shlibpath_var=LD_LIBRARY_PATH
20020 # With GCC up to 2.95.x, collect2 would create an import file
20021 # for dependence libraries. The import file would start with
20022 # the line `#! .'. This would cause the generated library to
20023 # depend on `.', always an invalid library. This was fixed in
20024 # development snapshots of GCC prior to 3.0.
20026 aix4 | aix4.[01] | aix4.[01].*)
20027 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20029 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20032 can_build_shared=no
20036 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20037 # soname into executable. Probably we can add versioning support to
20038 # collect2, so additional links can be useful in future.
20039 if test "$aix_use_runtimelinking" = yes; then
20040 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20041 # instead of lib<name>.a to let people know that these are not
20042 # typical AIX shared libraries.
20043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20045 # We preserve .a as extension for shared libraries through AIX4.2
20046 # and later when we are not doing run time linking.
20047 library_names_spec='${libname}${release}.a $libname.a'
20048 soname_spec='${libname}${release}${shared_ext}$major'
20050 shlibpath_var=LIBPATH
20055 library_names_spec='$libname.ixlibrary $libname.a'
20056 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20057 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'
20061 library_names_spec='${libname}${shared_ext}'
20062 dynamic_linker="$host_os ld.so"
20063 shlibpath_var=LIBRARY_PATH
20069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20070 soname_spec='${libname}${release}${shared_ext}$major'
20071 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20072 shlibpath_var=LD_LIBRARY_PATH
20073 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20074 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20075 # the default ld.so.conf also contains /usr/contrib/lib and
20076 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20077 # libtool to hard-code these into programs
20080 cygwin* | mingw* | pw32*)
20081 version_type=windows
20086 case $GCC,$host_os in
20087 yes,cygwin* | yes,mingw* | yes,pw32*)
20088 library_names_spec='$libname.dll.a'
20089 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20090 postinstall_cmds='base_file=`basename \${file}`~
20091 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20092 dldir=$destdir/`dirname \$dlpath`~
20093 test -d \$dldir || mkdir -p \$dldir~
20094 $install_prog $dir/$dlname \$dldir/$dlname'
20095 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20096 dlpath=$dir/\$dldll~
20098 shlibpath_overrides_runpath=yes
20102 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20103 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20104 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20107 # MinGW DLLs use traditional 'lib' prefix
20108 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20109 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20110 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20111 # It is most probably a Windows format PATH printed by
20112 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20113 # path with ; separators, and with drive letters. We can handle the
20114 # drive letters (cygwin fileutils understands them), so leave them,
20115 # especially as we might pass files found there to a mingw objdump,
20116 # which wouldn't understand a cygwinified path. Ahh.
20117 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20119 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20123 # pw32 DLLs use 'pw' prefix rather than 'lib'
20124 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20130 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20133 dynamic_linker='Win32 ld.exe'
20134 # FIXME: first we should search . and the directory the executable is in
20138 darwin* | rhapsody*)
20139 dynamic_linker="$host_os dyld"
20140 version_type=darwin
20143 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20144 soname_spec='${libname}${release}${major}$shared_ext'
20145 shlibpath_overrides_runpath=yes
20146 shlibpath_var=DYLD_LIBRARY_PATH
20147 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20148 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20149 if test "$GCC" = yes; then
20150 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"`
20152 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20154 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20162 soname_spec='${libname}${release}${shared_ext}$major'
20163 shlibpath_var=LD_LIBRARY_PATH
20174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20175 soname_spec='${libname}${release}${shared_ext}$major'
20176 shlibpath_var=LD_LIBRARY_PATH
20177 shlibpath_overrides_runpath=no
20178 hardcode_into_libs=yes
20179 dynamic_linker='GNU ld.so'
20183 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20184 version_type=freebsd-$objformat
20185 case $version_type in
20187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20192 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20196 shlibpath_var=LD_LIBRARY_PATH
20199 shlibpath_overrides_runpath=yes
20201 freebsd3.01* | freebsdelf3.01*)
20202 shlibpath_overrides_runpath=yes
20203 hardcode_into_libs=yes
20206 shlibpath_overrides_runpath=no
20207 hardcode_into_libs=yes
20216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20217 soname_spec='${libname}${release}${shared_ext}$major'
20218 shlibpath_var=LD_LIBRARY_PATH
20219 hardcode_into_libs=yes
20222 hpux9* | hpux10* | hpux11*)
20223 # Give a soname corresponding to the major version so that dld.sl refuses to
20224 # link against other versions.
20228 case "$host_cpu" in
20231 hardcode_into_libs=yes
20232 dynamic_linker="$host_os dld.so"
20233 shlibpath_var=LD_LIBRARY_PATH
20234 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20236 soname_spec='${libname}${release}${shared_ext}$major'
20237 if test "X$HPUX_IA64_MODE" = X32; then
20238 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20240 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20242 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20246 hardcode_into_libs=yes
20247 dynamic_linker="$host_os dld.sl"
20248 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20249 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20251 soname_spec='${libname}${release}${shared_ext}$major'
20252 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20253 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20257 dynamic_linker="$host_os dld.sl"
20258 shlibpath_var=SHLIB_PATH
20259 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20261 soname_spec='${libname}${release}${shared_ext}$major'
20264 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20265 postinstall_cmds='chmod 555 $lib'
20268 irix5* | irix6* | nonstopux*)
20270 nonstopux*) version_type=nonstopux ;;
20272 if test "$lt_cv_prog_gnu_ld" = yes; then
20280 soname_spec='${libname}${release}${shared_ext}$major'
20281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20283 irix5* | nonstopux*)
20284 libsuff= shlibsuff=
20287 case $LD in # libtool.m4 will add one of these switches to LD
20288 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20289 libsuff= shlibsuff= libmagic=32-bit;;
20290 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20291 libsuff=32 shlibsuff=N32 libmagic=N32;;
20292 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20293 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20294 *) libsuff= shlibsuff= libmagic=never-match;;
20298 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20299 shlibpath_overrides_runpath=no
20300 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20301 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20302 hardcode_into_libs=yes
20305 # No shared lib support for Linux oldld, aout, or coff.
20306 linux*oldld* | linux*aout* | linux*coff*)
20310 # This must be Linux ELF.
20315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20316 soname_spec='${libname}${release}${shared_ext}$major'
20317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20318 shlibpath_var=LD_LIBRARY_PATH
20319 shlibpath_overrides_runpath=no
20320 # This implies no fast_install, which is unacceptable.
20321 # Some rework will be needed to allow for fast_install
20322 # before this can be enabled.
20323 hardcode_into_libs=yes
20325 # Append ld.so.conf contents to the search path
20326 if test -f /etc/ld.so.conf; then
20327 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20328 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20331 # We used to test for /lib/ld.so.1 and disable shared libraries on
20332 # powerpc, because MkLinux only supported shared libraries with the
20333 # GNU dynamic linker. Since this was broken with cross compilers,
20334 # most powerpc-linux boxes support dynamic linking these days and
20335 # people can always --disable-shared, the test was removed, and we
20336 # assume the GNU/Linux dynamic linker is in use.
20337 dynamic_linker='GNU/Linux ld.so'
20344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20345 soname_spec='${libname}${release}${shared_ext}$major'
20346 shlibpath_var=LD_LIBRARY_PATH
20347 shlibpath_overrides_runpath=no
20348 hardcode_into_libs=yes
20349 dynamic_linker='GNU ld.so'
20356 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20359 dynamic_linker='NetBSD (a.out) ld.so'
20361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20362 soname_spec='${libname}${release}${shared_ext}$major'
20363 dynamic_linker='NetBSD ld.elf_so'
20365 shlibpath_var=LD_LIBRARY_PATH
20366 shlibpath_overrides_runpath=yes
20367 hardcode_into_libs=yes
20372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20373 shlibpath_var=LD_LIBRARY_PATH
20374 shlibpath_overrides_runpath=yes
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
20391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20393 shlibpath_var=LD_LIBRARY_PATH
20394 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20396 openbsd2.[89] | openbsd2.[89].*)
20397 shlibpath_overrides_runpath=no
20400 shlibpath_overrides_runpath=yes
20404 shlibpath_overrides_runpath=yes
20409 libname_spec='$name'
20412 library_names_spec='$libname${shared_ext} $libname.a'
20413 dynamic_linker='OS/2 ld.exe'
20414 shlibpath_var=LIBPATH
20417 osf3* | osf4* | osf5*)
20421 soname_spec='${libname}${release}${shared_ext}$major'
20422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20423 shlibpath_var=LD_LIBRARY_PATH
20424 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20425 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20430 soname_spec='${libname}${release}${shared_ext}$major'
20431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20432 shlibpath_var=LD_LIBRARY_PATH
20439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20440 soname_spec='${libname}${release}${shared_ext}$major'
20441 shlibpath_var=LD_LIBRARY_PATH
20442 shlibpath_overrides_runpath=yes
20443 hardcode_into_libs=yes
20444 # ldd complains unless libraries are executable
20445 postinstall_cmds='chmod +x $lib'
20450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20451 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20452 shlibpath_var=LD_LIBRARY_PATH
20453 shlibpath_overrides_runpath=yes
20454 if test "$with_gnu_ld" = yes; then
20460 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20463 soname_spec='${libname}${release}${shared_ext}$major'
20464 shlibpath_var=LD_LIBRARY_PATH
20465 case $host_vendor in
20467 shlibpath_overrides_runpath=no
20469 export_dynamic_flag_spec='${wl}-Blargedynsym'
20470 runpath_var=LD_RUN_PATH
20478 shlibpath_overrides_runpath=no
20479 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20485 if test -d /usr/nec ;then
20487 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20488 soname_spec='$libname${shared_ext}.$major'
20489 shlibpath_var=LD_LIBRARY_PATH
20495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20496 soname_spec='${libname}${release}${shared_ext}$major'
20497 shlibpath_var=LD_LIBRARY_PATH
20504 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20505 echo "${ECHO_T}$dynamic_linker" >&6
20506 test "$dynamic_linker" = no && can_build_shared=no
20508 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20509 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20510 hardcode_action_F77=
20511 if test -n "$hardcode_libdir_flag_spec_F77" || \
20512 test -n "$runpath_var_F77" || \
20513 test "X$hardcode_automatic_F77" = "Xyes" ; then
20515 # We can hardcode non-existant directories.
20516 if test "$hardcode_direct_F77" != no &&
20517 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20518 # have to relink, otherwise we might link with an installed library
20519 # when we should be linking with a yet-to-be-installed one
20520 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20521 test "$hardcode_minus_L_F77" != no; then
20522 # Linking always hardcodes the temporary library directory.
20523 hardcode_action_F77=relink
20525 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20526 hardcode_action_F77=immediate
20529 # We cannot hardcode anything, or else we can only hardcode existing
20531 hardcode_action_F77=unsupported
20533 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20534 echo "${ECHO_T}$hardcode_action_F77" >&6
20536 if test "$hardcode_action_F77" = relink; then
20537 # Fast installation is not supported
20538 enable_fast_install=no
20539 elif test "$shlibpath_overrides_runpath" = yes ||
20540 test "$enable_shared" = no; then
20541 # Fast installation is not necessary
20542 enable_fast_install=needless
20547 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20548 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20549 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20550 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20551 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20552 echo "$as_me:$LINENO: result: yes" >&5
20553 echo "${ECHO_T}yes" >&6
20555 # FIXME - insert some real tests, host_os isn't really good enough
20558 if test -n "$STRIP" ; then
20559 striplib="$STRIP -x"
20560 echo "$as_me:$LINENO: result: yes" >&5
20561 echo "${ECHO_T}yes" >&6
20563 echo "$as_me:$LINENO: result: no" >&5
20564 echo "${ECHO_T}no" >&6
20568 echo "$as_me:$LINENO: result: no" >&5
20569 echo "${ECHO_T}no" >&6
20576 # The else clause should only fire when bootstrapping the
20577 # libtool distribution, otherwise you forgot to ship ltmain.sh
20578 # with your package, and you will get complaints that there are
20579 # no rules to generate ltmain.sh.
20580 if test -f "$ltmain"; then
20581 # See if we are running on zsh, and set the options which allow our commands through
20582 # without removal of \ escapes.
20583 if test -n "${ZSH_VERSION+set}" ; then
20584 setopt NO_GLOB_SUBST
20586 # Now quote all the things that may contain metacharacters while being
20587 # careful not to overquote the AC_SUBSTed values. We take copies of the
20588 # variables and quote the copies for generation of the libtool script.
20589 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20591 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20592 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20593 deplibs_check_method reload_flag reload_cmds need_locks \
20594 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20595 lt_cv_sys_global_symbol_to_c_name_address \
20596 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20597 old_postinstall_cmds old_postuninstall_cmds \
20601 lt_prog_compiler_wl_F77 \
20602 lt_prog_compiler_pic_F77 \
20603 lt_prog_compiler_static_F77 \
20604 lt_prog_compiler_no_builtin_flag_F77 \
20605 export_dynamic_flag_spec_F77 \
20606 thread_safe_flag_spec_F77 \
20607 whole_archive_flag_spec_F77 \
20608 enable_shared_with_static_runtimes_F77 \
20609 old_archive_cmds_F77 \
20610 old_archive_from_new_cmds_F77 \
20611 predep_objects_F77 \
20612 postdep_objects_F77 \
20615 compiler_lib_search_path_F77 \
20617 archive_expsym_cmds_F77 \
20618 postinstall_cmds_F77 \
20619 postuninstall_cmds_F77 \
20620 old_archive_from_expsyms_cmds_F77 \
20621 allow_undefined_flag_F77 \
20622 no_undefined_flag_F77 \
20623 export_symbols_cmds_F77 \
20624 hardcode_libdir_flag_spec_F77 \
20625 hardcode_libdir_flag_spec_ld_F77 \
20626 hardcode_libdir_separator_F77 \
20627 hardcode_automatic_F77 \
20629 module_expsym_cmds_F77 \
20630 lt_cv_prog_compiler_c_o_F77 \
20631 exclude_expsyms_F77 \
20632 include_expsyms_F77; do
20635 old_archive_cmds_F77 | \
20636 old_archive_from_new_cmds_F77 | \
20637 archive_cmds_F77 | \
20638 archive_expsym_cmds_F77 | \
20639 module_cmds_F77 | \
20640 module_expsym_cmds_F77 | \
20641 old_archive_from_expsyms_cmds_F77 | \
20642 export_symbols_cmds_F77 | \
20643 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20644 postinstall_cmds | postuninstall_cmds | \
20645 old_postinstall_cmds | old_postuninstall_cmds | \
20646 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20647 # Double-quote double-evaled strings.
20648 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20651 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20657 *'\$0 --fallback-echo"')
20658 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20664 cat <<__EOF__ >> "$cfgfile"
20665 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20667 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20669 # Shell to use when invoking shell scripts.
20672 # Whether or not to build shared libraries.
20673 build_libtool_libs=$enable_shared
20675 # Whether or not to build static libraries.
20676 build_old_libs=$enable_static
20678 # Whether or not to add -lc for building shared libraries.
20679 build_libtool_need_lc=$archive_cmds_need_lc_F77
20681 # Whether or not to disallow shared libs when runtime libs are static
20682 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20684 # Whether or not to optimize for fast installation.
20685 fast_install=$enable_fast_install
20688 host_alias=$host_alias
20691 # An echo program that does not interpret backslashes.
20696 AR_FLAGS=$lt_AR_FLAGS
20701 # A language-specific compiler.
20702 CC=$lt_compiler_F77
20704 # Is the compiler the GNU C compiler?
20710 # The linker used to build libraries.
20713 # Whether we need hard or soft links.
20716 # A BSD-compatible nm program.
20719 # A symbol stripping program
20722 # Used to examine libraries when file_magic_cmd begins "file"
20723 MAGIC_CMD=$MAGIC_CMD
20725 # Used on cygwin: DLL creation program.
20728 # Used on cygwin: object dumper.
20731 # Used on cygwin: assembler.
20734 # The name of the directory that contains temporary libtool files.
20737 # How to create reloadable object files.
20738 reload_flag=$lt_reload_flag
20739 reload_cmds=$lt_reload_cmds
20741 # How to pass a linker flag through the compiler.
20742 wl=$lt_lt_prog_compiler_wl_F77
20744 # Object file suffix (normally "o").
20745 objext="$ac_objext"
20747 # Old archive suffix (normally "a").
20750 # Shared library suffix (normally ".so").
20751 shrext_cmds='$shrext_cmds'
20753 # Executable file suffix (normally "").
20756 # Additional compiler flags for building library objects.
20757 pic_flag=$lt_lt_prog_compiler_pic_F77
20760 # What is the maximum length of a command?
20761 max_cmd_len=$lt_cv_sys_max_cmd_len
20763 # Does compiler simultaneously support -c and -o options?
20764 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20766 # Must we lock files when doing compilation ?
20767 need_locks=$lt_need_locks
20769 # Do we need the lib prefix for modules?
20770 need_lib_prefix=$need_lib_prefix
20772 # Do we need a version for libraries?
20773 need_version=$need_version
20775 # Whether dlopen is supported.
20776 dlopen_support=$enable_dlopen
20778 # Whether dlopen of programs is supported.
20779 dlopen_self=$enable_dlopen_self
20781 # Whether dlopen of statically linked programs is supported.
20782 dlopen_self_static=$enable_dlopen_self_static
20784 # Compiler flag to prevent dynamic linking.
20785 link_static_flag=$lt_lt_prog_compiler_static_F77
20787 # Compiler flag to turn off builtin functions.
20788 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20790 # Compiler flag to allow reflexive dlopens.
20791 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20793 # Compiler flag to generate shared objects directly from archives.
20794 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20796 # Compiler flag to generate thread-safe objects.
20797 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20799 # Library versioning type.
20800 version_type=$version_type
20802 # Format of library name prefix.
20803 libname_spec=$lt_libname_spec
20805 # List of archive names. First name is the real one, the rest are links.
20806 # The last name is the one that the linker finds with -lNAME.
20807 library_names_spec=$lt_library_names_spec
20809 # The coded name of the library, if different from the real name.
20810 soname_spec=$lt_soname_spec
20812 # Commands used to build and install an old-style archive.
20814 old_archive_cmds=$lt_old_archive_cmds_F77
20815 old_postinstall_cmds=$lt_old_postinstall_cmds
20816 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20818 # Create an old-style archive from a shared archive.
20819 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20821 # Create a temporary old-style archive to link instead of a shared archive.
20822 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20824 # Commands used to build and install a shared archive.
20825 archive_cmds=$lt_archive_cmds_F77
20826 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20827 postinstall_cmds=$lt_postinstall_cmds
20828 postuninstall_cmds=$lt_postuninstall_cmds
20830 # Commands used to build a loadable module (assumed same as above if empty)
20831 module_cmds=$lt_module_cmds_F77
20832 module_expsym_cmds=$lt_module_expsym_cmds_F77
20834 # Commands to strip libraries.
20835 old_striplib=$lt_old_striplib
20836 striplib=$lt_striplib
20838 # Dependencies to place before the objects being linked to create a
20840 predep_objects=$lt_predep_objects_F77
20842 # Dependencies to place after the objects being linked to create a
20844 postdep_objects=$lt_postdep_objects_F77
20846 # Dependencies to place before the objects being linked to create a
20848 predeps=$lt_predeps_F77
20850 # Dependencies to place after the objects being linked to create a
20852 postdeps=$lt_postdeps_F77
20854 # The library search path used internally by the compiler when linking
20855 # a shared library.
20856 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20858 # Method to check whether dependent libraries are shared objects.
20859 deplibs_check_method=$lt_deplibs_check_method
20861 # Command to use when deplibs_check_method == file_magic.
20862 file_magic_cmd=$lt_file_magic_cmd
20864 # Flag that allows shared libraries with undefined symbols to be built.
20865 allow_undefined_flag=$lt_allow_undefined_flag_F77
20867 # Flag that forces no undefined symbols.
20868 no_undefined_flag=$lt_no_undefined_flag_F77
20870 # Commands used to finish a libtool library installation in a directory.
20871 finish_cmds=$lt_finish_cmds
20873 # Same as above, but a single script fragment to be evaled but not shown.
20874 finish_eval=$lt_finish_eval
20876 # Take the output of nm and produce a listing of raw symbols and C names.
20877 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20879 # Transform the output of nm in a proper C declaration
20880 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20882 # Transform the output of nm in a C name address pair
20883 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20885 # This is the shared library runtime path variable.
20886 runpath_var=$runpath_var
20888 # This is the shared library path variable.
20889 shlibpath_var=$shlibpath_var
20891 # Is shlibpath searched before the hard-coded library search path?
20892 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20894 # How to hardcode a shared library path into an executable.
20895 hardcode_action=$hardcode_action_F77
20897 # Whether we should hardcode library paths into libraries.
20898 hardcode_into_libs=$hardcode_into_libs
20900 # Flag to hardcode \$libdir into a binary during linking.
20901 # This must work even if \$libdir does not exist.
20902 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20904 # If ld is used when linking, flag to hardcode \$libdir into
20905 # a binary during linking. This must work even if \$libdir does
20907 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20909 # Whether we need a single -rpath flag with a separated argument.
20910 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20912 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20913 # resulting binary.
20914 hardcode_direct=$hardcode_direct_F77
20916 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20917 # resulting binary.
20918 hardcode_minus_L=$hardcode_minus_L_F77
20920 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20921 # the resulting binary.
20922 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20924 # Set to yes if building a shared library automatically hardcodes DIR into the library
20925 # and all subsequent libraries and executables linked against it.
20926 hardcode_automatic=$hardcode_automatic_F77
20928 # Variables whose values should be saved in libtool wrapper scripts and
20929 # restored at relink time.
20930 variables_saved_for_relink="$variables_saved_for_relink"
20932 # Whether libtool must link a program against all its dependency libraries.
20933 link_all_deplibs=$link_all_deplibs_F77
20935 # Compile-time system search path for libraries
20936 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20938 # Run-time system search path for libraries
20939 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20941 # Fix the shell variable \$srcfile for the compiler.
20942 fix_srcfile_path="$fix_srcfile_path_F77"
20944 # Set to yes if exported symbols are required.
20945 always_export_symbols=$always_export_symbols_F77
20947 # The commands to list exported symbols.
20948 export_symbols_cmds=$lt_export_symbols_cmds_F77
20950 # The commands to extract the exported symbol list from a shared archive.
20951 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20953 # Symbols that should not be listed in the preloaded symbols.
20954 exclude_expsyms=$lt_exclude_expsyms_F77
20956 # Symbols that must always be exported.
20957 include_expsyms=$lt_include_expsyms_F77
20959 # ### END LIBTOOL TAG CONFIG: $tagname
20965 # If there is no Makefile yet, we rely on a make rule to execute
20966 # `config.status --recheck' to rerun these tests and create the
20967 # libtool script then.
20968 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20969 if test -f "$ltmain_in"; then
20970 test -f Makefile && make "$ltmain"
20976 ac_cpp='$CPP $CPPFLAGS'
20977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20989 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20991 ac_cpp='$CPP $CPPFLAGS'
20992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20997 # Source file extension for Java test sources.
21000 # Object file extension for compiled Java test sources.
21004 # Code to be used in simple compile tests
21005 lt_simple_compile_test_code="class foo {}\n"
21007 # Code to be used in simple link tests
21008 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21010 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21012 # If no C compiler was specified, use CC.
21015 # Allow CC to be a program name with arguments.
21019 # Allow CC to be a program name with arguments.
21025 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21026 archive_cmds_need_lc_GCJ=no
21029 lt_prog_compiler_no_builtin_flag_GCJ=
21031 if test "$GCC" = yes; then
21032 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21035 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21036 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21037 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21040 lt_cv_prog_compiler_rtti_exceptions=no
21041 ac_outfile=conftest.$ac_objext
21042 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21043 lt_compiler_flag="-fno-rtti -fno-exceptions"
21044 # Insert the option either (1) after the last *FLAGS variable, or
21045 # (2) before a word containing "conftest.", or (3) at the end.
21046 # Note that $ac_compile itself does not contain backslashes and begins
21047 # with a dollar sign (not a hyphen), so the echo should work correctly.
21048 # The option is referenced via a variable to avoid confusing sed.
21049 lt_compile=`echo "$ac_compile" | $SED \
21050 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21052 -e 's:$: $lt_compiler_flag:'`
21053 (eval echo "\"\$as_me:21053: $lt_compile\"" >&5)
21054 (eval "$lt_compile" 2>conftest.err)
21056 cat conftest.err >&5
21057 echo "$as_me:21057: \$? = $ac_status" >&5
21058 if (exit $ac_status) && test -s "$ac_outfile"; then
21059 # The compiler can only warn and ignore the option if not recognized
21060 # So say no if there are warnings
21061 if test ! -s conftest.err; then
21062 lt_cv_prog_compiler_rtti_exceptions=yes
21068 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21069 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21071 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21072 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21079 lt_prog_compiler_wl_GCJ=
21080 lt_prog_compiler_pic_GCJ=
21081 lt_prog_compiler_static_GCJ=
21083 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21084 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21086 if test "$GCC" = yes; then
21087 lt_prog_compiler_wl_GCJ='-Wl,'
21088 lt_prog_compiler_static_GCJ='-static'
21092 # All AIX code is PIC.
21093 if test "$host_cpu" = ia64; then
21094 # AIX 5 now supports IA64 processor
21095 lt_prog_compiler_static_GCJ='-Bstatic'
21100 # FIXME: we need at least 68020 code to build shared libraries, but
21101 # adding the `-m68020' flag to GCC prevents building anything better,
21103 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21106 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21107 # PIC is the default for these OSes.
21110 mingw* | pw32* | os2*)
21111 # This hack is so that the source file can tell whether it is being
21112 # built for inclusion in a dll (and should export symbols for example).
21113 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21116 darwin* | rhapsody*)
21117 # PIC is the default on this platform
21118 # Common symbols not allowed in MH_DYLIB files
21119 lt_prog_compiler_pic_GCJ='-fno-common'
21123 # Just because we use GCC doesn't mean we suddenly get shared libraries
21124 # on systems that don't support them.
21125 lt_prog_compiler_can_build_shared_GCJ=no
21130 if test -d /usr/nec; then
21131 lt_prog_compiler_pic_GCJ=-Kconform_pic
21136 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21137 # not for PA HP-UX.
21138 case "$host_cpu" in
21143 lt_prog_compiler_pic_GCJ='-fPIC'
21149 lt_prog_compiler_pic_GCJ='-fPIC'
21153 # PORTME Check for flag to pass linker flags through the system compiler.
21156 lt_prog_compiler_wl_GCJ='-Wl,'
21157 if test "$host_cpu" = ia64; then
21158 # AIX 5 now supports IA64 processor
21159 lt_prog_compiler_static_GCJ='-Bstatic'
21161 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21165 # PIC is the default on this platform
21166 # Common symbols not allowed in MH_DYLIB files
21167 case "$cc_basename" in
21169 lt_prog_compiler_pic_GCJ='-qnocommon'
21170 lt_prog_compiler_wl_GCJ='-Wl,'
21175 mingw* | pw32* | os2*)
21176 # This hack is so that the source file can tell whether it is being
21177 # built for inclusion in a dll (and should export symbols for example).
21178 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21181 hpux9* | hpux10* | hpux11*)
21182 lt_prog_compiler_wl_GCJ='-Wl,'
21183 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21184 # not for PA HP-UX.
21185 case "$host_cpu" in
21190 lt_prog_compiler_pic_GCJ='+Z'
21193 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21194 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21197 irix5* | irix6* | nonstopux*)
21198 lt_prog_compiler_wl_GCJ='-Wl,'
21199 # PIC (with -KPIC) is the default.
21200 lt_prog_compiler_static_GCJ='-non_shared'
21204 lt_prog_compiler_pic_GCJ='-KPIC'
21205 lt_prog_compiler_static_GCJ='-Bstatic'
21211 lt_prog_compiler_wl_GCJ='-Wl,'
21212 lt_prog_compiler_pic_GCJ='-KPIC'
21213 lt_prog_compiler_static_GCJ='-static'
21216 lt_prog_compiler_wl_GCJ='-Wl,'
21217 # All Alpha code is PIC.
21218 lt_prog_compiler_static_GCJ='-non_shared'
21223 osf3* | osf4* | osf5*)
21224 lt_prog_compiler_wl_GCJ='-Wl,'
21225 # All OSF/1 code is PIC.
21226 lt_prog_compiler_static_GCJ='-non_shared'
21230 lt_prog_compiler_pic_GCJ='-Kpic'
21231 lt_prog_compiler_static_GCJ='-dn'
21235 lt_prog_compiler_wl_GCJ='-Wl,'
21236 lt_prog_compiler_pic_GCJ='-KPIC'
21237 lt_prog_compiler_static_GCJ='-Bstatic'
21241 lt_prog_compiler_wl_GCJ='-Qoption ld '
21242 lt_prog_compiler_pic_GCJ='-PIC'
21243 lt_prog_compiler_static_GCJ='-Bstatic'
21246 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21247 lt_prog_compiler_wl_GCJ='-Wl,'
21248 lt_prog_compiler_pic_GCJ='-KPIC'
21249 lt_prog_compiler_static_GCJ='-Bstatic'
21253 if test -d /usr/nec ;then
21254 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21255 lt_prog_compiler_static_GCJ='-Bstatic'
21260 lt_prog_compiler_pic_GCJ='-pic'
21261 lt_prog_compiler_static_GCJ='-Bstatic'
21265 lt_prog_compiler_can_build_shared_GCJ=no
21270 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21271 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21274 # Check to make sure the PIC flag actually works.
21276 if test -n "$lt_prog_compiler_pic_GCJ"; then
21278 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21279 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21280 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21283 lt_prog_compiler_pic_works_GCJ=no
21284 ac_outfile=conftest.$ac_objext
21285 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21286 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21287 # Insert the option either (1) after the last *FLAGS variable, or
21288 # (2) before a word containing "conftest.", or (3) at the end.
21289 # Note that $ac_compile itself does not contain backslashes and begins
21290 # with a dollar sign (not a hyphen), so the echo should work correctly.
21291 # The option is referenced via a variable to avoid confusing sed.
21292 lt_compile=`echo "$ac_compile" | $SED \
21293 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21295 -e 's:$: $lt_compiler_flag:'`
21296 (eval echo "\"\$as_me:21296: $lt_compile\"" >&5)
21297 (eval "$lt_compile" 2>conftest.err)
21299 cat conftest.err >&5
21300 echo "$as_me:21300: \$? = $ac_status" >&5
21301 if (exit $ac_status) && test -s "$ac_outfile"; then
21302 # The compiler can only warn and ignore the option if not recognized
21303 # So say no if there are warnings
21304 if test ! -s conftest.err; then
21305 lt_prog_compiler_pic_works_GCJ=yes
21311 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21312 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21314 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21315 case $lt_prog_compiler_pic_GCJ in
21317 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21320 lt_prog_compiler_pic_GCJ=
21321 lt_prog_compiler_can_build_shared_GCJ=no
21326 # For platforms which do not support PIC, -DPIC is meaningless:
21328 lt_prog_compiler_pic_GCJ=
21331 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21335 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21336 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21337 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21338 echo $ECHO_N "(cached) $ECHO_C" >&6
21340 lt_cv_prog_compiler_c_o_GCJ=no
21341 $rm -r conftest 2>/dev/null
21345 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21347 lt_compiler_flag="-o out/conftest2.$ac_objext"
21348 # Insert the option either (1) after the last *FLAGS variable, or
21349 # (2) before a word containing "conftest.", or (3) at the end.
21350 # Note that $ac_compile itself does not contain backslashes and begins
21351 # with a dollar sign (not a hyphen), so the echo should work correctly.
21352 lt_compile=`echo "$ac_compile" | $SED \
21353 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21355 -e 's:$: $lt_compiler_flag:'`
21356 (eval echo "\"\$as_me:21356: $lt_compile\"" >&5)
21357 (eval "$lt_compile" 2>out/conftest.err)
21359 cat out/conftest.err >&5
21360 echo "$as_me:21360: \$? = $ac_status" >&5
21361 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21363 # The compiler can only warn and ignore the option if not recognized
21364 # So say no if there are warnings
21365 if test ! -s out/conftest.err; then
21366 lt_cv_prog_compiler_c_o_GCJ=yes
21371 # SGI C++ compiler will create directory out/ii_files/ for
21372 # template instantiation
21373 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21374 $rm out/* && rmdir out
21380 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21381 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21384 hard_links="nottested"
21385 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21386 # do not overwrite the value of need_locks provided by the user
21387 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21388 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21391 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21393 ln conftest.a conftest.b 2>&5 || hard_links=no
21394 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21395 echo "$as_me:$LINENO: result: $hard_links" >&5
21396 echo "${ECHO_T}$hard_links" >&6
21397 if test "$hard_links" = no; then
21398 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21399 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21406 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21407 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21410 allow_undefined_flag_GCJ=
21411 enable_shared_with_static_runtimes_GCJ=no
21413 archive_expsym_cmds_GCJ=
21414 old_archive_From_new_cmds_GCJ=
21415 old_archive_from_expsyms_cmds_GCJ=
21416 export_dynamic_flag_spec_GCJ=
21417 whole_archive_flag_spec_GCJ=
21418 thread_safe_flag_spec_GCJ=
21419 hardcode_libdir_flag_spec_GCJ=
21420 hardcode_libdir_flag_spec_ld_GCJ=
21421 hardcode_libdir_separator_GCJ=
21422 hardcode_direct_GCJ=no
21423 hardcode_minus_L_GCJ=no
21424 hardcode_shlibpath_var_GCJ=unsupported
21425 link_all_deplibs_GCJ=unknown
21426 hardcode_automatic_GCJ=no
21428 module_expsym_cmds_GCJ=
21429 always_export_symbols_GCJ=no
21430 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21431 # include_expsyms should be a list of space-separated symbols to be *always*
21432 # included in the symbol list
21433 include_expsyms_GCJ=
21434 # exclude_expsyms can be an extended regexp of symbols to exclude
21435 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21436 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21437 # as well as any symbol that contains `d'.
21438 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21439 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21440 # platforms (ab)use it in PIC code, but their linkers get confused if
21441 # the symbol is explicitly referenced. Since portable code cannot
21442 # rely on this symbol name, it's probably fine to never include it in
21443 # preloaded symbol tables.
21444 extract_expsyms_cmds=
21447 cygwin* | mingw* | pw32*)
21448 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21449 # When not using gcc, we currently assume that we are using
21450 # Microsoft Visual C++.
21451 if test "$GCC" != yes; then
21461 if test "$with_gnu_ld" = yes; then
21462 # If archive_cmds runs LD, not CC, wlarc should be empty
21465 # See if GNU ld supports shared libraries.
21467 aix3* | aix4* | aix5*)
21468 # On AIX/PPC, the GNU linker is very broken
21469 if test "$host_cpu" != ia64; then
21473 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21474 *** to be unable to reliably create shared libraries on AIX.
21475 *** Therefore, libtool is disabling shared libraries support. If you
21476 *** really care for shared libraries, you may want to modify your PATH
21477 *** so that a non-GNU linker is found, and then restart.
21484 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)'
21485 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21486 hardcode_minus_L_GCJ=yes
21488 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21489 # that the semantics of dynamic libraries on AmigaOS, at least up
21490 # to version 4, is to share data among multiple programs linked
21491 # with the same dynamic library. Since this doesn't match the
21492 # behavior of shared libraries on other platforms, we can't use
21498 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21499 allow_undefined_flag_GCJ=unsupported
21500 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21501 # support --undefined. This deserves some investigation. FIXME
21502 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21508 cygwin* | mingw* | pw32*)
21509 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21510 # as there is no search path for DLLs.
21511 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21512 allow_undefined_flag_GCJ=unsupported
21513 always_export_symbols_GCJ=no
21514 enable_shared_with_static_runtimes_GCJ=yes
21515 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21517 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21518 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21519 # If the export-symbols file already is a .def file (1st line
21520 # is EXPORTS), use it as is; otherwise, prepend...
21521 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21522 cp $export_symbols $output_objdir/$soname.def;
21524 echo EXPORTS > $output_objdir/$soname.def;
21525 cat $export_symbols >> $output_objdir/$soname.def;
21527 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21534 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21535 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21538 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21539 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21544 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21548 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21549 *** create shared libraries on Solaris systems. Therefore, libtool
21550 *** is disabling shared libraries support. We urge you to upgrade GNU
21551 *** binutils to release 2.9.1 or newer. Another option is to modify
21552 *** your PATH or compiler configuration so that the native linker is
21553 *** used, and then restart.
21556 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21557 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21558 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21565 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21567 hardcode_direct_GCJ=yes
21568 hardcode_shlibpath_var_GCJ=no
21572 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21573 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21574 archive_cmds_GCJ="$tmp_archive_cmds"
21575 supports_anon_versioning=no
21576 case `$LD -v 2>/dev/null` in
21577 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21578 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21579 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21580 *\ 2.11.*) ;; # other 2.11 versions
21581 *) supports_anon_versioning=yes ;;
21583 if test $supports_anon_versioning = yes; then
21584 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21585 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21586 $echo "local: *; };" >> $output_objdir/$libname.ver~
21587 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21589 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21597 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21598 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21599 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21606 if test "$ld_shlibs_GCJ" = yes; then
21607 runpath_var=LD_RUN_PATH
21608 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21609 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21610 # ancient GNU ld didn't support --whole-archive et. al.
21611 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21612 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21614 whole_archive_flag_spec_GCJ=
21618 # PORTME fill in a description of your system's linker (not GNU ld)
21621 allow_undefined_flag_GCJ=unsupported
21622 always_export_symbols_GCJ=yes
21623 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'
21624 # Note: this linker hardcodes the directories in LIBPATH if there
21625 # are no directories specified by -L.
21626 hardcode_minus_L_GCJ=yes
21627 if test "$GCC" = yes && test -z "$link_static_flag"; then
21628 # Neither direct hardcoding nor static linking is supported with a
21630 hardcode_direct_GCJ=unsupported
21635 if test "$host_cpu" = ia64; then
21636 # On IA64, the linker does run time linking by default, so we don't
21637 # have to do anything special.
21638 aix_use_runtimelinking=no
21639 exp_sym_flag='-Bexport'
21642 # If we're using GNU nm, then we don't want the "-C" option.
21643 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21644 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21645 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'
21647 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'
21649 aix_use_runtimelinking=no
21651 # Test if we are trying to use run time linking or normal
21652 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21653 # need to do runtime linking.
21654 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21655 for ld_flag in $LDFLAGS; do
21656 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21657 aix_use_runtimelinking=yes
21663 exp_sym_flag='-bexport'
21664 no_entry_flag='-bnoentry'
21667 # When large executables or shared objects are built, AIX ld can
21668 # have problems creating the table of contents. If linking a library
21669 # or program results in "error TOC overflow" add -mminimal-toc to
21670 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21671 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21673 archive_cmds_GCJ=''
21674 hardcode_direct_GCJ=yes
21675 hardcode_libdir_separator_GCJ=':'
21676 link_all_deplibs_GCJ=yes
21678 if test "$GCC" = yes; then
21679 case $host_os in aix4.012|aix4.012.*)
21680 # We only want to do this on AIX 4.2 and lower, the check
21681 # below for broken collect2 doesn't work under 4.3+
21682 collect2name=`${CC} -print-prog-name=collect2`
21683 if test -f "$collect2name" && \
21684 strings "$collect2name" | grep resolve_lib_name >/dev/null
21686 # We have reworked collect2
21687 hardcode_direct_GCJ=yes
21689 # We have old collect2
21690 hardcode_direct_GCJ=unsupported
21691 # It fails to find uninstalled libraries when the uninstalled
21692 # path is not listed in the libpath. Setting hardcode_minus_L
21693 # to unsupported forces relinking
21694 hardcode_minus_L_GCJ=yes
21695 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21696 hardcode_libdir_separator_GCJ=
21699 shared_flag='-shared'
21702 if test "$host_cpu" = ia64; then
21703 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21704 # chokes on -Wl,-G. The following line is correct:
21707 if test "$aix_use_runtimelinking" = yes; then
21708 shared_flag='${wl}-G'
21710 shared_flag='${wl}-bM:SRE'
21715 # It seems that -bexpall does not export symbols beginning with
21716 # underscore (_), so it is better to generate a list of symbols to export.
21717 always_export_symbols_GCJ=yes
21718 if test "$aix_use_runtimelinking" = yes; then
21719 # Warning - without using the other runtime loading flags (-brtl),
21720 # -berok will link without error, but may produce a broken library.
21721 allow_undefined_flag_GCJ='-berok'
21722 # Determine the default libpath from the value encoded in an empty executable.
21723 cat >conftest.$ac_ext <<_ACEOF
21726 cat confdefs.h >>conftest.$ac_ext
21727 cat >>conftest.$ac_ext <<_ACEOF
21728 /* end confdefs.h. */
21738 rm -f conftest.$ac_objext conftest$ac_exeext
21739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21740 (eval $ac_link) 2>conftest.er1
21742 grep -v '^ *+' conftest.er1 >conftest.err
21744 cat conftest.err >&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); } &&
21747 { ac_try='test -z "$ac_c_werror_flag"
21748 || test ! -s conftest.err'
21749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21750 (eval $ac_try) 2>&5
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); }; } &&
21754 { ac_try='test -s conftest$ac_exeext'
21755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21756 (eval $ac_try) 2>&5
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); }; }; then
21761 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21763 # Check for a 64-bit object if we didn't find anything.
21764 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; }
21767 echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.$ac_ext >&5
21771 rm -f conftest.err conftest.$ac_objext \
21772 conftest$ac_exeext conftest.$ac_ext
21773 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21775 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21776 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"
21778 if test "$host_cpu" = ia64; then
21779 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21780 allow_undefined_flag_GCJ="-z nodefs"
21781 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"
21783 # Determine the default libpath from the value encoded in an empty executable.
21784 cat >conftest.$ac_ext <<_ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21799 rm -f conftest.$ac_objext conftest$ac_exeext
21800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21801 (eval $ac_link) 2>conftest.er1
21803 grep -v '^ *+' conftest.er1 >conftest.err
21805 cat conftest.err >&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } &&
21808 { ac_try='test -z "$ac_c_werror_flag"
21809 || test ! -s conftest.err'
21810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21811 (eval $ac_try) 2>&5
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); }; } &&
21815 { ac_try='test -s conftest$ac_exeext'
21816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817 (eval $ac_try) 2>&5
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); }; }; then
21822 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21824 # Check for a 64-bit object if we didn't find anything.
21825 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; }
21828 echo "$as_me: failed program was:" >&5
21829 sed 's/^/| /' conftest.$ac_ext >&5
21832 rm -f conftest.err conftest.$ac_objext \
21833 conftest$ac_exeext conftest.$ac_ext
21834 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21836 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21837 # Warning - without using the other run time loading flags,
21838 # -berok will link without error, but may produce a broken library.
21839 no_undefined_flag_GCJ=' ${wl}-bernotok'
21840 allow_undefined_flag_GCJ=' ${wl}-berok'
21841 # -bexpall does not export symbols beginning with underscore (_)
21842 always_export_symbols_GCJ=yes
21843 # Exported symbols can be pulled into shared objects from archives
21844 whole_archive_flag_spec_GCJ=' '
21845 archive_cmds_need_lc_GCJ=yes
21846 # This is similar to how AIX traditionally builds it's shared libraries.
21847 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'
21853 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)'
21854 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21855 hardcode_minus_L_GCJ=yes
21856 # see comment about different semantics on the GNU ld section
21861 export_dynamic_flag_spec_GCJ=-rdynamic
21864 cygwin* | mingw* | pw32*)
21865 # When not using gcc, we currently assume that we are using
21866 # Microsoft Visual C++.
21867 # hardcode_libdir_flag_spec is actually meaningless, as there is
21868 # no search path for DLLs.
21869 hardcode_libdir_flag_spec_GCJ=' '
21870 allow_undefined_flag_GCJ=unsupported
21871 # Tell ltmain to make .lib files, not .a files.
21873 # Tell ltmain to make .dll files, not .so files.
21875 # FIXME: Setting linknames here is a bad hack.
21876 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21877 # The linker will automatically build a .lib file if we build a DLL.
21878 old_archive_From_new_cmds_GCJ='true'
21879 # FIXME: Should let the user specify the lib program.
21880 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21881 fix_srcfile_path='`cygpath -w "$srcfile"`'
21882 enable_shared_with_static_runtimes_GCJ=yes
21885 darwin* | rhapsody*)
21887 rhapsody* | darwin1.[012])
21888 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21891 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21892 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21894 case ${MACOSX_DEPLOYMENT_TARGET} in
21896 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21899 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21905 archive_cmds_need_lc_GCJ=no
21906 hardcode_direct_GCJ=no
21907 hardcode_automatic_GCJ=yes
21908 hardcode_shlibpath_var_GCJ=unsupported
21909 whole_archive_flag_spec_GCJ=''
21910 link_all_deplibs_GCJ=yes
21911 if test "$GCC" = yes ; then
21912 output_verbose_link_cmd='echo'
21913 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21914 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21915 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21916 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}'
21917 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}'
21919 case "$cc_basename" in
21921 output_verbose_link_cmd='echo'
21922 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21923 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21924 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21925 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}'
21926 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}'
21936 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21937 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21938 hardcode_shlibpath_var_GCJ=no
21945 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21946 # support. Future versions do this automatically, but an explicit c++rt0.o
21947 # does not break anything, and helps significantly (at the cost of a little
21950 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21951 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21952 hardcode_direct_GCJ=yes
21953 hardcode_shlibpath_var_GCJ=no
21956 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21958 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21959 hardcode_direct_GCJ=yes
21960 hardcode_minus_L_GCJ=yes
21961 hardcode_shlibpath_var_GCJ=no
21964 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21965 freebsd* | kfreebsd*-gnu)
21966 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21967 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21968 hardcode_direct_GCJ=yes
21969 hardcode_shlibpath_var_GCJ=no
21973 if test "$GCC" = yes; then
21974 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'
21976 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'
21978 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21979 hardcode_libdir_separator_GCJ=:
21980 hardcode_direct_GCJ=yes
21982 # hardcode_minus_L: Not really in the search PATH,
21983 # but as the default location of the library.
21984 hardcode_minus_L_GCJ=yes
21985 export_dynamic_flag_spec_GCJ='${wl}-E'
21989 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21990 case "$host_cpu" in
21992 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21995 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21999 case "$host_cpu" in
22001 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22004 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22008 if test "$with_gnu_ld" = no; then
22009 case "$host_cpu" in
22011 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22012 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22013 hardcode_libdir_separator_GCJ=:
22014 hardcode_direct_GCJ=no
22015 hardcode_shlibpath_var_GCJ=no
22018 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22019 hardcode_direct_GCJ=no
22020 hardcode_shlibpath_var_GCJ=no
22022 # hardcode_minus_L: Not really in the search PATH,
22023 # but as the default location of the library.
22024 hardcode_minus_L_GCJ=yes
22027 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22028 hardcode_libdir_separator_GCJ=:
22029 hardcode_direct_GCJ=yes
22030 export_dynamic_flag_spec_GCJ='${wl}-E'
22032 # hardcode_minus_L: Not really in the search PATH,
22033 # but as the default location of the library.
22034 hardcode_minus_L_GCJ=yes
22040 irix5* | irix6* | nonstopux*)
22041 if test "$GCC" = yes; then
22042 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'
22044 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'
22045 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22047 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22048 hardcode_libdir_separator_GCJ=:
22049 link_all_deplibs_GCJ=yes
22053 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22054 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22056 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22058 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22059 hardcode_direct_GCJ=yes
22060 hardcode_shlibpath_var_GCJ=no
22064 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22065 hardcode_direct_GCJ=yes
22066 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22067 hardcode_libdir_separator_GCJ=:
22068 hardcode_shlibpath_var_GCJ=no
22072 hardcode_direct_GCJ=yes
22073 hardcode_shlibpath_var_GCJ=no
22074 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22075 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22076 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22077 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22078 export_dynamic_flag_spec_GCJ='${wl}-E'
22081 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22082 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22083 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22086 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22087 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22094 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22095 hardcode_minus_L_GCJ=yes
22096 allow_undefined_flag_GCJ=unsupported
22097 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'
22098 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22102 if test "$GCC" = yes; then
22103 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22104 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'
22106 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22107 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'
22109 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22110 hardcode_libdir_separator_GCJ=:
22113 osf4* | osf5*) # as osf3* with the addition of -msym flag
22114 if test "$GCC" = yes; then
22115 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22116 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'
22117 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22119 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22120 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'
22121 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~
22122 $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'
22124 # Both c and cxx compiler support -rpath directly
22125 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22127 hardcode_libdir_separator_GCJ=:
22131 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22132 hardcode_shlibpath_var_GCJ=no
22133 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22134 runpath_var=LD_RUN_PATH
22135 hardcode_runpath_var=yes
22139 no_undefined_flag_GCJ=' -z text'
22140 if test "$GCC" = yes; then
22141 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22142 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22143 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22145 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22146 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22147 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22149 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22150 hardcode_shlibpath_var_GCJ=no
22152 solaris2.[0-5] | solaris2.[0-5].*) ;;
22153 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22154 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22156 link_all_deplibs_GCJ=yes
22160 if test "x$host_vendor" = xsequent; then
22161 # Use $CC to link under sequent, because it throws in some extra .o
22162 # files that make .init and .fini sections work.
22163 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22165 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22167 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22168 hardcode_direct_GCJ=yes
22169 hardcode_minus_L_GCJ=yes
22170 hardcode_shlibpath_var_GCJ=no
22174 case $host_vendor in
22176 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22177 hardcode_direct_GCJ=yes # is this really true???
22180 ## LD is ld it makes a PLAMLIB
22181 ## CC just makes a GrossModule.
22182 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22183 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22184 hardcode_direct_GCJ=no
22187 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22188 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22191 runpath_var='LD_RUN_PATH'
22192 hardcode_shlibpath_var_GCJ=no
22196 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22197 hardcode_shlibpath_var_GCJ=no
22198 export_dynamic_flag_spec_GCJ='-Bexport'
22202 if test -d /usr/nec; then
22203 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22204 hardcode_shlibpath_var_GCJ=no
22205 runpath_var=LD_RUN_PATH
22206 hardcode_runpath_var=yes
22212 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22213 hardcode_direct_GCJ=yes
22214 hardcode_minus_L_GCJ=no
22215 hardcode_shlibpath_var_GCJ=no
22216 hardcode_runpath_var=yes
22217 runpath_var=LD_RUN_PATH
22220 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22221 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22222 if test "$GCC" = yes; then
22223 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22225 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22227 runpath_var='LD_RUN_PATH'
22228 hardcode_shlibpath_var_GCJ=no
22232 no_undefined_flag_GCJ=' -z text'
22233 # $CC -shared without GNU ld will not create a library from C++
22234 # object files and a static libstdc++, better avoid it by now
22235 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22236 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22237 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22238 hardcode_libdir_flag_spec_GCJ=
22239 hardcode_shlibpath_var_GCJ=no
22240 runpath_var='LD_RUN_PATH'
22244 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22245 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22246 hardcode_shlibpath_var_GCJ=no
22255 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22256 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22257 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22259 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22260 if test "$GCC" = yes; then
22261 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22265 # Do we need to explicitly link libc?
22267 case "x$archive_cmds_need_lc_GCJ" in
22269 # Assume -lc should be added
22270 archive_cmds_need_lc_GCJ=yes
22272 if test "$enable_shared" = yes && test "$GCC" = yes; then
22273 case $archive_cmds_GCJ in
22275 # FIXME: we may have to deal with multi-command sequences.
22278 # Test whether the compiler implicitly links with -lc since on some
22279 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22280 # to ld, don't add -lc before -lgcc.
22281 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22282 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22284 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22287 (eval $ac_compile) 2>&5
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); } 2>conftest.err; then
22293 libobjs=conftest.$ac_objext
22295 wl=$lt_prog_compiler_wl_GCJ
22301 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22302 allow_undefined_flag_GCJ=
22303 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22304 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }
22309 archive_cmds_need_lc_GCJ=no
22311 archive_cmds_need_lc_GCJ=yes
22313 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22315 cat conftest.err 1>&5
22318 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22319 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22326 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22327 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22328 library_names_spec=
22329 libname_spec='lib$name'
22333 postuninstall_cmds=
22337 shlibpath_overrides_runpath=unknown
22339 dynamic_linker="$host_os ld.so"
22340 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22341 if test "$GCC" = yes; then
22342 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22343 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22344 # if the path contains ";" then we assume it to be the separator
22345 # otherwise default to the standard path separator (i.e. ":") - it is
22346 # assumed that no part of a normal pathname contains ";" but that should
22347 # okay in the real world where ";" in dirpaths is itself problematic.
22348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22353 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22355 need_lib_prefix=unknown
22356 hardcode_into_libs=no
22358 # when you set need_version to no, make sure it does not cause -set_version
22359 # flags to be left without arguments
22360 need_version=unknown
22365 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22366 shlibpath_var=LIBPATH
22368 # AIX 3 has no versioning support, so we append a major version to the name.
22369 soname_spec='${libname}${release}${shared_ext}$major'
22376 hardcode_into_libs=yes
22377 if test "$host_cpu" = ia64; then
22378 # AIX 5 supports IA64
22379 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22380 shlibpath_var=LD_LIBRARY_PATH
22382 # With GCC up to 2.95.x, collect2 would create an import file
22383 # for dependence libraries. The import file would start with
22384 # the line `#! .'. This would cause the generated library to
22385 # depend on `.', always an invalid library. This was fixed in
22386 # development snapshots of GCC prior to 3.0.
22388 aix4 | aix4.[01] | aix4.[01].*)
22389 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22391 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22394 can_build_shared=no
22398 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22399 # soname into executable. Probably we can add versioning support to
22400 # collect2, so additional links can be useful in future.
22401 if test "$aix_use_runtimelinking" = yes; then
22402 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22403 # instead of lib<name>.a to let people know that these are not
22404 # typical AIX shared libraries.
22405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22407 # We preserve .a as extension for shared libraries through AIX4.2
22408 # and later when we are not doing run time linking.
22409 library_names_spec='${libname}${release}.a $libname.a'
22410 soname_spec='${libname}${release}${shared_ext}$major'
22412 shlibpath_var=LIBPATH
22417 library_names_spec='$libname.ixlibrary $libname.a'
22418 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22419 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'
22423 library_names_spec='${libname}${shared_ext}'
22424 dynamic_linker="$host_os ld.so"
22425 shlibpath_var=LIBRARY_PATH
22431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22432 soname_spec='${libname}${release}${shared_ext}$major'
22433 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22434 shlibpath_var=LD_LIBRARY_PATH
22435 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22436 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22437 # the default ld.so.conf also contains /usr/contrib/lib and
22438 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22439 # libtool to hard-code these into programs
22442 cygwin* | mingw* | pw32*)
22443 version_type=windows
22448 case $GCC,$host_os in
22449 yes,cygwin* | yes,mingw* | yes,pw32*)
22450 library_names_spec='$libname.dll.a'
22451 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22452 postinstall_cmds='base_file=`basename \${file}`~
22453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22454 dldir=$destdir/`dirname \$dlpath`~
22455 test -d \$dldir || mkdir -p \$dldir~
22456 $install_prog $dir/$dlname \$dldir/$dlname'
22457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22458 dlpath=$dir/\$dldll~
22460 shlibpath_overrides_runpath=yes
22464 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22465 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22466 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22469 # MinGW DLLs use traditional 'lib' prefix
22470 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22471 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22472 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22473 # It is most probably a Windows format PATH printed by
22474 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22475 # path with ; separators, and with drive letters. We can handle the
22476 # drive letters (cygwin fileutils understands them), so leave them,
22477 # especially as we might pass files found there to a mingw objdump,
22478 # which wouldn't understand a cygwinified path. Ahh.
22479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22485 # pw32 DLLs use 'pw' prefix rather than 'lib'
22486 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22492 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22495 dynamic_linker='Win32 ld.exe'
22496 # FIXME: first we should search . and the directory the executable is in
22500 darwin* | rhapsody*)
22501 dynamic_linker="$host_os dyld"
22502 version_type=darwin
22505 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22506 soname_spec='${libname}${release}${major}$shared_ext'
22507 shlibpath_overrides_runpath=yes
22508 shlibpath_var=DYLD_LIBRARY_PATH
22509 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22510 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22511 if test "$GCC" = yes; then
22512 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"`
22514 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22516 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22524 soname_spec='${libname}${release}${shared_ext}$major'
22525 shlibpath_var=LD_LIBRARY_PATH
22536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22537 soname_spec='${libname}${release}${shared_ext}$major'
22538 shlibpath_var=LD_LIBRARY_PATH
22539 shlibpath_overrides_runpath=no
22540 hardcode_into_libs=yes
22541 dynamic_linker='GNU ld.so'
22545 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22546 version_type=freebsd-$objformat
22547 case $version_type in
22549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22554 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22558 shlibpath_var=LD_LIBRARY_PATH
22561 shlibpath_overrides_runpath=yes
22563 freebsd3.01* | freebsdelf3.01*)
22564 shlibpath_overrides_runpath=yes
22565 hardcode_into_libs=yes
22568 shlibpath_overrides_runpath=no
22569 hardcode_into_libs=yes
22578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22579 soname_spec='${libname}${release}${shared_ext}$major'
22580 shlibpath_var=LD_LIBRARY_PATH
22581 hardcode_into_libs=yes
22584 hpux9* | hpux10* | hpux11*)
22585 # Give a soname corresponding to the major version so that dld.sl refuses to
22586 # link against other versions.
22590 case "$host_cpu" in
22593 hardcode_into_libs=yes
22594 dynamic_linker="$host_os dld.so"
22595 shlibpath_var=LD_LIBRARY_PATH
22596 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22598 soname_spec='${libname}${release}${shared_ext}$major'
22599 if test "X$HPUX_IA64_MODE" = X32; then
22600 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22602 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22604 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22608 hardcode_into_libs=yes
22609 dynamic_linker="$host_os dld.sl"
22610 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22611 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22613 soname_spec='${libname}${release}${shared_ext}$major'
22614 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22615 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22619 dynamic_linker="$host_os dld.sl"
22620 shlibpath_var=SHLIB_PATH
22621 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22623 soname_spec='${libname}${release}${shared_ext}$major'
22626 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22627 postinstall_cmds='chmod 555 $lib'
22630 irix5* | irix6* | nonstopux*)
22632 nonstopux*) version_type=nonstopux ;;
22634 if test "$lt_cv_prog_gnu_ld" = yes; then
22642 soname_spec='${libname}${release}${shared_ext}$major'
22643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22645 irix5* | nonstopux*)
22646 libsuff= shlibsuff=
22649 case $LD in # libtool.m4 will add one of these switches to LD
22650 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22651 libsuff= shlibsuff= libmagic=32-bit;;
22652 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22653 libsuff=32 shlibsuff=N32 libmagic=N32;;
22654 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22655 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22656 *) libsuff= shlibsuff= libmagic=never-match;;
22660 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22661 shlibpath_overrides_runpath=no
22662 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22663 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22664 hardcode_into_libs=yes
22667 # No shared lib support for Linux oldld, aout, or coff.
22668 linux*oldld* | linux*aout* | linux*coff*)
22672 # This must be Linux ELF.
22677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22678 soname_spec='${libname}${release}${shared_ext}$major'
22679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22680 shlibpath_var=LD_LIBRARY_PATH
22681 shlibpath_overrides_runpath=no
22682 # This implies no fast_install, which is unacceptable.
22683 # Some rework will be needed to allow for fast_install
22684 # before this can be enabled.
22685 hardcode_into_libs=yes
22687 # Append ld.so.conf contents to the search path
22688 if test -f /etc/ld.so.conf; then
22689 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22690 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22693 # We used to test for /lib/ld.so.1 and disable shared libraries on
22694 # powerpc, because MkLinux only supported shared libraries with the
22695 # GNU dynamic linker. Since this was broken with cross compilers,
22696 # most powerpc-linux boxes support dynamic linking these days and
22697 # people can always --disable-shared, the test was removed, and we
22698 # assume the GNU/Linux dynamic linker is in use.
22699 dynamic_linker='GNU/Linux ld.so'
22706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22707 soname_spec='${libname}${release}${shared_ext}$major'
22708 shlibpath_var=LD_LIBRARY_PATH
22709 shlibpath_overrides_runpath=no
22710 hardcode_into_libs=yes
22711 dynamic_linker='GNU ld.so'
22718 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22720 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22721 dynamic_linker='NetBSD (a.out) ld.so'
22723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22724 soname_spec='${libname}${release}${shared_ext}$major'
22725 dynamic_linker='NetBSD ld.elf_so'
22727 shlibpath_var=LD_LIBRARY_PATH
22728 shlibpath_overrides_runpath=yes
22729 hardcode_into_libs=yes
22734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22735 shlibpath_var=LD_LIBRARY_PATH
22736 shlibpath_overrides_runpath=yes
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
22753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22755 shlibpath_var=LD_LIBRARY_PATH
22756 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22758 openbsd2.[89] | openbsd2.[89].*)
22759 shlibpath_overrides_runpath=no
22762 shlibpath_overrides_runpath=yes
22766 shlibpath_overrides_runpath=yes
22771 libname_spec='$name'
22774 library_names_spec='$libname${shared_ext} $libname.a'
22775 dynamic_linker='OS/2 ld.exe'
22776 shlibpath_var=LIBPATH
22779 osf3* | osf4* | osf5*)
22783 soname_spec='${libname}${release}${shared_ext}$major'
22784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22785 shlibpath_var=LD_LIBRARY_PATH
22786 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22787 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22792 soname_spec='${libname}${release}${shared_ext}$major'
22793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22794 shlibpath_var=LD_LIBRARY_PATH
22801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22802 soname_spec='${libname}${release}${shared_ext}$major'
22803 shlibpath_var=LD_LIBRARY_PATH
22804 shlibpath_overrides_runpath=yes
22805 hardcode_into_libs=yes
22806 # ldd complains unless libraries are executable
22807 postinstall_cmds='chmod +x $lib'
22812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22813 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22814 shlibpath_var=LD_LIBRARY_PATH
22815 shlibpath_overrides_runpath=yes
22816 if test "$with_gnu_ld" = yes; then
22822 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22825 soname_spec='${libname}${release}${shared_ext}$major'
22826 shlibpath_var=LD_LIBRARY_PATH
22827 case $host_vendor in
22829 shlibpath_overrides_runpath=no
22831 export_dynamic_flag_spec='${wl}-Blargedynsym'
22832 runpath_var=LD_RUN_PATH
22840 shlibpath_overrides_runpath=no
22841 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22847 if test -d /usr/nec ;then
22849 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22850 soname_spec='$libname${shared_ext}.$major'
22851 shlibpath_var=LD_LIBRARY_PATH
22857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22858 soname_spec='${libname}${release}${shared_ext}$major'
22859 shlibpath_var=LD_LIBRARY_PATH
22866 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22867 echo "${ECHO_T}$dynamic_linker" >&6
22868 test "$dynamic_linker" = no && can_build_shared=no
22870 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22871 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22872 hardcode_action_GCJ=
22873 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22874 test -n "$runpath_var_GCJ" || \
22875 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22877 # We can hardcode non-existant directories.
22878 if test "$hardcode_direct_GCJ" != no &&
22879 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22880 # have to relink, otherwise we might link with an installed library
22881 # when we should be linking with a yet-to-be-installed one
22882 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22883 test "$hardcode_minus_L_GCJ" != no; then
22884 # Linking always hardcodes the temporary library directory.
22885 hardcode_action_GCJ=relink
22887 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22888 hardcode_action_GCJ=immediate
22891 # We cannot hardcode anything, or else we can only hardcode existing
22893 hardcode_action_GCJ=unsupported
22895 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22896 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22898 if test "$hardcode_action_GCJ" = relink; then
22899 # Fast installation is not supported
22900 enable_fast_install=no
22901 elif test "$shlibpath_overrides_runpath" = yes ||
22902 test "$enable_shared" = no; then
22903 # Fast installation is not necessary
22904 enable_fast_install=needless
22909 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22910 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22911 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22912 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22913 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22914 echo "$as_me:$LINENO: result: yes" >&5
22915 echo "${ECHO_T}yes" >&6
22917 # FIXME - insert some real tests, host_os isn't really good enough
22920 if test -n "$STRIP" ; then
22921 striplib="$STRIP -x"
22922 echo "$as_me:$LINENO: result: yes" >&5
22923 echo "${ECHO_T}yes" >&6
22925 echo "$as_me:$LINENO: result: no" >&5
22926 echo "${ECHO_T}no" >&6
22930 echo "$as_me:$LINENO: result: no" >&5
22931 echo "${ECHO_T}no" >&6
22936 if test "x$enable_dlopen" != xyes; then
22937 enable_dlopen=unknown
22938 enable_dlopen_self=unknown
22939 enable_dlopen_self_static=unknown
22946 lt_cv_dlopen="load_add_on"
22948 lt_cv_dlopen_self=yes
22952 lt_cv_dlopen="LoadLibrary"
22957 lt_cv_dlopen="dlopen"
22962 # if libdl is installed we need to link against it
22963 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22964 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22965 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22966 echo $ECHO_N "(cached) $ECHO_C" >&6
22968 ac_check_lib_save_LIBS=$LIBS
22970 cat >conftest.$ac_ext <<_ACEOF
22973 cat confdefs.h >>conftest.$ac_ext
22974 cat >>conftest.$ac_ext <<_ACEOF
22975 /* end confdefs.h. */
22977 /* Override any gcc2 internal prototype to avoid an error. */
22981 /* We use char because int might match the return type of a gcc2
22982 builtin and then its argument prototype would still apply. */
22992 rm -f conftest.$ac_objext conftest$ac_exeext
22993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22994 (eval $ac_link) 2>conftest.er1
22996 grep -v '^ *+' conftest.er1 >conftest.err
22998 cat conftest.err >&5
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); } &&
23001 { ac_try='test -z "$ac_c_werror_flag"
23002 || test ! -s conftest.err'
23003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23004 (eval $ac_try) 2>&5
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); }; } &&
23008 { ac_try='test -s conftest$ac_exeext'
23009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23010 (eval $ac_try) 2>&5
23012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013 (exit $ac_status); }; }; then
23014 ac_cv_lib_dl_dlopen=yes
23016 echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23019 ac_cv_lib_dl_dlopen=no
23021 rm -f conftest.err conftest.$ac_objext \
23022 conftest$ac_exeext conftest.$ac_ext
23023 LIBS=$ac_check_lib_save_LIBS
23025 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23026 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23027 if test $ac_cv_lib_dl_dlopen = yes; then
23028 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23031 lt_cv_dlopen="dyld"
23033 lt_cv_dlopen_self=yes
23040 echo "$as_me:$LINENO: checking for shl_load" >&5
23041 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23042 if test "${ac_cv_func_shl_load+set}" = set; then
23043 echo $ECHO_N "(cached) $ECHO_C" >&6
23045 cat >conftest.$ac_ext <<_ACEOF
23048 cat confdefs.h >>conftest.$ac_ext
23049 cat >>conftest.$ac_ext <<_ACEOF
23050 /* end confdefs.h. */
23051 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23053 #define shl_load innocuous_shl_load
23055 /* System header to define __stub macros and hopefully few prototypes,
23056 which can conflict with char shl_load (); below.
23057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23058 <limits.h> exists even on freestanding compilers. */
23061 # include <limits.h>
23063 # include <assert.h>
23068 /* Override any gcc2 internal prototype to avoid an error. */
23073 /* We use char because int might match the return type of a gcc2
23074 builtin and then its argument prototype would still apply. */
23076 /* The GNU C library defines this for functions which it implements
23077 to always fail with ENOSYS. Some functions are actually named
23078 something starting with __ and the normal name is an alias. */
23079 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23082 char (*f) () = shl_load;
23091 return f != shl_load;
23096 rm -f conftest.$ac_objext conftest$ac_exeext
23097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23098 (eval $ac_link) 2>conftest.er1
23100 grep -v '^ *+' conftest.er1 >conftest.err
23102 cat conftest.err >&5
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); } &&
23105 { ac_try='test -z "$ac_c_werror_flag"
23106 || test ! -s conftest.err'
23107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23108 (eval $ac_try) 2>&5
23110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111 (exit $ac_status); }; } &&
23112 { ac_try='test -s conftest$ac_exeext'
23113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114 (eval $ac_try) 2>&5
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); }; }; then
23118 ac_cv_func_shl_load=yes
23120 echo "$as_me: failed program was:" >&5
23121 sed 's/^/| /' conftest.$ac_ext >&5
23123 ac_cv_func_shl_load=no
23125 rm -f conftest.err conftest.$ac_objext \
23126 conftest$ac_exeext conftest.$ac_ext
23128 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23129 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23130 if test $ac_cv_func_shl_load = yes; then
23131 lt_cv_dlopen="shl_load"
23133 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23134 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23135 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23136 echo $ECHO_N "(cached) $ECHO_C" >&6
23138 ac_check_lib_save_LIBS=$LIBS
23140 cat >conftest.$ac_ext <<_ACEOF
23143 cat confdefs.h >>conftest.$ac_ext
23144 cat >>conftest.$ac_ext <<_ACEOF
23145 /* end confdefs.h. */
23147 /* Override any gcc2 internal prototype to avoid an error. */
23151 /* We use char because int might match the return type of a gcc2
23152 builtin and then its argument prototype would still apply. */
23162 rm -f conftest.$ac_objext conftest$ac_exeext
23163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23164 (eval $ac_link) 2>conftest.er1
23166 grep -v '^ *+' conftest.er1 >conftest.err
23168 cat conftest.err >&5
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); } &&
23171 { ac_try='test -z "$ac_c_werror_flag"
23172 || test ! -s conftest.err'
23173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23174 (eval $ac_try) 2>&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); }; } &&
23178 { ac_try='test -s conftest$ac_exeext'
23179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180 (eval $ac_try) 2>&5
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); }; }; then
23184 ac_cv_lib_dld_shl_load=yes
23186 echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23189 ac_cv_lib_dld_shl_load=no
23191 rm -f conftest.err conftest.$ac_objext \
23192 conftest$ac_exeext conftest.$ac_ext
23193 LIBS=$ac_check_lib_save_LIBS
23195 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23196 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23197 if test $ac_cv_lib_dld_shl_load = yes; then
23198 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23200 echo "$as_me:$LINENO: checking for dlopen" >&5
23201 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23202 if test "${ac_cv_func_dlopen+set}" = set; then
23203 echo $ECHO_N "(cached) $ECHO_C" >&6
23205 cat >conftest.$ac_ext <<_ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h. */
23211 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23213 #define dlopen innocuous_dlopen
23215 /* System header to define __stub macros and hopefully few prototypes,
23216 which can conflict with char dlopen (); below.
23217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23218 <limits.h> exists even on freestanding compilers. */
23221 # include <limits.h>
23223 # include <assert.h>
23228 /* Override any gcc2 internal prototype to avoid an error. */
23233 /* We use char because int might match the return type of a gcc2
23234 builtin and then its argument prototype would still apply. */
23236 /* The GNU C library defines this for functions which it implements
23237 to always fail with ENOSYS. Some functions are actually named
23238 something starting with __ and the normal name is an alias. */
23239 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23242 char (*f) () = dlopen;
23251 return f != dlopen;
23256 rm -f conftest.$ac_objext conftest$ac_exeext
23257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23258 (eval $ac_link) 2>conftest.er1
23260 grep -v '^ *+' conftest.er1 >conftest.err
23262 cat conftest.err >&5
23263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); } &&
23265 { ac_try='test -z "$ac_c_werror_flag"
23266 || test ! -s conftest.err'
23267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268 (eval $ac_try) 2>&5
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); }; } &&
23272 { ac_try='test -s conftest$ac_exeext'
23273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23274 (eval $ac_try) 2>&5
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); }; }; then
23278 ac_cv_func_dlopen=yes
23280 echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23283 ac_cv_func_dlopen=no
23285 rm -f conftest.err conftest.$ac_objext \
23286 conftest$ac_exeext conftest.$ac_ext
23288 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23289 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23290 if test $ac_cv_func_dlopen = yes; then
23291 lt_cv_dlopen="dlopen"
23293 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23294 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23295 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23296 echo $ECHO_N "(cached) $ECHO_C" >&6
23298 ac_check_lib_save_LIBS=$LIBS
23300 cat >conftest.$ac_ext <<_ACEOF
23303 cat confdefs.h >>conftest.$ac_ext
23304 cat >>conftest.$ac_ext <<_ACEOF
23305 /* end confdefs.h. */
23307 /* Override any gcc2 internal prototype to avoid an error. */
23311 /* We use char because int might match the return type of a gcc2
23312 builtin and then its argument prototype would still apply. */
23322 rm -f conftest.$ac_objext conftest$ac_exeext
23323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23324 (eval $ac_link) 2>conftest.er1
23326 grep -v '^ *+' conftest.er1 >conftest.err
23328 cat conftest.err >&5
23329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330 (exit $ac_status); } &&
23331 { ac_try='test -z "$ac_c_werror_flag"
23332 || test ! -s conftest.err'
23333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23334 (eval $ac_try) 2>&5
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); }; } &&
23338 { ac_try='test -s conftest$ac_exeext'
23339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340 (eval $ac_try) 2>&5
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); }; }; then
23344 ac_cv_lib_dl_dlopen=yes
23346 echo "$as_me: failed program was:" >&5
23347 sed 's/^/| /' conftest.$ac_ext >&5
23349 ac_cv_lib_dl_dlopen=no
23351 rm -f conftest.err conftest.$ac_objext \
23352 conftest$ac_exeext conftest.$ac_ext
23353 LIBS=$ac_check_lib_save_LIBS
23355 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23356 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23357 if test $ac_cv_lib_dl_dlopen = yes; then
23358 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23360 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23361 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23362 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23363 echo $ECHO_N "(cached) $ECHO_C" >&6
23365 ac_check_lib_save_LIBS=$LIBS
23366 LIBS="-lsvld $LIBS"
23367 cat >conftest.$ac_ext <<_ACEOF
23370 cat confdefs.h >>conftest.$ac_ext
23371 cat >>conftest.$ac_ext <<_ACEOF
23372 /* end confdefs.h. */
23374 /* Override any gcc2 internal prototype to avoid an error. */
23378 /* We use char because int might match the return type of a gcc2
23379 builtin and then its argument prototype would still apply. */
23389 rm -f conftest.$ac_objext conftest$ac_exeext
23390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23391 (eval $ac_link) 2>conftest.er1
23393 grep -v '^ *+' conftest.er1 >conftest.err
23395 cat conftest.err >&5
23396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397 (exit $ac_status); } &&
23398 { ac_try='test -z "$ac_c_werror_flag"
23399 || test ! -s conftest.err'
23400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23401 (eval $ac_try) 2>&5
23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404 (exit $ac_status); }; } &&
23405 { ac_try='test -s conftest$ac_exeext'
23406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23407 (eval $ac_try) 2>&5
23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); }; }; then
23411 ac_cv_lib_svld_dlopen=yes
23413 echo "$as_me: failed program was:" >&5
23414 sed 's/^/| /' conftest.$ac_ext >&5
23416 ac_cv_lib_svld_dlopen=no
23418 rm -f conftest.err conftest.$ac_objext \
23419 conftest$ac_exeext conftest.$ac_ext
23420 LIBS=$ac_check_lib_save_LIBS
23422 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23423 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23424 if test $ac_cv_lib_svld_dlopen = yes; then
23425 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23427 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23428 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23429 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23430 echo $ECHO_N "(cached) $ECHO_C" >&6
23432 ac_check_lib_save_LIBS=$LIBS
23434 cat >conftest.$ac_ext <<_ACEOF
23437 cat confdefs.h >>conftest.$ac_ext
23438 cat >>conftest.$ac_ext <<_ACEOF
23439 /* end confdefs.h. */
23441 /* Override any gcc2 internal prototype to avoid an error. */
23445 /* We use char because int might match the return type of a gcc2
23446 builtin and then its argument prototype would still apply. */
23456 rm -f conftest.$ac_objext conftest$ac_exeext
23457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23458 (eval $ac_link) 2>conftest.er1
23460 grep -v '^ *+' conftest.er1 >conftest.err
23462 cat conftest.err >&5
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); } &&
23465 { ac_try='test -z "$ac_c_werror_flag"
23466 || test ! -s conftest.err'
23467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23468 (eval $ac_try) 2>&5
23470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); }; } &&
23472 { ac_try='test -s conftest$ac_exeext'
23473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23474 (eval $ac_try) 2>&5
23476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477 (exit $ac_status); }; }; then
23478 ac_cv_lib_dld_dld_link=yes
23480 echo "$as_me: failed program was:" >&5
23481 sed 's/^/| /' conftest.$ac_ext >&5
23483 ac_cv_lib_dld_dld_link=no
23485 rm -f conftest.err conftest.$ac_objext \
23486 conftest$ac_exeext conftest.$ac_ext
23487 LIBS=$ac_check_lib_save_LIBS
23489 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23490 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23491 if test $ac_cv_lib_dld_dld_link = yes; then
23492 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23513 if test "x$lt_cv_dlopen" != xno; then
23519 case $lt_cv_dlopen in
23521 save_CPPFLAGS="$CPPFLAGS"
23522 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23524 save_LDFLAGS="$LDFLAGS"
23525 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23528 LIBS="$lt_cv_dlopen_libs $LIBS"
23530 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23531 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23532 if test "${lt_cv_dlopen_self+set}" = set; then
23533 echo $ECHO_N "(cached) $ECHO_C" >&6
23535 if test "$cross_compiling" = yes; then :
23536 lt_cv_dlopen_self=cross
23538 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23539 lt_status=$lt_dlunknown
23540 cat > conftest.$ac_ext <<EOF
23541 #line 23541 "configure"
23542 #include "confdefs.h"
23551 # define LT_DLGLOBAL RTLD_GLOBAL
23554 # define LT_DLGLOBAL DL_GLOBAL
23556 # define LT_DLGLOBAL 0
23560 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23561 find out it does not work in some platform. */
23562 #ifndef LT_DLLAZY_OR_NOW
23564 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23567 # define LT_DLLAZY_OR_NOW DL_LAZY
23570 # define LT_DLLAZY_OR_NOW RTLD_NOW
23573 # define LT_DLLAZY_OR_NOW DL_NOW
23575 # define LT_DLLAZY_OR_NOW 0
23583 extern "C" void exit (int);
23586 void fnord() { int i=42;}
23589 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23590 int status = $lt_dlunknown;
23594 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23595 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23596 /* dlclose (self); */
23602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23603 (eval $ac_link) 2>&5
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23607 (./conftest; exit; ) 2>/dev/null
23609 case x$lt_status in
23610 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23611 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23612 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23615 # compilation failed
23616 lt_cv_dlopen_self=no
23623 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23624 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23626 if test "x$lt_cv_dlopen_self" = xyes; then
23627 LDFLAGS="$LDFLAGS $link_static_flag"
23628 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23629 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23630 if test "${lt_cv_dlopen_self_static+set}" = set; then
23631 echo $ECHO_N "(cached) $ECHO_C" >&6
23633 if test "$cross_compiling" = yes; then :
23634 lt_cv_dlopen_self_static=cross
23636 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23637 lt_status=$lt_dlunknown
23638 cat > conftest.$ac_ext <<EOF
23639 #line 23639 "configure"
23640 #include "confdefs.h"
23649 # define LT_DLGLOBAL RTLD_GLOBAL
23652 # define LT_DLGLOBAL DL_GLOBAL
23654 # define LT_DLGLOBAL 0
23658 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23659 find out it does not work in some platform. */
23660 #ifndef LT_DLLAZY_OR_NOW
23662 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23665 # define LT_DLLAZY_OR_NOW DL_LAZY
23668 # define LT_DLLAZY_OR_NOW RTLD_NOW
23671 # define LT_DLLAZY_OR_NOW DL_NOW
23673 # define LT_DLLAZY_OR_NOW 0
23681 extern "C" void exit (int);
23684 void fnord() { int i=42;}
23687 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23688 int status = $lt_dlunknown;
23692 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23693 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23694 /* dlclose (self); */
23700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23701 (eval $ac_link) 2>&5
23703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23705 (./conftest; exit; ) 2>/dev/null
23707 case x$lt_status in
23708 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23709 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23710 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23713 # compilation failed
23714 lt_cv_dlopen_self_static=no
23721 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23722 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23725 CPPFLAGS="$save_CPPFLAGS"
23726 LDFLAGS="$save_LDFLAGS"
23731 case $lt_cv_dlopen_self in
23732 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23733 *) enable_dlopen_self=unknown ;;
23736 case $lt_cv_dlopen_self_static in
23737 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23738 *) enable_dlopen_self_static=unknown ;;
23743 # The else clause should only fire when bootstrapping the
23744 # libtool distribution, otherwise you forgot to ship ltmain.sh
23745 # with your package, and you will get complaints that there are
23746 # no rules to generate ltmain.sh.
23747 if test -f "$ltmain"; then
23748 # See if we are running on zsh, and set the options which allow our commands through
23749 # without removal of \ escapes.
23750 if test -n "${ZSH_VERSION+set}" ; then
23751 setopt NO_GLOB_SUBST
23753 # Now quote all the things that may contain metacharacters while being
23754 # careful not to overquote the AC_SUBSTed values. We take copies of the
23755 # variables and quote the copies for generation of the libtool script.
23756 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23758 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23759 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23760 deplibs_check_method reload_flag reload_cmds need_locks \
23761 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23762 lt_cv_sys_global_symbol_to_c_name_address \
23763 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23764 old_postinstall_cmds old_postuninstall_cmds \
23768 lt_prog_compiler_wl_GCJ \
23769 lt_prog_compiler_pic_GCJ \
23770 lt_prog_compiler_static_GCJ \
23771 lt_prog_compiler_no_builtin_flag_GCJ \
23772 export_dynamic_flag_spec_GCJ \
23773 thread_safe_flag_spec_GCJ \
23774 whole_archive_flag_spec_GCJ \
23775 enable_shared_with_static_runtimes_GCJ \
23776 old_archive_cmds_GCJ \
23777 old_archive_from_new_cmds_GCJ \
23778 predep_objects_GCJ \
23779 postdep_objects_GCJ \
23782 compiler_lib_search_path_GCJ \
23784 archive_expsym_cmds_GCJ \
23785 postinstall_cmds_GCJ \
23786 postuninstall_cmds_GCJ \
23787 old_archive_from_expsyms_cmds_GCJ \
23788 allow_undefined_flag_GCJ \
23789 no_undefined_flag_GCJ \
23790 export_symbols_cmds_GCJ \
23791 hardcode_libdir_flag_spec_GCJ \
23792 hardcode_libdir_flag_spec_ld_GCJ \
23793 hardcode_libdir_separator_GCJ \
23794 hardcode_automatic_GCJ \
23796 module_expsym_cmds_GCJ \
23797 lt_cv_prog_compiler_c_o_GCJ \
23798 exclude_expsyms_GCJ \
23799 include_expsyms_GCJ; do
23802 old_archive_cmds_GCJ | \
23803 old_archive_from_new_cmds_GCJ | \
23804 archive_cmds_GCJ | \
23805 archive_expsym_cmds_GCJ | \
23806 module_cmds_GCJ | \
23807 module_expsym_cmds_GCJ | \
23808 old_archive_from_expsyms_cmds_GCJ | \
23809 export_symbols_cmds_GCJ | \
23810 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23811 postinstall_cmds | postuninstall_cmds | \
23812 old_postinstall_cmds | old_postuninstall_cmds | \
23813 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23814 # Double-quote double-evaled strings.
23815 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23818 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23824 *'\$0 --fallback-echo"')
23825 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23831 cat <<__EOF__ >> "$cfgfile"
23832 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23834 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23836 # Shell to use when invoking shell scripts.
23839 # Whether or not to build shared libraries.
23840 build_libtool_libs=$enable_shared
23842 # Whether or not to build static libraries.
23843 build_old_libs=$enable_static
23845 # Whether or not to add -lc for building shared libraries.
23846 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23848 # Whether or not to disallow shared libs when runtime libs are static
23849 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23851 # Whether or not to optimize for fast installation.
23852 fast_install=$enable_fast_install
23855 host_alias=$host_alias
23858 # An echo program that does not interpret backslashes.
23863 AR_FLAGS=$lt_AR_FLAGS
23868 # A language-specific compiler.
23869 CC=$lt_compiler_GCJ
23871 # Is the compiler the GNU C compiler?
23877 # The linker used to build libraries.
23880 # Whether we need hard or soft links.
23883 # A BSD-compatible nm program.
23886 # A symbol stripping program
23889 # Used to examine libraries when file_magic_cmd begins "file"
23890 MAGIC_CMD=$MAGIC_CMD
23892 # Used on cygwin: DLL creation program.
23895 # Used on cygwin: object dumper.
23898 # Used on cygwin: assembler.
23901 # The name of the directory that contains temporary libtool files.
23904 # How to create reloadable object files.
23905 reload_flag=$lt_reload_flag
23906 reload_cmds=$lt_reload_cmds
23908 # How to pass a linker flag through the compiler.
23909 wl=$lt_lt_prog_compiler_wl_GCJ
23911 # Object file suffix (normally "o").
23912 objext="$ac_objext"
23914 # Old archive suffix (normally "a").
23917 # Shared library suffix (normally ".so").
23918 shrext_cmds='$shrext_cmds'
23920 # Executable file suffix (normally "").
23923 # Additional compiler flags for building library objects.
23924 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23927 # What is the maximum length of a command?
23928 max_cmd_len=$lt_cv_sys_max_cmd_len
23930 # Does compiler simultaneously support -c and -o options?
23931 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23933 # Must we lock files when doing compilation ?
23934 need_locks=$lt_need_locks
23936 # Do we need the lib prefix for modules?
23937 need_lib_prefix=$need_lib_prefix
23939 # Do we need a version for libraries?
23940 need_version=$need_version
23942 # Whether dlopen is supported.
23943 dlopen_support=$enable_dlopen
23945 # Whether dlopen of programs is supported.
23946 dlopen_self=$enable_dlopen_self
23948 # Whether dlopen of statically linked programs is supported.
23949 dlopen_self_static=$enable_dlopen_self_static
23951 # Compiler flag to prevent dynamic linking.
23952 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23954 # Compiler flag to turn off builtin functions.
23955 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23957 # Compiler flag to allow reflexive dlopens.
23958 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23960 # Compiler flag to generate shared objects directly from archives.
23961 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23963 # Compiler flag to generate thread-safe objects.
23964 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23966 # Library versioning type.
23967 version_type=$version_type
23969 # Format of library name prefix.
23970 libname_spec=$lt_libname_spec
23972 # List of archive names. First name is the real one, the rest are links.
23973 # The last name is the one that the linker finds with -lNAME.
23974 library_names_spec=$lt_library_names_spec
23976 # The coded name of the library, if different from the real name.
23977 soname_spec=$lt_soname_spec
23979 # Commands used to build and install an old-style archive.
23981 old_archive_cmds=$lt_old_archive_cmds_GCJ
23982 old_postinstall_cmds=$lt_old_postinstall_cmds
23983 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23985 # Create an old-style archive from a shared archive.
23986 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23988 # Create a temporary old-style archive to link instead of a shared archive.
23989 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23991 # Commands used to build and install a shared archive.
23992 archive_cmds=$lt_archive_cmds_GCJ
23993 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23994 postinstall_cmds=$lt_postinstall_cmds
23995 postuninstall_cmds=$lt_postuninstall_cmds
23997 # Commands used to build a loadable module (assumed same as above if empty)
23998 module_cmds=$lt_module_cmds_GCJ
23999 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24001 # Commands to strip libraries.
24002 old_striplib=$lt_old_striplib
24003 striplib=$lt_striplib
24005 # Dependencies to place before the objects being linked to create a
24007 predep_objects=$lt_predep_objects_GCJ
24009 # Dependencies to place after the objects being linked to create a
24011 postdep_objects=$lt_postdep_objects_GCJ
24013 # Dependencies to place before the objects being linked to create a
24015 predeps=$lt_predeps_GCJ
24017 # Dependencies to place after the objects being linked to create a
24019 postdeps=$lt_postdeps_GCJ
24021 # The library search path used internally by the compiler when linking
24022 # a shared library.
24023 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24025 # Method to check whether dependent libraries are shared objects.
24026 deplibs_check_method=$lt_deplibs_check_method
24028 # Command to use when deplibs_check_method == file_magic.
24029 file_magic_cmd=$lt_file_magic_cmd
24031 # Flag that allows shared libraries with undefined symbols to be built.
24032 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24034 # Flag that forces no undefined symbols.
24035 no_undefined_flag=$lt_no_undefined_flag_GCJ
24037 # Commands used to finish a libtool library installation in a directory.
24038 finish_cmds=$lt_finish_cmds
24040 # Same as above, but a single script fragment to be evaled but not shown.
24041 finish_eval=$lt_finish_eval
24043 # Take the output of nm and produce a listing of raw symbols and C names.
24044 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24046 # Transform the output of nm in a proper C declaration
24047 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24049 # Transform the output of nm in a C name address pair
24050 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24052 # This is the shared library runtime path variable.
24053 runpath_var=$runpath_var
24055 # This is the shared library path variable.
24056 shlibpath_var=$shlibpath_var
24058 # Is shlibpath searched before the hard-coded library search path?
24059 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24061 # How to hardcode a shared library path into an executable.
24062 hardcode_action=$hardcode_action_GCJ
24064 # Whether we should hardcode library paths into libraries.
24065 hardcode_into_libs=$hardcode_into_libs
24067 # Flag to hardcode \$libdir into a binary during linking.
24068 # This must work even if \$libdir does not exist.
24069 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24071 # If ld is used when linking, flag to hardcode \$libdir into
24072 # a binary during linking. This must work even if \$libdir does
24074 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24076 # Whether we need a single -rpath flag with a separated argument.
24077 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24079 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24080 # resulting binary.
24081 hardcode_direct=$hardcode_direct_GCJ
24083 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24084 # resulting binary.
24085 hardcode_minus_L=$hardcode_minus_L_GCJ
24087 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24088 # the resulting binary.
24089 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24091 # Set to yes if building a shared library automatically hardcodes DIR into the library
24092 # and all subsequent libraries and executables linked against it.
24093 hardcode_automatic=$hardcode_automatic_GCJ
24095 # Variables whose values should be saved in libtool wrapper scripts and
24096 # restored at relink time.
24097 variables_saved_for_relink="$variables_saved_for_relink"
24099 # Whether libtool must link a program against all its dependency libraries.
24100 link_all_deplibs=$link_all_deplibs_GCJ
24102 # Compile-time system search path for libraries
24103 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24105 # Run-time system search path for libraries
24106 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24108 # Fix the shell variable \$srcfile for the compiler.
24109 fix_srcfile_path="$fix_srcfile_path_GCJ"
24111 # Set to yes if exported symbols are required.
24112 always_export_symbols=$always_export_symbols_GCJ
24114 # The commands to list exported symbols.
24115 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24117 # The commands to extract the exported symbol list from a shared archive.
24118 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24120 # Symbols that should not be listed in the preloaded symbols.
24121 exclude_expsyms=$lt_exclude_expsyms_GCJ
24123 # Symbols that must always be exported.
24124 include_expsyms=$lt_include_expsyms_GCJ
24126 # ### END LIBTOOL TAG CONFIG: $tagname
24132 # If there is no Makefile yet, we rely on a make rule to execute
24133 # `config.status --recheck' to rerun these tests and create the
24134 # libtool script then.
24135 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24136 if test -f "$ltmain_in"; then
24137 test -f Makefile && make "$ltmain"
24143 ac_cpp='$CPP $CPPFLAGS'
24144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24157 ac_cpp='$CPP $CPPFLAGS'
24158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24163 # Source file extension for RC test sources.
24166 # Object file extension for compiled RC test sources.
24170 # Code to be used in simple compile tests
24171 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24173 # Code to be used in simple link tests
24174 lt_simple_link_test_code="$lt_simple_compile_test_code"
24176 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24178 # If no C compiler was specified, use CC.
24181 # Allow CC to be a program name with arguments.
24185 # Allow CC to be a program name with arguments.
24190 lt_cv_prog_compiler_c_o_RC=yes
24192 # The else clause should only fire when bootstrapping the
24193 # libtool distribution, otherwise you forgot to ship ltmain.sh
24194 # with your package, and you will get complaints that there are
24195 # no rules to generate ltmain.sh.
24196 if test -f "$ltmain"; then
24197 # See if we are running on zsh, and set the options which allow our commands through
24198 # without removal of \ escapes.
24199 if test -n "${ZSH_VERSION+set}" ; then
24200 setopt NO_GLOB_SUBST
24202 # Now quote all the things that may contain metacharacters while being
24203 # careful not to overquote the AC_SUBSTed values. We take copies of the
24204 # variables and quote the copies for generation of the libtool script.
24205 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24207 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24208 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24209 deplibs_check_method reload_flag reload_cmds need_locks \
24210 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24211 lt_cv_sys_global_symbol_to_c_name_address \
24212 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24213 old_postinstall_cmds old_postuninstall_cmds \
24217 lt_prog_compiler_wl_RC \
24218 lt_prog_compiler_pic_RC \
24219 lt_prog_compiler_static_RC \
24220 lt_prog_compiler_no_builtin_flag_RC \
24221 export_dynamic_flag_spec_RC \
24222 thread_safe_flag_spec_RC \
24223 whole_archive_flag_spec_RC \
24224 enable_shared_with_static_runtimes_RC \
24225 old_archive_cmds_RC \
24226 old_archive_from_new_cmds_RC \
24227 predep_objects_RC \
24228 postdep_objects_RC \
24231 compiler_lib_search_path_RC \
24233 archive_expsym_cmds_RC \
24234 postinstall_cmds_RC \
24235 postuninstall_cmds_RC \
24236 old_archive_from_expsyms_cmds_RC \
24237 allow_undefined_flag_RC \
24238 no_undefined_flag_RC \
24239 export_symbols_cmds_RC \
24240 hardcode_libdir_flag_spec_RC \
24241 hardcode_libdir_flag_spec_ld_RC \
24242 hardcode_libdir_separator_RC \
24243 hardcode_automatic_RC \
24245 module_expsym_cmds_RC \
24246 lt_cv_prog_compiler_c_o_RC \
24247 exclude_expsyms_RC \
24248 include_expsyms_RC; do
24251 old_archive_cmds_RC | \
24252 old_archive_from_new_cmds_RC | \
24253 archive_cmds_RC | \
24254 archive_expsym_cmds_RC | \
24256 module_expsym_cmds_RC | \
24257 old_archive_from_expsyms_cmds_RC | \
24258 export_symbols_cmds_RC | \
24259 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24260 postinstall_cmds | postuninstall_cmds | \
24261 old_postinstall_cmds | old_postuninstall_cmds | \
24262 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24263 # Double-quote double-evaled strings.
24264 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24267 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24273 *'\$0 --fallback-echo"')
24274 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24280 cat <<__EOF__ >> "$cfgfile"
24281 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24283 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24285 # Shell to use when invoking shell scripts.
24288 # Whether or not to build shared libraries.
24289 build_libtool_libs=$enable_shared
24291 # Whether or not to build static libraries.
24292 build_old_libs=$enable_static
24294 # Whether or not to add -lc for building shared libraries.
24295 build_libtool_need_lc=$archive_cmds_need_lc_RC
24297 # Whether or not to disallow shared libs when runtime libs are static
24298 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24300 # Whether or not to optimize for fast installation.
24301 fast_install=$enable_fast_install
24304 host_alias=$host_alias
24307 # An echo program that does not interpret backslashes.
24312 AR_FLAGS=$lt_AR_FLAGS
24317 # A language-specific compiler.
24320 # Is the compiler the GNU C compiler?
24326 # The linker used to build libraries.
24329 # Whether we need hard or soft links.
24332 # A BSD-compatible nm program.
24335 # A symbol stripping program
24338 # Used to examine libraries when file_magic_cmd begins "file"
24339 MAGIC_CMD=$MAGIC_CMD
24341 # Used on cygwin: DLL creation program.
24344 # Used on cygwin: object dumper.
24347 # Used on cygwin: assembler.
24350 # The name of the directory that contains temporary libtool files.
24353 # How to create reloadable object files.
24354 reload_flag=$lt_reload_flag
24355 reload_cmds=$lt_reload_cmds
24357 # How to pass a linker flag through the compiler.
24358 wl=$lt_lt_prog_compiler_wl_RC
24360 # Object file suffix (normally "o").
24361 objext="$ac_objext"
24363 # Old archive suffix (normally "a").
24366 # Shared library suffix (normally ".so").
24367 shrext_cmds='$shrext_cmds'
24369 # Executable file suffix (normally "").
24372 # Additional compiler flags for building library objects.
24373 pic_flag=$lt_lt_prog_compiler_pic_RC
24376 # What is the maximum length of a command?
24377 max_cmd_len=$lt_cv_sys_max_cmd_len
24379 # Does compiler simultaneously support -c and -o options?
24380 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24382 # Must we lock files when doing compilation ?
24383 need_locks=$lt_need_locks
24385 # Do we need the lib prefix for modules?
24386 need_lib_prefix=$need_lib_prefix
24388 # Do we need a version for libraries?
24389 need_version=$need_version
24391 # Whether dlopen is supported.
24392 dlopen_support=$enable_dlopen
24394 # Whether dlopen of programs is supported.
24395 dlopen_self=$enable_dlopen_self
24397 # Whether dlopen of statically linked programs is supported.
24398 dlopen_self_static=$enable_dlopen_self_static
24400 # Compiler flag to prevent dynamic linking.
24401 link_static_flag=$lt_lt_prog_compiler_static_RC
24403 # Compiler flag to turn off builtin functions.
24404 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24406 # Compiler flag to allow reflexive dlopens.
24407 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24409 # Compiler flag to generate shared objects directly from archives.
24410 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24412 # Compiler flag to generate thread-safe objects.
24413 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24415 # Library versioning type.
24416 version_type=$version_type
24418 # Format of library name prefix.
24419 libname_spec=$lt_libname_spec
24421 # List of archive names. First name is the real one, the rest are links.
24422 # The last name is the one that the linker finds with -lNAME.
24423 library_names_spec=$lt_library_names_spec
24425 # The coded name of the library, if different from the real name.
24426 soname_spec=$lt_soname_spec
24428 # Commands used to build and install an old-style archive.
24430 old_archive_cmds=$lt_old_archive_cmds_RC
24431 old_postinstall_cmds=$lt_old_postinstall_cmds
24432 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24434 # Create an old-style archive from a shared archive.
24435 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24437 # Create a temporary old-style archive to link instead of a shared archive.
24438 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24440 # Commands used to build and install a shared archive.
24441 archive_cmds=$lt_archive_cmds_RC
24442 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24443 postinstall_cmds=$lt_postinstall_cmds
24444 postuninstall_cmds=$lt_postuninstall_cmds
24446 # Commands used to build a loadable module (assumed same as above if empty)
24447 module_cmds=$lt_module_cmds_RC
24448 module_expsym_cmds=$lt_module_expsym_cmds_RC
24450 # Commands to strip libraries.
24451 old_striplib=$lt_old_striplib
24452 striplib=$lt_striplib
24454 # Dependencies to place before the objects being linked to create a
24456 predep_objects=$lt_predep_objects_RC
24458 # Dependencies to place after the objects being linked to create a
24460 postdep_objects=$lt_postdep_objects_RC
24462 # Dependencies to place before the objects being linked to create a
24464 predeps=$lt_predeps_RC
24466 # Dependencies to place after the objects being linked to create a
24468 postdeps=$lt_postdeps_RC
24470 # The library search path used internally by the compiler when linking
24471 # a shared library.
24472 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24474 # Method to check whether dependent libraries are shared objects.
24475 deplibs_check_method=$lt_deplibs_check_method
24477 # Command to use when deplibs_check_method == file_magic.
24478 file_magic_cmd=$lt_file_magic_cmd
24480 # Flag that allows shared libraries with undefined symbols to be built.
24481 allow_undefined_flag=$lt_allow_undefined_flag_RC
24483 # Flag that forces no undefined symbols.
24484 no_undefined_flag=$lt_no_undefined_flag_RC
24486 # Commands used to finish a libtool library installation in a directory.
24487 finish_cmds=$lt_finish_cmds
24489 # Same as above, but a single script fragment to be evaled but not shown.
24490 finish_eval=$lt_finish_eval
24492 # Take the output of nm and produce a listing of raw symbols and C names.
24493 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24495 # Transform the output of nm in a proper C declaration
24496 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24498 # Transform the output of nm in a C name address pair
24499 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24501 # This is the shared library runtime path variable.
24502 runpath_var=$runpath_var
24504 # This is the shared library path variable.
24505 shlibpath_var=$shlibpath_var
24507 # Is shlibpath searched before the hard-coded library search path?
24508 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24510 # How to hardcode a shared library path into an executable.
24511 hardcode_action=$hardcode_action_RC
24513 # Whether we should hardcode library paths into libraries.
24514 hardcode_into_libs=$hardcode_into_libs
24516 # Flag to hardcode \$libdir into a binary during linking.
24517 # This must work even if \$libdir does not exist.
24518 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24520 # If ld is used when linking, flag to hardcode \$libdir into
24521 # a binary during linking. This must work even if \$libdir does
24523 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24525 # Whether we need a single -rpath flag with a separated argument.
24526 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24528 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24529 # resulting binary.
24530 hardcode_direct=$hardcode_direct_RC
24532 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24533 # resulting binary.
24534 hardcode_minus_L=$hardcode_minus_L_RC
24536 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24537 # the resulting binary.
24538 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24540 # Set to yes if building a shared library automatically hardcodes DIR into the library
24541 # and all subsequent libraries and executables linked against it.
24542 hardcode_automatic=$hardcode_automatic_RC
24544 # Variables whose values should be saved in libtool wrapper scripts and
24545 # restored at relink time.
24546 variables_saved_for_relink="$variables_saved_for_relink"
24548 # Whether libtool must link a program against all its dependency libraries.
24549 link_all_deplibs=$link_all_deplibs_RC
24551 # Compile-time system search path for libraries
24552 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24554 # Run-time system search path for libraries
24555 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24557 # Fix the shell variable \$srcfile for the compiler.
24558 fix_srcfile_path="$fix_srcfile_path_RC"
24560 # Set to yes if exported symbols are required.
24561 always_export_symbols=$always_export_symbols_RC
24563 # The commands to list exported symbols.
24564 export_symbols_cmds=$lt_export_symbols_cmds_RC
24566 # The commands to extract the exported symbol list from a shared archive.
24567 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24569 # Symbols that should not be listed in the preloaded symbols.
24570 exclude_expsyms=$lt_exclude_expsyms_RC
24572 # Symbols that must always be exported.
24573 include_expsyms=$lt_include_expsyms_RC
24575 # ### END LIBTOOL TAG CONFIG: $tagname
24581 # If there is no Makefile yet, we rely on a make rule to execute
24582 # `config.status --recheck' to rerun these tests and create the
24583 # libtool script then.
24584 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24585 if test -f "$ltmain_in"; then
24586 test -f Makefile && make "$ltmain"
24592 ac_cpp='$CPP $CPPFLAGS'
24593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24602 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24603 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24604 { (exit 1); exit 1; }; }
24608 # Append the new tag name to the list of available tags.
24609 if test -n "$tagname" ; then
24610 available_tags="$available_tags $tagname"
24616 # Now substitute the updated list of available tags.
24617 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24618 mv "${ofile}T" "$ofile"
24622 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24623 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24624 { (exit 1); exit 1; }; }
24630 # This can be used to rebuild libtool when needed
24631 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24633 # Always use our own libtool.
24634 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24636 # Prevent multiple expansion
24658 if test "$lt_cv_dlopen_self" = "yes" ; then
24660 cat >>confdefs.h <<\_ACEOF
24661 #define CAN_DLOPEN_SELF 1
24666 etags_version=`$ETAGS --version 2>&1`
24667 case "$etags_version" in
24668 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24669 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24670 *) ETAGSFLAGS="" ;;
24672 ETAGSFLAGS=$ETAGSFLAGS
24675 if test "$WITH_LLVMGCCDIR" = "default" ; then
24676 # Extract the first word of "llvm-gcc", so it can be a program name with args.
24677 set dummy llvm-gcc; ac_word=$2
24678 echo "$as_me:$LINENO: checking for $ac_word" >&5
24679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24680 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24681 echo $ECHO_N "(cached) $ECHO_C" >&6
24685 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24689 for as_dir in $PATH
24692 test -z "$as_dir" && as_dir=.
24693 for ac_exec_ext in '' $ac_executable_extensions; do
24694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24695 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24702 test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24706 LLVMGCC=$ac_cv_path_LLVMGCC
24708 if test -n "$LLVMGCC"; then
24709 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24710 echo "${ECHO_T}$LLVMGCC" >&6
24712 echo "$as_me:$LINENO: result: no" >&5
24713 echo "${ECHO_T}no" >&6
24716 # Extract the first word of "llvm-g++", so it can be a program name with args.
24717 set dummy llvm-g++; ac_word=$2
24718 echo "$as_me:$LINENO: checking for $ac_word" >&5
24719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24720 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24721 echo $ECHO_N "(cached) $ECHO_C" >&6
24725 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24729 for as_dir in $PATH
24732 test -z "$as_dir" && as_dir=.
24733 for ac_exec_ext in '' $ac_executable_extensions; do
24734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24735 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24742 test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24746 LLVMGXX=$ac_cv_path_LLVMGXX
24748 if test -n "$LLVMGXX"; then
24749 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24750 echo "${ECHO_T}$LLVMGXX" >&6
24752 echo "$as_me:$LINENO: result: no" >&5
24753 echo "${ECHO_T}no" >&6
24757 LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24758 LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24765 echo "$as_me:$LINENO: checking tool compatibility" >&5
24766 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24779 if test "$GCC" != "yes" && test "$ICC" != "yes"
24781 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24782 echo "$as_me: error: gcc|icc required but not found" >&2;}
24783 { (exit 1); exit 1; }; }
24786 if test "$GXX" != "yes" && test "$IXX" != "yes"
24788 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24789 echo "$as_me: error: g++|icc required but not found" >&2;}
24790 { (exit 1); exit 1; }; }
24793 if test "$GCC" = "yes"
24795 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24796 if test "$gccmajor" -lt "3"
24798 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24799 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24800 { (exit 1); exit 1; }; }
24804 if test -z "$llvm_cv_gnu_make_command"
24806 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24807 echo "$as_me: error: GNU Make required but not found" >&2;}
24808 { (exit 1); exit 1; }; }
24811 echo "$as_me:$LINENO: result: ok" >&5
24812 echo "${ECHO_T}ok" >&6
24816 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24817 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24818 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24819 echo $ECHO_N "(cached) $ECHO_C" >&6
24821 ac_check_lib_save_LIBS=$LIBS
24823 cat >conftest.$ac_ext <<_ACEOF
24826 cat confdefs.h >>conftest.$ac_ext
24827 cat >>conftest.$ac_ext <<_ACEOF
24828 /* end confdefs.h. */
24830 /* Override any gcc2 internal prototype to avoid an error. */
24834 /* We use char because int might match the return type of a gcc2
24835 builtin and then its argument prototype would still apply. */
24845 rm -f conftest.$ac_objext conftest$ac_exeext
24846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24847 (eval $ac_link) 2>conftest.er1
24849 grep -v '^ *+' conftest.er1 >conftest.err
24851 cat conftest.err >&5
24852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); } &&
24854 { ac_try='test -z "$ac_c_werror_flag"
24855 || test ! -s conftest.err'
24856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24857 (eval $ac_try) 2>&5
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); }; } &&
24861 { ac_try='test -s conftest$ac_exeext'
24862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24863 (eval $ac_try) 2>&5
24865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866 (exit $ac_status); }; }; then
24867 ac_cv_lib_elf_elf_begin=yes
24869 echo "$as_me: failed program was:" >&5
24870 sed 's/^/| /' conftest.$ac_ext >&5
24872 ac_cv_lib_elf_elf_begin=no
24874 rm -f conftest.err conftest.$ac_objext \
24875 conftest$ac_exeext conftest.$ac_ext
24876 LIBS=$ac_check_lib_save_LIBS
24878 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24879 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24880 if test $ac_cv_lib_elf_elf_begin = yes; then
24881 cat >>confdefs.h <<_ACEOF
24882 #define HAVE_LIBELF 1
24890 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24891 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24892 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24893 echo $ECHO_N "(cached) $ECHO_C" >&6
24895 ac_func_search_save_LIBS=$LIBS
24896 ac_cv_search_lt_dlopen=no
24897 cat >conftest.$ac_ext <<_ACEOF
24900 cat confdefs.h >>conftest.$ac_ext
24901 cat >>conftest.$ac_ext <<_ACEOF
24902 /* end confdefs.h. */
24904 /* Override any gcc2 internal prototype to avoid an error. */
24908 /* We use char because int might match the return type of a gcc2
24909 builtin and then its argument prototype would still apply. */
24919 rm -f conftest.$ac_objext conftest$ac_exeext
24920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24921 (eval $ac_link) 2>conftest.er1
24923 grep -v '^ *+' conftest.er1 >conftest.err
24925 cat conftest.err >&5
24926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); } &&
24928 { ac_try='test -z "$ac_c_werror_flag"
24929 || test ! -s conftest.err'
24930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24931 (eval $ac_try) 2>&5
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); }; } &&
24935 { ac_try='test -s conftest$ac_exeext'
24936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24937 (eval $ac_try) 2>&5
24939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940 (exit $ac_status); }; }; then
24941 ac_cv_search_lt_dlopen="none required"
24943 echo "$as_me: failed program was:" >&5
24944 sed 's/^/| /' conftest.$ac_ext >&5
24947 rm -f conftest.err conftest.$ac_objext \
24948 conftest$ac_exeext conftest.$ac_ext
24949 if test "$ac_cv_search_lt_dlopen" = no; then
24950 for ac_lib in ltdl; do
24951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24952 cat >conftest.$ac_ext <<_ACEOF
24955 cat confdefs.h >>conftest.$ac_ext
24956 cat >>conftest.$ac_ext <<_ACEOF
24957 /* end confdefs.h. */
24959 /* Override any gcc2 internal prototype to avoid an error. */
24963 /* We use char because int might match the return type of a gcc2
24964 builtin and then its argument prototype would still apply. */
24974 rm -f conftest.$ac_objext conftest$ac_exeext
24975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24976 (eval $ac_link) 2>conftest.er1
24978 grep -v '^ *+' conftest.er1 >conftest.err
24980 cat conftest.err >&5
24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); } &&
24983 { ac_try='test -z "$ac_c_werror_flag"
24984 || test ! -s conftest.err'
24985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24986 (eval $ac_try) 2>&5
24988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989 (exit $ac_status); }; } &&
24990 { ac_try='test -s conftest$ac_exeext'
24991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24992 (eval $ac_try) 2>&5
24994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24995 (exit $ac_status); }; }; then
24996 ac_cv_search_lt_dlopen="-l$ac_lib"
24999 echo "$as_me: failed program was:" >&5
25000 sed 's/^/| /' conftest.$ac_ext >&5
25003 rm -f conftest.err conftest.$ac_objext \
25004 conftest$ac_exeext conftest.$ac_ext
25007 LIBS=$ac_func_search_save_LIBS
25009 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25010 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25011 if test "$ac_cv_search_lt_dlopen" != no; then
25012 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25014 cat >>confdefs.h <<\_ACEOF
25015 #define HAVE_LT_DLOPEN 1
25019 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25020 not be available" >&5
25021 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25022 not be available" >&2;}
25026 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25027 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25028 if test "${ac_cv_search_dlopen+set}" = set; then
25029 echo $ECHO_N "(cached) $ECHO_C" >&6
25031 ac_func_search_save_LIBS=$LIBS
25032 ac_cv_search_dlopen=no
25033 cat >conftest.$ac_ext <<_ACEOF
25036 cat confdefs.h >>conftest.$ac_ext
25037 cat >>conftest.$ac_ext <<_ACEOF
25038 /* end confdefs.h. */
25040 /* Override any gcc2 internal prototype to avoid an error. */
25044 /* We use char because int might match the return type of a gcc2
25045 builtin and then its argument prototype would still apply. */
25055 rm -f conftest.$ac_objext conftest$ac_exeext
25056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25057 (eval $ac_link) 2>conftest.er1
25059 grep -v '^ *+' conftest.er1 >conftest.err
25061 cat conftest.err >&5
25062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063 (exit $ac_status); } &&
25064 { ac_try='test -z "$ac_c_werror_flag"
25065 || test ! -s conftest.err'
25066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25067 (eval $ac_try) 2>&5
25069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070 (exit $ac_status); }; } &&
25071 { ac_try='test -s conftest$ac_exeext'
25072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25073 (eval $ac_try) 2>&5
25075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); }; }; then
25077 ac_cv_search_dlopen="none required"
25079 echo "$as_me: failed program was:" >&5
25080 sed 's/^/| /' conftest.$ac_ext >&5
25083 rm -f conftest.err conftest.$ac_objext \
25084 conftest$ac_exeext conftest.$ac_ext
25085 if test "$ac_cv_search_dlopen" = no; then
25086 for ac_lib in dl; do
25087 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25088 cat >conftest.$ac_ext <<_ACEOF
25091 cat confdefs.h >>conftest.$ac_ext
25092 cat >>conftest.$ac_ext <<_ACEOF
25093 /* end confdefs.h. */
25095 /* Override any gcc2 internal prototype to avoid an error. */
25099 /* We use char because int might match the return type of a gcc2
25100 builtin and then its argument prototype would still apply. */
25110 rm -f conftest.$ac_objext conftest$ac_exeext
25111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25112 (eval $ac_link) 2>conftest.er1
25114 grep -v '^ *+' conftest.er1 >conftest.err
25116 cat conftest.err >&5
25117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118 (exit $ac_status); } &&
25119 { ac_try='test -z "$ac_c_werror_flag"
25120 || test ! -s conftest.err'
25121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25122 (eval $ac_try) 2>&5
25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 (exit $ac_status); }; } &&
25126 { ac_try='test -s conftest$ac_exeext'
25127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25128 (eval $ac_try) 2>&5
25130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); }; }; then
25132 ac_cv_search_dlopen="-l$ac_lib"
25135 echo "$as_me: failed program was:" >&5
25136 sed 's/^/| /' conftest.$ac_ext >&5
25139 rm -f conftest.err conftest.$ac_objext \
25140 conftest$ac_exeext conftest.$ac_ext
25143 LIBS=$ac_func_search_save_LIBS
25145 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25146 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25147 if test "$ac_cv_search_dlopen" != no; then
25148 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25150 cat >>confdefs.h <<\_ACEOF
25151 #define HAVE_DLOPEN 1
25155 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25156 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25160 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25161 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25162 if test "${ac_cv_search_mallinfo+set}" = set; then
25163 echo $ECHO_N "(cached) $ECHO_C" >&6
25165 ac_func_search_save_LIBS=$LIBS
25166 ac_cv_search_mallinfo=no
25167 cat >conftest.$ac_ext <<_ACEOF
25170 cat confdefs.h >>conftest.$ac_ext
25171 cat >>conftest.$ac_ext <<_ACEOF
25172 /* end confdefs.h. */
25174 /* Override any gcc2 internal prototype to avoid an error. */
25178 /* We use char because int might match the return type of a gcc2
25179 builtin and then its argument prototype would still apply. */
25189 rm -f conftest.$ac_objext conftest$ac_exeext
25190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25191 (eval $ac_link) 2>conftest.er1
25193 grep -v '^ *+' conftest.er1 >conftest.err
25195 cat conftest.err >&5
25196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); } &&
25198 { ac_try='test -z "$ac_c_werror_flag"
25199 || test ! -s conftest.err'
25200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25201 (eval $ac_try) 2>&5
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); }; } &&
25205 { ac_try='test -s conftest$ac_exeext'
25206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25207 (eval $ac_try) 2>&5
25209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); }; }; then
25211 ac_cv_search_mallinfo="none required"
25213 echo "$as_me: failed program was:" >&5
25214 sed 's/^/| /' conftest.$ac_ext >&5
25217 rm -f conftest.err conftest.$ac_objext \
25218 conftest$ac_exeext conftest.$ac_ext
25219 if test "$ac_cv_search_mallinfo" = no; then
25220 for ac_lib in malloc; do
25221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25222 cat >conftest.$ac_ext <<_ACEOF
25225 cat confdefs.h >>conftest.$ac_ext
25226 cat >>conftest.$ac_ext <<_ACEOF
25227 /* end confdefs.h. */
25229 /* Override any gcc2 internal prototype to avoid an error. */
25233 /* We use char because int might match the return type of a gcc2
25234 builtin and then its argument prototype would still apply. */
25244 rm -f conftest.$ac_objext conftest$ac_exeext
25245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25246 (eval $ac_link) 2>conftest.er1
25248 grep -v '^ *+' conftest.er1 >conftest.err
25250 cat conftest.err >&5
25251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252 (exit $ac_status); } &&
25253 { ac_try='test -z "$ac_c_werror_flag"
25254 || test ! -s conftest.err'
25255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25256 (eval $ac_try) 2>&5
25258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259 (exit $ac_status); }; } &&
25260 { ac_try='test -s conftest$ac_exeext'
25261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25262 (eval $ac_try) 2>&5
25264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265 (exit $ac_status); }; }; then
25266 ac_cv_search_mallinfo="-l$ac_lib"
25269 echo "$as_me: failed program was:" >&5
25270 sed 's/^/| /' conftest.$ac_ext >&5
25273 rm -f conftest.err conftest.$ac_objext \
25274 conftest$ac_exeext conftest.$ac_ext
25277 LIBS=$ac_func_search_save_LIBS
25279 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25280 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25281 if test "$ac_cv_search_mallinfo" != no; then
25282 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25284 cat >>confdefs.h <<\_ACEOF
25285 #define HAVE_MALLINFO 1
25291 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25292 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25293 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25294 echo $ECHO_N "(cached) $ECHO_C" >&6
25296 ac_func_search_save_LIBS=$LIBS
25297 ac_cv_search_pthread_mutex_lock=no
25298 cat >conftest.$ac_ext <<_ACEOF
25301 cat confdefs.h >>conftest.$ac_ext
25302 cat >>conftest.$ac_ext <<_ACEOF
25303 /* end confdefs.h. */
25305 /* Override any gcc2 internal prototype to avoid an error. */
25309 /* We use char because int might match the return type of a gcc2
25310 builtin and then its argument prototype would still apply. */
25311 char pthread_mutex_lock ();
25315 pthread_mutex_lock ();
25320 rm -f conftest.$ac_objext conftest$ac_exeext
25321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25322 (eval $ac_link) 2>conftest.er1
25324 grep -v '^ *+' conftest.er1 >conftest.err
25326 cat conftest.err >&5
25327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); } &&
25329 { ac_try='test -z "$ac_c_werror_flag"
25330 || test ! -s conftest.err'
25331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25332 (eval $ac_try) 2>&5
25334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335 (exit $ac_status); }; } &&
25336 { ac_try='test -s conftest$ac_exeext'
25337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25338 (eval $ac_try) 2>&5
25340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); }; }; then
25342 ac_cv_search_pthread_mutex_lock="none required"
25344 echo "$as_me: failed program was:" >&5
25345 sed 's/^/| /' conftest.$ac_ext >&5
25348 rm -f conftest.err conftest.$ac_objext \
25349 conftest$ac_exeext conftest.$ac_ext
25350 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25351 for ac_lib in pthread; do
25352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25353 cat >conftest.$ac_ext <<_ACEOF
25356 cat confdefs.h >>conftest.$ac_ext
25357 cat >>conftest.$ac_ext <<_ACEOF
25358 /* end confdefs.h. */
25360 /* Override any gcc2 internal prototype to avoid an error. */
25364 /* We use char because int might match the return type of a gcc2
25365 builtin and then its argument prototype would still apply. */
25366 char pthread_mutex_lock ();
25370 pthread_mutex_lock ();
25375 rm -f conftest.$ac_objext conftest$ac_exeext
25376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25377 (eval $ac_link) 2>conftest.er1
25379 grep -v '^ *+' conftest.er1 >conftest.err
25381 cat conftest.err >&5
25382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383 (exit $ac_status); } &&
25384 { ac_try='test -z "$ac_c_werror_flag"
25385 || test ! -s conftest.err'
25386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25387 (eval $ac_try) 2>&5
25389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390 (exit $ac_status); }; } &&
25391 { ac_try='test -s conftest$ac_exeext'
25392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25393 (eval $ac_try) 2>&5
25395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396 (exit $ac_status); }; }; then
25397 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25400 echo "$as_me: failed program was:" >&5
25401 sed 's/^/| /' conftest.$ac_ext >&5
25404 rm -f conftest.err conftest.$ac_objext \
25405 conftest$ac_exeext conftest.$ac_ext
25408 LIBS=$ac_func_search_save_LIBS
25410 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25411 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25412 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25413 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25415 cat >>confdefs.h <<\_ACEOF
25416 #define HAVE_PTHREAD_MUTEX_LOCK 1
25428 ac_header_dirent=no
25429 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25430 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25431 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25432 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25434 echo $ECHO_N "(cached) $ECHO_C" >&6
25436 cat >conftest.$ac_ext <<_ACEOF
25439 cat confdefs.h >>conftest.$ac_ext
25440 cat >>conftest.$ac_ext <<_ACEOF
25441 /* end confdefs.h. */
25442 #include <sys/types.h>
25454 rm -f conftest.$ac_objext
25455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25456 (eval $ac_compile) 2>conftest.er1
25458 grep -v '^ *+' conftest.er1 >conftest.err
25460 cat conftest.err >&5
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); } &&
25463 { ac_try='test -z "$ac_c_werror_flag"
25464 || test ! -s conftest.err'
25465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25466 (eval $ac_try) 2>&5
25468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); }; } &&
25470 { ac_try='test -s conftest.$ac_objext'
25471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25472 (eval $ac_try) 2>&5
25474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475 (exit $ac_status); }; }; then
25476 eval "$as_ac_Header=yes"
25478 echo "$as_me: failed program was:" >&5
25479 sed 's/^/| /' conftest.$ac_ext >&5
25481 eval "$as_ac_Header=no"
25483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25488 cat >>confdefs.h <<_ACEOF
25489 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25492 ac_header_dirent=$ac_hdr; break
25496 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25497 if test $ac_header_dirent = dirent.h; then
25498 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25499 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25500 if test "${ac_cv_search_opendir+set}" = set; then
25501 echo $ECHO_N "(cached) $ECHO_C" >&6
25503 ac_func_search_save_LIBS=$LIBS
25504 ac_cv_search_opendir=no
25505 cat >conftest.$ac_ext <<_ACEOF
25508 cat confdefs.h >>conftest.$ac_ext
25509 cat >>conftest.$ac_ext <<_ACEOF
25510 /* end confdefs.h. */
25512 /* Override any gcc2 internal prototype to avoid an error. */
25516 /* We use char because int might match the return type of a gcc2
25517 builtin and then its argument prototype would still apply. */
25527 rm -f conftest.$ac_objext conftest$ac_exeext
25528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25529 (eval $ac_link) 2>conftest.er1
25531 grep -v '^ *+' conftest.er1 >conftest.err
25533 cat conftest.err >&5
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); } &&
25536 { ac_try='test -z "$ac_c_werror_flag"
25537 || test ! -s conftest.err'
25538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25539 (eval $ac_try) 2>&5
25541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); }; } &&
25543 { ac_try='test -s conftest$ac_exeext'
25544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25545 (eval $ac_try) 2>&5
25547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548 (exit $ac_status); }; }; then
25549 ac_cv_search_opendir="none required"
25551 echo "$as_me: failed program was:" >&5
25552 sed 's/^/| /' conftest.$ac_ext >&5
25555 rm -f conftest.err conftest.$ac_objext \
25556 conftest$ac_exeext conftest.$ac_ext
25557 if test "$ac_cv_search_opendir" = no; then
25558 for ac_lib in dir; do
25559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25560 cat >conftest.$ac_ext <<_ACEOF
25563 cat confdefs.h >>conftest.$ac_ext
25564 cat >>conftest.$ac_ext <<_ACEOF
25565 /* end confdefs.h. */
25567 /* Override any gcc2 internal prototype to avoid an error. */
25571 /* We use char because int might match the return type of a gcc2
25572 builtin and then its argument prototype would still apply. */
25582 rm -f conftest.$ac_objext conftest$ac_exeext
25583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25584 (eval $ac_link) 2>conftest.er1
25586 grep -v '^ *+' conftest.er1 >conftest.err
25588 cat conftest.err >&5
25589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590 (exit $ac_status); } &&
25591 { ac_try='test -z "$ac_c_werror_flag"
25592 || test ! -s conftest.err'
25593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25594 (eval $ac_try) 2>&5
25596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); }; } &&
25598 { ac_try='test -s conftest$ac_exeext'
25599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25600 (eval $ac_try) 2>&5
25602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603 (exit $ac_status); }; }; then
25604 ac_cv_search_opendir="-l$ac_lib"
25607 echo "$as_me: failed program was:" >&5
25608 sed 's/^/| /' conftest.$ac_ext >&5
25611 rm -f conftest.err conftest.$ac_objext \
25612 conftest$ac_exeext conftest.$ac_ext
25615 LIBS=$ac_func_search_save_LIBS
25617 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25618 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25619 if test "$ac_cv_search_opendir" != no; then
25620 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25625 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25626 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25627 if test "${ac_cv_search_opendir+set}" = set; then
25628 echo $ECHO_N "(cached) $ECHO_C" >&6
25630 ac_func_search_save_LIBS=$LIBS
25631 ac_cv_search_opendir=no
25632 cat >conftest.$ac_ext <<_ACEOF
25635 cat confdefs.h >>conftest.$ac_ext
25636 cat >>conftest.$ac_ext <<_ACEOF
25637 /* end confdefs.h. */
25639 /* Override any gcc2 internal prototype to avoid an error. */
25643 /* We use char because int might match the return type of a gcc2
25644 builtin and then its argument prototype would still apply. */
25654 rm -f conftest.$ac_objext conftest$ac_exeext
25655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25656 (eval $ac_link) 2>conftest.er1
25658 grep -v '^ *+' conftest.er1 >conftest.err
25660 cat conftest.err >&5
25661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); } &&
25663 { ac_try='test -z "$ac_c_werror_flag"
25664 || test ! -s conftest.err'
25665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25666 (eval $ac_try) 2>&5
25668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); }; } &&
25670 { ac_try='test -s conftest$ac_exeext'
25671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25672 (eval $ac_try) 2>&5
25674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); }; }; then
25676 ac_cv_search_opendir="none required"
25678 echo "$as_me: failed program was:" >&5
25679 sed 's/^/| /' conftest.$ac_ext >&5
25682 rm -f conftest.err conftest.$ac_objext \
25683 conftest$ac_exeext conftest.$ac_ext
25684 if test "$ac_cv_search_opendir" = no; then
25685 for ac_lib in x; do
25686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25687 cat >conftest.$ac_ext <<_ACEOF
25690 cat confdefs.h >>conftest.$ac_ext
25691 cat >>conftest.$ac_ext <<_ACEOF
25692 /* end confdefs.h. */
25694 /* Override any gcc2 internal prototype to avoid an error. */
25698 /* We use char because int might match the return type of a gcc2
25699 builtin and then its argument prototype would still apply. */
25709 rm -f conftest.$ac_objext conftest$ac_exeext
25710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25711 (eval $ac_link) 2>conftest.er1
25713 grep -v '^ *+' conftest.er1 >conftest.err
25715 cat conftest.err >&5
25716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717 (exit $ac_status); } &&
25718 { ac_try='test -z "$ac_c_werror_flag"
25719 || test ! -s conftest.err'
25720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25721 (eval $ac_try) 2>&5
25723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25724 (exit $ac_status); }; } &&
25725 { ac_try='test -s conftest$ac_exeext'
25726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25727 (eval $ac_try) 2>&5
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); }; }; then
25731 ac_cv_search_opendir="-l$ac_lib"
25734 echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25738 rm -f conftest.err conftest.$ac_objext \
25739 conftest$ac_exeext conftest.$ac_ext
25742 LIBS=$ac_func_search_save_LIBS
25744 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25745 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25746 if test "$ac_cv_search_opendir" != no; then
25747 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25753 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25754 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25755 if test "${ac_cv_header_mmap_anon+set}" = set; then
25756 echo $ECHO_N "(cached) $ECHO_C" >&6
25759 ac_cpp='$CPP $CPPFLAGS'
25760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25764 cat >conftest.$ac_ext <<_ACEOF
25767 cat confdefs.h >>conftest.$ac_ext
25768 cat >>conftest.$ac_ext <<_ACEOF
25769 /* end confdefs.h. */
25770 #include <sys/mman.h>
25771 #include <unistd.h>
25776 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25781 rm -f conftest.$ac_objext
25782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25783 (eval $ac_compile) 2>conftest.er1
25785 grep -v '^ *+' conftest.er1 >conftest.err
25787 cat conftest.err >&5
25788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25789 (exit $ac_status); } &&
25790 { ac_try='test -z "$ac_c_werror_flag"
25791 || test ! -s conftest.err'
25792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25793 (eval $ac_try) 2>&5
25795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796 (exit $ac_status); }; } &&
25797 { ac_try='test -s conftest.$ac_objext'
25798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25799 (eval $ac_try) 2>&5
25801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802 (exit $ac_status); }; }; then
25803 ac_cv_header_mmap_anon=yes
25805 echo "$as_me: failed program was:" >&5
25806 sed 's/^/| /' conftest.$ac_ext >&5
25808 ac_cv_header_mmap_anon=no
25810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25812 ac_cpp='$CPP $CPPFLAGS'
25813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25819 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25820 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25821 if test "$ac_cv_header_mmap_anon" = yes; then
25823 cat >>confdefs.h <<\_ACEOF
25824 #define HAVE_MMAP_ANONYMOUS 1
25829 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25830 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25831 if test "${ac_cv_header_stat_broken+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 <sys/types.h>
25841 #include <sys/stat.h>
25843 #if defined(S_ISBLK) && defined(S_IFDIR)
25844 # if S_ISBLK (S_IFDIR)
25849 #if defined(S_ISBLK) && defined(S_IFCHR)
25850 # if S_ISBLK (S_IFCHR)
25855 #if defined(S_ISLNK) && defined(S_IFREG)
25856 # if S_ISLNK (S_IFREG)
25861 #if defined(S_ISSOCK) && defined(S_IFREG)
25862 # if S_ISSOCK (S_IFREG)
25868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25869 $EGREP "You lose" >/dev/null 2>&1; then
25870 ac_cv_header_stat_broken=yes
25872 ac_cv_header_stat_broken=no
25877 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25878 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25879 if test $ac_cv_header_stat_broken = yes; then
25881 cat >>confdefs.h <<\_ACEOF
25882 #define STAT_MACROS_BROKEN 1
25887 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25888 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25889 if test "${ac_cv_header_stdc+set}" = set; then
25890 echo $ECHO_N "(cached) $ECHO_C" >&6
25892 cat >conftest.$ac_ext <<_ACEOF
25895 cat confdefs.h >>conftest.$ac_ext
25896 cat >>conftest.$ac_ext <<_ACEOF
25897 /* end confdefs.h. */
25898 #include <stdlib.h>
25899 #include <stdarg.h>
25900 #include <string.h>
25911 rm -f conftest.$ac_objext
25912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25913 (eval $ac_compile) 2>conftest.er1
25915 grep -v '^ *+' conftest.er1 >conftest.err
25917 cat conftest.err >&5
25918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919 (exit $ac_status); } &&
25920 { ac_try='test -z "$ac_c_werror_flag"
25921 || test ! -s conftest.err'
25922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25923 (eval $ac_try) 2>&5
25925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25926 (exit $ac_status); }; } &&
25927 { ac_try='test -s conftest.$ac_objext'
25928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25929 (eval $ac_try) 2>&5
25931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25932 (exit $ac_status); }; }; then
25933 ac_cv_header_stdc=yes
25935 echo "$as_me: failed program was:" >&5
25936 sed 's/^/| /' conftest.$ac_ext >&5
25938 ac_cv_header_stdc=no
25940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25942 if test $ac_cv_header_stdc = yes; then
25943 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25944 cat >conftest.$ac_ext <<_ACEOF
25947 cat confdefs.h >>conftest.$ac_ext
25948 cat >>conftest.$ac_ext <<_ACEOF
25949 /* end confdefs.h. */
25950 #include <string.h>
25953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25954 $EGREP "memchr" >/dev/null 2>&1; then
25957 ac_cv_header_stdc=no
25963 if test $ac_cv_header_stdc = yes; then
25964 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25965 cat >conftest.$ac_ext <<_ACEOF
25968 cat confdefs.h >>conftest.$ac_ext
25969 cat >>conftest.$ac_ext <<_ACEOF
25970 /* end confdefs.h. */
25971 #include <stdlib.h>
25974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25975 $EGREP "free" >/dev/null 2>&1; then
25978 ac_cv_header_stdc=no
25984 if test $ac_cv_header_stdc = yes; then
25985 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25986 if test "$cross_compiling" = yes; then
25989 cat >conftest.$ac_ext <<_ACEOF
25992 cat confdefs.h >>conftest.$ac_ext
25993 cat >>conftest.$ac_ext <<_ACEOF
25994 /* end confdefs.h. */
25996 #if ((' ' & 0x0FF) == 0x020)
25997 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25998 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26000 # define ISLOWER(c) \
26001 (('a' <= (c) && (c) <= 'i') \
26002 || ('j' <= (c) && (c) <= 'r') \
26003 || ('s' <= (c) && (c) <= 'z'))
26004 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26007 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26012 for (i = 0; i < 256; i++)
26013 if (XOR (islower (i), ISLOWER (i))
26014 || toupper (i) != TOUPPER (i))
26019 rm -f conftest$ac_exeext
26020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26021 (eval $ac_link) 2>&5
26023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26026 (eval $ac_try) 2>&5
26028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029 (exit $ac_status); }; }; then
26032 echo "$as_me: program exited with status $ac_status" >&5
26033 echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.$ac_ext >&5
26036 ( exit $ac_status )
26037 ac_cv_header_stdc=no
26039 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26043 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26044 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26045 if test $ac_cv_header_stdc = yes; then
26047 cat >>confdefs.h <<\_ACEOF
26048 #define STDC_HEADERS 1
26053 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26054 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26055 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26056 echo $ECHO_N "(cached) $ECHO_C" >&6
26058 cat >conftest.$ac_ext <<_ACEOF
26061 cat confdefs.h >>conftest.$ac_ext
26062 cat >>conftest.$ac_ext <<_ACEOF
26063 /* end confdefs.h. */
26064 #include <sys/types.h>
26065 #include <sys/wait.h>
26066 #ifndef WEXITSTATUS
26067 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26070 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26078 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26083 rm -f conftest.$ac_objext
26084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26085 (eval $ac_compile) 2>conftest.er1
26087 grep -v '^ *+' conftest.er1 >conftest.err
26089 cat conftest.err >&5
26090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091 (exit $ac_status); } &&
26092 { ac_try='test -z "$ac_c_werror_flag"
26093 || test ! -s conftest.err'
26094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26095 (eval $ac_try) 2>&5
26097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098 (exit $ac_status); }; } &&
26099 { ac_try='test -s conftest.$ac_objext'
26100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26101 (eval $ac_try) 2>&5
26103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26104 (exit $ac_status); }; }; then
26105 ac_cv_header_sys_wait_h=yes
26107 echo "$as_me: failed program was:" >&5
26108 sed 's/^/| /' conftest.$ac_ext >&5
26110 ac_cv_header_sys_wait_h=no
26112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26114 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26115 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26116 if test $ac_cv_header_sys_wait_h = yes; then
26118 cat >>confdefs.h <<\_ACEOF
26119 #define HAVE_SYS_WAIT_H 1
26124 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26125 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26126 if test "${ac_cv_header_time+set}" = set; then
26127 echo $ECHO_N "(cached) $ECHO_C" >&6
26129 cat >conftest.$ac_ext <<_ACEOF
26132 cat confdefs.h >>conftest.$ac_ext
26133 cat >>conftest.$ac_ext <<_ACEOF
26134 /* end confdefs.h. */
26135 #include <sys/types.h>
26136 #include <sys/time.h>
26142 if ((struct tm *) 0)
26148 rm -f conftest.$ac_objext
26149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26150 (eval $ac_compile) 2>conftest.er1
26152 grep -v '^ *+' conftest.er1 >conftest.err
26154 cat conftest.err >&5
26155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156 (exit $ac_status); } &&
26157 { ac_try='test -z "$ac_c_werror_flag"
26158 || test ! -s conftest.err'
26159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26160 (eval $ac_try) 2>&5
26162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163 (exit $ac_status); }; } &&
26164 { ac_try='test -s conftest.$ac_objext'
26165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26166 (eval $ac_try) 2>&5
26168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169 (exit $ac_status); }; }; then
26170 ac_cv_header_time=yes
26172 echo "$as_me: failed program was:" >&5
26173 sed 's/^/| /' conftest.$ac_ext >&5
26175 ac_cv_header_time=no
26177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26179 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26180 echo "${ECHO_T}$ac_cv_header_time" >&6
26181 if test $ac_cv_header_time = yes; then
26183 cat >>confdefs.h <<\_ACEOF
26184 #define TIME_WITH_SYS_TIME 1
26196 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26200 echo "$as_me:$LINENO: checking for $ac_header" >&5
26201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26203 echo $ECHO_N "(cached) $ECHO_C" >&6
26205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26208 # Is the header compilable?
26209 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26211 cat >conftest.$ac_ext <<_ACEOF
26214 cat confdefs.h >>conftest.$ac_ext
26215 cat >>conftest.$ac_ext <<_ACEOF
26216 /* end confdefs.h. */
26217 $ac_includes_default
26218 #include <$ac_header>
26220 rm -f conftest.$ac_objext
26221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26222 (eval $ac_compile) 2>conftest.er1
26224 grep -v '^ *+' conftest.er1 >conftest.err
26226 cat conftest.err >&5
26227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228 (exit $ac_status); } &&
26229 { ac_try='test -z "$ac_c_werror_flag"
26230 || test ! -s conftest.err'
26231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26232 (eval $ac_try) 2>&5
26234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235 (exit $ac_status); }; } &&
26236 { ac_try='test -s conftest.$ac_objext'
26237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26238 (eval $ac_try) 2>&5
26240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241 (exit $ac_status); }; }; then
26242 ac_header_compiler=yes
26244 echo "$as_me: failed program was:" >&5
26245 sed 's/^/| /' conftest.$ac_ext >&5
26247 ac_header_compiler=no
26249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26251 echo "${ECHO_T}$ac_header_compiler" >&6
26253 # Is the header present?
26254 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26256 cat >conftest.$ac_ext <<_ACEOF
26259 cat confdefs.h >>conftest.$ac_ext
26260 cat >>conftest.$ac_ext <<_ACEOF
26261 /* end confdefs.h. */
26262 #include <$ac_header>
26264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26267 grep -v '^ *+' conftest.er1 >conftest.err
26269 cat conftest.err >&5
26270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271 (exit $ac_status); } >/dev/null; then
26272 if test -s conftest.err; then
26273 ac_cpp_err=$ac_c_preproc_warn_flag
26274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26281 if test -z "$ac_cpp_err"; then
26282 ac_header_preproc=yes
26284 echo "$as_me: failed program was:" >&5
26285 sed 's/^/| /' conftest.$ac_ext >&5
26287 ac_header_preproc=no
26289 rm -f conftest.err conftest.$ac_ext
26290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26291 echo "${ECHO_T}$ac_header_preproc" >&6
26293 # So? What about this header?
26294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26300 ac_header_preproc=yes
26303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26306 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26310 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26317 ## ----------------------------------- ##
26318 ## Report this to llvmbugs@cs.uiuc.edu ##
26319 ## ----------------------------------- ##
26322 sed "s/^/$as_me: WARNING: /" >&2
26325 echo "$as_me:$LINENO: checking for $ac_header" >&5
26326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26328 echo $ECHO_N "(cached) $ECHO_C" >&6
26330 eval "$as_ac_Header=\$ac_header_preproc"
26332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26337 cat >>confdefs.h <<_ACEOF
26338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26351 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26355 echo "$as_me:$LINENO: checking for $ac_header" >&5
26356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26358 echo $ECHO_N "(cached) $ECHO_C" >&6
26360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26363 # Is the header compilable?
26364 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26366 cat >conftest.$ac_ext <<_ACEOF
26369 cat confdefs.h >>conftest.$ac_ext
26370 cat >>conftest.$ac_ext <<_ACEOF
26371 /* end confdefs.h. */
26372 $ac_includes_default
26373 #include <$ac_header>
26375 rm -f conftest.$ac_objext
26376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26377 (eval $ac_compile) 2>conftest.er1
26379 grep -v '^ *+' conftest.er1 >conftest.err
26381 cat conftest.err >&5
26382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383 (exit $ac_status); } &&
26384 { ac_try='test -z "$ac_c_werror_flag"
26385 || test ! -s conftest.err'
26386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26387 (eval $ac_try) 2>&5
26389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); }; } &&
26391 { ac_try='test -s conftest.$ac_objext'
26392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26393 (eval $ac_try) 2>&5
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); }; }; then
26397 ac_header_compiler=yes
26399 echo "$as_me: failed program was:" >&5
26400 sed 's/^/| /' conftest.$ac_ext >&5
26402 ac_header_compiler=no
26404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26406 echo "${ECHO_T}$ac_header_compiler" >&6
26408 # Is the header present?
26409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26411 cat >conftest.$ac_ext <<_ACEOF
26414 cat confdefs.h >>conftest.$ac_ext
26415 cat >>conftest.$ac_ext <<_ACEOF
26416 /* end confdefs.h. */
26417 #include <$ac_header>
26419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26422 grep -v '^ *+' conftest.er1 >conftest.err
26424 cat conftest.err >&5
26425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426 (exit $ac_status); } >/dev/null; then
26427 if test -s conftest.err; then
26428 ac_cpp_err=$ac_c_preproc_warn_flag
26429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26436 if test -z "$ac_cpp_err"; then
26437 ac_header_preproc=yes
26439 echo "$as_me: failed program was:" >&5
26440 sed 's/^/| /' conftest.$ac_ext >&5
26442 ac_header_preproc=no
26444 rm -f conftest.err conftest.$ac_ext
26445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26446 echo "${ECHO_T}$ac_header_preproc" >&6
26448 # So? What about this header?
26449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26455 ac_header_preproc=yes
26458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26472 ## ----------------------------------- ##
26473 ## Report this to llvmbugs@cs.uiuc.edu ##
26474 ## ----------------------------------- ##
26477 sed "s/^/$as_me: WARNING: /" >&2
26480 echo "$as_me:$LINENO: checking for $ac_header" >&5
26481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26483 echo $ECHO_N "(cached) $ECHO_C" >&6
26485 eval "$as_ac_Header=\$ac_header_preproc"
26487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26492 cat >>confdefs.h <<_ACEOF
26493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26505 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26509 echo "$as_me:$LINENO: checking for $ac_header" >&5
26510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26512 echo $ECHO_N "(cached) $ECHO_C" >&6
26514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26517 # Is the header compilable?
26518 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26520 cat >conftest.$ac_ext <<_ACEOF
26523 cat confdefs.h >>conftest.$ac_ext
26524 cat >>conftest.$ac_ext <<_ACEOF
26525 /* end confdefs.h. */
26526 $ac_includes_default
26527 #include <$ac_header>
26529 rm -f conftest.$ac_objext
26530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26531 (eval $ac_compile) 2>conftest.er1
26533 grep -v '^ *+' conftest.er1 >conftest.err
26535 cat conftest.err >&5
26536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537 (exit $ac_status); } &&
26538 { ac_try='test -z "$ac_c_werror_flag"
26539 || test ! -s conftest.err'
26540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26541 (eval $ac_try) 2>&5
26543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26544 (exit $ac_status); }; } &&
26545 { ac_try='test -s conftest.$ac_objext'
26546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26547 (eval $ac_try) 2>&5
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); }; }; then
26551 ac_header_compiler=yes
26553 echo "$as_me: failed program was:" >&5
26554 sed 's/^/| /' conftest.$ac_ext >&5
26556 ac_header_compiler=no
26558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26560 echo "${ECHO_T}$ac_header_compiler" >&6
26562 # Is the header present?
26563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26565 cat >conftest.$ac_ext <<_ACEOF
26568 cat confdefs.h >>conftest.$ac_ext
26569 cat >>conftest.$ac_ext <<_ACEOF
26570 /* end confdefs.h. */
26571 #include <$ac_header>
26573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26576 grep -v '^ *+' conftest.er1 >conftest.err
26578 cat conftest.err >&5
26579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580 (exit $ac_status); } >/dev/null; then
26581 if test -s conftest.err; then
26582 ac_cpp_err=$ac_c_preproc_warn_flag
26583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26590 if test -z "$ac_cpp_err"; then
26591 ac_header_preproc=yes
26593 echo "$as_me: failed program was:" >&5
26594 sed 's/^/| /' conftest.$ac_ext >&5
26596 ac_header_preproc=no
26598 rm -f conftest.err conftest.$ac_ext
26599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26600 echo "${ECHO_T}$ac_header_preproc" >&6
26602 # So? What about this header?
26603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26609 ac_header_preproc=yes
26612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26619 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26626 ## ----------------------------------- ##
26627 ## Report this to llvmbugs@cs.uiuc.edu ##
26628 ## ----------------------------------- ##
26631 sed "s/^/$as_me: WARNING: /" >&2
26634 echo "$as_me:$LINENO: checking for $ac_header" >&5
26635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26637 echo $ECHO_N "(cached) $ECHO_C" >&6
26639 eval "$as_ac_Header=\$ac_header_preproc"
26641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26646 cat >>confdefs.h <<_ACEOF
26647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26656 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26660 echo "$as_me:$LINENO: checking for $ac_header" >&5
26661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26663 echo $ECHO_N "(cached) $ECHO_C" >&6
26665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26668 # Is the header compilable?
26669 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26671 cat >conftest.$ac_ext <<_ACEOF
26674 cat confdefs.h >>conftest.$ac_ext
26675 cat >>conftest.$ac_ext <<_ACEOF
26676 /* end confdefs.h. */
26677 $ac_includes_default
26678 #include <$ac_header>
26680 rm -f conftest.$ac_objext
26681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26682 (eval $ac_compile) 2>conftest.er1
26684 grep -v '^ *+' conftest.er1 >conftest.err
26686 cat conftest.err >&5
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); } &&
26689 { ac_try='test -z "$ac_c_werror_flag"
26690 || test ! -s conftest.err'
26691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692 (eval $ac_try) 2>&5
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); }; } &&
26696 { ac_try='test -s conftest.$ac_objext'
26697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26698 (eval $ac_try) 2>&5
26700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701 (exit $ac_status); }; }; then
26702 ac_header_compiler=yes
26704 echo "$as_me: failed program was:" >&5
26705 sed 's/^/| /' conftest.$ac_ext >&5
26707 ac_header_compiler=no
26709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26711 echo "${ECHO_T}$ac_header_compiler" >&6
26713 # Is the header present?
26714 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26716 cat >conftest.$ac_ext <<_ACEOF
26719 cat confdefs.h >>conftest.$ac_ext
26720 cat >>conftest.$ac_ext <<_ACEOF
26721 /* end confdefs.h. */
26722 #include <$ac_header>
26724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26727 grep -v '^ *+' conftest.er1 >conftest.err
26729 cat conftest.err >&5
26730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731 (exit $ac_status); } >/dev/null; then
26732 if test -s conftest.err; then
26733 ac_cpp_err=$ac_c_preproc_warn_flag
26734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26741 if test -z "$ac_cpp_err"; then
26742 ac_header_preproc=yes
26744 echo "$as_me: failed program was:" >&5
26745 sed 's/^/| /' conftest.$ac_ext >&5
26747 ac_header_preproc=no
26749 rm -f conftest.err conftest.$ac_ext
26750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26751 echo "${ECHO_T}$ac_header_preproc" >&6
26753 # So? What about this header?
26754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26760 ac_header_preproc=yes
26763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26770 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26777 ## ----------------------------------- ##
26778 ## Report this to llvmbugs@cs.uiuc.edu ##
26779 ## ----------------------------------- ##
26782 sed "s/^/$as_me: WARNING: /" >&2
26785 echo "$as_me:$LINENO: checking for $ac_header" >&5
26786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26788 echo $ECHO_N "(cached) $ECHO_C" >&6
26790 eval "$as_ac_Header=\$ac_header_preproc"
26792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26797 cat >>confdefs.h <<_ACEOF
26798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26807 echo "$as_me:$LINENO: checking for pid_t" >&5
26808 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26809 if test "${ac_cv_type_pid_t+set}" = set; then
26810 echo $ECHO_N "(cached) $ECHO_C" >&6
26812 cat >conftest.$ac_ext <<_ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h. */
26818 $ac_includes_default
26824 if (sizeof (pid_t))
26830 rm -f conftest.$ac_objext
26831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26832 (eval $ac_compile) 2>conftest.er1
26834 grep -v '^ *+' conftest.er1 >conftest.err
26836 cat conftest.err >&5
26837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); } &&
26839 { ac_try='test -z "$ac_c_werror_flag"
26840 || test ! -s conftest.err'
26841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26842 (eval $ac_try) 2>&5
26844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845 (exit $ac_status); }; } &&
26846 { ac_try='test -s conftest.$ac_objext'
26847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26848 (eval $ac_try) 2>&5
26850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851 (exit $ac_status); }; }; then
26852 ac_cv_type_pid_t=yes
26854 echo "$as_me: failed program was:" >&5
26855 sed 's/^/| /' conftest.$ac_ext >&5
26857 ac_cv_type_pid_t=no
26859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26861 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26862 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26863 if test $ac_cv_type_pid_t = yes; then
26867 cat >>confdefs.h <<_ACEOF
26873 echo "$as_me:$LINENO: checking for size_t" >&5
26874 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26875 if test "${ac_cv_type_size_t+set}" = set; then
26876 echo $ECHO_N "(cached) $ECHO_C" >&6
26878 cat >conftest.$ac_ext <<_ACEOF
26881 cat confdefs.h >>conftest.$ac_ext
26882 cat >>conftest.$ac_ext <<_ACEOF
26883 /* end confdefs.h. */
26884 $ac_includes_default
26890 if (sizeof (size_t))
26896 rm -f conftest.$ac_objext
26897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26898 (eval $ac_compile) 2>conftest.er1
26900 grep -v '^ *+' conftest.er1 >conftest.err
26902 cat conftest.err >&5
26903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904 (exit $ac_status); } &&
26905 { ac_try='test -z "$ac_c_werror_flag"
26906 || test ! -s conftest.err'
26907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26908 (eval $ac_try) 2>&5
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); }; } &&
26912 { ac_try='test -s conftest.$ac_objext'
26913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26914 (eval $ac_try) 2>&5
26916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917 (exit $ac_status); }; }; then
26918 ac_cv_type_size_t=yes
26920 echo "$as_me: failed program was:" >&5
26921 sed 's/^/| /' conftest.$ac_ext >&5
26923 ac_cv_type_size_t=no
26925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26927 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26928 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26929 if test $ac_cv_type_size_t = yes; then
26933 cat >>confdefs.h <<_ACEOF
26934 #define size_t unsigned
26939 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26940 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26941 if test "${ac_cv_type_signal+set}" = set; then
26942 echo $ECHO_N "(cached) $ECHO_C" >&6
26944 cat >conftest.$ac_ext <<_ACEOF
26947 cat confdefs.h >>conftest.$ac_ext
26948 cat >>conftest.$ac_ext <<_ACEOF
26949 /* end confdefs.h. */
26950 #include <sys/types.h>
26951 #include <signal.h>
26956 extern "C" void (*signal (int, void (*)(int)))(int);
26958 void (*signal ()) ();
26969 rm -f conftest.$ac_objext
26970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26971 (eval $ac_compile) 2>conftest.er1
26973 grep -v '^ *+' conftest.er1 >conftest.err
26975 cat conftest.err >&5
26976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977 (exit $ac_status); } &&
26978 { ac_try='test -z "$ac_c_werror_flag"
26979 || test ! -s conftest.err'
26980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26981 (eval $ac_try) 2>&5
26983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984 (exit $ac_status); }; } &&
26985 { ac_try='test -s conftest.$ac_objext'
26986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26987 (eval $ac_try) 2>&5
26989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990 (exit $ac_status); }; }; then
26991 ac_cv_type_signal=void
26993 echo "$as_me: failed program was:" >&5
26994 sed 's/^/| /' conftest.$ac_ext >&5
26996 ac_cv_type_signal=int
26998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27000 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27001 echo "${ECHO_T}$ac_cv_type_signal" >&6
27003 cat >>confdefs.h <<_ACEOF
27004 #define RETSIGTYPE $ac_cv_type_signal
27008 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27009 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27010 if test "${ac_cv_struct_tm+set}" = set; then
27011 echo $ECHO_N "(cached) $ECHO_C" >&6
27013 cat >conftest.$ac_ext <<_ACEOF
27016 cat confdefs.h >>conftest.$ac_ext
27017 cat >>conftest.$ac_ext <<_ACEOF
27018 /* end confdefs.h. */
27019 #include <sys/types.h>
27025 struct tm *tp; tp->tm_sec;
27030 rm -f conftest.$ac_objext
27031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27032 (eval $ac_compile) 2>conftest.er1
27034 grep -v '^ *+' conftest.er1 >conftest.err
27036 cat conftest.err >&5
27037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038 (exit $ac_status); } &&
27039 { ac_try='test -z "$ac_c_werror_flag"
27040 || test ! -s conftest.err'
27041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27042 (eval $ac_try) 2>&5
27044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045 (exit $ac_status); }; } &&
27046 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27052 ac_cv_struct_tm=time.h
27054 echo "$as_me: failed program was:" >&5
27055 sed 's/^/| /' conftest.$ac_ext >&5
27057 ac_cv_struct_tm=sys/time.h
27059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27061 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27062 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27063 if test $ac_cv_struct_tm = sys/time.h; then
27065 cat >>confdefs.h <<\_ACEOF
27066 #define TM_IN_SYS_TIME 1
27071 echo "$as_me:$LINENO: checking for int64_t" >&5
27072 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27073 if test "${ac_cv_type_int64_t+set}" = set; then
27074 echo $ECHO_N "(cached) $ECHO_C" >&6
27076 cat >conftest.$ac_ext <<_ACEOF
27079 cat confdefs.h >>conftest.$ac_ext
27080 cat >>conftest.$ac_ext <<_ACEOF
27081 /* end confdefs.h. */
27082 $ac_includes_default
27088 if (sizeof (int64_t))
27094 rm -f conftest.$ac_objext
27095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27096 (eval $ac_compile) 2>conftest.er1
27098 grep -v '^ *+' conftest.er1 >conftest.err
27100 cat conftest.err >&5
27101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102 (exit $ac_status); } &&
27103 { ac_try='test -z "$ac_c_werror_flag"
27104 || test ! -s conftest.err'
27105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27106 (eval $ac_try) 2>&5
27108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109 (exit $ac_status); }; } &&
27110 { ac_try='test -s conftest.$ac_objext'
27111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27112 (eval $ac_try) 2>&5
27114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27115 (exit $ac_status); }; }; then
27116 ac_cv_type_int64_t=yes
27118 echo "$as_me: failed program was:" >&5
27119 sed 's/^/| /' conftest.$ac_ext >&5
27121 ac_cv_type_int64_t=no
27123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27125 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27126 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27127 if test $ac_cv_type_int64_t = yes; then
27129 cat >>confdefs.h <<_ACEOF
27130 #define HAVE_INT64_T 1
27135 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27136 echo "$as_me: error: Type int64_t required but not found" >&2;}
27137 { (exit 1); exit 1; }; }
27140 echo "$as_me:$LINENO: checking for uint64_t" >&5
27141 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27142 if test "${ac_cv_type_uint64_t+set}" = set; then
27143 echo $ECHO_N "(cached) $ECHO_C" >&6
27145 cat >conftest.$ac_ext <<_ACEOF
27148 cat confdefs.h >>conftest.$ac_ext
27149 cat >>conftest.$ac_ext <<_ACEOF
27150 /* end confdefs.h. */
27151 $ac_includes_default
27155 if ((uint64_t *) 0)
27157 if (sizeof (uint64_t))
27163 rm -f conftest.$ac_objext
27164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27165 (eval $ac_compile) 2>conftest.er1
27167 grep -v '^ *+' conftest.er1 >conftest.err
27169 cat conftest.err >&5
27170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27171 (exit $ac_status); } &&
27172 { ac_try='test -z "$ac_c_werror_flag"
27173 || test ! -s conftest.err'
27174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27175 (eval $ac_try) 2>&5
27177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178 (exit $ac_status); }; } &&
27179 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27185 ac_cv_type_uint64_t=yes
27187 echo "$as_me: failed program was:" >&5
27188 sed 's/^/| /' conftest.$ac_ext >&5
27190 ac_cv_type_uint64_t=no
27192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27194 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27195 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27196 if test $ac_cv_type_uint64_t = yes; then
27198 cat >>confdefs.h <<_ACEOF
27199 #define HAVE_UINT64_T 1
27204 echo "$as_me:$LINENO: checking for u_int64_t" >&5
27205 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27206 if test "${ac_cv_type_u_int64_t+set}" = set; then
27207 echo $ECHO_N "(cached) $ECHO_C" >&6
27209 cat >conftest.$ac_ext <<_ACEOF
27212 cat confdefs.h >>conftest.$ac_ext
27213 cat >>conftest.$ac_ext <<_ACEOF
27214 /* end confdefs.h. */
27215 $ac_includes_default
27219 if ((u_int64_t *) 0)
27221 if (sizeof (u_int64_t))
27227 rm -f conftest.$ac_objext
27228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27229 (eval $ac_compile) 2>conftest.er1
27231 grep -v '^ *+' conftest.er1 >conftest.err
27233 cat conftest.err >&5
27234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27235 (exit $ac_status); } &&
27236 { ac_try='test -z "$ac_c_werror_flag"
27237 || test ! -s conftest.err'
27238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27239 (eval $ac_try) 2>&5
27241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242 (exit $ac_status); }; } &&
27243 { ac_try='test -s conftest.$ac_objext'
27244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27245 (eval $ac_try) 2>&5
27247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248 (exit $ac_status); }; }; then
27249 ac_cv_type_u_int64_t=yes
27251 echo "$as_me: failed program was:" >&5
27252 sed 's/^/| /' conftest.$ac_ext >&5
27254 ac_cv_type_u_int64_t=no
27256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27258 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27259 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27260 if test $ac_cv_type_u_int64_t = yes; then
27262 cat >>confdefs.h <<_ACEOF
27263 #define HAVE_U_INT64_T 1
27268 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27269 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27270 { (exit 1); exit 1; }; }
27283 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27286 echo "$as_me:$LINENO: checking for $ac_func" >&5
27287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27288 if eval "test \"\${$as_ac_var+set}\" = set"; then
27289 echo $ECHO_N "(cached) $ECHO_C" >&6
27291 cat >conftest.$ac_ext <<_ACEOF
27294 cat confdefs.h >>conftest.$ac_ext
27295 cat >>conftest.$ac_ext <<_ACEOF
27296 /* end confdefs.h. */
27297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27299 #define $ac_func innocuous_$ac_func
27301 /* System header to define __stub macros and hopefully few prototypes,
27302 which can conflict with char $ac_func (); below.
27303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27304 <limits.h> exists even on freestanding compilers. */
27307 # include <limits.h>
27309 # include <assert.h>
27314 /* Override any gcc2 internal prototype to avoid an error. */
27319 /* We use char because int might match the return type of a gcc2
27320 builtin and then its argument prototype would still apply. */
27322 /* The GNU C library defines this for functions which it implements
27323 to always fail with ENOSYS. Some functions are actually named
27324 something starting with __ and the normal name is an alias. */
27325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27328 char (*f) () = $ac_func;
27337 return f != $ac_func;
27342 rm -f conftest.$ac_objext conftest$ac_exeext
27343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27344 (eval $ac_link) 2>conftest.er1
27346 grep -v '^ *+' conftest.er1 >conftest.err
27348 cat conftest.err >&5
27349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350 (exit $ac_status); } &&
27351 { ac_try='test -z "$ac_c_werror_flag"
27352 || test ! -s conftest.err'
27353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27354 (eval $ac_try) 2>&5
27356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357 (exit $ac_status); }; } &&
27358 { ac_try='test -s conftest$ac_exeext'
27359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27360 (eval $ac_try) 2>&5
27362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363 (exit $ac_status); }; }; then
27364 eval "$as_ac_var=yes"
27366 echo "$as_me: failed program was:" >&5
27367 sed 's/^/| /' conftest.$ac_ext >&5
27369 eval "$as_ac_var=no"
27371 rm -f conftest.err conftest.$ac_objext \
27372 conftest$ac_exeext conftest.$ac_ext
27374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27375 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27376 if test `eval echo '${'$as_ac_var'}'` = yes; then
27377 cat >>confdefs.h <<_ACEOF
27378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27387 for ac_func in mkdtemp mkstemp mktemp
27389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27390 echo "$as_me:$LINENO: checking for $ac_func" >&5
27391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27392 if eval "test \"\${$as_ac_var+set}\" = set"; then
27393 echo $ECHO_N "(cached) $ECHO_C" >&6
27395 cat >conftest.$ac_ext <<_ACEOF
27398 cat confdefs.h >>conftest.$ac_ext
27399 cat >>conftest.$ac_ext <<_ACEOF
27400 /* end confdefs.h. */
27401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27403 #define $ac_func innocuous_$ac_func
27405 /* System header to define __stub macros and hopefully few prototypes,
27406 which can conflict with char $ac_func (); below.
27407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27408 <limits.h> exists even on freestanding compilers. */
27411 # include <limits.h>
27413 # include <assert.h>
27418 /* Override any gcc2 internal prototype to avoid an error. */
27423 /* We use char because int might match the return type of a gcc2
27424 builtin and then its argument prototype would still apply. */
27426 /* The GNU C library defines this for functions which it implements
27427 to always fail with ENOSYS. Some functions are actually named
27428 something starting with __ and the normal name is an alias. */
27429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27432 char (*f) () = $ac_func;
27441 return f != $ac_func;
27446 rm -f conftest.$ac_objext conftest$ac_exeext
27447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27448 (eval $ac_link) 2>conftest.er1
27450 grep -v '^ *+' conftest.er1 >conftest.err
27452 cat conftest.err >&5
27453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454 (exit $ac_status); } &&
27455 { ac_try='test -z "$ac_c_werror_flag"
27456 || test ! -s conftest.err'
27457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27458 (eval $ac_try) 2>&5
27460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461 (exit $ac_status); }; } &&
27462 { ac_try='test -s conftest$ac_exeext'
27463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27464 (eval $ac_try) 2>&5
27466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27467 (exit $ac_status); }; }; then
27468 eval "$as_ac_var=yes"
27470 echo "$as_me: failed program was:" >&5
27471 sed 's/^/| /' conftest.$ac_ext >&5
27473 eval "$as_ac_var=no"
27475 rm -f conftest.err conftest.$ac_objext \
27476 conftest$ac_exeext conftest.$ac_ext
27478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27480 if test `eval echo '${'$as_ac_var'}'` = yes; then
27481 cat >>confdefs.h <<_ACEOF
27482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27494 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27497 echo "$as_me:$LINENO: checking for $ac_func" >&5
27498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27499 if eval "test \"\${$as_ac_var+set}\" = set"; then
27500 echo $ECHO_N "(cached) $ECHO_C" >&6
27502 cat >conftest.$ac_ext <<_ACEOF
27505 cat confdefs.h >>conftest.$ac_ext
27506 cat >>conftest.$ac_ext <<_ACEOF
27507 /* end confdefs.h. */
27508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27510 #define $ac_func innocuous_$ac_func
27512 /* System header to define __stub macros and hopefully few prototypes,
27513 which can conflict with char $ac_func (); below.
27514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27515 <limits.h> exists even on freestanding compilers. */
27518 # include <limits.h>
27520 # include <assert.h>
27525 /* Override any gcc2 internal prototype to avoid an error. */
27530 /* We use char because int might match the return type of a gcc2
27531 builtin and then its argument prototype would still apply. */
27533 /* The GNU C library defines this for functions which it implements
27534 to always fail with ENOSYS. Some functions are actually named
27535 something starting with __ and the normal name is an alias. */
27536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27539 char (*f) () = $ac_func;
27548 return f != $ac_func;
27553 rm -f conftest.$ac_objext conftest$ac_exeext
27554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27555 (eval $ac_link) 2>conftest.er1
27557 grep -v '^ *+' conftest.er1 >conftest.err
27559 cat conftest.err >&5
27560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27561 (exit $ac_status); } &&
27562 { ac_try='test -z "$ac_c_werror_flag"
27563 || test ! -s conftest.err'
27564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27565 (eval $ac_try) 2>&5
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); }; } &&
27569 { ac_try='test -s conftest$ac_exeext'
27570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27571 (eval $ac_try) 2>&5
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574 (exit $ac_status); }; }; then
27575 eval "$as_ac_var=yes"
27577 echo "$as_me: failed program was:" >&5
27578 sed 's/^/| /' conftest.$ac_ext >&5
27580 eval "$as_ac_var=no"
27582 rm -f conftest.err conftest.$ac_objext \
27583 conftest$ac_exeext conftest.$ac_ext
27585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27586 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27587 if test `eval echo '${'$as_ac_var'}'` = yes; then
27588 cat >>confdefs.h <<_ACEOF
27589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27598 for ac_func in strtoll strtoq sysconf
27600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27601 echo "$as_me:$LINENO: checking for $ac_func" >&5
27602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27603 if eval "test \"\${$as_ac_var+set}\" = set"; then
27604 echo $ECHO_N "(cached) $ECHO_C" >&6
27606 cat >conftest.$ac_ext <<_ACEOF
27609 cat confdefs.h >>conftest.$ac_ext
27610 cat >>conftest.$ac_ext <<_ACEOF
27611 /* end confdefs.h. */
27612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27614 #define $ac_func innocuous_$ac_func
27616 /* System header to define __stub macros and hopefully few prototypes,
27617 which can conflict with char $ac_func (); below.
27618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27619 <limits.h> exists even on freestanding compilers. */
27622 # include <limits.h>
27624 # include <assert.h>
27629 /* Override any gcc2 internal prototype to avoid an error. */
27634 /* We use char because int might match the return type of a gcc2
27635 builtin and then its argument prototype would still apply. */
27637 /* The GNU C library defines this for functions which it implements
27638 to always fail with ENOSYS. Some functions are actually named
27639 something starting with __ and the normal name is an alias. */
27640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27643 char (*f) () = $ac_func;
27652 return f != $ac_func;
27657 rm -f conftest.$ac_objext conftest$ac_exeext
27658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27659 (eval $ac_link) 2>conftest.er1
27661 grep -v '^ *+' conftest.er1 >conftest.err
27663 cat conftest.err >&5
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); } &&
27666 { ac_try='test -z "$ac_c_werror_flag"
27667 || test ! -s conftest.err'
27668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27669 (eval $ac_try) 2>&5
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); }; } &&
27673 { ac_try='test -s conftest$ac_exeext'
27674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27675 (eval $ac_try) 2>&5
27677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678 (exit $ac_status); }; }; then
27679 eval "$as_ac_var=yes"
27681 echo "$as_me: failed program was:" >&5
27682 sed 's/^/| /' conftest.$ac_ext >&5
27684 eval "$as_ac_var=no"
27686 rm -f conftest.err conftest.$ac_objext \
27687 conftest$ac_exeext conftest.$ac_ext
27689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27691 if test `eval echo '${'$as_ac_var'}'` = yes; then
27692 cat >>confdefs.h <<_ACEOF
27693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27699 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27700 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27701 if test "${llvm_cv_c_printf_a+set}" = set; then
27702 echo $ECHO_N "(cached) $ECHO_C" >&6
27705 ac_cpp='$CPP $CPPFLAGS'
27706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27710 if test "$cross_compiling" = yes; then
27711 llvmac_cv_c_printf_a=no
27713 cat >conftest.$ac_ext <<_ACEOF
27717 cat confdefs.h >>conftest.$ac_ext
27718 cat >>conftest.$ac_ext <<_ACEOF
27719 /* end confdefs.h. */
27722 #include <stdlib.h>
27728 volatile double A, B;
27732 sprintf(Buffer, "%a", A);
27736 if (A != 0x1.999999999999ap-4)
27743 rm -f conftest$ac_exeext
27744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27745 (eval $ac_link) 2>&5
27747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27750 (eval $ac_try) 2>&5
27752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); }; }; then
27754 llvm_cv_c_printf_a=yes
27756 echo "$as_me: program exited with status $ac_status" >&5
27757 echo "$as_me: failed program was:" >&5
27758 sed 's/^/| /' conftest.$ac_ext >&5
27760 ( exit $ac_status )
27761 llvmac_cv_c_printf_a=no
27763 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27766 ac_cpp='$CPP $CPPFLAGS'
27767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27772 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27773 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27774 if test "$llvm_cv_c_printf_a" = "yes"; then
27776 cat >>confdefs.h <<\_ACEOF
27777 #define HAVE_PRINTF_A 1
27782 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27783 # for constant arguments. Useless!
27784 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27785 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27786 if test "${ac_cv_working_alloca_h+set}" = set; then
27787 echo $ECHO_N "(cached) $ECHO_C" >&6
27789 cat >conftest.$ac_ext <<_ACEOF
27792 cat confdefs.h >>conftest.$ac_ext
27793 cat >>conftest.$ac_ext <<_ACEOF
27794 /* end confdefs.h. */
27795 #include <alloca.h>
27799 char *p = (char *) alloca (2 * sizeof (int));
27804 rm -f conftest.$ac_objext conftest$ac_exeext
27805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27806 (eval $ac_link) 2>conftest.er1
27808 grep -v '^ *+' conftest.er1 >conftest.err
27810 cat conftest.err >&5
27811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812 (exit $ac_status); } &&
27813 { ac_try='test -z "$ac_c_werror_flag"
27814 || test ! -s conftest.err'
27815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27816 (eval $ac_try) 2>&5
27818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); }; } &&
27820 { ac_try='test -s conftest$ac_exeext'
27821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27822 (eval $ac_try) 2>&5
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); }; }; then
27826 ac_cv_working_alloca_h=yes
27828 echo "$as_me: failed program was:" >&5
27829 sed 's/^/| /' conftest.$ac_ext >&5
27831 ac_cv_working_alloca_h=no
27833 rm -f conftest.err conftest.$ac_objext \
27834 conftest$ac_exeext conftest.$ac_ext
27836 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27837 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27838 if test $ac_cv_working_alloca_h = yes; then
27840 cat >>confdefs.h <<\_ACEOF
27841 #define HAVE_ALLOCA_H 1
27846 echo "$as_me:$LINENO: checking for alloca" >&5
27847 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27848 if test "${ac_cv_func_alloca_works+set}" = set; then
27849 echo $ECHO_N "(cached) $ECHO_C" >&6
27851 cat >conftest.$ac_ext <<_ACEOF
27854 cat confdefs.h >>conftest.$ac_ext
27855 cat >>conftest.$ac_ext <<_ACEOF
27856 /* end confdefs.h. */
27858 # define alloca __builtin_alloca
27861 # include <malloc.h>
27862 # define alloca _alloca
27865 # include <alloca.h>
27870 # ifndef alloca /* predefined by HP cc +Olibcalls */
27881 char *p = (char *) alloca (1);
27886 rm -f conftest.$ac_objext conftest$ac_exeext
27887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27888 (eval $ac_link) 2>conftest.er1
27890 grep -v '^ *+' conftest.er1 >conftest.err
27892 cat conftest.err >&5
27893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894 (exit $ac_status); } &&
27895 { ac_try='test -z "$ac_c_werror_flag"
27896 || test ! -s conftest.err'
27897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27898 (eval $ac_try) 2>&5
27900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); }; } &&
27902 { ac_try='test -s conftest$ac_exeext'
27903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27904 (eval $ac_try) 2>&5
27906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27907 (exit $ac_status); }; }; then
27908 ac_cv_func_alloca_works=yes
27910 echo "$as_me: failed program was:" >&5
27911 sed 's/^/| /' conftest.$ac_ext >&5
27913 ac_cv_func_alloca_works=no
27915 rm -f conftest.err conftest.$ac_objext \
27916 conftest$ac_exeext conftest.$ac_ext
27918 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27919 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27921 if test $ac_cv_func_alloca_works = yes; then
27923 cat >>confdefs.h <<\_ACEOF
27924 #define HAVE_ALLOCA 1
27928 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27929 # that cause trouble. Some versions do not even contain alloca or
27930 # contain a buggy version. If you still want to use their alloca,
27931 # use ar to extract alloca.o from them instead of compiling alloca.c.
27933 ALLOCA=alloca.$ac_objext
27935 cat >>confdefs.h <<\_ACEOF
27940 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27941 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27942 if test "${ac_cv_os_cray+set}" = set; then
27943 echo $ECHO_N "(cached) $ECHO_C" >&6
27945 cat >conftest.$ac_ext <<_ACEOF
27948 cat confdefs.h >>conftest.$ac_ext
27949 cat >>conftest.$ac_ext <<_ACEOF
27950 /* end confdefs.h. */
27951 #if defined(CRAY) && ! defined(CRAY2)
27958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27959 $EGREP "webecray" >/dev/null 2>&1; then
27967 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27968 echo "${ECHO_T}$ac_cv_os_cray" >&6
27969 if test $ac_cv_os_cray = yes; then
27970 for ac_func in _getb67 GETB67 getb67; do
27971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27972 echo "$as_me:$LINENO: checking for $ac_func" >&5
27973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27974 if eval "test \"\${$as_ac_var+set}\" = set"; then
27975 echo $ECHO_N "(cached) $ECHO_C" >&6
27977 cat >conftest.$ac_ext <<_ACEOF
27980 cat confdefs.h >>conftest.$ac_ext
27981 cat >>conftest.$ac_ext <<_ACEOF
27982 /* end confdefs.h. */
27983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27985 #define $ac_func innocuous_$ac_func
27987 /* System header to define __stub macros and hopefully few prototypes,
27988 which can conflict with char $ac_func (); below.
27989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27990 <limits.h> exists even on freestanding compilers. */
27993 # include <limits.h>
27995 # include <assert.h>
28000 /* Override any gcc2 internal prototype to avoid an error. */
28005 /* We use char because int might match the return type of a gcc2
28006 builtin and then its argument prototype would still apply. */
28008 /* The GNU C library defines this for functions which it implements
28009 to always fail with ENOSYS. Some functions are actually named
28010 something starting with __ and the normal name is an alias. */
28011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28014 char (*f) () = $ac_func;
28023 return f != $ac_func;
28028 rm -f conftest.$ac_objext conftest$ac_exeext
28029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28030 (eval $ac_link) 2>conftest.er1
28032 grep -v '^ *+' conftest.er1 >conftest.err
28034 cat conftest.err >&5
28035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); } &&
28037 { ac_try='test -z "$ac_c_werror_flag"
28038 || test ! -s conftest.err'
28039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28040 (eval $ac_try) 2>&5
28042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043 (exit $ac_status); }; } &&
28044 { ac_try='test -s conftest$ac_exeext'
28045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28046 (eval $ac_try) 2>&5
28048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049 (exit $ac_status); }; }; then
28050 eval "$as_ac_var=yes"
28052 echo "$as_me: failed program was:" >&5
28053 sed 's/^/| /' conftest.$ac_ext >&5
28055 eval "$as_ac_var=no"
28057 rm -f conftest.err conftest.$ac_objext \
28058 conftest$ac_exeext conftest.$ac_ext
28060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28062 if test `eval echo '${'$as_ac_var'}'` = yes; then
28064 cat >>confdefs.h <<_ACEOF
28065 #define CRAY_STACKSEG_END $ac_func
28074 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28075 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28076 if test "${ac_cv_c_stack_direction+set}" = set; then
28077 echo $ECHO_N "(cached) $ECHO_C" >&6
28079 if test "$cross_compiling" = yes; then
28080 ac_cv_c_stack_direction=0
28082 cat >conftest.$ac_ext <<_ACEOF
28085 cat confdefs.h >>conftest.$ac_ext
28086 cat >>conftest.$ac_ext <<_ACEOF
28087 /* end confdefs.h. */
28089 find_stack_direction ()
28091 static char *addr = 0;
28096 return find_stack_direction ();
28099 return (&dummy > addr) ? 1 : -1;
28105 exit (find_stack_direction () < 0);
28108 rm -f conftest$ac_exeext
28109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28110 (eval $ac_link) 2>&5
28112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28115 (eval $ac_try) 2>&5
28117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28118 (exit $ac_status); }; }; then
28119 ac_cv_c_stack_direction=1
28121 echo "$as_me: program exited with status $ac_status" >&5
28122 echo "$as_me: failed program was:" >&5
28123 sed 's/^/| /' conftest.$ac_ext >&5
28125 ( exit $ac_status )
28126 ac_cv_c_stack_direction=-1
28128 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28131 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28132 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28134 cat >>confdefs.h <<_ACEOF
28135 #define STACK_DIRECTION $ac_cv_c_stack_direction
28142 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28143 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28144 if test "${ac_cv_func_rand48+set}" = set; then
28145 echo $ECHO_N "(cached) $ECHO_C" >&6
28148 ac_cpp='$CXXCPP $CPPFLAGS'
28149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28153 cat >conftest.$ac_ext <<_ACEOF
28156 cat confdefs.h >>conftest.$ac_ext
28157 cat >>conftest.$ac_ext <<_ACEOF
28158 /* end confdefs.h. */
28159 #include <stdlib.h>
28163 srand48(0);lrand48();drand48();
28168 rm -f conftest.$ac_objext
28169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28170 (eval $ac_compile) 2>conftest.er1
28172 grep -v '^ *+' conftest.er1 >conftest.err
28174 cat conftest.err >&5
28175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176 (exit $ac_status); } &&
28177 { ac_try='test -z "$ac_cxx_werror_flag"
28178 || test ! -s conftest.err'
28179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28180 (eval $ac_try) 2>&5
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); }; } &&
28184 { ac_try='test -s conftest.$ac_objext'
28185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28186 (eval $ac_try) 2>&5
28188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); }; }; then
28190 ac_cv_func_rand48=yes
28192 echo "$as_me: failed program was:" >&5
28193 sed 's/^/| /' conftest.$ac_ext >&5
28195 ac_cv_func_rand48=no
28197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28199 ac_cpp='$CPP $CPPFLAGS'
28200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28205 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28206 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28208 if test "$ac_cv_func_rand48" = "yes" ; then
28210 cat >>confdefs.h <<\_ACEOF
28211 #define HAVE_RAND48 1
28217 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28218 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28219 if test "${ac_cv_cxx_namespaces+set}" = set; then
28220 echo $ECHO_N "(cached) $ECHO_C" >&6
28223 ac_cpp='$CXXCPP $CPPFLAGS'
28224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28228 cat >conftest.$ac_ext <<_ACEOF
28231 cat confdefs.h >>conftest.$ac_ext
28232 cat >>conftest.$ac_ext <<_ACEOF
28233 /* end confdefs.h. */
28234 namespace Outer { namespace Inner { int i = 0; }}
28238 using namespace Outer::Inner; return i;
28243 rm -f conftest.$ac_objext
28244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28245 (eval $ac_compile) 2>conftest.er1
28247 grep -v '^ *+' conftest.er1 >conftest.err
28249 cat conftest.err >&5
28250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28251 (exit $ac_status); } &&
28252 { ac_try='test -z "$ac_cxx_werror_flag"
28253 || test ! -s conftest.err'
28254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28255 (eval $ac_try) 2>&5
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); }; } &&
28259 { ac_try='test -s conftest.$ac_objext'
28260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28261 (eval $ac_try) 2>&5
28263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264 (exit $ac_status); }; }; then
28265 ac_cv_cxx_namespaces=yes
28267 echo "$as_me: failed program was:" >&5
28268 sed 's/^/| /' conftest.$ac_ext >&5
28270 ac_cv_cxx_namespaces=no
28272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28274 ac_cpp='$CPP $CPPFLAGS'
28275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28281 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28282 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28283 if test "$ac_cv_cxx_namespaces" = yes; then
28285 cat >>confdefs.h <<\_ACEOF
28286 #define HAVE_NAMESPACES
28291 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28292 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28293 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28294 echo $ECHO_N "(cached) $ECHO_C" >&6
28298 ac_cpp='$CXXCPP $CPPFLAGS'
28299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28303 cat >conftest.$ac_ext <<_ACEOF
28306 cat confdefs.h >>conftest.$ac_ext
28307 cat >>conftest.$ac_ext <<_ACEOF
28308 /* end confdefs.h. */
28309 #include <ext/hash_map>
28310 #ifdef HAVE_NAMESPACES
28311 using namespace std;
28316 hash_map<int, int> t;
28321 rm -f conftest.$ac_objext
28322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28323 (eval $ac_compile) 2>conftest.er1
28325 grep -v '^ *+' conftest.er1 >conftest.err
28327 cat conftest.err >&5
28328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329 (exit $ac_status); } &&
28330 { ac_try='test -z "$ac_cxx_werror_flag"
28331 || test ! -s conftest.err'
28332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28333 (eval $ac_try) 2>&5
28335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); }; } &&
28337 { ac_try='test -s conftest.$ac_objext'
28338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28339 (eval $ac_try) 2>&5
28341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342 (exit $ac_status); }; }; then
28343 ac_cv_cxx_have_std_ext_hash_map=yes
28345 echo "$as_me: failed program was:" >&5
28346 sed 's/^/| /' conftest.$ac_ext >&5
28348 ac_cv_cxx_have_std_ext_hash_map=no
28350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28352 ac_cpp='$CPP $CPPFLAGS'
28353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28358 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28359 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28360 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28363 cat >>confdefs.h <<\_ACEOF
28364 #define HAVE_STD_EXT_HASH_MAP 1
28369 cat >>confdefs.h <<\_ACEOF
28370 #define HAVE_STD_EXT_HASH_MAP 0
28375 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28376 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28377 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28378 echo $ECHO_N "(cached) $ECHO_C" >&6
28382 ac_cpp='$CXXCPP $CPPFLAGS'
28383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28387 cat >conftest.$ac_ext <<_ACEOF
28390 cat confdefs.h >>conftest.$ac_ext
28391 cat >>conftest.$ac_ext <<_ACEOF
28392 /* end confdefs.h. */
28393 #include <ext/hash_map>
28394 #ifdef HAVE_NAMESPACES
28395 using namespace __gnu_cxx;
28400 hash_map<int,int> t;
28405 rm -f conftest.$ac_objext
28406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28407 (eval $ac_compile) 2>conftest.er1
28409 grep -v '^ *+' conftest.er1 >conftest.err
28411 cat conftest.err >&5
28412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); } &&
28414 { ac_try='test -z "$ac_cxx_werror_flag"
28415 || test ! -s conftest.err'
28416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417 (eval $ac_try) 2>&5
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); }; } &&
28421 { ac_try='test -s conftest.$ac_objext'
28422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28423 (eval $ac_try) 2>&5
28425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426 (exit $ac_status); }; }; then
28427 ac_cv_cxx_have_gnu_ext_hash_map=yes
28429 echo "$as_me: failed program was:" >&5
28430 sed 's/^/| /' conftest.$ac_ext >&5
28432 ac_cv_cxx_have_gnu_ext_hash_map=no
28434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28436 ac_cpp='$CPP $CPPFLAGS'
28437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28442 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28443 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28444 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28447 cat >>confdefs.h <<\_ACEOF
28448 #define HAVE_GNU_EXT_HASH_MAP 1
28453 cat >>confdefs.h <<\_ACEOF
28454 #define HAVE_GNU_EXT_HASH_MAP 0
28459 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28460 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28461 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28462 echo $ECHO_N "(cached) $ECHO_C" >&6
28466 ac_cpp='$CXXCPP $CPPFLAGS'
28467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28471 cat >conftest.$ac_ext <<_ACEOF
28474 cat confdefs.h >>conftest.$ac_ext
28475 cat >>conftest.$ac_ext <<_ACEOF
28476 /* end confdefs.h. */
28477 #include <hash_map>
28481 hash_map<int,int> t;
28486 rm -f conftest.$ac_objext
28487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28488 (eval $ac_compile) 2>conftest.er1
28490 grep -v '^ *+' conftest.er1 >conftest.err
28492 cat conftest.err >&5
28493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494 (exit $ac_status); } &&
28495 { ac_try='test -z "$ac_cxx_werror_flag"
28496 || test ! -s conftest.err'
28497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28498 (eval $ac_try) 2>&5
28500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501 (exit $ac_status); }; } &&
28502 { ac_try='test -s conftest.$ac_objext'
28503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28504 (eval $ac_try) 2>&5
28506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507 (exit $ac_status); }; }; then
28508 ac_cv_cxx_have_global_hash_map=yes
28510 echo "$as_me: failed program was:" >&5
28511 sed 's/^/| /' conftest.$ac_ext >&5
28513 ac_cv_cxx_have_global_hash_map=no
28515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28517 ac_cpp='$CPP $CPPFLAGS'
28518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28523 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28524 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28525 if test "$ac_cv_cxx_have_global_hash_map" = yes
28528 cat >>confdefs.h <<\_ACEOF
28529 #define HAVE_GLOBAL_HASH_MAP 1
28534 cat >>confdefs.h <<\_ACEOF
28535 #define HAVE_GLOBAL_HASH_MAP 0
28540 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28541 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28542 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28543 echo $ECHO_N "(cached) $ECHO_C" >&6
28547 ac_cpp='$CXXCPP $CPPFLAGS'
28548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28552 cat >conftest.$ac_ext <<_ACEOF
28555 cat confdefs.h >>conftest.$ac_ext
28556 cat >>conftest.$ac_ext <<_ACEOF
28557 /* end confdefs.h. */
28558 #include <ext/hash_set>
28559 #ifdef HAVE_NAMESPACES
28560 using namespace std;
28570 rm -f conftest.$ac_objext
28571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28572 (eval $ac_compile) 2>conftest.er1
28574 grep -v '^ *+' conftest.er1 >conftest.err
28576 cat conftest.err >&5
28577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); } &&
28579 { ac_try='test -z "$ac_cxx_werror_flag"
28580 || test ! -s conftest.err'
28581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28582 (eval $ac_try) 2>&5
28584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585 (exit $ac_status); }; } &&
28586 { ac_try='test -s conftest.$ac_objext'
28587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28588 (eval $ac_try) 2>&5
28590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591 (exit $ac_status); }; }; then
28592 ac_cv_cxx_have_std_ext_hash_set=yes
28594 echo "$as_me: failed program was:" >&5
28595 sed 's/^/| /' conftest.$ac_ext >&5
28597 ac_cv_cxx_have_std_ext_hash_set=no
28599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28601 ac_cpp='$CPP $CPPFLAGS'
28602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28607 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28608 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28609 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28612 cat >>confdefs.h <<\_ACEOF
28613 #define HAVE_STD_EXT_HASH_SET 1
28618 cat >>confdefs.h <<\_ACEOF
28619 #define HAVE_STD_EXT_HASH_SET 0
28624 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28625 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28626 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28627 echo $ECHO_N "(cached) $ECHO_C" >&6
28631 ac_cpp='$CXXCPP $CPPFLAGS'
28632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28636 cat >conftest.$ac_ext <<_ACEOF
28639 cat confdefs.h >>conftest.$ac_ext
28640 cat >>conftest.$ac_ext <<_ACEOF
28641 /* end confdefs.h. */
28642 #include <ext/hash_set>
28643 #ifdef HAVE_NAMESPACES
28644 using namespace __gnu_cxx;
28654 rm -f conftest.$ac_objext
28655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28656 (eval $ac_compile) 2>conftest.er1
28658 grep -v '^ *+' conftest.er1 >conftest.err
28660 cat conftest.err >&5
28661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); } &&
28663 { ac_try='test -z "$ac_cxx_werror_flag"
28664 || test ! -s conftest.err'
28665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28666 (eval $ac_try) 2>&5
28668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669 (exit $ac_status); }; } &&
28670 { ac_try='test -s conftest.$ac_objext'
28671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672 (eval $ac_try) 2>&5
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); }; }; then
28676 ac_cv_cxx_have_gnu_ext_hash_set=yes
28678 echo "$as_me: failed program was:" >&5
28679 sed 's/^/| /' conftest.$ac_ext >&5
28681 ac_cv_cxx_have_gnu_ext_hash_set=no
28683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28685 ac_cpp='$CPP $CPPFLAGS'
28686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28691 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28692 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28693 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28696 cat >>confdefs.h <<\_ACEOF
28697 #define HAVE_GNU_EXT_HASH_SET 1
28702 cat >>confdefs.h <<\_ACEOF
28703 #define HAVE_GNU_EXT_HASH_SET 0
28708 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28709 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28710 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28711 echo $ECHO_N "(cached) $ECHO_C" >&6
28715 ac_cpp='$CXXCPP $CPPFLAGS'
28716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28720 cat >conftest.$ac_ext <<_ACEOF
28723 cat confdefs.h >>conftest.$ac_ext
28724 cat >>conftest.$ac_ext <<_ACEOF
28725 /* end confdefs.h. */
28726 #include <hash_set>
28730 hash_set<int> t; return 0;
28735 rm -f conftest.$ac_objext
28736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28737 (eval $ac_compile) 2>conftest.er1
28739 grep -v '^ *+' conftest.er1 >conftest.err
28741 cat conftest.err >&5
28742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743 (exit $ac_status); } &&
28744 { ac_try='test -z "$ac_cxx_werror_flag"
28745 || test ! -s conftest.err'
28746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28747 (eval $ac_try) 2>&5
28749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750 (exit $ac_status); }; } &&
28751 { ac_try='test -s conftest.$ac_objext'
28752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28753 (eval $ac_try) 2>&5
28755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756 (exit $ac_status); }; }; then
28757 ac_cv_cxx_have_global_hash_set=yes
28759 echo "$as_me: failed program was:" >&5
28760 sed 's/^/| /' conftest.$ac_ext >&5
28762 ac_cv_cxx_have_global_hash_set=no
28764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28766 ac_cpp='$CPP $CPPFLAGS'
28767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28772 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28773 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28774 if test "$ac_cv_cxx_have_global_hash_set" = yes
28777 cat >>confdefs.h <<\_ACEOF
28778 #define HAVE_GLOBAL_HASH_SET 1
28783 cat >>confdefs.h <<\_ACEOF
28784 #define HAVE_GLOBAL_HASH_SET 0
28789 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28790 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28791 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28792 echo $ECHO_N "(cached) $ECHO_C" >&6
28796 ac_cpp='$CXXCPP $CPPFLAGS'
28797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28801 cat >conftest.$ac_ext <<_ACEOF
28804 cat confdefs.h >>conftest.$ac_ext
28805 cat >>conftest.$ac_ext <<_ACEOF
28806 /* end confdefs.h. */
28807 #include <iterator>
28808 #ifdef HAVE_NAMESPACES
28809 using namespace std;
28814 iterator<int,int,int> t; return 0;
28819 rm -f conftest.$ac_objext
28820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28821 (eval $ac_compile) 2>conftest.er1
28823 grep -v '^ *+' conftest.er1 >conftest.err
28825 cat conftest.err >&5
28826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827 (exit $ac_status); } &&
28828 { ac_try='test -z "$ac_cxx_werror_flag"
28829 || test ! -s conftest.err'
28830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28831 (eval $ac_try) 2>&5
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); }; } &&
28835 { ac_try='test -s conftest.$ac_objext'
28836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28837 (eval $ac_try) 2>&5
28839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840 (exit $ac_status); }; }; then
28841 ac_cv_cxx_have_std_iterator=yes
28843 echo "$as_me: failed program was:" >&5
28844 sed 's/^/| /' conftest.$ac_ext >&5
28846 ac_cv_cxx_have_std_iterator=no
28848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28850 ac_cpp='$CPP $CPPFLAGS'
28851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28857 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28858 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28859 if test "$ac_cv_cxx_have_std_iterator" = yes
28862 cat >>confdefs.h <<\_ACEOF
28863 #define HAVE_STD_ITERATOR 1
28868 cat >>confdefs.h <<\_ACEOF
28869 #define HAVE_STD_ITERATOR 0
28874 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28875 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28876 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28877 echo $ECHO_N "(cached) $ECHO_C" >&6
28881 ac_cpp='$CXXCPP $CPPFLAGS'
28882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28886 cat >conftest.$ac_ext <<_ACEOF
28889 cat confdefs.h >>conftest.$ac_ext
28890 cat >>conftest.$ac_ext <<_ACEOF
28891 /* end confdefs.h. */
28892 #include <iterator>
28893 #ifdef HAVE_NAMESPACES
28894 using namespace std;
28899 bidirectional_iterator<int,int> t; return 0;
28904 rm -f conftest.$ac_objext
28905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28906 (eval $ac_compile) 2>conftest.er1
28908 grep -v '^ *+' conftest.er1 >conftest.err
28910 cat conftest.err >&5
28911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912 (exit $ac_status); } &&
28913 { ac_try='test -z "$ac_cxx_werror_flag"
28914 || test ! -s conftest.err'
28915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28916 (eval $ac_try) 2>&5
28918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919 (exit $ac_status); }; } &&
28920 { ac_try='test -s conftest.$ac_objext'
28921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28922 (eval $ac_try) 2>&5
28924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925 (exit $ac_status); }; }; then
28926 ac_cv_cxx_have_bi_iterator=yes
28928 echo "$as_me: failed program was:" >&5
28929 sed 's/^/| /' conftest.$ac_ext >&5
28931 ac_cv_cxx_have_bi_iterator=no
28933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28935 ac_cpp='$CPP $CPPFLAGS'
28936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28942 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28943 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28944 if test "$ac_cv_cxx_have_bi_iterator" = yes
28947 cat >>confdefs.h <<\_ACEOF
28948 #define HAVE_BI_ITERATOR 1
28953 cat >>confdefs.h <<\_ACEOF
28954 #define HAVE_BI_ITERATOR 0
28959 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28960 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28961 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28962 echo $ECHO_N "(cached) $ECHO_C" >&6
28966 ac_cpp='$CXXCPP $CPPFLAGS'
28967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28971 cat >conftest.$ac_ext <<_ACEOF
28974 cat confdefs.h >>conftest.$ac_ext
28975 cat >>conftest.$ac_ext <<_ACEOF
28976 /* end confdefs.h. */
28977 #include <iterator>
28978 #ifdef HAVE_NAMESPACES
28979 using namespace std;
28984 forward_iterator<int,int> t; return 0;
28989 rm -f conftest.$ac_objext
28990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28991 (eval $ac_compile) 2>conftest.er1
28993 grep -v '^ *+' conftest.er1 >conftest.err
28995 cat conftest.err >&5
28996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997 (exit $ac_status); } &&
28998 { ac_try='test -z "$ac_cxx_werror_flag"
28999 || test ! -s conftest.err'
29000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29001 (eval $ac_try) 2>&5
29003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004 (exit $ac_status); }; } &&
29005 { ac_try='test -s conftest.$ac_objext'
29006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29007 (eval $ac_try) 2>&5
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010 (exit $ac_status); }; }; then
29011 ac_cv_cxx_have_fwd_iterator=yes
29013 echo "$as_me: failed program was:" >&5
29014 sed 's/^/| /' conftest.$ac_ext >&5
29016 ac_cv_cxx_have_fwd_iterator=no
29018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29020 ac_cpp='$CPP $CPPFLAGS'
29021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29027 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29028 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29029 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29032 cat >>confdefs.h <<\_ACEOF
29033 #define HAVE_FWD_ITERATOR 1
29038 cat >>confdefs.h <<\_ACEOF
29039 #define HAVE_FWD_ITERATOR 0
29045 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29046 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29047 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29048 echo $ECHO_N "(cached) $ECHO_C" >&6
29051 ac_cpp='$CXXCPP $CPPFLAGS'
29052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29056 cat >conftest.$ac_ext <<_ACEOF
29059 cat confdefs.h >>conftest.$ac_ext
29060 cat >>conftest.$ac_ext <<_ACEOF
29061 /* end confdefs.h. */
29071 rm -f conftest.$ac_objext
29072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29073 (eval $ac_compile) 2>conftest.er1
29075 grep -v '^ *+' conftest.er1 >conftest.err
29077 cat conftest.err >&5
29078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29079 (exit $ac_status); } &&
29080 { ac_try='test -z "$ac_cxx_werror_flag"
29081 || test ! -s conftest.err'
29082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29083 (eval $ac_try) 2>&5
29085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086 (exit $ac_status); }; } &&
29087 { ac_try='test -s conftest.$ac_objext'
29088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29089 (eval $ac_try) 2>&5
29091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092 (exit $ac_status); }; }; then
29093 ac_cv_func_isnan_in_math_h=yes
29095 echo "$as_me: failed program was:" >&5
29096 sed 's/^/| /' conftest.$ac_ext >&5
29098 ac_cv_func_isnan_in_math_h=no
29100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29102 ac_cpp='$CPP $CPPFLAGS'
29103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29108 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29109 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29112 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29114 cat >>confdefs.h <<\_ACEOF
29115 #define HAVE_ISNAN_IN_MATH_H 1
29120 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29121 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29122 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29123 echo $ECHO_N "(cached) $ECHO_C" >&6
29126 ac_cpp='$CXXCPP $CPPFLAGS'
29127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29131 cat >conftest.$ac_ext <<_ACEOF
29134 cat confdefs.h >>conftest.$ac_ext
29135 cat >>conftest.$ac_ext <<_ACEOF
29136 /* end confdefs.h. */
29146 rm -f conftest.$ac_objext
29147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29148 (eval $ac_compile) 2>conftest.er1
29150 grep -v '^ *+' conftest.er1 >conftest.err
29152 cat conftest.err >&5
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); } &&
29155 { ac_try='test -z "$ac_cxx_werror_flag"
29156 || test ! -s conftest.err'
29157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29158 (eval $ac_try) 2>&5
29160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161 (exit $ac_status); }; } &&
29162 { ac_try='test -s conftest.$ac_objext'
29163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29164 (eval $ac_try) 2>&5
29166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167 (exit $ac_status); }; }; then
29168 ac_cv_func_isnan_in_cmath=yes
29170 echo "$as_me: failed program was:" >&5
29171 sed 's/^/| /' conftest.$ac_ext >&5
29173 ac_cv_func_isnan_in_cmath=no
29175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29177 ac_cpp='$CPP $CPPFLAGS'
29178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29183 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29184 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29186 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29188 cat >>confdefs.h <<\_ACEOF
29189 #define HAVE_ISNAN_IN_CMATH 1
29194 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29195 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29196 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29197 echo $ECHO_N "(cached) $ECHO_C" >&6
29200 ac_cpp='$CXXCPP $CPPFLAGS'
29201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29205 cat >conftest.$ac_ext <<_ACEOF
29208 cat confdefs.h >>conftest.$ac_ext
29209 cat >>conftest.$ac_ext <<_ACEOF
29210 /* end confdefs.h. */
29215 float f; std::isnan(f);
29220 rm -f conftest.$ac_objext
29221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29222 (eval $ac_compile) 2>conftest.er1
29224 grep -v '^ *+' conftest.er1 >conftest.err
29226 cat conftest.err >&5
29227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228 (exit $ac_status); } &&
29229 { ac_try='test -z "$ac_cxx_werror_flag"
29230 || test ! -s conftest.err'
29231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29232 (eval $ac_try) 2>&5
29234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235 (exit $ac_status); }; } &&
29236 { ac_try='test -s conftest.$ac_objext'
29237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29238 (eval $ac_try) 2>&5
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241 (exit $ac_status); }; }; then
29242 ac_cv_func_std_isnan_in_cmath=yes
29244 echo "$as_me: failed program was:" >&5
29245 sed 's/^/| /' conftest.$ac_ext >&5
29247 ac_cv_func_std_isnan_in_cmath=no
29249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29251 ac_cpp='$CPP $CPPFLAGS'
29252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29257 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29258 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29260 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29262 cat >>confdefs.h <<\_ACEOF
29263 #define HAVE_STD_ISNAN_IN_CMATH 1
29269 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29270 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29271 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29272 echo $ECHO_N "(cached) $ECHO_C" >&6
29275 ac_cpp='$CXXCPP $CPPFLAGS'
29276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29280 cat >conftest.$ac_ext <<_ACEOF
29283 cat confdefs.h >>conftest.$ac_ext
29284 cat >>conftest.$ac_ext <<_ACEOF
29285 /* end confdefs.h. */
29295 rm -f conftest.$ac_objext
29296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29297 (eval $ac_compile) 2>conftest.er1
29299 grep -v '^ *+' conftest.er1 >conftest.err
29301 cat conftest.err >&5
29302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303 (exit $ac_status); } &&
29304 { ac_try='test -z "$ac_cxx_werror_flag"
29305 || test ! -s conftest.err'
29306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29307 (eval $ac_try) 2>&5
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); }; } &&
29311 { ac_try='test -s conftest.$ac_objext'
29312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29313 (eval $ac_try) 2>&5
29315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316 (exit $ac_status); }; }; then
29317 ac_cv_func_isinf_in_math_h=yes
29319 echo "$as_me: failed program was:" >&5
29320 sed 's/^/| /' conftest.$ac_ext >&5
29322 ac_cv_func_isinf_in_math_h=no
29324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29326 ac_cpp='$CPP $CPPFLAGS'
29327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29332 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29333 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29335 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29337 cat >>confdefs.h <<\_ACEOF
29338 #define HAVE_ISINF_IN_MATH_H 1
29343 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29344 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29345 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29346 echo $ECHO_N "(cached) $ECHO_C" >&6
29349 ac_cpp='$CXXCPP $CPPFLAGS'
29350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29354 cat >conftest.$ac_ext <<_ACEOF
29357 cat confdefs.h >>conftest.$ac_ext
29358 cat >>conftest.$ac_ext <<_ACEOF
29359 /* end confdefs.h. */
29369 rm -f conftest.$ac_objext
29370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29371 (eval $ac_compile) 2>conftest.er1
29373 grep -v '^ *+' conftest.er1 >conftest.err
29375 cat conftest.err >&5
29376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29377 (exit $ac_status); } &&
29378 { ac_try='test -z "$ac_cxx_werror_flag"
29379 || test ! -s conftest.err'
29380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29381 (eval $ac_try) 2>&5
29383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384 (exit $ac_status); }; } &&
29385 { ac_try='test -s conftest.$ac_objext'
29386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29387 (eval $ac_try) 2>&5
29389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 (exit $ac_status); }; }; then
29391 ac_cv_func_isinf_in_cmath=yes
29393 echo "$as_me: failed program was:" >&5
29394 sed 's/^/| /' conftest.$ac_ext >&5
29396 ac_cv_func_isinf_in_cmath=no
29398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29400 ac_cpp='$CPP $CPPFLAGS'
29401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29406 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29407 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29409 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29411 cat >>confdefs.h <<\_ACEOF
29412 #define HAVE_ISINF_IN_CMATH 1
29417 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29418 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29419 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29420 echo $ECHO_N "(cached) $ECHO_C" >&6
29423 ac_cpp='$CXXCPP $CPPFLAGS'
29424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29428 cat >conftest.$ac_ext <<_ACEOF
29431 cat confdefs.h >>conftest.$ac_ext
29432 cat >>conftest.$ac_ext <<_ACEOF
29433 /* end confdefs.h. */
29438 float f; std::isinf(f)}
29443 rm -f conftest.$ac_objext
29444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29445 (eval $ac_compile) 2>conftest.er1
29447 grep -v '^ *+' conftest.er1 >conftest.err
29449 cat conftest.err >&5
29450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29451 (exit $ac_status); } &&
29452 { ac_try='test -z "$ac_cxx_werror_flag"
29453 || test ! -s conftest.err'
29454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29455 (eval $ac_try) 2>&5
29457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458 (exit $ac_status); }; } &&
29459 { ac_try='test -s conftest.$ac_objext'
29460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29461 (eval $ac_try) 2>&5
29463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464 (exit $ac_status); }; }; then
29465 ac_cv_func_std_isinf_in_cmath=yes
29467 echo "$as_me: failed program was:" >&5
29468 sed 's/^/| /' conftest.$ac_ext >&5
29470 ac_cv_func_std_isinf_in_cmath=no
29472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29474 ac_cpp='$CPP $CPPFLAGS'
29475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29480 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29481 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29483 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29485 cat >>confdefs.h <<\_ACEOF
29486 #define HAVE_STD_ISINF_IN_CMATH 1
29491 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29492 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29493 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29494 echo $ECHO_N "(cached) $ECHO_C" >&6
29497 ac_cpp='$CXXCPP $CPPFLAGS'
29498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29502 cat >conftest.$ac_ext <<_ACEOF
29505 cat confdefs.h >>conftest.$ac_ext
29506 cat >>conftest.$ac_ext <<_ACEOF
29507 /* end confdefs.h. */
29508 #include <ieeefp.h>
29512 float f; finite(f);
29517 rm -f conftest.$ac_objext
29518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29519 (eval $ac_compile) 2>conftest.er1
29521 grep -v '^ *+' conftest.er1 >conftest.err
29523 cat conftest.err >&5
29524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525 (exit $ac_status); } &&
29526 { ac_try='test -z "$ac_cxx_werror_flag"
29527 || test ! -s conftest.err'
29528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29529 (eval $ac_try) 2>&5
29531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29532 (exit $ac_status); }; } &&
29533 { ac_try='test -s conftest.$ac_objext'
29534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29535 (eval $ac_try) 2>&5
29537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); }; }; then
29539 ac_cv_func_finite_in_ieeefp_h=yes
29541 echo "$as_me: failed program was:" >&5
29542 sed 's/^/| /' conftest.$ac_ext >&5
29544 ac_cv_func_finite_in_ieeefp_h=no
29546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29548 ac_cpp='$CPP $CPPFLAGS'
29549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29554 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29555 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29557 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29559 cat >>confdefs.h <<\_ACEOF
29560 #define HAVE_FINITE_IN_IEEEFP_H 1
29569 for ac_header in stdlib.h unistd.h
29571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29573 echo "$as_me:$LINENO: checking for $ac_header" >&5
29574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29576 echo $ECHO_N "(cached) $ECHO_C" >&6
29578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29581 # Is the header compilable?
29582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29584 cat >conftest.$ac_ext <<_ACEOF
29587 cat confdefs.h >>conftest.$ac_ext
29588 cat >>conftest.$ac_ext <<_ACEOF
29589 /* end confdefs.h. */
29590 $ac_includes_default
29591 #include <$ac_header>
29593 rm -f conftest.$ac_objext
29594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29595 (eval $ac_compile) 2>conftest.er1
29597 grep -v '^ *+' conftest.er1 >conftest.err
29599 cat conftest.err >&5
29600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29601 (exit $ac_status); } &&
29602 { ac_try='test -z "$ac_c_werror_flag"
29603 || test ! -s conftest.err'
29604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29605 (eval $ac_try) 2>&5
29607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608 (exit $ac_status); }; } &&
29609 { ac_try='test -s conftest.$ac_objext'
29610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29611 (eval $ac_try) 2>&5
29613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614 (exit $ac_status); }; }; then
29615 ac_header_compiler=yes
29617 echo "$as_me: failed program was:" >&5
29618 sed 's/^/| /' conftest.$ac_ext >&5
29620 ac_header_compiler=no
29622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29624 echo "${ECHO_T}$ac_header_compiler" >&6
29626 # Is the header present?
29627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29629 cat >conftest.$ac_ext <<_ACEOF
29632 cat confdefs.h >>conftest.$ac_ext
29633 cat >>conftest.$ac_ext <<_ACEOF
29634 /* end confdefs.h. */
29635 #include <$ac_header>
29637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29640 grep -v '^ *+' conftest.er1 >conftest.err
29642 cat conftest.err >&5
29643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); } >/dev/null; then
29645 if test -s conftest.err; then
29646 ac_cpp_err=$ac_c_preproc_warn_flag
29647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29654 if test -z "$ac_cpp_err"; then
29655 ac_header_preproc=yes
29657 echo "$as_me: failed program was:" >&5
29658 sed 's/^/| /' conftest.$ac_ext >&5
29660 ac_header_preproc=no
29662 rm -f conftest.err conftest.$ac_ext
29663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29664 echo "${ECHO_T}$ac_header_preproc" >&6
29666 # So? What about this header?
29667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29673 ac_header_preproc=yes
29676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29690 ## ----------------------------------- ##
29691 ## Report this to llvmbugs@cs.uiuc.edu ##
29692 ## ----------------------------------- ##
29695 sed "s/^/$as_me: WARNING: /" >&2
29698 echo "$as_me:$LINENO: checking for $ac_header" >&5
29699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29701 echo $ECHO_N "(cached) $ECHO_C" >&6
29703 eval "$as_ac_Header=\$ac_header_preproc"
29705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29710 cat >>confdefs.h <<_ACEOF
29711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29719 for ac_func in getpagesize
29721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29722 echo "$as_me:$LINENO: checking for $ac_func" >&5
29723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29724 if eval "test \"\${$as_ac_var+set}\" = set"; then
29725 echo $ECHO_N "(cached) $ECHO_C" >&6
29727 cat >conftest.$ac_ext <<_ACEOF
29730 cat confdefs.h >>conftest.$ac_ext
29731 cat >>conftest.$ac_ext <<_ACEOF
29732 /* end confdefs.h. */
29733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29735 #define $ac_func innocuous_$ac_func
29737 /* System header to define __stub macros and hopefully few prototypes,
29738 which can conflict with char $ac_func (); below.
29739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29740 <limits.h> exists even on freestanding compilers. */
29743 # include <limits.h>
29745 # include <assert.h>
29750 /* Override any gcc2 internal prototype to avoid an error. */
29755 /* We use char because int might match the return type of a gcc2
29756 builtin and then its argument prototype would still apply. */
29758 /* The GNU C library defines this for functions which it implements
29759 to always fail with ENOSYS. Some functions are actually named
29760 something starting with __ and the normal name is an alias. */
29761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29764 char (*f) () = $ac_func;
29773 return f != $ac_func;
29778 rm -f conftest.$ac_objext conftest$ac_exeext
29779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29780 (eval $ac_link) 2>conftest.er1
29782 grep -v '^ *+' conftest.er1 >conftest.err
29784 cat conftest.err >&5
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); } &&
29787 { ac_try='test -z "$ac_c_werror_flag"
29788 || test ! -s conftest.err'
29789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29790 (eval $ac_try) 2>&5
29792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29793 (exit $ac_status); }; } &&
29794 { ac_try='test -s conftest$ac_exeext'
29795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29796 (eval $ac_try) 2>&5
29798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29799 (exit $ac_status); }; }; then
29800 eval "$as_ac_var=yes"
29802 echo "$as_me: failed program was:" >&5
29803 sed 's/^/| /' conftest.$ac_ext >&5
29805 eval "$as_ac_var=no"
29807 rm -f conftest.err conftest.$ac_objext \
29808 conftest$ac_exeext conftest.$ac_ext
29810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29812 if test `eval echo '${'$as_ac_var'}'` = yes; then
29813 cat >>confdefs.h <<_ACEOF
29814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29820 echo "$as_me:$LINENO: checking for working mmap" >&5
29821 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29822 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29823 echo $ECHO_N "(cached) $ECHO_C" >&6
29825 if test "$cross_compiling" = yes; then
29826 ac_cv_func_mmap_fixed_mapped=no
29828 cat >conftest.$ac_ext <<_ACEOF
29831 cat confdefs.h >>conftest.$ac_ext
29832 cat >>conftest.$ac_ext <<_ACEOF
29833 /* end confdefs.h. */
29834 $ac_includes_default
29835 /* malloc might have been renamed as rpl_malloc. */
29838 /* Thanks to Mike Haertel and Jim Avera for this test.
29839 Here is a matrix of mmap possibilities:
29840 mmap private not fixed
29841 mmap private fixed at somewhere currently unmapped
29842 mmap private fixed at somewhere already mapped
29843 mmap shared not fixed
29844 mmap shared fixed at somewhere currently unmapped
29845 mmap shared fixed at somewhere already mapped
29846 For private mappings, we should verify that changes cannot be read()
29847 back from the file, nor mmap's back from the file at a different
29848 address. (There have been systems where private was not correctly
29849 implemented like the infamous i386 svr4.0, and systems where the
29850 VM page cache was not coherent with the file system buffer cache
29851 like early versions of FreeBSD and possibly contemporary NetBSD.)
29852 For shared mappings, we should conversely verify that changes get
29853 propagated back to all the places they're supposed to be.
29855 Grep wants private fixed already mapped.
29856 The main things grep needs to know about mmap are:
29857 * does it exist and is it safe to write into the mmap'd area
29858 * how to use it (BSD variants) */
29861 #include <sys/mman.h>
29863 #if !STDC_HEADERS && !HAVE_STDLIB_H
29867 /* This mess was copied from the GNU getpagesize.h. */
29868 #if !HAVE_GETPAGESIZE
29869 /* Assume that all systems that can run configure have sys/param.h. */
29870 # if !HAVE_SYS_PARAM_H
29871 # define HAVE_SYS_PARAM_H 1
29874 # ifdef _SC_PAGESIZE
29875 # define getpagesize() sysconf(_SC_PAGESIZE)
29876 # else /* no _SC_PAGESIZE */
29877 # if HAVE_SYS_PARAM_H
29878 # include <sys/param.h>
29879 # ifdef EXEC_PAGESIZE
29880 # define getpagesize() EXEC_PAGESIZE
29881 # else /* no EXEC_PAGESIZE */
29883 # define getpagesize() NBPG * CLSIZE
29886 # endif /* no CLSIZE */
29887 # else /* no NBPG */
29889 # define getpagesize() NBPC
29890 # else /* no NBPC */
29892 # define getpagesize() PAGESIZE
29893 # endif /* PAGESIZE */
29894 # endif /* no NBPC */
29895 # endif /* no NBPG */
29896 # endif /* no EXEC_PAGESIZE */
29897 # else /* no HAVE_SYS_PARAM_H */
29898 # define getpagesize() 8192 /* punt totally */
29899 # endif /* no HAVE_SYS_PARAM_H */
29900 # endif /* no _SC_PAGESIZE */
29902 #endif /* no HAVE_GETPAGESIZE */
29907 char *data, *data2, *data3;
29911 pagesize = getpagesize ();
29913 /* First, make a file with some known garbage in it. */
29914 data = (char *) malloc (pagesize);
29917 for (i = 0; i < pagesize; ++i)
29918 *(data + i) = rand ();
29920 fd = creat ("conftest.mmap", 0600);
29923 if (write (fd, data, pagesize) != pagesize)
29927 /* Next, try to mmap the file at a fixed address which already has
29928 something else allocated at it. If we can, also make sure that
29929 we see the same garbage. */
29930 fd = open ("conftest.mmap", O_RDWR);
29933 data2 = (char *) malloc (2 * pagesize);
29936 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29937 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29938 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29940 for (i = 0; i < pagesize; ++i)
29941 if (*(data + i) != *(data2 + i))
29944 /* Finally, make sure that changes to the mapped area do not
29945 percolate back to the file as seen by read(). (This is a bug on
29946 some variants of i386 svr4.0.) */
29947 for (i = 0; i < pagesize; ++i)
29948 *(data2 + i) = *(data2 + i) + 1;
29949 data3 = (char *) malloc (pagesize);
29952 if (read (fd, data3, pagesize) != pagesize)
29954 for (i = 0; i < pagesize; ++i)
29955 if (*(data + i) != *(data3 + i))
29961 rm -f conftest$ac_exeext
29962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29963 (eval $ac_link) 2>&5
29965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29968 (eval $ac_try) 2>&5
29970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971 (exit $ac_status); }; }; then
29972 ac_cv_func_mmap_fixed_mapped=yes
29974 echo "$as_me: program exited with status $ac_status" >&5
29975 echo "$as_me: failed program was:" >&5
29976 sed 's/^/| /' conftest.$ac_ext >&5
29978 ( exit $ac_status )
29979 ac_cv_func_mmap_fixed_mapped=no
29981 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29984 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29985 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29986 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29988 cat >>confdefs.h <<\_ACEOF
29989 #define HAVE_MMAP 1
29993 rm -f conftest.mmap
29995 echo "$as_me:$LINENO: checking for mmap of files" >&5
29996 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29997 if test "${ac_cv_func_mmap_file+set}" = set; then
29998 echo $ECHO_N "(cached) $ECHO_C" >&6
30001 ac_cpp='$CPP $CPPFLAGS'
30002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30006 if test "$cross_compiling" = yes; then
30007 ac_cv_func_mmap_file=no
30009 cat >conftest.$ac_ext <<_ACEOF
30013 cat confdefs.h >>conftest.$ac_ext
30014 cat >>conftest.$ac_ext <<_ACEOF
30015 /* end confdefs.h. */
30017 #include <sys/types.h>
30018 #include <sys/mman.h>
30026 fd = creat ("foo",0777);
30027 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30029 return (fd != (int) MAP_FAILED);
30034 rm -f conftest$ac_exeext
30035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30036 (eval $ac_link) 2>&5
30038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30041 (eval $ac_try) 2>&5
30043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); }; }; then
30045 ac_cv_func_mmap_file=yes
30047 echo "$as_me: program exited with status $ac_status" >&5
30048 echo "$as_me: failed program was:" >&5
30049 sed 's/^/| /' conftest.$ac_ext >&5
30051 ( exit $ac_status )
30052 ac_cv_func_mmap_file=no
30054 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30057 ac_cpp='$CPP $CPPFLAGS'
30058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30064 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30065 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30066 if test "$ac_cv_func_mmap_file" = yes; then
30068 cat >>confdefs.h <<\_ACEOF
30069 #define HAVE_MMAP_FILE
30076 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30077 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30078 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30079 echo $ECHO_N "(cached) $ECHO_C" >&6
30081 if test "$llvm_cv_os_type" = "Interix" ; then
30082 ac_cv_need_dev_zero_for_mmap=yes
30084 ac_cv_need_dev_zero_for_mmap=no
30088 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30089 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30090 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30092 cat >>confdefs.h <<\_ACEOF
30093 #define NEED_DEV_ZERO_FOR_MMAP 1
30097 echo "$as_me:$LINENO: checking for mprotect" >&5
30098 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30099 if test "${ac_cv_func_mprotect+set}" = set; then
30100 echo $ECHO_N "(cached) $ECHO_C" >&6
30102 cat >conftest.$ac_ext <<_ACEOF
30105 cat confdefs.h >>conftest.$ac_ext
30106 cat >>conftest.$ac_ext <<_ACEOF
30107 /* end confdefs.h. */
30108 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30110 #define mprotect innocuous_mprotect
30112 /* System header to define __stub macros and hopefully few prototypes,
30113 which can conflict with char mprotect (); below.
30114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30115 <limits.h> exists even on freestanding compilers. */
30118 # include <limits.h>
30120 # include <assert.h>
30125 /* Override any gcc2 internal prototype to avoid an error. */
30130 /* We use char because int might match the return type of a gcc2
30131 builtin and then its argument prototype would still apply. */
30133 /* The GNU C library defines this for functions which it implements
30134 to always fail with ENOSYS. Some functions are actually named
30135 something starting with __ and the normal name is an alias. */
30136 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30139 char (*f) () = mprotect;
30148 return f != mprotect;
30153 rm -f conftest.$ac_objext conftest$ac_exeext
30154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30155 (eval $ac_link) 2>conftest.er1
30157 grep -v '^ *+' conftest.er1 >conftest.err
30159 cat conftest.err >&5
30160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161 (exit $ac_status); } &&
30162 { ac_try='test -z "$ac_c_werror_flag"
30163 || test ! -s conftest.err'
30164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30165 (eval $ac_try) 2>&5
30167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30168 (exit $ac_status); }; } &&
30169 { ac_try='test -s conftest$ac_exeext'
30170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30171 (eval $ac_try) 2>&5
30173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30174 (exit $ac_status); }; }; then
30175 ac_cv_func_mprotect=yes
30177 echo "$as_me: failed program was:" >&5
30178 sed 's/^/| /' conftest.$ac_ext >&5
30180 ac_cv_func_mprotect=no
30182 rm -f conftest.err conftest.$ac_objext \
30183 conftest$ac_exeext conftest.$ac_ext
30185 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30186 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30187 if test $ac_cv_func_mprotect = yes; then
30190 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30191 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30192 { (exit 1); exit 1; }; }
30196 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30198 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30199 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30201 if test "$ac_cv_func_mmap_file" = "no"
30203 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30204 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30208 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30209 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30210 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30211 echo $ECHO_N "(cached) $ECHO_C" >&6
30213 llvm_cv_llvmgcc_sanity="no"
30214 if test -x "$LLVMGCC" ; then
30215 cp /dev/null conftest.c
30216 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30217 if test $? -eq 0 ; then
30218 llvm_cv_llvmgcc_sanity="yes"
30223 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30224 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30226 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30227 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30228 LLVMCC1=$llvmcc1path
30230 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30231 LLVMCC1PLUS=$llvmcc1pluspath
30233 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30234 LLVMGCCDIR=$llvmgccdir
30238 SHLIBEXT=$libltdl_cv_shlibext
30241 # Translate the various configuration directories and other basic
30242 # information into substitutions that will end up in Makefile.config.in
30243 # that these configured values can be used by the makefiles
30244 eval LLVM_PREFIX="${prefix}";
30245 eval LLVM_BINDIR="${prefix}/bin";
30246 eval LLVM_LIBDIR="${prefix}/lib";
30247 eval LLVM_DATADIR="${prefix}/share/llvm";
30248 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30249 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30250 eval LLVM_INCLUDEDIR="${prefix}/include";
30251 eval LLVM_INFODIR="${prefix}/info";
30252 eval LLVM_MANDIR="${prefix}/man";
30253 LLVM_CONFIGTIME=`date`
30265 # Place the various directores into the config.h file as #defines so that we
30266 # can know about the installation paths within LLVM.
30268 cat >>confdefs.h <<_ACEOF
30269 #define LLVM_PREFIX "$LLVM_PREFIX"
30273 cat >>confdefs.h <<_ACEOF
30274 #define LLVM_BINDIR "$LLVM_BINDIR"
30278 cat >>confdefs.h <<_ACEOF
30279 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30283 cat >>confdefs.h <<_ACEOF
30284 #define LLVM_DATADIR "$LLVM_DATADIR"
30288 cat >>confdefs.h <<_ACEOF
30289 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30293 cat >>confdefs.h <<_ACEOF
30294 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30298 cat >>confdefs.h <<_ACEOF
30299 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30303 cat >>confdefs.h <<_ACEOF
30304 #define LLVM_INFODIR "$LLVM_INFODIR"
30308 cat >>confdefs.h <<_ACEOF
30309 #define LLVM_MANDIR "$LLVM_MANDIR"
30313 cat >>confdefs.h <<_ACEOF
30314 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30319 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30322 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30324 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30326 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30328 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30330 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30333 ac_config_files="$ac_config_files Makefile.config"
30336 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30339 ac_config_files="$ac_config_files docs/doxygen.cfg"
30342 ac_config_commands="$ac_config_commands setup"
30344 ac_config_commands="$ac_config_commands Makefile"
30347 ac_config_commands="$ac_config_commands Makefile.common"
30350 ac_config_commands="$ac_config_commands examples/Makefile"
30353 ac_config_commands="$ac_config_commands lib/Makefile"
30356 ac_config_commands="$ac_config_commands runtime/Makefile"
30359 ac_config_commands="$ac_config_commands test/Makefile"
30362 ac_config_commands="$ac_config_commands test/Makefile.tests"
30365 ac_config_commands="$ac_config_commands tools/Makefile"
30368 ac_config_commands="$ac_config_commands utils/Makefile"
30371 ac_config_commands="$ac_config_commands projects/Makefile"
30375 cat >confcache <<\_ACEOF
30376 # This file is a shell script that caches the results of configure
30377 # tests run on this system so they can be shared between configure
30378 # scripts and configure runs, see configure's option --config-cache.
30379 # It is not useful on other systems. If it contains results you don't
30380 # want to keep, you may remove or edit it.
30382 # config.status only pays attention to the cache file if you give it
30383 # the --recheck option to rerun configure.
30385 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30386 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30387 # following values.
30391 # The following way of writing the cache mishandles newlines in values,
30392 # but we know of no workaround that is simple, portable, and efficient.
30393 # So, don't put newlines in cache variables' values.
30394 # Ultrix sh set writes to stderr and can't be redirected directly,
30395 # and sets the high bit in the cache file unless we assign to the vars.
30398 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30400 # `set' does not quote correctly, so add quotes (double-quote
30401 # substitution turns \\\\ into \\, and sed turns \\ into \).
30404 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30407 # `set' quotes correctly as required by POSIX, so do not add quotes.
30409 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30416 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30418 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30420 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30421 if test -w $cache_file; then
30422 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30423 cat confcache >$cache_file
30425 echo "not updating unwritable cache $cache_file"
30430 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30431 # Let make expand exec_prefix.
30432 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30434 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30435 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30436 # trailing colons and then remove the whole line if VPATH becomes empty
30437 # (actually we leave an empty line to preserve line numbers).
30438 if test "x$srcdir" = x.; then
30439 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30440 s/:*\$(srcdir):*/:/;
30441 s/:*\${srcdir}:*/:/;
30443 s/^\([^=]*=[ ]*\):*/\1/;
30449 DEFS=-DHAVE_CONFIG_H
30453 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30454 # 1. Remove the extension, and $U if already installed.
30455 ac_i=`echo "$ac_i" |
30456 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30458 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30459 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30461 LIBOBJS=$ac_libobjs
30463 LTLIBOBJS=$ac_ltlibobjs
30466 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30467 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30468 Usually this means the macro was only invoked conditionally." >&5
30469 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30470 Usually this means the macro was only invoked conditionally." >&2;}
30471 { (exit 1); exit 1; }; }
30473 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30474 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30475 Usually this means the macro was only invoked conditionally." >&5
30476 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30477 Usually this means the macro was only invoked conditionally." >&2;}
30478 { (exit 1); exit 1; }; }
30481 : ${CONFIG_STATUS=./config.status}
30482 ac_clean_files_save=$ac_clean_files
30483 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30484 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30485 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30486 cat >$CONFIG_STATUS <<_ACEOF
30488 # Generated by $as_me.
30489 # Run this file to recreate the current configuration.
30490 # Compiler output produced by configure, useful for debugging
30491 # configure, is in config.log if it exists.
30494 ac_cs_recheck=false
30496 SHELL=\${CONFIG_SHELL-$SHELL}
30499 cat >>$CONFIG_STATUS <<\_ACEOF
30500 ## --------------------- ##
30501 ## M4sh Initialization. ##
30502 ## --------------------- ##
30504 # Be Bourne compatible
30505 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30508 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30509 # is contrary to our usage. Disable this feature.
30510 alias -g '${1+"$@"}'='"$@"'
30511 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30514 DUALCASE=1; export DUALCASE # for MKS sh
30516 # Support unset when possible.
30517 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30524 # Work around bugs in pre-3.0 UWIN ksh.
30525 $as_unset ENV MAIL MAILPATH
30532 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30533 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30534 LC_TELEPHONE LC_TIME
30536 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30537 eval $as_var=C; export $as_var
30543 # Required to use basename.
30544 if expr a : '\(a\)' >/dev/null 2>&1; then
30550 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30551 as_basename=basename
30557 # Name of the executable.
30558 as_me=`$as_basename "$0" ||
30559 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30560 X"$0" : 'X\(//\)$' \| \
30561 X"$0" : 'X\(/\)$' \| \
30562 . : '\(.\)' 2>/dev/null ||
30564 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30565 /^X\/\(\/\/\)$/{ s//\1/; q; }
30566 /^X\/\(\/\).*/{ s//\1/; q; }
30570 # PATH needs CR, and LINENO needs CR and PATH.
30571 # Avoid depending upon Character Ranges.
30572 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30573 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30574 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30575 as_cr_digits='0123456789'
30576 as_cr_alnum=$as_cr_Letters$as_cr_digits
30578 # The user is always right.
30579 if test "${PATH_SEPARATOR+set}" != set; then
30580 echo "#! /bin/sh" >conf$$.sh
30581 echo "exit 0" >>conf$$.sh
30583 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30592 as_lineno_1=$LINENO
30593 as_lineno_2=$LINENO
30594 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30595 test "x$as_lineno_1" != "x$as_lineno_2" &&
30596 test "x$as_lineno_3" = "x$as_lineno_2" || {
30597 # Find who we are. Look in the path if we contain no path at all
30600 *[\\/]* ) as_myself=$0 ;;
30601 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30602 for as_dir in $PATH
30605 test -z "$as_dir" && as_dir=.
30606 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30611 # We did not find ourselves, most probably we were run as `sh COMMAND'
30612 # in which case we are not to be found in the path.
30613 if test "x$as_myself" = x; then
30616 if test ! -f "$as_myself"; then
30617 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30618 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30619 { (exit 1); exit 1; }; }
30621 case $CONFIG_SHELL in
30623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30624 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30627 test -z "$as_dir" && as_dir=.
30628 for as_base in sh bash ksh sh5; do
30631 if ("$as_dir/$as_base" -c '
30632 as_lineno_1=$LINENO
30633 as_lineno_2=$LINENO
30634 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30635 test "x$as_lineno_1" != "x$as_lineno_2" &&
30636 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30637 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30638 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30639 CONFIG_SHELL=$as_dir/$as_base
30640 export CONFIG_SHELL
30641 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30649 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30650 # uniformly replaced by the line number. The first 'sed' inserts a
30651 # line-number line before each line; the second 'sed' does the real
30652 # work. The second script uses 'N' to pair each line-number line
30653 # with the numbered line, and appends trailing '-' during
30654 # substitution so that $LINENO is not a special case at line end.
30655 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30656 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30657 sed '=' <$as_myself |
30662 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30665 s,^['$as_cr_digits']*\n,,
30666 ' >$as_me.lineno &&
30667 chmod +x $as_me.lineno ||
30668 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30669 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30670 { (exit 1); exit 1; }; }
30672 # Don't try to exec as it changes $[0], causing all sort of problems
30673 # (the dirname of $[0] is not the place where we might find the
30674 # original and so on. Autoconf is especially sensible to this).
30676 # Exit status is that of the last command.
30681 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30682 *c*,-n*) ECHO_N= ECHO_C='
30684 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30685 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30688 if expr a : '\(a\)' >/dev/null 2>&1; then
30694 rm -f conf$$ conf$$.exe conf$$.file
30696 if ln -s conf$$.file conf$$ 2>/dev/null; then
30697 # We could just check for DJGPP; but this test a) works b) is more generic
30698 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30699 if test -f conf$$.exe; then
30700 # Don't use ln at all; we don't have any links
30705 elif ln conf$$.file conf$$ 2>/dev/null; then
30710 rm -f conf$$ conf$$.exe conf$$.file
30712 if mkdir -p . 2>/dev/null; then
30715 test -d ./-p && rmdir ./-p
30719 as_executable_p="test -f"
30721 # Sed expression to map a string onto a valid CPP name.
30722 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30724 # Sed expression to map a string onto a valid variable name.
30725 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30729 # We need space, tab and new line, in precisely that order.
30739 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30740 # report actual input values of CONFIG_FILES etc. instead of their
30741 # values after options handling. Logging --version etc. is OK.
30745 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30746 ## Running $as_me. ##
30751 This file was extended by llvm $as_me 1.5cvs, which was
30752 generated by GNU Autoconf 2.59. Invocation command line was
30754 CONFIG_FILES = $CONFIG_FILES
30755 CONFIG_HEADERS = $CONFIG_HEADERS
30756 CONFIG_LINKS = $CONFIG_LINKS
30757 CONFIG_COMMANDS = $CONFIG_COMMANDS
30761 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30765 # Files that config.status was made for.
30766 if test -n "$ac_config_files"; then
30767 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30770 if test -n "$ac_config_headers"; then
30771 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30774 if test -n "$ac_config_links"; then
30775 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30778 if test -n "$ac_config_commands"; then
30779 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30782 cat >>$CONFIG_STATUS <<\_ACEOF
30785 \`$as_me' instantiates files from templates according to the
30786 current configuration.
30788 Usage: $0 [OPTIONS] [FILE]...
30790 -h, --help print this help, then exit
30791 -V, --version print version number, then exit
30792 -q, --quiet do not print progress messages
30793 -d, --debug don't remove temporary files
30794 --recheck update $as_me by reconfiguring in the same conditions
30795 --file=FILE[:TEMPLATE]
30796 instantiate the configuration file FILE
30797 --header=FILE[:TEMPLATE]
30798 instantiate the configuration header FILE
30800 Configuration files:
30803 Configuration headers:
30806 Configuration commands:
30809 Report bugs to <bug-autoconf@gnu.org>."
30812 cat >>$CONFIG_STATUS <<_ACEOF
30814 llvm config.status 1.5cvs
30815 configured by $0, generated by GNU Autoconf 2.59,
30816 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30818 Copyright (C) 2003 Free Software Foundation, Inc.
30819 This config.status script is free software; the Free Software Foundation
30820 gives unlimited permission to copy, distribute and modify it."
30825 cat >>$CONFIG_STATUS <<\_ACEOF
30826 # If no file are specified by the user, then we need to provide default
30827 # value. By we need to know if files were specified by the user.
30833 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30834 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30842 *) # This is not an option, so the user has probably given explicit
30845 ac_need_defaults=false;;
30849 # Handling of the options.
30851 cat >>$CONFIG_STATUS <<\_ACEOF
30852 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30854 --version | --vers* | -V )
30855 echo "$ac_cs_version"; exit 0 ;;
30857 # Conflict between --help and --header
30858 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30859 Try \`$0 --help' for more information." >&5
30860 echo "$as_me: error: ambiguous option: $1
30861 Try \`$0 --help' for more information." >&2;}
30862 { (exit 1); exit 1; }; };;
30863 --help | --hel | -h )
30864 echo "$ac_cs_usage"; exit 0 ;;
30865 --debug | --d* | -d )
30867 --file | --fil | --fi | --f )
30869 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30870 ac_need_defaults=false;;
30871 --header | --heade | --head | --hea )
30873 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30874 ac_need_defaults=false;;
30875 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30876 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30879 # This is an error.
30880 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30881 Try \`$0 --help' for more information." >&5
30882 echo "$as_me: error: unrecognized option: $1
30883 Try \`$0 --help' for more information." >&2;}
30884 { (exit 1); exit 1; }; } ;;
30886 *) ac_config_targets="$ac_config_targets $1" ;;
30892 ac_configure_extra_args=
30894 if $ac_cs_silent; then
30896 ac_configure_extra_args="$ac_configure_extra_args --silent"
30900 cat >>$CONFIG_STATUS <<_ACEOF
30901 if \$ac_cs_recheck; then
30902 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30903 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30908 cat >>$CONFIG_STATUS <<_ACEOF
30910 # INIT-COMMANDS section.
30913 llvm_src="${srcdir}"
30919 cat >>$CONFIG_STATUS <<\_ACEOF
30920 for ac_config_target in $ac_config_targets
30922 case "$ac_config_target" in
30923 # Handling of arguments.
30924 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30925 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30926 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30927 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30928 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30929 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30930 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
30931 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30932 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30933 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30934 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30935 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30936 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30937 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30938 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30939 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30940 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30941 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30942 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30943 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30944 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30945 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30946 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30947 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30948 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30949 { (exit 1); exit 1; }; };;
30953 # If the user did not use the arguments to specify the items to instantiate,
30954 # then the envvar interface is used. Set only those that are not.
30955 # We use the long form for the default assignment because of an extremely
30956 # bizarre bug on SunOS 4.1.3.
30957 if $ac_need_defaults; then
30958 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30959 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30960 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30963 # Have a temporary directory for convenience. Make it in the build tree
30964 # simply because there is no reason to put it here, and in addition,
30965 # creating and moving files from /tmp can sometimes cause problems.
30966 # Create a temporary directory, and hook for its removal unless debugging.
30969 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30970 trap '{ (exit 1); exit 1; }' 1 2 13 15
30973 # Create a (secure) tmp directory for tmp files.
30976 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30977 test -n "$tmp" && test -d "$tmp"
30980 tmp=./confstat$$-$RANDOM
30981 (umask 077 && mkdir $tmp)
30984 echo "$me: cannot create a temporary directory in ." >&2
30985 { (exit 1); exit 1; }
30990 cat >>$CONFIG_STATUS <<_ACEOF
30993 # CONFIG_FILES section.
30996 # No need to generate the scripts if there are no CONFIG_FILES.
30997 # This happens for instance when ./config.status config.h
30998 if test -n "\$CONFIG_FILES"; then
30999 # Protect against being on the right side of a sed subst in config.status.
31000 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31001 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31002 s,@SHELL@,$SHELL,;t t
31003 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31004 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31005 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31006 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31007 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31008 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31009 s,@exec_prefix@,$exec_prefix,;t t
31010 s,@prefix@,$prefix,;t t
31011 s,@program_transform_name@,$program_transform_name,;t t
31012 s,@bindir@,$bindir,;t t
31013 s,@sbindir@,$sbindir,;t t
31014 s,@libexecdir@,$libexecdir,;t t
31015 s,@datadir@,$datadir,;t t
31016 s,@sysconfdir@,$sysconfdir,;t t
31017 s,@sharedstatedir@,$sharedstatedir,;t t
31018 s,@localstatedir@,$localstatedir,;t t
31019 s,@libdir@,$libdir,;t t
31020 s,@includedir@,$includedir,;t t
31021 s,@oldincludedir@,$oldincludedir,;t t
31022 s,@infodir@,$infodir,;t t
31023 s,@mandir@,$mandir,;t t
31024 s,@build_alias@,$build_alias,;t t
31025 s,@host_alias@,$host_alias,;t t
31026 s,@target_alias@,$target_alias,;t t
31027 s,@DEFS@,$DEFS,;t t
31028 s,@ECHO_C@,$ECHO_C,;t t
31029 s,@ECHO_N@,$ECHO_N,;t t
31030 s,@ECHO_T@,$ECHO_T,;t t
31031 s,@LIBS@,$LIBS,;t t
31032 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31033 s,@subdirs@,$subdirs,;t t
31034 s,@build@,$build,;t t
31035 s,@build_cpu@,$build_cpu,;t t
31036 s,@build_vendor@,$build_vendor,;t t
31037 s,@build_os@,$build_os,;t t
31038 s,@host@,$host,;t t
31039 s,@host_cpu@,$host_cpu,;t t
31040 s,@host_vendor@,$host_vendor,;t t
31041 s,@host_os@,$host_os,;t t
31042 s,@target@,$target,;t t
31043 s,@target_cpu@,$target_cpu,;t t
31044 s,@target_vendor@,$target_vendor,;t t
31045 s,@target_os@,$target_os,;t t
31047 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31048 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31049 s,@ARCH@,$ARCH,;t t
31050 s,@ENDIAN@,$ENDIAN,;t t
31052 s,@CFLAGS@,$CFLAGS,;t t
31053 s,@LDFLAGS@,$LDFLAGS,;t t
31054 s,@CPPFLAGS@,$CPPFLAGS,;t t
31055 s,@ac_ct_CC@,$ac_ct_CC,;t t
31056 s,@EXEEXT@,$EXEEXT,;t t
31057 s,@OBJEXT@,$OBJEXT,;t t
31058 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31060 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31061 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31064 s,@CXXFLAGS@,$CXXFLAGS,;t t
31065 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31067 s,@LEXLIB@,$LEXLIB,;t t
31068 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31069 s,@FLEX@,$FLEX,;t t
31070 s,@YACC@,$YACC,;t t
31071 s,@BISON@,$BISON,;t t
31072 s,@ifGNUmake@,$ifGNUmake,;t t
31073 s,@LN_S@,$LN_S,;t t
31076 s,@DATE@,$DATE,;t t
31077 s,@FIND@,$FIND,;t t
31078 s,@GREP@,$GREP,;t t
31079 s,@MKDIR@,$MKDIR,;t t
31081 s,@RANLIB@,$RANLIB,;t t
31082 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31086 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31087 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31088 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31089 s,@BZIP2@,$BZIP2,;t t
31091 s,@DOXYGEN@,$DOXYGEN,;t t
31092 s,@ETAGS@,$ETAGS,;t t
31093 s,@GROFF@,$GROFF,;t t
31094 s,@GZIP@,$GZIP,;t t
31095 s,@POD2HTML@,$POD2HTML,;t t
31096 s,@POD2MAN@,$POD2MAN,;t t
31097 s,@RUNTEST@,$RUNTEST,;t t
31098 s,@TCLSH@,$TCLSH,;t t
31100 s,@EGREP@,$EGREP,;t t
31101 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31102 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31103 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31104 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31105 s,@LIBADD_DL@,$LIBADD_DL,;t t
31106 s,@ECHO@,$ECHO,;t t
31108 s,@ac_ct_AR@,$ac_ct_AR,;t t
31109 s,@STRIP@,$STRIP,;t t
31110 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31111 s,@CXXCPP@,$CXXCPP,;t t
31113 s,@FFLAGS@,$FFLAGS,;t t
31114 s,@ac_ct_F77@,$ac_ct_F77,;t t
31115 s,@LIBTOOL@,$LIBTOOL,;t t
31116 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31117 s,@LLVMGCC@,$LLVMGCC,;t t
31118 s,@LLVMGXX@,$LLVMGXX,;t t
31119 s,@ALLOCA@,$ALLOCA,;t t
31120 s,@MMAP_FILE@,$MMAP_FILE,;t t
31121 s,@LLVMCC1@,$LLVMCC1,;t t
31122 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31123 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31124 s,@SHLIBEXT@,$SHLIBEXT,;t t
31125 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31126 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31127 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31128 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31129 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31130 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31131 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31132 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31133 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31134 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31135 s,@LIBOBJS@,$LIBOBJS,;t t
31136 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31141 cat >>$CONFIG_STATUS <<\_ACEOF
31142 # Split the substitutions into bite-sized pieces for seds with
31143 # small command number limits, like on Digital OSF/1 and HP-UX.
31144 ac_max_sed_lines=48
31145 ac_sed_frag=1 # Number of current file.
31146 ac_beg=1 # First line for current file.
31147 ac_end=$ac_max_sed_lines # Line after last line for current file.
31150 while $ac_more_lines; do
31151 if test $ac_beg -gt 1; then
31152 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31154 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31156 if test ! -s $tmp/subs.frag; then
31157 ac_more_lines=false
31159 # The purpose of the label and of the branching condition is to
31160 # speed up the sed processing (if there are no `@' at all, there
31161 # is no need to browse any of the substitutions).
31162 # These are the two extra sed commands mentioned above.
31164 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31165 if test -z "$ac_sed_cmds"; then
31166 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31168 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31170 ac_sed_frag=`expr $ac_sed_frag + 1`
31172 ac_end=`expr $ac_end + $ac_max_sed_lines`
31175 if test -z "$ac_sed_cmds"; then
31178 fi # test -n "$CONFIG_FILES"
31181 cat >>$CONFIG_STATUS <<\_ACEOF
31182 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31183 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31185 - | *:- | *:-:* ) # input from stdin
31187 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31188 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31189 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31190 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31191 * ) ac_file_in=$ac_file.in ;;
31194 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31195 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31196 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31197 X"$ac_file" : 'X\(//\)[^/]' \| \
31198 X"$ac_file" : 'X\(//\)$' \| \
31199 X"$ac_file" : 'X\(/\)' \| \
31200 . : '\(.\)' 2>/dev/null ||
31202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31204 /^X\(\/\/\)$/{ s//\1/; q; }
31205 /^X\(\/\).*/{ s//\1/; q; }
31207 { if $as_mkdir_p; then
31212 while test ! -d "$as_dir"; do
31213 as_dirs="$as_dir $as_dirs"
31214 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31215 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31216 X"$as_dir" : 'X\(//\)[^/]' \| \
31217 X"$as_dir" : 'X\(//\)$' \| \
31218 X"$as_dir" : 'X\(/\)' \| \
31219 . : '\(.\)' 2>/dev/null ||
31221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31222 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31223 /^X\(\/\/\)$/{ s//\1/; q; }
31224 /^X\(\/\).*/{ s//\1/; q; }
31227 test ! -n "$as_dirs" || mkdir $as_dirs
31228 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31229 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31230 { (exit 1); exit 1; }; }; }
31234 if test "$ac_dir" != .; then
31235 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31236 # A "../" for each directory in $ac_dir_suffix.
31237 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31239 ac_dir_suffix= ac_top_builddir=
31243 .) # No --srcdir option. We are building in place.
31245 if test -z "$ac_top_builddir"; then
31248 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31250 [\\/]* | ?:[\\/]* ) # Absolute path.
31251 ac_srcdir=$srcdir$ac_dir_suffix;
31252 ac_top_srcdir=$srcdir ;;
31253 *) # Relative path.
31254 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31255 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31258 # Do not use `cd foo && pwd` to compute absolute paths, because
31259 # the directories may not exist.
31261 .) ac_abs_builddir="$ac_dir";;
31264 .) ac_abs_builddir=`pwd`;;
31265 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31266 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31269 case $ac_abs_builddir in
31270 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31272 case ${ac_top_builddir}. in
31273 .) ac_abs_top_builddir=$ac_abs_builddir;;
31274 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31275 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31278 case $ac_abs_builddir in
31279 .) ac_abs_srcdir=$ac_srcdir;;
31282 .) ac_abs_srcdir=$ac_abs_builddir;;
31283 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31284 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31287 case $ac_abs_builddir in
31288 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31290 case $ac_top_srcdir in
31291 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31292 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31293 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31299 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31300 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31303 if test x"$ac_file" != x-; then
31304 { echo "$as_me:$LINENO: creating $ac_file" >&5
31305 echo "$as_me: creating $ac_file" >&6;}
31308 # Let's still pretend it is `configure' which instantiates (i.e., don't
31309 # use $as_me), people would be surprised to read:
31310 # /* config.h. Generated by config.status. */
31311 if test x"$ac_file" = x-; then
31314 configure_input="$ac_file. "
31316 configure_input=$configure_input"Generated from `echo $ac_file_in |
31317 sed 's,.*/,,'` by configure."
31319 # First look for the input files in the build tree, otherwise in the
31321 ac_file_inputs=`IFS=:
31322 for f in $ac_file_in; do
31324 -) echo $tmp/stdin ;;
31326 # Absolute (can't be DOS-style, as IFS=:)
31327 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31328 echo "$as_me: error: cannot find input file: $f" >&2;}
31329 { (exit 1); exit 1; }; }
31332 if test -f "$f"; then
31335 elif test -f "$srcdir/$f"; then
31340 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31341 echo "$as_me: error: cannot find input file: $f" >&2;}
31342 { (exit 1); exit 1; }; }
31345 done` || { (exit 1); exit 1; }
31347 cat >>$CONFIG_STATUS <<_ACEOF
31351 cat >>$CONFIG_STATUS <<\_ACEOF
31353 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31354 s,@configure_input@,$configure_input,;t t
31355 s,@srcdir@,$ac_srcdir,;t t
31356 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31357 s,@top_srcdir@,$ac_top_srcdir,;t t
31358 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31359 s,@builddir@,$ac_builddir,;t t
31360 s,@abs_builddir@,$ac_abs_builddir,;t t
31361 s,@top_builddir@,$ac_top_builddir,;t t
31362 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31363 s,@INSTALL@,$ac_INSTALL,;t t
31364 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31366 if test x"$ac_file" != x-; then
31367 mv $tmp/out $ac_file
31375 cat >>$CONFIG_STATUS <<\_ACEOF
31378 # CONFIG_HEADER section.
31381 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31382 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31384 # ac_d sets the value in "#define NAME VALUE" lines.
31385 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31386 ac_dB='[ ].*$,\1#\2'
31389 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31390 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31391 ac_uB='$,\1#\2define\3'
31395 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31396 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31398 - | *:- | *:-:* ) # input from stdin
31400 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31401 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31402 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31403 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31404 * ) ac_file_in=$ac_file.in ;;
31407 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31408 echo "$as_me: creating $ac_file" >&6;}
31410 # First look for the input files in the build tree, otherwise in the
31412 ac_file_inputs=`IFS=:
31413 for f in $ac_file_in; do
31415 -) echo $tmp/stdin ;;
31417 # Absolute (can't be DOS-style, as IFS=:)
31418 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31419 echo "$as_me: error: cannot find input file: $f" >&2;}
31420 { (exit 1); exit 1; }; }
31421 # Do quote $f, to prevent DOS paths from being IFS'd.
31424 if test -f "$f"; then
31427 elif test -f "$srcdir/$f"; then
31432 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31433 echo "$as_me: error: cannot find input file: $f" >&2;}
31434 { (exit 1); exit 1; }; }
31437 done` || { (exit 1); exit 1; }
31438 # Remove the trailing spaces.
31439 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31443 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31444 # `conftest.undefs', that substitutes the proper values into
31445 # config.h.in to produce config.h. The first handles `#define'
31446 # templates, and the second `#undef' templates.
31447 # And first: Protect against being on the right side of a sed subst in
31448 # config.status. Protect against being in an unquoted here document
31449 # in config.status.
31450 rm -f conftest.defines conftest.undefs
31451 # Using a here document instead of a string reduces the quoting nightmare.
31452 # Putting comments in sed scripts is not portable.
31454 # `end' is used to avoid that the second main sed command (meant for
31455 # 0-ary CPP macros) applies to n-ary macro definitions.
31456 # See the Autoconf documentation for `clear'.
31457 cat >confdef2sed.sed <<\_ACEOF
31462 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31464 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31467 # If some macros were called several times there might be several times
31468 # the same #defines, which is useless. Nevertheless, we may not want to
31469 # sort them, since we want the *last* AC-DEFINE to be honored.
31470 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31471 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31472 rm -f confdef2sed.sed
31474 # This sed command replaces #undef with comments. This is necessary, for
31475 # example, in the case of _POSIX_SOURCE, which is predefined and required
31476 # on some systems where configure will not decide to define it.
31477 cat >>conftest.undefs <<\_ACEOF
31478 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31481 # Break up conftest.defines because some shells have a limit on the size
31482 # of here documents, and old seds have small limits too (100 cmds).
31483 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31484 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31485 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31486 echo ' :' >>$CONFIG_STATUS
31487 rm -f conftest.tail
31488 while grep . conftest.defines >/dev/null
31490 # Write a limited-size here document to $tmp/defines.sed.
31491 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31492 # Speed up: don't consider the non `#define' lines.
31493 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31494 # Work around the forget-to-reset-the-flag bug.
31495 echo 't clr' >>$CONFIG_STATUS
31496 echo ': clr' >>$CONFIG_STATUS
31497 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31499 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31501 mv $tmp/out $tmp/in
31503 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31504 rm -f conftest.defines
31505 mv conftest.tail conftest.defines
31507 rm -f conftest.defines
31508 echo ' fi # grep' >>$CONFIG_STATUS
31509 echo >>$CONFIG_STATUS
31511 # Break up conftest.undefs because some shells have a limit on the size
31512 # of here documents, and old seds have small limits too (100 cmds).
31513 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31514 rm -f conftest.tail
31515 while grep . conftest.undefs >/dev/null
31517 # Write a limited-size here document to $tmp/undefs.sed.
31518 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31519 # Speed up: don't consider the non `#undef'
31520 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31521 # Work around the forget-to-reset-the-flag bug.
31522 echo 't clr' >>$CONFIG_STATUS
31523 echo ': clr' >>$CONFIG_STATUS
31524 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31526 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31528 mv $tmp/out $tmp/in
31530 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31531 rm -f conftest.undefs
31532 mv conftest.tail conftest.undefs
31534 rm -f conftest.undefs
31536 cat >>$CONFIG_STATUS <<\_ACEOF
31537 # Let's still pretend it is `configure' which instantiates (i.e., don't
31538 # use $as_me), people would be surprised to read:
31539 # /* config.h. Generated by config.status. */
31540 if test x"$ac_file" = x-; then
31541 echo "/* Generated by configure. */" >$tmp/config.h
31543 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31545 cat $tmp/in >>$tmp/config.h
31547 if test x"$ac_file" != x-; then
31548 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31549 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31550 echo "$as_me: $ac_file is unchanged" >&6;}
31552 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31553 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31554 X"$ac_file" : 'X\(//\)[^/]' \| \
31555 X"$ac_file" : 'X\(//\)$' \| \
31556 X"$ac_file" : 'X\(/\)' \| \
31557 . : '\(.\)' 2>/dev/null ||
31559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31560 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31561 /^X\(\/\/\)$/{ s//\1/; q; }
31562 /^X\(\/\).*/{ s//\1/; q; }
31564 { if $as_mkdir_p; then
31569 while test ! -d "$as_dir"; do
31570 as_dirs="$as_dir $as_dirs"
31571 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31572 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31573 X"$as_dir" : 'X\(//\)[^/]' \| \
31574 X"$as_dir" : 'X\(//\)$' \| \
31575 X"$as_dir" : 'X\(/\)' \| \
31576 . : '\(.\)' 2>/dev/null ||
31578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31579 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31580 /^X\(\/\/\)$/{ s//\1/; q; }
31581 /^X\(\/\).*/{ s//\1/; q; }
31584 test ! -n "$as_dirs" || mkdir $as_dirs
31585 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31586 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31587 { (exit 1); exit 1; }; }; }
31590 mv $tmp/config.h $ac_file
31594 rm -f $tmp/config.h
31598 cat >>$CONFIG_STATUS <<\_ACEOF
31601 # CONFIG_COMMANDS section.
31603 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31604 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31605 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31606 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31607 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31608 X"$ac_dest" : 'X\(//\)[^/]' \| \
31609 X"$ac_dest" : 'X\(//\)$' \| \
31610 X"$ac_dest" : 'X\(/\)' \| \
31611 . : '\(.\)' 2>/dev/null ||
31613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31614 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31615 /^X\(\/\/\)$/{ s//\1/; q; }
31616 /^X\(\/\).*/{ s//\1/; q; }
31618 { if $as_mkdir_p; then
31623 while test ! -d "$as_dir"; do
31624 as_dirs="$as_dir $as_dirs"
31625 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31627 X"$as_dir" : 'X\(//\)[^/]' \| \
31628 X"$as_dir" : 'X\(//\)$' \| \
31629 X"$as_dir" : 'X\(/\)' \| \
31630 . : '\(.\)' 2>/dev/null ||
31632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31634 /^X\(\/\/\)$/{ s//\1/; q; }
31635 /^X\(\/\).*/{ s//\1/; q; }
31638 test ! -n "$as_dirs" || mkdir $as_dirs
31639 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31640 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31641 { (exit 1); exit 1; }; }; }
31645 if test "$ac_dir" != .; then
31646 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31647 # A "../" for each directory in $ac_dir_suffix.
31648 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31650 ac_dir_suffix= ac_top_builddir=
31654 .) # No --srcdir option. We are building in place.
31656 if test -z "$ac_top_builddir"; then
31659 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31661 [\\/]* | ?:[\\/]* ) # Absolute path.
31662 ac_srcdir=$srcdir$ac_dir_suffix;
31663 ac_top_srcdir=$srcdir ;;
31664 *) # Relative path.
31665 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31666 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31669 # Do not use `cd foo && pwd` to compute absolute paths, because
31670 # the directories may not exist.
31672 .) ac_abs_builddir="$ac_dir";;
31675 .) ac_abs_builddir=`pwd`;;
31676 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31677 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31680 case $ac_abs_builddir in
31681 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31683 case ${ac_top_builddir}. in
31684 .) ac_abs_top_builddir=$ac_abs_builddir;;
31685 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31686 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31689 case $ac_abs_builddir in
31690 .) ac_abs_srcdir=$ac_srcdir;;
31693 .) ac_abs_srcdir=$ac_abs_builddir;;
31694 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31695 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31698 case $ac_abs_builddir in
31699 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31701 case $ac_top_srcdir in
31702 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31703 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31704 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31709 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31710 echo "$as_me: executing $ac_dest commands" >&6;}
31712 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31713 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31714 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31715 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31716 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31717 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31718 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31719 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31720 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31721 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31722 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31723 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31724 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31725 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31726 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31727 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31728 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31729 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31730 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31731 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31736 cat >>$CONFIG_STATUS <<\_ACEOF
31738 { (exit 0); exit 0; }
31740 chmod +x $CONFIG_STATUS
31741 ac_clean_files=$ac_clean_files_save
31744 # configure is writing to config.log, and then calls config.status.
31745 # config.status does its own redirection, appending to config.log.
31746 # Unfortunately, on DOS this fails, as config.log is still kept open
31747 # by configure, so config.status won't be able to write to it; its
31748 # output is simply discarded. So we exec the FD to /dev/null,
31749 # effectively closing config.log, so it can be properly (re)opened and
31750 # appended to by config.status. When coming back to configure, we
31751 # need to make the FD available again.
31752 if test "$no_create" != yes; then
31754 ac_config_status_args=
31755 test "$silent" = yes &&
31756 ac_config_status_args="$ac_config_status_args --quiet"
31758 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31760 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31761 # would make configure fail if this is the last instruction.
31762 $ac_cs_success || { (exit 1); exit 1; }
31766 # CONFIG_SUBDIRS section.
31768 if test "$no_recursion" != yes; then
31770 # Remove --cache-file and --srcdir arguments so they do not pile up.
31771 ac_sub_configure_args=
31773 for ac_arg in $ac_configure_args; do
31774 if test -n "$ac_prev"; then
31779 -cache-file | --cache-file | --cache-fil | --cache-fi \
31780 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31781 ac_prev=cache_file ;;
31782 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31783 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31786 --config-cache | -C)
31788 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31790 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31792 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31794 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31796 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31800 # Always prepend --prefix to ensure using the same prefix
31801 # in subdir configurations.
31802 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31805 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31807 # Do not complain, so a configure script can configure whichever
31808 # parts of a large source tree are present.
31809 test -d $srcdir/$ac_dir || continue
31811 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31812 echo "$as_me: configuring in $ac_dir" >&6;}
31813 { if $as_mkdir_p; then
31818 while test ! -d "$as_dir"; do
31819 as_dirs="$as_dir $as_dirs"
31820 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31821 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31822 X"$as_dir" : 'X\(//\)[^/]' \| \
31823 X"$as_dir" : 'X\(//\)$' \| \
31824 X"$as_dir" : 'X\(/\)' \| \
31825 . : '\(.\)' 2>/dev/null ||
31827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31829 /^X\(\/\/\)$/{ s//\1/; q; }
31830 /^X\(\/\).*/{ s//\1/; q; }
31833 test ! -n "$as_dirs" || mkdir $as_dirs
31834 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31835 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31836 { (exit 1); exit 1; }; }; }
31840 if test "$ac_dir" != .; then
31841 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31842 # A "../" for each directory in $ac_dir_suffix.
31843 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31845 ac_dir_suffix= ac_top_builddir=
31849 .) # No --srcdir option. We are building in place.
31851 if test -z "$ac_top_builddir"; then
31854 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31856 [\\/]* | ?:[\\/]* ) # Absolute path.
31857 ac_srcdir=$srcdir$ac_dir_suffix;
31858 ac_top_srcdir=$srcdir ;;
31859 *) # Relative path.
31860 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31861 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31864 # Do not use `cd foo && pwd` to compute absolute paths, because
31865 # the directories may not exist.
31867 .) ac_abs_builddir="$ac_dir";;
31870 .) ac_abs_builddir=`pwd`;;
31871 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31872 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31875 case $ac_abs_builddir in
31876 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31878 case ${ac_top_builddir}. in
31879 .) ac_abs_top_builddir=$ac_abs_builddir;;
31880 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31881 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31884 case $ac_abs_builddir in
31885 .) ac_abs_srcdir=$ac_srcdir;;
31888 .) ac_abs_srcdir=$ac_abs_builddir;;
31889 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31890 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31893 case $ac_abs_builddir in
31894 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31896 case $ac_top_srcdir in
31897 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31898 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31899 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31906 # Check for guested configure; otherwise get Cygnus style configure.
31907 if test -f $ac_srcdir/configure.gnu; then
31908 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31909 elif test -f $ac_srcdir/configure; then
31910 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31911 elif test -f $ac_srcdir/configure.in; then
31912 ac_sub_configure=$ac_configure
31914 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31915 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31919 # The recursion is here.
31920 if test -n "$ac_sub_configure"; then
31921 # Make the cache file name correct relative to the subdirectory.
31922 case $cache_file in
31923 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31924 *) # Relative path.
31925 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31928 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31929 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31930 # The eval makes quoting arguments work.
31931 eval $ac_sub_configure $ac_sub_configure_args \
31932 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31933 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31934 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31935 { (exit 1); exit 1; }; }
31943 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31944 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31945 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
31946 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31947 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31948 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31949 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31950 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31951 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31952 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31953 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}